Browse code

Correct error message if whitelist file does not exist

git-svn: trunk@1838

Nigel Horne authored on 2006/02/05 22:31:27
Showing 2 changed files
... ...
@@ -1,7 +1,12 @@
1
+Sun Feb  5 13:29:42 GMT 2006 (njh)
2
+----------------------------------
3
+  * clamav-milter:	Correct the error message if the given whitelistFile
4
+				doesn't exist
5
+
1 6
 Thu Feb  2 14:36:53 GMT 2006 (njh)
2 7
 ----------------------------------
3 8
   * clamav-milter:	Added defensive programming against multiple MAIL FROM
4
-  				calls.
9
+				calls.
5 10
 			Added debug information when --max-children throttle
6 11
 				is lifted
7 12
 
... ...
@@ -22,9 +22,9 @@
22 22
  *
23 23
  * For installation instructions see the file INSTALL that came with this file
24 24
  */
25
-static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.228 2006/02/02 14:39:05 nigelhorne Exp $";
25
+static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.229 2006/02/05 13:31:27 nigelhorne Exp $";
26 26
 
27
-#define	CM_VERSION	"devel-020206"
27
+#define	CM_VERSION	"devel-050206"
28 28
 
29 29
 #if HAVE_CONFIG_H
30 30
 #include "clamav-config.h"
... ...
@@ -1037,7 +1037,7 @@ main(int argc, char **argv)
1037 1037
 		return EX_CONFIG;
1038 1038
 	}
1039 1039
 	if(whitelistFile && (access(whitelistFile, R_OK) < 0)) {
1040
-		perror(templatefile);
1040
+		perror(whitelistFile);
1041 1041
 		return EX_CONFIG;
1042 1042
 	}
1043 1043