From 41f3fb387864197895cfd5bff603cc8726eed2fe Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Sat, 20 Jul 1996 07:00:51 +0000 Subject: [PATCH] (check_writable): Use euidaccess, not eaccess. --- src/fileio.c | 4 ++-- 1 file 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) 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. -- 2.39.5