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.
This is fixed in the latest logrotate