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
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue