]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tools: Make use of the correct environment variables
authorErik Skultety <eskultet@redhat.com>
Thu, 28 Jul 2016 10:54:16 +0000 (12:54 +0200)
committerErik Skultety <eskultet@redhat.com>
Thu, 28 Jul 2016 11:54:06 +0000 (13:54 +0200)
commitd02ef33451a0d84692f32fe0877d621bfe243f50
tree022b71f753b2a3d5ebe5dca6283fc3837744b88a
parent0ef07e19c7c29f1c03e95bf574fb98eee2243203
tools: Make use of the correct environment variables

Since commit 834c5720 which extracted the generic functionality out of virsh
and made it available for other clients like virt-admin to make use of it, it
also introduced a bug when it renamed the original VIRSH_ environment variables
to VSH_ variables. Virt-admin of course suffers from the same bug, so this
patch modifies the generic module vsh.c to construct the correct name for
environment variables of each client from information it has.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1357363

Signed-off-by: Erik Skultety <eskultet@redhat.com>
tools/virsh.c
tools/virt-admin.c
tools/vsh.c
tools/vsh.h