]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/rc: use /bin/bash in _user_do()
authorChristoph Hellwig <hch@lst.de>
Fri, 13 Jan 2017 16:38:16 +0000 (17:38 +0100)
committerEryu Guan <eguan@redhat.com>
Sun, 15 Jan 2017 05:57:14 +0000 (13:57 +0800)
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>
common/rc

index 67cb8dd4c1c90e67dde9194d1616e62cc04be1ca..892c46e885320e313267067c229a65a3333d102a 100644 (file)
--- 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
 }