summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-03-21 22:23:45 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-03-21 22:23:45 +0000
commit02861f872d22188e64df60b904e8b54f0ae15a5c (patch)
tree39b3708209a4bbfae208088d45ae68ff1884d5db
parent773b2a1735109b2146a345a961295ea623f6b10e (diff)
Formerly file-exec.c.~3~
-rw-r--r--libdiskfs/file-exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/file-exec.c b/libdiskfs/file-exec.c
index 0b566be7..a97924d7 100644
--- a/libdiskfs/file-exec.c
+++ b/libdiskfs/file-exec.c
@@ -51,8 +51,8 @@ diskfs_S_file_exec (struct protid *cred,
return EOPNOTSUPP;
np = cred->po->np;
- if (err = diskfs_access (np, S_IEXEC, cred))
- return err;
+ if ((cred->po->flags & O_EXEC) == 0)
+ return EBADF;
if (!((np->dn_stat.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))
|| ((np->dn_stat.st_mode & S_IUSEUNK)
&& (np->dn_stat.st_mode & (S_IEXEC << S_IUNKSHIFT)))))