aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-07 08:42:25 +0000
committerRichard M. Stallman1994-10-07 08:42:25 +0000
commitfcd2fe416ab9d2ee657bd88a6b1fcc74e7134987 (patch)
tree81e46d69da50159d388776fa6cbaab8b9415ec60 /src
parent95e7f63ae2e9fb88f8b6056c0c315f2f1118197f (diff)
downloademacs-fcd2fe416ab9d2ee657bd88a6b1fcc74e7134987.tar.gz
emacs-fcd2fe416ab9d2ee657bd88a6b1fcc74e7134987.zip
(check_writable, check_executable): Test HAVE_EACCESS.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 6756bf55294..88e51bacec2 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2176,7 +2176,7 @@ static int
2176check_executable (filename) 2176check_executable (filename)
2177 char *filename; 2177 char *filename;
2178{ 2178{
2179#ifdef __HURD__ 2179#ifdef HAVE_EACCESS
2180 return (eaccess (filename, 1) >= 0); 2180 return (eaccess (filename, 1) >= 0);
2181#else 2181#else
2182 /* Access isn't quite right because it uses the real uid 2182 /* Access isn't quite right because it uses the real uid
@@ -2192,7 +2192,7 @@ static int
2192check_writable (filename) 2192check_writable (filename)
2193 char *filename; 2193 char *filename;
2194{ 2194{
2195#ifdef __HURD__ 2195#ifdef HAVE_EACCESS
2196 return (eaccess (filename, 2) >= 0); 2196 return (eaccess (filename, 2) >= 0);
2197#else 2197#else
2198 /* Access isn't quite right because it uses the real uid 2198 /* Access isn't quite right because it uses the real uid