mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-11 09:18:20 +03:00
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:
parent
9b919c8dd2
commit
89624ee57d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user