diff options
Diffstat (limited to 'trans/fakeroot.c')
-rw-r--r-- | trans/fakeroot.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/trans/fakeroot.c b/trans/fakeroot.c index 3c84ce70..76fc9010 100644 --- a/trans/fakeroot.c +++ b/trans/fakeroot.c @@ -780,7 +780,11 @@ netfs_attempt_write (struct iouser *cred, struct node *np, error_t netfs_report_access (struct iouser *cred, struct node *np, int *types) { - *types = O_RDWR|O_EXEC; + struct netnode *nn = netfs_node_netnode (np); + if (!(nn->faked & FAKE_MODE)) + return file_check_access (nn->file, types); + else + *types = O_RDWR|O_EXEC; return 0; } |