(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