]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(decode_switches) [TIOCGWINSZ]: Comment out the
authorJim Meyering <jim@meyering.net>
Tue, 14 Oct 2003 20:59:50 +0000 (20:59 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 14 Oct 2003 20:59:50 +0000 (20:59 +0000)
warning-inducing test, ws.ws_col <= SIZE_MAX, since it was always
true on Linux.

src/ls.c

index f011f5fa1c86d62051ef4b0d4c9a528814f5031e..3680020246807234082a8990ee1dbfaa2e74663b 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -1334,7 +1334,7 @@ decode_switches (int argc, char **argv)
     struct winsize ws;
 
     if (ioctl (STDOUT_FILENO, TIOCGWINSZ, &ws) != -1
-       && 0 < ws.ws_col && ws.ws_col <= SIZE_MAX)
+       && 0 < ws.ws_col /* && ws.ws_col <= SIZE_MAX */ )
       line_length = ws.ws_col;
   }
 #endif