1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-06 05:52:32 -08:00

(check_writable, check_executable): Test HAVE_EACCESS.

This commit is contained in:
Richard M. Stallman 1994-10-07 08:42:25 +00:00
parent 95e7f63ae2
commit fcd2fe416a

View file

@ -2176,7 +2176,7 @@ static int
check_executable (filename)
char *filename;
{
#ifdef __HURD__
#ifdef HAVE_EACCESS
return (eaccess (filename, 1) >= 0);
#else
/* Access isn't quite right because it uses the real uid
@ -2192,7 +2192,7 @@ static int
check_writable (filename)
char *filename;
{
#ifdef __HURD__
#ifdef HAVE_EACCESS
return (eaccess (filename, 2) >= 0);
#else
/* Access isn't quite right because it uses the real uid