summary refs log tree commit diff
path: root/bin/cash/exec.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-10 20:01:33 -0500
committerJune McEnroe <june@causal.agency>2019-01-10 20:01:33 -0500
commitcf9d2e8c389b84dba23c83b5cfc72082df65dfba (patch)
treedfa5f4e72c32620d0675b317bbf25c24b242e61f /bin/cash/exec.c
parentReplace st_mtim with st_mtimespec (diff)
downloadsrc-cf9d2e8c389b84dba23c83b5cfc72082df65dfba.tar.gz
src-cf9d2e8c389b84dba23c83b5cfc72082df65dfba.zip
Replace eaccess with faccessat
Diffstat (limited to 'bin/cash/exec.c')
-rw-r--r--bin/cash/exec.c2
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