summary refs log tree commit diff
path: root/bin/cash/exec.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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