Browse Source

simulate a full login with su, now that the environment is fine after

the last su(1) commit
OPENBSD_4_9
robert 14 years ago
parent
commit
90f75c52e5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc.d/rc.subr

+ 2
- 2
src/etc/rc.d/rc.subr View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.subr,v 1.12 2010/12/11 12:57:21 ajacoutot Exp $
# $OpenBSD: rc.subr,v 1.13 2010/12/13 15:27:27 robert Exp $
[ -z "${local_rcconf}" ] && . /etc/rc.conf [ -z "${local_rcconf}" ] && . /etc/rc.conf
@ -9,7 +9,7 @@ rc_err() {
rc_start() { rc_start() {
type rc_pre >/dev/null && rc_pre type rc_pre >/dev/null && rc_pre
su -c ${daemon_class:-daemon} -s ${daemon_shell:-/bin/sh} \
su - -c ${daemon_class:-daemon} -s ${daemon_shell:-/bin/sh} \
${daemon_user:-root} -c "${daemon} ${daemon_flags}" >/dev/null ${daemon_user:-root} -c "${daemon} ${daemon_flags}" >/dev/null
} }


Loading…
Cancel
Save