version 1.29, 2001/06/25 08:25:40 |
version 1.30, 2001/07/31 12:42:50 |
|
|
stats = xrealloc(stats, nstats * sizeof(Stat)); |
stats = xrealloc(stats, nstats * sizeof(Stat)); |
} |
} |
/* XXX OVERFLOW ? */ |
/* XXX OVERFLOW ? */ |
snprintf(pathname, sizeof pathname, |
snprintf(pathname, sizeof pathname, "%s%s%s", path, |
"%s/%s", path, dp->d_name); |
strcmp(path, "/") ? "/" : "", dp->d_name); |
if (lstat(pathname, &st) < 0) |
if (lstat(pathname, &st) < 0) |
continue; |
continue; |
stat_to_attrib(&st, &(stats[count].attrib)); |
stat_to_attrib(&st, &(stats[count].attrib)); |