Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Collapse <abckslash><newline> sequences in /etc/ifconfig.xxx...



details:   https://anonhg.NetBSD.org/src/rev/6223a18480f2
branches:  trunk
changeset: 757840:6223a18480f2
user:      apb <apb%NetBSD.org@localhost>
date:      Sun Sep 26 18:52:04 2010 +0000

description:
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.

diffstat:

 etc/rc.d/network             |  3 ++-
 share/man/man5/ifconfig.if.5 |  7 +++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r ed2affc576ae -r 6223a18480f2 etc/rc.d/network
--- a/etc/rc.d/network  Sun Sep 26 18:37:14 2010 +0000
+++ b/etc/rc.d/network  Sun Sep 26 18:52:04 2010 +0000
@@ -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 @@
                                )
                                ;;
                        esac |
+                       collapse_backslash_newline |
                        while read -r args; do
                                case "$args" in
                                ''|"#"*|create)
diff -r ed2affc576ae -r 6223a18480f2 share/man/man5/ifconfig.if.5
--- a/share/man/man5/ifconfig.if.5      Sun Sep 26 18:37:14 2010 +0000
+++ b/share/man/man5/ifconfig.if.5      Sun Sep 26 18:52:04 2010 +0000
@@ -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 @@
 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 .



Home | Main Index | Thread Index | Old Index