aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-01-13 17:38:16 +0100
committerEryu Guan <eguan@redhat.com>2017-01-15 13:57:14 +0800
commit600b4b2bba42217cc5d18319b5b65b1ced798273 (patch)
treed1e5036ab08589ed7b73e285d693d9cddad4494e
parent81b0eded2ee52ec371af7ddb6c679ee221302cd1 (diff)
downloadxfstests-dev-600b4b2bba42217cc5d18319b5b65b1ced798273.tar.gz
common/rc: use /bin/bash in _user_do()
Without this the epressions in generic/256 will fail on a system where /bin/sh is the Default (e.g. modern Debian versions). Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
-rw-r--r--common/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rc b/common/rc
index 67cb8dd4c1..892c46e885 100644
--- a/common/rc
+++ b/common/rc
@@ -1809,7 +1809,7 @@ _user_do()
then
echo $1 | /bin/bash "su $qa_user 2>&1" | _filter_user_do
else
- echo $1 | su $qa_user 2>&1 | _filter_user_do
+ echo $1 | su -s /bin/bash $qa_user 2>&1 | _filter_user_do
fi
}