Package: apticron
Version: 1.1.57
Severity: normal
Tags: patch

Apticron lists all FQDNs in email when ALL_FQDNS is set to "0". This is because 
this option is checked with the test "-n".

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
--- apticron.old	2014-10-01 18:20:51.000000000 +0200
+++ apticron	2015-11-18 00:10:43.307096557 +0100
@@ -75,7 +75,7 @@
 [ -e /etc/apticron/apticron.conf ] && . /etc/apticron/apticron.conf
 
 # Force resolving and showing all FQDNs
-if [ -n "$ALL_FQDNS" ] ; then
+if [ "$ALL_FQDNS" = "1" ] ; then
 	SYSTEM=`/bin/hostname --all-fqdns`
 fi
 

Reply via email to