git-svn: trunk@4905
Török Edvin authored on 2009/03/07 00:19:59... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Fri Mar 6 17:19:53 EET 2009 (edwin) |
|
2 |
+------------------------------------ |
|
3 |
+ * clamd/others.c, unit_tests/check_clamd.c: fix FILDES and make |
|
4 |
+ check on NetBSD. (bb #1411). |
|
5 |
+ |
|
1 | 6 |
Fri Mar 6 14:21:52 EET 2009 (edwin) |
2 | 7 |
------------------------------------ |
3 | 8 |
* clamd/others.c, clamd/server-th.c: wake recvloopth after SelfCheck |
... | ... |
@@ -290,7 +290,7 @@ static int read_fd_data(struct fd_buf *buf) |
290 | 290 |
msg.msg_iov = iov; |
291 | 291 |
msg.msg_iovlen = 1; |
292 | 292 |
msg.msg_control = b.buff; |
293 |
- msg.msg_controllen = CMSG_LEN(sizeof(int)); |
|
293 |
+ msg.msg_controllen = sizeof(b.buff); |
|
294 | 294 |
|
295 | 295 |
n = recvmsg(buf->fd, &msg, 0); |
296 | 296 |
if (n < 0) |
... | ... |
@@ -114,7 +114,12 @@ static void conn_teardown(void) |
114 | 114 |
#define UNKNOWN_REPLY "UNKNOWN COMMAND" |
115 | 115 |
|
116 | 116 |
#define NONEXISTENT "/nonexistent\vfilename" |
117 |
+ |
|
118 |
+#ifdef HAVE_STRERROR_R |
|
117 | 119 |
#define NONEXISTENT_REPLY NONEXISTENT": lstat() failed: No such file or directory. ERROR" |
120 |
+#else |
|
121 |
+#define NONEXISTENT_REPLY NONEXISTENT": lstat() failed: 2. ERROR" |
|
122 |
+#endif |
|
118 | 123 |
|
119 | 124 |
#define ACCDENIED BUILDDIR"/accdenied" |
120 | 125 |
#define ACCDENIED_REPLY ACCDENIED": Access denied. ERROR" |