Otherwise our su -p uses bash if that is what root was
configured to use, and then fails to read /root/ for
.bash_profile. This caused an unexpected error message
in /tmp/err, failing the test.
Signed-off-by: Serge Hallyn <serge@hallyn.com>
change_config
+export SHELL=/bin/sh
echo "/bin/su -p -c pwd -- - myuser> tmp/out 2> tmp/err"
/bin/su -p -c pwd -- - myuser> tmp/out 2> tmp/err
change_config
+export SHELL=/bin/sh
echo "/bin/su -p -c pwd - myuser> tmp/out 2> tmp/err"
/bin/su -p -c pwd - myuser> tmp/out 2> tmp/err
change_config
+export SHELL=/bin/sh
echo "/bin/su -c pwd -p - myuser> tmp/out 2> tmp/err"
/bin/su -c pwd -p - myuser> tmp/out 2> tmp/err
change_config
+export SHELL=/bin/sh
echo "/bin/su -c pwd - -p myuser> tmp/out 2> tmp/err"
/bin/su -c pwd - -p myuser> tmp/out 2> tmp/err
change_config
+export SHELL=/bin/sh
echo "/bin/su -c pwd - myuser -p> tmp/out 2> tmp/err"
/bin/su -c pwd - myuser -p> tmp/out 2> tmp/err