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:
parent
97202af2dc
commit
d92e35fd5f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166101
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user