diff --git a/src/main/java/org/cryptomator/frontend/fuse/ReadWriteAdapter.java b/src/main/java/org/cryptomator/frontend/fuse/ReadWriteAdapter.java index b8f069f..a2741f8 100644 --- a/src/main/java/org/cryptomator/frontend/fuse/ReadWriteAdapter.java +++ b/src/main/java/org/cryptomator/frontend/fuse/ReadWriteAdapter.java @@ -160,7 +160,7 @@ public int chmod(String path, int mode, FileInfo fi) { LOG.warn("chmod {} failed, file not found.", path); return -errno.enoent(); } catch (UnsupportedOperationException e) { - if (OS.WINDOWS.isCurrent()) { //prevent spamming warnings + if (!OS.WINDOWS.isCurrent()) { //prevent spamming warnings LOG.warn("Setting posix permissions not supported by underlying file system."); } return -errno.enosys();