diff options
author | June McEnroe <june@causal.agency> | 2020-03-09 04:33:03 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-03-09 20:01:30 -0400 |
commit | e1331923f42fcbf718659c520a15f6189af0d0fc (patch) | |
tree | 3e069e6b345b520b378ddfc5c4ee020ca5bb41fb /bin/1sh/exec.c | |
parent | Replace st_mtim with st_mtimespec (diff) | |
download | src-e1331923f42fcbf718659c520a15f6189af0d0fc.tar.gz src-e1331923f42fcbf718659c520a15f6189af0d0fc.zip |
Replace eaccess with faccessat
Diffstat (limited to 'bin/1sh/exec.c')
-rw-r--r-- | bin/1sh/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/1sh/exec.c b/bin/1sh/exec.c index 3eea5afa..7897e024 100644 --- a/bin/1sh/exec.c +++ b/bin/1sh/exec.c @@ -725,7 +725,7 @@ typecmd_impl(int argc, char **argv, int cmd, const char *path) " a tracked alias for" : "", name); } else { - if (eaccess(argv[i], X_OK) == 0) { + if (faccessat(AT_FDCWD, argv[i], X_OK, AT_EACCESS) == 0) { if (cmd == TYPECMD_SMALLV) out1fmt("%s\n", argv[i]); else |