From 89624ee57d5ab69fbed91753aff7510c204707e8 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 15 Mar 2016 13:18:35 +0100 Subject: [PATCH] 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 --- src/rofiles-fuse/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rofiles-fuse/main.c b/src/rofiles-fuse/main.c index 0b0e6a37..bdf7ffb8 100644 --- a/src/rofiles-fuse/main.c +++ b/src/rofiles-fuse/main.c @@ -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; }