From 216a697f438942ac99f6fbd01822f376378efe2d Mon Sep 17 00:00:00 2001 From: Tomasz Kojm Date: Tue, 24 Aug 2004 00:50:29 +0000 Subject: [PATCH] only enable signature file type recognition for text files git-svn: trunk@788 --- clamav-devel/ChangeLog | 4 ++++ clamav-devel/libclamav/filetypes.c | 16 ++++++++++++---- clamav-devel/libclamav/filetypes.h | 3 ++- clamav-devel/libclamav/scanners.c | 9 ++++++--- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/clamav-devel/ChangeLog b/clamav-devel/ChangeLog index 92ff0b9ca..b288fa2d1 100644 --- a/clamav-devel/ChangeLog +++ b/clamav-devel/ChangeLog @@ -1,3 +1,7 @@ +Tue Aug 24 02:30:28 CEST 2004 (tk) +---------------------------------- + * libclamav: only enable signature file type recognition for text files + Mon Aug 23 22:32:02 CEST 2004 (tk) ---------------------------------- * include database info in version string (requested by Jason Haar diff --git a/clamav-devel/libclamav/filetypes.c b/clamav-devel/libclamav/filetypes.c index 9bfbed72b..cb077095a 100644 --- a/clamav-devel/libclamav/filetypes.c +++ b/clamav-devel/libclamav/filetypes.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "clamav.h" #include "filetypes.h" @@ -110,7 +111,7 @@ static const struct cli_magic_s cli_magic[] = { {0, "\060\046\262\165\216\146\317", 7, "WMA/WMV/ASF", CL_DATAFILE}, {0, ".RMF" , 4, "Real Media File", CL_DATAFILE}, - {-1, NULL, 0, NULL, CL_UNKNOWN_TYPE} + {-1, NULL, 0, NULL, CL_UNKNOWN_DATA_TYPE} }; static const struct cli_smagic_s cli_smagic[] = { @@ -136,12 +137,13 @@ static const struct cli_smagic_s cli_smagic[] = { {"3c536372697074", "HTML data", CL_HTMLFILE}, /*