← Commit list

3b28dae17

Denys Vlasenko
Denys Vlasenko
2011-03-01
FAILED Duration: 314s

Subject

ls: widen -s (1k blocks) column from 4 to 6

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+2 -1
@@ -683,8 +683,9 @@ static NOINLINE unsigned list_single(const struct dnode *dn)
if (all_fmt & LIST_INO)
column += printf("%7llu ", (long long) dn->dstat.st_ino);
+//TODO: -h should affect -s too:
if (all_fmt & LIST_BLOCKS)
- column += printf("%4"OFF_FMT"u ", (off_t) (dn->dstat.st_blocks >> 1));
+ column += printf("%6"OFF_FMT"u ", (off_t) (dn->dstat.st_blocks >> 1));
if (all_fmt & LIST_MODEBITS)
column += printf("%-10s ", (char *) bb_mode_string(dn->dstat.st_mode));
if (all_fmt & LIST_NLINKS)