1 2006-10-08 Koji Arai <arai@users.sourceforge.jp>
3 * 00readme.autoconf: updated.
5 * Hacking_of_LHa: changed mail address.
7 2006-10-08 Koji Arai <arai@users.sourceforge.jp>
9 * configure.ac: updated version.
11 * configure.ac, src/header.c, src/lha_macro.h, src/lhadd.c, src/lhext.c, src/lhlist.c, tests/lha-test12:
12 re-applied the correct DJGPP patch. Thanks to Doug Kaufman.
14 2006-10-02 Koji Arai <arai@users.sourceforge.jp>
16 * configure.ac: updated version.
18 * 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:
19 applied the patch for the DJGPP. Thanks to Doug Kaufman.
21 * 00readme.autoconf, configure.ac: changed mail address.
23 2006-09-11 Koji Arai <jca02266@nifty.com>
25 * configure.ac: updated version.
27 * src/lharc.c (print_usage): updated.
29 2006-09-11 Koji Arai <jca02266@nifty.com>
31 * config.h.in (HAVE_LIBAPPLEFILE): added `b' option which extract
32 the MacBinary. Thanks to Hiroto Sakai.
34 * configure.ac: ditto.
36 * src/lha.h (decode_macbinary_contents): ditto.
38 * src/lhadd.c (build_temporary_file): ditto.
40 * src/lharc.c (decode_macbinary_contents, print_tiny_usage, parse_suboption): ditto.
42 * src/lhext.c (extract_one, decode_macbinary): ditto.
44 * src/prototypes.h (build_temporary_file): ditto.
46 2006-09-11 Koji Arai <jca02266@nifty.com>
48 * src/lharc.c (parse_suboption): `-X' option has been ineffective.
49 Thanks to Hiroto Sakai.
51 2005-10-15 Koji Arai <jca02266@nifty.com>
53 * src/lha_macro.h (UPDATE_CRC): To casting with (unsigned char)
54 should not be for the variable (c) but for the (crc). Thanks to
57 2005-10-13 Koji Arai <jca02266@nifty.com>
59 * tests/lha-test.in: emulate POSIX shell when it is executed by
60 zsh or bash. (this part is derived from GNU Autoconf 2.59)
62 * tests/Makefile.am: replaced `bash' with `@sh_for_lha_test@'
64 * configure.ac: search shell programs to execute the lha-test.
66 2005-09-25 Koji Arai <jca02266@nifty.com>
68 * src/prototypes.h: updated.
70 * src/crcio.c (calccrc, fread_crc, fwrite_crc, fread_txt, fwrite_txt): suppress compiler warnings on gcc-4.0.
72 * src/header.c (calc_sum): ditto.
74 * src/lha_macro.h (UPDATE_CRC): ditto.
76 2005-09-24 Koji Arai <jca02266@nifty.com>
80 * configure.ac: updated version and my mail address.
82 * Hacking_of_LHa: updated. (2003-02-23 edition)
84 * 00readme.autoconf: updated.
86 2005-06-08 Koji Arai <jca02266@nifty.ne.jp>
88 * configure.ac: updated version.
90 * src/lharc.c (parse_suboption): fixed a bug, when the
91 --system-kanji-code option specified, the --archive-kanji-code
94 2005-05-08 Koji Arai <jca02266@nifty.ne.jp>
96 * configure.ac: updated version.
98 * src/lharc.c (print_usage): updated.
100 * src/lhadd.c, src/header.c (remove_leading_dots): move to
101 header.c for readlink().
103 * src/lhadd.c (add_one): symbolic link indication was contrary.
104 ( not "realname -> linkname" but "linkname -> realname" )
107 * src/lhext.c (extract_one): ditto.
109 * src/lhlist.c (list_one): ditto.
111 * tests/lha-test14: ditto.
113 * src/lhadd.c (remove_leading_dots): newly added.
115 * src/lhadd.c (append_it): remove leading relative path from
118 * src/lhext.c (is_directory_traversal): should return true when
121 2004-10-02 Koji Arai <jca02266@nifty.ne.jp>
123 * src/lharc.c (print_tiny_usage): added long option helps.
125 * src/prototypes.h: updated.
127 * src/lharc.c: should accept a single option --help and --version.
129 2004-09-29 Koji Arai <jca02266@nifty.ne.jp>
131 * src/lharc.c (parse_option, parse_suboption): use getopt_long().
133 * src/Makefile.am: added getopt_long.c and getopt_long.h.
135 * src/getopt_long.c, src/getopt_long.h: newly added.
137 2004-09-29 Koji Arai <jca02266@nifty.ne.jp>
141 * 00readme.autoconf: note for builds on MS-Windows.
143 * configure.ac: updated version.
145 * Makefile.am: added Hacking_of_LHa in EXTRA_DIST.
147 * Hacking_of_LHa: renamed (typo).
149 2004-09-27 Koji Arai <jca02266@nifty.ne.jp>
151 * configure.ac: updated version.
153 * src/prototypes.h (str_safe_copy): newly added.
154 (build_standard_archive_name, build_backup_file):
155 added argument the size for build_standard_archive_name() and
158 * src/header.c (init_header): use str_safe_copy() instead of strcpy().
160 * src/lhadd.c (build_backup_file, cmd_add, cmd_delete):
161 added argument the size for build_standard_archive_name() and
164 * src/lhext.c (make_parent_path): use str_safe_copy() instead of strcpy().
165 (extract_one): ditto.
167 * src/lharc.c (find_files): use str_safe_copy() instead of strcpy().
168 (build_temporary_name): ditto.
169 (modify_filename_extention): ditto.
170 (build_backup_name): ditto.
171 (build_standard_archive_name): ditto.
173 * src/util.c (str_safe_copy): newly added.
175 2004-09-26 Koji Arai <jca02266@nifty.ne.jp>
177 * src/header.c: fixed typo.
179 2004-09-18 Koji Arai <jca02266@nifty.ne.jp>
181 * configure.ac: updated version.
183 * 00readme.autoconf: added a description about
184 `--extract-broken-archive' option.
186 * src/lharc.c (init_variable, parse_option): added an option
187 `--extract-broken-archive' to extract broken archive.
189 * src/lha.h (extract_broken_archive): ditto.
191 * src/slide.c (encode, decode): fixed a *FATAL* bug which make a
194 2004-05-08 Koji Arai <jca02266@nifty.ne.jp>
196 * configure.ac: updated version.
198 * src/prototypes.h: updated.
200 * src/lhext.c (extract_one, is_directory_traversal): applied a
201 security patch (CAN-2004-0235: directory traversal problems)
203 * src/lharc.c (print_usage): updated.
205 2003-12-18 Koji Arai <jca02266@nifty.ne.jp>
207 * src/header.c (wintime_to_unix_stamp): no use 64bit constant to
208 avoid the warning `integer constant is too large for "long" type'
209 on GCC. however, for portability, no use the unsigned long long
212 2003-12-13 Koji Arai <jca02266@nifty.ne.jp>
214 * configure.ac: updated version.
216 * src/lhext.c (extract_one, cmd_extract): preserve directory
217 timestamp. Thanks Akihiro Iriyama.
219 * src/lhext.c (add_dirinfo, adjust_dirinfo): newly added.
221 2003-09-28 Koji Arai <jca02266@nifty.ne.jp>
223 * Makefile.am (SUBDIRS): reordered to avoid useless re-compilation.
225 2003-09-21 Koji Arai <jca02266@nifty.ne.jp>
229 * configure.ac: updated version.
231 2003-08-18 Koji Arai <jca02266@nifty.ne.jp>
233 * 00readme.autoconf: fixed.
235 * configure.ac: use AC_SYS_LARGEFILE for largefile support.
237 * config.h.in: ditto.
239 * src/prototypes.h: updated.
241 2003-07-29 Koji Arai <jca02266@nifty.ne.jp>
243 * tests/Makefile.am (EXTRA_DIST): lha-test1 was missed.
245 * tests/lha-test13: should set LANG=C for `tr'.
247 2003-07-28 Koji Arai <jca02266@nifty.ne.jp>
249 * tests/lha-test.in: filename should be contained in last error
252 2003-07-27 Koji Arai <jca02266@nifty.ne.jp>
254 * tests/lha-test2: no need to set $FILENAME.
255 * tests/lha-test3: ditto.
256 * tests/lha-test4: ditto.
257 * tests/lha-test5: ditto.
258 * tests/lha-test6: ditto.
259 * tests/lha-test7: ditto.
260 * tests/lha-test8: ditto.
261 * tests/lha-test9: ditto.
262 * tests/lha-test10: ditto.
263 * tests/lha-test11: ditto.
264 * tests/lha-test12: ditto.
265 * tests/lha-test13: ditto.
266 * tests/lha-test14: ditto.
267 * tests/lha-test15: ditto.
269 * tests/lha-test1: newly added.
271 * tests/lha-test.in: improved.
273 * src/prototypes.h: updated.
275 * src/lha.h (exit): defined as lha_exit().
277 * src/lharc.c (init_variable): discard a variable
278 `remove_temporary_at_error'.
279 (fatal_error): ditto.
280 (cleanup): newly added.
281 (interrupt): call cleanup().
282 (lha_exit): newly added; cleanup temporary files always.
284 * src/lhadd.c (add_one): discard a variable
285 `remove_temporary_at_error'.
287 * src/indicator.c (start_indicator): refined.
289 * src/lharc.c (parse_option): fixed typo.
291 * src/indicator.c (carriage_return): newly added; print CR on tty only.
292 (start_indicator): call above.
293 (finish_indicator): ditto.
294 (finish_indicator2): ditto.
296 * src/lharc.c (print_usage): newly added.
297 (parse_option): strictly checking command line arguments.
300 2003-07-26 Koji Arai <jca02266@nifty.ne.jp>
302 * tests/lha-test13: use `tr' instead of `printf` for printing 8 bit
305 2003-07-25 Koji Arai <jca02266@nifty.ne.jp>
307 * tests/lha-test14: `test -e' is unavailable on some systems.
309 2003-07-22 Koji Arai <jca02266@nifty.ne.jp>
311 * tests/lha-test.in: should exit with status in trap.
313 * src/shuf.c (decode_start_st0): wrong value was assigned.
315 * src/lha.h: discard `prof' variable.
317 * src/lharc.c (init_variable): discard `prof' variable.
318 (parse_option): discard undocumented `p' option.
321 * src/append.c (encode_lzhuf): hate global variable.
323 * src/extract.c (decode_lzhuf): ditto.
327 2003-07-21 Koji Arai <jca02266@nifty.ne.jp>
329 * configure.ac: updated version.
331 * 00readme.autoconf: described largefiles.
333 * src/header.c (get_header): avoid valgrind warning, `Source and
334 destination overlap in strncpy()'.
336 * src/lharc.c (find_files): refined.
338 * tests/lha-test.in: should exit in trap.
340 * src/lharc.c (find_files): uninitialized variable was caught by
343 * src/prototypes.h: updated.
345 * src/append.c (encode_lzhuf): set actual copied size.
347 * src/util.c (encode_stored_crc): use size_t instead of long.
349 * src/lhadd.c (temporary_to_new_archive_file): ditto.
353 * src/lhadd.c (add_one): fixed a comment.
355 * src/indicator.c (MAX_INDICATOR_COUNT): changed to fit for the 80
358 * src/extract.c (decode_lzhuf): refined.
360 * src/prototypes.h: updated.
362 * src/cproto.sh: added `indicator.c'.
364 * src/Makefile.am: ditto.
366 * src/indicator.c: separated from append.c.
368 * src/append.c: ditto.
372 * src/lha_macro.h: ditto.
374 2003-07-20 Koji Arai <jca02266@nifty.ne.jp>
376 * configure.ac: updated version.
378 * src/Makefile.am (EXTRA_DIST): fnmatch.h was missed.
380 * src/lha.h (fseeko, ftello): these macros had no effect.
382 2003-07-19 Koji Arai <jca02266@nifty.ne.jp>
384 * src/maketree.c (make_len): discard debug print.
386 * configure.ac: updated version.
388 * src/prototypes.h: updated.
390 * config.h.in: updated.
392 * configure.ac: check declaration of `basename'.
394 * src/cproto.sh: ditto.
396 * src/util.c (encode_stored_crc): use size_t.
398 * src/lha.h (struct LzHeader): use size_t for the members
399 `packed_size' and `original_size'.
401 2003-07-13 Koji Arai <jca02266@nifty.ne.jp>
403 * configure.ac: updated version.
405 * src/prototypes.h: updated.
407 * src/append.c (encode_lzhuf): use size_t and off_t instead of long.
408 (start_indicator): ditto.
410 * src/extract.c (decode_lzhuf): ditto.
412 * src/lha.h (struct interfacing): ditto.
414 * src/lhadd.c (add_one): ditto.
415 (find_update_files): ditto.
418 * src/lhext.c (cmd_extract): ditto.
420 * src/util.c (copyfile): ditto.
422 * src/lhlist.c (print_size): use "%7lu" format string instead of
423 "%7ld" for large files.
425 * src/slide.c: refined.
427 2003-07-11 Koji Arai <jca02266@nifty.ne.jp>
429 * src/lharc.c (cleaning_files): should print errno.
431 2003-05-23 Koji Arai <jca02266@nifty.ne.jp>
433 * configure.ac: use fseeko(), ftello() instead of fseek(), ftell().
435 * config.h.in: ditto.
437 * src/lha.h, src/lhlist.c, src/lhext.c, src/lharc.c: ditto.
439 * src/lhadd.c, src/header.c: ditto.
441 2003-05-10 Koji Arai <jca02266@nifty.ne.jp>
443 * configure.ac: updated version.
445 * src/lhext.c (inquire_extract): warning if stdin is not tty,
446 because you cannot reply from stdin.
447 (extract_one): return actual read size from archive.
448 (cmd_extract): fix a bug: skip correct size when error occurred.
450 * tests/lha-test5: added tests for above.
452 * src/lha.h (struct interfacing): added a member `read_size'.
454 * src/extract.c (decode_lzhuf): added an argument `pointer of
457 * src/prototypes.h: ditto.
459 * src/slide.c (decode): set actual read size to interface->read_size.
461 2003-04-14 Koji Arai <jca02266@nifty.ne.jp>
463 * src/cproto.sh: The cproto 4.7a supports some gcc-specific keywords.
465 2003-03-24 Koji Arai <jca02266@nifty.ne.jp>
467 * configure.ac: updated version.
469 * src/prototypes.h: updated.
471 2003-03-23 Koji Arai <jca02266@nifty.ne.jp>
473 * src/header.c (convert_filename): support Samba CAP code (experimental).
474 (hex2int, int2hex, cap_to_sjis, sjis_to_cap): added for above.
476 * src/lha_macro.h (CODE_CAP): ditto.
478 * src/lharc.c (parse_option): added new command line options,
479 --system-kanji-code=xxx and --archive-kanji-code=xxx (experimental).
481 * 00readme.autoconf: described above features.
483 2003-03-22 Koji Arai <jca02266@nifty.ne.jp>
485 * src/lharc.c (init_variable): do not use HEADER_LEVELx macros.
486 (parse_option): ditto.
488 * src/header.c (write_header): ditto.
490 * src/lha_macro.h (HEADER_LEVEL0, HEADER_LEVEL1, HEADER_LEVEL2, MATCHBIT): ditto.
492 * src/huf.c (encode_start_st1): do not use assert().
493 (decode_start_st1): ditto.
495 2003-03-12 Koji Arai <jca02266@nifty.ne.jp>
497 * src/header.c (wintime_to_unix_stamp): should cast to unsigned type.
499 2003-03-03 Koji Arai <jca02266@nifty.ne.jp>
501 * src/prototypes.h: updated.
503 * src/cproto.sh: improved.
505 2003-02-24 Koji Arai <jca02266@nifty.ne.jp>
507 * src/prototypes.h: updated.
509 * src/maketree.c: hate global variables.
511 * src/lha_macro.h: refined.
513 * src/huf.c: refined.
515 * src/util.c (strdup): defined more properly.
518 * prototypes.h: ditto.
522 2003-02-23 Koji Arai <jca02266@nifty.ne.jp>
524 * src/cproto.sh: improved.
526 * src/prototypes.h: updated.
528 * src/util.c: `strucmp()' was replaced by `strcasecmp()'.
530 * src/util.c (archive_is_msdos_sfx1): ditto.
532 * src/lharc.c (open_old_archive): ditto.
536 * src/util.c: discard `rename()', `mkdir()' and `rmdir()'.
538 * configure.ac: ditto.
540 * config.h.in: ditto.
542 * src/header.c: added credit.
543 no longer use `ftime()', `tzset()', `localtime()' and `gettimeofday()'.
545 2003-02-17 Koji Arai <jca02266@nifty.ne.jp>
547 * configure.ac: updated version.
549 * src/fnmatch.h: no need to include <sys/cdefs.h>. it does not
552 2003-02-14 Koji Arai <jca02266@nifty.ne.jp>
554 * src/lharc.c (find_files): `goto' requires expression after label.
556 * src/lhadd.c (cmd_add): ditto.
558 2003-02-05 Koji Arai <jca02266@nifty.ne.jp>
560 * tests/lha-test7: sleep 1 to make sure for updating tests.
562 * src/fnmatch.c, src/fnmatch.h: added fnmatch.c derived from the
565 2003-02-04 Koji Arai <jca02266@nifty.ne.jp>
567 * configure.ac: need to call `AC_CANONICAL_HOST' for automake
568 1.6.x (for installing the config.guess and config.sub).
570 2003-02-02 Koji Arai <jca02266@nifty.ne.jp>
572 * src/header.c, src/lharc.c: fix credit.
574 2003-01-20 Koji Arai <jca02266@nifty.ne.jp>
576 * src/lha.h (prev_char): discard unused variable `prev_char'.
578 * src/crcio.c (fwrite_txt): ditto.
580 * src/slide.c (decode): ditto.
582 * src/slide.c: refined a little.
584 2003-01-19 Koji Arai <jca02266@nifty.ne.jp>
586 * src/slide.c: took off the debug flag.
588 * src/slide.c (search_dict): split into 2 parts.
590 * src/slide.c: refined: use the structure `matchdata'.
592 2003-01-18 Koji Arai <jca02266@nifty.ne.jp>
594 * src/lha.h (decode_count): rename a global variable `count' to
597 * src/dhuf.c (decode_p_dyn): ditto.
599 * src/slide.c (decode): ditto and refined.
601 2003-01-17 Koji Arai <jca02266@nifty.ne.jp>
603 * src/slide.c: refined ?
605 * src/slide.c (INIT_HASH, NEXT_HASH): newly defined to refine.
607 2003-01-13 Koji Arai <jca02266@nifty.ne.jp>
609 * src/prototypes.h: updated.
611 * src/slide.c: refined.
613 2002-12-31 Koji Arai <jca02266@nifty.ne.jp>
615 * src/lhext.c (adjust_info): On Cygwin, execute permission should
616 be set for .exe or .dll.
618 2002-12-28 Koji Arai <jca02266@nifty.ne.jp>
620 * src/lha_macro.h (peekbits): newly added.
622 * src/huf.c (read_pt_len): use peekbits().
624 (decode_c_st1): ditto.
625 (decode_p_st1): ditto.
627 * src/shuf.c (decode_c_st0): ditto.
628 (decode_p_st0): ditto.
630 2002-12-23 Koji Arai <jca02266@nifty.ne.jp>
632 * configure.ac: added a configure option: --enable-ignore-dot-files.
634 * config.h.in: ditto.
636 * src/lharc.c (parse_option): added `-X' option to ignore dot files.
638 2002-12-17 Koji Arai <jca02266@nifty.ne.jp>
640 * configure.ac: should check whether system has `ssize_t'.
642 * config.h.in: ditto.
646 * configure.ac: added checking functions `fnmatch' and `basename'.
647 but not yet prepare the free fnmatch.c.
649 * config.h.in: ditto.
651 * src/util.c (basename): newly added.
653 * src/lhadd.c (cmd_add): exclude files specified by -x option.
655 * src/lharc.c (print_tiny_usage): refined.
657 2002-12-16 Koji Arai <jca02266@nifty.ne.jp>
659 * 00readme.autoconf: describe about new feature `-x'.
661 * src/lha.h: include fnmatch.h.
662 added a global variable `exclude_files'.
664 * src/lharc.c (init_variable): initialize `exclude_files'.
665 (print_tiny_usage): modify usage.
666 (parse_option): newly added. should regard leading `-' argument as
667 option (for new -x option).
668 added `-x <pattern>' option (specify exclude files pattern).
669 (find_files): files matched by pattern `exclude_files' exclude
672 2002-11-25 Koji Arai <jca02266@nifty.ne.jp>
674 * src/header.c: use size_t for header_size.
675 (skip_msdos_sfx1_code): rename to `seek_lha_header()'.
677 * src/lha.h: use size_t for header_size.
679 * src/lhadd.c (cmd_add): rename `skip_msdos_sfx1_code()' to
683 * src/lhext.c (cmd_extract): ditto.
685 * src/lhlist.c (cmd_list): ditto.
687 * src/prototypes.h: updated.
689 * tests/lha-test15: added tests to search any level headers.
691 2002-11-17 Koji Arai <jca02266@nifty.ne.jp>
693 * untabify all sources.
695 * src/huf.c (encode_start_st1): refined.
696 (decode_start_st1): refined.
698 * src/slide.c (encode_alloc): refined.
701 2002-11-15 Koji Arai <jca02266@nifty.ne.jp>
703 * 00readme.autoconf: updated.
705 * src/prototypes.h: updated.
707 * configure.ac, Makefile.am, olddoc/Makefile.am:
708 old documentations moved to olddoc directory.
710 * 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.
712 * Makefile.in.org, src/Makefile.in.org: removed.
714 * configure.ac: updated version (source maintenance start on
717 2002-11-11 Koji Arai <jca02266@nifty.ne.jp>
719 * src/lhext.c (make_parent_path): On Cygwin, when `foo.exe'
720 exists, stat("foo", &buf) is successful and it is not a directory.
722 * src/util.c (skip_msdos_sfx1_code): move to header.c
724 * src/header.c (skip_msdos_sfx1_code): ditto.
725 some macro moved from lha_macro.h.
727 * src/lha_macro.h: ditto.
729 * tests/lha-test15: newly added for testing self extracting archive.
731 * tests/lha-test.in: ditto.
733 * tests/Makefile.am: ditto.
735 * configure.ac: refined messages.
737 2002-10-26 Koji Arai <jca02266@nifty.ne.jp>
739 * src/bitio.c (putbits): use the function putcode().
741 * src/dhuf.c (decode_start_dyn): call init_code_cache().
743 * src/huf.c (encode_start_st1): ditto.
744 (decode_start_st1): ditto.
746 * src/larc.c (decode_start_lzs): ditto.
748 * src/shuf.c (decode_start_st0): ditto.
749 (encode_start_fix): ditto.
750 (decode_start_fix): ditto.
752 * src/Makefile.am: added bitio.c
754 * src/cproto.sh: added bitio.c
756 * src/bitio.c: new file.
758 * src/crcio.c: extracted bitio routines.
762 2002-10-16 Koji Arai <jca02266@nifty.ne.jp>
764 * 00readme.autoconf: modified.
766 2002-10-02 Koji Arai <jca02266@nifty.ne.jp>
768 * src/util.c (xstrchr): `strchr(s, 0)' should return the pointer
769 of the '\0' terminator.
771 2002-09-14 Koji Arai <jca02266@nifty.ne.jp>
773 * src/lhadd.c (add_one): Use chsize() if system does not have
774 ftruncate(2). (For MinGW)
776 * configure.ac: ditto.
778 * config.h.in: ditto.
780 2002-09-03 Koji Arai <jca02266@nifty.ne.jp>
784 * 00readme.autoconf: modified for stable release.
786 * configure.ac: updated version.
788 2002-09-01 Koji Arai <jca02266@nifty.ne.jp>
790 * tests/Makefile.am (EXTRA_DIST): lha-test12, lha-test13 and
791 lha-test14 were missed.
793 2002-08-31 Koji Arai <jca02266@nifty.ne.jp>
795 * src/lhadd.c (append_it): refined.
797 * src/lhadd.c (append_it): no terminate when file cannot be opened.
799 2002-08-29 Koji Arai <jca02266@nifty.ne.jp>
801 * tests/lha-test11: change the way of checking the `header size field'.
803 * configure.ac: the `--enable-user-name-header' switch has been
804 ineffective. corrected variable name.
806 2002-08-26 Koji Arai <jca02266@nifty.ne.jp>
808 * tests/lha-test14: on Cygwin, cannot use '|' as filesname.
810 * tests/lha-test.in: on MinGW, skip lha-test14 test.
812 * 00readme.autoconf: modified.
816 * configure.ac: updated version.
818 * src/header.c: fixed a comment.
820 * src/prototypes.h (strcmp_filename): removed.
822 * src/header.c (dump_skip_bytes): note "ignored" if data is ignored.
824 * src/header.c (wintime_to_unix_stamp): newly added for converting
825 from `FILETIME' to `time_t'.
826 (get_extended_header): use `wintime_to_unix_stamp()' to recognize
827 the Windows time stamp header (0x41).
829 * src/lha.h: define `uint64_t' unless system has it.
831 * configure.ac: check existence of the type `uint64_t'.
833 * config.h.in: ditto.
835 * src/lharc.c (init_variable): set default header level to 2.
837 2002-08-24 Koji Arai <jca02266@nifty.ne.jp>
839 * tests/lha-test.in (lha-test14): added to test the symbolic link file.
841 * tests/lha-test14: ditto.
843 * src/lhlist.c (list_one): use LzHeader.realname.
845 * src/lhext.c (extract_one): use LzHeader.realname.
846 should call make_parent_path(symlink).
848 * src/lhadd.c (add_one): use LzHeader.realname.
850 (append_it): use strcmp() instead of strcmp_filename().
851 (strcmp_filename): removed.
853 * src/lha.h (struct LzHeader): added a member `realname' which is
854 symbolic linked name.
856 * src/header.c (get_header): split symbolic name in archive.
857 (write_header): join symbolic link name and linked name to put it
860 * src/lhext.c (extract_one): force extract when `f' option is
861 specified. this is for OS-9 archives, [provisional].
863 * src/header.c: fixed cpp expressions around time functions.
865 * tests/lha-test8: test MS-DOS timestamp `ftime' structure.
867 * tests/lha-test.in (change_timestamp): newly added.
869 2002-08-22 Koji Arai <jca02266@nifty.ne.jp>
873 * src/prototypes.h: regenerated.
875 * src/cproto.sh: refined.
877 * configure.ac: updated version.
879 * configure.ac: should use `exit' rather than `return' on
880 AC_TRY_RUN(). see the Autoconf manual.
882 * configure.ac: check whether the 2nd argument of gettimeofday()
885 * src/header.c: ditto.
887 * config.h.in (GETTIMEOFDAY_HAS_2ND_ARG): ditto.
889 * tests/lha-test.in: `++' is invalid arithmetic operator on POSIX
890 shell, Ksh and Bash version 2.03 or earlier.
892 * tests/lha-test13: ditto.
894 2002-08-18 Koji Arai <jca02266@nifty.ne.jp>
896 * src/lharc.c (print_version): version string is made here.
898 * src/lha_macro.h (LHA_VERSION): removed.
900 * src/slide.c (encode_alloc): used newly named `dicbit' macro.
902 * src/shuf.c (read_tree_p): ditto.
903 (decode_start_fix): ditto.
905 * src/lha_macro.h: `xxx_DICBIT' for each method was defined.
907 * src/header.c: correct a comment `Generic stamp format'.
908 (get_bytes): fixed for dumping header.
910 * src/lha_macro.h, src/lha.h: `EXTERN' macro definition was moved
913 * src/header.c (get_bytes): print hex codes for invisible chars.
915 * src/lhlist.c: hate global variables.
917 * src/prototypes.h (convdelim): removed.
919 * src/lhlist.c (print_stamp): use ISO 8601 date format when `lha vv'.
921 2002-08-14 Koji Arai <jca02266@nifty.ne.jp>
923 * src/header.c: discarded warning message for the extended header,
924 `Windows time stamp' ignored.
926 * src/header.c: in spite of extended type value, read contents of
929 * src/header.c: comment fixed.
931 2002-08-12 Koji Arai <jca02266@nifty.ne.jp>
933 * src/header.c (dump_skip_bytes): do nothing when length is 0.
935 2002-08-11 Koji Arai <jca02266@nifty.ne.jp>
937 * src/lha_macro.h (SJC_FIRST_P): rename to SJIS_FIRST_P.
938 (SJC_SECOND_P): rename to SJIS_SECOND_P.
940 * src/util.c (convdelim): removed.
942 * src/header.c (convert_filename): when small letter is included
943 in filename, do not convert case.
945 * 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:
946 print filename when test failed.
948 * tests/lha-test.in, tests/lha-test12, tests/lha-test13:
949 added tests for converting text files.
951 * src/header.c (get_extended_header): recognize the Windows time
952 stamp header (0x41), but ignored.
954 * src/header.c (write_unix_info): added.
956 2002-08-11 Koji Arai <jca02266@nifty.ne.jp>
960 * configure.ac: updated version.
962 * 00readme.autoconf: modified.
964 * src/header.c: DUMP_HEADER is always true.
965 dump header when running `lha vvv foo.lzh'.
966 (get_header): added new extend type JAVA.
968 * src/lha_macro.h (EXTEND_JAVA): added new extend type JAVA.
970 * src/lhlist.c (list_one): ditto.
972 * src/lharc.c (init_variable): `verbose' is changed to successive.
975 2002-08-10 Koji Arai <jca02266@nifty.ne.jp>
977 * src/lhlist.c (list_one): fixed mode checks.
979 * src/prototypes.h: updated.
981 * src/header.c (get_header_level2): check CRC value for reading
982 level 2 and 3 header.
983 (get_header_level3): ditto.
984 (get_extended_header): ditto.
985 (get_header_level0): set total header size to
986 `LzHeader.header_size' even if level 0 or 1 header is read.
987 (get_header_level1): ditto.
989 * src/append.c (encode_lzhuf): encode(), decode() and copyfile()
991 (put_indicator): moved from crcio.c.
993 * src/crcio.c (put_indicator): moved to append.c.
994 (calccrc): generalized.
995 (fread_crc): changed interface.
996 (fwrite_crc): changed interface.
997 (calc_header_crc): removed. use calccrc() instead.
999 * src/extract.c (decode_lzhuf): copyfile() and decode() were changed.
1001 * src/lha.h: hate global variable. `crc' is removed.
1002 `reading_size' moved to append.c.
1004 * src/lha_macro.h (INITIALIZE_CRC): newly added.
1005 (UPDATE_CRC): no update in macro code.
1007 * src/lhadd.c (temporary_to_new_archive_file): copyfile() was changed.
1009 * src/lharc.c (copy_old_one): header size adjusting is done by
1012 * src/slide.c (update): changed interface.
1017 * src/util.c (copyfile): changed interface.
1019 2002-08-10 Koji Arai <jca02266@nifty.ne.jp>
1021 * tests/lha-test5: added tests using pipe.
1023 * src/lhadd.c (cmd_add): applied reverse patch. intermediate file
1024 is the necessary when created archive put in pipe.
1026 * src/header.c (skip_bytes): newly added.
1027 (dump_get_byte): newly added for dumping the data for debugging.
1028 (dump_skip_bytes): ditto.
1030 (get_longword): ditto.
1032 (get_extended_header): modified for reading the level 3 header.
1033 (get_header_level3): newly added.
1035 * src/lha.h (struct LzHeader): for level 3 header, added a new
1036 member `size_field_length' and changed type of the `header_size'
1039 * src/header.c (init_header): the `hdr->method' should be
1040 initialized to the "-lh0-" for empty files.
1042 * tests/lha-test2: ditto.
1044 * src/lhadd.c (add_one): should print indicator for empty files.
1046 2002-08-09 Koji Arai <jca02266@nifty.ne.jp>
1048 * tests/lha-test.in: adapt to ksh (and posix shell).
1050 2002-08-05 Koji Arai <jca02266@nifty.ne.jp>
1052 * 00readme.autoconf: refined.
1054 * config.h.in (BACKUP_OLD_ARCHIVE): added.
1056 * configure.ac: added a command line switch `--enable-backup-archive'.
1058 * src/lhadd.c (cmd_add): if `backup_old_archive' is true, no
1060 (cmd_delete): ditto.
1062 * src/lharc.c (init_variable): initialize `backup_old_archive'.
1064 * src/lha.h (backup_old_archive): added for nobackup.
1066 2002-08-02 Koji Arai <jca02266@nifty.ne.jp>
1068 * src/lha_macro.h, src/lha.h, src/header.c, src/lhadd.c: Fixed
1069 misspelling, not `STRAGE' but `STORAGE'.
1071 2002-07-29 Koji Arai <jca02266@nifty.ne.jp>
1075 * src/header.c: should use error() instead of fatal_error().
1076 (get_header): fixed wrong end mark checking.
1078 * src/prototypes.h: updated.
1082 * configure.ac: updated version.
1084 * 00readme.autoconf: described about header.c bug on original lha.
1086 2002-07-28 Koji Arai <jca02266@nifty.ne.jp>
1088 * tests/Makefile.am: added lha-test11.
1090 * src/crcio.c (fread_txt): responded to (gcc -Wall) compiler warnings.
1092 * src/header.c (generic_to_unix_stamp): ditto.
1094 * src/lha_macro.h: ditto.
1096 * src/lhadd.c (delete): ditto.
1098 * src/lharc.c (open_old_archive): ditto.
1100 * src/lhlist.c (list_one): ditto.
1102 * src/prototypes.h: updated.
1104 * tests/lha-test.in: added lha-test11.
1106 * tests/lha-test8: added tests for level 0 and 2 header.
1108 * tests/lha-test10: added tests for generic header.
1110 * tests/lha-test11: testing for long filename. moved from lha-test10.
1112 2002-07-26 Koji Arai <jca02266@nifty.ne.jp>
1114 * src/header.c (write_header): rewritten.
1116 2002-07-25 Koji Arai <jca02266@nifty.ne.jp>
1118 * tests/lha-test4: stderr should be redirected.
1120 * src/lharc.c (main): exit with status 1 (meaning failure) when the
1121 function error() was called.
1124 * src/lha.h (LzHeader.last_modified_stamp;): no longer used it.
1126 * src/header.c (get_header): rewritten.
1128 2002-07-21 Koji Arai <jca02266@nifty.ne.jp>
1130 * tests/lha-test10: change grep pattern so that pattern matches
1131 a carriage return at the end of line for MinGW.
1133 * src/lha.h: define `struct utimbuf' when utime.h is not given
1134 such as MinGW. (Microsoft Visual Studio 6.0 has sys/utime.h).
1136 * src/lhext.c (make_parent_path): missing braces.
1138 * tests/lha-test.in (check): print script line number when test failed.
1140 * 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.
1142 * tests/lha-test10: on Cygwin/MinGW, could not make 255 bytes
1143 filename. (the system limit of filename length contains the length
1144 of current directory.)
1146 * tests/lha-test10: should use /bin/ls instead of ls, since
1147 /usr/ucb/ls puts size on 4th field (on Solaris).
1149 2002-07-18 Koji Arai <jca02266@nifty.ne.jp>
1153 * configure.ac: updated version.
1155 * src/lhext.c (adjust_info): should use `struct utimbuf' for
1156 `utime(2)' rather than `time_t' array.
1158 * src/header.c (write_header): [BUG]: should not write zero at the
1159 first byte on level 2 header. should adjust header size.
1161 * tests/lha-test10: added tests for level 2 header.
1163 * src/lha_macro.h, src/header.c (setup_get): moved to header.c.
1168 (get_bytes): newly added.
1169 (put_bytes): newly added.
1171 2002-07-17 Koji Arai <jca02266@nifty.ne.jp>
1173 * src/header.c (get_header): [BUG]: Could not read level 2 header
1174 when the header size is grater than 256.
1175 (convert_filename): Should use the `FILENAME_LENGTH' macro rather
1177 (write_header): [BUG]: Suppress to overflow the header size when
1178 long filename is written in level 0 or 1 header. On level 1
1179 header, always use the extended filename header instead of the
1182 * src/lha.h (LzHeader): the type of `header_size' was changed
1183 from `unsigned char' to `int', for the level 2 header archive.
1185 * src/lhext.c (extract_one): should use the `FILENAME_LENGTH'
1186 macro rather than 256 (provisionally fixed).
1188 * tests/lha-test.in: notify failed test number.
1190 * tests/lha-test10: added tests for long pathname.
1192 2002-07-14 Koji Arai <jca02266@nifty.ne.jp>
1196 * src/header.c (get_header): archive path separator should be
1201 * configure.ac: updated version.
1203 * src/header.c (write_header): if user/group name is not set,
1204 extended header (0x52 and 0x53) should not be made.
1206 * tests/lha-test10: added testing to handle deep directory.
1208 * src/header.c (write_header): fixed typo, not strchr() but
1211 * src/prototypes.h: regenerated.
1213 * src/header.c (convert_filename): prefer to use the
1214 `FILENAME_LENGTH' macro rather than 256.
1216 * src/cproto.sh: fixed typo.
1218 2002-07-11 Koji Arai <jca02266@nifty.ne.jp>
1220 * tests/Makefile.am (EXTRA_DIST): lha-test9 and lha-test10 were missed.
1222 * src/lharc.c (print_tiny_usage): no exit here.
1224 * src/header.c (ConvertEncodingByIconv): newly added.
1225 Thanks to Hiroto Sakai.
1227 * configure.ac, config.h.in: Checking to have iconv() for utf-8
1230 * configure.ac: Checking whether strrchr() is 8 bit clean or not.
1231 On Mac OS X, strchr() can handle 8 bit characters, but strrchr()
1233 Should use '\377' rather than '\xff' for de-ANSI compiler.
1235 2002-07-10 Koji Arai <jca02266@nifty.ne.jp>
1239 * configure.ac: updated version.
1241 * src/header.c: change hex codes '\xff' to octal codes '\377'.
1243 * tests/lha-test.in: Skip the lha-test9. (this test is imcomplete
1246 * tests/lha-test10: Should extract directory even if the archive
1249 * src/header.c (get_header): Should convert kanji code and path
1250 separator for the level 0 header entry.
1251 Should convert `\' to `/' for level 0 header (do always to make sure,
1252 SO CANNOT CONTAIN THE `\' IN FILENAME).
1253 (init_header): [BUG]: Should not convert path separator here (Should do
1255 (write_header): [BUG]: should set pathname (contains directory part) to
1256 the LzHeader.name field on level 0 header archive even if the
1257 archive methods is -lhd-.
1259 2002-07-09 Koji Arai <jca02266@nifty.ne.jp>
1261 * src/lha.h, src/header.c: the CoreFoundation header inclusion
1264 * src/lha.h, src/lharc.c, IFNAMES: macro NODIRECTORY was removed.
1266 * src/lha.h, src/lhadd.c, src/lharc.c, src/lhext.c: fixed
1267 misspelling, not `writting' but `writing'.
1269 2002-07-07 Koji Arai <jca02266@nifty.ne.jp>
1271 * src/lha.h, src/lha_macro.h: refined.
1273 * src/lhadd.c (append_it): macro STRING_COMPARE() was discarded.
1275 * src/lha_macro.h: ditto.
1277 * IFNAMES: NOVOID was removed.
1279 * src/lharc.c (main): terminate with exit status 2 when specified
1280 command line switche is wrong,
1282 * configure.ac, config.h.in: added checking utime.h existent.
1284 * src/crcio.c (putc_euc): void returned.
1286 * src/header.c, src/lha.h, src/lha_macro.h, src/lhadd.c: refined.
1288 * src/lharc.c, src/prototypes.h, src/slide.c: refined.
1290 * configure.ac: should specify the 4th argument to AC_TRY_RUN()
1291 for cross compiling.
1293 * configure.ac: fix a test expression.
1295 * src/cproto.sh: added for maintainer.
1297 * src/lha.h: support de-ANSI variable arguments.
1299 * src/lharc.c: ditto.
1301 * src/util.c: ditto.
1303 * src/Makefile.am (lha_SOURCES): added prototypes.h.
1305 * src/lha.h: function prototypes moved to prototypes.h.
1307 * src/prototypes.h: generated by the cproto command.
1309 * configure.ac: On Mac OS X, in spite of using the CoreFoundation
1310 for utf-8 conversion, I have missed specifying the `-framework
1311 CoreFoundation' in LDFLAGS.
1313 * src/Makefile.am (EXTRA_DIST): no need to specify `lhdir.c'.
1315 2002-07-06 Koji Arai <jca02266@nifty.ne.jp>
1319 * configure.ac: updated version.
1321 * tests/lha-test10: added testing the header level 0, 1 and 2.
1323 * tests/lha-test.in: ditto.
1325 * src/lharc.c: `#include <stdarg.h>' moved to lha.h.
1329 * src/util.c: ditto.
1331 * configure.ac: AC_REPLACE_FUNCS(vsnprintf).
1333 * config.h.in: ditto.
1337 * src/vsnprintf.c: derived snprintf() which has the BSD licence.
1339 * configure.ac: fix typo.
1341 * configure.ac: checking whether strchr() is 8 bit clean or not.
1343 * config.h.in: ditto.
1345 * src/util.c: give functions strchr(), strrchr(), memchr() and
1346 memrchr() which handle 8 bit characters correctly.
1348 * src/header.c: use above if needed.
1350 * src/lha_macro.h: deprecate the macro name `DELIM2' which is path
1351 separattor for the filename in lha header.
1352 use LHA_PATHSEP instead.
1354 * src/util.c (convdelim): ditto.
1356 * src/header.c (convert_filename): ditto.
1357 (write_header): ditto.
1359 * src/header.c (convert_filename): fixed bug on utf8 conversion,
1362 2002-06-30 Koji Arai <jca02266@nifty.ne.jp>
1364 * configure.ac: fixed typo.
1366 * src/header.c (sjis_to_utf8): fixed typo.
1367 (utf8_to_sjis): fixed typo.
1369 * src/lhadd.c (cmd_add): Missed to adjust the index when specified
1370 adding file is same as the generating archive file.
1372 2002-06-29 Koji Arai <jca02266@nifty.ne.jp>
1374 * src/header.c (convert_filename): rename a function
1375 `filename_conv()' to `convert_filename()'.
1376 (sjis_to_utf8_static): no use the static variable.
1377 (utf8_to_sjis_static): ditto.
1379 * src/lha.h: rename sjis_to_utf8_static() and utf8_to_sjis_static()
1380 into sjis_to_utf8() and utf8_to_sjis().
1382 * src/lha_macro.h: added a macro `CODE_UTF8'.
1384 * configure.ac: decide CODE_UTF8.
1387 * 00readme.autoconf: modified.
1389 * configure.ac: modified for Mac OS X.
1391 * src/header.c, lha.h, lha_macro.h, lharc.c: Merged a patch for
1392 the Mac OS X, convert utf-8 filename to shift_jis. This patch was
1393 contributed on LHa BBS. Thanks to Hiroto Sakai.
1395 * src/lhext.c: replaced bcmp() with memcmp().
1397 * src/lha_macro.h: ditto.
1399 * src/append.c: replace bcopy() with memcpy() or memmove().
1401 * src/lha_macro.h: ditto.
1403 * src/lhadd.c: ditto.
1405 * src/lharc.c: ditto.
1407 * src/header.c: ditto.
1408 replace bzero() with memset().
1410 * src/lhadd.c (cmd_add): exlclude the target archive. (reported on
1413 * src/slide.c (encode_alloc): Wrong value was assigned to the
1414 `dicbit', when SUPPORT_LH7 was not defined. (fixed by DANGAN,
1415 reported on the LHa BBS [38]).
1417 * src/lha_macro.h: ditto.
1419 * src/shuf.c (decode_c_st0): the method of -lh3- extraction was
1420 fixed by DANGAN (reported on the LHa BBS [35]).
1422 * src/lha_macro.h (LH3_DICBIT): ditto.
1424 * src/dhuf.c (encode_c_dyn): the method of -lh1- compression was
1425 refined by DANGAN (reported on the LHa BBS [30], [39], [62]).
1427 2002-06-26 Koji Arai <jca02266@nifty.ne.jp>
1429 * tests/lha-test4: Skip a test for the LHa for UNIX (original version).
1431 * tests/lha-test3: Rewrite tests for generic format archives.
1433 * tests/lha-test2: Added tests for -lh0- method.
1434 Moved from contents of lha-test3 (tests for print archive).
1436 2002-06-23 Koji Arai <jca02266@nifty.ne.jp>
1438 * tests/lha-test.in: On Cygwin/MinGW, cannot test lha-test9.
1440 * src/lhext.c: Fixed a misspelling. not `Symblic' but `Symbolic'.
1441 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
1443 * src/lharc.c: ditto.
1445 * src/slide.c (interface;): Fixed wrong index.
1446 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
1448 * 00readme.autoconf: refined.
1450 * tests/lha-test9: added tests for overriding files.
1452 * tests/lha-test.in: added test9.
1454 * src/lhext.c (cmd_extract): ftell(stdin) will return -1, so
1455 re-fixed provisionaly.
1457 * src/lhext.c (cmd_extract): When error occurred in extract_one(),
1458 should adjust point of file stream.
1460 * configure.ac: library checkings (for libmingwex) should be done
1461 before header checkings.
1463 2002-06-22 Koji Arai <jca02266@nifty.ne.jp>
1467 * configure.ac: updated version.
1469 * src/lharc.c (init_variable): Removed useless assignments.
1471 * src/lharc.c (main): Behavior was changed. when `q' or `q2' option
1472 (not `q1') is specified, the `f' option is enabled implicitly.
1473 In original behavior, the option `q', `q0', `q1' and `q2' will
1474 enable `f' option implicitly (bug?).
1476 * src/lharc.c (main): [BUG]: When `q2' option is specified,
1477 level 2 header is generated.
1479 2002-06-21 Koji Arai <jca02266@nifty.ne.jp>
1481 * tests/Makefile.am: Use the `DISTCLEANFILES' variable instead of the `dist-hook' target.
1483 * tests/Makefile.am: Added `dist-hook' target for `make distcheck'.
1485 * tests/lha-test.in: All tests are splited into some files.
1487 * tests/Makefile.am: ditto.
1489 * tests/lha-test2: ditto.
1491 * tests/lha-test3: ditto.
1493 * tests/lha-test4: ditto.
1495 * tests/lha-test5: ditto.
1497 * tests/lha-test6: ditto.
1499 * tests/lha-test7: ditto.
1501 * tests/lha-test8: ditto.
1503 2002-06-20 Koji Arai <jca02266@nifty.ne.jp>
1505 * src/lhadd.c (cmd_add): No create an intermediate file when archive
1506 is written in stdout.
1508 2002-06-19 Koji Arai <jca02266@nifty.ne.jp>
1510 * 00readme.autoconf: Modified.
1512 2002-06-18 Koji Arai <jca02266@nifty.ne.jp>
1514 * configure.in: Removed. (no support the Autoconf version 2.13).
1516 * config.h.in: Changed meaning of the value of the `MULTIBYTE_FILENAME'.
1518 * src/header.c: Remove preprocess codes for kanji code decision.
1520 * configure.ac: When --enable-multibyte-filename[=auto] is specified,
1521 decide kanji code for filename automatically.
1522 Otherwise, euc or sjis is specified, it is EUC-JP or Shift_JIS.
1524 2002-06-17 Koji Arai <jca02266@nifty.ne.jp>
1526 * configure.in, configure.ac: updated version.
1528 * configure.in, configure.ac: On mingw-runtime-2.0-1, opendir()
1529 has moved to libmingwex.a. For now, not listed in the
1530 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs file.
1532 * src/lharc.c (message): use variable argument list with stdarg.
1535 (write_error): removed.
1536 (read_error): removed.
1537 (build_temporary_name): use xsnprintf().
1538 (open_old_archive): ditto.
1539 (expanded_archive_name): move in the function (open_old_archive()) as static.
1541 * src/crcio.c (putcode): changed for fatal_error().
1542 (putbits): changed for fatal_error().
1543 (fwrite_crc): ditto.
1544 (putc_euc): should return EOF when putc() cause error.
1545 (fwrite_txt): changed for putc_euc().
1547 * src/header.c (get_header): changed for fatal_error(), warning() and error().
1548 (init_header): use xsnprintf().
1549 (write_header): fixed wrong usage of fwrite().
1551 * src/lha.h: updated declarations.
1553 * src/lhadd.c (append_it): changed for error().
1555 * src/lhext.c (inquire_extract): ditto.
1557 * src/lhlist.c (cmd_list): ditto.
1559 * src/maketbl.c (make_table): ditto.
1561 * src/util.c (copyfile): changed for fatal_error().
1562 (xsnprintf): newly added to adopt to various snprintf().
1564 2002-06-12 Koji Arai <jca02266@nifty.ne.jp>
1566 * src/lha_macro.h (UNIX_STICKYBIT): fixed a misspelling.
1568 * src/lhlist.c (list_one): ditto.
1570 2002-06-11 Koji Arai <jca02266@nifty.ne.jp>
1572 * src/lharc.c: index was wrong.
1573 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
1575 2002-06-06 Koji Arai <jca02266@nifty.ne.jp>
1577 * configure.ac, configure.in: changed macro name.
1578 not multibyte-char but multibyte-filename.
1579 not MULTIBYTE_CHAR but MULTIBYTE_FILENAME.
1581 * 00readme.autoconf: ditto.
1583 * config.h.in: ditto.
1585 * src/util.c: ditto.
1587 * src/lha_macro.h: ditto.
1589 * src/header.c: ditto.
1591 * config.h.in (INCLUDE_OWNER_NAME_IN_HEADER): changed macro name.
1593 * configure.ac: ditto.
1595 * src/header.c (init_header): ditto.
1597 * src/header.c (init_header): should clear LzHeader.
1599 2002-06-05 Koji Arai <jca02266@nifty.ne.jp>
1603 * configure.ac (AC_INIT): changed package name and specified tar name.
1605 * src/lharc.c: added `--help' command line switch.
1607 * Makefile.am: fixed EXTRA_DIST for 00readme.autoconf renaming.
1609 * README.autoconf, 00readme.autoconf: renamed.
1611 * configure.ac, configure.in: updated version.
1613 2002-06-04 Koji Arai <jca02266@nifty.ne.jp>
1615 * README.autoconf, header.doc.euc: describe about user/group name
1618 * src/header.c (init_header): added a macro MAKE_USER_NAME_HEADER.
1620 * configure.ac, configure.in, config.h.in: added a switch
1621 `--enable-user-name-header' whether user/name extended header is
1624 2002-06-01 Koji Arai <jca02266@nifty.ne.jp>
1626 * README.autoconf: `-i' switch of automake is deprecated.
1628 2002-05-29 Koji Arai <jca02266@nifty.ne.jp>
1630 * configure.in, configure.ac, config.h.in: checks having uid_t/gid_t.
1632 * src/lha.h: define uid_t/gid_t as `int' if no have it.
1634 * src/lhext.c (adjust_info): mismatched braces.
1636 * header.doc.euc: around user/group name extention.
1638 * configure.in, configure.ac, config.h.in: checks having
1639 getpwuid/getgrgid and so on.
1641 * src/header.c (get_header): use the extend header, user/group name.
1642 (init_header): ditto.
1644 * src/lha.h: added <pwd.h>, <grp.h> header includings.
1646 * src/lhext.c (adjust_info): change owner/group according to
1647 user/group name when extracting.
1649 * src/lhlist.c (list_one): print user/group name when the header
1651 (list_one): correct column position on OS68K.
1653 * tests/lha-test.in: added timestamp checks.
1655 * src/lha_macro.h: comment about OS code.
1657 2002-05-28 Koji Arai <jca02266@nifty.ne.jp>
1659 * src/lharc.c (xstrdup): no need to call fatal_error().
1661 * src/lhdir.h, src/lha_macro.h, src/lha.h: added modeline for vi(m).
1663 * configure.ac, config.h.in: use new autoconf macro, AC_CHECK_MEMBERS().
1665 * IFNAMES, configure.in, src/header.c, src/lharc.c: replaced with
1666 new macro name to adopt to the AC_CHECK_MEMBERS().
1668 2002-05-27 Koji Arai <jca02266@nifty.ne.jp>
1670 * tests/lha-test.in: use awk instead of GNU sh-utils's `seq'.
1672 * src/header.c (filename_conv): fix a bug, reverse condition and
1673 conversion for filename case.
1675 * README.autoconf: added description about `get_filename_from_stdin' feature.
1677 * tests/lha-test.in: remove test around the `get_filename_from_stdin'.
1679 * src/lharc.c (main): never set `get_filename_from_stdin` to true.
1680 `echo foo | lha x foo.lzh' does not work like original LHa for UNIX.
1682 * tests/lha-test.in: replace with #!/bin/bash.
1684 * README.autoconf: added E-Mail address.
1686 * configure.ac: updated version and added mail address for bug reports.
1688 * configure.in: updated version.
1692 * README.autoconf: added `make check' on sample description.
1694 * configure.in, configure.ac: update version.
1696 2002-05-26 Koji Arai <jca02266@nifty.ne.jp>
1698 * tests/lha-test.in: added some tests.
1700 * tests/Makefile.am: refined.
1702 * src/lhext.c (cmd_extract): discard useless fseek() calling (for MinGW).
1704 * tests/lha-test.in: added some tests.
1706 * tests/lha-test.in: specified `q' option on print archive test.
1708 * src/lhadd.c (build_backup_file): On MinGW, cannot rename when
1709 a new file already exists.
1711 * src/lhext.c (extract_one): On MinGW, set binary on stdout when
1712 print archive (`p' switch).
1714 * tests/lha-test.in: added some tests.
1716 * src/lhadd.c (report_archive_name_if_different): warning messages
1717 should be printed to stderr rather than stdout.
1718 (cmd_delete): ditto.
1720 * tests/Makefile.am: fix EXTRA_DIST.
1722 * configure.in, configure.ac: update version.
1724 * tests/lha-test.in: added tests.
1726 * tests/Makefile.am: ditto.
1728 * configure.in, configure.ac, Makefile.am: ditto.
1730 2002-05-25 Koji Arai <jca02266@nifty.ne.jp>
1736 * README.autoconf: added description for developpers.
1738 * configure.in, configure.ac, config.h.in: refined.
1740 * src/util.c (memmove): use HAVE_MEMMOVE.
1741 (mkdir): use HAVE_WORKING_FORK.
1743 * src/huf.c: use HAVE_SYS_PARAM_H instead of sony_news.
1745 * IFNAMES (sony_news): updated.
1747 * configure.ac, configure.in (AC_INIT): added autoconfiscated date.
1748 see `lha --version'.
1750 2002-05-22 Koji Arai <jca02266@nifty.ne.jp>
1752 * 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:
1753 added modeline for vi(m).
1755 * src/lharc.c: backslash was missing.
1757 2002-05-20 Koji Arai <jca02266@nifty.ne.jp>
1759 * src/lharc.c (open_old_archive): On MinGW, set binary stdin.
1761 * src/lhadd.c (temporary_to_new_archive_file): On MinGW, set binary stdout.
1763 * src/lha_macro.h: no define TMP_FILENAME_TEMPLATE in source.
1765 * configure.ac, configure.in, README.autoconf: be able to specify
1766 --with-tmp-file=no which meaning TMP_FILENAME_TEMPLATE is undefined.
1768 * src/lha.h: correct usage of mkstemp().
1769 On MinGW, opening file cannot be removed.
1771 * src/lhadd.c (build_temporary_file): ditto.
1773 * src/lharc.c (fatal_error): ditto.
1775 2002-05-19 Koji Arai <jca02266@nifty.ne.jp>
1777 * configure.in, configure.ac: added AM_C_PROTOTYPES, AC_C_CONST.
1778 no use AM_C_PROTOTYPES for the present.
1780 * config.h.in: ditto.
1782 * src/lharc.c (print_tiny_usage_and_exit): change credit.
1784 * src/lha_macro.h: put PLATFORM in a macro LHA_VERSION.
1786 * src/lharc.c (print_version): ditto.
1788 * configure.ac: use AC_CANONICAL_TARGET instead of AC_CANONICAL_HOST.
1790 2002-05-19 Koji Arai <jca02266@nifty.ne.jp>
1794 * src/lharc.c (print_tiny_usage_and_exit): added credit.
1795 (print_version): print PLATFORM.
1797 * configure.ac, configure.in, config.h.in: define PLATFORM.
1799 * src/lharc.c (xstrdup): fix typo.
1801 * configure.ac: added for autoconf-2.53.
1803 * config.h.in: regenerate by autoconf-2.53.
1805 * src/lharc.c (find_files): MinGW has st_ino but always 0.
1807 * src/lharc.c (main): provisionally fix. set
1808 `get_filename_from_stdin' to false.
1810 * src/util.c (rename): use builtin rename(2) on mingw32 (since have
1813 * src/lharc.c (main): use xrealloc().
1815 * src/lha_macro.h: specify "b" modifier always (for mingw32).
1817 * src/lharc.c: use xstrdup() instead of strdup().
1819 * src/lha_macro.h: ditto.
1821 * src/lha_macro.h: getuid(), chown(), kill() are provisionally
1824 * src/header.c: set `default_system_kanji_code' to Shift_JIS on mingw32.
1826 * src/lhadd.c (build_temporary_file): no use SIGHUP for mingw32.
1827 (build_backup_file): ditto.
1829 * src/lharc.c (interrupt): ditto.
1831 * src/lhext.c (extract_one): ditto.
1833 * src/lhext.c (make_parent_path): mkdir() has no 2nd argument on
1836 2002-05-18 Koji Arai <jca02266@nifty.ne.jp>
1838 * lha_macro.h: define bcmp(), bzero(), bcopy() even if
1839 STDC_HEADERS is defined.
1841 * huf.c (alloc_buf): call fatal_error() when memory allocation failed
1842 instead of returning NULL.
1844 * lharc.c (main): use xmalloc().
1846 * util.c (copyfile): use xmalloc().
1848 * slide.c (encode_alloc): use xmalloc().
1850 * header.c (default_system_kanji_code): On HP-UX, use Shift_JIS as
1853 2001-02-03 Koji Arai <jca02266@nifty.ne.jp>
1855 * README.autoconf, src/header.c: treat archive and system kanji
1858 2001-01-31 Koji Arai <jca02266@nifty.ne.jp>
1860 * configure.in: mistakes for default archive method.
1862 * src/header.c: directory separator 0xff must be transpose slash
1865 2001-01-29 Koji Arai <jca02266@nifty.ne.jp>
1867 * src/lharc.c: replace MKSTEMP with HAVE_MKSTEMP.
1868 substitute DEFAULT_LZHUFF_METHOD for the `compress_method' variable (it's default value).
1870 * src/lha_macro.h: use the VERSION macro (defined by configure) for
1871 the LHA_VERSION definition.
1873 * src/header.c: added condition whether the macro MULTIBYTE_CHAR
1876 * src/Makefile.am: added $(SUPPORT_LZHUFF_METHOD) in AM_CPPFLAGS.
1878 * configure.in: change version number from 1.14f to 1.14i.
1879 check function mkstemp().
1880 replace --enable-lh6 option to --with-default-method=[567].
1882 * config.h.in: added definitions of HAVE_MKSTEMP and
1883 DEFAULT_LZHUFF_METHOD.
1885 * IFNAMES: added a description about MKSTEMP.
1887 * Makefile.am: added extra files.
1889 * 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:
1890 merged changing from lha-1.14f to lha-1.14i.
1892 * change-114i.txt, src/header.c, src/huf.c, src/lha.h, src/lharc.c:
1895 * src/huf.c, src/lharc.c, src/shuf.c, src/slide.c: import lha-114h
1897 * Makefile, README.euc, change-114g.txt, change-114h.txt:
1900 * 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:
1903 * 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:
1906 * src/header.c, src/lha_macro.h: implemented kanji code conversion
1909 * src/header.c: fix bug in euc2sjis().
1911 1999-10-05 Koji Arai <jca02266@nifty.ne.jp>
1913 * src/header.c: rename the macro HANKAKU_KATAKANA_P to the X0201_KANA_P
1915 1999-09-30 Koji Arai <jca02266@nifty.ne.jp>
1917 * 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:
1918 use the autoconf/automake
1920 1999-08-28 Koji Arai <jca02266@nifty.ne.jp>
1922 * Makefile: import the lha-114f
1924 * change-114f.txt, config.jpn.euc, header.doc.euc: import the lha-114f
1926 * CHANGES.euc, MACHINES.euc, PROBLEMS.euc, README.euc, change-114e.txt, config.eng:
1929 * MACHINES2.euc, man/Makefile, man/lha.man, man/lha.n:
1932 * src/append.c, src/crcio.c: import the lha-114f
1934 * 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:
1937 * src/dhuf.c, src/extract.c, src/header.c, src/huf.c, src/larc.c, src/lhadd.c:
1941 user-mail-address : "arai@users.sourceforge.jp"