summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2011-07-31 20:18:45 +0000
committerrobert <robert@openbsd.org>2011-07-31 20:18:45 +0000
commitf69319689196c0f708ab69f5c4889aba84b28a0f (patch)
tree479f0d720ac1f6a7c0d0cffaa4115b5c7f5cdd7d
parentall directories needed by files in the etc set, should be in the specified (diff)
downloadwireguard-openbsd-f69319689196c0f708ab69f5c4889aba84b28a0f.tar.xz
wireguard-openbsd-f69319689196c0f708ab69f5c4889aba84b28a0f.zip
redirect rc_err() output to stderr, from david@
-rw-r--r--etc/rc.d/rc.subr4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr
index 78a0beb1de3..a400dc5e1e3 100644
--- a/etc/rc.d/rc.subr
+++ b/etc/rc.d/rc.subr
@@ -1,4 +1,4 @@
-# $OpenBSD: rc.subr,v 1.43 2011/07/23 22:41:44 sthen Exp $
+# $OpenBSD: rc.subr,v 1.44 2011/07/31 20:18:45 robert Exp $
#
# Copyright (c) 2010, 2011 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -20,7 +20,7 @@
# Default functions and variables used by rc.d(8) scripts.
rc_err() {
- echo $1
+ echo $1 1>&2
exit 1
}