diff options
author | June McEnroe <june@causal.agency> | 2019-01-10 20:01:33 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-01-10 20:01:33 -0500 |
commit | cf9d2e8c389b84dba23c83b5cfc72082df65dfba (patch) | |
tree | dfa5f4e72c32620d0675b317bbf25c24b242e61f /bin/cash/exec.c | |
parent | Replace st_mtim with st_mtimespec (diff) | |
download | src-cf9d2e8c389b84dba23c83b5cfc72082df65dfba.tar.gz src-cf9d2e8c389b84dba23c83b5cfc72082df65dfba.zip |
Replace eaccess with faccessat
Diffstat (limited to '')
-rw-r--r-- | bin/cash/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cash/exec.c b/bin/cash/exec.c index c376dc51..5026e644 100644 --- a/bin/cash/exec.c +++ b/bin/cash/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 |