diff options
author | Arnaud Desmons <adesmons@mandriva.com> | 2002-09-11 13:19:47 +0000 |
---|---|---|
committer | Arnaud Desmons <adesmons@mandriva.com> | 2002-09-11 13:19:47 +0000 |
commit | 8a519f874ea6e4fcfac32e33aea247c322adaf1d (patch) | |
tree | 0cfe7c0f07982143fb38a99fbee0c5a60c79f971 /samba_wizard/scripts/Smbconf.pm | |
parent | a57281f3a30699947dba7f44b6110c76ceb94856 (diff) | |
download | drakwizard-8a519f874ea6e4fcfac32e33aea247c322adaf1d.tar drakwizard-8a519f874ea6e4fcfac32e33aea247c322adaf1d.tar.gz drakwizard-8a519f874ea6e4fcfac32e33aea247c322adaf1d.tar.bz2 drakwizard-8a519f874ea6e4fcfac32e33aea247c322adaf1d.tar.xz drakwizard-8a519f874ea6e4fcfac32e33aea247c322adaf1d.zip |
doesn't load conf outside of a function to prevent no samba file
Diffstat (limited to 'samba_wizard/scripts/Smbconf.pm')
-rwxr-xr-x | samba_wizard/scripts/Smbconf.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samba_wizard/scripts/Smbconf.pm b/samba_wizard/scripts/Smbconf.pm index f2331235..13b36528 100755 --- a/samba_wizard/scripts/Smbconf.pm +++ b/samba_wizard/scripts/Smbconf.pm @@ -12,7 +12,6 @@ use strict; # so one variable cannot be commented and not in the same file. my $o = DrakconnectConf->new(); -my $old = read_conf("/etc/samba/smb.conf"); sub check { $> and return 1; @@ -117,10 +116,12 @@ sub printer_sharing { } sub get_workgroup { + my $old = read_conf("/etc/samba/smb.conf"); $old->{conf}->{global}{workgroup}{value}; } sub get_banner { + my $old = read_conf("/etc/samba/smb.conf"); $old->{conf}->{global}{"server string"}{value}; } |