summaryrefslogtreecommitdiff
path: root/trans/fakeroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'trans/fakeroot.c')
-rw-r--r--trans/fakeroot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index ee7b3a64..2ed0241d 100644
--- a/trans/fakeroot.c
+++ b/trans/fakeroot.c
@@ -645,8 +645,7 @@ netfs_attempt_write (struct iouser *cred, struct node *np,
error_t
netfs_report_access (struct iouser *cred, struct node *np, int *types)
{
- *types = np->nn->openmodes
- & ((np->nn_stat.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)) ? ~0 : ~O_EXEC);
+ *types = O_RDWR|O_EXEC;
return 0;
}