Red Hat Bugzilla – Bug 58328
Bug in readState()
Last modified: 2007-04-18 12:39:00 EDT
There seems to be a bug in the readState() function in logrotate.c;
an if statement checks the value of an uninitialized FILE* variable f, leading
to an "error stat()ing state file" error messsage and exit(1) if f happens
to be NULL. See attached patch.
Created attachment 42394 [details]
patch for logrotate.c
Oh, this is logrotate 3.6, BTW.
Fixed in CVS -> 3.6.2