summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-06 11:45:07 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-06 11:45:07 +0000
commit0f22d28a5c7cc3f56c252555fe04863f487bf3e8 (patch)
tree1e0d8f70cc4ec05b8dd323a42bde8134e70ccddf /perl-install
parent8841f50912a604e3e4d313a68e979e388b198fe1 (diff)
downloaddrakx-backup-do-not-use-0f22d28a5c7cc3f56c252555fe04863f487bf3e8.tar
drakx-backup-do-not-use-0f22d28a5c7cc3f56c252555fe04863f487bf3e8.tar.gz
drakx-backup-do-not-use-0f22d28a5c7cc3f56c252555fe04863f487bf3e8.tar.bz2
drakx-backup-do-not-use-0f22d28a5c7cc3f56c252555fe04863f487bf3e8.tar.xz
drakx-backup-do-not-use-0f22d28a5c7cc3f56c252555fe04863f487bf3e8.zip
(ppp_read_conf) override Authentication if it does not contain a digit character,
the empty string exists ...
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/modem.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/modem.pm b/perl-install/network/modem.pm
index b9a6603ff..08a4c3d6a 100644
--- a/perl-install/network/modem.pm
+++ b/perl-install/network/modem.pm
@@ -32,7 +32,7 @@ sub ppp_read_conf {
$modem->{device} ||= '/dev/modem';
my %l = getVarsFromSh(get_user_home() . "/.kde/share/config/kppprc");
add2hash(\%l, getVarsFromSh("$::prefix/usr/share/config/kppprc"));
- $l{Authentication} = 4 if !exists $l{Authentication};
+ $l{Authentication} = 4 if $l{Authentication} !~ /\d/;
$modem->{$_} ||= $l{$_} foreach qw(Authentication Gateway IPAddr SubnetMask);
$modem->{connection} ||= $l{Name};
$modem->{domain} ||= $l{Domain};