aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-28 07:05:19 +0000
committerRichard M. Stallman1996-06-28 07:05:19 +0000
commitde0be7ddaec1bfd230440f0ec373e2c53d31ec4d (patch)
tree4ac4547c92a1afa66740d6764a381126205b03b6
parentef27a54274e45bc62f84ebc9f2e15c3dd2da1b99 (diff)
downloademacs-de0be7ddaec1bfd230440f0ec373e2c53d31ec4d.tar.gz
emacs-de0be7ddaec1bfd230440f0ec373e2c53d31ec4d.zip
(check_executable): Use euidaccess, not eaccess.
-rw-r--r--src/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index f5a800f6c16..7df85fc78a1 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2544,8 +2544,8 @@ check_executable (filename)
2544 || (st.st_mode & S_IFMT) == S_IFDIR); 2544 || (st.st_mode & S_IFMT) == S_IFDIR);
2545#endif /* not WINDOWSNT */ 2545#endif /* not WINDOWSNT */
2546#else /* not DOS_NT */ 2546#else /* not DOS_NT */
2547#ifdef HAVE_EACCESS 2547#ifdef HAVE_EUIDACCESS
2548 return (eaccess (filename, 1) >= 0); 2548 return (euidaccess (filename, 1) >= 0);
2549#else 2549#else
2550 /* Access isn't quite right because it uses the real uid 2550 /* Access isn't quite right because it uses the real uid
2551 and we really want to test with the effective uid. 2551 and we really want to test with the effective uid.