move cli_rmdirs()

0.96
Tomasz Kojm 15 years ago
parent 090057005c
commit c900023b36
  1. 3
      freshclam/manager.c

@ -2257,7 +2257,6 @@ int downloadmanager(const struct optstruct *opts, const char *hostname, const ch
mirman_write("mirrors.dat", dbdir, &mdat);
mirman_free(&mdat);
cli_rmdirs(updtmpdir);
/* custom dbs */
if((opt = optget(opts, "DatabaseCustomURL"))->enabled) {
@ -2268,6 +2267,8 @@ int downloadmanager(const struct optstruct *opts, const char *hostname, const ch
}
}
cli_rmdirs(updtmpdir);
if(updated) {
if(optget(opts, "HTTPProxyServer")->enabled || !ipaddr[0]) {
logg("Database updated (%d signatures) from %s\n", signo, hostname);

Loading…
Cancel
Save