From owner-freebsd-bugs@FreeBSD.ORG Thu Jun 16 09:00:34 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CC7916A41C for ; Thu, 16 Jun 2005 09:00:34 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 231DB43D1F for ; Thu, 16 Jun 2005 09:00:34 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5G90Xtj036699 for ; Thu, 16 Jun 2005 09:00:33 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j5G90XWi036698; Thu, 16 Jun 2005 09:00:33 GMT (envelope-from gnats) Resent-Date: Thu, 16 Jun 2005 09:00:33 GMT Resent-Message-Id: <200506160900.j5G90XWi036698@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Darren Pilgrim Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3406816A41C for ; Thu, 16 Jun 2005 08:59:15 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2137043D1D for ; Thu, 16 Jun 2005 08:59:15 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j5G8xEBt042996 for ; Thu, 16 Jun 2005 08:59:15 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j5G8xECA042993; Thu, 16 Jun 2005 08:59:14 GMT (envelope-from nobody) Message-Id: <200506160859.j5G8xECA042993@www.freebsd.org> Date: Thu, 16 Jun 2005 08:59:14 GMT From: Darren Pilgrim To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: conf/82313: /etc/pccard_ether does not make sure /etc/rc.conf has been sourced X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2005 09:00:34 -0000 >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: