From: JINMEI Tatuya Date: Tue, 19 Jun 2012 19:04:28 +0000 (-0700) Subject: [2067] make sure 'setgid' is initialized in main() X-Git-Tag: trac2351_base~226^2~26^2~2^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d9a5fab35616e4bde53e1767e2ddbbcca5b3a93;p=thirdparty%2Fkea.git [2067] make sure 'setgid' is initialized in main() --- diff --git a/src/bin/bind10/bind10_messages.mes b/src/bin/bind10/bind10_messages.mes index ecb77a0dd0..c7515833e8 100644 --- a/src/bin/bind10/bind10_messages.mes +++ b/src/bin/bind10/bind10_messages.mes @@ -162,8 +162,8 @@ The boss module is sending a SIGTERM signal to the given process. % BIND10_SETGID setting GID to %1 The boss switches the process group ID to the given value. This happens -when BIND 10 starts with -u option, and the group ID should be of the group -the specified user. +when BIND 10 starts with the -u option, and the group ID will be set to +that of the specified user. % BIND10_SETUID setting UID to %1 The boss switches the user it runs as to the given UID. diff --git a/src/bin/bind10/bind10_src.py.in b/src/bin/bind10/bind10_src.py.in index 522b25992b..b9dbc3656d 100755 --- a/src/bin/bind10/bind10_src.py.in +++ b/src/bin/bind10/bind10_src.py.in @@ -1157,6 +1157,7 @@ def main(): # Check user ID. setuid = None + setgid = None username = None if options.user: # Try getting information about the user, assuming UID passed.