]> granicus.if.org Git - sudo/commitdiff
rewritten by millert
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 4 Sep 1993 19:18:57 +0000 (19:18 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 4 Sep 1993 19:18:57 +0000 (19:18 +0000)
find_path.c

index 0246a257e93a4794b3dcd6b95d75c16059501837..5ef36ff730f5ed258011934559acbe9b3ff3afad 100644 (file)
@@ -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");