Bug 25471

Summary: whitespace after digits confuses config parser
Product: [Retired] Red Hat Linux Reporter: Jarno Huuskonen <jarno.huuskonen>
Component: logrotateAssignee: Erik Troan <ewt>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-01 11:47:57 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 Jarno Huuskonen 2001-02-01 11:47:54 UTC
If logrotate.conf has a line like 'rotate 5 ' (without the ' chars)
logrotate complains that '5 ' is bad rotation count.

The problem seems to be in config.c use of strtoul to parse the value.

Reproducible: Always
Steps to Reproduce:
1. add space after rotate 'number' to logrotate.conf
2. try to run logrotate
3.

Comment 1 Erik Troan 2001-02-01 18:17:42 UTC
This is fixed in the latest logrotate