2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

now don't bitch if get EACCESS (treat like EPERM)

This commit is contained in:
Todd C. Miller
1994-05-25 19:48:29 +00:00
parent 6e7d42f3e1
commit c1d9e44e5b

View File

@@ -157,7 +157,7 @@ char *find_path(file)
if (!statfailed && (statbuf.st_mode & 0000111))
return (qualify(fn));
else if (statfailed && errno != ENOENT && errno != ENOTDIR &&
errno != EINVAL && errno != EPERM) {
errno != EINVAL && errno != EPERM && errno != EACCES) {
fprintf(stderr, "sudo: Can't stat %s: ", fn);
perror("");
}
@@ -179,7 +179,7 @@ char *find_path(file)
if (!statfailed && (statbuf.st_mode & 0000111))
return (qualify(fn));
else if (statfailed && errno != ENOENT && errno != ENOTDIR &&
errno != EINVAL && errno != EPERM) {
errno != EINVAL && errno != EPERM && errno != EACCES) {
fprintf(stderr, "sudo: Can't stat %s: ", fn);
perror("");
return (NULL);
@@ -211,7 +211,7 @@ char *qualify(n)
* is it a bogus path?
*/
if (stat(n, &statbuf)) {
if (errno != ENOENT && errno != EPERM) {
if (errno != ENOENT && errno != EPERM && errno != EACCES) {
fprintf(stderr, "sudo: Can't stat %s: ", n);
perror("");
}