Subject: amavisd-new should prioritize 'gzip -d' for uncompress support

From: Simon Deziel <[email-masked]>
Date: Wed, 23 Sep 2015 16:14:06 -0400

Package: amavisd-new
Version: 1:2.10.1-1

On Debian, the uncompress command is a wrapper script (in bash) around
'gzip -d'. As such, it would make sense to change the default search
order for the uncompress command.

The attached patch does the above.

Regards,
Simon
--- etc/conf.d/01-debian.orig	2015-09-23 16:09:48.210304984 -0400
+++ etc/conf.d/01-debian	2015-09-23 16:11:25.437966482 -0400
@@ -28,7 +28,7 @@
 $lzop   = 'lzop';
 $rpm2cpio   = ['rpm2cpio.pl','rpm2cpio'];
 $cabextract = 'cabextract';
-$uncompress = ['uncompress', 'gzip -d', 'zcat'];
+$uncompress = ['gzip -d', 'uncompress', 'zcat'];
 #$unfreeze   = ['unfreeze', 'freeze -d', 'melt', 'fcat']; #disabled (non-free, no security support)
 $unfreeze = undef; 
 $arc        = ['nomarch', 'arc'];