[BACK]Return to find_path.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / sudo

Diff for /src/usr.bin/sudo/Attic/find_path.c between version 1.11 and 1.12

version 1.11, 2010/03/04 12:21:36 version 1.12, 2010/04/13 23:22:01
Line 122 
Line 122 
      * Check current dir if dot was in the PATH       * Check current dir if dot was in the PATH
      */       */
     if (!result && checkdot) {      if (!result && checkdot) {
         result = sudo_goodpath(infile, sbp);          len = snprintf(command, sizeof(command), "./%s", infile);
           if (len <= 0 || len >= sizeof(command))
               errorx(1, "%s: File name too long", infile);
           result = sudo_goodpath(command, sbp);
         if (result && def_ignore_dot)          if (result && def_ignore_dot)
             return(NOT_FOUND_DOT);              return(NOT_FOUND_DOT);
     }      }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12