freebsd-ports/security/amavis-perl/files/patch-ab
Will Andrews 3d01a083e9 Add amavis-perl 10, a mail virus scanner (uses external antivirus).
PR:		23978
Submitted by:	Roman Shterenzon <roman@xpert.com>
2001-01-07 07:38:32 +00:00

20 lines
502 B
Text

--- amavis/amavis.in.orig Sun Dec 31 15:16:34 2000
+++ amavis/amavis.in Sun Dec 31 15:24:31 2000
@@ -414,7 +414,7 @@
do_exit($REGERR, __LINE__);
}
- my $filetype = `$file -b $TEMPDIR/parts/$part`;
+ my $filetype = `$file $TEMPDIR/parts/$part`;
chop $filetype;
do_debug("File-type of $part: $filetype\n");
@@ -609,7 +609,7 @@
}
# older versions of file report tnef files as data
- if ($filetype =~ /^data$/) {
+ if ($filetype =~ /:\sdata$/) {
# may be tnef
# checked already?