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 2016-03-15 13:18:35 +01:00
parent 9b919c8dd2
commit 89624ee57d
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ can_write (const char *path)
else else
return -errno; 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 -EROFS;
return 0; return 0;
} }