Red Hat Bugzilla – Bug 18754
logrotate does not handle log files with spaces in the file name
Last modified: 2007-04-18 12:29:07 EDT
Log files with spaces in their file names makes logrotate unable to parse
its state file. The error report sent from cron daemon says
error: bad line 34 in state file /var/lib/logrotate.status
Line 34 is
/var/log/samba/log.chief wiggum 2000-9-2
The file "/var/log/samba/log.chief wiggum" exists with normal permissions.
Logrotate does not rotate any log files when it fails to read its state
My guess is that logrotate uses space as field separator in the state file
and that it has no way of telling when a space is part of a file name or a
Version: logrotate-3.3.2-1 on redhat 6.2. Other versions or platforms
Fixed in the logrotate included with 7.0
The careful observer will note that the original bug was reported against 6.2 . Will the 7.0 fix released also work on 6.2, or is a backport to address the
original report in the works?
The sources will rebuild fine, the binary package won't work.