[Fusionforge-commits] FusionForge branch master updated. v6.0.5-1988-g8c517bf

Franck Villaume nerville at libremir.placard.fr.eu.org
Wed Jul 12 16:51:24 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  8c517bf745346223e6551246909e9f461bcb050b (commit)
      from  d84d3b88b316056284558e1e5151643cc8f92154 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=8c517bf745346223e6551246909e9f461bcb050b

commit 8c517bf745346223e6551246909e9f461bcb050b
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Wed Jul 12 16:47:53 2017 +0200

    ftp homedir, set correct permissions

diff --git a/src/cronjobs/shell/homedirs.php b/src/cronjobs/shell/homedirs.php
index db60803..62868b6 100755
--- a/src/cronjobs/shell/homedirs.php
+++ b/src/cronjobs/shell/homedirs.php
@@ -136,7 +136,8 @@ while ($row = db_fetch_array($res)) {
 
 	if ($ftp_pfx && !is_dir($ftp_pfx . '/' . $groupname)) {
 		@mkdir($ftp_pfx . '/' . $groupname);
-		//XXX chown/chgrp/chmod?
+		system("chown -R root:$groupname $ftp_pfx/$groupname");
+		system("chmod -R 0770 $ftp_pfx/$groupname");
 	}
 
 	$ghome = $gpfx . '/' . $groupname;

-----------------------------------------------------------------------

Summary of changes:
 src/cronjobs/shell/homedirs.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list