mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue