mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
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.
This commit is contained in:
parent
ab25b82a91
commit
27d24eb0a9
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ message_set_files(unsigned int files)
|
||||||
static void
|
static void
|
||||||
print_filename(void)
|
print_filename(void)
|
||||||
{
|
{
|
||||||
if (files_total != 1 || filename != stdin_filename) {
|
if (!opt_robot && (files_total != 1 || filename != stdin_filename)) {
|
||||||
signals_block();
|
signals_block();
|
||||||
|
|
||||||
FILE *file = opt_mode == MODE_LIST ? stdout : stderr;
|
FILE *file = opt_mode == MODE_LIST ? stdout : stderr;
|
||||||
|
|
Loading…
Reference in a new issue