From e926da66f4dd7e336c8bb37826c3622c0ee94e87 Mon Sep 17 00:00:00 2001 From: todd <> Date: Sat, 2 Sep 2000 15:59:29 +0000 Subject: [PATCH] subtle bug .. global variables in a while loop need reset 'just incase' With: hostname.fxp0 having a last line of: inet6 alias 3ffe:... and hostname.gif0 having a first two lines of: giftunnel 1.2.3.4 dest 1.2.4.3 We end up with the command: ifconfig gif0 giftunnel alias 1.2.3.4 1.2.4.3 .. which is clearly wrong and fixed by this change --- src/etc/netstart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/etc/netstart b/src/etc/netstart index 4cf032a9..9dbcc3a3 100644 --- a/src/etc/netstart +++ b/src/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.71 2000/06/18 19:02:24 todd Exp $ +# $OpenBSD: netstart,v 1.72 2000/09/02 15:59:29 todd Exp $ # Returns true if $1 contains only alphanumerics isalphanumeric() { @@ -157,6 +157,8 @@ for hn in /etc/hostname.*; do bcaddr=$ext1 ext1=$ext2 ext2= + else + alias= fi cmd="ifconfig $if $af $alias $name " case "$dt" in