mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-11-01 00:20:53 +00:00
Some filenames not scanned in MACOS/X
git-svn: trunk@504
This commit is contained in:
parent
8b8865d7f5
commit
0f82b9e395
2 changed files with 11 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Sat Apr 17 15:19:41 BST 2004 (njh)
|
||||
----------------------------------
|
||||
* libclamav/blob.c: Filenames with high byte characters were not
|
||||
being scanned on MACOS/X
|
||||
|
||||
Sat Apr 17 00:19:08 CEST 2004 (tk)
|
||||
----------------------------------
|
||||
V 0.70
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@
|
|||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* $Log: blob.c,v $
|
||||
* Revision 1.11 2004/04/17 14:18:58 nigelhorne
|
||||
* Some filenames not scanned in MACOS/X
|
||||
*
|
||||
* Revision 1.10 2004/03/25 22:40:46 nigelhorne
|
||||
* Removed even more calls to realloc and some duplicated code
|
||||
*
|
||||
|
|
@ -32,7 +35,7 @@
|
|||
* Change LOG to Log
|
||||
*
|
||||
*/
|
||||
static char const rcsid[] = "$Id: blob.c,v 1.10 2004/03/25 22:40:46 nigelhorne Exp $";
|
||||
static char const rcsid[] = "$Id: blob.c,v 1.11 2004/04/17 14:18:58 nigelhorne Exp $";
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "clamav-config.h"
|
||||
|
|
@ -118,6 +121,8 @@ blobSetFilename(blob *b, const char *filename)
|
|||
for(ptr = b->name; *ptr; ptr++) {
|
||||
#if defined(MSDOS) || defined(C_CYGWIN) || defined(WIN32)
|
||||
if(strchr("*?<>|\"+=,;: ", *ptr))
|
||||
#elif defined(C_DARWIN)
|
||||
if((*ptr == '/') || (*ptr >= '\200'))
|
||||
#else
|
||||
if(*ptr == '/')
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue