Better virusscanner check

This commit is contained in:
Michiel Broek
2007-02-03 12:41:26 +00:00
parent 0a67e85966
commit f7329deb21
3 changed files with 19 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
* Purpose ...............: All the file sub functions.
*
*****************************************************************************
* Copyright (C) 1997-2005
* Copyright (C) 1997-2007
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@@ -479,7 +479,7 @@ int ScanDirect(char *fn)
while (fread(&virscan, virscanhdr.recsize, 1, fp) == 1) {
if (virscan.available) {
if (virscan.available && file_exist(virscan.scanner, X_OK)) {
/* Scanning */ /* with */
snprintf(msg, 81, "%s %s %s %s ", (char *) Language(132), fn, (char *) Language(133), virscan.comment);
pout(CFG.TextColourF, CFG.TextColourB, msg);
@@ -617,7 +617,7 @@ int ScanArchive(char *fn, char *ftype)
fread(&virscanhdr, sizeof(virscanhdr), 1, fp);
while (fread(&virscan, virscanhdr.recsize, 1, fp) == 1) {
if (virscan.available) {
if (virscan.available && file_exist(virscan.scanner, X_OK)) {
/* Scanning */ /* with */
snprintf(msg, 81, "%s %s %s %s ", (char *) Language(132), fn, (char *) Language(133), virscan.comment);
pout(CFG.TextColourF, CFG.TextColourB, msg);