Date: Thu, 16 Jun 2005 08:59:14 GMT From: Darren Pilgrim <dmp@bitfreak.org> To: freebsd-gnats-submit@FreeBSD.org Subject: conf/82313: /etc/pccard_ether does not make sure /etc/rc.conf has been sourced Message-ID: <200506160859.j5G8xECA042993@www.freebsd.org> Resent-Message-ID: <200506160900.j5G90XWi036698@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506160859.j5G8xECA042993>