Browse code

SESSIONS mode must use --external

git-svn: trunk@2502

Nigel Horne authored on 2006/11/12 05:09:51
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sat Nov 11 20:09:07 GMT 2006 (njh)
2
+----------------------------------
3
+  * clamav-milter:	SESSIONS mode: force --external, bug 123
4
+
1 5
 Fri Nov 10 22:41:11 GMT 2006 (njh)
2 6
 ----------------------------------
3 7
   * libclamav/mbox.c:	Fix compilation error when debug is enabled on BSD,
... ...
@@ -24,7 +24,7 @@
24 24
  *
25 25
  * For installation instructions see the file INSTALL that came with this file
26 26
  */
27
-static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.298 2006/11/10 20:35:56 njh Exp $";
27
+static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.299 2006/11/11 20:08:36 njh Exp $";
28 28
 
29 29
 #define	CM_VERSION	"devel-101106"
30 30
 
... ...
@@ -961,6 +961,13 @@ main(int argc, char **argv)
961 961
 			argv[0]);
962 962
 		return EX_USAGE;
963 963
 	}
964
+#ifdef	SESSION
965
+	if(!external) {
966
+		fprintf(stderr,
967
+			_("%s: SESSIONS mode requires --external\n"));
968
+		return EX_USAGE;
969
+	}
970
+#endif
964 971
 
965 972
 	/* TODO: support freshclam's daemon notify if --external is not given */
966 973