From: Markus Armbruster Date: Fri, 13 Mar 2015 11:59:43 +0000 (+0100) Subject: vl: Report failure to sandbox at most once X-Git-Tag: v2.4.0-rc0~92^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=092b21aa7edf7962248e731cddaf5350d268e333;p=thirdparty%2Fqemu.git vl: Report failure to sandbox at most once 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 Reviewed-by: Eric Blake --- diff --git a/vl.c b/vl.c index 66ccd06be87..dd56a82f092 100644 --- a/vl.c +++ b/vl.c @@ -3797,7 +3797,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); }