]> granicus.if.org Git - sudo/commitdiff
fixed negation problem (doh!)
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 1 Sep 1995 04:49:48 +0000 (04:49 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 1 Sep 1995 04:49:48 +0000 (04:49 +0000)
goodpath.c

index 12eaacb02a9e833a92a9ebb99807a45f3f185353..ffcccc52d019b113795f379e645d4a39b152e9d6 100644 (file)
@@ -85,7 +85,7 @@ char * sudo_goodpath(path)
     set_perms(PERM_USER);
 
     /* stat(3) failed */
-    if (!err)
+    if (err)
        return(NULL);
 
     /* make sure path describes an executable regular file */