]> 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)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 28 Aug 2013 07:38:04 +0000 (09:38 +0200)
commitac43da705f0e7c23dffd87c0705ff01711b88ac0
tree50acba38cefeb3392f7137b3ecc58cf002253203
parent2ab0948d0c7034dbb3ee00e41cb497c03d0d2c66
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>
tools/virsh.c