git-svn: trunk@2382
Nigel Horne authored on 2006/10/15 20:12:09... | ... |
@@ -19,104 +19,12 @@ |
19 | 19 |
* Much of this code is based on minitar.c which is in the public domain. |
20 | 20 |
* Author: Charles G. Waldman (cgw@pgt.com), Aug 4 1998 |
21 | 21 |
* There are many tar files that this code cannot decode. |
22 |
- * |
|
23 |
- * Change History: |
|
24 |
- * $Log: untar.c,v $ |
|
25 |
- * Revision 1.31 2006/08/20 19:42:02 njh |
|
26 |
- * Fix error return |
|
27 |
- * |
|
28 |
- * Revision 1.30 2006/07/26 09:39:08 njh |
|
29 |
- * Fix compilation error on Windows with MSVC |
|
30 |
- * |
|
31 |
- * Revision 1.29 2006/04/09 19:59:28 kojm |
|
32 |
- * update GPL headers with new address for FSF |
|
33 |
- * |
|
34 |
- * Revision 1.28 2005/10/29 16:18:09 nigelhorne |
|
35 |
- * Better error handler |
|
36 |
- * |
|
37 |
- * Revision 1.27 2005/09/01 21:03:46 nigelhorne |
|
38 |
- * Added support for various GNU extensions |
|
39 |
- * |
|
40 |
- * Revision 1.26 2005/08/01 11:30:59 nigelhorne |
|
41 |
- * Spelling fix |
|
42 |
- * |
|
43 |
- * Revision 1.25 2005/03/22 21:26:27 kojm |
|
44 |
- * add support for old fashioned tar archives |
|
45 |
- * |
|
46 |
- * Revision 1.24 2005/03/20 18:34:18 nigelhorne |
|
47 |
- * Minor tidy |
|
48 |
- * |
|
49 |
- * Revision 1.23 2005/03/20 09:09:25 nigelhorne |
|
50 |
- * Consolidate NAME_MAX |
|
51 |
- * |
|
52 |
- * Revision 1.22 2005/03/10 08:52:10 nigelhorne |
|
53 |
- * Tidy |
|
54 |
- * |
|
55 |
- * Revision 1.21 2005/02/16 22:19:21 nigelhorne |
|
56 |
- * Check file close |
|
57 |
- * |
|
58 |
- * Revision 1.20 2005/02/13 22:25:41 kojm |
|
59 |
- * do not try to continue if there's no space on device |
|
60 |
- * |
|
61 |
- * Revision 1.19 2004/12/16 15:34:57 nigelhorne |
|
62 |
- * Tidy |
|
63 |
- * |
|
64 |
- * Revision 1.18 2004/11/20 13:15:46 nigelhorne |
|
65 |
- * Better handling of false file type identification |
|
66 |
- * |
|
67 |
- * Revision 1.17 2004/10/27 06:36:38 nigelhorne |
|
68 |
- * Handle type '1' files |
|
69 |
- * |
|
70 |
- * Revision 1.16 2004/10/20 12:21:11 nigelhorne |
|
71 |
- * Print warning message about LongLink |
|
72 |
- * |
|
73 |
- * Revision 1.15 2004/10/16 16:08:46 nigelhorne |
|
74 |
- * Handle empty files in the middle of archives |
|
75 |
- * |
|
76 |
- * Revision 1.14 2004/10/13 10:18:54 nigelhorne |
|
77 |
- * Added a few extra file types |
|
78 |
- * |
|
79 |
- * Revision 1.13 2004/10/04 13:46:50 nigelhorne |
|
80 |
- * Handle GNU tar files |
|
81 |
- * |
|
82 |
- * Revision 1.12 2004/10/04 10:53:15 nigelhorne |
|
83 |
- * Handle tar files less than 512 bytes |
|
84 |
- * |
|
85 |
- * Revision 1.11 2004/10/01 13:50:47 nigelhorne |
|
86 |
- * Minor code tidy |
|
87 |
- * |
|
88 |
- * Revision 1.10 2004/09/20 13:37:44 kojm |
|
89 |
- * 0.80rc |
|
90 |
- * |
|
91 |
- * Revision 1.9 2004/09/14 10:29:31 nigelhorne |
|
92 |
- * Fix compilation error on AIX and OSF |
|
93 |
- * |
|
94 |
- * Revision 1.8 2004/09/12 23:43:45 kojm |
|
95 |
- * return with CL_EFORMAT instead of CL_EDSIG |
|
96 |
- * |
|
97 |
- * Revision 1.7 2004/09/12 19:51:59 nigelhorne |
|
98 |
- * Now builds with --enable-debug |
|
99 |
- * |
|
100 |
- * Revision 1.6 2004/09/08 16:02:34 nigelhorne |
|
101 |
- * fclose on error |
|
102 |
- * |
|
103 |
- * Revision 1.5 2004/09/06 14:16:48 nigelhorne |
|
104 |
- * Added CYGWIN support |
|
105 |
- * |
|
106 |
- * Revision 1.4 2004/09/06 08:45:44 nigelhorne |
|
107 |
- * Code Tidy |
|
108 |
- * |
|
109 |
- * Revision 1.3 2004/09/06 08:34:47 nigelhorne |
|
110 |
- * Randomise extracted file names from tar file |
|
111 |
- * |
|
112 |
- * Revision 1.2 2004/09/05 18:58:21 nigelhorne |
|
113 |
- * Extract files completed |
|
114 |
- * |
|
115 |
- * Revision 1.1 2004/09/05 15:28:10 nigelhorne |
|
116 |
- * First draft |
|
117 |
- * |
|
118 | 22 |
*/ |
119 |
-static char const rcsid[] = "$Id: untar.c,v 1.31 2006/08/20 19:42:02 njh Exp $"; |
|
23 |
+static char const rcsid[] = "$Id: untar.c,v 1.32 2006/10/15 11:10:42 njh Exp $"; |
|
24 |
+ |
|
25 |
+#if HAVE_CONFIG_H |
|
26 |
+#include "clamav-config.h" |
|
27 |
+#endif |
|
120 | 28 |
|
121 | 29 |
#include <stdio.h> |
122 | 30 |
#include <errno.h> |