Browse Source

Consider only dirs and files in nftw(3)

master
Arun Prakash Jana 8 years ago
parent
commit
b730c116d6
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 7 deletions
  1. +2
    -7
      nnn.c

+ 2
- 7
nnn.c View File

@@ -1149,13 +1149,8 @@ show_help(void)
static int
sum_bsizes(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf)
{
/* Handle permission problems */
if(typeflag == FTW_NS) {
printmsg("No stats (permissions ?)");
return 0;
}

blk_size += sb->st_blocks;
if(typeflag == FTW_F || typeflag == FTW_D)
blk_size += sb->st_blocks;

return 0;
}


Loading…
Cancel
Save