]> granicus.if.org Git - sudo/commitdiff
stat now ignores EINVAL
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Oct 1993 20:03:14 +0000 (20:03 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Oct 1993 20:03:14 +0000 (20:03 +0000)
find_path.c

index a23b2b0c9cf816c634c6cf3b011a6b12a5a57a59..933bf8a60c1ae2055987f9d40422bb22ac482c89 100644 (file)
@@ -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);
        }