[Fusionforge-commits] r15345 - trunk/src/plugins/scmcvs/common

Julien HEYMAN jheyman at fusionforge.org
Wed Apr 18 10:44:23 CEST 2012


Author: jheyman
Date: 2012-04-18 10:44:22 +0200 (Wed, 18 Apr 2012)
New Revision: 15345

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

Modified: trunk/src/plugins/scmcvs/common/CVSPlugin.class.php
===================================================================
--- trunk/src/plugins/scmcvs/common/CVSPlugin.class.php	2012-04-15 19:37:37 UTC (rev 15344)
+++ trunk/src/plugins/scmcvs/common/CVSPlugin.class.php	2012-04-18 08:44:22 UTC (rev 15345)
@@ -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