From 7c70730c3ff6b3b0257912eafacaf52909e0e1cc Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 25 Nov 2005 19:39:16 +0000 Subject: [PATCH] Fixed virus scanning --- ChangeLog | 1 + mbsebbs/filesub.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 188508df..82c63fb0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/mbsebbs/filesub.c b/mbsebbs/filesub.c index 76a3a721..683e2585 100644 --- a/mbsebbs/filesub.c +++ b/mbsebbs/filesub.c @@ -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)) {