/[smeserver]/rpms/smeserver-qpsmtpd/sme10/smeserver-qpsmtpd-2.6.0-use_clamdscan_plugin.patch
ViewVC logotype

Annotation of /rpms/smeserver-qpsmtpd/sme10/smeserver-qpsmtpd-2.6.0-use_clamdscan_plugin.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Sun Apr 17 10:02:11 2016 UTC (8 years, 6 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-qpsmtpd-2_6_0-39_el7_sme, smeserver-qpsmtpd-2_6_0-25_el7_sme, smeserver-qpsmtpd-2_6_0-33_el7_sme, smeserver-qpsmtpd-2_6_0-30_el7_sme, smeserver-qpsmtpd-2_6_0-29_el7_sme, smeserver-qpsmtpd-2_6_0-24_el7_sme, smeserver-qpsmtpd-2_6_0-34_el7_sme, smeserver-qpsmtpd-2_6_0-31_el7_sme, smeserver-qpsmtpd-2_6_0-32_el7_sme, smeserver-qpsmtpd-2_6_0-15_el7_sme, smeserver-qpsmtpd-2_6_0-28_el7_sme, smeserver-qpsmtpd-2_6_0-38_el7_sme, smeserver-qpsmtpd-2_6_0-35_el7_sme, smeserver-qpsmtpd-2_6_0-17_el7_sme, smeserver-qpsmtpd-2_6_0-14_el7_sme, smeserver-qpsmtpd-2_6_0-16_el7_sme, smeserver-qpsmtpd-2_6_0-13_el7_sme, smeserver-qpsmtpd-2_6_0-19_el7_sme, smeserver-qpsmtpd-2_6_0-40_el7_sme, smeserver-qpsmtpd-2_6_0-36_el7_sme, smeserver-qpsmtpd-2_6_0-20_el7_sme, smeserver-qpsmtpd-2_6_0-23_el7_sme, smeserver-qpsmtpd-2_6_0-37_el7_sme, smeserver-qpsmtpd-2_6_0-27_el7_sme, smeserver-qpsmtpd-2_6_0-22_el7_sme, smeserver-qpsmtpd-2_6_0-11_el7_sme, smeserver-qpsmtpd-2_6_0-12_el7_sme, smeserver-qpsmtpd-2_6_0-21_el7_sme, smeserver-qpsmtpd-2_6_0-26_el7_sme
Changes since 1.1: +1 -1 lines
* Sun Apr 17 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-9.sme
- Fix max_size param for the clamdscan plugin [SME: 9465]

1 vip-ire 1.1 diff -Nur -x '*.orig' -x '*.rej' smeserver-qpsmtpd-2.6.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/80clamav mezzanine_patched_smeserver-qpsmtpd-2.6.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/80clamav
2     --- smeserver-qpsmtpd-2.6.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/80clamav 2006-02-05 15:38:30.000000000 +0100
3     +++ mezzanine_patched_smeserver-qpsmtpd-2.6.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/80clamav 2016-04-17 11:49:13.403205682 +0200
4     @@ -12,9 +12,12 @@
5    
6     $max_size =~ s/[kK]/000/;
7     $max_size =~ s/[mM]/000000/;
8     + # clamdscan takes size in kb
9     + $max_size = int($max_size / 1000);
10    
11     - $OUT = "virus/clamav" .
12     - " clamscan_path=/usr/bin/clamdscan" .
13     - " action=reject" .
14     - " max_size=$max_size";
15     + $OUT = "virus/clamdscan" .
16     + " scan_all yes" .
17     + " clamd_socket /var/clamav/clamd.socket" .
18     + " defer_on_error yes" .
19 vip-ire 1.2 + " max_size $max_size";
20 vip-ire 1.1 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed