Fixed virus scanning
This commit is contained in:
parent
358e135777
commit
7c70730c3f
@ -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
|
||||
|
@ -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)) {
|
||||
|
Reference in New Issue
Block a user