From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114 Description of problem: When logrotate on a fresh Fedora installation is cofigured to "maillast", it will do a Segmentation fault, because the file to be e-mail is not present. My /etc/logrotate.d/syslog: /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { mail mnk sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true endscript } This fails because only messages, messages.1, messages.2 is in /var/log. messages.4 which logrote renames to messages.5 and send to mnk is missing. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Insert a "mail" statement in /etc/logrotate.d/syslog 2. Remove messages.4 from /var/log 3. Run logrotate with -f Additional info: /etc/cron.daily/logrotate: line 3: 18038 Segmentation fault /usr/sbin/logrotate /etc/logrotate.conf
Created attachment 96145 [details] This patch solves the probelm on my system I am not sure if it is a good solution, but it seems to work.
Problem already solved in logrotate-3.7.1.