=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sudo/Attic/find_path.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/sudo/Attic/find_path.c 2010/03/04 12:21:36 1.11 --- src/usr.bin/sudo/Attic/find_path.c 2010/04/13 23:22:01 1.12 *************** *** 122,128 **** * Check current dir if dot was in the PATH */ if (!result && checkdot) { ! result = sudo_goodpath(infile, sbp); if (result && def_ignore_dot) return(NOT_FOUND_DOT); } --- 122,131 ---- * Check current dir if dot was in the PATH */ if (!result && checkdot) { ! 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) return(NOT_FOUND_DOT); }