Commit f88fed20 by Brian Harring

Enforce umask for cron module, so cron_file generated files are 0644.

Certain cron implementations get cranky if files in cron.* are group
writable.
parent 9b5fb9ad
......@@ -426,6 +426,8 @@ def main():
changed = False
res_args = dict()
# Ensure all files generated are only writable by the owning user. Primarily relevant for the cron_file option.
os.umask(022)
crontab = CronTab(module, user, cron_file)
if crontab.syslogging:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment