Jelajahi Sumber

Setgid was ignored because of an identation problem

Ask Solem 13 tahun lalu
induk
melakukan
4afc52c38e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      celery/platforms.py

+ 1 - 1
celery/platforms.py

@@ -282,7 +282,7 @@ def set_effective_user(uid=None, gid=None):
         # If gid isn't defined, get the primary gid of the uer.
         if not gid and pwd:
             gid = pwd.getpwuid(uid).pw_gid
-            setgid(gid)
+        setgid(gid)
         setuid(uid)
     else:
         gid and setgid(gid)