Red Hat Bugzilla – Bug 25471
whitespace after digits confuses config parser
Last modified: 2007-04-18 12:31:01 EDT
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.
Steps to Reproduce:
1. add space after rotate 'number' to logrotate.conf
2. try to run logrotate
This is fixed in the latest logrotate