netmask -> CIDR is worked out correctly #174341.

This commit is contained in:
Roy Marples 2007-04-13 10:30:57 +00:00
parent a07be0513a
commit eabcb48f71
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
Fix module loading, #174360.
s-s-d now changes group when changing user, #174362.
netmask -> CIDR is worked out correctly #174341.
* baselayout-2.0.0_alpha1 (11 Apr 2007)

View File

@ -86,7 +86,7 @@ _netmask2cidr() {
local IFS=.
for i in $1; do
while [ ${i} != "0" ] ; do
len=$((${len} + 1))
len=$((${len} + ${i} % 2))
i=$((${i} >> 1))
done
done