From: Jim Meyering Date: Mon, 3 Jan 2005 21:25:13 +0000 (+0000) Subject: Don't set rows or columns to zero, to avoid X-Git-Tag: v5.3.0~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34027743250f6c9fcbe481921d431d9e675ab8c3;p=thirdparty%2Fcoreutils.git Don't set rows or columns to zero, to avoid a bug in the TIOCGWINSZ ioctl on at least Solaris5.9 systems. Setting either (or both) to zero would succeed, but subsequent `stty size' would say `no size information for this device' due to the ioctl failing with EINVAL. --- diff --git a/tests/stty/row-col-1 b/tests/stty/row-col-1 index edf2db501e..7873a6df83 100755 --- a/tests/stty/row-col-1 +++ b/tests/stty/row-col-1 @@ -26,13 +26,13 @@ export LC_ALL tests=' 1 rows_40_columns_80 40_80 -2 rows_0_columns_0 0_0 +2 rows_1_columns_1 1_1 3 rows_40_columns_80 40_80 -4 rows_0 0_80 -5 columns_0 0_0 -6 rows_40 40_0 -7 rows_0 0_0 -8 columns_80 0_80 +4 rows_1 1_80 +5 columns_1 1_1 +6 rows_40 40_1 +7 rows_1 1_1 +8 columns_80 1_80 9 rows_30 30_80 NA LAST NA '