Mercurial > emacs
changeset 15738:4ccf88623c95
(check_writable): Use euidaccess, not eaccess.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Sat, 20 Jul 1996 07:00:51 +0000 |
parents | ee65afcb46d7 |
children | 822cfec0040c |
files | src/fileio.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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.