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:
@@ -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("");
|
||||
}
|
||||
|
Reference in New Issue
Block a user