summaryrefslogtreecommitdiffstats
path: root/bin/sh
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2007-01-18 22:31:22 +0000
committerstefanf <stefanf@FreeBSD.org>2007-01-18 22:31:22 +0000
commit542ee93dabab0ff4433f7dba62ccd6bf4772e28b (patch)
treedec47c41aa98f237e3f702406bbfe028a43b5369 /bin/sh
parent545a381d5f5917c12078fc06b779fab7711c053e (diff)
downloadFreeBSD-src-542ee93dabab0ff4433f7dba62ccd6bf4772e28b.zip
FreeBSD-src-542ee93dabab0ff4433f7dba62ccd6bf4772e28b.tar.gz
Use eaccess() instead of access() for the type builtin, like we do for the
test builtin. Submitted by: Martin Kammerhofer
Diffstat (limited to 'bin/sh')
-rw-r--r--bin/sh/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/exec.c b/bin/sh/exec.c
index b9d7838..cf78eb2 100644
--- a/bin/sh/exec.c
+++ b/bin/sh/exec.c
@@ -780,7 +780,7 @@ typecmd_impl(int argc, char **argv, int cmd)
" a tracked alias for" : "",
name);
} else {
- if (access(argv[i], X_OK) == 0) {
+ if (eaccess(argv[i], X_OK) == 0) {
if (cmd == TYPECMD_SMALLV)
out1fmt("%s\n", argv[i]);
else
OpenPOWER on IntegriCloud