canonical / charm-logrotated

logrotate is a subordinate charm that ensure that all logrotate.d configurations within /etc/logrotate.d/ folder are modified accordingly to a retention period defined in the charm
0 stars 2 forks source link

charm-logrotate cron job created with wrong access permissions #17

Closed jneo8 closed 9 months ago

jneo8 commented 9 months ago

The code intends to create the charm-logrotate job with chmod 700, however, it uses os.chmod for this, and to do the right thing the code needs to use the constant 0o700 rather than 700. The integer 700 translates to octal 1274, which is totally different.


Imported from Launchpad using lp2gh.

jneo8 commented 9 months ago

(by dashmage) Bug has been fixed with this MR1.