if ($project->enableAnonSCM()) {
util_create_file_with_contents ("$repo/CVSROOT/readers", "anonymous\n");
util_create_file_with_contents ("$repo/CVSROOT/passwd", "anonymous:\n");
- system ("chmod -R g+wXs,o+rX-w $repo") ;
+ system ("chmod -R g+rwXs,o+rX-w $repo") ;
} else {
util_create_file_with_contents ("$repo/CVSROOT/readers", "\n");
util_create_file_with_contents ("$repo/CVSROOT/passwd", "\n");
- system ("chmod -R g+wXs,o-rwx $repo") ;
+ system ("chmod -R g+rwXs,o-rwx $repo") ;
}
system ("chgrp -R $unix_group $repo") ;
} else {
if ($project->enableAnonSCM()) {
util_create_file_with_contents ("$repo/CVSROOT/readers", "anonymous\n");
util_create_file_with_contents ("$repo/CVSROOT/passwd", "anonymous:\n");
- system ("chmod g+wXs,o+rX-w $repo") ;
+ system ("chmod g+rwXs,o+rX-w $repo") ;
} else {
util_create_file_with_contents ("$repo/CVSROOT/readers", "\n");
util_create_file_with_contents ("$repo/CVSROOT/passwd", "\n");
- system ("chmod g+wXs,o-rwx $repo") ;
+ system ("chmod g+rwXs,o-rwx $repo") ;
}
}
}
$unix_group = 'scm_' . $project->getUnixName() ;
system ("find $repo -type d | xargs -I{} chmod g+s {}") ;
if ($project->enableAnonSCM()) {
- system ("chmod -R g+wX,o+rX-w $repo") ;
+ system ("chmod -R g+rwX,o+rX-w $repo") ;
} else {
- system ("chmod -R g+wX,o-rwx $repo") ;
+ system ("chmod -R g+rwX,o-rwx $repo") ;
}
system ("chgrp -R $unix_group $repo") ;
} else {
system("chgrp $unix_group $repo");
}
if ($project->enableAnonSCM()) {
- system("chmod g+wX,o+rX-w $repo") ;
+ system("chmod g+rwX,o+rX-w $repo") ;
} else {
- system("chmod g+wX,o-rwx $repo") ;
+ system("chmod g+rwX,o-rwx $repo") ;
}
} else {
$unix_user = forge_get_config('apache_user');