From: Todd C. Miller Date: Fri, 15 Oct 1993 20:03:14 +0000 (+0000) Subject: stat now ignores EINVAL X-Git-Tag: SUDO_1_3_0~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca882aafcaa79bb15a4b145547eb2a1025602705;p=sudo stat now ignores EINVAL --- diff --git a/find_path.c b/find_path.c index a23b2b0c9..933bf8a60 100644 --- a/find_path.c +++ b/find_path.c @@ -128,7 +128,8 @@ char *find_path(file) statfailed = stat(fn, &statbuf); if (!statfailed && (statbuf.st_mode & 0000111)) return (qualify(fn)); - else if (statfailed && errno != ENOENT && errno != ENOTDIR) { + else if (statfailed && errno != ENOENT && errno != ENOTDIR && + errno != EINVAL) { perror("find_path: stat"); exit(1); }