From cf9d2e8c389b84dba23c83b5cfc72082df65dfba Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 10 Jan 2019 20:01:33 -0500 Subject: Replace eaccess with faccessat --- bin/cash/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/cash/exec.c') 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 -- cgit 1.4.1