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