conf/82313: /etc/pccard_ether does not make sure /etc/rc.conf has been sourced

Darren Pilgrim dmp at bitfreak.org
Thu Jun 16 09:00:34 GMT 2005


>Number:         82313
>Category:       conf
>Synopsis:       /etc/pccard_ether does not make sure /etc/rc.conf has been sourced
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 16 09:00:33 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Darren Pilgrim
>Release:        6.0-CURRENT
>Organization:
n/a
>Environment:
FreeBSD Smiley.Blackthornes.LAN 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Sat Jun 11 20:04:30 PDT 2005 root at Smiley.Blackthornes.LAN:/usr/obj/usr/src/sys/Smiley  i386

>Description:
/etc/pccard_ether requires variables set in /etc/rc.conf.  As it is possible and reasonable to run /etc/pccard_ether from the user command-line and other environments where /etc/rc.conf hasn't been sourced, pccard_ether should source /etc/rc.conf itself to avoid inappropriate failures.
>How-To-Repeat:
As a user, run /etc/pccard_ether.  It will fail silently if removable_interfaces isn't in the environment.  It will fail in other, possibly more interesting ways if removable_interfaces is defined but other required variables are not.
>Fix:
--- pccard_ether.orig   Thu Jun 16 00:27:12 2005
+++ pccard_ether        Thu Jun 16 01:30:04 2005
@@ -7,6 +7,7 @@
 # example: pccard_ether fxp0 start
 #

+. /etc/rc.conf
 . /etc/rc.subr
 . /etc/network.subr


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list