Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Oct 2014 23:28:04 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r272858 - stable/10/etc
Message-ID:  <201410092328.s99NS4O5075746@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Thu Oct  9 23:28:04 2014
New Revision: 272858
URL: https://svnweb.freebsd.org/changeset/base/272858

Log:
  MFC r266267, r267636:
  
    Fix an issue in range specification handling when a "-foo" is specified in
    ifconfig_IF_aliasN.

Modified:
  stable/10/etc/network.subr
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/etc/network.subr
==============================================================================
--- stable/10/etc/network.subr	Thu Oct  9 23:25:57 2014	(r272857)
+++ stable/10/etc/network.subr	Thu Oct  9 23:28:04 2014	(r272858)
@@ -1043,7 +1043,7 @@ ifalias_af_common_handler()
 		case $_c in
 		${_af})
 			case $_tmpargs in
-			${_af}\ *-*)
+			${_af}\ *[0-9a-fA-F]-*)
 				ifalias_af_common_handler $_if $_af $_action \
 				`ifalias_expand_addr $_af $_action ${_tmpargs#${_af}\ }`
 			;;
@@ -1061,7 +1061,7 @@ ifalias_af_common_handler()
 	# Process the last component if any.
 	if [ -n "$_tmpargs}" ]; then
 		case $_tmpargs in
-		${_af}\ *-*)
+		${_af}\ *[0-9a-fA-F]-*)
 			ifalias_af_common_handler $_if $_af $_action \
 			`ifalias_expand_addr $_af $_action ${_tmpargs#${_af}\ }`
 		;;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410092328.s99NS4O5075746>