Bug 75891 - Space in filename corrupts logrotate state file
Summary: Space in filename corrupts logrotate state file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: logrotate
Version: 6.2
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-10-14 17:17 UTC by John Hardin
Modified: 2015-01-08 00:01 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-10-23 19:29:05 UTC
Embargoed:


Attachments (Terms of Use)

Description John Hardin 2002-10-14 17:17:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020606

Description of problem:

If the logrotate filespec matches a file with a space in its filename, the
logrotate state file will be rendered corrupt (unparseable?) and this error will
be logged:

  error: bad line 49 in state file /var/lib/logrotate.status

This apparently prevents other log files from being rotated, and can lead to
excessive use of disk space and unreasonably large log files.

Example: this occurred with the samba logrotate file where several samba users
have spaces in their computer's NetBIOS names, thus their samba log files have
embedded spaces.


Version-Release number of selected component (if applicable):

logrotate-3.3.2-1

Is this fixed in a newer logrotate that we can use on RH6.2?


How reproducible:
Didn't try.

Comment 1 Elliot Lee 2002-12-10 18:29:15 UTC
That's a pretty old version of logrotate you're using. Please try the latest, and reopen if the 
problem persists. I know a fix was made related to filename quoting.


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