summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2017-04-25 19:17:34 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2017-04-25 19:17:34 +0000
commit22f477dd64b3ae0a7ff0701c81492990b696aebe (patch)
tree592ec49223f8c1828c6b769d8e0548641cb30ad2 /etc
parentdc130eb1a759e98639839928b8ee99eaac35fe21 (diff)
Unbreak netstart for multiple inteface configurations like trunk
or carp. Ensure that the noglob option is disabled at the end of parse_hn_line() and ifstart(). Reported by Christer Solskogen and Stefan Wollny, thanks!
Diffstat (limited to 'etc')
-rw-r--r--etc/netstart4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/netstart b/etc/netstart
index 7c1d8ea5114..4a5eeaaba00 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.177 2017/04/24 20:31:48 rpe Exp $
+# $OpenBSD: netstart,v 1.178 2017/04/25 19:17:33 rpe Exp $
# Turn off Strict Bourne shell mode.
set +o sh
@@ -76,6 +76,7 @@ parse_hn_line() {
;;
esac
unset _c
+ set +o noglob
}
# Start a single interface.
@@ -124,6 +125,7 @@ ifstart() {
((_i++))
done
unset _cmds
+ set +o noglob
}
# Start multiple interfaces by driver name.