From ca0753c0bbe545e41568fbdc09eef54b266e9548 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 9 Apr 2010 11:33:55 -0400 Subject: Correct the fix for not clearing environment with runuser. (#203010, #564093) This changes runuser to not use a login shell. We'll see what happens. --- rc.d/init.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 08be0741..d48ee032 100644 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -261,7 +261,7 @@ daemon() { if [ -z "$user" ]; then $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*" else - $cgroup $nice runuser -m -s /bin/bash - $user -c "$corelimit >/dev/null 2>&1 ; $*" + $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*" fi [ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup" -- cgit v1.2.1