From 7762540f854b0f0534212b49fe67c400d4cefa37 Mon Sep 17 00:00:00 2001 From: digimer Date: Tue, 10 Oct 2023 10:10:54 -0400 Subject: [PATCH] Fixed wrappers to handle quoted arguments properly. Signed-off-by: digimer --- tools/anvil-pcs-wrapper | 4 ++-- tools/anvil-virsh-wrapper | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/anvil-pcs-wrapper b/tools/anvil-pcs-wrapper index 231a91f8..76098a85 100755 --- a/tools/anvil-pcs-wrapper +++ b/tools/anvil-pcs-wrapper @@ -2,9 +2,9 @@ ( if [ "$1" == "status" ]; then - pcs $@ + pcs "$@" exit $? fi flock -e 200 - pcs $@ + pcs "$@" ) 200>/tmp/pcs.lock diff --git a/tools/anvil-virsh-wrapper b/tools/anvil-virsh-wrapper index c42bc2c4..88dab39e 100755 --- a/tools/anvil-virsh-wrapper +++ b/tools/anvil-virsh-wrapper @@ -2,9 +2,9 @@ ( if [ "$1" != "list" ]; then - virsh $@ + virsh "$@" exit $? fi flock -e 200 - virsh $@ + virsh "$@" ) 200>/tmp/virsh.lock