Commit 5af45c19 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

test: fix unix mode to Set<PosixFilePermission> conversion

Acked-by: Paul Millar
Target: master
parent 93698a96
......@@ -626,13 +626,13 @@ public class DummyVFS implements VirtualFileSystem {
// OTHERS
if ((mode & S_IROTH) == S_IROTH) {
perms.add(PosixFilePermission.OWNER_READ);
perms.add(PosixFilePermission.OTHERS_READ);
}
if ((mode & S_IWOTH) == S_IWOTH) {
perms.add(PosixFilePermission.OWNER_WRITE);
perms.add(PosixFilePermission.OTHERS_WRITE);
}
if ((mode & S_IXOTH) == S_IXOTH) {
perms.add(PosixFilePermission.OWNER_EXECUTE);
perms.add(PosixFilePermission.OTHERS_EXECUTE);
}
return perms;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment