# HG changeset patch # User Karl Heuer # Date 837846051 0 # Node ID 4ccf88623c955ee3f7b1a4ae9a2bb8c66ba354cc # Parent ee65afcb46d75f05c0b4059e87b21235de7c7e19 (check_writable): Use euidaccess, not eaccess. diff -r ee65afcb46d7 -r 4ccf88623c95 src/fileio.c --- a/src/fileio.c Sat Jul 20 06:15:12 1996 +0000 +++ b/src/fileio.c Sat Jul 20 07:00:51 1996 +0000 @@ -2568,8 +2568,8 @@ 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.