[Pkg-clamav-devel] Bug#580020: Bug#580020: clamav-base: always edits /etc/aliases (does not respect admin changes)

Stephen Gran sgran at debian.org
Mon May 3 09:04:25 UTC 2010


This one time, at band camp, Tollef Fog Heen said:
> From clamav-base.postinst:
> 
>   if [ -f /etc/aliases ] || [ -L /etc/aliases ]; then
>     if ! grep -qi "^clamav" /etc/aliases; then
>       echo "clamav: root" >> /etc/aliases
>       newal=`which newaliases || true`
>       if [ -n "$newal" ] && [ -x "$newal" ]; then
>         $newal || true
>       fi
>     fi
>   fi
> 
> This means there is no way for me to not have the clamav alias in
> /etc/aliases, for instance if I want to have it defined somewhere else.

How do other packages do this for system users?  I suppose just do it on
fresh install and never again?

I suppose I had never thought of removal of clamav from /etc/aliases as
user configuration, but I see your point.  Easy enough to fix.

Cheers,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/attachments/20100503/8aa7a6ed/attachment.pgp>


More information about the Pkg-clamav-devel mailing list