]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Use is_tty() in message.c.
authorJia Tan <jiat0218@gmail.com>
Thu, 23 Nov 2023 14:13:39 +0000 (22:13 +0800)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 7 May 2024 14:57:51 +0000 (17:57 +0300)
(cherry picked from commit 7dc466d62155cb7442aa5e10633e084ed384360d)

src/xz/message.c

index 45cc6a1f1ff9470c9e66d80bd3ea1ee430829356..064a04504444820048ae0a81fed64129a9c5e61e 100644 (file)
@@ -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