git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@278 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/02/13 03:44:44... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Thu Feb 12 18:47:44 GMT 2004 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav: Use mkstemp() on Solaris in cl_mbox() |
|
4 |
+ |
|
1 | 5 |
Wed Feb 11 18:00:13 CET 2004 (tk) |
2 | 6 |
--------------------------------- |
3 | 7 |
* libclamav: enabled autodetection of Eserv/2 mail files (thanks to |
... | ... |
@@ -17,6 +17,9 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: mbox.c,v $ |
20 |
+ * Revision 1.41 2004/02/12 18:43:58 nigelhorne |
|
21 |
+ * Use mkstemp on Solaris |
|
22 |
+ * |
|
20 | 23 |
* Revision 1.40 2004/02/11 08:15:59 nigelhorne |
21 | 24 |
* Use O_BINARY for cygwin |
22 | 25 |
* |
... | ... |
@@ -111,7 +114,7 @@ |
111 | 111 |
* Compilable under SCO; removed duplicate code with message.c |
112 | 112 |
* |
113 | 113 |
*/ |
114 |
-static char const rcsid[] = "$Id: mbox.c,v 1.40 2004/02/11 08:15:59 nigelhorne Exp $"; |
|
114 |
+static char const rcsid[] = "$Id: mbox.c,v 1.41 2004/02/12 18:43:58 nigelhorne Exp $"; |
|
115 | 115 |
|
116 | 116 |
#if HAVE_CONFIG_H |
117 | 117 |
#include "clamav-config.h" |
... | ... |
@@ -1646,11 +1649,11 @@ saveFile(const blob *b, const char *dir) |
1646 | 1646 |
/* |
1647 | 1647 |
* TODO: add a HAVE_MKSTEMP property |
1648 | 1648 |
*/ |
1649 |
-#if defined(C_LINUX) || defined(C_BSD) || defined(HAVE_MKSTEMP) |
|
1649 |
+#if defined(C_LINUX) || defined(C_BSD) || defined(HAVE_MKSTEMP) || defined(C_SOLARIS) |
|
1650 | 1650 |
fd = mkstemp(filename); |
1651 | 1651 |
#else |
1652 | 1652 |
(void)mktemp(filename); |
1653 |
- fd = open(filename, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC|O_BINARY, 0600); |
|
1653 |
+ fd = open(filename, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600); |
|
1654 | 1654 |
#endif |
1655 | 1655 |
|
1656 | 1656 |
if(fd < 0) { |