From: Denys Vlasenko Date: Tue, 1 Mar 2011 04:37:41 +0000 (+0100) Subject: ls: widen -s (1k blocks) column from 4 to 6 X-Git-Tag: 1_19_0~262 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3b28dae17dc93584f0e38388d0dbdbd6761d705e;p=oweals%2Fbusybox.git ls: widen -s (1k blocks) column from 4 to 6 Signed-off-by: Denys Vlasenko --- diff --git a/coreutils/ls.c b/coreutils/ls.c index da370c74b..19c868ca4 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -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)