ls: fix "ls | cat" to not show "total NNN" header

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-10-23 16:22:25 +02:00
parent ca22cda709
commit d93fc61725

View File

@ -633,7 +633,7 @@ static void showdirs(struct dnode **dn, int first)
}
subdnp = list_dir((*dn)->fullname, &nfiles);
#if ENABLE_DESKTOP
if (all_fmt & STYLE_LONG)
if ((all_fmt & STYLE_MASK) == STYLE_LONG)
printf("total %"OFF_FMT"u\n", calculate_blocks(subdnp));
#endif
if (nfiles > 0) {