Debian Codegraph @

ChangeLog

raw
1 2023-02-19 Stuart Caie <[email protected]>
2
3 * ensure_filepath(): had wrong logic, for the archive-controlled
4 part of a pathname, it was using the result of lstat() whether
5 it succeeded or not, and thus not creating directories when it
6 ought to. Fixed and added a testcase for cabextract's --directory
7 option. Thanks to iq2luc for raising the issue and offering a fix.
8
9 2023-02-04 Stuart Caie <[email protected]>
10
11 * src/cabextract.c: By default, cabextract will now overwrite
12 symlinks if they're in the path of files it wants to extract,
13 rather than follow them. This is also what unzip and tar do
14 by default. If you want to keep symlinks, use the new -k option.
15
16 This also adds new options regarding overwriting files. You can
17 now add the -n option to never overwrite, or the -i option
18 for an interactive prompt asking you if you want to overwrite.
19
20 Thanks to wereii for raising this issue and working on the
21 solution.
22
23 2023-02-03 Stuart Caie <[email protected]>
24
25 * configure.ac: do AC_CHECK_SIZEOF([off_t]) test only after
26 AC_SYS_LARGEFILE, because the latter can alter the size of off_t.
27
28 2019-04-10 Stuart Caie <[email protected]>
29
30 * src/cabextract.c: support more than one filter (-F) option in
31 cabextract, e.g. cabextract -F *.mov -F *.avi file.cab. Thanks
32 to caesarshift for the idea.
33
34 2018-12-03 Stuart Caie <[email protected]>
35
36 * test: support builddir being on a path that includes spaces
37
38 2018-11-09 Stuart Caie <[email protected]>
39
40 * test/case-utf8.test: Some environments (e.g. DJGPP) don't have a
41 UTF-8 locale, so won't pass the case.test testcase. Break it into
42 case-ascii.test and case-utf8.test, and skip the latter if
43 "cabextract -L" has no effect on non-ASCII filenames. Thanks to
44 Robert Riebisch for highlighting this.
45
46 2018-11-08 Stuart Caie <[email protected]>
47
48 * src/cabextract.c: make multiple attempts at iconv_open() with
49 different names for the UTF-8 encoding: "UTF-8", "UTF8" and "UTF_8".
50
51 "UTF8" works with glibc, libiconv, newlib, Solaris libc and FreeBSD
52 libc, while "UTF-8" doesn't work with newlib. But if you have
53 libiconv >= 1.13, it removes "UTF8" support unless you define
54 USE_HPUX_ALIASES, or patch it back in (as Cygwin does).
55 Thanks to Ryan Schmidt for letting me know about this.
56
57 2018-11-03 Stuart Caie <[email protected]>
58
59 * test: use the autotools test system instead of a custom makefile.
60 You can now use 'make check' to test cabextract, and the test files
61 are now distributed with cabextract.
62
63 2018-10-30 Stuart Caie <[email protected]>
64
65 * configure.ac: remove obsolescent C library tests. AC_HEADER_STDC is
66 removed, and so are most checks for standard C headers. cabextract now
67 makes these assumptions:
68 - <ctype.h> <dirent.h> <errno.h> <limits.h> <locale.h> <stdarg.h>
69 <stdlib.h> <string.h> <sys/stat.h> <sys/types.h> <time.h> exist
70 - <time.h> is protected from double-inclusion (AC_HEADER_TIME obsolete)
71 - if you have iconv(), towlower(), utime(), utimes(), you also
72 have their header files
73 - BSD has memcpy(), memmove(), strrchr() in <string.h> and has
74 strcasecmp() in <strings.h>
75
76 2018-10-26 Stuart Caie <[email protected]>
77
78 * configure.ac, Makefile.am: use pkg-config's PKG_CHECK_MODULES
79 when looking for an external libmspack. You still need to supply
80 --with-external-libmspack to use an external libmspack. If you
81 don't like or use pkg-config, you can set the environment variables
82 libmspack_CFLAGS and libmspack_LIBS before running configure.
83
84 2018-10-26 Stuart Caie <[email protected]>
85
86 * autogen.sh, distcheck.sh: I've introduced new build scripts.
87 Use cleanup.sh to remove all generated files, autogen.sh to
88 generate the configure script, rebuild.sh to (re)build and test
89 cabextract, and finally use distcheck.sh to both build and
90 distcheck cabextract, both with the --with-external-libmspack
91 configure option and without.
92
93 2018-10-22 Stuart Caie <[email protected]>
94
95 * amibuild.sh: include cabinfo in the Amiga distribution. Thanks to
96 Stefan Haubenthal for the suggestion.
97
98 2018-10-16 Stuart Caie <[email protected]>
99
100 * src/cabinfo.c: thanks to Micah Snyder for sending some very corrupt
101 files, where cabinet blocks can be found absolutely anywhere, not in
102 a continguous sequence after the file entries, I found cabinfo unfit
103 for purpose. I've updated it with a new output format, where the
104 blocks for a folder appear immediately after each folder, rather than
105 all at the end.
106
107 2018-10-16 Stuart Caie <[email protected]>
108
109 * src/cabextract.c: use libmspack's new MSCABD_PARAM_SALVAGE mode
110 for cabextract -f, to allow extracting even more data from broken
111 cabinet files.
112
113 2018-07-31 Stuart Caie <[email protected]>
114
115 * configure.ac: drop AC_FUNC_MKTIME. Looking into it, even C89 has
116 a mktime() function, the configure test is mostly checking if it
117 is POSIX-conformant or not, and substitutes mktime.c if not. But
118 even the replacement has no TZ handling, so it seems OK to me to
119 accept the system mktime() in any case. The fnmatch() and getopt()
120 substitutions remain because they enable GNU extensions that
121 cabextract uses (FNM_CASEFOLD and getopt_long() respectively).
122 Thanks to Stefan Haubenthal for bringing up the issue.
123
124 2018-07-28 Stuart Caie <[email protected]>
125
126 * src/cabinfo.c: cabinfo now supports examining more than one file
127
128 2018-07-17 Stuart Caie <[email protected]>
129
130 * amibuild.sh: support using setlocale()/iconv() in the OS4 version.
131
132 * amibuild.sh: build the 68K version with -noixemul so the resulting
133 executable doesn't need ixemul.library, libnix is used instead.
134 Because libnix has no umask(), add a HAVE_UMASK feature test.
135
136 * src/cabextract.c: add a new feature flag, LATIN1_FILENAMES,
137 which should be defined if the host environment expects ISO-8859-1
138 filenames rather than UTF-8. This adds in a step to translate
139 even UTF-8 filenames to ISO-8859-1. It's only enabled for the
140 Amiga build so far.
141
142 2018-03-07 Stuart Caie <[email protected]>
143
144 * configure.ac, src/cabextract.c: add support for choosing the
145 character encoding of non-UTF8 filenames, using the iconv library.
146 This is based on a patch originally developed by Kevin Tardif.
147
148 * src/cabextract.c: try setting various UTF8 locales for LC_CTYPE,
149 in order to get tolower() / towlower() to lowercase non-ASCII
150 characters. Again, thanks to Kevin Tardif for discussing this
151 and supplying a proposed patch.
152
153 2016-04-16 Stuart Caie <[email protected]>
154
155 * configure.ac: change my email address to [email protected]
156
157 2015-05-10 Stuart Caie <[email protected]>
158
159 * wince_rename, wince_info: allow the possibility that strings have
160 more than one null byte. Thanks to Stefan Riegler for the suggestion.
161
162 2015-05-10 Stuart Caie <[email protected]>
163
164 * Makefile.am: Add subdir-objects option as suggested by autoreconf.
165
166 * configure.ac: Add AM_PROG_AR as suggested by autoreconf.
167
168 2015-02-25 Stuart Caie <[email protected]>
169
170 * create_output_name(): Simplify code; do path checking only after
171 output name has been constructed. Use towlower to lowercase UTF-8
172 characters. Remove both leading '/' and '\' from cab filenames and
173 change both "../" and "..\" to "xx", for Cygwin and other Cygwin-like
174 environments that use both '/' and '\' as path separators. Thanks to
175 Alexander Cherepanov and the MITRE team.
176
177 2015-02-18 Stuart Caie <[email protected]>
178
179 * create_output_name(): the check against leading slashes could be
180 evaded with malformed UTF-8. Thanks to Alexander Cherepanov for
181 reporting the issue.
182
183 2015-01-18 Stuart Caie <[email protected]>
184
185 * wince_rename: installed files now include their install directories.
186 Thanks to Alfonso Acosta for sending a patch.
187
188 2015-01-08 Stuart Caie <[email protected]>
189
190 * create_output_name: avoid invalid memory reads because of invalid
191 UTF-8 encodings. Use the Unicode substitution character for most
192 bad UTF-8 or Unicode encodings. Thanks to Hanno Böck.
193
194 * src/cabinfo.c: stop trying to convert UTF-8 to ASCII in filename.
195 Instead, prepend "UTF: " and print it to the terminal verbatim.
196
197 2011-07-19 Stuart Caie <[email protected]>
198
199 * doc/ja/cabextract.1: Katsumi Saito updated the Japanese translation
200 of cabextract's manpage to include the -t option. Thanks again!
201
202 2011-05-11 Stuart Caie <[email protected]>
203
204 * src/cabinfo.c: changed the largefile detection header to the same
205 as mspack/system.h
206
207 2011-04-27 Stuart Caie <[email protected]>
208
209 * src/cabextract.c: changed char* to const char* in line with changes
210 in libmspack. See mspack/ChangeLog for more details.
211
212 2011-04-25 Stuart Caie <[email protected]>
213
214 * load_spanning_cabinets(): Print the error code caused by a failed
215 cabinet merge, before ruining the error code by calling cabd->close().
216 Thanks to Drew D'Addesio for reporting the problem.
217
218 2011-01-19 Stuart Caie <[email protected]>
219
220 * doc/wince_cab_format.html: Identified a new file flag in the WinCE
221 header file. Thanks to Paul Sokolovsky for asking me to look into it.
222
223 2010-07-19 Stuart Caie <[email protected]>
224
225 * mspack: MS-ZIP recovery now recovers more bytes. Also, when a file
226 fails to unpack because of a read error during decompression, all
227 subsequent files in the same folder will give the same error, instead
228 of claiming to be OK. See mspack/ChangeLog for full details.
229
230 2010-07-17 Stuart Caie <[email protected]>
231
232 * src/cabsplit: added new program, cabsplit, which splits cabinet
233 files into one cabinet file per folder. Useful for debugging.
234
235 2010-06-17 Stuart Caie <[email protected]>
236
237 * configure.ac: Added --external-libmspack option, which allows
238 you to use the libmspack library installed on your system rather
239 than the copy bundled with cabextract. Thanks to Patrice Dumas
240 for the patch.
241
242 2010-06-10 Stuart Caie <[email protected]>
243
244 * mspack: bugs in MS-ZIP and Quantum decoders have been fixed. See
245 mspack/ChangeLog for full details.
246
247 2010-05-06 Stuart Caie <[email protected]>
248
249 * configure.ac, cabextract.c: added support for the one-arg mkdir()
250 found in the MinGW32 environment. Thanks to Kevin O'Rourke for
251 reporting this.
252
253 2009-09-24 Stuart Caie <[email protected]>
254
255 * doc/wince_cab_format.html, src/wince_info, src/wince_rename:
256 The files in Windows CE cabinets are numbered after the first
257 ID in the FILES section, rather than what I termed the "real ID".
258 Fixed the documentation and the wince tools to match. The purpose
259 of the field previously called "real ID" is now unknown. Thanks
260 to Marco Schindler for discovering this.
261
262 2007-08-07 Stuart Caie <[email protected]>
263
264 * all: cabextract and libmspack have moved to the domain
265 www.cabextract.org.uk. Updated the documentation to reflect this.
266
267 2007-01-20 Stuart Caie <[email protected]>
268
269 * create_output_name(): add UTF-8 support for 6-byte characters.
270 Apparently they go that far these days.
271
272 2007-01-20 Stuart Caie <[email protected]>
273
274 * doc/wince_cab_format.html, src/wince_info: The REGKEYS "unknown"
275 flag appears to be a boolean indicating whether variable
276 substitution should take place. Thanks to Dominique Gallot for
277 discovering it.
278
279 2006-06-21 Stuart Caie <[email protected]>
280
281 * create_output_name(): add UTF-8 support for 4-byte characters.
282
283 2006-03-01 Stuart Caie <[email protected]>
284
285 * process_cabinets(): on the advice of Mike Mohr, cabextract no
286 longer skips entire cabinets, when create_output_filename()
287 returns NULL, it only skips the affected files now.
288
289 2005-10-30 Stuart Caie <[email protected]>
290
291 * src/cabextract.c: added test mode to cabextract, wherein files
292 aren't extracted, only passed through an MD5 checksum generator.
293 cabextract then lists which files passed and which files failed.
294
295 * process_cabinets(): fixed the problem where filters don't match
296 when -d option is also used. The filters match on the full
297 output-file path, including the -d directory specified. We now
298 trim this off before matching.
299
300 2005-10-29 Stuart Caie <[email protected]>
301
302 * fnmatch.c, getopt.c: finally resolved problems with all the GNU
303 replacement functions. Obtained new versions of fnmatch and
304 getopt, removing the need for alloca.c, coded out the requirement
305 for mempcpy in getopt.c (I don't think it was needed anyway, but
306 just to be sure I changed it to use just memcpy). Tested on Mac OS X
307 (both native and using fink), Solaris 8 and Cygwin as well as Debian.
308
309 * configure.ac: Removed the AC_FUNC_ALLOCA and
310 AC_REPLACE_FUNCS([mempcpy])
311
312 2005-07-05 Stuart Caie <[email protected]>
313
314 * src/cabinfo.c: This can now search and print accurate output for
315 cabinets (and files containing cabinets) over 2GB.
316
317 2005-04-21 Stuart Caie <[email protected]>
318
319 * src/cabinfo.c: This now prints if the NAME_IS_UTF flag is set for
320 each file.
321
322 2004-10-19 Stuart Caie <[email protected]>
323
324 * create_output_name(): fixed out-by-one error in UTF-8 decoder. All
325 UTF-8 filenames would reach the "error in UTF-8 decode" section,
326 because the test for that section was "pointer >= last_character",
327 not "pointer > last_character".
328
329 2004-10-18 Stuart Caie <[email protected]>
330
331 * process_cabinet(): now accepts that failure of create_output_name()
332 is an error, and also lets that function print an error message
333 rather than printing one itself.
334
335 * create_output_name(): improved the two error messages that could
336 be printed.
337
338 2004-10-15 Stuart Caie <[email protected]>
339
340 * create_output_name(): removes leading "./" and "../" as well as
341 leading slashes from the input filename. Thanks to David Banz for
342 pointing this out, as well as http://www.securityfocus.com/bid/11376/
343
344 2004-07-16 Stuart Caie <[email protected]>
345
346 * Makefile.am: added -DMSPACK_NO_DEFAULT_SYSTEM. Why wasn't this in
347 earlier?
348
349 * src/cabextract.c: added prototypes of the cabx_ functions,
350 removed the prototype of cabextract_system and moved the real
351 cabextract_system to before main(). This is so AIX doesn't fail on
352 seeing an extern and a static definition of the same
353 global. That's messed up!
354
355 * alloca.c, fnmatch*, getopt*, mempcpy.c: imported these from
356 gcc's latest libiberty. This should fix problems with Cygwin.
357
358 2004-03-18 Stuart Caie <[email protected]>
359
360 * process_cabinet(): added missing printf argument when errors on
361 extracting to stdout occur. Thanks to Moritz Barsnick for finding
362 it.
363
364 2004-03-08 Stuart Caie <[email protected]>
365
366 * all: tidy-ups for 1.0 release
367
368 2003-09-04 Stuart Caie <[email protected]>
369
370 * set_date_and_perm(): implemented the utimes() alternative to
371 utime().
372
373 * set_date_and_perm(): sets the date before the permissions are set,
374 in case read-only files really do get -r--r--r-- permissions and
375 your dumb OS won't let the date can't be changed.
376
377 2003-08-14 Stuart Caie <[email protected]>
378
379 * wince_cab_format.html: Shaun Jackman worked out six more fields
380 in the header.
381
382 2003-08-12 Stuart Caie <[email protected]>
383
384 * cabextract.c: rewrote all function documentation in javadoc /
385 doxygen format.
386
387 * configure.ac: added AC_FUNC_ALLOCA / @ALLOCA@ / alloca.c because
388 I noticed that fnmatch.c uses alloca().
389
390 2003-08-11 Stuart Caie <[email protected]>
391
392 * main(): Removed the redundant args.list with args.view. I was
393 wondering why cabextract -l file.cab was trying to extract instead
394 of list...
395
396 2003-08-06 Stuart Caie <[email protected]>
397
398 * configure.in, Makefile.am: rewrote the configure and build
399 scripts, in the new style. fnmatch sources are now bundled, and
400 now all the support code and tools are in the top directory,
401 leaving src/ with nothing but cabextract code in it.
402
403 2003-08-05 Stuart Caie <[email protected]>
404
405 * wince_cab_format.html: converted the WinCE CAB format document
406 from text to HTML.
407
408 2003-07-29 Stuart Caie <[email protected]>
409
410 * cabextract.c: now rewritten to use libmspack.
411
412 * process_cabinet(): the cabinet listing now has space for 10
413 digits in the size field, for those really big compressed files.
414 The maximum size of a file is 4294967295 bytes.
415
416 2003-07-18 Stuart Caie <[email protected]>
417
418 * cabextract.c: started refactoring cabextract to use the
419 libmspack library. Moved everything out of cabextract.c and will
420 start moving things back in as necessary.
421
422 * doc, mspack: added a doc directory, where fun things like manual
423 pages, magic files and file format documents go. Made a directory for
424 libmspack files.
425
426 2003-06-07 Stuart Caie <[email protected]>
427
428 * mspack: started creation of the libmspack library, based on the
429 cabextract code. See http://www.kyz.uklinux.net/libmspack/ for more
430 details about the library.
431
432 2003-05-14 Stuart Caie <[email protected]>
433
434 * magic.cabinet: fixed errors in CAB magic definition
435
436 * magic.wince: added magic file entry for WinCE install format
437
438 * configure.in: added large file support
439
440 2003-04-21 Stuart Caie <[email protected]>
441
442 * ja/cabextract.1: Katsumi Saito kindly translated the updated
443 manual page into Japanese for me.
444
445 2003-04-20 Stuart Caie <[email protected]>
446
447 * cabextract.1: finally decided on feature set for cabextract 0.7,
448 so I updated the manual to reflect that.
449
450 2003-03-12 Stuart Caie <[email protected]>
451
452 * wince_cab_format.txt: reverse engineered most of the file format
453 for Windows CE installation CAB header files. Windows CE uses
454 normal cabinet files, but the files inside the cabinets use short
455 filenames and a special binary header to specify full filenames,
456 install directories, registry entries and symbolic links. If
457 anyone wants to help fill in the remaining fields, I'm all ears.
458
459 2002-11-19 Stuart Caie <[email protected]>
460
461 * cabextract.c: moved the generation of the correct unix filename
462 for an extracted file out of file_open() and into the main
463 process_cabinet() function (it now has a helper function called
464 create_output_name()). This is to make the real filename available
465 outside of file_open(). (See below)
466
467 * file_close(): chmod() and utime() are now called on the correct
468 filename :)
469
470 2002-11-13 Stuart Caie <[email protected]>
471
472 * unix_directory_seperators(): this is a new function added to
473 determine whether the CAB file is using "wrong" UNIX-style forward
474 slashes as directory seperators. Microsoft CAB files use
475 MS-DOS backslashes, however the tools Cablinux and PowerArchiver
476 create CABs with forward-slashes.
477
478 2002-09-12 Stuart Caie <[email protected]>
479
480 * file_cabs_in_file(): if the file itself doesn't exist, we no
481 longer print "Not a Microsoft cabinet file" for not finding any
482 cabinets in that file.
483
484 2002-09-08 Stuart Caie <[email protected]>
485
486 * cabextract.c: cabextract used to segv if an LZX or Quantum
487 folder came after an MSZIP folder, because the window pointer
488 would be filled in by MSZIP's state. To solve this, I took the
489 window pointers and associated variables out of the state union,
490 and I also started clearing the state structure on startup. I also
491 removed the 'what was the old compression type / free window' code
492 and replaced it with a simple 'free LZX/QTM window if it exists'
493 before ZIP initialisation.
494
495 2002-09-08 Stuart Caie <[email protected]>
496
497 * find_cabs_in_file(): if a file begins with "ISc(", cabextract
498 now prints a message about how to unpack InstallShield '.cab'
499 files, which begin with this signature.
500
501 2002-09-08 Stuart Caie <[email protected]>
502
503 * cabextract.c: After seeing what some people think the command
504 line syntax is for cabextract is
505 (e.g. http://slashdot.org/comments.pl?sid=39401&cid=4210033) I
506 have decided to be nice to people who don't read manuals, and
507 refuse to extract files given on the command line if they've
508 already been extracted as part of another cabinet. This does
509 preclude the scenario where a file is not only part of a
510 multi-part set, but has a cabinet at offset 0 and _also_ has
511 embedded cabs later on. The new functionality is implemented by
512 the new functions remember_cabinet() and known_cabinet(), which
513 use a simple linked list. If you want the old behaviour of
514 cabextract back, do "find <cabs> -exec cabextract {} \;".
515
516 2002-09-08 Stuart Caie <[email protected]>
517
518 * configure.in: Upgraded my autoconf to one that has the AC_EXEEXT
519 bug fixed (look up AC_EXEEXT xSYM on the Internet :). Now it
520 complains about me writing to LIBOBJS directly, so I use the macro
521 AC_LIBOBJ twice to add getopt and getopt1 to LIBOBJS.
522
523 2002-08-20 Stuart Caie <[email protected]>
524
525 * AUTHORS, ChangeLog, NEWS, cabextract.c: fixed mis-spellings of
526 Matthew Russotto's name.
527
528 * ChangeLog: finished a half-completed changelog entry.
529
530
531 2002-08-12 Stuart Caie <[email protected]>
532
533 * cabextract.c: now prints all errors and warnings to stderr
534 rather that stdout. I finally noticed that perror() prints to
535 stderr, and I want to follow suit.
536
537 2002-08-11 Stuart Caie <[email protected]>
538
539 * extract_file(): now prints out the correct cabinet name in error
540 messages, in the case of files which are split over multiple
541 cabinet files and the 2nd or later split cabinet contains the
542 error.
543
544 * QTMdecompress(): fixed the QTM decoding error - basically, Matthew
545 used the bitstream reading macros from my LZX decompressor. Sadly,
546 these macros can only guarantee at maximum 17 bits available in the
547 bit buffer, and Quantum uses up to 19 bits. I rewrote the Quantum
548 bit buffer macros to be multi-pass (and therefore slower) so they
549 can get the requisite number of bits.
550
551 * QTMinit(): after fixing the decoding bug, I noticed that files
552 always failed extraction when going to a second folder. It turns out
553 that I forgot to reset QTM's window_posn.
554
555 * configure.in: added limits.h to the list of checked includes
556
557 * cabextract.c: ULONG_BITS now defined in terms of CHAR_BIT from
558 <limits.h> rather than fixed to 8 bits per char. Oddly, my system
559 seems to include <linux/limits.h> rather than <limits.h>. So, for
560 people like me, I also define CHAR_BIT to be 8 if it's not already
561 defined.
562
563 2002-07-29 Stuart Caie <[email protected]>
564
565 * cabextract.c: The Ministry of Sensible Naming dictates that
566 load_cab() be renamed find_cabs_in_file(), and lose the 'search'
567 argument. Calls to load_cab() where the search argument = 0 (i.e.,
568 when loading spanning cabinets) be changed to load_cab_offset(x,0).
569
570 2002-07-25 Stuart Caie <[email protected]>
571
572 * load_cab(): Bah! off_t is defined as a signed long int, and
573 not an unsigned long int as I had previously thought. This means the
574 'valid cabinet' comparisions may fail. I have fixed this by making
575 these comparisons unsigned.
576
577 * cabinfo.c: added the new search mechanism to cabinfo.
578
579 2002-07-25 Stuart Caie <[email protected]>
580
581 * process_cabinet(): rewrote the loading mechanism. Uses the new
582 load_cab() to get a list of cabinets in the base file. Also does
583 bi-directional loading of spanning cabinets.
584
585 * load_cab(): now takes a 'search' parameter. if search=0, the old
586 loading behaviour is performed, but if search=1, it now does the
587 exhaustive search for all matching cabinets and tries to load
588 them. If a load succeeds, it skips that section of the
589 file. Therefore, all embedded cabinets are found, yet most of the
590 file does not need to be searched.
591
592 * cabinet_find_header(): removed, see above. Also, in shifting the
593 search, I altered the search mechanism. It now uses a state
594 machine to get around border cases, rather than the flaky 'save
595 the last 20 bytes and put them at the start the next time around'.
596
597 * cabinet_read_entries(): now checks the MSCF signature, as there
598 is no longer a cabinet_find_header() to do this.
599
600 2002-07-23 Stuart Caie <[email protected]>
601
602 * LZXdecompress(), QTMdecompress(): On systems where the LZ window
603 pointer is in "low memory", runsrc (window pointer - match offset)
604 could be below address 0, which wraps around to the end of memory,
605 so it appears runsrc is ahead of the LZ window, and so it does not
606 need 'fixing' before the match copy. Therefore the match data is
607 read from the incorrect, high address. Thanks to the NetBSD team
608 for discovering this and providing the patch.
609
610 2002-07-22 Stuart Caie <[email protected]>
611
612 * file_close(): now honours your umask settings when extracting
613 files. Thanks to the NetBSD team for the patch.
614
615 * cabinet_seek(), cabinet_skip(): these now print errors if
616 fseek() returns an error.
617
618 * QTMdecompress(): finally! Added an implementation of the Quantum
619 method which was researched and written by Matthew Russotto. Many
620 thanks to him for all the hard work he did to produce this. I
621 tidied up the code to be more my style (and to be quite a bit
622 faster by inlining the bit buffer, H, L and C), but it's still all
623 his code running.
624
625 * find_next_cabinet_file(): this is a new function which finds the
626 "next cabinet" by opening the directory it would be in and reading
627 each filename case-insensitively. It also handles any such "next
628 cabinets" with directory elements (delimited with MS-DOS
629 backslashes).
630
631 * process_cabinet(): now uses find_next_cabinet_file() to get the
632 next cabinet file. This function also replaces the hack that gets
633 any directory path which might be embedded in the base cabinet
634 filename (as mentioned on the command line).
635
636 2002-07-21 Stuart Caie <[email protected]>
637
638 * file_close(): fixed off-by-one error in setting the extracted
639 file date. Thanks to Claus Rasmussen.
640
641 2002-07-20 Stuart Caie <[email protected]>
642
643 * file_open(): now removes any leading slashes from the name of
644 the file to be extracted. Thanks to the James Henstridge and
645 David Leonard for patches.
646
647 * ensure_filepath(): now does not try to examine the directory ""
648 (i.e. no directory at all) if given an absolute path (one that
649 start with a slash). Thanks to the James Henstridge for the patch.
650
651 2002-04-30 Stuart Caie <[email protected]>
652
653 * cabextract.spec.in: changed the fixed version number to @VERSION@
654
655 2002-04-06 Stuart Caie <[email protected]>
656
657 * Makefile.am, configure.in: used the guide no_getopt_long.txt
658 included with the gengetopt package to add getopt_long
659 configuration to cabextract. Hopefully it all works now. Thanks to
660 the many people who pointed out this problem and to the many
661 people who offered solutions.
662
663 2001-09-06 Stuart Caie <[email protected]>
664
665 * Makefile.am, configure.in: made cabextract.spec one of the auto-
666 generated files. Now I can do 'make distcheck' here to build a
667 distribution which can be installed using 'rpm -tb
668 cabextract-0.6.tar.gz'. Thanks to Daniel Resare for the know-how.
669
670 2001-08-20 Stuart Caie <[email protected]>
671
672 * Makefile.am: added an LDADD line for cabextract's LIBOBJS
673 generated by configure. This means the AC_REPLACE_FUNCS line
674 should actually have an effect.
675
676 * configure.in: Removed getopt_long and mktime from the
677 AC_CHECK_FUNCS, as this is done anyway.
678
679 2001-08-19 Stuart Caie <[email protected]>
680
681 * Makefile.am, configure.in, cabextract.c: moved the GNU getopt
682 sources to become an automatically added dependency if
683 getopt_long() can't be found in the standard library, just like
684 mktime() is handled. The getopt_long(), struct option and optarg
685 and optind definitions are taken from getopt.h if possible. If
686 they're not there, but getopt_long() was found with standard
687 includes files, it's assumed they're defined in the standard
688 include files. Otherwise, we define them ourselves.
689
690 * cabextract.c: now gets VERSION defined from configure via
691 config.h.
692
693 * decompress(): if the 'fix' option was used, the output buffer
694 would always be cleared before block decompression. A nice idea,
695 but the MSZIP method likes to keep the output buffer between
696 blocks. Thanks to Fernando Trias for spotting this. Stopped
697 clearing the output buffer.
698
699 * main(): the 'fix' variable wasn't initialised to zero, so on
700 some architectures, where the stack-space allocated to the
701 variable isn't cleared to zero, you always got the 'fix' option
702 selected. See above for why this was bad.
703
704 * process_cabinet(): now prints "Finished processing cabinet" when
705 finished extracting, instead of just a blank line. Still prints
706 blank lines for listing files.
707
708 2001-08-05 Stuart Caie <[email protected]>
709
710 * Makefile.am: the manpage wasn't included in the distribution.
711 Fixed and re-issued the 0.3 release.
712
713 2001-08-02 Stuart Caie <[email protected]>
714
715 * decompress(): now takes a 'fix' flag, which causes MSZIP errors
716 to be ignored.
717
718 * cabinet_get_entries(): now keeps the printable information about
719 previous and next cabinet parts
720
721 * process_cabinet(): now prints the printable information about
722 the next cabinet part in a multi-part cabinet
723
724 * file_open(): now prepends a given directory if wanted, and can
725 make the filename lowercase if wanted.
726
727 * main(): changed to using getopt_long to parse arguments. Added
728 -L (lowercase), -d (output to directory), -f (fix corrupt cabs),
729 -h (help), -q (quiet) and -v was recycled to become --version,
730 when used on its own.
731
732 * LZXdecompress(): major bug fixed; the updated R0, R1 and R2 in
733 uncompressed blocks were being stored in the uncomp_state block,
734 not local variables. At the end of the function, the local values
735 are always written back to the uncomp_state block. So the values
736 placed there by the uncompressed block header were always
737 overwritten. Thanks to Pavel Turbin for providing an example of
738 this.
739
740 * rindex(): this is the BSD precursor of the ANSI standard
741 function strrchr(). Oops! Now uses strrchr(), or rindex() if
742 strrchr() isn't available.
743
744 * cabinet_find_header(): now prints an error message if it can't
745 find a header.
746
747 2001-04-30 Stuart Caie <[email protected]>
748
749 * fixed includes to include both <strings.h> and <string.h> if
750 they both exist, and made some signedness conversions explicit.
751 This should let cabextract compile with SGI's native
752 compiler. Thanks to Markus Nullmeier for the patch.
753
754 2001-03-04 Stuart Caie <[email protected]>
755
756 * main(): now prints the version of cabextract in the copyright
757 line.
758
759 * cabinet_find_header(): now searches any kind of file, not just
760 files beginning with 'MZ' header. Also, always searches entire
761 file. This slows the search down, but increases the usefulness of
762 the search overall, IMHO. Thanks to Eric Sharkey for pointing this
763 out.
764
765 * LZXdecompress(): fixed problem in intel decoding: E8 must not
766 appear in the last 10 bytes, not the last 6 bytes... Thanks to Jae
767 Jung who pointed this out to me. I didn't believe him at first,
768 but he was quite right. Also thanks to Antoine Amanieux for
769 providing example files affected by this.
770
771 * process_cabinet(): now extends multipart cabinet filenames to be
772 in the same directory as the base cabinet.
773
774 * cabinet_open(): now only lowercases the filename part of a
775 cabinet name, not the path part.
776
777 2001-03-03 Stuart Caie <[email protected]>
778
779 * LZXdecompress(): fixed LZX bit buffer exhaustion in where
780 READ_HUFFSYM() requests more bits than the buffer actually
781 contains: top-of-loop overflow check now allows for the input
782 pointer to be 16 bits past the end of the buffer, but checks to
783 ensure none of those 16 bits are actually used. Also increased
784 decomp_state.inbuf by two bytes and clear the two bytes after
785 loaded block in decompress(). Thanks to Jae Jung for pointing out
786 this bug, and for providing example files which exposed the bug.
787
788 2001-02-26 Stuart Caie <[email protected]>
789
790 * added configure script / makefile using automake.
791
792 * file_close(): now sets the timestamp on extracted files.