version 1.11, 2010/03/04 12:21:36 |
version 1.12, 2010/04/13 23:22:01 |
|
|
* 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); |
} |
} |