Cfengine, a popular administration and configuration tool that's provided in Fedora Extras, may create backup files with a .cfsaved extension of files that it modifies or replaces. It would be useful if logrotate ignored all *.cfsaved files, just like it currently ignores *.{rpmsave,rpmorig,rpmnew,swp,v,~}. Version-Release number of selected component (if applicable): 3.7.4-7 How reproducible: always Steps to Reproduce: 1. Let Cfengine modify file /etc/logrotate.d/foo and back up the file before modification as /etc/logrotate.d/foo.cfsaved. 2. Wait until 4:00am. Actual results: Logwatch complains about duplicate log entries in /etc/logrotate.d/foo*. Expected results: /etc/logrotate.d/foo.cfsaved is ignored. Additional info:
Does it just complain, or it stops working? In case everything work OK, I really don't like to ignore these files automatically. Note you can set it manually by tabooext option.
It looks like it stops working. I hadn't seen the tabooext option, so I'll start using that. Even though that option is present, though, it seems like it would be worth having things work "out of the box", and I suspect that Cfengine is popular enough to make handling it in particular worthwhile. (I could be wrong.) crontabs' /usr/bin/run-parts, for example, ignores *.cfsaved files. Thanks.
Patch for ignoring .cfsaved files was committed (to be consistent with crontabs package) and will be present in the next update.
Thank you.
logrotate-3.7.4-13.fc6 has been pushed for fc6, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report.