summaryrefslogtreecommitdiffstats
path: root/lib/network/network.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-20 19:52:37 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-20 19:52:37 +0000
commit3bad113b4c0ce6ac8d5982815ec65c821b7bd913 (patch)
tree952d161131a248b4e6b80cd34d1095e23e520faf /lib/network/network.pm
parentb3111e7e9c262d8c71e23a6dc78d5d7a888dacc3 (diff)
downloaddrakx-net-3bad113b4c0ce6ac8d5982815ec65c821b7bd913.tar
drakx-net-3bad113b4c0ce6ac8d5982815ec65c821b7bd913.tar.gz
drakx-net-3bad113b4c0ce6ac8d5982815ec65c821b7bd913.tar.bz2
drakx-net-3bad113b4c0ce6ac8d5982815ec65c821b7bd913.tar.xz
drakx-net-3bad113b4c0ce6ac8d5982815ec65c821b7bd913.zip
(detect_crda_domain) fix CRDA never set to 'US' when country not in CRDA domains
we would set CRDA to 'US' only if country was undefined instead of not in CRDA domains. might help quite a log bug reports... (bug introduced by eugeni in commit r256513 on Apr 15 2009) caught while performing perl_checker cleanup & fixes, the most beautiful being in detect_crda_domain(): - if (grep($country, @crda_domains)) { + if (member($country, @crda_domains)) { exercise left to the reader...
Diffstat (limited to 'lib/network/network.pm')
-rw-r--r--lib/network/network.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/network.pm b/lib/network/network.pm
index 62824d8..b2efee5 100644
--- a/lib/network/network.pm
+++ b/lib/network/network.pm
@@ -723,7 +723,7 @@ sub detect_crda_domain() {
if (!$crda) {
my $locale = lang::read($>);
my $country = $locale->{country};
- if (grep($country, @crda_domains)) {
+ if (member($country, @crda_domains)) {
$crda = $country;
} else {
$crda = "US";