From: Karl Heuer Date: Sat, 20 Jul 1996 07:00:51 +0000 (+0000) Subject: (check_writable): Use euidaccess, not eaccess. X-Git-Tag: emacs-19.34~124 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=41f3fb387864197895cfd5bff603cc8726eed2fe;p=emacs.git (check_writable): Use euidaccess, not eaccess. --- 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) return 0; return (st.st_mode & S_IWRITE || (st.st_mode & S_IFMT) == S_IFDIR); #else /* not MSDOS */ -#ifdef HAVE_EACCESS - return (eaccess (filename, 2) >= 0); +#ifdef HAVE_EUIDACCESS + return (euidaccess (filename, 2) >= 0); #else /* Access isn't quite right because it uses the real uid and we really want to test with the effective uid.