savannah-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-cvs] administration/infra/bin sv_cvs_root_etc.pl


From: Sylvain Beucler
Subject: [Savannah-cvs] administration/infra/bin sv_cvs_root_etc.pl
Date: Thu, 10 Feb 2005 05:43:56 -0500

CVSROOT:        /cvsroot/administration
Module name:    administration
Branch:         
Changes by:     Sylvain Beucler <address@hidden>        05/02/10 10:43:56

Modified files:
        infra/bin      : sv_cvs_root_etc.pl 

Log message:
        Added TODOs

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/administration/administration/infra/bin/sv_cvs_root_etc.pl.diff?tr1=1.3&tr2=1.4&r1=text&r2=text

Patches:
Index: administration/infra/bin/sv_cvs_root_etc.pl
diff -u administration/infra/bin/sv_cvs_root_etc.pl:1.3 
administration/infra/bin/sv_cvs_root_etc.pl:1.4
--- administration/infra/bin/sv_cvs_root_etc.pl:1.3     Thu Feb 10 10:31:15 2005
+++ administration/infra/bin/sv_cvs_root_etc.pl Thu Feb 10 10:43:55 2005
@@ -103,6 +103,11 @@
 my $passwd_mtime = (stat("/etc/passwd"))[9];
 my $group_mtime = (stat("/etc/group"))[9];
 
+
+# TODO Optimizations:
+# - If the first group if already more recent that /etc/group, maybe we can 
stop the script directly. This does not handle the case where this first group 
was manually edited since the last /etc/group change, but that should only 
occur rarely
+# - Mimics authorized_keys support: read the file, and if it is already 
matching what we plan to write in it, just don't write
+# - Create an array of users that belong to each group, and only add these 
users to etc/passwd
 # Process active public projects
 for my $project_name (sort @projects) {
     chomp($project_name);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]