aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-08-03 00:39:05 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-08-03 00:39:05 +0000
commitc376f2150137cee99c5599ba0aed7588c08e17a3 (patch)
tree6e8db978cac250d46a5b24f527f75d8c98e24fbd
parentb272a188dd8231a1c0bba27fb08b8acf93d738e8 (diff)
downloadinitscripts-c376f2150137cee99c5599ba0aed7588c08e17a3.tar
initscripts-c376f2150137cee99c5599ba0aed7588c08e17a3.tar.gz
initscripts-c376f2150137cee99c5599ba0aed7588c08e17a3.tar.bz2
initscripts-c376f2150137cee99c5599ba0aed7588c08e17a3.tar.xz
initscripts-c376f2150137cee99c5599ba0aed7588c08e17a3.zip
Reapply fix from rev 1.34:
Fix IPv6 address validity check not to consider every string valid.
-rw-r--r--sysconfig/network-scripts/network-functions-ipv62
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6
index 5b4e0f29..3753e18a 100644
--- a/sysconfig/network-scripts/network-functions-ipv6
+++ b/sysconfig/network-scripts/network-functions-ipv6
@@ -716,7 +716,7 @@ ipv6_test_ipv6_addr_valid() {
local address_implicit="`echo $testipv6addr_valid | awk -F/ '{ print $1 }'`"
# Test for a valid format
- if ! echo "$address_implicit" | LC_ALL=C egrep -q '^[[:xdigit:]]|[:\.]*$'; then
+ if ! echo "$address_implicit" | LC_ALL=C egrep -q '^[[:xdigit:]:.]*$'; then
if [ "$modequiet" != "quiet" ]; then
ipv6_log $"Given IPv6 address '$testipv6addr_valid' is not valid" err $fn
fi