diff options
author | hrs <hrs@FreeBSD.org> | 2014-10-09 23:28:04 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2014-10-09 23:28:04 +0000 |
commit | 26a421d9ed86751e304428543563be0b61220bd2 (patch) | |
tree | 16e3df6022f3642048bce4c526ad3245bd54963b | |
parent | ca07cfe57d03fa85669d0ee973e22437cc6c5f24 (diff) | |
download | FreeBSD-src-26a421d9ed86751e304428543563be0b61220bd2.zip FreeBSD-src-26a421d9ed86751e304428543563be0b61220bd2.tar.gz |
MFC r266267, r267636:
Fix an issue in range specification handling when a "-foo" is specified in
ifconfig_IF_aliasN.
-rw-r--r-- | etc/network.subr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/network.subr b/etc/network.subr index c500041..5879baf 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -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}\ }` ;; |