don't check for execute/statable if fq or relative path given

This commit is contained in:
Todd C. Miller
1995-03-28 15:34:56 +00:00
parent 31f5c73d04
commit 8a7d8fb41c

View File

@@ -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);
}
/*