From ebb61edb16ba05fd03076ad3dc55c1c15d3f46c0 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Wed, 19 Jun 2019 23:08:31 +0200 Subject: [PATCH] bin/xbps-fetch: restore old behaviour for output file --- bin/xbps-fetch/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-fetch/main.c b/bin/xbps-fetch/main.c index 3cf629cb..8c920fac 100644 --- a/bin/xbps-fetch/main.c +++ b/bin/xbps-fetch/main.c @@ -115,7 +115,7 @@ main(int argc, char **argv) } for (int i = 0; i < argc; i++) { - if ((argc == 1) && !filename) + if (i > 0 || !filename) filename = fname(argv[i]); rv = xbps_fetch_file_dest(&xh, argv[i], filename, verbose ? "v" : "");