]> git.eshelyaron.com Git - emacs.git/commitdiff
(check_writable, check_executable): Test HAVE_EACCESS.
authorRichard M. Stallman <rms@gnu.org>
Fri, 7 Oct 1994 08:42:25 +0000 (08:42 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 7 Oct 1994 08:42:25 +0000 (08:42 +0000)
src/fileio.c

index 6756bf55294e9537723c0feb936a65bf6c4c45ff..88e51bacec21b7417a11950cde00eb1e1753de98 100644 (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