Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
nfs4j
Commits
5af45c19
Commit
5af45c19
authored
Nov 18, 2019
by
Tigran Mkrtchyan
☕
Browse files
test: fix unix mode to Set<PosixFilePermission> conversion
Acked-by: Paul Millar Target: master
parent
93698a96
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/src/test/java/org/dcache/nfs/vfs/DummyVFS.java
View file @
5af45c19
...
...
@@ -626,13 +626,13 @@ public class DummyVFS implements VirtualFileSystem {
// OTHERS
if
((
mode
&
S_IROTH
)
==
S_IROTH
)
{
perms
.
add
(
PosixFilePermission
.
O
WN
ER_READ
);
perms
.
add
(
PosixFilePermission
.
O
TH
ER
S
_READ
);
}
if
((
mode
&
S_IWOTH
)
==
S_IWOTH
)
{
perms
.
add
(
PosixFilePermission
.
O
WN
ER_WRITE
);
perms
.
add
(
PosixFilePermission
.
O
TH
ER
S
_WRITE
);
}
if
((
mode
&
S_IXOTH
)
==
S_IXOTH
)
{
perms
.
add
(
PosixFilePermission
.
O
WN
ER_EXECUTE
);
perms
.
add
(
PosixFilePermission
.
O
TH
ER
S
_EXECUTE
);
}
return
perms
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment