← Commit list

d93fc6172

Denys Vlasenko
Denys Vlasenko
2009-10-23
FAILED Duration: 32s

Subject

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

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/ls.c+1 -1
@@ -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) {