Merge pull request #986 from ssssam/cron-permissions-fix
Fix permissions issue with 'cron' module
This commit is contained in:
commit
813053c51c
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue