Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
3933e8af
Commit
3933e8af
authored
Mar 18, 2002
by
Matt Behrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only check umask on posix systems, apparently Windows has umask
that always returns 0
parent
c4b03a4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
z2.py
z2.py
+1
-3
No files found.
z2.py
View file @
3933e8af
...
...
@@ -770,7 +770,7 @@ try:
raise
# 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 @@ try:
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment