diff options
author | Ron Yorston <rmy@pobox.com> | 2019-03-04 08:08:28 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-03-04 08:08:28 +0000 |
commit | b7e469eac680e5e1fe998198dbd2dbad8782eb34 (patch) | |
tree | 098756dfe1eb77b79e349dc292cc5744abad660a | |
parent | cf46a1c167ce3d532b10e83b6cc2a1994ac09668 (diff) | |
download | busybox-w32-b7e469eac680e5e1fe998198dbd2dbad8782eb34.tar.gz busybox-w32-b7e469eac680e5e1fe998198dbd2dbad8782eb34.tar.bz2 busybox-w32-b7e469eac680e5e1fe998198dbd2dbad8782eb34.zip |
ls: use correct column width for WIN32 inodes
-rw-r--r-- | coreutils/ls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index a1782ed45..c5402de30 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -657,7 +657,11 @@ static void display_files(struct dnode **dn, unsigned nfiles) | |||
657 | } | 657 | } |
658 | column_width += 2 | 658 | column_width += 2 |
659 | + ((option_mask32 & OPT_Z) ? 33 : 0) /* context width */ | 659 | + ((option_mask32 & OPT_Z) ? 33 : 0) /* context width */ |
660 | #if !ENABLE_FEATURE_EXTRA_FILE_DATA | ||
660 | + ((option_mask32 & OPT_i) ? 8 : 0) /* inode# width */ | 661 | + ((option_mask32 & OPT_i) ? 8 : 0) /* inode# width */ |
662 | #else | ||
663 | + ((option_mask32 & OPT_i) ? 20 : 0) /* inode# width */ | ||
664 | #endif | ||
661 | + ((option_mask32 & OPT_s) ? 5 : 0) /* "alloc block" width */ | 665 | + ((option_mask32 & OPT_s) ? 5 : 0) /* "alloc block" width */ |
662 | ; | 666 | ; |
663 | ncols = (unsigned)G_terminal_width / column_width; | 667 | ncols = (unsigned)G_terminal_width / column_width; |