Commit 092b21aa authored by Markus Armbruster's avatar Markus Armbruster
Browse files

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: default avatarMarkus Armbruster <armbru@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
parent ee09f84e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }