Package: atsar
Version: 1.7-2.1
Severity: important
Tags: patch

Hi,

since the NMU in December, atsar systems have begun to emit "rm:
cannot remove ‘/var/log/atsar’: Is a directory" mails in the midnight
hour. I have tracked this down to the line 

find $LOGDIR -name 'atsa*' -mtime +7 -exec rm {} \;

which has resulted into trying rm /var/log/atsar.

Changing the line to 

find $LOGDIR -mindepth 1 -name 'atsa*' -mtime +7 -exec rm {} \;

solves the issue by not finding /var/log/atsar itself.

Greetings
Marc


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-zgws1 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages atsar depends on:
ii  libc6  2.21-6

Versions of packages atsar recommends:
ii  cron  3.0pl1-128

atsar suggests no packages.

-- no debconf information

Reply via email to