mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-06 05:52:32 -08:00
(check_writable, check_executable): Test HAVE_EACCESS.
This commit is contained in:
parent
95e7f63ae2
commit
fcd2fe416a
1 changed files with 2 additions and 2 deletions
|
|
@ -2176,7 +2176,7 @@ static int
|
|||
check_executable (filename)
|
||||
char *filename;
|
||||
{
|
||||
#ifdef __HURD__
|
||||
#ifdef HAVE_EACCESS
|
||||
return (eaccess (filename, 1) >= 0);
|
||||
#else
|
||||
/* Access isn't quite right because it uses the real uid
|
||||
|
|
@ -2192,7 +2192,7 @@ static int
|
|||
check_writable (filename)
|
||||
char *filename;
|
||||
{
|
||||
#ifdef __HURD__
|
||||
#ifdef HAVE_EACCESS
|
||||
return (eaccess (filename, 2) >= 0);
|
||||
#else
|
||||
/* Access isn't quite right because it uses the real uid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue