]> granicus.if.org Git - sudo/commitdiff
don't check for execute/statable if fq or relative path given
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 28 Mar 1995 15:34:56 +0000 (15:34 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 28 Mar 1995 15:34:56 +0000 (15:34 +0000)
find_path.c

index 842ffd79182dbb8192100523c494d20def3af1ca..32d9d097d66782dbed840e1e390f640416c2aa26 100644 (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);
     }
 
     /*