[Fusionforge-commits] r15346 - branches/Branch_5_1/src/plugins/scmcvs/common

Julien HEYMAN jheyman at fusionforge.org
Wed Apr 18 11:00:23 CEST 2012


Author: jheyman
Date: 2012-04-18 11:00:22 +0200 (Wed, 18 Apr 2012)
New Revision: 15346

Modified:
   branches/Branch_5_1/src/plugins/scmcvs/common/CVSPlugin.class.php
Log:
Fix anonymous checkout with CVS pserver

Modified: branches/Branch_5_1/src/plugins/scmcvs/common/CVSPlugin.class.php
===================================================================
--- branches/Branch_5_1/src/plugins/scmcvs/common/CVSPlugin.class.php	2012-04-18 08:44:22 UTC (rev 15345)
+++ branches/Branch_5_1/src/plugins/scmcvs/common/CVSPlugin.class.php	2012-04-18 09:00:22 UTC (rev 15346)
@@ -223,8 +223,16 @@
 			system ("chmod 3777 $locks_dir") ;
 			if ($project->enableAnonSCM()) {
 				system ("chmod -R g+wXs,o+rX-w $repo") ;
+				system ("echo \"SystemAuth=no\" > $repo/CVSROOT/config");
+				system ("echo \"LockDir=$locks_dir\" >> $repo/CVSROOT/config");
+				system ("echo \"anonymous\" > $repo/CVSROOT/readers");
+				system ("echo \"anonymous:\" > $repo/CVSROOT/passwd");
 			} else {
 				system ("chmod -R g+wXs,o-rwx $repo") ;
+				system ("echo \"SystemAuth=no\" > $repo/CVSROOT/config");
+				system ("echo \"LockDir=$locks_dir\" >> $repo/CVSROOT/config");
+				system ("echo \"\" > $repo/CVSROOT/readers");
+				system ("echo \"\" > $repo/CVSROOT/passwd");
 			}
 		} else {
 			$unix_user = forge_get_config ('apache_user') ;




More information about the Fusionforge-commits mailing list