Package: approx
Version: 5.7-3
Severity: minor
Tags: patch

Cron job for cleanin up old files prints all deleted file to stdout. This
results in strange mail messages from cron daemon.

Obvious fix:

diff -r b3d53714042b cron.weekly/approx
--- a/cron.weekly/approx        Wed Jul 05 14:32:01 2017 +0300
+++ b/cron.weekly/approx        Thu Jul 06 09:33:00 2017 +0300
@@ -9,7 +9,7 @@
 max_age=1000

 # Remove old files
-find $cache -type f -mtime +$max_age -delete -print
+find $cache -type f -mtime +$max_age -delete

 # Remove empty files and directories
 find $cache -empty -delete

-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: armel (armv5tel)

Kernel: Linux 4.9.0-3-marvell
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), 
LANGUAGE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages approx depends on:
ii  adduser                      3.115
ii  bzip2                        1.0.6-8.1
ii  curl                         7.52.1-5
ii  debconf [debconf-2.0]        1.5.61
ii  init-system-helpers          1.48
ii  libc6                        2.24-11+deb9u1
ii  libpcre3                     2:8.39-3
ii  rsyslog [system-log-daemon]  8.24.0-1
ii  xz-utils                     5.2.2-1.2+b1

approx recommends no packages.

Versions of packages approx suggests:
pn  libconfig-model-approx-perl  <none>

-- Configuration Files:
/etc/approx/approx.conf changed [not included]
/etc/cron.weekly/approx changed [not included]

-- debconf information:
* approx/port: 9999

Reply via email to