qrexec: fix arguments handling

Don't parse options for local command as qrexec-client-vm's own options.

Fixes QubesOS/qubes-issues#3762
This commit is contained in:
Marek Marczykowski-Górecki 2018-03-30 22:54:38 +02:00
parent 2301da6e6f
commit 0ef6297bfc
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -113,7 +113,7 @@ int main(int argc, char **argv)
int opt;
while (1) {
opt = getopt_long(argc, argv, "", longopts, NULL);
opt = getopt_long(argc, argv, "+", longopts, NULL);
if (opt == -1)
break;
switch (opt) {