Bug 25471 - whitespace after digits confuses config parser
whitespace after digits confuses config parser
Product: Red Hat Linux
Classification: Retired
Component: logrotate (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Erik Troan
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-02-01 06:47 EST by Jarno Huuskonen
Modified: 2007-04-18 12:31 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-02-01 06:47:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jarno Huuskonen 2001-02-01 06:47:54 EST
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
Comment 1 Erik Troan 2001-02-01 13:17:42 EST
This is fixed in the latest logrotate

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