소스 검색

Setgid was ignored because of an identation problem

Ask Solem 13 년 전
부모
커밋
902adadbe6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      celery/platforms.py

+ 1 - 1
celery/platforms.py

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