]> granicus.if.org Git - sudo/commitdiff
checkdot now works correctly
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 16 Mar 1996 19:43:03 +0000 (19:43 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 16 Mar 1996 19:43:03 +0000 (19:43 +0000)
find_path.c

index d0c5b1561ef53a2b48653ad999800c6666d9513f..1af07592fd74828bc9f013c4948563993263770c 100644 (file)
@@ -172,10 +172,8 @@ char * find_path(file)
     /*
      * check current dir if dot was in the PATH
      */
-    if (!result && checkdot) {
-       path = ".";
-       result = sudo_goodpath(command);
-    }
+    if (!result && checkdot)
+       result = sudo_goodpath(file);
 
     (void) free(origpath);