From f893da875a24138fac30f070c7101b5330f0fef0 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 9 Aug 2007 08:27:24 +0000 Subject: ls,ps,watch: measure terminal width on fd 0, not 1 --- coreutils/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils/ls.c') diff --git a/coreutils/ls.c b/coreutils/ls.c index f47ec204c..920fad85e 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -811,7 +811,7 @@ int ls_main(int argc, char **argv) #if ENABLE_FEATURE_AUTOWIDTH /* Obtain the terminal width */ - get_terminal_width_height(STDOUT_FILENO, &terminal_width, NULL); + get_terminal_width_height(STDIN_FILENO, &terminal_width, NULL); /* Go one less... */ terminal_width--; #endif -- cgit v1.2.3