bernhard: server/kolab/kolab kolab,1.17.2.2,1.17.2.3

cvs at intevation.de cvs at intevation.de
Mon May 10 19:10:05 CEST 2004


Author: bernhard

Update of /kolabrepository/server/kolab/kolab
In directory doto:/tmp/cvs-serv17805

Modified Files:
      Tag: KOLAB_1_0
	kolab 
Log Message:
Quoting password for shell command, otherwise it will fail
	when password contain shell meta characters (e.g. ">").


Index: kolab
===================================================================
RCS file: /kolabrepository/server/kolab/kolab/kolab,v
retrieving revision 1.17.2.2
retrieving revision 1.17.2.3
diff -u -d -r1.17.2.2 -r1.17.2.3
--- kolab	27 Apr 2004 18:11:24 -0000	1.17.2.2
+++ kolab	10 May 2004 17:10:03 -0000	1.17.2.3
@@ -688,7 +688,7 @@
 $configdata{'bind_pw'} = $kolab_config{'bind_pw'} || die "could not read bind_pw from $kolab_config";
 
 #martin
-my $hashcmd = $kolab_prefix."/sbin/slappasswd -s ".$kolab_config{'bind_pw'};
+my $hashcmd = $kolab_prefix."/sbin/slappasswd -s '".$kolab_config{'bind_pw'}."'";
 $configdata{'bind_pw_hash'} = `$hashcmd`;
 chomp($configdata{'bind_pw_hash'});
 





More information about the commits mailing list