aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-03-01 05:37:41 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-03-01 05:37:41 +0100
commit3b28dae17dc93584f0e38388d0dbdbd6761d705e (patch)
tree5b0c1da93f4696d9efb3d171f2430268f7be6cc3
parent26d11b8133b3ba71e6e94ff525e45984ddeaef72 (diff)
downloadbusybox-w32-3b28dae17dc93584f0e38388d0dbdbd6761d705e.tar.gz
busybox-w32-3b28dae17dc93584f0e38388d0dbdbd6761d705e.tar.bz2
busybox-w32-3b28dae17dc93584f0e38388d0dbdbd6761d705e.zip
ls: widen -s (1k blocks) column from 4 to 6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--coreutils/ls.c3
1 files changed, 2 insertions, 1 deletions
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)
683 683
684 if (all_fmt & LIST_INO) 684 if (all_fmt & LIST_INO)
685 column += printf("%7llu ", (long long) dn->dstat.st_ino); 685 column += printf("%7llu ", (long long) dn->dstat.st_ino);
686//TODO: -h should affect -s too:
686 if (all_fmt & LIST_BLOCKS) 687 if (all_fmt & LIST_BLOCKS)
687 column += printf("%4"OFF_FMT"u ", (off_t) (dn->dstat.st_blocks >> 1)); 688 column += printf("%6"OFF_FMT"u ", (off_t) (dn->dstat.st_blocks >> 1));
688 if (all_fmt & LIST_MODEBITS) 689 if (all_fmt & LIST_MODEBITS)
689 column += printf("%-10s ", (char *) bb_mode_string(dn->dstat.st_mode)); 690 column += printf("%-10s ", (char *) bb_mode_string(dn->dstat.st_mode));
690 if (all_fmt & LIST_NLINKS) 691 if (all_fmt & LIST_NLINKS)