diff options
author | 2010-12-13 16:06:45 +0000 | |
---|---|---|
committer | 2010-12-13 16:06:45 +0000 | |
commit | 1602e8d3e9a2bf3e28904a9fbcc7b83870c9a02f (patch) | |
tree | 11d05f3ef5bef777dbc48190952d63f8a81406c8 | |
parent | simulate a full login with su, now that the environment is fine after (diff) | |
download | wireguard-openbsd-1602e8d3e9a2bf3e28904a9fbcc7b83870c9a02f.tar.xz wireguard-openbsd-1602e8d3e9a2bf3e28904a9fbcc7b83870c9a02f.zip |
Prefer '-l' over '-' which is deprecated.
Also noticed and agreed by eric@
ok robert@
-rw-r--r-- | etc/rc.d/rc.subr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr index 46593dd55b7..c98bb2ae178 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.13 2010/12/13 15:27:27 robert Exp $ +# $OpenBSD: rc.subr,v 1.14 2010/12/13 16:06:45 ajacoutot Exp $ [ -z "${local_rcconf}" ] && . /etc/rc.conf @@ -9,7 +9,7 @@ rc_err() { rc_start() { type rc_pre >/dev/null && rc_pre - su - -c ${daemon_class:-daemon} -s ${daemon_shell:-/bin/sh} \ + su -l -c ${daemon_class:-daemon} -s ${daemon_shell:-/bin/sh} \ ${daemon_user:-root} -c "${daemon} ${daemon_flags}" >/dev/null } |