mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-24 16:31:58 -04:00
spam syslog with start events (bb#1557)
git-svn: trunk@5048
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
Fri Apr 17 18:23:44 CEST 2009 (acab)
|
||||
------------------------------------
|
||||
* clamav-milter/clamav-milter.c: spam syslog with start events (bb#1557)
|
||||
|
||||
Fri Apr 17 16:47:44 EEST 2009 (edwin)
|
||||
-------------------------------------
|
||||
* contrib/mpoolparse/mpoolparse.pl, contrib/mpoolparse/process.pl:
|
||||
|
||||
@@ -51,6 +51,7 @@ int main(int argc, char **argv) {
|
||||
char *my_socket, *pt;
|
||||
const struct optstruct *opt;
|
||||
struct optstruct *opts;
|
||||
time_t currtime;
|
||||
int ret;
|
||||
|
||||
memset(&descr, 0, sizeof(struct smfiDesc));
|
||||
@@ -160,7 +161,6 @@ int main(int argc, char **argv) {
|
||||
logg_verbose = mprintf_verbose = optget(opts, "LogVerbose")->enabled;
|
||||
|
||||
if((opt = optget(opts, "LogFile"))->enabled) {
|
||||
time_t currtime;
|
||||
logg_file = opt->strarg;
|
||||
if(strlen(logg_file) < 2 || logg_file[0] != '/') {
|
||||
fprintf(stderr, "ERROR: LogFile requires full path.\n");
|
||||
@@ -168,13 +168,6 @@ int main(int argc, char **argv) {
|
||||
optfree(opts);
|
||||
return 1;
|
||||
}
|
||||
time(&currtime);
|
||||
if(logg("#+++ Started at %s", ctime(&currtime))) {
|
||||
fprintf(stderr, "ERROR: Can't initialize the internal logger\n");
|
||||
logg_close();
|
||||
optfree(opts);
|
||||
return 1;
|
||||
}
|
||||
} else
|
||||
logg_file = NULL;
|
||||
|
||||
@@ -195,6 +188,13 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
#endif
|
||||
|
||||
time(&currtime);
|
||||
if(logg("#+++ Started at %s", ctime(&currtime))) {
|
||||
fprintf(stderr, "ERROR: Can't initialize the internal logger\n");
|
||||
logg_close();
|
||||
optfree(opts);
|
||||
return 1;
|
||||
}
|
||||
if((opt = optget(opts, "TemporaryDirectory"))->enabled)
|
||||
tempdir = opt->strarg;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user