Update to file-4.19.
[dragonfly.git] / contrib / file-4 / ChangeLog
1 2006-12-11 16:49 Christos Zoulas <christos@zoulas.com>
2
3         * fix byteswapping issue
4
5         * report the number of bytes we tried to
6           allocate when allocation fails
7
8         * add a few missed cases in the strength routine
9
10 2006-12-08 16:32 Christos Zoulas <christos@zoulas.com>
11
12         * store and print the line number of the magic
13           entry for debugging.         
14
15         * if the magic entry did not print anything,
16           don't treat it as a match
17
18         * change the magic strength algorithm to take
19           into account the relationship op.
20
21         * fix a bug in search where we could accidentally
22           return a match.
23
24         * propagate the error return from match to
25           file_softmagic.
26
27 2006-11-25 13:35 Christos Zoulas <christos@zoulas.com>
28         
29         * Don't store the current offset in the magic
30           struct, because it needs to be restored and
31           it was not done properly all the time. Bug
32           found by: Arkadiusz Miskiewicz
33
34         * Fix problem in the '\0' separator; and don't
35           print it as an additional separator; print
36           it as the only separator.
37
38 2006-11-17 10:51 Christos Zoulas <christos@zoulas.com>
39
40         * Added a -0 option to print a '\0' separator
41           Etienne Buira <etienne.buira@free.fr>
42
43 2006-10-31 15:14 Christos Zoulas <christos@zoulas.com>
44
45         * Check offset before copying (Mike Frysinger)
46
47         * merge duplicated code
48
49         * add quad date support
50
51         * make sure that we nul terminate desc (Ryoji Kanai)
52
53         * don't process elf notes multiple times
54
55         * allow -z to report empty compressed files
56
57         * use calloc to initialize the ascii buffers (Jos van den Oever)
58
59 2006-06-08 11:11 Christos Zoulas <christos@zoulas.com>
60
61         * QNX fixes (Mike Gorchak)
62
63         * Add quad support.
64
65         * FIFO checks (Dr. Werner Fink)
66
67         * Linux ELF fixes (Dr. Werner Fink)
68
69         * Magic format checks (Dr. Werner Fink)
70
71         * Magic format function improvent (Karl Chen)
72
73 2006-05-03 11:11 Christos Zoulas <christos@zoulas.com>
74
75         * Pick up some elf changes and some constant fixes from SUSE
76
77         * Identify gnu tar vs. posix tar
78
79         * When keep going, don't print spurious newlines (Radek Vokál)
80
81 2006-04-01 12:02 Christos Zoulas <christos@zoulas.com>
82
83         * Use calloc instead of malloc (Mike Frysinger)
84
85         * Fix configure script to detect wctypes.h (Mike Frysinger)
86
87 2006-03-02 16:06 Christos Zoulas <christos@zoulas.com>
88
89         * Print empty if the file is (Mike Frysinger)
90
91         * Don't try to read past the end of the buffer (Mike Frysinger)
92
93         * Sort magic entries by strength [experimental]
94
95 2005-11-29 13:26 Christos Zoulas <christos@zoulas.com>
96
97         * Use iswprint() to convert the output string.
98             (Bastien Nocera)
99
100 2005-10-31 8:54 Christos Zoulas <christos@zoulas.com>
101
102         * Fix regression where the core info was not completely processed
103             (Radek Vokál)
104
105 2005-10-20 11:15 Christos Zoulas <christos@zoulas.com>
106
107         * Middle Endian magic (Diomidis Spinellis)
108
109 2005-10-17 11:15 Christos Zoulas <christos@zoulas.com>
110
111         * Open with O_BINARY for CYGWIN (Corinna Vinschen)
112
113         * Don't close stdin (Arkadiusz Miskiewicz)
114
115         * Look for note sections in non executables.
116
117 2005-09-20 13:33 Christos Zoulas <christos@zoulas.com>
118         
119         * Don't print SVR4 Style in core files multiple times
120             (Radek Vokál)
121
122 2005-08-27 04:09 Christos Zoulas <christos@zoulas.com>
123
124         * Cygwin changes Corinna Vinschen
125
126 2005-08-18 09:53 Christos Zoulas <christos@zoulas.com>
127
128         * Remove erroreous mention of /etc/magic in the file man page
129           This is gentoo bug 101639. (Mike Frysinger) 
130
131         * Cross-compile support and detection (Mike Frysinger) 
132
133 2005-08-12 10:17 Christos Zoulas <christos@zoulas.com>
134
135         * Add -h flag and dereference symlinks if POSIXLY_CORRECT
136           is set.
137
138 2005-07-29 13:57 Christos Zoulas <christos@zoulas.com>
139
140         * Avoid search and regex buffer overflows (Kelledin)
141
142 2005-07-12 11:48 Christos Zoulas <christos@zoulas.com>
143
144         * Provide stub implementations for {v,}nsprintf() for older
145           OS's that don't have them.
146         * Change mbstate_t autoconf detection macro from AC_MBSTATE_T
147           to AC_TYPE_MBSTATE_T.
148
149 2005-06-25 11:48 Christos Zoulas <christos@zoulas.com>
150
151         * Dynamically allocate the string buffers and make the
152           default read size 256K.
153
154 2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
155
156         * Dragonfly ELF note support
157
158 2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
159
160         * Avoid NULL pointer dereference in time conversion.
161
162 2005-03-06 00:00  Joerg Walter <jwalt@mail.garni.ch>
163         
164         * Add indirect magic offset support, and search mode.
165
166 2005-01-12 00:00  Stepan Kasal  <kasal@ucw.cz>
167
168         * src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
169           If a CRLF text file happens to have CR at offset HOWMANY - 1
170           (currently 0xffff), it should not be counted as CR line
171           terminator.
172           If a line has length exactly MAXLINELEN, it should not yet be
173           treated as a ``very long line'', as MAXLINELEN is ``longest sane
174           line length''.
175           With CRLF, the line length was not computed correctly, and even
176           lines of length MAXLINELEN - 1 were treated as ``very long''.
177
178 2004-12-07 14:15  Christos Zoulas  <christos@zoulas.com>
179
180         * bzip2 needs a lot of input buffer space on some files
181           before it can begin uncompressing. This makes file -z
182           fail on some bz2 files. Fix it by giving it a copy of
183           the file descriptor to read as much as it wants if we
184           have access to it. <christos@zoulas.com>
185
186 2004-11-24 12:39  Christos Zoulas  <christos@zoulas.com>
187
188         * Stack smash fix, and ELF more conservative reading.
189           Jakub Bogusz <qboosh@pld-linux.org>
190
191 2004-11-20 18:50  Christos Zoulas  <christos@zoulas.com>
192
193         * New FreeBSD version parsing code:
194           Jon Noack <noackjr@alumni.rice.edu>
195
196         * Hackish support for ucs16 strings <christos@zoulas.com>
197
198 2004-11-13 03:07  Christos Zoulas  <christos@zoulas.com>
199
200         * print the file name and line number in syntax errors.
201
202 2004 10-12 10:50  Christos Zoulas  <christos@zoulas.com>
203
204         * Fix stack overwriting on 0 length strings: Tim Waugh
205             <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
206
207 2004-09-27 11:30  Christos Zoulas  <christos@zoulas.com>
208
209         * Remove 3rd and 4th copyright clause; approved by Ian Darwin.
210
211         * Fix small memory leaks; caught by: Tamas Sarlos 
212             <stamas@csillag.ilab.sztaki.hu>
213
214 2004-07-24 16:33  Christos Zoulas  <christos@zoulas.com>
215
216         * magic.mime update Danny Milosavljevic <danny.milo@gmx.net> 
217
218         * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
219
220         * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
221
222         * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
223
224 2004-04-12 10:55  Christos Zoulas  <christos@zoulas.com>
225
226         * make sure that magic formats match magic types during compilation
227
228         * fix broken sgi magic file
229
230 2004-04-06 20:36  Christos Zoulas  <christos@zoulas.com>
231
232         * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
233
234         * magic fixes
235
236 2004-03-22 15:25  Christos Zoulas  <christos@zoulas.com>
237
238         * Lots of mime fixes
239           (Joerg Ostertag) <ostertag@rechengilde.de>
240
241         * FreeBSD ELF version handling
242           (Edwin Groothuis) <edwin@mavetju.org>
243
244         * correct cleanup in all cases; don't just close the file.
245           (Christos Zoulas) <christos@zoulas.com>
246
247         * add gettext message catalogue support
248           (Michael Piefel) <piefel@debian.org>
249
250         * better printout for unreadable files
251           (Michael Piefel) <piefel@debian.org>
252
253         * compensate for missing MAXPATHLEN
254           (Michael Piefel) <piefel@debian.org>
255
256         * add wide character string length computation
257           (Michael Piefel) <piefel@debian.org>
258
259         * Avoid infinite loops caused by bad elf alignments
260           or name and description note sizes. Reported by
261           (Mikael Magnusson) <mmikael@comhem.se>
262
263 2004-03-09 13:55  Christos Zoulas  <christos@zoulas.com>
264
265         * Fix possible memory leak on error and add missing regfree
266           (Dmitry V. Levin) <ldv@altlinux.org>
267
268 2003-12-23 12:12  Christos Zoulas  <christos@zoulas.com>
269
270         * fix -k flag (Maciej W. Rozycki)
271
272 2003-11-18 14:10  Christos Zoulas  <christos@zoulas.com>
273
274         * Try to give us much info as possible on corrupt elf files.
275           (Willy Tarreau) <willy@w.ods.org>
276         * Updated python bindings (Brett Funderburg)
277            <brettf@deepfile.com>
278
279 2003-11-11 15:03  Christos Zoulas  <christos@zoulas.com>
280
281         * Include file.h first, because it includes config.h
282           breaks largefile test macros otherwise.
283           (Paul Eggert <eggert@CS.UCLA.EDU> via
284            Lars Hecking <lhecking@nmrc.ie>)
285
286 2003-10-14 21:39  Christos Zoulas  <christos@zoulas.com>
287
288         * Python bindings (Brett Funderburg) <brettf@deepfile.com>
289         * Don't lookup past the end of the buffer
290           (Chad Hanson) <chanson@tcs-sec.com>
291         * Add MAGIC_ERROR and api on magic_errno()
292
293 2003-10-08 12:40  Christos Zoulas  <christos@zoulas.com>
294
295         * handle error conditions from compile as fatal
296           (Antti Kantee) <pooka@netbsd.org>
297         * handle magic filename parsing sanely
298         * more magic fixes.
299         * fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
300         * describe magic file handling
301           (Bryan Henderson) <bryanh@giraffe-data.com>
302
303 2003-09-12 15:09  Christos Zoulas  <christos@zoulas.com>
304
305         * update magic files.
306         * remove largefile support from file.h; it breaks things on most OS's
307
308 2003-08-10 10:25  Christos Zoulas  <christos@zoulas.com>
309
310         * fix unmapping'ing of mmaped files.
311
312 2003-07-10 12:03  Christos Zoulas  <christos@zoulas.com>
313
314         * don't exit with -1 on error; always exit 1 (Marty Leisner)
315         * restore utimes code.
316
317 2003-06-10 17:03  Christos Zoulas  <christos@zoulas.com>
318
319         * make sure we don't access uninitialized memory.
320         * pass lint
321         * #ifdef __cplusplus in magic.h
322
323 2003-05-25 19:23  Christos Zoulas  <christos@zoulas.com>
324
325         * rename cvs magic file to revision to deal with
326           case insensitive filesystems.
327
328 2003-05-23 17:03  Christos Zoulas  <christos@zoulas.com>
329
330         * documentation fixes from Michael Piefel <piefel@debian.org>
331         * magic fixes (various)
332         * revert basename magic in .mgc name determination
333         * buffer protection in uncompress,
334           signness issues,
335           close files
336           Maciej W. Rozycki <macro@ds2.pg.gda.pl
337
338 2003-04-21 20:12  Christos Zoulas  <christos@zoulas.com>
339
340         * fix zsh magic
341
342 2003-04-04 16:59  Christos Zoulas  <christos@zoulas.com>
343
344         * fix operand sort order in string.
345
346 2003-04-02 17:30  Christos Zoulas  <christos@zoulas.com>
347
348         * cleanup namespace in magic.h
349
350 2003-04-02 13:50  Christos Zoulas  <christos@zoulas.com>
351
352         * Magic additions (Alex Ott)
353         * Fix bug that broke VPATH compilation (Peter Breitenlohner)
354
355 2003-03-28 16:03  Christos Zoulas  <christos@zoulas.com>
356
357         * remove packed attribute from magic struct.
358         * make the magic struct properly aligned.
359         * bump version number of compiled files to 2.
360
361 2003-03-27 13:10  Christos Zoulas  <christos@zoulas.com>
362
363         * separate tar detection and run it before softmagic.
364         * fix reversed symlink test.
365         * fix version printing.
366         * make separator a string instead of a char.
367         * update manual page and sort options.
368
369 2003-03-26 11:00  Christos Zoulas  <christos@zoulas.com>
370
371         * Pass lint
372         * make NULL in magic_file mean stdin
373         * Fix "-" argument to file to pass NULL to magic_file
374         * avoid pointer casts by using memcpy
375         * rename magic_buf -> magic_buffer
376         * keep only the first error
377         * manual page: new sentence, new line
378         * fix typo in api function (magic_buf -> magic_buffer)