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

Matt Behrens matt@zigg.com
Mon, 18 Mar 2002 18:28:35 -0500


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

Modified Files:
	z2.py 
Log Message:
only check umask on posix systems, apparently Windows has umask
that always returns 0


=== Zope/z2.py 1.64 => 1.65 ===
 
     # Check umask sanity.
-    try:
+    if os.name == 'posix':
         # umask is silly, blame POSIX.  We have to set it to get its value.
         current_umask = os.umask(0)
         os.umask(current_umask)
@@ -779,8 +779,6 @@
             zLOG.LOG("z2", zLOG.INFO, 'Your umask of ' + current_umask + \
                      ' may be too permissive; for the security of your ' + \
                      'Zope data, it is recommended you use 077')
-    except:
-        pass
 
 except:
     # Log startup exception and tell zdaemon not to restart us.