From 9cf9abb40e2a641ac8070425f0b30afcafb886ce Mon Sep 17 00:00:00 2001 From: ajacoutot <> Date: Mon, 13 Dec 2010 16:06:45 +0000 Subject: [PATCH] Prefer '-l' over '-' which is deprecated. Also noticed and agreed by eric@ ok robert@ --- src/etc/rc.d/rc.subr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/rc.d/rc.subr b/src/etc/rc.d/rc.subr index 46593dd5..c98bb2ae 100644 --- a/src/etc/rc.d/rc.subr +++ b/src/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 }