[ostree] rofiles-fuse: Fix permission comparison



commit 89624ee57d5ab69fbed91753aff7510c204707e8
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Mar 15 13:18:35 2016 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/rofiles-fuse/main.c b/src/rofiles-fuse/main.c
index 0b0e6a3..bdf7ffb 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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]