From 13ad7291f4ba09fdf004f55e31f266f9e8c3db45 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 16 Mar 1996 19:43:03 +0000 Subject: [PATCH] checkdot now works correctly --- find_path.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); -- 2.40.0