Browse code

Some filenames not scanned in MACOS/X

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@504 77e5149b-7576-45b1-b177-96237e5ba77b

Nigel Horne authored on 2004/04/17 23:20:41
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Sat Apr 17 15:19:41 BST 2004 (njh)
2
+----------------------------------
3
+  * libclamav/blob.c:	Filenames with high byte characters were not
4
+  	being scanned on MACOS/X
5
+
1 6
 Sat Apr 17 00:19:08 CEST 2004 (tk)
2 7
 ----------------------------------
3 8
   V 0.70
... ...
@@ -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.11  2004/04/17 14:18:58  nigelhorne
20
+ * Some filenames not scanned in MACOS/X
21
+ *
19 22
  * Revision 1.10  2004/03/25 22:40:46  nigelhorne
20 23
  * Removed even more calls to realloc and some duplicated code
21 24
  *
... ...
@@ -32,7 +35,7 @@
32 32
  * Change LOG to Log
33 33
  *
34 34
  */
35
-static	char	const	rcsid[] = "$Id: blob.c,v 1.10 2004/03/25 22:40:46 nigelhorne Exp $";
35
+static	char	const	rcsid[] = "$Id: blob.c,v 1.11 2004/04/17 14:18:58 nigelhorne Exp $";
36 36
 
37 37
 #if HAVE_CONFIG_H
38 38
 #include "clamav-config.h"
... ...
@@ -118,6 +121,8 @@ blobSetFilename(blob *b, const char *filename)
118 118
 		for(ptr = b->name; *ptr; ptr++) {
119 119
 #if	defined(MSDOS) || defined(C_CYGWIN) || defined(WIN32)
120 120
 			if(strchr("*?<>|\"+=,;: ", *ptr))
121
+#elif   defined(C_DARWIN)
122
+			if((*ptr == '/') || (*ptr >= '\200'))
121 123
 #else
122 124
 			if(*ptr == '/')
123 125
 #endif