NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/43401: typo in sdpd rc.d script



>Number:         43401
>Category:       misc
>Synopsis:       typo in sdpd rc.d script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 01 16:15:00 +0000 2010
>Originator:     Jukka Salmi
>Release:        NetBSD-current and earlier ;-)
>Organization:
>Environment:
System: NetBSD moray.salmi.ch 5.0_STABLE NetBSD 5.0_STABLE (MORAY) #0: Mon Feb 
1 20:39:41 CET 2010 
root%moray.salmi.ch@localhost:/b/build/nbsd/5/i386/sys/arch/i386/compile/MORAY 
i386
Architecture: i386
Machine: i386
>Description:
Typo in etc/rc.d/sdpd: $_rc_subr_loaded is missing its leading underscore.
This causes rc.subr to be sourced unconditionally.
>How-To-Repeat:
n/a
>Fix:
The following patch is also available from
http://salmi.ch/~jukka/patches/NetBSD/src/HEAD/etc/rc.d/sdpd.patch

Index: etc/rc.d/sdpd
===================================================================
RCS file: /cvsroot/src/etc/rc.d/sdpd,v
retrieving revision 1.2
diff -u -p -r1.2 sdpd
--- etc/rc.d/sdpd       18 Mar 2007 15:53:54 -0000      1.2
+++ etc/rc.d/sdpd       1 Jun 2010 16:02:26 -0000
@@ -7,7 +7,7 @@
 # REQUIRE: bluetooth
 # BEFORE: LOGIN
 
-$rc_subr_loaded . /etc/rc.subr
+$_rc_subr_loaded . /etc/rc.subr
 
 name="sdpd"
 rcvar=$name



Home | Main Index | Thread Index | Old Index