Your message dated Wed, 22 Aug 2018 14:33:47 +0200 with message-id <CAJ2a_DdNrXf76BYNBu_k3vu7cB3nF5vFhg=r750jh8psc7t...@mail.gmail.com> and subject line has caused the Debian Bug report #165548, regarding logrotate: loop error results in trying to rename a file to itself to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 165548: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=165548 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: logrotate Version: 3.6.5-2 Severity: wishlist In the file logrotate.c the line: for (i = rotateCount + logStart; (i >= 0) && !hasErrors; i--) { Should be changed to: for (i = rotateCount + logStart - 1; (i >= 0) && !hasErrors; i--) { Otherwise when rotating the log files you'll see something like the following in strace: rename("/var/log/ddtcd.log.6.gz", "/var/log/ddtcd.log.6.gz") = 0 rename("/var/log/ddtcd.log.5.gz", "/var/log/ddtcd.log.6.gz") = 0 rename("/var/log/ddtcd.log.4.gz", "/var/log/ddtcd.log.5.gz") = 0 rename("/var/log/ddtcd.log.3.gz", "/var/log/ddtcd.log.4.gz") = 0 rename("/var/log/ddtcd.log.2.gz", "/var/log/ddtcd.log.3.gz") = 0 rename("/var/log/ddtcd.log.1.gz", "/var/log/ddtcd.log.2.gz") = 0 rename("/var/log/ddtcd.log.0.gz", "/var/log/ddtcd.log.1.gz") = 0 -- System Information Debian Release: testing/unstable Kernel Version: Linux lyta 2.4.19lsm #1 Wed Sep 25 15:49:15 CEST 2002 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux Versions of the packages logrotate depends on: ii base-passwd 3.4.2 Debian Base System Password/Group Files ii cron 3.0pl1-72.se4 management of regular background processing ii libc6 2.3.1-1 GNU C Library: Shared libraries and Timezone ii libpopt0 1.6.4-2 lib for parsing cmdline parameters anacron Not installed or no info
--- End Message ---
--- Begin Message ---Fixed upstream long ago.
--- End Message ---

