git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@805 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/08/27 18:44:04... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Fri Aug 27 10:42:54 BST 2004 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/blob.c: Better filename handling in MACOS/X. |
|
4 |
+ |
|
1 | 5 |
Fri Aug 27 02:14:07 CEST 2004 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav/pe.c: include new function cli_peheader() (only dumps specific |
... | ... |
@@ -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.18 2004/08/27 09:41:44 nigelhorne |
|
20 |
+ * Better filename handling in MACOS/X |
|
21 |
+ * |
|
19 | 22 |
* Revision 1.17 2004/08/23 10:23:58 nigelhorne |
20 | 23 |
* Fix compilation problem on Cygwin |
21 | 24 |
* |
... | ... |
@@ -53,7 +56,7 @@ |
53 | 53 |
* Change LOG to Log |
54 | 54 |
* |
55 | 55 |
*/ |
56 |
-static char const rcsid[] = "$Id: blob.c,v 1.17 2004/08/23 10:23:58 nigelhorne Exp $"; |
|
56 |
+static char const rcsid[] = "$Id: blob.c,v 1.18 2004/08/27 09:41:44 nigelhorne Exp $"; |
|
57 | 57 |
|
58 | 58 |
#if HAVE_CONFIG_H |
59 | 59 |
#include "clamav-config.h" |
... | ... |
@@ -163,10 +166,11 @@ blobSetFilename(blob *b, const char *dir, const char *filename) |
163 | 163 |
char *ptr; |
164 | 164 |
|
165 | 165 |
for(ptr = b->name; *ptr; ptr++) { |
166 |
+#ifdef C_DARWIN |
|
167 |
+ *ptr &= '\200'; |
|
168 |
+#endif |
|
166 | 169 |
#if defined(MSDOS) || defined(C_CYGWIN) || defined(WIN32) |
167 | 170 |
if(strchr("/*?<>|\"+=,;: ", *ptr)) |
168 |
-#elif defined(C_DARWIN) |
|
169 |
- if((*ptr == '/') || (*ptr >= '\200')) |
|
170 | 171 |
#else |
171 | 172 |
if(*ptr == '/') |
172 | 173 |
#endif |