Commit 93698a96 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

test: fix invalid attribute name in DummyFs#setattr

Acked-by: Albert Rossi
Acked-by: Paul Millar
Target: master
parent df1a80fe
......@@ -520,7 +520,7 @@ public class DummyVFS implements VirtualFileSystem {
}
if (stat.isDefined(Stat.StatAttribute.MODE)) {
try {
Files.setAttribute(path, "posix:mode", stat.getMode(), NOFOLLOW_LINKS);
Files.setAttribute(path, "posix:permissions", modeToPermissions(stat.getMode()), NOFOLLOW_LINKS);
} catch (IOException e) {
throw new UnsupportedOperationException("set mode unsupported: " + e.getMessage(), e);
}
......
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