rofiles-fuse: Do allow fchmod/fchown on directories
The program is called ro*files* and ostree creates physical copies of directories, so changing them is fine. I hit this when trying to do a copy checkout onto an rofiles-fuse mount. Closes: #368 Approved by: jlebon
This commit is contained in:
parent
0ed9f520da
commit
da989b473d
|
|
@ -261,8 +261,11 @@ can_write (const char *path)
|
||||||
else
|
else
|
||||||
return -errno;
|
return -errno;
|
||||||
}
|
}
|
||||||
if (!devino_set_contains (stbuf.st_dev, stbuf.st_ino))
|
if (!S_ISDIR (stbuf.st_mode))
|
||||||
return -EROFS;
|
{
|
||||||
|
if (!devino_set_contains (stbuf.st_dev, stbuf.st_ino))
|
||||||
|
return -EROFS;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue