update_virus_scanners fix for Debian/Ubuntu

Julian Field MailScanner at ecs.soton.ac.uk
Thu Aug 14 14:24:54 IST 2008



Achim J. Latz wrote:
> Good day (and first post for me :)
>
> In /usr/sbin/update_virus_scanners the detection of the autoupdate 
> scripts will fail because of the following replacement:
>
>   UPDATER=`echo $WRAPPER | sed -e 's/-wrapper$/-autoupdate/'`
>
> At least in Debian and Ubuntu, the wrappers are stored in 
> /etc/MailScanner/wrapper/, but the autoupdate scripts are in 
> /etc/MailScanner/autoupdate/
>
> Example BitDefender:
>
> /usr/sbin/update_virus_scanners finds 
> /etc/MailScanner/wrapper/bitdefender-wrapper, then the above 
> expression substitutes for 
> /etc/MailScanner/wrapper/bitdefender-autoupdate, and then tests 
> whether the autoupdate script exists
>
>      if [ -x ${UPDATER} ]
>       then
>         # echo Updating $NAME
>         logger -p mail.info -t update.virus.scanners Running 
> autoupdate for $NAME
>         ${UPDATER} "${PACKAGEDIR}" >/dev/null 2>&1
>       fi
>
> HOWEVER, it will not find 
> /etc/MailScanner/wrapper/bitdefender-autoupdate because the file 
> actually lives in /etc/MailScanner/autoupdate/bitdefender-autoupdate.
>
> The replacement should IMHO read as follows, to replace all 
> occurrences of wrapper with autoupdate (including those in the path):
>
>   UPDATER=`echo $WRAPPER | sed -e 's/wrapper/autoupdate/g'`
>
> Is that a problem limited to the Debian version, or does it affect 
> other installations as well? Should I file a bug downstream?
Don't I just live for times when packagers arbitrarily change my layout 
of stuff, and
a) don't tell me
and
b) break things as a result, cause they couldn't be arsed to test it.

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list