bin/xbps-uhelper/main.c: fetch accepts >=2 arguments, not only 2 arguments
This commit is contained in:
parent
c5d56bbf83
commit
64fe81d1bd
@ -246,7 +246,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
} else if (strcmp(argv[0], "fetch") == 0) {
|
||||
/* Fetch a file from specified URL */
|
||||
if (argc != 2)
|
||||
if (argc < 2)
|
||||
usage();
|
||||
|
||||
for (int i = 1; i < argc; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user