Merge pull request #986 from ssssam/cron-permissions-fix

Fix permissions issue with 'cron' module
This commit is contained in:
Brian Coca 2015-09-11 16:37:16 -04:00
commit 813053c51c

View file

@ -238,6 +238,7 @@ class CronTab(object):
fileh = open(self.cron_file, 'w')
else:
filed, path = tempfile.mkstemp(prefix='crontab')
os.chmod(path, 0o644)
fileh = os.fdopen(filed, 'w')
fileh.write(self.render())