diff options
author | Robert Brewer <fumanchu@aminus.org> | 2008-08-15 19:32:27 +0000 |
---|---|---|
committer | Robert Brewer <fumanchu@aminus.org> | 2008-08-15 19:32:27 +0000 |
commit | 19036e5cedc34d8e7c4451076b7cdd2728724afb (patch) | |
tree | ad8a97d46087d73f88a4d2f2111b784f7e8217d0 | |
parent | f9f6b551a37a16b55f32a2edfa2ce0a0452d7a80 (diff) | |
download | cherrypy-19036e5cedc34d8e7c4451076b7cdd2728724afb.tar.gz |
Fix to buglet in DropPrivileges.
-rw-r--r-- | cherrypy/process/plugins.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/process/plugins.py b/cherrypy/process/plugins.py index cdbf4cdb..e2d5fe5d 100644 --- a/cherrypy/process/plugins.py +++ b/cherrypy/process/plugins.py @@ -215,9 +215,9 @@ class DropPrivileges(SimplePlugin): else: self.bus.log('Started as uid: %r gid: %r' % current_ids()) if self.gid is not None: - os.setgid(gid) + os.setgid(self.gid) if self.uid is not None: - os.setuid(uid) + os.setuid(self.uid) self.bus.log('Running as uid: %r gid: %r' % current_ids()) # umask |