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

This commit is contained in:
Duncaen 2016-09-25 22:26:38 +02:00
parent 2a6e805bb4
commit 948ba8d7d1

View File

@ -281,7 +281,7 @@ main(int argc, char **argv)
tmpfs_opts = chrootdir = cmd = NULL;
argv0 = argv[0];
while ((c = getopt_long(argc, argv, "Oto:b:V", longopts, NULL)) != -1) {
while ((c = getopt_long(argc, argv, "+Oto:b:V", longopts, NULL)) != -1) {
switch (c) {
case 'O':
overlayfs = true;