git-svn: trunk@3177
Nigel Horne authored on 2007/08/19 19:32:29... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sun Aug 19 10:35:38 BST 2007 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamav-milter: Fix compilation error on NetBSD2.0 |
|
4 |
+ |
|
1 | 5 |
Sat Aug 18 16:12:51 BST 2007 (njh) |
2 | 6 |
---------------------------------- |
3 | 7 |
* clamav-milter: Black-hole-mode no longer needs to be run as root |
... | ... |
@@ -33,7 +33,7 @@ |
33 | 33 |
*/ |
34 | 34 |
static char const rcsid[] = "$Id: clamav-milter.c,v 1.312 2007/02/12 22:24:21 njh Exp $"; |
35 | 35 |
|
36 |
-#define CM_VERSION "devel-180807" |
|
36 |
+#define CM_VERSION "devel-190807" |
|
37 | 37 |
|
38 | 38 |
#if HAVE_CONFIG_H |
39 | 39 |
#include "clamav-config.h" |
... | ... |
@@ -1202,11 +1202,19 @@ main(int argc, char **argv) |
1202 | 1202 |
perror(SENDMAIL_BIN); |
1203 | 1203 |
are_trusted = 0; |
1204 | 1204 |
} else { |
1205 |
+ int status; |
|
1205 | 1206 |
char buf[BUFSIZ]; |
1206 | 1207 |
|
1207 | 1208 |
while(fgets(buf, sizeof(buf), sendmail) != NULL) |
1208 | 1209 |
; |
1209 |
- switch(WEXITSTATUS(pclose(sendmail))) { |
|
1210 |
+ /* |
|
1211 |
+ * Can't do |
|
1212 |
+ * switch(WEXITSTATUS(pclose(sendmail))) |
|
1213 |
+ * because that fails to compile on |
|
1214 |
+ * NetBSD2.0 |
|
1215 |
+ */ |
|
1216 |
+ status = pclose(sendmail); |
|
1217 |
+ switch(WEXITSTATUS(status)) { |
|
1210 | 1218 |
case EX_NOUSER: |
1211 | 1219 |
/* |
1212 | 1220 |
* No root? But at least |