[From nobody Wed Jun  8 12:07:24 2005
Return-Path: &lt;zope-checkins-bounces@zope.org&gt;
Delivered-To: dc@awkly.org
Received: (qmail 14453 invoked by uid 89); 7 Jun 2005 03:41:53 -0000
Delivered-To: awkly.org-sidnei@awkly.org
Received: (qmail 14448 invoked by uid 1001); 7 Jun 2005 03:41:51 -0000
Received: from 63.240.213.173 by chico (envelope-from
	&lt;zope-checkins-bounces@zope.org&gt;,
	uid 64011) with qmail-scanner-1.23st 
	(clamdscan: 0.67. spamassassin: 2.63.  
	Clear:RC:0(63.240.213.173):SA:0(-2.6/6.5):. 
	Processed in 4.283853 secs); 07 Jun 2005 03:41:51 -0000
X-Spam-Status: No, hits=-2.6 required=6.5
Received: from cvs.zope.org (HELO mail.zope.org) (63.240.213.173)
	by 0 with SMTP; 7 Jun 2005 03:41:47 -0000
Received: from cvs.zope.org (localhost.localdomain [127.0.0.1])
	by mail.zope.org (Postfix) with ESMTP
	id E1E5D2032F8; Mon,  6 Jun 2005 23:47:35 -0400 (EDT)
X-Original-To: zope-checkins@zope.org
Delivered-To: zope-checkins@zope.org
Received: from cvs.zope.org (localhost.localdomain [127.0.0.1])
	by mail.zope.org (Postfix) with ESMTP
	id 002682032DA; Mon,  6 Jun 2005 23:47:35 -0400 (EDT)
From: &quot;Fred L. Drake, Jr.&quot; &lt;fdrake@gmail.com&gt;
To: zope-checkins@zope.org, zodb-checkins@zope.org,
	zope3-checkins@zope.org
Message-Id: &lt;20050607034735.002682032DA@mail.zope.org&gt;
Date: Mon,  6 Jun 2005 23:47:35 -0400 (EDT)
Cc: 
Subject: [Zope-Checkins] SVN: zdaemon/trunk/zdctl.py try to fix borked umask
	handling
X-BeenThere: zope-checkins@zope.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Zope source code checkin notifications &lt;zope-checkins.zope.org&gt;
List-Unsubscribe: &lt;http://mail.zope.org/mailman/listinfo/zope-checkins&gt;,
	&lt;mailto:zope-checkins-request@zope.org?subject=unsubscribe&gt;
List-Archive: &lt;http://mail.zope.org/pipermail/zope-checkins&gt;
List-Post: &lt;mailto:zope-checkins@zope.org&gt;
List-Help: &lt;mailto:zope-checkins-request@zope.org?subject=help&gt;
List-Subscribe: &lt;http://mail.zope.org/mailman/listinfo/zope-checkins&gt;,
	&lt;mailto:zope-checkins-request@zope.org?subject=subscribe&gt;
Sender: zope-checkins-bounces@zope.org
Errors-To: zope-checkins-bounces@zope.org
X-Spambayes-Classification: ham; 0.10

Log message for revision 30674:
  try to fix borked umask handling

Changed:
  U   zdaemon/trunk/zdctl.py

-=-
Modified: zdaemon/trunk/zdctl.py
===================================================================
--- zdaemon/trunk/zdctl.py	2005-06-07 03:26:25 UTC (rev 30673)
+++ zdaemon/trunk/zdctl.py	2005-06-07 03:47:34 UTC (rev 30674)
@@ -213,7 +213,9 @@
             args += self._get_override(&quot;-f&quot;, &quot;forever&quot;, flag=1)
             args += self._get_override(&quot;-s&quot;, &quot;sockname&quot;)
             args += self._get_override(&quot;-u&quot;, &quot;user&quot;)
-            args += self._get_override(&quot;-m&quot;, &quot;umask&quot;, oct(self.options.umask))
+            if self.options.umask:
+                args += self._get_override(&quot;-m&quot;, &quot;umask&quot;,
+                                           oct(self.options.umask))
             args += self._get_override(
                 &quot;-x&quot;, &quot;exitcodes&quot;, &quot;,&quot;.join(map(str, self.options.exitcodes)))
             args += self._get_override(&quot;-z&quot;, &quot;directory&quot;)
@@ -366,7 +368,11 @@
         print &quot;sockname:    &quot;, repr(self.options.sockname)
         print &quot;exitcodes:   &quot;, repr(self.options.exitcodes)
         print &quot;user:        &quot;, repr(self.options.user)
-        print &quot;umask:       &quot;, oct(self.options.umask)
+        umask = self.options.umask
+        if not umask:
+            umask = os.umask(0777)
+            os.umask(umask)
+        print &quot;umask:       &quot;, oct(umask)
         print &quot;directory:   &quot;, repr(self.options.directory)
         print &quot;logfile:     &quot;, repr(self.options.logfile)
         print &quot;hang_around: &quot;, repr(self.options.hang_around)

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

]