Package: tmpreaper
Version: 1.6.13+nmu1
Severity: normal

It seems as if tmpreaper's /etc/tmpreaper.conf has the following:


if grep '^TMPTIME=' /etc/default/rcS >/dev/null 2>&1; then
    eval $(grep '^TMPTIME=' /etc/default/rcS)
fi
if [ -n "$TMPTIME" -a "$TMPTIME" -gt 0 ]; then
    TMPREAPER_TIME=${TMPTIME}d
else
    TMPREAPER_TIME=7d
fi

The problem is that /etc/default/rcS has:

#TMPTIME=0

on every machine I've upgraded from squeeze to wheezy.

That means that the grep will not find ^TMPTIME, and then the if line
will test an empty variable against 0, resulting in the 'integer
expression expected'. 

I believe that the right thing to do here would be to initialize
TMPREAPER_TIME to be 0 if it is unset, or test to see if the variable
is unset before comparing it to an integer.

micah


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

Kernel: Linux 3.10-3-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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to