allow sigtool use a different flevel for db building purposes

This commit is contained in:
Tomasz Kojm 2010-03-16 12:18:08 +01:00
parent 8f5bb092f8
commit fc8d26a187
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -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);