X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=configure.pl;h=ea152e8b7d18547d7b9a31f95684e5b08318b6ef;hp=2761b34727889aaf0dce0a8ad422b79985bdeb83;hb=ca1666a5ccf9893f7f20240c4335088859414ac2;hpb=2c6ebbdaeabadbda3af4bc7c748995215c045b82 diff --git a/configure.pl b/configure.pl index 2761b34..ea152e8 100755 --- a/configure.pl +++ b/configure.pl @@ -33,7 +33,7 @@ # #======================================================================== # -# Version __VERSION__, released __RELEASEDATE__. +# Version 2.0.0_CVS, released 18 Jan 2003. # # See http://backuppc.sourceforge.net. # @@ -472,6 +472,22 @@ if ( !defined($Conf{CgiURL}) ) { } } +# +# The smbclient commands have moved from hard-coded to the config file. +# $Conf{SmbClientArgs} no longer exists, so merge it into the new +# commands if it still exists. +# +if ( defined($Conf{SmbClientArgs}) ) { + if ( $Conf{SmbClientArgs} ne "" ) { + foreach my $param ( qw(SmbClientRestoreCmd SmbClientFullCmd + SmbClientIncrCmd) ) { + $newConf->[$newVars->{$param}]{text} + =~ s/(-E\s+-N)/$1 $Conf{SmbClientArgs}/; + } + } + delete($Conf{SmbClientArgs}); +} + # # IncrFill should now be off #