checkdot now works correctly

This commit is contained in:
Todd C. Miller
1996-03-16 19:43:03 +00:00
parent dd8e4bba84
commit 13ad7291f4

View File

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