Fix a bug in logrotate.