Fixed virus scanning

This commit is contained in:
Michiel Broek 2005-11-25 19:39:16 +00:00
parent 358e135777
commit 7c70730c3f
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ v0.83.2 16-Nov-2005
mbsebbs:
Added check for users homedirectory permissions and attempt to
fix errors. If fatal the connection is dropped.
Fixed virus scan of uploaded archives.
v0.83.1 12-Nov-2005 - 16-Nov-2005

View File

@ -623,7 +623,7 @@ int ScanArchive(char *fn, char *ftype)
pout(CFG.TextColourF, CFG.TextColourB, msg);
Altime(3600);
err = execute_str(virscan.scanner, virscan.options, (char *)"*", (char *)"/dev/null", stdlog, errlog);
err = execute_str(virscan.scanner, virscan.options, (char *)NULL, (char *)"/dev/null", stdlog, errlog);
if (file_size(stdlog)) {
if ((lp = fopen(stdlog, "r"))) {
while (fgets(buf, sizeof(buf) -1, lp)) {