Subject: Re: misc/23908
To: None <gnats-bugs@gnats.netbsd.org>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-userlevel
Date: 04/02/2004 13:25:17
What about the following patch to fix this PR?

Index: rc.subr
===================================================================
RCS file: /cvsroot/src/etc/rc.subr,v
retrieving revision 1.61
diff -u -r1.61 rc.subr
--- rc.subr	6 Jan 2004 00:52:24 -0000	1.61
+++ rc.subr	2 Apr 2004 11:20:54 -0000
@@ -38,6 +38,8 @@
 #	functions used by various rc scripts
 #
 
+: ${rc_conf_manpage:='rc.conf(5)'}
+
 #
 #	functions
 #	---------
@@ -62,7 +64,7 @@
 		return 1
 		;;
 	*)
-		warn "\$${1} is not set properly - see rc.conf(5)."
+		warn "\$${1} is not set properly - see ${rc_conf_manpage}."
 		return 1
 		;;
 	esac
Index: daily
===================================================================
RCS file: /cvsroot/src/etc/daily,v
retrieving revision 1.58
diff -u -r1.58 daily
--- daily	29 Mar 2004 02:17:26 -0000	1.58
+++ daily	2 Apr 2004 11:20:55 -0000
@@ -13,6 +13,7 @@
 
 host=`hostname`
 date=`date`
+rc_conf_manpage='daily.conf(5)'
 
 echo "To: ${MAILTO:-root}"
 echo "Subject: $host daily output for $date"
Index: weekly
===================================================================
RCS file: /cvsroot/src/etc/weekly,v
retrieving revision 1.17
diff -u -r1.17 weekly
--- weekly	18 Jun 2001 10:54:02 -0000	1.17
+++ weekly	2 Apr 2004 11:20:55 -0000
@@ -13,6 +13,7 @@
 
 host=`hostname`
 date=`date`
+rc_conf_manpage='weekly.conf(5)'
 
 echo "To: ${MAILTO:-root}"
 echo "Subject: $host weekly output for $date"
Index: monthly
===================================================================
RCS file: /cvsroot/src/etc/monthly,v
retrieving revision 1.8
diff -u -r1.8 monthly
--- monthly	10 Jan 2000 17:03:49 -0000	1.8
+++ monthly	2 Apr 2004 11:20:55 -0000
@@ -13,6 +13,7 @@
 
 host=`hostname`
 date=`date`
+rc_conf_manpage='monthly.conf(5)'
 
 echo "To: ${MAILTO:-root}"
 echo "Subject: $host monthly output for $date"

-- 
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/