diff options
author | Stefan Farfeleder <stefanf@FreeBSD.org> | 2007-01-18 22:31:22 +0000 |
---|---|---|
committer | Stefan Farfeleder <stefanf@FreeBSD.org> | 2007-01-18 22:31:22 +0000 |
commit | d92e35fd5fd247fed743760b0bb1645b494ec92f (patch) | |
tree | dec47c41aa98f237e3f702406bbfe028a43b5369 /bin/sh | |
parent | 97202af2dca1942e1873e9ef8feb527a2e58fa7b (diff) | |
download | src-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.c | 2 |
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 |