Bug 58328

Summary: Bug in readState()
Product: [Retired] Red Hat Raw Hide Reporter: Leif Nixon <nixon>
Component: logrotateAssignee: Elliot Lee <sopwith>
Status: CLOSED RAWHIDE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-01-14 14:37:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch for logrotate.c none

Description Leif Nixon 2002-01-14 14:28:52 UTC
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.

Comment 1 Leif Nixon 2002-01-14 14:33:28 UTC
Created attachment 42394 [details]
patch for logrotate.c

Comment 2 Leif Nixon 2002-01-14 14:37:07 UTC
Oh, this is logrotate 3.6, BTW.

Comment 3 Elliot Lee 2002-01-29 18:59:50 UTC
Fixed in CVS -> 3.6.2