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

(check_writable, check_executable): Test HAVE_EACCESS.

parent 95e7f63a
......@@ -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
......
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