c4w: reverse verbose logic

remotes/push_mirror/vc9-vt-dnd
aCaB 15 years ago
parent 478e8c3f01
commit 0dbc437202
  1. 4
      win32/clamav-for-windows/clamav-for-windows/main.c
  2. 4
      win32/clamav-for-windows/freshclamwrap/flog.c

@ -54,9 +54,9 @@ BOOL init() {
if(ret)
return FALSE;
strncpy(slash, "clamav_log_verbose_off", sizeof(whereami) - (slash - whereami));
strncpy(slash, "clamav_log_verbose", sizeof(whereami) - (slash - whereami));
whereami[sizeof(whereami)-1] = '\0';
logg_verbose = access(whereami, 0) == -1 ? 1 : 0;
logg_verbose = access(whereami, 0) == -1 ? 0 : 1;
strncpy(slash, "clamav.log", sizeof(whereami) - (slash - whereami));
whereami[sizeof(whereami)-1] = '\0';

@ -41,9 +41,9 @@ void flog_open(const char *path) {
else
SetFilePointer(logh, 0, NULL, FILE_END);
_snprintf(logfile, sizeof(logfile), "%s\\update_log_verbose_off", path);
_snprintf(logfile, sizeof(logfile), "%s\\update_log_verbose", path);
logfile[sizeof(logfile)-1] = '\0';
if(access(logfile, 0) == -1)
if(access(logfile, 0) != -1)
log_dbg = 1;
flog("Log file initialized");
}

Loading…
Cancel
Save