From: Todd C. Miller Date: Tue, 28 Mar 1995 15:34:56 +0000 (+0000) Subject: don't check for execute/statable if fq or relative path given X-Git-Tag: SUDO_1_4_0~563 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a7d8fb41c81b4f008f6c012a677730a1e13fb0d;p=sudo don't check for execute/statable if fq or relative path given --- diff --git a/find_path.c b/find_path.c index 842ffd791..32d9d097d 100644 --- a/find_path.c +++ b/find_path.c @@ -110,11 +110,11 @@ char * find_path(file) } /* - * Don't search PATH if we don't need to... + * If we were given a fully qualified or relative path just accept for now */ if (strchr(file, '/')) { (void) strcpy(command, file); - return(sudo_goodpath(command)); + return(command); } /*