mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
now ignore EPERM
This commit is contained in:
parent
a2f434a5bd
commit
5bbf149cb6
@ -142,7 +142,7 @@ char *find_path(file)
|
||||
if (!statfailed && (statbuf.st_mode & 0000111))
|
||||
return (qualify(fn));
|
||||
else if (statfailed && errno != ENOENT && errno != ENOTDIR &&
|
||||
errno != EINVAL) {
|
||||
errno != EINVAL && errno != EPERM) {
|
||||
fprintf(stderr, "sudo: Can't stat %s: ", fn);
|
||||
perror("");
|
||||
}
|
||||
@ -164,7 +164,7 @@ char *find_path(file)
|
||||
if (!statfailed && (statbuf.st_mode & 0000111))
|
||||
return (qualify(fn));
|
||||
else if (statfailed && errno != ENOENT && errno != ENOTDIR &&
|
||||
errno != EINVAL) {
|
||||
errno != EINVAL && errno != EPERM) {
|
||||
fprintf(stderr, "sudo: Can't stat %s: ", fn);
|
||||
perror("");
|
||||
return (NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user