mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-07 12:20:39 -08:00
(check_executable): Use euidaccess, not eaccess.
This commit is contained in:
parent
ef27a54274
commit
de0be7ddae
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue