[Zope-Checkins] CVS: Zope - z2.py:1.83.2.4

Casey Duncan casey@zope.com
Thu, 30 Jan 2003 09:41:45 -0500


Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv30359

Modified Files:
      Tag: Zope-2_6-branch
	z2.py 
Log Message:
Get rid of umask warning when running Zope in debug mode


=== Zope/z2.py 1.83.2.3 => 1.83.2.4 ===
--- Zope/z2.py:1.83.2.3	Tue Oct 22 10:15:30 2002
+++ Zope/z2.py	Thu Jan 30 09:41:42 2003
@@ -886,7 +886,7 @@
         raise
 
     # Check umask sanity if we're on posix.
-    if os.name == 'posix':
+    if os.name == 'posix' and not os.environ.get('Z_DEBUG_MODE'):
         # umask is silly, blame POSIX.  We have to set it to get its value.
         current_umask = os.umask(0)
         os.umask(current_umask)