12 lines
335 B
Diff
12 lines
335 B
Diff
|
--- bin/xbps-install/util.c.orig 2016-04-24 19:23:18.366238066 +0200
|
||
|
+++ bin/xbps-install/util.c 2016-04-24 19:23:29.454218826 +0200
|
||
|
@@ -41,7 +41,7 @@ get_maxcols(void)
|
||
|
{
|
||
|
struct winsize ws;
|
||
|
|
||
|
- if (!isatty(STDOUT_FILENO) && errno == ENOTTY) {
|
||
|
+ if (!isatty(STDOUT_FILENO)) {
|
||
|
/* not a TTY, don't use any limit */
|
||
|
return 0;
|
||
|
}
|