]> git.eshelyaron.com Git - emacs.git/commitdiff
(check_writable): Use euidaccess, not eaccess.
authorKarl Heuer <kwzh@gnu.org>
Sat, 20 Jul 1996 07:00:51 +0000 (07:00 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sat, 20 Jul 1996 07:00:51 +0000 (07:00 +0000)
src/fileio.c

index d1e4a09da6d3bb92cbca419ee022a40ed0783812..a9d2b95e09ad8eda8c66049666f9292c7227613d 100644 (file)
@@ -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.