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
commitf9bd24dc9aff9c68a0892da2c1ca337a6eddd9c3 (patch)
treea3b8336c9d1f3e694e3509003c23ac326a8bb888 /bin/cash/exec.c
parentReplace st_mtim with st_mtimespec (diff)
downloadsrc-f9bd24dc9aff9c68a0892da2c1ca337a6eddd9c3.tar.gz
src-f9bd24dc9aff9c68a0892da2c1ca337a6eddd9c3.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