summaryrefslogtreecommitdiff
path: root/coreutils/ls.c
diff options
context:
space:
mode:
authorEric Andersen2003-11-04 23:16:48 +0000
committerEric Andersen2003-11-04 23:16:48 +0000
commit6d687817a8433906107dc40b4a95ec1da40c3df0 (patch)
tree187d3cc80f8fc120bfa6e9564866f9c5e4213e9b /coreutils/ls.c
parentb7077a7316fa3b1a0efa8247479c64a67ef1d87c (diff)
downloadbusybox-6d687817a8433906107dc40b4a95ec1da40c3df0.zip
busybox-6d687817a8433906107dc40b4a95ec1da40c3df0.tar.gz
Fix oversight with CONFIG_FEATURE_AUTOWIDTH handling
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r--coreutils/ls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 7275292..2929b96 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -923,10 +923,12 @@ extern int ls_main(int argc, char **argv)
| SORT_NAME | SORT_ORDER_FORWARD
#endif
;
+#ifdef CONFIG_FEATURE_AUTOWIDTH
/* Obtain the terminal width. */
get_terminal_width_height(0, &terminal_width, NULL);
/* Go one less... */
terminal_width--;
+#endif
nfiles = 0;
#ifdef CONFIG_FEATURE_LS_COLOR