From: Todd C. Miller Date: Sat, 4 Sep 1993 19:18:57 +0000 (+0000) Subject: rewritten by millert X-Git-Tag: SUDO_1_3_0~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81d0c1f6df58196f55e9b23f8c137e2bf35f6a38;p=sudo rewritten by millert --- diff --git a/find_path.c b/find_path.c index 0246a257e..5ef36ff73 100644 --- a/find_path.c +++ b/find_path.c @@ -107,7 +107,7 @@ char *find_path(file) /* stat the file to make sure it exists and is executable */ if (!stat(fn, &statbuf) && (statbuf.st_mode & 0000111)) return (qualify(fn)); - else if (errno == ENOENT || errno == ENOTDIR) + else if (errno == ENOENT) path=n+1; else { perror("find_path: stat");