NetBSD Problem Report #29317
From cliff@vixen.snipe444.org Wed Feb 9 19:08:51 2005
Return-Path: <cliff@vixen.snipe444.org>
Received: from vixen.snipe444.org (c-24-18-15-230.client.comcast.net [24.18.15.230])
by narn.netbsd.org (Postfix) with ESMTP id F1CCA63B400
for <gnats-bugs@gnats.NetBSD.org>; Wed, 9 Feb 2005 19:08:50 +0000 (UTC)
Message-Id: <200502091908.j19J8Ten020016@vixen.snipe444.org>
Date: Wed, 9 Feb 2005 11:08:30 -0800 (PST)
From: cliff@snipe444.org
Reply-To: cliff@snipe444.org
To: gnats-bugs@netbsd.org
Subject: ifconfig.if does not allow parameters with spaces
X-Send-Pr-Version: 3.95
>Number: 29317
>Category: misc
>Synopsis: ifconfig.if does not allow parameters with spaces
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 09 19:09:01 +0000 2005
>Closed-Date: Tue Jun 28 14:00:49 +0000 2005
>Last-Modified: Tue Jul 05 21:24:01 +0000 2005
>Originator: Cliff Wright
>Release: NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD vixen 2.0_BETA NetBSD 2.0_BETA (vixen) #0: Mon Oct 4 22:37:41 PDT 2004 cliff@vixen:/usr/src/sys/arch/i386/compile/vixen i386
Architecture: i386
Machine: i386
>Description:
When adding a variable that contains spaces to an
/etc/ifconfig.if file the /etc/rc.d/network script does not
handle the spaces. An example for /etc/ifconfig.ath0:
ssid example
mode 11g
nwkey 'key with spaces'
192.168.0.1
>How-To-Repeat:
See above example
>Fix:
An eval needs to added before the ifconfig line, as below
patch shows
--- /etc/rc.d/network.orig 2003-10-12 02:50:05.000000000 -0700
+++ /etc/rc.d/network 2005-02-09 10:44:05.000000000 -0800
@@ -206,7 +206,7 @@
eval ${args#*!}
;;
*)
- ifconfig $int $args
+ eval ifconfig $int $args
;;
esac
done < /etc/ifconfig.$int
>Release-Note:
>Audit-Trail:
From: Simas Mockevicius <symka@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/29317 CVS commit: src/etc/rc.d
Date: Tue, 28 Jun 2005 13:36:40 +0000 (UTC)
Module Name: src
Committed By: symka
Date: Tue Jun 28 13:36:40 UTC 2005
Modified Files:
src/etc/rc.d: network
Log Message:
PR/29317: ifconfig.if does not allow parameters with spaces
OKeyd by christos@
To generate a diff of this commit:
cvs rdiff -r1.48 -r1.49 src/etc/rc.d/network
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: symka@netbsd.org
State-Changed-When: Tue, 28 Jun 2005 14:00:49 +0000
State-Changed-Why:
Problem fixed.
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/29317 CVS commit: [netbsd-3] src/etc/rc.d
Date: Sat, 2 Jul 2005 23:29:48 +0000 (UTC)
Module Name: src
Committed By: tron
Date: Sat Jul 2 23:29:48 UTC 2005
Modified Files:
src/etc/rc.d [netbsd-3]: network
Log Message:
Pull up revision 1.49 (requested by symka in ticket #511):
PR/29317: ifconfig.if does not allow parameters with spaces
OKeyd by christos@
To generate a diff of this commit:
cvs rdiff -r1.47 -r1.47.2.1 src/etc/rc.d/network
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Jeff Rizzo <riz@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/29317 CVS commit: [netbsd-2] src/etc/rc.d
Date: Tue, 5 Jul 2005 21:23:17 +0000 (UTC)
Module Name: src
Committed By: riz
Date: Tue Jul 5 21:23:17 UTC 2005
Modified Files:
src/etc/rc.d [netbsd-2]: network
Log Message:
Pull up revision 1.49 (requested by symka in ticket #2038):
PR/29317: ifconfig.if does not allow parameters with spaces
OKeyd by christos@
To generate a diff of this commit:
cvs rdiff -r1.44.4.1 -r1.44.4.2 src/etc/rc.d/network
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>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.