Browse code

clamscan bug fix

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

Tomasz Kojm authored on 2004/05/08 02:49:27
Showing 3 changed files
... ...
@@ -1,3 +1,8 @@
1
+Fri May  7 19:46:05 CEST 2004 (tk)
2
+----------------------------------
3
+  * clamscan: fixperms(): do not follow file symlinks (Debian Bug #247574)
4
+  * libclamav: detect more mail file types
5
+
1 6
 Thu May  6 22:14:39 CEST 2004 (tk)
2 7
 ----------------------------------
3 8
   * libclamav: scanners: enable decoding of Word6 macro code (Trog)
... ...
@@ -199,7 +199,7 @@ int fixperms(const char *dirname)
199 199
 			if(S_ISDIR(statbuf.st_mode) && !S_ISLNK(statbuf.st_mode)) {
200 200
 			    chmod(fname, 0700);
201 201
 			    fixperms(fname);
202
-			} else
202
+			} else if(S_ISREG(statbuf.st_mode))
203 203
 			    chmod(fname, 0700);
204 204
 		    }
205 205
 
... ...
@@ -86,21 +86,17 @@ static const struct cli_magic_s cli_magic[] = {
86 86
     {0,  "Return-Path: ",		13, "Maildir",		  CL_MAILFILE},
87 87
     {0,  "Return-path: ",		13, "Maildir",		  CL_MAILFILE},
88 88
     {0,  "Delivered-To: ",		14, "Mail",		  CL_MAILFILE},
89
-    {0,  "X-UIDL: ",			8,  "Mail",		  CL_MAILFILE},
89
+    {0,  "X-",				2,  "Mail",		  CL_MAILFILE},
90 90
     {0,  ">From ",			6,  "Mail",		  CL_MAILFILE},
91 91
     {0,  "Date: ",			6,  "Mail",		  CL_MAILFILE},
92 92
     {0,  "Message-Id: ",		12, "Mail",		  CL_MAILFILE},
93 93
     {0,  "Message-ID: ",		12, "Mail",		  CL_MAILFILE},
94
-    {0,  "X-Apparently-To: ",		17, "Mail",		  CL_MAILFILE},
95
-    {0,  "X-Envelope-From: ",		17, "Mail",		  CL_MAILFILE},
96 94
     {0,  "Envelope-to: ",		13, "Mail",		  CL_MAILFILE},
97 95
     {0,  "Delivery-date: ",		15, "Mail",		  CL_MAILFILE},
98 96
     {0,  "To: ",			4,  "Mail",		  CL_MAILFILE},
99 97
     {0,  "Subject: ",			9,  "Mail",		  CL_MAILFILE},
100 98
     {0,  "For: ",			5,  "Eserv mail",	  CL_MAILFILE},
101 99
     {0,  "From: ",			6,  "Exim mail",	  CL_MAILFILE},
102
-    {0,  "X-Symantec-",			11, "Symantec",		  CL_MAILFILE},
103
-    {0,  "X-EVS",			5,  "EVS mail",		  CL_MAILFILE},
104 100
     {0,  "v:\015\012Received: ",	14, "VPOP3 Mail (DOS)",	  CL_MAILFILE},
105 101
     {0,  "v:\012Received: ",		13, "VPOP3 Mail (UNIX)",  CL_MAILFILE},
106 102
     {0,  "Hi. This is the qmail-send",  26, "Qmail bounce",	  CL_MAILFILE},