changeset 9374:347f919eea4a

(check_writable, check_executable): Test HAVE_EACCESS.
author Richard M. Stallman <rms@gnu.org>
date Fri, 07 Oct 1994 08:42:25 +0000
parents 7f6f83c8571e
children 2cccfdee4f95
files src/fileio.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Fri Oct 07 08:40:00 1994 +0000
+++ b/src/fileio.c	Fri Oct 07 08:42:25 1994 +0000
@@ -2176,7 +2176,7 @@
 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 @@
 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