aboutsummaryrefslogtreecommitdiff
path: root/bin/sh
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2007-01-18 22:31:22 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2007-01-18 22:31:22 +0000
commitd92e35fd5fd247fed743760b0bb1645b494ec92f (patch)
treedec47c41aa98f237e3f702406bbfe028a43b5369 /bin/sh
parent97202af2dca1942e1873e9ef8feb527a2e58fa7b (diff)
downloadsrc-d92e35fd5fd247fed743760b0bb1645b494ec92f.tar.gz
src-d92e35fd5fd247fed743760b0bb1645b494ec92f.zip
Use eaccess() instead of access() for the type builtin, like we do for the
test builtin. Submitted by: Martin Kammerhofer
Notes
Notes: svn path=/head/; revision=166101
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 b9d7838bb9ee..cf78eb2955b5 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