aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-01-25 05:23:40 +0000
committerBill Nottingham <notting@redhat.com>2002-01-25 05:23:40 +0000
commit590aae606e2a4cb466d7cc4cd63222172d9fdeff (patch)
treeea75679247901de03bd50a9894e2db42c354b983 /rc.d/init.d/functions
parent543c9522feba2bff84f54c1d214d74f20ea0b5fd (diff)
downloadinitscripts-590aae606e2a4cb466d7cc4cd63222172d9fdeff.tar
initscripts-590aae606e2a4cb466d7cc4cd63222172d9fdeff.tar.gz
initscripts-590aae606e2a4cb466d7cc4cd63222172d9fdeff.tar.bz2
initscripts-590aae606e2a4cb466d7cc4cd63222172d9fdeff.tar.xz
initscripts-590aae606e2a4cb466d7cc4cd63222172d9fdeff.zip
make sure su calls bash (#55288)
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-xrc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index d8bbea80..f71954a9 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -138,7 +138,7 @@ daemon() {
if [ -z "$user" ]; then
$nice initlog $INITLOG_ARGS -c "$*"
else
- $nice initlog $INITLOG_ARGS -c "su - $user -c \"$*\""
+ $nice initlog $INITLOG_ARGS -c "su -s /bin/bash - $user -c \"$*\""
fi
[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}