git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@388 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/03/10 20:34:21... | ... |
@@ -1,3 +1,9 @@ |
1 |
+Wed Mar 10 11:40:14 GMT 2004 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamav-milter: Use new HAVE_STRERROR_R rather than TARGET_OS_SOLARIS |
|
4 |
+ to determine if strerror_r exists |
|
5 |
+ Thanks to Phil Oleson <oz@nixil.net>. |
|
6 |
+ |
|
1 | 7 |
Wed Mar 10 05:43:34 GMT 2004 (njh) |
2 | 8 |
---------------------------------- |
3 | 9 |
* libclamav/message.c: Implemented a couple of small speed ups: |
... | ... |
@@ -282,6 +282,8 @@ Changes |
282 | 282 |
Use cli_[cm]alloc |
283 | 283 |
Included extra information if --headers is given (based on an |
284 | 284 |
idea from "Leonid Zeitlin" <lz@europe.com> |
285 |
+0.67l 10/3/04 Use new HAVE_STRERROR_R rather than TARGET_OS_SOLARIS to |
|
286 |
+ determine if strerror_r exists |
|
285 | 287 |
|
286 | 288 |
BUG REPORTS |
287 | 289 |
|
... | ... |
@@ -281,9 +281,14 @@ |
281 | 281 |
* Use cli_[cm]alloc |
282 | 282 |
* Included extra information if --headers is given (based |
283 | 283 |
* on an idea from "Leonid Zeitlin" <lz@europe.com> |
284 |
+ * 0.67l 10/3/04 Use new HAVE_STRERROR_R rather than TARGET_OS_SOLARIS |
|
285 |
+ * to determine if strerror_r exists |
|
284 | 286 |
* |
285 | 287 |
* Change History: |
286 | 288 |
* $Log: clamav-milter.c,v $ |
289 |
+ * Revision 1.60 2004/03/10 11:31:03 nigelhorne |
|
290 |
+ * Use HAVE_STRERROR_R |
|
291 |
+ * |
|
287 | 292 |
* Revision 1.59 2004/03/07 15:11:15 nigelhorne |
288 | 293 |
* Added more information to headers flag |
289 | 294 |
* |
... | ... |
@@ -446,9 +451,9 @@ |
446 | 446 |
* Revision 1.6 2003/09/28 16:37:23 nigelhorne |
447 | 447 |
* Added -f flag use MaxThreads if --max-children not set |
448 | 448 |
*/ |
449 |
-static char const rcsid[] = "$Id: clamav-milter.c,v 1.59 2004/03/07 15:11:15 nigelhorne Exp $"; |
|
449 |
+static char const rcsid[] = "$Id: clamav-milter.c,v 1.60 2004/03/10 11:31:03 nigelhorne Exp $"; |
|
450 | 450 |
|
451 |
-#define CM_VERSION "0.67k" |
|
451 |
+#define CM_VERSION "0.67l" |
|
452 | 452 |
|
453 | 453 |
/*#define CONFDIR "/usr/local/etc"*/ |
454 | 454 |
|
... | ... |
@@ -1757,11 +1762,13 @@ clamfi_envfrom(SMFICTX *ctx, char **argv) |
1757 | 1757 |
|
1758 | 1758 |
/* 0.4 - use better error message */ |
1759 | 1759 |
if(use_syslog) { |
1760 |
-#ifdef TARGET_OS_SOLARIS /* no strerror_r */ |
|
1761 |
- syslog(LOG_ERR, "Failed to connect to port %d given by clamd: %s", port, strerror(rc)); |
|
1760 |
+#ifdef HAVE_STRERROR_R |
|
1761 |
+ syslog(LOG_ERR, |
|
1762 |
+ "Failed to connect to port %d given by clamd: %s", |
|
1763 |
+ port, |
|
1764 |
+ strerror_r(rc, buf, sizeof(buf))); |
|
1762 | 1765 |
#else |
1763 |
- strerror_r(rc, buf, sizeof(buf)); |
|
1764 |
- syslog(LOG_ERR, "Failed to connect to port %d given by clamd: %s", port, buf); |
|
1766 |
+ syslog(LOG_ERR, "Failed to connect to port %d given by clamd: %s", port, strerror(rc)); |
|
1765 | 1767 |
#endif |
1766 | 1768 |
} |
1767 | 1769 |
|