Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 126ae67 commit c4ea8f8Copy full SHA for c4ea8f8
bin/diamond
@@ -207,8 +207,10 @@ def main():
207
os.initgroups(pwd.getpwuid(uid).pw_name, gid)
208
# Python 2.6
209
else:
210
- os.setgroups([e.gr_gid for e in grp.getgrall()
211
- if pwd.getpwuid(uid).pw_name in e.gr_mem] + [gid])
+ os.setgroups(
+ [e.gr_gid for e in grp.getgrall() if pwd.getpwuid(
212
+ uid).pw_name in e.gr_mem] + [gid]
213
+ )
214
215
if gid != -1 and os.getgid() != gid:
216
# Set GID
@@ -333,6 +335,7 @@ def main():
333
335
log.error("traceback: %s" % traceback.format_exc())
334
336
sys.exit(1)
337
338
+
339
if __name__ == "__main__":
340
if setproctitle:
341
setproctitle(os.path.basename(__file__))
0 commit comments