MFC r266267, r267636:

Fix an issue in range specification handling when a "-foo" is specified in
  ifconfig_IF_aliasN.
This commit is contained in:
hrs 2014-10-09 23:28:04 +00:00
parent ca07cfe57d
commit 26a421d9ed

View File

@ -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}\ }`
;;