[evolvis-commits] r17558: Set umask 002 for the child, to prevent things like [TTID# 1118041]

mirabilos at evolvis.org mirabilos at evolvis.org
Tue Sep 20 11:44:47 CEST 2011


Author: mirabilos
Date: 2011-09-20 11:44:47 +0200 (Tue, 20 Sep 2011)
New Revision: 17558

Modified:
   trunk/gforge_base/evolvisforge/anonsvnsh/anoncvssh.c
   trunk/gforge_base/evolvisforge/anonsvnsh/debian/changelog
Log:
Set umask 002 for the child, to prevent things like [TTID# 1118041] 


Modified: trunk/gforge_base/evolvisforge/anonsvnsh/anoncvssh.c
===================================================================
--- trunk/gforge_base/evolvisforge/anonsvnsh/anoncvssh.c	2011-09-20 09:41:44 UTC (rev 17557)
+++ trunk/gforge_base/evolvisforge/anonsvnsh/anoncvssh.c	2011-09-20 09:44:47 UTC (rev 17558)
@@ -1,3 +1,4 @@
+/* $Id$ */
 /* $MirOS: src/libexec/anoncvssh/anoncvssh.c,v 1.9 2008/06/07 20:25:43 tg Exp $ */
 
 /*-
@@ -49,6 +50,7 @@
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/resource.h>
+#include <sys/stat.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
@@ -237,6 +239,12 @@
 	free(homedir);
 
 	/*
+	 * set umask 002 to keep group-write permissions on SCM repos
+	 */
+	/* note: leading-zero numbers are octal (base-8) numbers! */
+	umask(002);
+
+	/*
 	 * programme now "safe"
 	 */
 


Property changes on: trunk/gforge_base/evolvisforge/anonsvnsh/anoncvssh.c
___________________________________________________________________
Added: svn:keywords
   + Author CVSHeader Date Id LastChangedBy LastChangedDate LastChangedRevision Log Revision Source State

Modified: trunk/gforge_base/evolvisforge/anonsvnsh/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge/anonsvnsh/debian/changelog	2011-09-20 09:41:44 UTC (rev 17557)
+++ trunk/gforge_base/evolvisforge/anonsvnsh/debian/changelog	2011-09-20 09:44:47 UTC (rev 17558)
@@ -1,3 +1,9 @@
+evolvis-anonsvnsh (20110920) unstable; urgency=low
+
+  * [TTID# 1118041] Set umask 002 for the child
+
+ -- Thorsten Glaser <t.glaser at tarent.de>  Tue, 20 Sep 2011 11:43:52 +0200
+
 evolvis-anonsvnsh (20110121) unstable; urgency=low
 
   * Update description



More information about the evolvis-commits mailing list