]> git.proxmox.com Git - mirror_ovs.git/commit
ovs-ctl: Prepend OVS binary directories to PATH.
authorFlavio Leitner <fbl@sysclose.org>
Wed, 28 Oct 2020 19:47:52 +0000 (16:47 -0300)
committerIlya Maximets <i.maximets@ovn.org>
Wed, 27 Jan 2021 12:26:07 +0000 (13:26 +0100)
commit25eb72a26b18235207d1c7a614a2f30a725bfa77
tree13beade81a5e9c10461d4980a64960c8087808d1
parentc2e501c16b1287fd8357ec7db696524fb07c926c
ovs-ctl: Prepend OVS binary directories to PATH.

The inclusion of LSB functions in ovs-lib resets $PATH to
system's default. Then ovs-ctl appends missing directories
including the OVS default ones $sbindir and $bindir.

The problem is that the wrong binaries can be used if they
are available in the system's default locations because of
the PATH wrong order. The same issue happens if one changes
$OVS_BINDIR or $OVS_SBINDIR variables.

The solution is to prepend those directories if they are not
already in PATH.

Reported-by: Mark Gray <mark.d.gray@redhat.com>
Signed-off-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Mark Gray <mark.d.gray@redhat.com>
Acked-by: Paolo Valerio <pvalerio@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
utilities/ovs-ctl.in