Bug 75891

Summary: Space in filename corrupts logrotate state file
Product: [Retired] Red Hat Linux Reporter: John Hardin <johnh>
Component: logrotateAssignee: Elliot Lee <sopwith>
Status: CLOSED CURRENTRELEASE QA Contact: Jay Turner <jturner>
Severity: high Docs Contact:
Priority: medium    
Version: 6.2CC: srevivo
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-10-23 19:29:05 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:

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.