bin/xbps-uunshare: stop option parsing at the first nonoption argument

This commit is contained in:
Duncaen 2016-09-25 22:26:47 +02:00
parent 948ba8d7d1
commit 6cca905d64

View File

@ -136,7 +136,7 @@ main(int argc, char **argv)
chrootdir = cmd = NULL;
argv0 = argv[0];
while ((c = getopt_long(argc, argv, "b:V", longopts, NULL)) != -1) {
while ((c = getopt_long(argc, argv, "+b:V", longopts, NULL)) != -1) {
switch (c) {
case 'b':
if (optarg == NULL || *optarg == '\0')