summaryrefslogtreecommitdiff
path: root/trans/fakeroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'trans/fakeroot.c')
-rw-r--r--trans/fakeroot.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index 6962810b..84b4efcb 100644
--- a/trans/fakeroot.c
+++ b/trans/fakeroot.c
@@ -780,12 +780,7 @@ netfs_attempt_write (struct iouser *cred, struct node *np,
error_t
netfs_report_access (struct iouser *cred, struct node *np, int *types)
{
- 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;
+ return file_check_access (netfs_node_netnode (np)->file, types);
}
error_t