From 02861f872d22188e64df60b904e8b54f0ae15a5c Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 21 Mar 1994 22:23:45 +0000 Subject: Formerly file-exec.c.~3~ --- libdiskfs/file-exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdiskfs') 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))))) -- cgit v1.2.3