Package: logrotate Version: 3.7.8-6 Severity: normal Line numbers reported with some messages appear to be off by one (too low).
For example, with /etc/logrotate.d/rsyslog starting as follows (line numbers added): 1 /var/log/syslog 2 { 3 rotate 7 4 daily 5 missingok 6 notifempty 7 delaycompress 8 compress 9 postrotate 10 invoke-rc.d rsyslog reload > /dev/null 11 endscript 12 } 13 14 /test 15 /test running logrotate yields: error: rsyslog:13 duplicate log entry for /test even though there's no test on line 13. For an error on line 1, logrotate does correctly report line 1 (not line 0), so the problem does not seem to be in line numbering itself, but instead in keeping track of the line number corresponding to the parsing state. -- Package-specific info: Contents of /etc/logrotate.d total 60 drwxr-xr-x 2 root root 4096 Jan 30 20:03 RCS -rw-r--r-- 1 root root 194 Sep 12 22:55 apache2 -rw-r--r-- 1 root root 173 Apr 15 2011 apt -rw-r--r-- 1 root root 79 Aug 10 2011 aptitude -rw-r--r-- 1 root root 248 Nov 28 2011 cups -rw-r--r-- 1 root root 232 Nov 10 2011 dpkg -rw-r--r-- 1 root root 146 May 12 2011 exim4-base -rw-r--r-- 1 root root 126 May 12 2011 exim4-paniclog -rw-r--r-- 1 root root 217 Apr 6 2012 fail2ban -rw-r--r-- 1 root root 322 Jun 29 2010 ippl -rw-r--r-- 1 root root 94 Aug 8 2010 ppp -rw-r--r-- 1 root root 6747 Feb 1 11:02 rsyslog -rw-r--r-- 1 root root 558 Oct 14 23:04 rsyslog~ -rw-r--r-- 1 root root 322 Apr 30 2012 samba -- System Information: Debian Release: 6.0.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages logrotate depends on: ii base-passwd 3.5.22 Debian base system master password ii cron 3.0pl1-116 process scheduling daemon ii libc6 2.11.3-4 Embedded GNU C Library: Shared lib ii libpopt0 1.16-1 lib for parsing cmdline parameters ii libselinux1 2.0.96-1 SELinux runtime shared libraries Versions of packages logrotate recommends: ii bsd-mailx [mailx] 8.1.2-0.20100314cvs-1 simple mail user agent logrotate suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org