From d93fc617256f47a00f94f0603c0ff6b1b46e7ed4 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 23 Oct 2009 16:22:25 +0200 Subject: ls: fix "ls | cat" to not show "total NNN" header Signed-off-by: Denys Vlasenko --- coreutils/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils') 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) { -- cgit v1.2.3