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
05ecffc7
Commit
05ecffc7
authored
Jul 19, 2016
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the standard libraries os.initgroups instead of the initgroups package.
parent
71f7d99d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
CHANGES.rst
CHANGES.rst
+4
-0
buildout.cfg
buildout.cfg
+1
-3
setup.py
setup.py
+0
-1
src/Zope2/Startup/__init__.py
src/Zope2/Startup/__init__.py
+2
-2
versions.cfg
versions.cfg
+2
-2
No files found.
CHANGES.rst
View file @
05ecffc7
...
...
@@ -92,6 +92,7 @@ Features Added
- Products.BTreeFolder2 = 3.0
- Products.ExternalMethod = 3.0
- Products.MailHost = 3.0
- Products.OFSP = 3.0
- Products.PythonScripts = 3.0
- Products.SiteErrorLog = 3.0
- Products.StandardCacheManagers = 3.0
...
...
@@ -107,6 +108,9 @@ Features Added
Restructuring
+++++++++++++
- Remove dependency on initgroups. Use the standard libraries os.initgroups
instead.
- Removed nt_svcutils support from zopectl.
- Python 2.6 is no longer supported. Use Python 2.7.
...
...
buildout.cfg
View file @
05ecffc7
...
...
@@ -63,13 +63,11 @@ eggs =
# RestrictedPython has an optional dependency on DateTime, make sure to run its
# tests with DateTime being available
RestrictedPython
initgroups
tempstorage
zExceptions
zLOG
ZopeUndo
# these are still dependencies of CMF. Test them here, so we don't have to
# define a CMF KGS
# Test optional dependencies.
Products.BTreeFolder2
Products.ExternalMethod
Products.MailHost
...
...
setup.py
View file @
05ecffc7
...
...
@@ -71,7 +71,6 @@ setup(
'ZopeUndo'
,
'docutils'
,
'five.globalrequest'
,
'initgroups'
,
'pytz'
,
'setuptools'
,
'tempstorage'
,
...
...
src/Zope2/Startup/__init__.py
View file @
05ecffc7
...
...
@@ -404,8 +404,8 @@ def dropPrivileges(cfg):
raise
ZConfig
.
ConfigurationError
(
msg
)
try
:
import
initgroups
initgroups
.
initgroups
(
effective_user
,
gid
)
from
os
import
initgroups
initgroups
(
effective_user
,
gid
)
os
.
setgid
(
gid
)
except
OSError
:
logger
.
exception
(
'Could not set group id of effective user'
)
...
...
versions.cfg
View file @
05ecffc7
...
...
@@ -10,11 +10,10 @@ Acquisition = 4.2.2
DateTime = 4.1.1
DocumentTemplate = 2.13.2
ExtensionClass = 4.1.2
initgroups = 2.13.0
Missing = 3.1
MultiMapping = 3.0
Persistence = 3.0a1
Products.OFSP =
2.13.2
Products.OFSP =
3.0
Products.ZCatalog = 3.2
Products.ZCTextIndex = 3.0
Record = 3.1
...
...
@@ -24,6 +23,7 @@ zLOG = 3.0
ZopeUndo = 4.1
# Optional dependencies
initgroups = 3.0
Products.BTreeFolder2 = 3.0
Products.ExternalMethod = 3.0
Products.MailHost = 3.0
...
...
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