[Fusionforge-commits] FusionForge branch Branch_5_3 updated. 27d8e55bcee4653d8f41d1208909be519cfb7cb1

Sylvain Beucler beuc-inria at fusionforge.org
Tue Apr 22 12:24:33 CEST 2014

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, Branch_5_3 has been updated
       via  27d8e55bcee4653d8f41d1208909be519cfb7cb1 (commit)
       via  0e2f03a561d678e704c1dc2b148ebcda95746977 (commit)
      from  c2d6c247843517cfd09efe6f25625c3b95d6b620 (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 -----------------------------------------------------------------
commit 27d8e55bcee4653d8f41d1208909be519cfb7cb1
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Tue Apr 22 12:24:24 2014 +0200

    upgrade: drop user_group_pk_seq

diff --git a/src/db/20120605-drop-obsolete.sql b/src/db/20120605-drop-obsolete.sql
index 59d418e..c487961 100644
--- a/src/db/20120605-drop-obsolete.sql
+++ b/src/db/20120605-drop-obsolete.sql
@@ -1,6 +1,7 @@
 DROP VIEW IF EXISTS users_with_cvsflags_vw;
 DROP VIEW IF EXISTS groups_with_svn_vw;
 DROP TABLE user_group;
+DROP SEQUENCE user_group_pk_seq;
 DROP TABLE role_setting ;

commit 0e2f03a561d678e704c1dc2b148ebcda95746977
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Tue Apr 22 12:24:07 2014 +0200

    homedirs.php: use nss_usergroups rather than nss_passwd due to unix_status being sometimes 'A' even if the user left all groups

diff --git a/src/cronjobs/homedirs.php b/src/cronjobs/homedirs.php
index b330e70..4e13d5f 100755
--- a/src/cronjobs/homedirs.php
+++ b/src/cronjobs/homedirs.php
@@ -114,7 +114,7 @@ if (($fo = fopen(dirname(__FILE__) . '/../utils/default_page.php', 'r'))) {
 /* create user homes */
 $dirs = array_flip(glob("$hpfx/*/"));
-$res = db_query_params('SELECT login FROM nss_passwd', array());
+$res = db_query_params('SELECT DISTINCT(user_name) FROM nss_usergroups', array());
 foreach(util_result_column_to_array($res,0) as $uname) {
 	$uhome = "$hpfx/$uname/";
 	if (!isset($dirs[$uhome])) {


Summary of changes:
 src/cronjobs/homedirs.php         |    2 +-
 src/db/20120605-drop-obsolete.sql |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)


More information about the Fusionforge-commits mailing list