Browse code

Now builds with --enable-debug

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

Nigel Horne authored on 2004/09/13 04:55:18
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sun Sep 12 20:54:05 BST 2004 (njh)
2
+----------------------------------
3
+  * libclamav/untar.c:	Now builds with configure --enable-debug
4
+
1 5
 Sun Sep 12 16:37:04 CEST 2004 (tk)
2 6
 ----------------------------------
3 7
   * docs/MacOSX: include Mac OS X instructions (thanks to Dale Enterprise L.L.C)
... ...
@@ -13,7 +17,7 @@ Sun Sep 12 15:25:12 BST 2004 (njh)
13 13
 Wed Sep  8 21:47:09 BST 2004 (njh)
14 14
 ----------------------------------
15 15
   * contrib/init/RedHat:	Start clamav before sendmail and shut it down
16
-  					afterwards
16
+					afterwards
17 17
 
18 18
 Wed Sep  8 17:05:08 BST 2004 (njh)
19 19
 ----------------------------------
... ...
@@ -20,6 +20,9 @@
20 20
  *
21 21
  * Change History:
22 22
  * $Log: untar.c,v $
23
+ * Revision 1.7  2004/09/12 19:51:59  nigelhorne
24
+ * Now builds with --enable-debug
25
+ *
23 26
  * Revision 1.6  2004/09/08 16:02:34  nigelhorne
24 27
  * fclose on error
25 28
  *
... ...
@@ -39,7 +42,7 @@
39 39
  * First draft
40 40
  *
41 41
  */
42
-static	char	const	rcsid[] = "$Id: untar.c,v 1.6 2004/09/08 16:02:34 nigelhorne Exp $";
42
+static	char	const	rcsid[] = "$Id: untar.c,v 1.7 2004/09/12 19:51:59 nigelhorne Exp $";
43 43
 
44 44
 #include <stdio.h>
45 45
 #include <errno.h>
... ...
@@ -52,6 +55,7 @@ static	char	const	rcsid[] = "$Id: untar.c,v 1.6 2004/09/08 16:02:34 nigelhorne E
52 52
 #include "clamav.h"
53 53
 #include "others.h"
54 54
 #include "untar.h"
55
+#include "mbox.h"
55 56
 #include "blob.h"
56 57
 
57 58
 #define BLOCKSIZE 512
... ...
@@ -70,6 +74,7 @@ static	char	const	rcsid[] = "$Id: untar.c,v 1.6 2004/09/08 16:02:34 nigelhorne E
70 70
 #endif
71 71
 
72 72
 #endif
73
+
73 74
 static int
74 75
 octal(const char *str)
75 76
 {
... ...
@@ -122,6 +127,7 @@ cli_untar(const char *dir, int desc)
122 122
 			if(block[0] == '\0')  /* We're done */
123 123
 				break;
124 124
 
125
+			/* Notice assumption that BLOCKSIZE > 262 */
125 126
 			strncpy(magic, block+257, 6);
126 127
 			magic[6] = '\0';
127 128
 			if(strcmp(magic, "ustar ") != 0) {