Bug 58328 - Bug in readState()
Summary: Bug in readState()
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: logrotate
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-14 14:28 UTC by Leif Nixon
Modified: 2007-04-18 16:39 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-01-14 14:37:12 UTC
Embargoed:


Attachments (Terms of Use)
patch for logrotate.c (333 bytes, patch)
2002-01-14 14:33 UTC, Leif Nixon
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.