]> 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)
committerJia Tan <jiat0218@gmail.com>
Fri, 22 Dec 2023 12:02:06 +0000 (20:02 +0800)
src/xz/message.c

index abf30adcc26ccee8a968df192d4e1f003536c969..dec0addd6367ba8073b7a0e6eee08c20b3eb737d 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