From 913f217830b9bc0fd0de245dfaa4fe5d431d489c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 24 May 2002 00:18:14 +0000 Subject: 2002-05-23 Roland McGrath * fakeroot.c (netfs_report_access): Always report O_RDWR|O_EXEC. --- trans/fakeroot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'trans/fakeroot.c') 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; } -- cgit v1.2.3