diff options
author | Bill Nottingham <notting@redhat.com> | 2010-02-11 15:48:09 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-02-11 15:48:09 -0500 |
commit | 89183909b2965e6bc2991b2512161414d2028be8 (patch) | |
tree | 32a279e3e59fa125f612f65978d7af1a0950bd8b | |
parent | 3ab1d8b5f5582b3c48af5bbd092496ea6bf5e0ce (diff) | |
download | initscripts-89183909b2965e6bc2991b2512161414d2028be8.tar initscripts-89183909b2965e6bc2991b2512161414d2028be8.tar.gz initscripts-89183909b2965e6bc2991b2512161414d2028be8.tar.bz2 initscripts-89183909b2965e6bc2991b2512161414d2028be8.tar.xz initscripts-89183909b2965e6bc2991b2512161414d2028be8.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.
-rw-r--r-- | rc.d/init.d/functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 2b117d58..150fbb25 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" |