mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
ls: fix "ls | cat" to not show "total NNN" header
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
ca22cda709
commit
d93fc61725
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user