From fc8d26a18765526f06d9ffaae2ae6bd4c454d0a3 Mon Sep 17 00:00:00 2001 From: Tomasz Kojm Date: Tue, 16 Mar 2010 12:18:08 +0100 Subject: [PATCH] allow sigtool use a different flevel for db building purposes --- libclamav/others.h | 1 + sigtool/sigtool.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libclamav/others.h b/libclamav/others.h index 6a7140c32..44480e349 100644 --- a/libclamav/others.h +++ b/libclamav/others.h @@ -55,6 +55,7 @@ #define CL_FLEVEL 50 #define CL_FLEVEL_DCONF CL_FLEVEL +#define CL_FLEVEL_SIGTOOL CL_FLEVEL extern uint8_t cli_debug_flag; diff --git a/sigtool/sigtool.c b/sigtool/sigtool.c index 2a183488e..8f8de5d82 100644 --- a/sigtool/sigtool.c +++ b/sigtool/sigtool.c @@ -67,6 +67,7 @@ #include "libclamav/default.h" #include "libclamav/fmap.h" #include "libclamav/readdb.h" +#include "libclamav/others.h" #define MAX_DEL_LOOKAHEAD 200 @@ -795,7 +796,7 @@ static int build(const struct optstruct *opts) return -1; } } else { - fl = cl_retflevel(); + fl = CL_FLEVEL_SIGTOOL; } sprintf(header + strlen(header), "%u:", fl);