Use eaccess() instead of access() for the type builtin, like we do for the

test builtin.

Submitted by:	Martin Kammerhofer
This commit is contained in:
Stefan Farfeleder 2007-01-18 22:31:22 +00:00
parent 97202af2dc
commit d92e35fd5f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166101

View File

@ -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