diff options
author | stefanf <stefanf@FreeBSD.org> | 2007-01-18 22:31:22 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2007-01-18 22:31:22 +0000 |
commit | 542ee93dabab0ff4433f7dba62ccd6bf4772e28b (patch) | |
tree | dec47c41aa98f237e3f702406bbfe028a43b5369 /bin | |
parent | 545a381d5f5917c12078fc06b779fab7711c053e (diff) | |
download | FreeBSD-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')
-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 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 |