aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-02-11 15:48:09 -0500
committerBill Nottingham <notting@redhat.com>2010-02-11 15:49:09 -0500
commit8534b1fc85109a6a6805ecf1a4f9ba2945c70659 (patch)
tree388d222c461e975d3d721d720bea131363751be5 /rc.d
parent513da2ffa0e3add94ce4eb4dd1cc64cf49ba577e (diff)
downloadinitscripts-8534b1fc85109a6a6805ecf1a4f9ba2945c70659.tar
initscripts-8534b1fc85109a6a6805ecf1a4f9ba2945c70659.tar.gz
initscripts-8534b1fc85109a6a6805ecf1a4f9ba2945c70659.tar.bz2
initscripts-8534b1fc85109a6a6805ecf1a4f9ba2945c70659.tar.xz
initscripts-8534b1fc85109a6a6805ecf1a4f9ba2945c70659.zip
Pass -m to runuser, so the environment is not cleared. (#203010, #564093)
There could conceivably be consequences to this, but it matches the behavior of the non-runuser case.
Diffstat (limited to 'rc.d')
-rw-r--r--rc.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 c8870d3a..54a34837 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -260,7 +260,7 @@ daemon() {
if [ -z "$user" ]; then
$cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
else
- $cgroup $nice runuser -s /bin/bash - $user -c "$corelimit >/dev/null 2>&1 ; $*"
+ $cgroup $nice runuser -m -s /bin/bash - $user -c "$corelimit >/dev/null 2>&1 ; $*"
fi
[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"