Skip to content

Commit

Permalink
Restore broken thumbshots
Browse files Browse the repository at this point in the history
  • Loading branch information
alkisg committed Jan 13, 2023
1 parent 17d5aa0 commit 85b6564
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions twisted/plugins/epoptesd.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,9 @@ def makeService(self, options):
gid = grp.getgrnam(config.system['SOCKET_GROUP'])[2]

if not os.path.isdir(config.system['DIR']):
umask = os.umask(0)
# `man 2 mkdir` cannot set the sticky bit, a chmod is needed
os.makedirs(config.system['DIR'], 0o2770)
os.umask(umask)
else:
os.chmod(config.system['DIR'], 0o2770)
os.chmod(config.system['DIR'], 0o2770)
os.chown(config.system['DIR'], -1, gid)

gui_service = internet.UNIXServer(
Expand Down

0 comments on commit 85b6564

Please sign in to comment.