diff mbox

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

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

Commit Message

Markus Armbruster May 28, 2015, 12:21 p.m. UTC
It's reported once per -sandbox on.  Stop on the first failure, like
we do for other options.

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

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

Comments

Eric Blake May 28, 2015, 2:24 p.m. UTC | #1
On 05/28/2015 06:21 AM, Markus Armbruster wrote:
> It's reported once per -sandbox on.  Stop on the first failure, like
> we do for other options.
> 
> Not fixed: "-sandox on -sandbox off" should leave the sandbox off.  It

s/sandox/sandbox/

> doesn't.
> 
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
>  vl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Reviewed-by: Eric Blake <eblake@redhat.com>
diff mbox

Patch

diff --git a/vl.c b/vl.c
index 15bccc4..07a890f 100644
--- a/vl.c
+++ b/vl.c
@@ -3786,7 +3786,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);
     }