bin/xbps-uunshare: stop option parsing at the first nonoption argument
This commit is contained in:
parent
948ba8d7d1
commit
6cca905d64
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user