version 1.19, 2003/04/06 22:47:14 |
version 1.20, 2003/06/25 13:40:27 |
|
|
for (d = readdir(dp); d != NULL; d = readdir(dp)) { |
for (d = readdir(dp); d != NULL; d = readdir(dp)) { |
if (ISDOT(d->d_name) || ISDOTDOT(d->d_name)) |
if (ISDOT(d->d_name) || ISDOTDOT(d->d_name)) |
continue; |
continue; |
(void)strcpy(cur_name_add, d->d_name); |
(void)strlcpy(cur_name_add, d->d_name, |
|
2 * MAXPATHLEN - (MAXPATHLEN - 1)); |
if (lstat(nextpathptr, &st_next) == -1) { |
if (lstat(nextpathptr, &st_next) == -1) { |
(void)snprintf(pathname, MAXPATHLEN, |
(void)snprintf(pathname, MAXPATHLEN, |
"getwd: Cannot stat \"%s\" (%s)", |
"getwd: Cannot stat \"%s\" (%s)", |