Parcourir la source

[2067] make sure 'setgid' is initialized in main()

JINMEI Tatuya il y a 13 ans
Parent
commit
2d9a5fab35
2 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 2 2
      src/bin/bind10/bind10_messages.mes
  2. 1 0
      src/bin/bind10/bind10_src.py.in

+ 2 - 2
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.

+ 1 - 0
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.