summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-24 00:18:14 +0000
committerRoland McGrath <roland@gnu.org>2002-05-24 00:18:14 +0000
commit913f217830b9bc0fd0de245dfaa4fe5d431d489c (patch)
tree184da80d30ffc7beb75d09a043fc9889cfb1642a
parentb7f63dd9b74db05f8174aa71f1e37a2d95969a61 (diff)
2002-05-23 Roland McGrath <roland@frob.com>
* fakeroot.c (netfs_report_access): Always report O_RDWR|O_EXEC.
-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;
}