Commit de0be7dd authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(check_executable): Use euidaccess, not eaccess.

parent ef27a542
...@@ -2544,8 +2544,8 @@ check_executable (filename) ...@@ -2544,8 +2544,8 @@ check_executable (filename)
|| (st.st_mode & S_IFMT) == S_IFDIR); || (st.st_mode & S_IFMT) == S_IFDIR);
#endif /* not WINDOWSNT */ #endif /* not WINDOWSNT */
#else /* not DOS_NT */ #else /* not DOS_NT */
#ifdef HAVE_EACCESS #ifdef HAVE_EUIDACCESS
return (eaccess (filename, 1) >= 0); return (euidaccess (filename, 1) >= 0);
#else #else
/* Access isn't quite right because it uses the real uid /* Access isn't quite right because it uses the real uid
and we really want to test with the effective uid. and we really want to test with the effective uid.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment