From 2f90345e13ab8fea4de45a4f1caa73ebc63a62e7 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 27 May 2012 21:53:20 +0300 Subject: [PATCH] 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. --- src/xz/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xz/message.c b/src/xz/message.c index 80c86a49..d9b7d239 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;