version 1.6, 2002/02/16 21:27:59 |
version 1.7, 2003/04/04 00:42:34 |
|
|
return(0); |
return(0); |
} |
} |
|
|
(void)strcpy(filename, p); |
(void)strlcpy(filename, p, sizeof filename); |
filename[plen] = '/'; |
filename[plen] = '/'; |
(void)strcpy(filename + plen + 1, prog); |
(void)strlcpy(filename + plen + 1, prog, sizeof filename - (plen + 1)); |
if ((stat(filename, &sbuf) == 0) && S_ISREG(sbuf.st_mode) && |
if ((stat(filename, &sbuf) == 0) && S_ISREG(sbuf.st_mode) && |
access(filename, X_OK) == 0) { |
access(filename, X_OK) == 0) { |
(void)puts(filename); |
(void)puts(filename); |