diff mbox

[v2,1/9] vl: Report failure to sandbox at most once

Message ID 1433323076-9264-2-git-send-email-armbru@redhat.com
State New
Headers show

Commit Message

Markus Armbruster June 3, 2015, 9:17 a.m. UTC
It's reported once per -sandbox on.  Stop on the first failure, like
we do for other options.

Not fixed: "-sandbox on -sandbox off" should leave the sandbox off.
It doesn't.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
---
 vl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/vl.c b/vl.c
index 1d4c089..04a6066 100644
--- a/vl.c
+++ b/vl.c
@@ -3780,7 +3780,7 @@  int main(int argc, char **argv, char **envp)
         exit(1);
     }
 
-    if (qemu_opts_foreach(qemu_find_opts("sandbox"), parse_sandbox, NULL, 0)) {
+    if (qemu_opts_foreach(qemu_find_opts("sandbox"), parse_sandbox, NULL, 1)) {
         exit(1);
     }