comparison src/fileio.c @ 15533:a749d414efbb

(check_executable): Use euidaccess, not eaccess.
author Richard M. Stallman <rms@gnu.org>
date Fri, 28 Jun 1996 07:05:19 +0000
parents 97557b39e3b7
children 515819688789
comparison
equal deleted inserted replaced
15532:98148b219a27 15533:a749d414efbb
2542 || stricmp (suffix, ".exe") == 0 2542 || stricmp (suffix, ".exe") == 0
2543 || stricmp (suffix, ".bat") == 0) 2543 || stricmp (suffix, ".bat") == 0)
2544 || (st.st_mode & S_IFMT) == S_IFDIR); 2544 || (st.st_mode & S_IFMT) == S_IFDIR);
2545 #endif /* not WINDOWSNT */ 2545 #endif /* not WINDOWSNT */
2546 #else /* not DOS_NT */ 2546 #else /* not DOS_NT */
2547 #ifdef HAVE_EACCESS 2547 #ifdef HAVE_EUIDACCESS
2548 return (eaccess (filename, 1) >= 0); 2548 return (euidaccess (filename, 1) >= 0);
2549 #else 2549 #else
2550 /* Access isn't quite right because it uses the real uid 2550 /* Access isn't quite right because it uses the real uid
2551 and we really want to test with the effective uid. 2551 and we really want to test with the effective uid.
2552 But Unix doesn't give us a right way to do it. */ 2552 But Unix doesn't give us a right way to do it. */
2553 return (access (filename, 1) >= 0); 2553 return (access (filename, 1) >= 0);