[Pkg-aide-maintainers] Bug#544414: /etc/cron.daily/aide: line 159: LOGHEAD: unbound variable

Marc Haber mh+debian-packages at zugschlus.de
Thu Sep 3 14:41:54 UTC 2009


tags #544414 confirmed pending
thanks

On Mon, Aug 31, 2009 at 02:09:23PM +0200, xcomm wrote:
> Just getting this error messages from aide.cron on unstable servers since some days.
> 
> /etc/cron.daily/aide:
> /etc/cron.daily/aide: line 159: LOGHEAD: unbound variable
> run-parts: /etc/cron.daily/aide exited with return code 1
> 
> I'm not sure why this happens, as there is a test here?
> 
> vi +"159" /etc/cron.daily/aide
> 
> 159     if [ -n "$LOGHEAD" ]; then
> 160       printf "$LOGHEAD\n" | frame >> "$LOGFILE"
> 161       printf "\n" >> "$LOGFILE"
> 162     fi

If you test an unprotected unbound variable, the shell will barf as
well. ${LOGHEAD:-} would be correct, fixed in svn.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835





More information about the Pkg-aide-maintainers mailing list