bin/xbps-uhelper/main.c: fetch accepts >=2 arguments, not only 2 arguments

This commit is contained in:
Enno Boland 2014-08-12 08:08:14 +02:00
parent c5d56bbf83
commit 64fe81d1bd

View File

@ -246,7 +246,7 @@ main(int argc, char **argv)
} }
} else if (strcmp(argv[0], "fetch") == 0) { } else if (strcmp(argv[0], "fetch") == 0) {
/* Fetch a file from specified URL */ /* Fetch a file from specified URL */
if (argc != 2) if (argc < 2)
usage(); usage();
for (int i = 1; i < argc; i++) { for (int i = 1; i < argc; i++) {