From: Todd C. Miller Date: Sat, 16 Mar 1996 19:43:03 +0000 (+0000) Subject: checkdot now works correctly X-Git-Tag: SUDO_1_5_0~249 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13ad7291f4ba09fdf004f55e31f266f9e8c3db45;p=sudo checkdot now works correctly --- diff --git a/find_path.c b/find_path.c index d0c5b1561..1af07592f 100644 --- a/find_path.c +++ b/find_path.c @@ -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);