aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1996-07-20 07:00:51 +0000
committerKarl Heuer1996-07-20 07:00:51 +0000
commit41f3fb387864197895cfd5bff603cc8726eed2fe (patch)
tree28b01b8c1555dc2a1aa821053c0994818a48dfa7 /src
parent7bff6b625f5a7f41955380fca44e8c9555f7542e (diff)
downloademacs-41f3fb387864197895cfd5bff603cc8726eed2fe.tar.gz
emacs-41f3fb387864197895cfd5bff603cc8726eed2fe.zip
(check_writable): Use euidaccess, not 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 d1e4a09da6d..a9d2b95e09a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2568,8 +2568,8 @@ check_writable (filename)
2568 return 0; 2568 return 0;
2569 return (st.st_mode & S_IWRITE || (st.st_mode & S_IFMT) == S_IFDIR); 2569 return (st.st_mode & S_IWRITE || (st.st_mode & S_IFMT) == S_IFDIR);
2570#else /* not MSDOS */ 2570#else /* not MSDOS */
2571#ifdef HAVE_EACCESS 2571#ifdef HAVE_EUIDACCESS
2572 return (eaccess (filename, 2) >= 0); 2572 return (euidaccess (filename, 2) >= 0);
2573#else 2573#else
2574 /* Access isn't quite right because it uses the real uid 2574 /* Access isn't quite right because it uses the real uid
2575 and we really want to test with the effective uid. 2575 and we really want to test with the effective uid.