]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Hide the number of input files with recursive mode.
authorJia Tan <jiat0218@gmail.com>
Thu, 9 Nov 2023 05:56:25 +0000 (13:56 +0800)
committerJia Tan <jiat0218@gmail.com>
Mon, 29 Jan 2024 13:40:53 +0000 (21:40 +0800)
In recursive mode we don't know how many files to process at the
beginning. So just like when using --files or --files0, the number of
total files will not be shown.

src/xz/main.c

index a6e1c840856a70239c31fbd6b2c45918a92f86a3..72731788aa19a7a03462d9f32deda99a89003d0b 100644 (file)
@@ -412,7 +412,7 @@ main(int argc, char **argv)
 
        // Tell the message handling code how many input files there are if
        // we know it. This way the progress indicator can show it.
-       if (args.files_name != NULL)
+       if (args.files_name != NULL || opt_recursive)
                message_set_files(0);
        else
                message_set_files(args.arg_count);