From: Todd C. Miller Date: Wed, 16 Feb 1994 17:53:18 +0000 (+0000) Subject: now ignore EPERM X-Git-Tag: SUDO_1_3_1~327 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bbf149cb61bc4f13ff6606e99f35432801c127b;p=sudo now ignore EPERM --- diff --git a/find_path.c b/find_path.c index 87df10d34..82885122a 100644 --- a/find_path.c +++ b/find_path.c @@ -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);