Collapse <abckslash><newline> sequences in /etc/ifconfig.xxx files read

by /etc/rc.d/network.  Fixes PR 41662 by Christoph Badura, which was
also reported independently by Jeremy C. Reed.
This commit is contained in:
apb 2010-09-26 18:52:04 +00:00
parent f265a7c0e8
commit cc2db4f5f3
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: network,v 1.60 2009/09/11 21:25:07 cegger Exp $
# $NetBSD: network,v 1.61 2010/09/26 18:52:04 apb Exp $
#
# PROVIDE: network
@ -259,6 +259,7 @@ network_start()
)
;;
esac |
collapse_backslash_newline |
while read -r args; do
case "$args" in
''|"#"*|create)

View File

@ -1,4 +1,4 @@
.\" $NetBSD: ifconfig.if.5,v 1.13 2009/01/09 09:39:05 apb Exp $
.\" $NetBSD: ifconfig.if.5,v 1.14 2010/09/26 18:52:04 apb Exp $
.\"
.\" Copyright (c) 1996 Matthew R. Green
.\" All rights reserved.
@ -24,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd January 9, 2009
.Dd September 26, 2010
.Dt IFCONFIG.IF 5
.Os
.Sh NAME
@ -63,6 +63,9 @@ evaluated sequentially.
In the case of a variable, semicolons may be used instead of
newlines, as described in
.Xr rc.conf 5 .
.Ao backslash Ac Ns Ao newline Ac
sequences in files are ignored, so long logical lines may be
made up of several shorter physical lines.
.Pp
Normally, a line will be evaluated as command line arguments to
.Xr ifconfig 8 .