aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-05-16 01:49:48 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-05-16 01:49:48 +0000
commitb620326341af18b1b575cdce21c70db93490f37a (patch)
tree6f56e12ae9249625db2702e933b01ae0dd51f6e5
parent599631bda00f650cdfc6e3f39d112efc0bb7c6bf (diff)
downloadinitscripts-b620326341af18b1b575cdce21c70db93490f37a.tar
initscripts-b620326341af18b1b575cdce21c70db93490f37a.tar.gz
initscripts-b620326341af18b1b575cdce21c70db93490f37a.tar.bz2
initscripts-b620326341af18b1b575cdce21c70db93490f37a.tar.xz
initscripts-b620326341af18b1b575cdce21c70db93490f37a.zip
Fix IPv6 address validity check not to consider every non-empty 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 5ee91187..5800274c 100644
--- a/sysconfig/network-scripts/network-functions-ipv6
+++ b/sysconfig/network-scripts/network-functions-ipv6
@@ -698,7 +698,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