Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
de0be7dd
Commit
de0be7dd
authored
Jun 28, 1996
by
Richard M. Stallman
Browse files
(check_executable): Use euidaccess, not eaccess.
parent
ef27a542
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/fileio.c
src/fileio.c
+2
-2
No files found.
src/fileio.c
View file @
de0be7dd
...
@@ -2544,8 +2544,8 @@ check_executable (filename)
...
@@ -2544,8 +2544,8 @@ check_executable (filename)
||
(
st
.
st_mode
&
S_IFMT
)
==
S_IFDIR
);
||
(
st
.
st_mode
&
S_IFMT
)
==
S_IFDIR
);
#endif
/* not WINDOWSNT */
#endif
/* not WINDOWSNT */
#else
/* not DOS_NT */
#else
/* not DOS_NT */
#ifdef HAVE_EACCESS
#ifdef HAVE_E
UID
ACCESS
return
(
eaccess
(
filename
,
1
)
>=
0
);
return
(
e
uid
access
(
filename
,
1
)
>=
0
);
#else
#else
/* Access isn't quite right because it uses the real uid
/* Access isn't quite right because it uses the real uid
and we really want to test with the effective uid.
and we really want to test with the effective uid.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment