Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87683 - logrotate fails because of ._cfg* entries
Summary: logrotate fails because of ._cfg* entries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-02 09:25 UTC by David D. Huff Jr.
Modified: 2007-09-14 02:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ignore-hidden.patch (ignore-hidden.patch,517 bytes, patch)
2005-04-26 19:59 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David D. Huff Jr. 2005-04-02 09:25:28 UTC
While automagically dropping application config files into the /etc/logrotate.d directory looks good, well it doesn't work as well as it should. Because you never know how the application configuration is setup or timed, anytime you add an additional configuration file to the directory logrotate will fail for ALL APPLICATIONS in the /etc/logrotate.d directory until it has been found and removed. Putting even a hidden file into /etc/logrotate.d when updated will cause failure until found.

Logrotate reads *all* files in that directory hidden or not then attempts to process them. 

In the recent past it was the ._cfg file from mysql that did the damage.

Thanks
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-04-21 02:30:25 UTC
Qa/Basesytem people - your thoughts please.
Comment 2 SpanKY gentoo-dev 2005-04-21 06:00:32 UTC
why not just fix logrotate to ignore hidden files (anything that begins with a '.')

doesnt seem that big of a deal
Comment 3 Daniel Black (RETIRED) gentoo-dev 2005-04-26 01:45:48 UTC
Sounds good SpanKY. Unfortunately I'm not really available (http://dev.gentoo.org/devaway) nor have I really anything to do with logrotate (sure I fixed the Manifest once but that hardly counts as maintenance).

David if you want to attach a patch to the effect of comment #2 please do so and this will get fixed a lot quicker.
Comment 4 SpanKY gentoo-dev 2005-04-26 19:59:42 UTC
Created attachment 57348 [details, diff]
ignore-hidden.patch

try this patch out please ... it's for logrotate-3.7 ... ive never used
logrotate myself ;)
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-09-14 00:03:55 UTC
This seems to be in logrotate already.
Comment 6 David D. Huff Jr. 2007-09-14 00:19:12 UTC
You're probably correct since the problem sat for two and a half years without an update.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-09-14 02:10:36 UTC
David.Huff: it's in the source, I checked.