git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1159 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/12/05 02:05:56... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sat Dec 4 17:04:40 GMT 2004 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/blob.c: Fixed filename handling in MACOS/X |
|
4 |
+ |
|
1 | 5 |
Sat Dec 4 15:52:08 GMT 2004 (njh) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav/mbox.c: Handle text/rfc822-headers incorrectly sent as |
... | ... |
@@ -16,6 +16,9 @@ |
16 | 16 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | 17 |
* |
18 | 18 |
* $Log: blob.c,v $ |
19 |
+ * Revision 1.26 2004/12/04 17:03:19 nigelhorne |
|
20 |
+ * Fix filename handling on MACOS/X |
|
21 |
+ * |
|
19 | 22 |
* Revision 1.25 2004/11/29 13:15:41 nigelhorne |
20 | 23 |
* Avoid crash if the output file didn't open |
21 | 24 |
* |
... | ... |
@@ -77,7 +80,7 @@ |
77 | 77 |
* Change LOG to Log |
78 | 78 |
* |
79 | 79 |
*/ |
80 |
-static char const rcsid[] = "$Id: blob.c,v 1.25 2004/11/29 13:15:41 nigelhorne Exp $"; |
|
80 |
+static char const rcsid[] = "$Id: blob.c,v 1.26 2004/12/04 17:03:19 nigelhorne Exp $"; |
|
81 | 81 |
|
82 | 82 |
#if HAVE_CONFIG_H |
83 | 83 |
#include "clamav-config.h" |
... | ... |
@@ -91,7 +94,7 @@ static char const rcsid[] = "$Id: blob.c,v 1.25 2004/11/29 13:15:41 nigelhorne E |
91 | 91 |
|
92 | 92 |
#include <sys/param.h> /* for NAME_MAX */ |
93 | 93 |
|
94 |
-#if C_DARWIN |
|
94 |
+#ifdef C_DARWIN |
|
95 | 95 |
#include <sys/types.h> |
96 | 96 |
#endif |
97 | 97 |
|
... | ... |
@@ -540,7 +543,8 @@ sanitiseName(char *name) |
540 | 540 |
while(*name) { |
541 | 541 |
#ifdef C_DARWIN |
542 | 542 |
*name &= '\177'; |
543 |
-#elif defined(MSDOS) || defined(C_CYGWIN) || defined(WIN32) |
|
543 |
+#endif |
|
544 |
+#if defined(MSDOS) || defined(C_CYGWIN) || defined(WIN32) |
|
544 | 545 |
if(strchr("/*?<>|\\\"+=,;: ", *name)) |
545 | 546 |
#else |
546 | 547 |
if(*name == '/') |