diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-23 16:22:25 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-23 16:22:25 +0200 |
commit | d93fc617256f47a00f94f0603c0ff6b1b46e7ed4 (patch) | |
tree | e115e6a7fc62691b752a48d8d67bf378df2eb60f | |
parent | ca22cda709b3ccd7f57505e2167d1c46c509ede3 (diff) | |
download | busybox-d93fc617256f47a00f94f0603c0ff6b1b46e7ed4.tar.gz |
ls: fix "ls | cat" to not show "total NNN" header
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | coreutils/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |