/[smeserver]/rpms/smeserver-clamav/sme7/smeserver-clamav-1.2.0-ParamsAndOutput.patch
ViewVC logotype

Annotation of /rpms/smeserver-clamav/sme7/smeserver-clamav-1.2.0-ParamsAndOutput.patch

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


Revision 1.1 - (hide annotations) (download)
Tue Jun 12 17:25:36 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-clamav-1_2_0-14_el4_sme, smeserver-clamav-1_2_0-21_el4_sme, smeserver-clamav-1_2_0-16_el4_sme, smeserver-clamav-1_2_0-17_el4_sme, smeserver-clamav-1_2_0-26_el4_sme, smeserver-clamav-1_2_0-18_el4_sme, smeserver-clamav-1_2_0-19_el4_sme, smeserver-clamav-1_2_0-23_el4_sme, smeserver-clamav-1_2_0-25_el4_sme, smeserver-clamav-1_2_0-15_el4_sme, smeserver-clamav-1_2_0-22_el4_sme, smeserver-clamav-1_2_0-24_el4_sme
Import on branch sme7 of package smeserver-clamav-1.2.0-14.el4.sme.src.rpm

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' smeserver-clamav-1.2.0/root/sbin/e-smith/smeserver-clamscan mezzanine_patched_smeserver-clamav-1.2.0/root/sbin/e-smith/smeserver-clamscan
2     --- smeserver-clamav-1.2.0/root/sbin/e-smith/smeserver-clamscan 2006-12-13 03:43:25.000000000 -0700
3     +++ mezzanine_patched_smeserver-clamav-1.2.0/root/sbin/e-smith/smeserver-clamscan 2006-12-13 03:43:20.000000000 -0700
4     @@ -29,6 +29,8 @@
5    
6     my $MailReport = $db->get_prop("clamav", "FilesystemScanReportTo") || 'admin';
7    
8     +my $ArchiveRatio = $db->get_prop("clamav", "ArchiveMaxCompressionRatio") || 0;
9     +
10     my $clamscan_opts = " --recursive --infected --stdout" .
11     " --log /var/log/clamd/clamscan.log";
12    
13     @@ -42,10 +44,18 @@
14    
15     $clamscan_opts .= " --exclude=$_" for (@exclude);
16    
17     +$clamscan_opts .= " --max-ratio=$ArchiveRatio";
18     +
19     +$clamscan_opts .= " --no-html"
20     + if ($db->get_prop("clamav", "ScanHTML") || "yes") eq "no";
21     +
22     +$clamscan_opts .= " --no-mail"
23     + if ($db->get_prop("clamav", "ScanMail") || "yes") eq "no";
24     +
25     $clamscan_opts .= " --move=$quarantine_dir"
26     if ($db->get_prop("clamav", "Quarantine") || "disabled") eq "enabled";
27    
28     -open CLAMSCAN, "-|", "nice /usr/bin/clamscan $clamscan_opts $filesystems 2>\&1";
29     +open CLAMSCAN, "-|", "nice /usr/bin/clamscan $clamscan_opts $filesystems 2> /var/log/clamd/smeserver-clamscan.log";
30    
31     my @report = <CLAMSCAN>;
32     close CLAMSCAN;

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