rofiles-fuse: Fix permission comparison

We want to allow write if the devinode is in the set,
not the other way around.

https://bugzilla.gnome.org/show_bug.cgi?id=763676
This commit is contained in:
Alexander Larsson committed 2016-03-16 16:30:53 +01:00
1 parent 9b919c8dd2
commit 89624ee57d
1 file changed
+1 -1
+1 -1
View File
@@ -261,7 +261,7 @@ can_write (const char *path)
else
return -errno;
}
if (devino_set_contains (stbuf.st_dev, stbuf.st_ino))
if (!devino_set_contains (stbuf.st_dev, stbuf.st_ino))
return -EROFS;
return 0;
}