From 6cca905d640d80e4216c004feeaedccd09f3a768 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sun, 25 Sep 2016 22:26:47 +0200 Subject: [PATCH] bin/xbps-uunshare: stop option parsing at the first nonoption argument --- bin/xbps-uunshare/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-uunshare/main.c b/bin/xbps-uunshare/main.c index e4f7b647..5c4bb952 100644 --- a/bin/xbps-uunshare/main.c +++ b/bin/xbps-uunshare/main.c @@ -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')