From: Richard M. Stallman Date: Fri, 28 Jun 1996 07:05:19 +0000 (+0000) Subject: (check_executable): Use euidaccess, not eaccess. X-Git-Tag: emacs-19.34~329 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=de0be7ddaec1bfd230440f0ec373e2c53d31ec4d;p=emacs.git (check_executable): Use euidaccess, not eaccess. --- 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) || (st.st_mode & S_IFMT) == S_IFDIR); #endif /* not WINDOWSNT */ #else /* not DOS_NT */ -#ifdef HAVE_EACCESS - return (eaccess (filename, 1) >= 0); +#ifdef HAVE_EUIDACCESS + return (euidaccess (filename, 1) >= 0); #else /* Access isn't quite right because it uses the real uid and we really want to test with the effective uid.