print some more information in Foreground mode (bb#317)

git-svn: trunk@2843
remotes/push_mirror/metadata
Tomasz Kojm 19 years ago
parent 66ba178504
commit 50b26397cc
  1. 4
      ChangeLog
  2. 16
      clamd/clamd.c

@ -1,3 +1,7 @@
Thu Feb 22 18:12:53 CET 2007 (tk)
---------------------------------
* clamd/clamd.c: print some more information in Foreground mode (bb#317)
Thu Feb 22 17:16:54 CET 2007 (tk)
---------------------------------
* shared/misc.c: drop rmdirs() and use cli_rmdirs() instead

@ -261,13 +261,6 @@ int main(int argc, char **argv)
}
#endif
logg("#clamd daemon "VERSION" (OS: "TARGET_OS_TYPE", ARCH: "TARGET_ARCH_TYPE", CPU: "TARGET_CPU_TYPE")\n");
if(logg_size)
logg("#Log file size limited to %d bytes.\n", logg_size);
else
logg("#Log file size limit disabled.\n");
#ifdef C_LINUX
procdev = 0;
if(stat("/proc", &sb) != -1 && !sb.st_size)
@ -304,9 +297,16 @@ int main(int argc, char **argv)
} else
foreground = 1;
logg("clamd daemon "VERSION" (OS: "TARGET_OS_TYPE", ARCH: "TARGET_ARCH_TYPE", CPU: "TARGET_CPU_TYPE")\n");
if(logg_size)
logg("Log file size limited to %d bytes.\n", logg_size);
else
logg("Log file size limit disabled.\n");
/* load the database(s) */
dbdir = cfgopt(copt, "DatabaseDirectory")->strarg;
logg("#Reading databases from %s\n", dbdir);
logg("Reading databases from %s\n", dbdir);
if(cfgopt(copt, "PhishingSignatures")->enabled)
dboptions |= CL_DB_PHISHING;

Loading…
Cancel
Save