m = s.st_mode;
if (!S_ISREG(m) && !S_ISDIR(m))
continue;
- tmp = make_message("%s/%s", dirname, entry->d_name);
if (S_ISDIR(m)) {
+ tmp = make_message("%s/%s", dirname, entry->d_name);
ret = scan_dir(tmp);
free(tmp);
if (ret < 0)
return ret;
files = *(uint64_t *)obj.data;
- printf("%u\t%llu%llu\n", (unsigned)uid, (long long unsigned)files,
+ printf("%u\t%llu\t%llu\n", (unsigned)uid, (long long unsigned)files,
(long long unsigned)bytes);
return 1;
}