Red Hat Bugzilla – Bug 75891
Space in filename corrupts logrotate state file
Last modified: 2015-01-07 19:01:04 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020606
Description of problem:
If the logrotate filespec matches a file with a space in its filename, the
logrotate state file will be rendered corrupt (unparseable?) and this error will
error: bad line 49 in state file /var/lib/logrotate.status
This apparently prevents other log files from being rotated, and can lead to
excessive use of disk space and unreasonably large log files.
Example: this occurred with the samba logrotate file where several samba users
have spaces in their computer's NetBIOS names, thus their samba log files have
Version-Release number of selected component (if applicable):
Is this fixed in a newer logrotate that we can use on RH6.2?
That's a pretty old version of logrotate you're using. Please try the latest, and reopen if the
problem persists. I know a fix was made related to filename quoting.