]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Fix debugging
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 27 Aug 2013 11:19:24 +0000 (13:19 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 18 Oct 2013 06:11:34 +0000 (08:11 +0200)
commit99fa1ade4bb20c2a450324ddb61db2ca8123fa79
tree112fe23af739c0673fff893ec59c596f3f87b575
parent4c881b5503753fb2d219cba40062d8c0be4b6040
virsh: Fix debugging

Commit a0b6a36f "fixed" what abfff210 broke (URI precedence), but
there was still one more thing missing to fix.  When using virsh
parameters to setup debugging, those weren't honored, because at the
time debugging was initializing, arguments weren't parsed yet.  To
make ewerything work as expected, we need to initialize the debugging
twice, once before debugging (so we can debug option parsing properly)
and then again after these options are parsed.

As a side effect, this patch also fixes a leak when virsh is ran with
multiple '-l' parameters.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
(cherry picked from commit ac43da705f0e7c23dffd87c0705ff01711b88ac0)
tools/virsh.c