Hasan Muhammad wrote:
> Here's the fix:
"Here's a fix" would be more accurate - there's more than one way to skin a cat, as the old saying goes..
> Notice the line number
>
> error: bad line 19 in state file /var/lib/logrotate.status
>
> Edit /var/lib/logrotate.status - go to that line number - Note
> the name of the Windows machine listed on that line (the name
> will include an embedded space--which is the source of the
> problem).
That, and a bug in the logrotate program.
The bug has been recognised and fixed in a later version of logrotate.
I've built that version for e-smith, and put it in my contrib directory on ftp.e-smith.org. The directory is:
ftp://ftp.e-smith.org/pub/e-smith/contrib/charlieb/RPMS/i386and the two filenames you need are:
logrotate-3.5-1.i386.rpm
popt-1.5-9.6x.i386.rpm
Update those files using "rpm -Uhv .....", then remove /var/lib/logrotate.status, and you should see no more such messages.
This has had only minimal testing with e-smith, so if you have a mission critical server, just put up with the harmless email messages, or rename your windows machines as suggested by Hasan.
Regards
Charlie