From: Denys Vlasenko Date: Fri, 23 Oct 2009 14:22:25 +0000 (+0200) Subject: ls: fix "ls | cat" to not show "total NNN" header X-Git-Tag: 1_16_0~326 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d93fc617256f47a00f94f0603c0ff6b1b46e7ed4;p=oweals%2Fbusybox.git ls: fix "ls | cat" to not show "total NNN" header Signed-off-by: Denys Vlasenko --- diff --git a/coreutils/ls.c b/coreutils/ls.c index 38cabcab6..13c863c6e 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -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) {