1 2008-02-21 Koji Arai <arai@users.sourceforge.jp>
3 * src/header.c (canon_path): should remove duplicated slash.
4 (the function name is renamed from remove_dots().)
6 * tests/lha-test17: added a test for above.
8 2008-02-17 Koji Arai <arai@users.sourceforge.jp>
10 * src/lhext.c (extract_one) could not extract files under readonly directories, like:
12 dr-xr-xr-x 2 arai arai 4096 Jan 5 03:30 foo/
13 -rw-r--r-- 1 arai arai 0 Jan 5 03:30 foo/bar
15 * tests/Makefile.am: added a test for above.
17 * tests/lha-test.in: ditto.
19 * tests/lha-test18: ditto.
21 2008-02-05 Koji Arai <arai@users.sourceforge.jp>
23 * config.h. configure.ac: added a configure option
24 --with-additional-suffixes for SuSE Linux.
26 * src/lharc.c (open_old_archive): make it possible to add archive
29 * src/lharc.c (print_version): show the configure option by the
32 2007-09-09 Koji Arai <arai@users.sourceforge.jp>
34 * src/header.c: `put_longword()' should be used the ANSI-C declaration.
36 Created archives was broken on Big-endian machine (and 64-bits machine).
38 2007-09-08 Koji Arai <arai@users.sourceforge.jp>
40 * Added tests for extract large files.
42 Added two tests for extract files over 2G and 4G bytes.
43 These are not performed in default, because it will be take a long time.
45 2007-09-08 Koji Arai <arai@users.sourceforge.jp>
47 * Fix a bug: Could not extract 2G over files.
49 2007-09-05 Koji Arai <arai@users.sourceforge.jp>
51 * 00readme.autoconf: Added description for the -b switch which extract MacBinaries.
53 2007-09-04 Koji Arai <arai@users.sourceforge.jp>
55 * use the length modifier `ll' (%llu) for printing 64bit value.
57 2007-09-04 Koji Arai <arai@users.sourceforge.jp>
59 * update prototypes.h using cproto
61 2007-09-03 Koji Arai <arai@users.sourceforge.jp>
63 * src/append.c, src/extract.c, src/header.c, src/indicator.c, src/lha.h, src/lhadd.c, src/lhext.c, src/lhlist.c, src/prototypes.h, src/slide.c, src/util.c:
64 Possible to extract files over 4G, use UNLHA32.DLL specific extended header.
66 2007-05-23 Koji Arai <arai@users.sourceforge.jp>
68 * tests/lha-test.in: added an optional numeric command-line
69 argument, and a command-line switch -n.
70 when the numeric argument is specified, only the testsuite is
71 performed. and the -n switch is specified, it is not made cleanup
72 trash files which is result of the test.
74 * tests/lha-test11: On MS-Windows, should consider the length of
77 * tests/lha-test11: On MS-Windows, if current directory is too
80 2007-05-23 Koji Arai <arai@users.sourceforge.jp>
82 * config.h.in, configure.ac, src/lharc.c: the option -X was deprecated.
83 In place of it, added a long option --ignore-mac-files which
84 ignore Mac specific files ._*, .DS_Store and Icon\r when the
85 archive is created. Thanks to Hiroto Sakai.
87 2007-05-20 Koji Arai <arai@users.sourceforge.jp>
89 * repository changed to the Subversion.
91 * tests/lha-test12: should not use the raw CR code.
92 (when checkout from SVN repos, raw CR code is removed.)
94 2007-02-24 Koji Arai <arai@users.sourceforge.jp>
96 * src/lharc.c (print_tiny_usage, parse_suboption): added a long
97 option "--traditional". it is just the same
98 "--convert-filename-case" for the present.
100 * src/header.c (get_header): the variable "noconvertcase" changed
102 it means that this LHa does not convert filename case automatically.
106 * src/lharc.c (init_variable): ditto.
108 * src/lharc.c (print_tiny_usage, parse_suboption): added a long
109 option "--convert-filename-case" that change to the old behavior.
111 * src/lharc.c (print_usage, parse_suboption): the "g" option has
112 no meaning when extracting.
114 * src/header.c (write_header): no upcase filename when the generic
117 2007-02-24 Koji Arai <arai@users.sourceforge.jp>
119 * configure.ac: updated version.
121 * src/lharc.c (print_usage): updated.
123 2007-02-24 Koji Arai <arai@users.sourceforge.jp>
125 * src/header.c (copy_path_element, remove_dots, init_header):
126 should treat "foo" and "./foo" as same file, so remove "./" from
129 * tests/Makefile.am, tests/lha-test.in, tests/lha-test17:
130 added tests for the removing relative path.
132 2006-10-09 Koji Arai <arai@users.sourceforge.jp>
134 * src/lha_macro.h (MIN): newly added a macro for below.
136 * maketbl.c (make_table): applied the security patch for the
137 CVE-2006-4335 and CVE-2006-4337.
139 * huf.c (read_pt_len, read_c_len, decode_c_st1, decode_p_st1):
140 applied the security patch for the CVE-2006-4338.
142 2006-10-09 Koji Arai <arai@users.sourceforge.jp>
144 * tests/lha-test.in: the function local variable `$status' is treated as
145 the builtin variable on the Zsh version 4.3.2, so it was renamed to
148 * tests/Makefile.am, tests/lha-test.in, tests/lha-test16, tests/lha-test16-l0.lzh, tests/lha-test16-l1.lzh, tests/lha-test16-l2.lzh, tests/lha-test16-lg.lzh:
149 added tests for the header CRC.
151 2006-10-08 Koji Arai <arai@users.sourceforge.jp>
153 * 00readme.autoconf: updated.
155 * Hacking_of_LHa: changed mail address.
157 2006-10-08 Koji Arai <arai@users.sourceforge.jp>
159 * configure.ac: updated version.
161 * configure.ac, src/header.c, src/lha_macro.h, src/lhadd.c, src/lhext.c, src/lhlist.c, tests/lha-test12:
162 re-applied the correct DJGPP patch. Thanks to Doug Kaufman.
164 2006-10-02 Koji Arai <arai@users.sourceforge.jp>
166 * configure.ac: updated version.
168 * src/header.c, src/lha.h, src/lha_macro.h, src/lhadd.c, src/lharc.c, src/lhext.c, src/lhlist.c, src/vsnprintf.c, tests/lha-test.in, tests/lha-test11, tests/lha-test12:
169 applied the patch for the DJGPP. Thanks to Doug Kaufman.
171 * 00readme.autoconf, configure.ac: changed mail address.
173 2006-09-11 Koji Arai <jca02266@nifty.com>
175 * configure.ac: updated version.
177 * src/lharc.c (print_usage): updated.
179 2006-09-11 Koji Arai <jca02266@nifty.com>
181 * config.h.in (HAVE_LIBAPPLEFILE): added `b' option which extract
182 the MacBinary. Thanks to Hiroto Sakai.
184 * configure.ac: ditto.
186 * src/lha.h (decode_macbinary_contents): ditto.
188 * src/lhadd.c (build_temporary_file): ditto.
190 * src/lharc.c (decode_macbinary_contents, print_tiny_usage, parse_suboption): ditto.
192 * src/lhext.c (extract_one, decode_macbinary): ditto.
194 * src/prototypes.h (build_temporary_file): ditto.
196 2006-09-11 Koji Arai <jca02266@nifty.com>
198 * src/lharc.c (parse_suboption): `-X' option has been ineffective.
199 Thanks to Hiroto Sakai.
201 2005-10-15 Koji Arai <jca02266@nifty.com>
203 * src/lha_macro.h (UPDATE_CRC): To casting with (unsigned char)
204 should not be for the variable (c) but for the (crc). Thanks to
207 2005-10-13 Koji Arai <jca02266@nifty.com>
209 * tests/lha-test.in: emulate POSIX shell when it is executed by
210 zsh or bash. (this part is derived from GNU Autoconf 2.59)
212 * tests/Makefile.am: replaced `bash' with `@sh_for_lha_test@'
214 * configure.ac: search shell programs to execute the lha-test.
216 2005-09-25 Koji Arai <jca02266@nifty.com>
218 * src/prototypes.h: updated.
220 * src/crcio.c (calccrc, fread_crc, fwrite_crc, fread_txt, fwrite_txt): suppress compiler warnings on gcc-4.0.
222 * src/header.c (calc_sum): ditto.
224 * src/lha_macro.h (UPDATE_CRC): ditto.
226 2005-09-24 Koji Arai <jca02266@nifty.com>
230 * configure.ac: updated version and my mail address.
232 * Hacking_of_LHa: updated. (2003-02-23 edition)
234 * 00readme.autoconf: updated.
236 2005-06-08 Koji Arai <jca02266@nifty.ne.jp>
238 * configure.ac: updated version.
240 * src/lharc.c (parse_suboption): fixed a bug, when the
241 --system-kanji-code option specified, the --archive-kanji-code
244 2005-05-08 Koji Arai <jca02266@nifty.ne.jp>
246 * configure.ac: updated version.
248 * src/lharc.c (print_usage): updated.
250 * src/lhadd.c, src/header.c (remove_leading_dots): move to
251 header.c for readlink().
253 * src/lhadd.c (add_one): symbolic link indication was contrary.
254 ( not "realname -> linkname" but "linkname -> realname" )
257 * src/lhext.c (extract_one): ditto.
259 * src/lhlist.c (list_one): ditto.
261 * tests/lha-test14: ditto.
263 * src/lhadd.c (remove_leading_dots): newly added.
265 * src/lhadd.c (append_it): remove leading relative path from
268 * src/lhext.c (is_directory_traversal): should return true when
271 2004-10-02 Koji Arai <jca02266@nifty.ne.jp>
273 * src/lharc.c (print_tiny_usage): added long option helps.
275 * src/prototypes.h: updated.
277 * src/lharc.c: should accept a single option --help and --version.
279 2004-09-29 Koji Arai <jca02266@nifty.ne.jp>
281 * src/lharc.c (parse_option, parse_suboption): use getopt_long().
283 * src/Makefile.am: added getopt_long.c and getopt_long.h.
285 * src/getopt_long.c, src/getopt_long.h: newly added.
287 2004-09-29 Koji Arai <jca02266@nifty.ne.jp>
291 * 00readme.autoconf: note for builds on MS-Windows.
293 * configure.ac: updated version.
295 * Makefile.am: added Hacking_of_LHa in EXTRA_DIST.
297 * Hacking_of_LHa: renamed (typo).
299 2004-09-27 Koji Arai <jca02266@nifty.ne.jp>
301 * configure.ac: updated version.
303 * src/prototypes.h (str_safe_copy): newly added.
304 (build_standard_archive_name, build_backup_file):
305 added argument the size for build_standard_archive_name() and
308 * src/header.c (init_header): use str_safe_copy() instead of strcpy().
310 * src/lhadd.c (build_backup_file, cmd_add, cmd_delete):
311 added argument the size for build_standard_archive_name() and
314 * src/lhext.c (make_parent_path): use str_safe_copy() instead of strcpy().
315 (extract_one): ditto.
317 * src/lharc.c (find_files): use str_safe_copy() instead of strcpy().
318 (build_temporary_name): ditto.
319 (modify_filename_extention): ditto.
320 (build_backup_name): ditto.
321 (build_standard_archive_name): ditto.
323 * src/util.c (str_safe_copy): newly added.
325 2004-09-26 Koji Arai <jca02266@nifty.ne.jp>
327 * src/header.c: fixed typo.
329 2004-09-18 Koji Arai <jca02266@nifty.ne.jp>
331 * configure.ac: updated version.
333 * 00readme.autoconf: added a description about
334 `--extract-broken-archive' option.
336 * src/lharc.c (init_variable, parse_option): added an option
337 `--extract-broken-archive' to extract broken archive.
339 * src/lha.h (extract_broken_archive): ditto.
341 * src/slide.c (encode, decode): fixed a *FATAL* bug which make a
344 2004-05-08 Koji Arai <jca02266@nifty.ne.jp>
346 * configure.ac: updated version.
348 * src/prototypes.h: updated.
350 * src/lhext.c (extract_one, is_directory_traversal): applied a
351 security patch (CAN-2004-0235: directory traversal problems)
353 * src/lharc.c (print_usage): updated.
355 2003-12-18 Koji Arai <jca02266@nifty.ne.jp>
357 * src/header.c (wintime_to_unix_stamp): no use 64bit constant to
358 avoid the warning `integer constant is too large for "long" type'
359 on GCC. however, for portability, no use the unsigned long long
362 2003-12-13 Koji Arai <jca02266@nifty.ne.jp>
364 * configure.ac: updated version.
366 * src/lhext.c (extract_one, cmd_extract): preserve directory
367 timestamp. Thanks Akihiro Iriyama.
369 * src/lhext.c (add_dirinfo, adjust_dirinfo): newly added.
371 2003-09-28 Koji Arai <jca02266@nifty.ne.jp>
373 * Makefile.am (SUBDIRS): reordered to avoid useless re-compilation.
375 2003-09-21 Koji Arai <jca02266@nifty.ne.jp>
379 * configure.ac: updated version.
381 2003-08-18 Koji Arai <jca02266@nifty.ne.jp>
383 * 00readme.autoconf: fixed.
385 * configure.ac: use AC_SYS_LARGEFILE for largefile support.
387 * config.h.in: ditto.
389 * src/prototypes.h: updated.
391 2003-07-29 Koji Arai <jca02266@nifty.ne.jp>
393 * tests/Makefile.am (EXTRA_DIST): lha-test1 was missed.
395 * tests/lha-test13: should set LANG=C for `tr'.
397 2003-07-28 Koji Arai <jca02266@nifty.ne.jp>
399 * tests/lha-test.in: filename should be contained in last error
402 2003-07-27 Koji Arai <jca02266@nifty.ne.jp>
404 * tests/lha-test2: no need to set $FILENAME.
405 * tests/lha-test3: ditto.
406 * tests/lha-test4: ditto.
407 * tests/lha-test5: ditto.
408 * tests/lha-test6: ditto.
409 * tests/lha-test7: ditto.
410 * tests/lha-test8: ditto.
411 * tests/lha-test9: ditto.
412 * tests/lha-test10: ditto.
413 * tests/lha-test11: ditto.
414 * tests/lha-test12: ditto.
415 * tests/lha-test13: ditto.
416 * tests/lha-test14: ditto.
417 * tests/lha-test15: ditto.
419 * tests/lha-test1: newly added.
421 * tests/lha-test.in: improved.
423 * src/prototypes.h: updated.
425 * src/lha.h (exit): defined as lha_exit().
427 * src/lharc.c (init_variable): discard a variable
428 `remove_temporary_at_error'.
429 (fatal_error): ditto.
430 (cleanup): newly added.
431 (interrupt): call cleanup().
432 (lha_exit): newly added; cleanup temporary files always.
434 * src/lhadd.c (add_one): discard a variable
435 `remove_temporary_at_error'.
437 * src/indicator.c (start_indicator): refined.
439 * src/lharc.c (parse_option): fixed typo.
441 * src/indicator.c (carriage_return): newly added; print CR on tty only.
442 (start_indicator): call above.
443 (finish_indicator): ditto.
444 (finish_indicator2): ditto.
446 * src/lharc.c (print_usage): newly added.
447 (parse_option): strictly checking command line arguments.
450 2003-07-26 Koji Arai <jca02266@nifty.ne.jp>
452 * tests/lha-test13: use `tr' instead of `printf` for printing 8 bit
455 2003-07-25 Koji Arai <jca02266@nifty.ne.jp>
457 * tests/lha-test14: `test -e' is unavailable on some systems.
459 2003-07-22 Koji Arai <jca02266@nifty.ne.jp>
461 * tests/lha-test.in: should exit with status in trap.
463 * src/shuf.c (decode_start_st0): wrong value was assigned.
465 * src/lha.h: discard `prof' variable.
467 * src/lharc.c (init_variable): discard `prof' variable.
468 (parse_option): discard undocumented `p' option.
471 * src/append.c (encode_lzhuf): hate global variable.
473 * src/extract.c (decode_lzhuf): ditto.
477 2003-07-21 Koji Arai <jca02266@nifty.ne.jp>
479 * configure.ac: updated version.
481 * 00readme.autoconf: described largefiles.
483 * src/header.c (get_header): avoid valgrind warning, `Source and
484 destination overlap in strncpy()'.
486 * src/lharc.c (find_files): refined.
488 * tests/lha-test.in: should exit in trap.
490 * src/lharc.c (find_files): uninitialized variable was caught by
493 * src/prototypes.h: updated.
495 * src/append.c (encode_lzhuf): set actual copied size.
497 * src/util.c (encode_stored_crc): use size_t instead of long.
499 * src/lhadd.c (temporary_to_new_archive_file): ditto.
503 * src/lhadd.c (add_one): fixed a comment.
505 * src/indicator.c (MAX_INDICATOR_COUNT): changed to fit for the 80
508 * src/extract.c (decode_lzhuf): refined.
510 * src/prototypes.h: updated.
512 * src/cproto.sh: added `indicator.c'.
514 * src/Makefile.am: ditto.
516 * src/indicator.c: separated from append.c.
518 * src/append.c: ditto.
522 * src/lha_macro.h: ditto.
524 2003-07-20 Koji Arai <jca02266@nifty.ne.jp>
526 * configure.ac: updated version.
528 * src/Makefile.am (EXTRA_DIST): fnmatch.h was missed.
530 * src/lha.h (fseeko, ftello): these macros had no effect.
532 2003-07-19 Koji Arai <jca02266@nifty.ne.jp>
534 * src/maketree.c (make_len): discard debug print.
536 * configure.ac: updated version.
538 * src/prototypes.h: updated.
540 * config.h.in: updated.
542 * configure.ac: check declaration of `basename'.
544 * src/cproto.sh: ditto.
546 * src/util.c (encode_stored_crc): use size_t.
548 * src/lha.h (struct LzHeader): use size_t for the members
549 `packed_size' and `original_size'.
551 2003-07-13 Koji Arai <jca02266@nifty.ne.jp>
553 * configure.ac: updated version.
555 * src/prototypes.h: updated.
557 * src/append.c (encode_lzhuf): use size_t and off_t instead of long.
558 (start_indicator): ditto.
560 * src/extract.c (decode_lzhuf): ditto.
562 * src/lha.h (struct interfacing): ditto.
564 * src/lhadd.c (add_one): ditto.
565 (find_update_files): ditto.
568 * src/lhext.c (cmd_extract): ditto.
570 * src/util.c (copyfile): ditto.
572 * src/lhlist.c (print_size): use "%7lu" format string instead of
573 "%7ld" for large files.
575 * src/slide.c: refined.
577 2003-07-11 Koji Arai <jca02266@nifty.ne.jp>
579 * src/lharc.c (cleaning_files): should print errno.
581 2003-05-23 Koji Arai <jca02266@nifty.ne.jp>
583 * configure.ac: use fseeko(), ftello() instead of fseek(), ftell().
585 * config.h.in: ditto.
587 * src/lha.h, src/lhlist.c, src/lhext.c, src/lharc.c: ditto.
589 * src/lhadd.c, src/header.c: ditto.
591 2003-05-10 Koji Arai <jca02266@nifty.ne.jp>
593 * configure.ac: updated version.
595 * src/lhext.c (inquire_extract): warning if stdin is not tty,
596 because you cannot reply from stdin.
597 (extract_one): return actual read size from archive.
598 (cmd_extract): fix a bug: skip correct size when error occurred.
600 * tests/lha-test5: added tests for above.
602 * src/lha.h (struct interfacing): added a member `read_size'.
604 * src/extract.c (decode_lzhuf): added an argument `pointer of
607 * src/prototypes.h: ditto.
609 * src/slide.c (decode): set actual read size to interface->read_size.
611 2003-04-14 Koji Arai <jca02266@nifty.ne.jp>
613 * src/cproto.sh: The cproto 4.7a supports some gcc-specific keywords.
615 2003-03-24 Koji Arai <jca02266@nifty.ne.jp>
617 * configure.ac: updated version.
619 * src/prototypes.h: updated.
621 2003-03-23 Koji Arai <jca02266@nifty.ne.jp>
623 * src/header.c (convert_filename): support Samba CAP code (experimental).
624 (hex2int, int2hex, cap_to_sjis, sjis_to_cap): added for above.
626 * src/lha_macro.h (CODE_CAP): ditto.
628 * src/lharc.c (parse_option): added new command line options,
629 --system-kanji-code=xxx and --archive-kanji-code=xxx (experimental).
631 * 00readme.autoconf: described above features.
633 2003-03-22 Koji Arai <jca02266@nifty.ne.jp>
635 * src/lharc.c (init_variable): do not use HEADER_LEVELx macros.
636 (parse_option): ditto.
638 * src/header.c (write_header): ditto.
640 * src/lha_macro.h (HEADER_LEVEL0, HEADER_LEVEL1, HEADER_LEVEL2, MATCHBIT): ditto.
642 * src/huf.c (encode_start_st1): do not use assert().
643 (decode_start_st1): ditto.
645 2003-03-12 Koji Arai <jca02266@nifty.ne.jp>
647 * src/header.c (wintime_to_unix_stamp): should cast to unsigned type.
649 2003-03-03 Koji Arai <jca02266@nifty.ne.jp>
651 * src/prototypes.h: updated.
653 * src/cproto.sh: improved.
655 2003-02-24 Koji Arai <jca02266@nifty.ne.jp>
657 * src/prototypes.h: updated.
659 * src/maketree.c: hate global variables.
661 * src/lha_macro.h: refined.
663 * src/huf.c: refined.
665 * src/util.c (strdup): defined more properly.
668 * prototypes.h: ditto.
672 2003-02-23 Koji Arai <jca02266@nifty.ne.jp>
674 * src/cproto.sh: improved.
676 * src/prototypes.h: updated.
678 * src/util.c: `strucmp()' was replaced by `strcasecmp()'.
680 * src/util.c (archive_is_msdos_sfx1): ditto.
682 * src/lharc.c (open_old_archive): ditto.
686 * src/util.c: discard `rename()', `mkdir()' and `rmdir()'.
688 * configure.ac: ditto.
690 * config.h.in: ditto.
692 * src/header.c: added credit.
693 no longer use `ftime()', `tzset()', `localtime()' and `gettimeofday()'.
695 2003-02-17 Koji Arai <jca02266@nifty.ne.jp>
697 * configure.ac: updated version.
699 * src/fnmatch.h: no need to include <sys/cdefs.h>. it does not
702 2003-02-14 Koji Arai <jca02266@nifty.ne.jp>
704 * src/lharc.c (find_files): `goto' requires expression after label.
706 * src/lhadd.c (cmd_add): ditto.
708 2003-02-05 Koji Arai <jca02266@nifty.ne.jp>
710 * tests/lha-test7: sleep 1 to make sure for updating tests.
712 * src/fnmatch.c, src/fnmatch.h: added fnmatch.c derived from the
715 2003-02-04 Koji Arai <jca02266@nifty.ne.jp>
717 * configure.ac: need to call `AC_CANONICAL_HOST' for automake
718 1.6.x (for installing the config.guess and config.sub).
720 2003-02-02 Koji Arai <jca02266@nifty.ne.jp>
722 * src/header.c, src/lharc.c: fix credit.
724 2003-01-20 Koji Arai <jca02266@nifty.ne.jp>
726 * src/lha.h (prev_char): discard unused variable `prev_char'.
728 * src/crcio.c (fwrite_txt): ditto.
730 * src/slide.c (decode): ditto.
732 * src/slide.c: refined a little.
734 2003-01-19 Koji Arai <jca02266@nifty.ne.jp>
736 * src/slide.c: took off the debug flag.
738 * src/slide.c (search_dict): split into 2 parts.
740 * src/slide.c: refined: use the structure `matchdata'.
742 2003-01-18 Koji Arai <jca02266@nifty.ne.jp>
744 * src/lha.h (decode_count): rename a global variable `count' to
747 * src/dhuf.c (decode_p_dyn): ditto.
749 * src/slide.c (decode): ditto and refined.
751 2003-01-17 Koji Arai <jca02266@nifty.ne.jp>
753 * src/slide.c: refined ?
755 * src/slide.c (INIT_HASH, NEXT_HASH): newly defined to refine.
757 2003-01-13 Koji Arai <jca02266@nifty.ne.jp>
759 * src/prototypes.h: updated.
761 * src/slide.c: refined.
763 2002-12-31 Koji Arai <jca02266@nifty.ne.jp>
765 * src/lhext.c (adjust_info): On Cygwin, execute permission should
766 be set for .exe or .dll.
768 2002-12-28 Koji Arai <jca02266@nifty.ne.jp>
770 * src/lha_macro.h (peekbits): newly added.
772 * src/huf.c (read_pt_len): use peekbits().
774 (decode_c_st1): ditto.
775 (decode_p_st1): ditto.
777 * src/shuf.c (decode_c_st0): ditto.
778 (decode_p_st0): ditto.
780 2002-12-23 Koji Arai <jca02266@nifty.ne.jp>
782 * configure.ac: added a configure option: --enable-ignore-dot-files.
784 * config.h.in: ditto.
786 * src/lharc.c (parse_option): added `-X' option to ignore dot files.
788 2002-12-17 Koji Arai <jca02266@nifty.ne.jp>
790 * configure.ac: should check whether system has `ssize_t'.
792 * config.h.in: ditto.
796 * configure.ac: added checking functions `fnmatch' and `basename'.
797 but not yet prepare the free fnmatch.c.
799 * config.h.in: ditto.
801 * src/util.c (basename): newly added.
803 * src/lhadd.c (cmd_add): exclude files specified by -x option.
805 * src/lharc.c (print_tiny_usage): refined.
807 2002-12-16 Koji Arai <jca02266@nifty.ne.jp>
809 * 00readme.autoconf: describe about new feature `-x'.
811 * src/lha.h: include fnmatch.h.
812 added a global variable `exclude_files'.
814 * src/lharc.c (init_variable): initialize `exclude_files'.
815 (print_tiny_usage): modify usage.
816 (parse_option): newly added. should regard leading `-' argument as
817 option (for new -x option).
818 added `-x <pattern>' option (specify exclude files pattern).
819 (find_files): files matched by pattern `exclude_files' exclude
822 2002-11-25 Koji Arai <jca02266@nifty.ne.jp>
824 * src/header.c: use size_t for header_size.
825 (skip_msdos_sfx1_code): rename to `seek_lha_header()'.
827 * src/lha.h: use size_t for header_size.
829 * src/lhadd.c (cmd_add): rename `skip_msdos_sfx1_code()' to
833 * src/lhext.c (cmd_extract): ditto.
835 * src/lhlist.c (cmd_list): ditto.
837 * src/prototypes.h: updated.
839 * tests/lha-test15: added tests to search any level headers.
841 2002-11-17 Koji Arai <jca02266@nifty.ne.jp>
843 * untabify all sources.
845 * src/huf.c (encode_start_st1): refined.
846 (decode_start_st1): refined.
848 * src/slide.c (encode_alloc): refined.
851 2002-11-15 Koji Arai <jca02266@nifty.ne.jp>
853 * 00readme.autoconf: updated.
855 * src/prototypes.h: updated.
857 * configure.ac, Makefile.am, olddoc/Makefile.am:
858 old documentations moved to olddoc directory.
860 * CHANGES.euc, MACHINES2.euc, README.euc, change-114h.txt, change-114e.txt, change-114i.txt, IFNAMES, Makefile.in, change-114f.txt, config.eng, MACHINES.euc, PROBLEMS.euc, change-114g.txt, config.jpn.euc: ditto.
862 * Makefile.in.org, src/Makefile.in.org: removed.
864 * configure.ac: updated version (source maintenance start on
867 2002-11-11 Koji Arai <jca02266@nifty.ne.jp>
869 * src/lhext.c (make_parent_path): On Cygwin, when `foo.exe'
870 exists, stat("foo", &buf) is successful and it is not a directory.
872 * src/util.c (skip_msdos_sfx1_code): move to header.c
874 * src/header.c (skip_msdos_sfx1_code): ditto.
875 some macro moved from lha_macro.h.
877 * src/lha_macro.h: ditto.
879 * tests/lha-test15: newly added for testing self extracting archive.
881 * tests/lha-test.in: ditto.
883 * tests/Makefile.am: ditto.
885 * configure.ac: refined messages.
887 2002-10-26 Koji Arai <jca02266@nifty.ne.jp>
889 * src/bitio.c (putbits): use the function putcode().
891 * src/dhuf.c (decode_start_dyn): call init_code_cache().
893 * src/huf.c (encode_start_st1): ditto.
894 (decode_start_st1): ditto.
896 * src/larc.c (decode_start_lzs): ditto.
898 * src/shuf.c (decode_start_st0): ditto.
899 (encode_start_fix): ditto.
900 (decode_start_fix): ditto.
902 * src/Makefile.am: added bitio.c
904 * src/cproto.sh: added bitio.c
906 * src/bitio.c: new file.
908 * src/crcio.c: extracted bitio routines.
912 2002-10-16 Koji Arai <jca02266@nifty.ne.jp>
914 * 00readme.autoconf: modified.
916 2002-10-02 Koji Arai <jca02266@nifty.ne.jp>
918 * src/util.c (xstrchr): `strchr(s, 0)' should return the pointer
919 of the '\0' terminator.
921 2002-09-14 Koji Arai <jca02266@nifty.ne.jp>
923 * src/lhadd.c (add_one): Use chsize() if system does not have
924 ftruncate(2). (For MinGW)
926 * configure.ac: ditto.
928 * config.h.in: ditto.
930 2002-09-03 Koji Arai <jca02266@nifty.ne.jp>
934 * 00readme.autoconf: modified for stable release.
936 * configure.ac: updated version.
938 2002-09-01 Koji Arai <jca02266@nifty.ne.jp>
940 * tests/Makefile.am (EXTRA_DIST): lha-test12, lha-test13 and
941 lha-test14 were missed.
943 2002-08-31 Koji Arai <jca02266@nifty.ne.jp>
945 * src/lhadd.c (append_it): refined.
947 * src/lhadd.c (append_it): no terminate when file cannot be opened.
949 2002-08-29 Koji Arai <jca02266@nifty.ne.jp>
951 * tests/lha-test11: change the way of checking the `header size field'.
953 * configure.ac: the `--enable-user-name-header' switch has been
954 ineffective. corrected variable name.
956 2002-08-26 Koji Arai <jca02266@nifty.ne.jp>
958 * tests/lha-test14: on Cygwin, cannot use '|' as filesname.
960 * tests/lha-test.in: on MinGW, skip lha-test14 test.
962 * 00readme.autoconf: modified.
966 * configure.ac: updated version.
968 * src/header.c: fixed a comment.
970 * src/prototypes.h (strcmp_filename): removed.
972 * src/header.c (dump_skip_bytes): note "ignored" if data is ignored.
974 * src/header.c (wintime_to_unix_stamp): newly added for converting
975 from `FILETIME' to `time_t'.
976 (get_extended_header): use `wintime_to_unix_stamp()' to recognize
977 the Windows time stamp header (0x41).
979 * src/lha.h: define `uint64_t' unless system has it.
981 * configure.ac: check existence of the type `uint64_t'.
983 * config.h.in: ditto.
985 * src/lharc.c (init_variable): set default header level to 2.
987 2002-08-24 Koji Arai <jca02266@nifty.ne.jp>
989 * tests/lha-test.in (lha-test14): added to test the symbolic link file.
991 * tests/lha-test14: ditto.
993 * src/lhlist.c (list_one): use LzHeader.realname.
995 * src/lhext.c (extract_one): use LzHeader.realname.
996 should call make_parent_path(symlink).
998 * src/lhadd.c (add_one): use LzHeader.realname.
1000 (append_it): use strcmp() instead of strcmp_filename().
1001 (strcmp_filename): removed.
1003 * src/lha.h (struct LzHeader): added a member `realname' which is
1004 symbolic linked name.
1006 * src/header.c (get_header): split symbolic name in archive.
1007 (write_header): join symbolic link name and linked name to put it
1010 * src/lhext.c (extract_one): force extract when `f' option is
1011 specified. this is for OS-9 archives, [provisional].
1013 * src/header.c: fixed cpp expressions around time functions.
1015 * tests/lha-test8: test MS-DOS timestamp `ftime' structure.
1017 * tests/lha-test.in (change_timestamp): newly added.
1019 2002-08-22 Koji Arai <jca02266@nifty.ne.jp>
1023 * src/prototypes.h: regenerated.
1025 * src/cproto.sh: refined.
1027 * configure.ac: updated version.
1029 * configure.ac: should use `exit' rather than `return' on
1030 AC_TRY_RUN(). see the Autoconf manual.
1032 * configure.ac: check whether the 2nd argument of gettimeofday()
1035 * src/header.c: ditto.
1037 * config.h.in (GETTIMEOFDAY_HAS_2ND_ARG): ditto.
1039 * tests/lha-test.in: `++' is invalid arithmetic operator on POSIX
1040 shell, Ksh and Bash version 2.03 or earlier.
1042 * tests/lha-test13: ditto.
1044 2002-08-18 Koji Arai <jca02266@nifty.ne.jp>
1046 * src/lharc.c (print_version): version string is made here.
1048 * src/lha_macro.h (LHA_VERSION): removed.
1050 * src/slide.c (encode_alloc): used newly named `dicbit' macro.
1052 * src/shuf.c (read_tree_p): ditto.
1053 (decode_start_fix): ditto.
1055 * src/lha_macro.h: `xxx_DICBIT' for each method was defined.
1057 * src/header.c: correct a comment `Generic stamp format'.
1058 (get_bytes): fixed for dumping header.
1060 * src/lha_macro.h, src/lha.h: `EXTERN' macro definition was moved
1063 * src/header.c (get_bytes): print hex codes for invisible chars.
1065 * src/lhlist.c: hate global variables.
1067 * src/prototypes.h (convdelim): removed.
1069 * src/lhlist.c (print_stamp): use ISO 8601 date format when `lha vv'.
1071 2002-08-14 Koji Arai <jca02266@nifty.ne.jp>
1073 * src/header.c: discarded warning message for the extended header,
1074 `Windows time stamp' ignored.
1076 * src/header.c: in spite of extended type value, read contents of
1079 * src/header.c: comment fixed.
1081 2002-08-12 Koji Arai <jca02266@nifty.ne.jp>
1083 * src/header.c (dump_skip_bytes): do nothing when length is 0.
1085 2002-08-11 Koji Arai <jca02266@nifty.ne.jp>
1087 * src/lha_macro.h (SJC_FIRST_P): rename to SJIS_FIRST_P.
1088 (SJC_SECOND_P): rename to SJIS_SECOND_P.
1090 * src/util.c (convdelim): removed.
1092 * src/header.c (convert_filename): when small letter is included
1093 in filename, do not convert case.
1095 * tests/lha-test.in, tests/lha-test2, tests/lha-test3, tests/lha-test4, tests/lha-test5, tests/lha-test6, tests/lha-test7, tests/lha-test8, tests/lha-test9, tests/lha-test10, tests/lha-test11, tests/lha-test12, tests/lha-test13:
1096 print filename when test failed.
1098 * tests/lha-test.in, tests/lha-test12, tests/lha-test13:
1099 added tests for converting text files.
1101 * src/header.c (get_extended_header): recognize the Windows time
1102 stamp header (0x41), but ignored.
1104 * src/header.c (write_unix_info): added.
1106 2002-08-11 Koji Arai <jca02266@nifty.ne.jp>
1110 * configure.ac: updated version.
1112 * 00readme.autoconf: modified.
1114 * src/header.c: DUMP_HEADER is always true.
1115 dump header when running `lha vvv foo.lzh'.
1116 (get_header): added new extend type JAVA.
1118 * src/lha_macro.h (EXTEND_JAVA): added new extend type JAVA.
1120 * src/lhlist.c (list_one): ditto.
1122 * src/lharc.c (init_variable): `verbose' is changed to successive.
1125 2002-08-10 Koji Arai <jca02266@nifty.ne.jp>
1127 * src/lhlist.c (list_one): fixed mode checks.
1129 * src/prototypes.h: updated.
1131 * src/header.c (get_header_level2): check CRC value for reading
1132 level 2 and 3 header.
1133 (get_header_level3): ditto.
1134 (get_extended_header): ditto.
1135 (get_header_level0): set total header size to
1136 `LzHeader.header_size' even if level 0 or 1 header is read.
1137 (get_header_level1): ditto.
1139 * src/append.c (encode_lzhuf): encode(), decode() and copyfile()
1141 (put_indicator): moved from crcio.c.
1143 * src/crcio.c (put_indicator): moved to append.c.
1144 (calccrc): generalized.
1145 (fread_crc): changed interface.
1146 (fwrite_crc): changed interface.
1147 (calc_header_crc): removed. use calccrc() instead.
1149 * src/extract.c (decode_lzhuf): copyfile() and decode() were changed.
1151 * src/lha.h: hate global variable. `crc' is removed.
1152 `reading_size' moved to append.c.
1154 * src/lha_macro.h (INITIALIZE_CRC): newly added.
1155 (UPDATE_CRC): no update in macro code.
1157 * src/lhadd.c (temporary_to_new_archive_file): copyfile() was changed.
1159 * src/lharc.c (copy_old_one): header size adjusting is done by
1162 * src/slide.c (update): changed interface.
1167 * src/util.c (copyfile): changed interface.
1169 2002-08-10 Koji Arai <jca02266@nifty.ne.jp>
1171 * tests/lha-test5: added tests using pipe.
1173 * src/lhadd.c (cmd_add): applied reverse patch. intermediate file
1174 is the necessary when created archive put in pipe.
1176 * src/header.c (skip_bytes): newly added.
1177 (dump_get_byte): newly added for dumping the data for debugging.
1178 (dump_skip_bytes): ditto.
1180 (get_longword): ditto.
1182 (get_extended_header): modified for reading the level 3 header.
1183 (get_header_level3): newly added.
1185 * src/lha.h (struct LzHeader): for level 3 header, added a new
1186 member `size_field_length' and changed type of the `header_size'
1189 * src/header.c (init_header): the `hdr->method' should be
1190 initialized to the "-lh0-" for empty files.
1192 * tests/lha-test2: ditto.
1194 * src/lhadd.c (add_one): should print indicator for empty files.
1196 2002-08-09 Koji Arai <jca02266@nifty.ne.jp>
1198 * tests/lha-test.in: adapt to ksh (and posix shell).
1200 2002-08-05 Koji Arai <jca02266@nifty.ne.jp>
1202 * 00readme.autoconf: refined.
1204 * config.h.in (BACKUP_OLD_ARCHIVE): added.
1206 * configure.ac: added a command line switch `--enable-backup-archive'.
1208 * src/lhadd.c (cmd_add): if `backup_old_archive' is true, no
1210 (cmd_delete): ditto.
1212 * src/lharc.c (init_variable): initialize `backup_old_archive'.
1214 * src/lha.h (backup_old_archive): added for nobackup.
1216 2002-08-02 Koji Arai <jca02266@nifty.ne.jp>
1218 * src/lha_macro.h, src/lha.h, src/header.c, src/lhadd.c: Fixed
1219 misspelling, not `STRAGE' but `STORAGE'.
1221 2002-07-29 Koji Arai <jca02266@nifty.ne.jp>
1225 * src/header.c: should use error() instead of fatal_error().
1226 (get_header): fixed wrong end mark checking.
1228 * src/prototypes.h: updated.
1232 * configure.ac: updated version.
1234 * 00readme.autoconf: described about header.c bug on original lha.
1236 2002-07-28 Koji Arai <jca02266@nifty.ne.jp>
1238 * tests/Makefile.am: added lha-test11.
1240 * src/crcio.c (fread_txt): responded to (gcc -Wall) compiler warnings.
1242 * src/header.c (generic_to_unix_stamp): ditto.
1244 * src/lha_macro.h: ditto.
1246 * src/lhadd.c (delete): ditto.
1248 * src/lharc.c (open_old_archive): ditto.
1250 * src/lhlist.c (list_one): ditto.
1252 * src/prototypes.h: updated.
1254 * tests/lha-test.in: added lha-test11.
1256 * tests/lha-test8: added tests for level 0 and 2 header.
1258 * tests/lha-test10: added tests for generic header.
1260 * tests/lha-test11: testing for long filename. moved from lha-test10.
1262 2002-07-26 Koji Arai <jca02266@nifty.ne.jp>
1264 * src/header.c (write_header): rewritten.
1266 2002-07-25 Koji Arai <jca02266@nifty.ne.jp>
1268 * tests/lha-test4: stderr should be redirected.
1270 * src/lharc.c (main): exit with status 1 (meaning failure) when the
1271 function error() was called.
1274 * src/lha.h (LzHeader.last_modified_stamp;): no longer used it.
1276 * src/header.c (get_header): rewritten.
1278 2002-07-21 Koji Arai <jca02266@nifty.ne.jp>
1280 * tests/lha-test10: change grep pattern so that pattern matches
1281 a carriage return at the end of line for MinGW.
1283 * src/lha.h: define `struct utimbuf' when utime.h is not given
1284 such as MinGW. (Microsoft Visual Studio 6.0 has sys/utime.h).
1286 * src/lhext.c (make_parent_path): missing braces.
1288 * tests/lha-test.in (check): print script line number when test failed.
1290 * tests/lha-test2, tests/lha-test3, tests/lha-test4, tests/lha-test5, tests/lha-test6, tests/lha-test7, tests/lha-test8, tests/lha-test9, tests/lha-test10: ditto.
1292 * tests/lha-test10: on Cygwin/MinGW, could not make 255 bytes
1293 filename. (the system limit of filename length contains the length
1294 of current directory.)
1296 * tests/lha-test10: should use /bin/ls instead of ls, since
1297 /usr/ucb/ls puts size on 4th field (on Solaris).
1299 2002-07-18 Koji Arai <jca02266@nifty.ne.jp>
1303 * configure.ac: updated version.
1305 * src/lhext.c (adjust_info): should use `struct utimbuf' for
1306 `utime(2)' rather than `time_t' array.
1308 * src/header.c (write_header): [BUG]: should not write zero at the
1309 first byte on level 2 header. should adjust header size.
1311 * tests/lha-test10: added tests for level 2 header.
1313 * src/lha_macro.h, src/header.c (setup_get): moved to header.c.
1318 (get_bytes): newly added.
1319 (put_bytes): newly added.
1321 2002-07-17 Koji Arai <jca02266@nifty.ne.jp>
1323 * src/header.c (get_header): [BUG]: Could not read level 2 header
1324 when the header size is grater than 256.
1325 (convert_filename): Should use the `FILENAME_LENGTH' macro rather
1327 (write_header): [BUG]: Suppress to overflow the header size when
1328 long filename is written in level 0 or 1 header. On level 1
1329 header, always use the extended filename header instead of the
1332 * src/lha.h (LzHeader): the type of `header_size' was changed
1333 from `unsigned char' to `int', for the level 2 header archive.
1335 * src/lhext.c (extract_one): should use the `FILENAME_LENGTH'
1336 macro rather than 256 (provisionally fixed).
1338 * tests/lha-test.in: notify failed test number.
1340 * tests/lha-test10: added tests for long pathname.
1342 2002-07-14 Koji Arai <jca02266@nifty.ne.jp>
1346 * src/header.c (get_header): archive path separator should be
1351 * configure.ac: updated version.
1353 * src/header.c (write_header): if user/group name is not set,
1354 extended header (0x52 and 0x53) should not be made.
1356 * tests/lha-test10: added testing to handle deep directory.
1358 * src/header.c (write_header): fixed typo, not strchr() but
1361 * src/prototypes.h: regenerated.
1363 * src/header.c (convert_filename): prefer to use the
1364 `FILENAME_LENGTH' macro rather than 256.
1366 * src/cproto.sh: fixed typo.
1368 2002-07-11 Koji Arai <jca02266@nifty.ne.jp>
1370 * tests/Makefile.am (EXTRA_DIST): lha-test9 and lha-test10 were missed.
1372 * src/lharc.c (print_tiny_usage): no exit here.
1374 * src/header.c (ConvertEncodingByIconv): newly added.
1375 Thanks to Hiroto Sakai.
1377 * configure.ac, config.h.in: Checking to have iconv() for utf-8
1380 * configure.ac: Checking whether strrchr() is 8 bit clean or not.
1381 On Mac OS X, strchr() can handle 8 bit characters, but strrchr()
1383 Should use '\377' rather than '\xff' for de-ANSI compiler.
1385 2002-07-10 Koji Arai <jca02266@nifty.ne.jp>
1389 * configure.ac: updated version.
1391 * src/header.c: change hex codes '\xff' to octal codes '\377'.
1393 * tests/lha-test.in: Skip the lha-test9. (this test is imcomplete
1396 * tests/lha-test10: Should extract directory even if the archive
1399 * src/header.c (get_header): Should convert kanji code and path
1400 separator for the level 0 header entry.
1401 Should convert `\' to `/' for level 0 header (do always to make sure,
1402 SO CANNOT CONTAIN THE `\' IN FILENAME).
1403 (init_header): [BUG]: Should not convert path separator here (Should do
1405 (write_header): [BUG]: should set pathname (contains directory part) to
1406 the LzHeader.name field on level 0 header archive even if the
1407 archive methods is -lhd-.
1409 2002-07-09 Koji Arai <jca02266@nifty.ne.jp>
1411 * src/lha.h, src/header.c: the CoreFoundation header inclusion
1414 * src/lha.h, src/lharc.c, IFNAMES: macro NODIRECTORY was removed.
1416 * src/lha.h, src/lhadd.c, src/lharc.c, src/lhext.c: fixed
1417 misspelling, not `writting' but `writing'.
1419 2002-07-07 Koji Arai <jca02266@nifty.ne.jp>
1421 * src/lha.h, src/lha_macro.h: refined.
1423 * src/lhadd.c (append_it): macro STRING_COMPARE() was discarded.
1425 * src/lha_macro.h: ditto.
1427 * IFNAMES: NOVOID was removed.
1429 * src/lharc.c (main): terminate with exit status 2 when specified
1430 command line switche is wrong,
1432 * configure.ac, config.h.in: added checking utime.h existent.
1434 * src/crcio.c (putc_euc): void returned.
1436 * src/header.c, src/lha.h, src/lha_macro.h, src/lhadd.c: refined.
1438 * src/lharc.c, src/prototypes.h, src/slide.c: refined.
1440 * configure.ac: should specify the 4th argument to AC_TRY_RUN()
1441 for cross compiling.
1443 * configure.ac: fix a test expression.
1445 * src/cproto.sh: added for maintainer.
1447 * src/lha.h: support de-ANSI variable arguments.
1449 * src/lharc.c: ditto.
1451 * src/util.c: ditto.
1453 * src/Makefile.am (lha_SOURCES): added prototypes.h.
1455 * src/lha.h: function prototypes moved to prototypes.h.
1457 * src/prototypes.h: generated by the cproto command.
1459 * configure.ac: On Mac OS X, in spite of using the CoreFoundation
1460 for utf-8 conversion, I have missed specifying the `-framework
1461 CoreFoundation' in LDFLAGS.
1463 * src/Makefile.am (EXTRA_DIST): no need to specify `lhdir.c'.
1465 2002-07-06 Koji Arai <jca02266@nifty.ne.jp>
1469 * configure.ac: updated version.
1471 * tests/lha-test10: added testing the header level 0, 1 and 2.
1473 * tests/lha-test.in: ditto.
1475 * src/lharc.c: `#include <stdarg.h>' moved to lha.h.
1479 * src/util.c: ditto.
1481 * configure.ac: AC_REPLACE_FUNCS(vsnprintf).
1483 * config.h.in: ditto.
1487 * src/vsnprintf.c: derived snprintf() which has the BSD licence.
1489 * configure.ac: fix typo.
1491 * configure.ac: checking whether strchr() is 8 bit clean or not.
1493 * config.h.in: ditto.
1495 * src/util.c: give functions strchr(), strrchr(), memchr() and
1496 memrchr() which handle 8 bit characters correctly.
1498 * src/header.c: use above if needed.
1500 * src/lha_macro.h: deprecate the macro name `DELIM2' which is path
1501 separattor for the filename in lha header.
1502 use LHA_PATHSEP instead.
1504 * src/util.c (convdelim): ditto.
1506 * src/header.c (convert_filename): ditto.
1507 (write_header): ditto.
1509 * src/header.c (convert_filename): fixed bug on utf8 conversion,
1512 2002-06-30 Koji Arai <jca02266@nifty.ne.jp>
1514 * configure.ac: fixed typo.
1516 * src/header.c (sjis_to_utf8): fixed typo.
1517 (utf8_to_sjis): fixed typo.
1519 * src/lhadd.c (cmd_add): Missed to adjust the index when specified
1520 adding file is same as the generating archive file.
1522 2002-06-29 Koji Arai <jca02266@nifty.ne.jp>
1524 * src/header.c (convert_filename): rename a function
1525 `filename_conv()' to `convert_filename()'.
1526 (sjis_to_utf8_static): no use the static variable.
1527 (utf8_to_sjis_static): ditto.
1529 * src/lha.h: rename sjis_to_utf8_static() and utf8_to_sjis_static()
1530 into sjis_to_utf8() and utf8_to_sjis().
1532 * src/lha_macro.h: added a macro `CODE_UTF8'.
1534 * configure.ac: decide CODE_UTF8.
1537 * 00readme.autoconf: modified.
1539 * configure.ac: modified for Mac OS X.
1541 * src/header.c, lha.h, lha_macro.h, lharc.c: Merged a patch for
1542 the Mac OS X, convert utf-8 filename to shift_jis. This patch was
1543 contributed on LHa BBS. Thanks to Hiroto Sakai.
1545 * src/lhext.c: replaced bcmp() with memcmp().
1547 * src/lha_macro.h: ditto.
1549 * src/append.c: replace bcopy() with memcpy() or memmove().
1551 * src/lha_macro.h: ditto.
1553 * src/lhadd.c: ditto.
1555 * src/lharc.c: ditto.
1557 * src/header.c: ditto.
1558 replace bzero() with memset().
1560 * src/lhadd.c (cmd_add): exlclude the target archive. (reported on
1563 * src/slide.c (encode_alloc): Wrong value was assigned to the
1564 `dicbit', when SUPPORT_LH7 was not defined. (fixed by DANGAN,
1565 reported on the LHa BBS [38]).
1567 * src/lha_macro.h: ditto.
1569 * src/shuf.c (decode_c_st0): the method of -lh3- extraction was
1570 fixed by DANGAN (reported on the LHa BBS [35]).
1572 * src/lha_macro.h (LH3_DICBIT): ditto.
1574 * src/dhuf.c (encode_c_dyn): the method of -lh1- compression was
1575 refined by DANGAN (reported on the LHa BBS [30], [39], [62]).
1577 2002-06-26 Koji Arai <jca02266@nifty.ne.jp>
1579 * tests/lha-test4: Skip a test for the LHa for UNIX (original version).
1581 * tests/lha-test3: Rewrite tests for generic format archives.
1583 * tests/lha-test2: Added tests for -lh0- method.
1584 Moved from contents of lha-test3 (tests for print archive).
1586 2002-06-23 Koji Arai <jca02266@nifty.ne.jp>
1588 * tests/lha-test.in: On Cygwin/MinGW, cannot test lha-test9.
1590 * src/lhext.c: Fixed a misspelling. not `Symblic' but `Symbolic'.
1591 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
1593 * src/lharc.c: ditto.
1595 * src/slide.c (interface;): Fixed wrong index.
1596 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
1598 * 00readme.autoconf: refined.
1600 * tests/lha-test9: added tests for overriding files.
1602 * tests/lha-test.in: added test9.
1604 * src/lhext.c (cmd_extract): ftell(stdin) will return -1, so
1605 re-fixed provisionaly.
1607 * src/lhext.c (cmd_extract): When error occurred in extract_one(),
1608 should adjust point of file stream.
1610 * configure.ac: library checkings (for libmingwex) should be done
1611 before header checkings.
1613 2002-06-22 Koji Arai <jca02266@nifty.ne.jp>
1617 * configure.ac: updated version.
1619 * src/lharc.c (init_variable): Removed useless assignments.
1621 * src/lharc.c (main): Behavior was changed. when `q' or `q2' option
1622 (not `q1') is specified, the `f' option is enabled implicitly.
1623 In original behavior, the option `q', `q0', `q1' and `q2' will
1624 enable `f' option implicitly (bug?).
1626 * src/lharc.c (main): [BUG]: When `q2' option is specified,
1627 level 2 header is generated.
1629 2002-06-21 Koji Arai <jca02266@nifty.ne.jp>
1631 * tests/Makefile.am: Use the `DISTCLEANFILES' variable instead of the `dist-hook' target.
1633 * tests/Makefile.am: Added `dist-hook' target for `make distcheck'.
1635 * tests/lha-test.in: All tests are splited into some files.
1637 * tests/Makefile.am: ditto.
1639 * tests/lha-test2: ditto.
1641 * tests/lha-test3: ditto.
1643 * tests/lha-test4: ditto.
1645 * tests/lha-test5: ditto.
1647 * tests/lha-test6: ditto.
1649 * tests/lha-test7: ditto.
1651 * tests/lha-test8: ditto.
1653 2002-06-20 Koji Arai <jca02266@nifty.ne.jp>
1655 * src/lhadd.c (cmd_add): No create an intermediate file when archive
1656 is written in stdout.
1658 2002-06-19 Koji Arai <jca02266@nifty.ne.jp>
1660 * 00readme.autoconf: Modified.
1662 2002-06-18 Koji Arai <jca02266@nifty.ne.jp>
1664 * configure.in: Removed. (no support the Autoconf version 2.13).
1666 * config.h.in: Changed meaning of the value of the `MULTIBYTE_FILENAME'.
1668 * src/header.c: Remove preprocess codes for kanji code decision.
1670 * configure.ac: When --enable-multibyte-filename[=auto] is specified,
1671 decide kanji code for filename automatically.
1672 Otherwise, euc or sjis is specified, it is EUC-JP or Shift_JIS.
1674 2002-06-17 Koji Arai <jca02266@nifty.ne.jp>
1676 * configure.in, configure.ac: updated version.
1678 * configure.in, configure.ac: On mingw-runtime-2.0-1, opendir()
1679 has moved to libmingwex.a. For now, not listed in the
1680 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs file.
1682 * src/lharc.c (message): use variable argument list with stdarg.
1685 (write_error): removed.
1686 (read_error): removed.
1687 (build_temporary_name): use xsnprintf().
1688 (open_old_archive): ditto.
1689 (expanded_archive_name): move in the function (open_old_archive()) as static.
1691 * src/crcio.c (putcode): changed for fatal_error().
1692 (putbits): changed for fatal_error().
1693 (fwrite_crc): ditto.
1694 (putc_euc): should return EOF when putc() cause error.
1695 (fwrite_txt): changed for putc_euc().
1697 * src/header.c (get_header): changed for fatal_error(), warning() and error().
1698 (init_header): use xsnprintf().
1699 (write_header): fixed wrong usage of fwrite().
1701 * src/lha.h: updated declarations.
1703 * src/lhadd.c (append_it): changed for error().
1705 * src/lhext.c (inquire_extract): ditto.
1707 * src/lhlist.c (cmd_list): ditto.
1709 * src/maketbl.c (make_table): ditto.
1711 * src/util.c (copyfile): changed for fatal_error().
1712 (xsnprintf): newly added to adopt to various snprintf().
1714 2002-06-12 Koji Arai <jca02266@nifty.ne.jp>
1716 * src/lha_macro.h (UNIX_STICKYBIT): fixed a misspelling.
1718 * src/lhlist.c (list_one): ditto.
1720 2002-06-11 Koji Arai <jca02266@nifty.ne.jp>
1722 * src/lharc.c: index was wrong.
1723 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
1725 2002-06-06 Koji Arai <jca02266@nifty.ne.jp>
1727 * configure.ac, configure.in: changed macro name.
1728 not multibyte-char but multibyte-filename.
1729 not MULTIBYTE_CHAR but MULTIBYTE_FILENAME.
1731 * 00readme.autoconf: ditto.
1733 * config.h.in: ditto.
1735 * src/util.c: ditto.
1737 * src/lha_macro.h: ditto.
1739 * src/header.c: ditto.
1741 * config.h.in (INCLUDE_OWNER_NAME_IN_HEADER): changed macro name.
1743 * configure.ac: ditto.
1745 * src/header.c (init_header): ditto.
1747 * src/header.c (init_header): should clear LzHeader.
1749 2002-06-05 Koji Arai <jca02266@nifty.ne.jp>
1753 * configure.ac (AC_INIT): changed package name and specified tar name.
1755 * src/lharc.c: added `--help' command line switch.
1757 * Makefile.am: fixed EXTRA_DIST for 00readme.autoconf renaming.
1759 * README.autoconf, 00readme.autoconf: renamed.
1761 * configure.ac, configure.in: updated version.
1763 2002-06-04 Koji Arai <jca02266@nifty.ne.jp>
1765 * README.autoconf, header.doc.euc: describe about user/group name
1768 * src/header.c (init_header): added a macro MAKE_USER_NAME_HEADER.
1770 * configure.ac, configure.in, config.h.in: added a switch
1771 `--enable-user-name-header' whether user/name extended header is
1774 2002-06-01 Koji Arai <jca02266@nifty.ne.jp>
1776 * README.autoconf: `-i' switch of automake is deprecated.
1778 2002-05-29 Koji Arai <jca02266@nifty.ne.jp>
1780 * configure.in, configure.ac, config.h.in: checks having uid_t/gid_t.
1782 * src/lha.h: define uid_t/gid_t as `int' if no have it.
1784 * src/lhext.c (adjust_info): mismatched braces.
1786 * header.doc.euc: around user/group name extention.
1788 * configure.in, configure.ac, config.h.in: checks having
1789 getpwuid/getgrgid and so on.
1791 * src/header.c (get_header): use the extend header, user/group name.
1792 (init_header): ditto.
1794 * src/lha.h: added <pwd.h>, <grp.h> header includings.
1796 * src/lhext.c (adjust_info): change owner/group according to
1797 user/group name when extracting.
1799 * src/lhlist.c (list_one): print user/group name when the header
1801 (list_one): correct column position on OS68K.
1803 * tests/lha-test.in: added timestamp checks.
1805 * src/lha_macro.h: comment about OS code.
1807 2002-05-28 Koji Arai <jca02266@nifty.ne.jp>
1809 * src/lharc.c (xstrdup): no need to call fatal_error().
1811 * src/lhdir.h, src/lha_macro.h, src/lha.h: added modeline for vi(m).
1813 * configure.ac, config.h.in: use new autoconf macro, AC_CHECK_MEMBERS().
1815 * IFNAMES, configure.in, src/header.c, src/lharc.c: replaced with
1816 new macro name to adopt to the AC_CHECK_MEMBERS().
1818 2002-05-27 Koji Arai <jca02266@nifty.ne.jp>
1820 * tests/lha-test.in: use awk instead of GNU sh-utils's `seq'.
1822 * src/header.c (filename_conv): fix a bug, reverse condition and
1823 conversion for filename case.
1825 * README.autoconf: added description about `get_filename_from_stdin' feature.
1827 * tests/lha-test.in: remove test around the `get_filename_from_stdin'.
1829 * src/lharc.c (main): never set `get_filename_from_stdin` to true.
1830 `echo foo | lha x foo.lzh' does not work like original LHa for UNIX.
1832 * tests/lha-test.in: replace with #!/bin/bash.
1834 * README.autoconf: added E-Mail address.
1836 * configure.ac: updated version and added mail address for bug reports.
1838 * configure.in: updated version.
1842 * README.autoconf: added `make check' on sample description.
1844 * configure.in, configure.ac: update version.
1846 2002-05-26 Koji Arai <jca02266@nifty.ne.jp>
1848 * tests/lha-test.in: added some tests.
1850 * tests/Makefile.am: refined.
1852 * src/lhext.c (cmd_extract): discard useless fseek() calling (for MinGW).
1854 * tests/lha-test.in: added some tests.
1856 * tests/lha-test.in: specified `q' option on print archive test.
1858 * src/lhadd.c (build_backup_file): On MinGW, cannot rename when
1859 a new file already exists.
1861 * src/lhext.c (extract_one): On MinGW, set binary on stdout when
1862 print archive (`p' switch).
1864 * tests/lha-test.in: added some tests.
1866 * src/lhadd.c (report_archive_name_if_different): warning messages
1867 should be printed to stderr rather than stdout.
1868 (cmd_delete): ditto.
1870 * tests/Makefile.am: fix EXTRA_DIST.
1872 * configure.in, configure.ac: update version.
1874 * tests/lha-test.in: added tests.
1876 * tests/Makefile.am: ditto.
1878 * configure.in, configure.ac, Makefile.am: ditto.
1880 2002-05-25 Koji Arai <jca02266@nifty.ne.jp>
1886 * README.autoconf: added description for developpers.
1888 * configure.in, configure.ac, config.h.in: refined.
1890 * src/util.c (memmove): use HAVE_MEMMOVE.
1891 (mkdir): use HAVE_WORKING_FORK.
1893 * src/huf.c: use HAVE_SYS_PARAM_H instead of sony_news.
1895 * IFNAMES (sony_news): updated.
1897 * configure.ac, configure.in (AC_INIT): added autoconfiscated date.
1898 see `lha --version'.
1900 2002-05-22 Koji Arai <jca02266@nifty.ne.jp>
1902 * src/append.c, src/crcio.c, src/dhuf.c, src/extract.c, src/header.c, src/huf.c, src/larc.c, src/lhadd.c, src/lharc.c, src/lhdir.c, src/lhext.c, src/lhlist.c, src/maketbl.c, src/maketree.c, src/patmatch.c, src/shuf.c, src/slide.c, src/util.c:
1903 added modeline for vi(m).
1905 * src/lharc.c: backslash was missing.
1907 2002-05-20 Koji Arai <jca02266@nifty.ne.jp>
1909 * src/lharc.c (open_old_archive): On MinGW, set binary stdin.
1911 * src/lhadd.c (temporary_to_new_archive_file): On MinGW, set binary stdout.
1913 * src/lha_macro.h: no define TMP_FILENAME_TEMPLATE in source.
1915 * configure.ac, configure.in, README.autoconf: be able to specify
1916 --with-tmp-file=no which meaning TMP_FILENAME_TEMPLATE is undefined.
1918 * src/lha.h: correct usage of mkstemp().
1919 On MinGW, opening file cannot be removed.
1921 * src/lhadd.c (build_temporary_file): ditto.
1923 * src/lharc.c (fatal_error): ditto.
1925 2002-05-19 Koji Arai <jca02266@nifty.ne.jp>
1927 * configure.in, configure.ac: added AM_C_PROTOTYPES, AC_C_CONST.
1928 no use AM_C_PROTOTYPES for the present.
1930 * config.h.in: ditto.
1932 * src/lharc.c (print_tiny_usage_and_exit): change credit.
1934 * src/lha_macro.h: put PLATFORM in a macro LHA_VERSION.
1936 * src/lharc.c (print_version): ditto.
1938 * configure.ac: use AC_CANONICAL_TARGET instead of AC_CANONICAL_HOST.
1940 2002-05-19 Koji Arai <jca02266@nifty.ne.jp>
1944 * src/lharc.c (print_tiny_usage_and_exit): added credit.
1945 (print_version): print PLATFORM.
1947 * configure.ac, configure.in, config.h.in: define PLATFORM.
1949 * src/lharc.c (xstrdup): fix typo.
1951 * configure.ac: added for autoconf-2.53.
1953 * config.h.in: regenerate by autoconf-2.53.
1955 * src/lharc.c (find_files): MinGW has st_ino but always 0.
1957 * src/lharc.c (main): provisionally fix. set
1958 `get_filename_from_stdin' to false.
1960 * src/util.c (rename): use builtin rename(2) on mingw32 (since have
1963 * src/lharc.c (main): use xrealloc().
1965 * src/lha_macro.h: specify "b" modifier always (for mingw32).
1967 * src/lharc.c: use xstrdup() instead of strdup().
1969 * src/lha_macro.h: ditto.
1971 * src/lha_macro.h: getuid(), chown(), kill() are provisionally
1974 * src/header.c: set `default_system_kanji_code' to Shift_JIS on mingw32.
1976 * src/lhadd.c (build_temporary_file): no use SIGHUP for mingw32.
1977 (build_backup_file): ditto.
1979 * src/lharc.c (interrupt): ditto.
1981 * src/lhext.c (extract_one): ditto.
1983 * src/lhext.c (make_parent_path): mkdir() has no 2nd argument on
1986 2002-05-18 Koji Arai <jca02266@nifty.ne.jp>
1988 * lha_macro.h: define bcmp(), bzero(), bcopy() even if
1989 STDC_HEADERS is defined.
1991 * huf.c (alloc_buf): call fatal_error() when memory allocation failed
1992 instead of returning NULL.
1994 * lharc.c (main): use xmalloc().
1996 * util.c (copyfile): use xmalloc().
1998 * slide.c (encode_alloc): use xmalloc().
2000 * header.c (default_system_kanji_code): On HP-UX, use Shift_JIS as
2003 2001-02-03 Koji Arai <jca02266@nifty.ne.jp>
2005 * README.autoconf, src/header.c: treat archive and system kanji
2008 2001-01-31 Koji Arai <jca02266@nifty.ne.jp>
2010 * configure.in: mistakes for default archive method.
2012 * src/header.c: directory separator 0xff must be transpose slash
2015 2001-01-29 Koji Arai <jca02266@nifty.ne.jp>
2017 * src/lharc.c: replace MKSTEMP with HAVE_MKSTEMP.
2018 substitute DEFAULT_LZHUFF_METHOD for the `compress_method' variable (it's default value).
2020 * src/lha_macro.h: use the VERSION macro (defined by configure) for
2021 the LHA_VERSION definition.
2023 * src/header.c: added condition whether the macro MULTIBYTE_CHAR
2026 * src/Makefile.am: added $(SUPPORT_LZHUFF_METHOD) in AM_CPPFLAGS.
2028 * configure.in: change version number from 1.14f to 1.14i.
2029 check function mkstemp().
2030 replace --enable-lh6 option to --with-default-method=[567].
2032 * config.h.in: added definitions of HAVE_MKSTEMP and
2033 DEFAULT_LZHUFF_METHOD.
2035 * IFNAMES: added a description about MKSTEMP.
2037 * Makefile.am: added extra files.
2039 * change-114f.txt, src/extract.c, src/header.c, src/huf.c, src/lha.h, src/lha_macro.h, src/lhadd.c, src/lharc.c, src/lhext.c, src/lhlist.c, src/maketbl.c, src/maketree.c, src/shuf.c, src/slide.c, src/util.c, src/dhuf.c, src/crcio.c:
2040 merged changing from lha-1.14f to lha-1.14i.
2042 * change-114i.txt, src/header.c, src/huf.c, src/lha.h, src/lharc.c:
2045 * src/huf.c, src/lharc.c, src/shuf.c, src/slide.c: import lha-114h
2047 * Makefile, README.euc, change-114g.txt, change-114h.txt:
2050 * src/crcio.c, src/dhuf.c, src/extract.c, src/header.c, src/huf.c, src/lha.h, src/lha_macro.h, src/lhadd.c, src/lharc.c, src/lhext.c, src/util.c:
2053 * MACHINES2.euc, Makefile, README.euc, change-114g.txt, config.eng, config.jpn.euc, header.doc.euc, src/lhlist.c, src/maketbl.c, src/maketree.c, src/makezero.c, src/shuf.c, src/slide.c:
2056 * src/header.c, src/lha_macro.h: implemented kanji code conversion
2059 * src/header.c: fix bug in euc2sjis().
2061 1999-10-05 Koji Arai <jca02266@nifty.ne.jp>
2063 * src/header.c: rename the macro HANKAKU_KATAKANA_P to the X0201_KANA_P
2065 1999-09-30 Koji Arai <jca02266@nifty.ne.jp>
2067 * IFNAMES, configure.in, Makefile.in.org, README.autoconf, config.h.in, man/Makefile.am, src/Makefile.am, src/Makefile.in.org, Makefile.am, src/header.c, src/huf.c, src/larc.c, src/lha.h, src/lha_macro.h, src/lhadd.c, src/lharc.c, src/lhdir.c, src/lhdir.h, src/lhext.c, src/lhlist.c, src/makefile.dj, src/maketbl.c, src/maketree.c, src/patmatch.c, src/shuf.c, src/slide.c, src/util.c, Makefile, man/Makefile, src/Makefile, src/append.c, src/crcio.c, src/dhuf.c, src/extract.c:
2068 use the autoconf/automake
2070 1999-08-28 Koji Arai <jca02266@nifty.ne.jp>
2072 * Makefile: import the lha-114f
2074 * change-114f.txt, config.jpn.euc, header.doc.euc: import the lha-114f
2076 * CHANGES.euc, MACHINES.euc, PROBLEMS.euc, README.euc, change-114e.txt, config.eng:
2079 * MACHINES2.euc, man/Makefile, man/lha.man, man/lha.n:
2082 * src/append.c, src/crcio.c: import the lha-114f
2084 * src/Makefile, src/lha.h, src/lha_macro.h, src/lharc.c, src/lhdir.c, src/lhdir.h, src/lhext.c, src/lhlist.c, src/makefile.dj, src/maketbl.c, src/maketree.c, src/patmatch.c, src/shuf.c, src/slide.c, src/util.c:
2087 * src/dhuf.c, src/extract.c, src/header.c, src/huf.c, src/larc.c, src/lhadd.c:
2091 eval: (if (string= (user-login-name) "arai") (setq user-mail-address "arai@users.sourceforge.jp"))