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>
This commit is contained in:
Christoph Hellwig
2017-01-13 17:38:16 +01:00
committed by Eryu Guan
parent 81b0eded2e
commit 600b4b2bba
+1 -1
View File
@@ -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
}