aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2012-05-27 21:53:20 +0300
committerLasse Collin <lasse.collin@tukaani.org>2012-05-27 21:53:20 +0300
commit27d24eb0a9f6eed96d6a4594c2b0bf7a91d29f9a (patch)
tree5a6cc838e40c12ef562211591d74f979080e44d9
parentBuild: Upgrade m4/acx_pthread.m4 to the latest version. (diff)
downloadxz-27d24eb0a9f6eed96d6a4594c2b0bf7a91d29f9a.tar.xz
xz: Fix output of verbose --robot --list modes.
It printed the filename in "filename (x/y)" format which it obviously shouldn't do in robot mode.
-rw-r--r--src/xz/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/message.c b/src/xz/message.c
index 9fa2a621..e5591994 100644
--- a/src/xz/message.c
+++ b/src/xz/message.c
@@ -211,7 +211,7 @@ message_set_files(unsigned int files)
static void
print_filename(void)
{
- if (files_total != 1 || filename != stdin_filename) {
+ if (!opt_robot && (files_total != 1 || filename != stdin_filename)) {
signals_block();
FILE *file = opt_mode == MODE_LIST ? stdout : stderr;