summaryrefslogtreecommitdiffstats
path: root/client_wizard
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-11-05 16:57:20 +0000
committerFlorent Villard <warly@mandriva.com>2003-11-05 16:57:20 +0000
commit79843e9711f1e21823df989c9200031514e8e0fc (patch)
tree5e5efa466486b82db0b63b072e517a5e0d82f749 /client_wizard
parent77f1ad96d339974fe8da213ed6ab7e6956e7409c (diff)
downloaddrakwizard-79843e9711f1e21823df989c9200031514e8e0fc.tar
drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.tar.gz
drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.tar.bz2
drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.tar.xz
drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.zip
fix ftp anonymous mode
fix ntp wizard fix bind config
Diffstat (limited to 'client_wizard')
-rwxr-xr-xclient_wizard/Bind_client.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/client_wizard/Bind_client.pm b/client_wizard/Bind_client.pm
index b7d065a9..44b692e8 100755
--- a/client_wizard/Bind_client.pm
+++ b/client_wizard/Bind_client.pm
@@ -162,9 +162,11 @@ sub do_it {
my $dc = "$4" if $o->{var}{client_ip} =~ /(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/;
my $file="/var/named/$wiz_domain_name.db";
+ my $client_name = $o->{var}{client_name};
+ $client_name =~ s/\.$wiz_domain_name$//;
MDK::Common::cp_af($file, $file.".orig");
open(NEW, ">> $file") or die "can not open $file";
- print NEW "\n$o->{var}{client_name} IN A $o->{var}{client_ip} ; $date\n\n";
+ print NEW "\n$client_name IN A $o->{var}{client_ip} ; $date\n\n";
close(NEW) or die "can not close $file";
up_serial($file);