From: Jia Tan Date: Thu, 23 Nov 2023 14:13:39 +0000 (+0800) Subject: xz: Use is_tty() in message.c. X-Git-Tag: v5.2.13~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a7c0a9ab2e1544499b85d49c368dcc889d0f3a3;p=thirdparty%2Fxz.git xz: Use is_tty() in message.c. (cherry picked from commit 7dc466d62155cb7442aa5e10633e084ed384360d) --- diff --git a/src/xz/message.c b/src/xz/message.c index 45cc6a1f..064a0450 100644 --- a/src/xz/message.c +++ b/src/xz/message.c @@ -119,7 +119,7 @@ message_init(void) // exception, even if --verbose was not used, user can send SIGALRM // to make us print progress information once without automatic // updating. - progress_automatic = isatty(STDERR_FILENO); + progress_automatic = is_tty(STDERR_FILENO); // Commented out because COLUMNS is rarely exported to environment. // Most users have at least 80 columns anyway, let's think something