NetBSD Problem Report #10220
Received: (qmail 6306 invoked from network); 29 May 2000 04:45:50 -0000
Message-Id: <200005290445.e4T4jIR00698@dev.elfin.net>
Date: Sun, 28 May 2000 23:45:18 -0500 (CDT)
From: roskens@elfin.net
Reply-To: roskens@elfin.net
To: gnats-bugs@gnats.netbsd.org
Subject: /etc/rc.d/amd has problems when ran from the command line
X-Send-Pr-Version: 3.95
>Number: 10220
>Category: bin
>Synopsis: /etc/rc.d/amd has problems when ran from the command line
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 29 04:46:00 +0000 2000
>Closed-Date: Mon May 29 06:53:32 +0000 2000
>Last-Modified: Mon May 29 06:53:32 +0000 2000
>Originator: Ron Roskens
>Release: 20000527
>Organization:
Internet
>Environment:
System: NetBSD dev.elfin.net 1.4Z NetBSD 1.4Z (GENERIC) #12: Sat May 27 16:55:41 PDT 2000 root@swinger:/u1/snapshots/src/sys/arch/i386/compile/GENERIC i386
>Description:
When running /etc/rc.d/amd from the command line, the script gives errors
because some of the arguments defined are not yet defined in the environment.
command_args makes use of $amd_dir and $amd_master, but neither of these
variables are defined in the script until load_rc_config() is ran.
>How-To-Repeat:
login as root and run /etc/rc.d/amd after creating an /etc/amd/master file.
>Fix:
You can either escape the variables, or run load_rc_config() after defining
$name in the script. Since required_files and required_dirs also use $amd_dir
and $amd_master, load_rc_config() should be moved up after $name is defined.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tron
State-Changed-When: Sun May 28 23:53:13 PDT 2000
State-Changed-Why:
Suggested fix applied, thanks.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.