1 2008-10-04 Koji Arai <arai@users.sourceforge.jp>
3 Timestamp archiving feature is added. Thanks to Reynir Stefansson.
5 * configure.ac: updated version.
7 * src/lha.h: added a variable, timestamp_archive.
9 * src/lhadd.c (copy_old_one): moved from src/lharc.c, and reset
10 most_recent to most recent timestamp.
12 * src/prototypes.h: copy_old_one() is changed to static function.
14 * src/lhadd.c (add_one): reset most_recent to most recent timestamp.
16 * src/lhadd.c (set_archive_file_mode): When --timestamp-archive is
17 specified, archive timestamp adjust to most recent file in the
20 * src/lhadd.c (cmd_add, cmd_delete): should call set_archive_file_mode() without noexec.
22 * src/lharc.c (init_variable, parse_suboption): added an option --timestamp-archive.
24 * tests/Makefile.am: added lha-test19.
26 * tests/lha-test19: newly added for checking the timestamp
29 * tests/lha-test.in (identical_timestamp) added an utility function.
31 * man/lha.1: describe about --timestamp-archive.
33 2008-08-23 Koji Arai <arai@users.sourceforge.jp>
35 * src/lhext.c (cmd_extract): stream position was adjusted by wrong value.
37 * src/lhext.c (extract_one): fixed misspelling.
39 2008-08-04 Koji Arai <arai@users.sourceforge.jp>
41 * src/larc.c (decode_start_lz5): should use the dtext[] instead of the text[].
43 * src/lha.h (dtext): defined as global variable.
45 * src/slide.c (decode): ditto.
47 2008-08-03 Koji Arai <arai@users.sourceforge.jp>
49 * src/header.c (convert_filename): Fixed a bug:
50 If the utf8 is specified for the --system-kanji-code and the path
51 separator is used with the backslash (0x5c) in archive (level 0
52 header is used 0x5c as path separator), when extracting, it has been
53 converted to the U+00A5 (yen sign) instead of the slash (0x2f).
55 2008-06-24 Koji Arai <arai@users.sourceforge.jp>
57 * Hacking_of_LHa: updated.
59 2008-05-14 Koji Arai <arai@users.sourceforge.jp>
61 * src/lhext.c (extract_one): The -t command should not affect extracting file attributes.
63 2008-05-02 Koji Arai <arai@users.sourceforge.jp>
65 * added a long option --debug=dumplzss which display debugging information for the LZSS.
67 2008-03-08 Koji Arai <arai@users.sourceforge.jp>
69 * src/lhext.c (add_dirinfo): no longer suppose that contents of the LZH archive is sorted by pathname.
71 * tests/lha-test18: added tests for above.
73 * src/lharc.c (parse_suboption): added debugging option `--debug=nosort' and `--debug=norecursion'
76 * src/lha.h: added two global variables for above options: sort_contents, recursive_archiving;
78 * src/lharc.c (init_variable): ditto.
79 (sort_files): no sort arguments with --debug=nosort.
80 (find_files): no sort directory entries with --debug=nosort.
82 * src/lhadd.c (append_it): non-sorted and non-recursive archiving with --debug=nosort and --debug=norecursion.
84 * src/lhadd.c (remove_one): should use the message() instead of printf().
86 2008-03-07 Koji Arai <arai@users.sourceforge.jp>
88 * man/lha.1: correct the description about the -m command.
90 2008-03-04 Koji Arai <arai@users.sourceforge.jp>
92 * man/lha.1: changed a little. the BUGS section was removed.
94 * man/lha.1: correct English by Stanislav Brabec. Thanks.
96 2008-03-02 Koji Arai <arai@users.sourceforge.jp>
98 * src/getopt_long.c (has_argument_short): should treat "-ab" as "-a -b"
99 for shortopts="-a[0123]b".
101 2008-03-02 Koji Arai <arai@users.sourceforge.jp>
103 * man/lha.1: refined.
105 2008-02-21 Koji Arai <arai@users.sourceforge.jp>
107 * src/header.c (canon_path): should remove duplicated slash.
108 (the function name is renamed from remove_dots().)
110 * tests/lha-test17: added a test for above.
112 2008-02-17 Koji Arai <arai@users.sourceforge.jp>
114 * src/lhext.c (extract_one) could not extract files under readonly directories, like:
116 dr-xr-xr-x 2 arai arai 4096 Jan 5 03:30 foo/
117 -rw-r--r-- 1 arai arai 0 Jan 5 03:30 foo/bar
119 * tests/Makefile.am: added a test for above.
121 * tests/lha-test.in: ditto.
123 * tests/lha-test18: ditto.
125 2008-02-05 Koji Arai <arai@users.sourceforge.jp>
127 * config.h. configure.ac: added a configure option
128 --with-additional-suffixes for SuSE Linux.
130 * src/lharc.c (open_old_archive): make it possible to add archive
133 * src/lharc.c (print_version): show the configure option by the
136 2007-09-09 Koji Arai <arai@users.sourceforge.jp>
138 * src/header.c: `put_longword()' should be used the ANSI-C declaration.
140 Created archives was broken on Big-endian machine (and 64-bits machine).
142 2007-09-08 Koji Arai <arai@users.sourceforge.jp>
144 * Added tests for extract large files.
146 Added two tests for extract files over 2G and 4G bytes.
147 These are not performed in default, because it will be take a long time.
149 2007-09-08 Koji Arai <arai@users.sourceforge.jp>
151 * Fix a bug: Could not extract 2G over files.
153 2007-09-05 Koji Arai <arai@users.sourceforge.jp>
155 * 00readme.autoconf: Added description for the -b switch which extract MacBinaries.
157 2007-09-04 Koji Arai <arai@users.sourceforge.jp>
159 * use the length modifier `ll' (%llu) for printing 64bit value.
161 2007-09-04 Koji Arai <arai@users.sourceforge.jp>
163 * update prototypes.h using cproto
165 2007-09-03 Koji Arai <arai@users.sourceforge.jp>
167 * 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:
168 Possible to extract files over 4G, use UNLHA32.DLL specific extended header.
170 2007-05-23 Koji Arai <arai@users.sourceforge.jp>
172 * tests/lha-test.in: added an optional numeric command-line
173 argument, and a command-line switch -n.
174 when the numeric argument is specified, only the testsuite is
175 performed. and the -n switch is specified, it is not made cleanup
176 trash files which is result of the test.
178 * tests/lha-test11: On MS-Windows, should consider the length of
181 * tests/lha-test11: On MS-Windows, if current directory is too
182 deep, skip this test.
184 2007-05-23 Koji Arai <arai@users.sourceforge.jp>
186 * config.h.in, configure.ac, src/lharc.c: the option -X was deprecated.
187 In place of it, added a long option --ignore-mac-files which
188 ignore Mac specific files ._*, .DS_Store and Icon\r when the
189 archive is created. Thanks to Hiroto Sakai.
191 2007-05-20 Koji Arai <arai@users.sourceforge.jp>
193 * repository changed to the Subversion.
195 * tests/lha-test12: should not use the raw CR code.
196 (when checkout from SVN repos, raw CR code is removed.)
198 2007-02-24 Koji Arai <arai@users.sourceforge.jp>
200 * src/lharc.c (print_tiny_usage, parse_suboption): added a long
201 option "--traditional". it is just the same
202 "--convert-filename-case" for the present.
204 * src/header.c (get_header): the variable "noconvertcase" changed
206 it means that this LHa does not convert filename case automatically.
210 * src/lharc.c (init_variable): ditto.
212 * src/lharc.c (print_tiny_usage, parse_suboption): added a long
213 option "--convert-filename-case" that change to the old behavior.
215 * src/lharc.c (print_usage, parse_suboption): the "g" option has
216 no meaning when extracting.
218 * src/header.c (write_header): no upcase filename when the generic
221 2007-02-24 Koji Arai <arai@users.sourceforge.jp>
223 * configure.ac: updated version.
225 * src/lharc.c (print_usage): updated.
227 2007-02-24 Koji Arai <arai@users.sourceforge.jp>
229 * src/header.c (copy_path_element, remove_dots, init_header):
230 should treat "foo" and "./foo" as same file, so remove "./" from
233 * tests/Makefile.am, tests/lha-test.in, tests/lha-test17:
234 added tests for the removing relative path.
236 2006-10-09 Koji Arai <arai@users.sourceforge.jp>
238 * src/lha_macro.h (MIN): newly added a macro for below.
240 * maketbl.c (make_table): applied the security patch for the
241 CVE-2006-4335 and CVE-2006-4337.
243 * huf.c (read_pt_len, read_c_len, decode_c_st1, decode_p_st1):
244 applied the security patch for the CVE-2006-4338.
246 2006-10-09 Koji Arai <arai@users.sourceforge.jp>
248 * tests/lha-test.in: the function local variable `$status' is treated as
249 the builtin variable on the Zsh version 4.3.2, so it was renamed to
252 * 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:
253 added tests for the header CRC.
255 2006-10-08 Koji Arai <arai@users.sourceforge.jp>
257 * 00readme.autoconf: updated.
259 * Hacking_of_LHa: changed mail address.
261 2006-10-08 Koji Arai <arai@users.sourceforge.jp>
263 * configure.ac: updated version.
265 * configure.ac, src/header.c, src/lha_macro.h, src/lhadd.c, src/lhext.c, src/lhlist.c, tests/lha-test12:
266 re-applied the correct DJGPP patch. Thanks to Doug Kaufman.
268 2006-10-02 Koji Arai <arai@users.sourceforge.jp>
270 * configure.ac: updated version.
272 * 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:
273 applied the patch for the DJGPP. Thanks to Doug Kaufman.
275 * 00readme.autoconf, configure.ac: changed mail address.
277 2006-09-11 Koji Arai <jca02266@nifty.com>
279 * configure.ac: updated version.
281 * src/lharc.c (print_usage): updated.
283 2006-09-11 Koji Arai <jca02266@nifty.com>
285 * config.h.in (HAVE_LIBAPPLEFILE): added `b' option which extract
286 the MacBinary. Thanks to Hiroto Sakai.
288 * configure.ac: ditto.
290 * src/lha.h (decode_macbinary_contents): ditto.
292 * src/lhadd.c (build_temporary_file): ditto.
294 * src/lharc.c (decode_macbinary_contents, print_tiny_usage, parse_suboption): ditto.
296 * src/lhext.c (extract_one, decode_macbinary): ditto.
298 * src/prototypes.h (build_temporary_file): ditto.
300 2006-09-11 Koji Arai <jca02266@nifty.com>
302 * src/lharc.c (parse_suboption): `-X' option has been ineffective.
303 Thanks to Hiroto Sakai.
305 2005-10-15 Koji Arai <jca02266@nifty.com>
307 * src/lha_macro.h (UPDATE_CRC): To casting with (unsigned char)
308 should not be for the variable (c) but for the (crc). Thanks to
311 2005-10-13 Koji Arai <jca02266@nifty.com>
313 * tests/lha-test.in: emulate POSIX shell when it is executed by
314 zsh or bash. (this part is derived from GNU Autoconf 2.59)
316 * tests/Makefile.am: replaced `bash' with `@sh_for_lha_test@'
318 * configure.ac: search shell programs to execute the lha-test.
320 2005-09-25 Koji Arai <jca02266@nifty.com>
322 * src/prototypes.h: updated.
324 * src/crcio.c (calccrc, fread_crc, fwrite_crc, fread_txt, fwrite_txt): suppress compiler warnings on gcc-4.0.
326 * src/header.c (calc_sum): ditto.
328 * src/lha_macro.h (UPDATE_CRC): ditto.
330 2005-09-24 Koji Arai <jca02266@nifty.com>
334 * configure.ac: updated version and my mail address.
336 * Hacking_of_LHa: updated. (2003-02-23 edition)
338 * 00readme.autoconf: updated.
340 2005-06-08 Koji Arai <jca02266@nifty.ne.jp>
342 * configure.ac: updated version.
344 * src/lharc.c (parse_suboption): fixed a bug, when the
345 --system-kanji-code option specified, the --archive-kanji-code
348 2005-05-08 Koji Arai <jca02266@nifty.ne.jp>
350 * configure.ac: updated version.
352 * src/lharc.c (print_usage): updated.
354 * src/lhadd.c, src/header.c (remove_leading_dots): move to
355 header.c for readlink().
357 * src/lhadd.c (add_one): symbolic link indication was contrary.
358 ( not "realname -> linkname" but "linkname -> realname" )
361 * src/lhext.c (extract_one): ditto.
363 * src/lhlist.c (list_one): ditto.
365 * tests/lha-test14: ditto.
367 * src/lhadd.c (remove_leading_dots): newly added.
369 * src/lhadd.c (append_it): remove leading relative path from
372 * src/lhext.c (is_directory_traversal): should return true when
375 2004-10-02 Koji Arai <jca02266@nifty.ne.jp>
377 * src/lharc.c (print_tiny_usage): added long option helps.
379 * src/prototypes.h: updated.
381 * src/lharc.c: should accept a single option --help and --version.
383 2004-09-29 Koji Arai <jca02266@nifty.ne.jp>
385 * src/lharc.c (parse_option, parse_suboption): use getopt_long().
387 * src/Makefile.am: added getopt_long.c and getopt_long.h.
389 * src/getopt_long.c, src/getopt_long.h: newly added.
391 2004-09-29 Koji Arai <jca02266@nifty.ne.jp>
395 * 00readme.autoconf: note for builds on MS-Windows.
397 * configure.ac: updated version.
399 * Makefile.am: added Hacking_of_LHa in EXTRA_DIST.
401 * Hacking_of_LHa: renamed (typo).
403 2004-09-27 Koji Arai <jca02266@nifty.ne.jp>
405 * configure.ac: updated version.
407 * src/prototypes.h (str_safe_copy): newly added.
408 (build_standard_archive_name, build_backup_file):
409 added argument the size for build_standard_archive_name() and
412 * src/header.c (init_header): use str_safe_copy() instead of strcpy().
414 * src/lhadd.c (build_backup_file, cmd_add, cmd_delete):
415 added argument the size for build_standard_archive_name() and
418 * src/lhext.c (make_parent_path): use str_safe_copy() instead of strcpy().
419 (extract_one): ditto.
421 * src/lharc.c (find_files): use str_safe_copy() instead of strcpy().
422 (build_temporary_name): ditto.
423 (modify_filename_extention): ditto.
424 (build_backup_name): ditto.
425 (build_standard_archive_name): ditto.
427 * src/util.c (str_safe_copy): newly added.
429 2004-09-26 Koji Arai <jca02266@nifty.ne.jp>
431 * src/header.c: fixed typo.
433 2004-09-18 Koji Arai <jca02266@nifty.ne.jp>
435 * configure.ac: updated version.
437 * 00readme.autoconf: added a description about
438 `--extract-broken-archive' option.
440 * src/lharc.c (init_variable, parse_option): added an option
441 `--extract-broken-archive' to extract broken archive.
443 * src/lha.h (extract_broken_archive): ditto.
445 * src/slide.c (encode, decode): fixed a *FATAL* bug which make a
448 2004-05-08 Koji Arai <jca02266@nifty.ne.jp>
450 * configure.ac: updated version.
452 * src/prototypes.h: updated.
454 * src/lhext.c (extract_one, is_directory_traversal): applied a
455 security patch (CAN-2004-0235: directory traversal problems)
457 * src/lharc.c (print_usage): updated.
459 2003-12-18 Koji Arai <jca02266@nifty.ne.jp>
461 * src/header.c (wintime_to_unix_stamp): no use 64bit constant to
462 avoid the warning `integer constant is too large for "long" type'
463 on GCC. however, for portability, no use the unsigned long long
466 2003-12-13 Koji Arai <jca02266@nifty.ne.jp>
468 * configure.ac: updated version.
470 * src/lhext.c (extract_one, cmd_extract): preserve directory
471 timestamp. Thanks Akihiro Iriyama.
473 * src/lhext.c (add_dirinfo, adjust_dirinfo): newly added.
475 2003-09-28 Koji Arai <jca02266@nifty.ne.jp>
477 * Makefile.am (SUBDIRS): reordered to avoid useless re-compilation.
479 2003-09-21 Koji Arai <jca02266@nifty.ne.jp>
483 * configure.ac: updated version.
485 2003-08-18 Koji Arai <jca02266@nifty.ne.jp>
487 * 00readme.autoconf: fixed.
489 * configure.ac: use AC_SYS_LARGEFILE for largefile support.
491 * config.h.in: ditto.
493 * src/prototypes.h: updated.
495 2003-07-29 Koji Arai <jca02266@nifty.ne.jp>
497 * tests/Makefile.am (EXTRA_DIST): lha-test1 was missed.
499 * tests/lha-test13: should set LANG=C for `tr'.
501 2003-07-28 Koji Arai <jca02266@nifty.ne.jp>
503 * tests/lha-test.in: filename should be contained in last error
506 2003-07-27 Koji Arai <jca02266@nifty.ne.jp>
508 * tests/lha-test2: no need to set $FILENAME.
509 * tests/lha-test3: ditto.
510 * tests/lha-test4: ditto.
511 * tests/lha-test5: ditto.
512 * tests/lha-test6: ditto.
513 * tests/lha-test7: ditto.
514 * tests/lha-test8: ditto.
515 * tests/lha-test9: ditto.
516 * tests/lha-test10: ditto.
517 * tests/lha-test11: ditto.
518 * tests/lha-test12: ditto.
519 * tests/lha-test13: ditto.
520 * tests/lha-test14: ditto.
521 * tests/lha-test15: ditto.
523 * tests/lha-test1: newly added.
525 * tests/lha-test.in: improved.
527 * src/prototypes.h: updated.
529 * src/lha.h (exit): defined as lha_exit().
531 * src/lharc.c (init_variable): discard a variable
532 `remove_temporary_at_error'.
533 (fatal_error): ditto.
534 (cleanup): newly added.
535 (interrupt): call cleanup().
536 (lha_exit): newly added; cleanup temporary files always.
538 * src/lhadd.c (add_one): discard a variable
539 `remove_temporary_at_error'.
541 * src/indicator.c (start_indicator): refined.
543 * src/lharc.c (parse_option): fixed typo.
545 * src/indicator.c (carriage_return): newly added; print CR on tty only.
546 (start_indicator): call above.
547 (finish_indicator): ditto.
548 (finish_indicator2): ditto.
550 * src/lharc.c (print_usage): newly added.
551 (parse_option): strictly checking command line arguments.
554 2003-07-26 Koji Arai <jca02266@nifty.ne.jp>
556 * tests/lha-test13: use `tr' instead of `printf` for printing 8 bit
559 2003-07-25 Koji Arai <jca02266@nifty.ne.jp>
561 * tests/lha-test14: `test -e' is unavailable on some systems.
563 2003-07-22 Koji Arai <jca02266@nifty.ne.jp>
565 * tests/lha-test.in: should exit with status in trap.
567 * src/shuf.c (decode_start_st0): wrong value was assigned.
569 * src/lha.h: discard `prof' variable.
571 * src/lharc.c (init_variable): discard `prof' variable.
572 (parse_option): discard undocumented `p' option.
575 * src/append.c (encode_lzhuf): hate global variable.
577 * src/extract.c (decode_lzhuf): ditto.
581 2003-07-21 Koji Arai <jca02266@nifty.ne.jp>
583 * configure.ac: updated version.
585 * 00readme.autoconf: described largefiles.
587 * src/header.c (get_header): avoid valgrind warning, `Source and
588 destination overlap in strncpy()'.
590 * src/lharc.c (find_files): refined.
592 * tests/lha-test.in: should exit in trap.
594 * src/lharc.c (find_files): uninitialized variable was caught by
597 * src/prototypes.h: updated.
599 * src/append.c (encode_lzhuf): set actual copied size.
601 * src/util.c (encode_stored_crc): use size_t instead of long.
603 * src/lhadd.c (temporary_to_new_archive_file): ditto.
607 * src/lhadd.c (add_one): fixed a comment.
609 * src/indicator.c (MAX_INDICATOR_COUNT): changed to fit for the 80
612 * src/extract.c (decode_lzhuf): refined.
614 * src/prototypes.h: updated.
616 * src/cproto.sh: added `indicator.c'.
618 * src/Makefile.am: ditto.
620 * src/indicator.c: separated from append.c.
622 * src/append.c: ditto.
626 * src/lha_macro.h: ditto.
628 2003-07-20 Koji Arai <jca02266@nifty.ne.jp>
630 * configure.ac: updated version.
632 * src/Makefile.am (EXTRA_DIST): fnmatch.h was missed.
634 * src/lha.h (fseeko, ftello): these macros had no effect.
636 2003-07-19 Koji Arai <jca02266@nifty.ne.jp>
638 * src/maketree.c (make_len): discard debug print.
640 * configure.ac: updated version.
642 * src/prototypes.h: updated.
644 * config.h.in: updated.
646 * configure.ac: check declaration of `basename'.
648 * src/cproto.sh: ditto.
650 * src/util.c (encode_stored_crc): use size_t.
652 * src/lha.h (struct LzHeader): use size_t for the members
653 `packed_size' and `original_size'.
655 2003-07-13 Koji Arai <jca02266@nifty.ne.jp>
657 * configure.ac: updated version.
659 * src/prototypes.h: updated.
661 * src/append.c (encode_lzhuf): use size_t and off_t instead of long.
662 (start_indicator): ditto.
664 * src/extract.c (decode_lzhuf): ditto.
666 * src/lha.h (struct interfacing): ditto.
668 * src/lhadd.c (add_one): ditto.
669 (find_update_files): ditto.
672 * src/lhext.c (cmd_extract): ditto.
674 * src/util.c (copyfile): ditto.
676 * src/lhlist.c (print_size): use "%7lu" format string instead of
677 "%7ld" for large files.
679 * src/slide.c: refined.
681 2003-07-11 Koji Arai <jca02266@nifty.ne.jp>
683 * src/lharc.c (cleaning_files): should print errno.
685 2003-05-23 Koji Arai <jca02266@nifty.ne.jp>
687 * configure.ac: use fseeko(), ftello() instead of fseek(), ftell().
689 * config.h.in: ditto.
691 * src/lha.h, src/lhlist.c, src/lhext.c, src/lharc.c: ditto.
693 * src/lhadd.c, src/header.c: ditto.
695 2003-05-10 Koji Arai <jca02266@nifty.ne.jp>
697 * configure.ac: updated version.
699 * src/lhext.c (inquire_extract): warning if stdin is not tty,
700 because you cannot reply from stdin.
701 (extract_one): return actual read size from archive.
702 (cmd_extract): fix a bug: skip correct size when error occurred.
704 * tests/lha-test5: added tests for above.
706 * src/lha.h (struct interfacing): added a member `read_size'.
708 * src/extract.c (decode_lzhuf): added an argument `pointer of
711 * src/prototypes.h: ditto.
713 * src/slide.c (decode): set actual read size to interface->read_size.
715 2003-04-14 Koji Arai <jca02266@nifty.ne.jp>
717 * src/cproto.sh: The cproto 4.7a supports some gcc-specific keywords.
719 2003-03-24 Koji Arai <jca02266@nifty.ne.jp>
721 * configure.ac: updated version.
723 * src/prototypes.h: updated.
725 2003-03-23 Koji Arai <jca02266@nifty.ne.jp>
727 * src/header.c (convert_filename): support Samba CAP code (experimental).
728 (hex2int, int2hex, cap_to_sjis, sjis_to_cap): added for above.
730 * src/lha_macro.h (CODE_CAP): ditto.
732 * src/lharc.c (parse_option): added new command line options,
733 --system-kanji-code=xxx and --archive-kanji-code=xxx (experimental).
735 * 00readme.autoconf: described above features.
737 2003-03-22 Koji Arai <jca02266@nifty.ne.jp>
739 * src/lharc.c (init_variable): do not use HEADER_LEVELx macros.
740 (parse_option): ditto.
742 * src/header.c (write_header): ditto.
744 * src/lha_macro.h (HEADER_LEVEL0, HEADER_LEVEL1, HEADER_LEVEL2, MATCHBIT): ditto.
746 * src/huf.c (encode_start_st1): do not use assert().
747 (decode_start_st1): ditto.
749 2003-03-12 Koji Arai <jca02266@nifty.ne.jp>
751 * src/header.c (wintime_to_unix_stamp): should cast to unsigned type.
753 2003-03-03 Koji Arai <jca02266@nifty.ne.jp>
755 * src/prototypes.h: updated.
757 * src/cproto.sh: improved.
759 2003-02-24 Koji Arai <jca02266@nifty.ne.jp>
761 * src/prototypes.h: updated.
763 * src/maketree.c: hate global variables.
765 * src/lha_macro.h: refined.
767 * src/huf.c: refined.
769 * src/util.c (strdup): defined more properly.
772 * prototypes.h: ditto.
776 2003-02-23 Koji Arai <jca02266@nifty.ne.jp>
778 * src/cproto.sh: improved.
780 * src/prototypes.h: updated.
782 * src/util.c: `strucmp()' was replaced by `strcasecmp()'.
784 * src/util.c (archive_is_msdos_sfx1): ditto.
786 * src/lharc.c (open_old_archive): ditto.
790 * src/util.c: discard `rename()', `mkdir()' and `rmdir()'.
792 * configure.ac: ditto.
794 * config.h.in: ditto.
796 * src/header.c: added credit.
797 no longer use `ftime()', `tzset()', `localtime()' and `gettimeofday()'.
799 2003-02-17 Koji Arai <jca02266@nifty.ne.jp>
801 * configure.ac: updated version.
803 * src/fnmatch.h: no need to include <sys/cdefs.h>. it does not
806 2003-02-14 Koji Arai <jca02266@nifty.ne.jp>
808 * src/lharc.c (find_files): `goto' requires expression after label.
810 * src/lhadd.c (cmd_add): ditto.
812 2003-02-05 Koji Arai <jca02266@nifty.ne.jp>
814 * tests/lha-test7: sleep 1 to make sure for updating tests.
816 * src/fnmatch.c, src/fnmatch.h: added fnmatch.c derived from the
819 2003-02-04 Koji Arai <jca02266@nifty.ne.jp>
821 * configure.ac: need to call `AC_CANONICAL_HOST' for automake
822 1.6.x (for installing the config.guess and config.sub).
824 2003-02-02 Koji Arai <jca02266@nifty.ne.jp>
826 * src/header.c, src/lharc.c: fix credit.
828 2003-01-20 Koji Arai <jca02266@nifty.ne.jp>
830 * src/lha.h (prev_char): discard unused variable `prev_char'.
832 * src/crcio.c (fwrite_txt): ditto.
834 * src/slide.c (decode): ditto.
836 * src/slide.c: refined a little.
838 2003-01-19 Koji Arai <jca02266@nifty.ne.jp>
840 * src/slide.c: took off the debug flag.
842 * src/slide.c (search_dict): split into 2 parts.
844 * src/slide.c: refined: use the structure `matchdata'.
846 2003-01-18 Koji Arai <jca02266@nifty.ne.jp>
848 * src/lha.h (decode_count): rename a global variable `count' to
851 * src/dhuf.c (decode_p_dyn): ditto.
853 * src/slide.c (decode): ditto and refined.
855 2003-01-17 Koji Arai <jca02266@nifty.ne.jp>
857 * src/slide.c: refined ?
859 * src/slide.c (INIT_HASH, NEXT_HASH): newly defined to refine.
861 2003-01-13 Koji Arai <jca02266@nifty.ne.jp>
863 * src/prototypes.h: updated.
865 * src/slide.c: refined.
867 2002-12-31 Koji Arai <jca02266@nifty.ne.jp>
869 * src/lhext.c (adjust_info): On Cygwin, execute permission should
870 be set for .exe or .dll.
872 2002-12-28 Koji Arai <jca02266@nifty.ne.jp>
874 * src/lha_macro.h (peekbits): newly added.
876 * src/huf.c (read_pt_len): use peekbits().
878 (decode_c_st1): ditto.
879 (decode_p_st1): ditto.
881 * src/shuf.c (decode_c_st0): ditto.
882 (decode_p_st0): ditto.
884 2002-12-23 Koji Arai <jca02266@nifty.ne.jp>
886 * configure.ac: added a configure option: --enable-ignore-dot-files.
888 * config.h.in: ditto.
890 * src/lharc.c (parse_option): added `-X' option to ignore dot files.
892 2002-12-17 Koji Arai <jca02266@nifty.ne.jp>
894 * configure.ac: should check whether system has `ssize_t'.
896 * config.h.in: ditto.
900 * configure.ac: added checking functions `fnmatch' and `basename'.
901 but not yet prepare the free fnmatch.c.
903 * config.h.in: ditto.
905 * src/util.c (basename): newly added.
907 * src/lhadd.c (cmd_add): exclude files specified by -x option.
909 * src/lharc.c (print_tiny_usage): refined.
911 2002-12-16 Koji Arai <jca02266@nifty.ne.jp>
913 * 00readme.autoconf: describe about new feature `-x'.
915 * src/lha.h: include fnmatch.h.
916 added a global variable `exclude_files'.
918 * src/lharc.c (init_variable): initialize `exclude_files'.
919 (print_tiny_usage): modify usage.
920 (parse_option): newly added. should regard leading `-' argument as
921 option (for new -x option).
922 added `-x <pattern>' option (specify exclude files pattern).
923 (find_files): files matched by pattern `exclude_files' exclude
926 2002-11-25 Koji Arai <jca02266@nifty.ne.jp>
928 * src/header.c: use size_t for header_size.
929 (skip_msdos_sfx1_code): rename to `seek_lha_header()'.
931 * src/lha.h: use size_t for header_size.
933 * src/lhadd.c (cmd_add): rename `skip_msdos_sfx1_code()' to
937 * src/lhext.c (cmd_extract): ditto.
939 * src/lhlist.c (cmd_list): ditto.
941 * src/prototypes.h: updated.
943 * tests/lha-test15: added tests to search any level headers.
945 2002-11-17 Koji Arai <jca02266@nifty.ne.jp>
947 * untabify all sources.
949 * src/huf.c (encode_start_st1): refined.
950 (decode_start_st1): refined.
952 * src/slide.c (encode_alloc): refined.
955 2002-11-15 Koji Arai <jca02266@nifty.ne.jp>
957 * 00readme.autoconf: updated.
959 * src/prototypes.h: updated.
961 * configure.ac, Makefile.am, olddoc/Makefile.am:
962 old documentations moved to olddoc directory.
964 * 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.
966 * Makefile.in.org, src/Makefile.in.org: removed.
968 * configure.ac: updated version (source maintenance start on
971 2002-11-11 Koji Arai <jca02266@nifty.ne.jp>
973 * src/lhext.c (make_parent_path): On Cygwin, when `foo.exe'
974 exists, stat("foo", &buf) is successful and it is not a directory.
976 * src/util.c (skip_msdos_sfx1_code): move to header.c
978 * src/header.c (skip_msdos_sfx1_code): ditto.
979 some macro moved from lha_macro.h.
981 * src/lha_macro.h: ditto.
983 * tests/lha-test15: newly added for testing self extracting archive.
985 * tests/lha-test.in: ditto.
987 * tests/Makefile.am: ditto.
989 * configure.ac: refined messages.
991 2002-10-26 Koji Arai <jca02266@nifty.ne.jp>
993 * src/bitio.c (putbits): use the function putcode().
995 * src/dhuf.c (decode_start_dyn): call init_code_cache().
997 * src/huf.c (encode_start_st1): ditto.
998 (decode_start_st1): ditto.
1000 * src/larc.c (decode_start_lzs): ditto.
1002 * src/shuf.c (decode_start_st0): ditto.
1003 (encode_start_fix): ditto.
1004 (decode_start_fix): ditto.
1006 * src/Makefile.am: added bitio.c
1008 * src/cproto.sh: added bitio.c
1010 * src/bitio.c: new file.
1012 * src/crcio.c: extracted bitio routines.
1016 2002-10-16 Koji Arai <jca02266@nifty.ne.jp>
1018 * 00readme.autoconf: modified.
1020 2002-10-02 Koji Arai <jca02266@nifty.ne.jp>
1022 * src/util.c (xstrchr): `strchr(s, 0)' should return the pointer
1023 of the '\0' terminator.
1025 2002-09-14 Koji Arai <jca02266@nifty.ne.jp>
1027 * src/lhadd.c (add_one): Use chsize() if system does not have
1028 ftruncate(2). (For MinGW)
1030 * configure.ac: ditto.
1032 * config.h.in: ditto.
1034 2002-09-03 Koji Arai <jca02266@nifty.ne.jp>
1038 * 00readme.autoconf: modified for stable release.
1040 * configure.ac: updated version.
1042 2002-09-01 Koji Arai <jca02266@nifty.ne.jp>
1044 * tests/Makefile.am (EXTRA_DIST): lha-test12, lha-test13 and
1045 lha-test14 were missed.
1047 2002-08-31 Koji Arai <jca02266@nifty.ne.jp>
1049 * src/lhadd.c (append_it): refined.
1051 * src/lhadd.c (append_it): no terminate when file cannot be opened.
1053 2002-08-29 Koji Arai <jca02266@nifty.ne.jp>
1055 * tests/lha-test11: change the way of checking the `header size field'.
1057 * configure.ac: the `--enable-user-name-header' switch has been
1058 ineffective. corrected variable name.
1060 2002-08-26 Koji Arai <jca02266@nifty.ne.jp>
1062 * tests/lha-test14: on Cygwin, cannot use '|' as filesname.
1064 * tests/lha-test.in: on MinGW, skip lha-test14 test.
1066 * 00readme.autoconf: modified.
1070 * configure.ac: updated version.
1072 * src/header.c: fixed a comment.
1074 * src/prototypes.h (strcmp_filename): removed.
1076 * src/header.c (dump_skip_bytes): note "ignored" if data is ignored.
1078 * src/header.c (wintime_to_unix_stamp): newly added for converting
1079 from `FILETIME' to `time_t'.
1080 (get_extended_header): use `wintime_to_unix_stamp()' to recognize
1081 the Windows time stamp header (0x41).
1083 * src/lha.h: define `uint64_t' unless system has it.
1085 * configure.ac: check existence of the type `uint64_t'.
1087 * config.h.in: ditto.
1089 * src/lharc.c (init_variable): set default header level to 2.
1091 2002-08-24 Koji Arai <jca02266@nifty.ne.jp>
1093 * tests/lha-test.in (lha-test14): added to test the symbolic link file.
1095 * tests/lha-test14: ditto.
1097 * src/lhlist.c (list_one): use LzHeader.realname.
1099 * src/lhext.c (extract_one): use LzHeader.realname.
1100 should call make_parent_path(symlink).
1102 * src/lhadd.c (add_one): use LzHeader.realname.
1104 (append_it): use strcmp() instead of strcmp_filename().
1105 (strcmp_filename): removed.
1107 * src/lha.h (struct LzHeader): added a member `realname' which is
1108 symbolic linked name.
1110 * src/header.c (get_header): split symbolic name in archive.
1111 (write_header): join symbolic link name and linked name to put it
1114 * src/lhext.c (extract_one): force extract when `f' option is
1115 specified. this is for OS-9 archives, [provisional].
1117 * src/header.c: fixed cpp expressions around time functions.
1119 * tests/lha-test8: test MS-DOS timestamp `ftime' structure.
1121 * tests/lha-test.in (change_timestamp): newly added.
1123 2002-08-22 Koji Arai <jca02266@nifty.ne.jp>
1127 * src/prototypes.h: regenerated.
1129 * src/cproto.sh: refined.
1131 * configure.ac: updated version.
1133 * configure.ac: should use `exit' rather than `return' on
1134 AC_TRY_RUN(). see the Autoconf manual.
1136 * configure.ac: check whether the 2nd argument of gettimeofday()
1139 * src/header.c: ditto.
1141 * config.h.in (GETTIMEOFDAY_HAS_2ND_ARG): ditto.
1143 * tests/lha-test.in: `++' is invalid arithmetic operator on POSIX
1144 shell, Ksh and Bash version 2.03 or earlier.
1146 * tests/lha-test13: ditto.
1148 2002-08-18 Koji Arai <jca02266@nifty.ne.jp>
1150 * src/lharc.c (print_version): version string is made here.
1152 * src/lha_macro.h (LHA_VERSION): removed.
1154 * src/slide.c (encode_alloc): used newly named `dicbit' macro.
1156 * src/shuf.c (read_tree_p): ditto.
1157 (decode_start_fix): ditto.
1159 * src/lha_macro.h: `xxx_DICBIT' for each method was defined.
1161 * src/header.c: correct a comment `Generic stamp format'.
1162 (get_bytes): fixed for dumping header.
1164 * src/lha_macro.h, src/lha.h: `EXTERN' macro definition was moved
1167 * src/header.c (get_bytes): print hex codes for invisible chars.
1169 * src/lhlist.c: hate global variables.
1171 * src/prototypes.h (convdelim): removed.
1173 * src/lhlist.c (print_stamp): use ISO 8601 date format when `lha vv'.
1175 2002-08-14 Koji Arai <jca02266@nifty.ne.jp>
1177 * src/header.c: discarded warning message for the extended header,
1178 `Windows time stamp' ignored.
1180 * src/header.c: in spite of extended type value, read contents of
1183 * src/header.c: comment fixed.
1185 2002-08-12 Koji Arai <jca02266@nifty.ne.jp>
1187 * src/header.c (dump_skip_bytes): do nothing when length is 0.
1189 2002-08-11 Koji Arai <jca02266@nifty.ne.jp>
1191 * src/lha_macro.h (SJC_FIRST_P): rename to SJIS_FIRST_P.
1192 (SJC_SECOND_P): rename to SJIS_SECOND_P.
1194 * src/util.c (convdelim): removed.
1196 * src/header.c (convert_filename): when small letter is included
1197 in filename, do not convert case.
1199 * 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:
1200 print filename when test failed.
1202 * tests/lha-test.in, tests/lha-test12, tests/lha-test13:
1203 added tests for converting text files.
1205 * src/header.c (get_extended_header): recognize the Windows time
1206 stamp header (0x41), but ignored.
1208 * src/header.c (write_unix_info): added.
1210 2002-08-11 Koji Arai <jca02266@nifty.ne.jp>
1214 * configure.ac: updated version.
1216 * 00readme.autoconf: modified.
1218 * src/header.c: DUMP_HEADER is always true.
1219 dump header when running `lha vvv foo.lzh'.
1220 (get_header): added new extend type JAVA.
1222 * src/lha_macro.h (EXTEND_JAVA): added new extend type JAVA.
1224 * src/lhlist.c (list_one): ditto.
1226 * src/lharc.c (init_variable): `verbose' is changed to successive.
1229 2002-08-10 Koji Arai <jca02266@nifty.ne.jp>
1231 * src/lhlist.c (list_one): fixed mode checks.
1233 * src/prototypes.h: updated.
1235 * src/header.c (get_header_level2): check CRC value for reading
1236 level 2 and 3 header.
1237 (get_header_level3): ditto.
1238 (get_extended_header): ditto.
1239 (get_header_level0): set total header size to
1240 `LzHeader.header_size' even if level 0 or 1 header is read.
1241 (get_header_level1): ditto.
1243 * src/append.c (encode_lzhuf): encode(), decode() and copyfile()
1245 (put_indicator): moved from crcio.c.
1247 * src/crcio.c (put_indicator): moved to append.c.
1248 (calccrc): generalized.
1249 (fread_crc): changed interface.
1250 (fwrite_crc): changed interface.
1251 (calc_header_crc): removed. use calccrc() instead.
1253 * src/extract.c (decode_lzhuf): copyfile() and decode() were changed.
1255 * src/lha.h: hate global variable. `crc' is removed.
1256 `reading_size' moved to append.c.
1258 * src/lha_macro.h (INITIALIZE_CRC): newly added.
1259 (UPDATE_CRC): no update in macro code.
1261 * src/lhadd.c (temporary_to_new_archive_file): copyfile() was changed.
1263 * src/lharc.c (copy_old_one): header size adjusting is done by
1266 * src/slide.c (update): changed interface.
1271 * src/util.c (copyfile): changed interface.
1273 2002-08-10 Koji Arai <jca02266@nifty.ne.jp>
1275 * tests/lha-test5: added tests using pipe.
1277 * src/lhadd.c (cmd_add): applied reverse patch. intermediate file
1278 is the necessary when created archive put in pipe.
1280 * src/header.c (skip_bytes): newly added.
1281 (dump_get_byte): newly added for dumping the data for debugging.
1282 (dump_skip_bytes): ditto.
1284 (get_longword): ditto.
1286 (get_extended_header): modified for reading the level 3 header.
1287 (get_header_level3): newly added.
1289 * src/lha.h (struct LzHeader): for level 3 header, added a new
1290 member `size_field_length' and changed type of the `header_size'
1293 * src/header.c (init_header): the `hdr->method' should be
1294 initialized to the "-lh0-" for empty files.
1296 * tests/lha-test2: ditto.
1298 * src/lhadd.c (add_one): should print indicator for empty files.
1300 2002-08-09 Koji Arai <jca02266@nifty.ne.jp>
1302 * tests/lha-test.in: adapt to ksh (and posix shell).
1304 2002-08-05 Koji Arai <jca02266@nifty.ne.jp>
1306 * 00readme.autoconf: refined.
1308 * config.h.in (BACKUP_OLD_ARCHIVE): added.
1310 * configure.ac: added a command line switch `--enable-backup-archive'.
1312 * src/lhadd.c (cmd_add): if `backup_old_archive' is true, no
1314 (cmd_delete): ditto.
1316 * src/lharc.c (init_variable): initialize `backup_old_archive'.
1318 * src/lha.h (backup_old_archive): added for nobackup.
1320 2002-08-02 Koji Arai <jca02266@nifty.ne.jp>
1322 * src/lha_macro.h, src/lha.h, src/header.c, src/lhadd.c: Fixed
1323 misspelling, not `STRAGE' but `STORAGE'.
1325 2002-07-29 Koji Arai <jca02266@nifty.ne.jp>
1329 * src/header.c: should use error() instead of fatal_error().
1330 (get_header): fixed wrong end mark checking.
1332 * src/prototypes.h: updated.
1336 * configure.ac: updated version.
1338 * 00readme.autoconf: described about header.c bug on original lha.
1340 2002-07-28 Koji Arai <jca02266@nifty.ne.jp>
1342 * tests/Makefile.am: added lha-test11.
1344 * src/crcio.c (fread_txt): responded to (gcc -Wall) compiler warnings.
1346 * src/header.c (generic_to_unix_stamp): ditto.
1348 * src/lha_macro.h: ditto.
1350 * src/lhadd.c (delete): ditto.
1352 * src/lharc.c (open_old_archive): ditto.
1354 * src/lhlist.c (list_one): ditto.
1356 * src/prototypes.h: updated.
1358 * tests/lha-test.in: added lha-test11.
1360 * tests/lha-test8: added tests for level 0 and 2 header.
1362 * tests/lha-test10: added tests for generic header.
1364 * tests/lha-test11: testing for long filename. moved from lha-test10.
1366 2002-07-26 Koji Arai <jca02266@nifty.ne.jp>
1368 * src/header.c (write_header): rewritten.
1370 2002-07-25 Koji Arai <jca02266@nifty.ne.jp>
1372 * tests/lha-test4: stderr should be redirected.
1374 * src/lharc.c (main): exit with status 1 (meaning failure) when the
1375 function error() was called.
1378 * src/lha.h (LzHeader.last_modified_stamp;): no longer used it.
1380 * src/header.c (get_header): rewritten.
1382 2002-07-21 Koji Arai <jca02266@nifty.ne.jp>
1384 * tests/lha-test10: change grep pattern so that pattern matches
1385 a carriage return at the end of line for MinGW.
1387 * src/lha.h: define `struct utimbuf' when utime.h is not given
1388 such as MinGW. (Microsoft Visual Studio 6.0 has sys/utime.h).
1390 * src/lhext.c (make_parent_path): missing braces.
1392 * tests/lha-test.in (check): print script line number when test failed.
1394 * 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.
1396 * tests/lha-test10: on Cygwin/MinGW, could not make 255 bytes
1397 filename. (the system limit of filename length contains the length
1398 of current directory.)
1400 * tests/lha-test10: should use /bin/ls instead of ls, since
1401 /usr/ucb/ls puts size on 4th field (on Solaris).
1403 2002-07-18 Koji Arai <jca02266@nifty.ne.jp>
1407 * configure.ac: updated version.
1409 * src/lhext.c (adjust_info): should use `struct utimbuf' for
1410 `utime(2)' rather than `time_t' array.
1412 * src/header.c (write_header): [BUG]: should not write zero at the
1413 first byte on level 2 header. should adjust header size.
1415 * tests/lha-test10: added tests for level 2 header.
1417 * src/lha_macro.h, src/header.c (setup_get): moved to header.c.
1422 (get_bytes): newly added.
1423 (put_bytes): newly added.
1425 2002-07-17 Koji Arai <jca02266@nifty.ne.jp>
1427 * src/header.c (get_header): [BUG]: Could not read level 2 header
1428 when the header size is grater than 256.
1429 (convert_filename): Should use the `FILENAME_LENGTH' macro rather
1431 (write_header): [BUG]: Suppress to overflow the header size when
1432 long filename is written in level 0 or 1 header. On level 1
1433 header, always use the extended filename header instead of the
1436 * src/lha.h (LzHeader): the type of `header_size' was changed
1437 from `unsigned char' to `int', for the level 2 header archive.
1439 * src/lhext.c (extract_one): should use the `FILENAME_LENGTH'
1440 macro rather than 256 (provisionally fixed).
1442 * tests/lha-test.in: notify failed test number.
1444 * tests/lha-test10: added tests for long pathname.
1446 2002-07-14 Koji Arai <jca02266@nifty.ne.jp>
1450 * src/header.c (get_header): archive path separator should be
1455 * configure.ac: updated version.
1457 * src/header.c (write_header): if user/group name is not set,
1458 extended header (0x52 and 0x53) should not be made.
1460 * tests/lha-test10: added testing to handle deep directory.
1462 * src/header.c (write_header): fixed typo, not strchr() but
1465 * src/prototypes.h: regenerated.
1467 * src/header.c (convert_filename): prefer to use the
1468 `FILENAME_LENGTH' macro rather than 256.
1470 * src/cproto.sh: fixed typo.
1472 2002-07-11 Koji Arai <jca02266@nifty.ne.jp>
1474 * tests/Makefile.am (EXTRA_DIST): lha-test9 and lha-test10 were missed.
1476 * src/lharc.c (print_tiny_usage): no exit here.
1478 * src/header.c (ConvertEncodingByIconv): newly added.
1479 Thanks to Hiroto Sakai.
1481 * configure.ac, config.h.in: Checking to have iconv() for utf-8
1484 * configure.ac: Checking whether strrchr() is 8 bit clean or not.
1485 On Mac OS X, strchr() can handle 8 bit characters, but strrchr()
1487 Should use '\377' rather than '\xff' for de-ANSI compiler.
1489 2002-07-10 Koji Arai <jca02266@nifty.ne.jp>
1493 * configure.ac: updated version.
1495 * src/header.c: change hex codes '\xff' to octal codes '\377'.
1497 * tests/lha-test.in: Skip the lha-test9. (this test is imcomplete
1500 * tests/lha-test10: Should extract directory even if the archive
1503 * src/header.c (get_header): Should convert kanji code and path
1504 separator for the level 0 header entry.
1505 Should convert `\' to `/' for level 0 header (do always to make sure,
1506 SO CANNOT CONTAIN THE `\' IN FILENAME).
1507 (init_header): [BUG]: Should not convert path separator here (Should do
1509 (write_header): [BUG]: should set pathname (contains directory part) to
1510 the LzHeader.name field on level 0 header archive even if the
1511 archive methods is -lhd-.
1513 2002-07-09 Koji Arai <jca02266@nifty.ne.jp>
1515 * src/lha.h, src/header.c: the CoreFoundation header inclusion
1518 * src/lha.h, src/lharc.c, IFNAMES: macro NODIRECTORY was removed.
1520 * src/lha.h, src/lhadd.c, src/lharc.c, src/lhext.c: fixed
1521 misspelling, not `writting' but `writing'.
1523 2002-07-07 Koji Arai <jca02266@nifty.ne.jp>
1525 * src/lha.h, src/lha_macro.h: refined.
1527 * src/lhadd.c (append_it): macro STRING_COMPARE() was discarded.
1529 * src/lha_macro.h: ditto.
1531 * IFNAMES: NOVOID was removed.
1533 * src/lharc.c (main): terminate with exit status 2 when specified
1534 command line switche is wrong,
1536 * configure.ac, config.h.in: added checking utime.h existent.
1538 * src/crcio.c (putc_euc): void returned.
1540 * src/header.c, src/lha.h, src/lha_macro.h, src/lhadd.c: refined.
1542 * src/lharc.c, src/prototypes.h, src/slide.c: refined.
1544 * configure.ac: should specify the 4th argument to AC_TRY_RUN()
1545 for cross compiling.
1547 * configure.ac: fix a test expression.
1549 * src/cproto.sh: added for maintainer.
1551 * src/lha.h: support de-ANSI variable arguments.
1553 * src/lharc.c: ditto.
1555 * src/util.c: ditto.
1557 * src/Makefile.am (lha_SOURCES): added prototypes.h.
1559 * src/lha.h: function prototypes moved to prototypes.h.
1561 * src/prototypes.h: generated by the cproto command.
1563 * configure.ac: On Mac OS X, in spite of using the CoreFoundation
1564 for utf-8 conversion, I have missed specifying the `-framework
1565 CoreFoundation' in LDFLAGS.
1567 * src/Makefile.am (EXTRA_DIST): no need to specify `lhdir.c'.
1569 2002-07-06 Koji Arai <jca02266@nifty.ne.jp>
1573 * configure.ac: updated version.
1575 * tests/lha-test10: added testing the header level 0, 1 and 2.
1577 * tests/lha-test.in: ditto.
1579 * src/lharc.c: `#include <stdarg.h>' moved to lha.h.
1583 * src/util.c: ditto.
1585 * configure.ac: AC_REPLACE_FUNCS(vsnprintf).
1587 * config.h.in: ditto.
1591 * src/vsnprintf.c: derived snprintf() which has the BSD licence.
1593 * configure.ac: fix typo.
1595 * configure.ac: checking whether strchr() is 8 bit clean or not.
1597 * config.h.in: ditto.
1599 * src/util.c: give functions strchr(), strrchr(), memchr() and
1600 memrchr() which handle 8 bit characters correctly.
1602 * src/header.c: use above if needed.
1604 * src/lha_macro.h: deprecate the macro name `DELIM2' which is path
1605 separattor for the filename in lha header.
1606 use LHA_PATHSEP instead.
1608 * src/util.c (convdelim): ditto.
1610 * src/header.c (convert_filename): ditto.
1611 (write_header): ditto.
1613 * src/header.c (convert_filename): fixed bug on utf8 conversion,
1616 2002-06-30 Koji Arai <jca02266@nifty.ne.jp>
1618 * configure.ac: fixed typo.
1620 * src/header.c (sjis_to_utf8): fixed typo.
1621 (utf8_to_sjis): fixed typo.
1623 * src/lhadd.c (cmd_add): Missed to adjust the index when specified
1624 adding file is same as the generating archive file.
1626 2002-06-29 Koji Arai <jca02266@nifty.ne.jp>
1628 * src/header.c (convert_filename): rename a function
1629 `filename_conv()' to `convert_filename()'.
1630 (sjis_to_utf8_static): no use the static variable.
1631 (utf8_to_sjis_static): ditto.
1633 * src/lha.h: rename sjis_to_utf8_static() and utf8_to_sjis_static()
1634 into sjis_to_utf8() and utf8_to_sjis().
1636 * src/lha_macro.h: added a macro `CODE_UTF8'.
1638 * configure.ac: decide CODE_UTF8.
1641 * 00readme.autoconf: modified.
1643 * configure.ac: modified for Mac OS X.
1645 * src/header.c, lha.h, lha_macro.h, lharc.c: Merged a patch for
1646 the Mac OS X, convert utf-8 filename to shift_jis. This patch was
1647 contributed on LHa BBS. Thanks to Hiroto Sakai.
1649 * src/lhext.c: replaced bcmp() with memcmp().
1651 * src/lha_macro.h: ditto.
1653 * src/append.c: replace bcopy() with memcpy() or memmove().
1655 * src/lha_macro.h: ditto.
1657 * src/lhadd.c: ditto.
1659 * src/lharc.c: ditto.
1661 * src/header.c: ditto.
1662 replace bzero() with memset().
1664 * src/lhadd.c (cmd_add): exlclude the target archive. (reported on
1667 * src/slide.c (encode_alloc): Wrong value was assigned to the
1668 `dicbit', when SUPPORT_LH7 was not defined. (fixed by DANGAN,
1669 reported on the LHa BBS [38]).
1671 * src/lha_macro.h: ditto.
1673 * src/shuf.c (decode_c_st0): the method of -lh3- extraction was
1674 fixed by DANGAN (reported on the LHa BBS [35]).
1676 * src/lha_macro.h (LH3_DICBIT): ditto.
1678 * src/dhuf.c (encode_c_dyn): the method of -lh1- compression was
1679 refined by DANGAN (reported on the LHa BBS [30], [39], [62]).
1681 2002-06-26 Koji Arai <jca02266@nifty.ne.jp>
1683 * tests/lha-test4: Skip a test for the LHa for UNIX (original version).
1685 * tests/lha-test3: Rewrite tests for generic format archives.
1687 * tests/lha-test2: Added tests for -lh0- method.
1688 Moved from contents of lha-test3 (tests for print archive).
1690 2002-06-23 Koji Arai <jca02266@nifty.ne.jp>
1692 * tests/lha-test.in: On Cygwin/MinGW, cannot test lha-test9.
1694 * src/lhext.c: Fixed a misspelling. not `Symblic' but `Symbolic'.
1695 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
1697 * src/lharc.c: ditto.
1699 * src/slide.c (interface;): Fixed wrong index.
1700 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
1702 * 00readme.autoconf: refined.
1704 * tests/lha-test9: added tests for overriding files.
1706 * tests/lha-test.in: added test9.
1708 * src/lhext.c (cmd_extract): ftell(stdin) will return -1, so
1709 re-fixed provisionaly.
1711 * src/lhext.c (cmd_extract): When error occurred in extract_one(),
1712 should adjust point of file stream.
1714 * configure.ac: library checkings (for libmingwex) should be done
1715 before header checkings.
1717 2002-06-22 Koji Arai <jca02266@nifty.ne.jp>
1721 * configure.ac: updated version.
1723 * src/lharc.c (init_variable): Removed useless assignments.
1725 * src/lharc.c (main): Behavior was changed. when `q' or `q2' option
1726 (not `q1') is specified, the `f' option is enabled implicitly.
1727 In original behavior, the option `q', `q0', `q1' and `q2' will
1728 enable `f' option implicitly (bug?).
1730 * src/lharc.c (main): [BUG]: When `q2' option is specified,
1731 level 2 header is generated.
1733 2002-06-21 Koji Arai <jca02266@nifty.ne.jp>
1735 * tests/Makefile.am: Use the `DISTCLEANFILES' variable instead of the `dist-hook' target.
1737 * tests/Makefile.am: Added `dist-hook' target for `make distcheck'.
1739 * tests/lha-test.in: All tests are splited into some files.
1741 * tests/Makefile.am: ditto.
1743 * tests/lha-test2: ditto.
1745 * tests/lha-test3: ditto.
1747 * tests/lha-test4: ditto.
1749 * tests/lha-test5: ditto.
1751 * tests/lha-test6: ditto.
1753 * tests/lha-test7: ditto.
1755 * tests/lha-test8: ditto.
1757 2002-06-20 Koji Arai <jca02266@nifty.ne.jp>
1759 * src/lhadd.c (cmd_add): No create an intermediate file when archive
1760 is written in stdout.
1762 2002-06-19 Koji Arai <jca02266@nifty.ne.jp>
1764 * 00readme.autoconf: Modified.
1766 2002-06-18 Koji Arai <jca02266@nifty.ne.jp>
1768 * configure.in: Removed. (no support the Autoconf version 2.13).
1770 * config.h.in: Changed meaning of the value of the `MULTIBYTE_FILENAME'.
1772 * src/header.c: Remove preprocess codes for kanji code decision.
1774 * configure.ac: When --enable-multibyte-filename[=auto] is specified,
1775 decide kanji code for filename automatically.
1776 Otherwise, euc or sjis is specified, it is EUC-JP or Shift_JIS.
1778 2002-06-17 Koji Arai <jca02266@nifty.ne.jp>
1780 * configure.in, configure.ac: updated version.
1782 * configure.in, configure.ac: On mingw-runtime-2.0-1, opendir()
1783 has moved to libmingwex.a. For now, not listed in the
1784 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs file.
1786 * src/lharc.c (message): use variable argument list with stdarg.
1789 (write_error): removed.
1790 (read_error): removed.
1791 (build_temporary_name): use xsnprintf().
1792 (open_old_archive): ditto.
1793 (expanded_archive_name): move in the function (open_old_archive()) as static.
1795 * src/crcio.c (putcode): changed for fatal_error().
1796 (putbits): changed for fatal_error().
1797 (fwrite_crc): ditto.
1798 (putc_euc): should return EOF when putc() cause error.
1799 (fwrite_txt): changed for putc_euc().
1801 * src/header.c (get_header): changed for fatal_error(), warning() and error().
1802 (init_header): use xsnprintf().
1803 (write_header): fixed wrong usage of fwrite().
1805 * src/lha.h: updated declarations.
1807 * src/lhadd.c (append_it): changed for error().
1809 * src/lhext.c (inquire_extract): ditto.
1811 * src/lhlist.c (cmd_list): ditto.
1813 * src/maketbl.c (make_table): ditto.
1815 * src/util.c (copyfile): changed for fatal_error().
1816 (xsnprintf): newly added to adopt to various snprintf().
1818 2002-06-12 Koji Arai <jca02266@nifty.ne.jp>
1820 * src/lha_macro.h (UNIX_STICKYBIT): fixed a misspelling.
1822 * src/lhlist.c (list_one): ditto.
1824 2002-06-11 Koji Arai <jca02266@nifty.ne.jp>
1826 * src/lharc.c: index was wrong.
1827 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
1829 2002-06-06 Koji Arai <jca02266@nifty.ne.jp>
1831 * configure.ac, configure.in: changed macro name.
1832 not multibyte-char but multibyte-filename.
1833 not MULTIBYTE_CHAR but MULTIBYTE_FILENAME.
1835 * 00readme.autoconf: ditto.
1837 * config.h.in: ditto.
1839 * src/util.c: ditto.
1841 * src/lha_macro.h: ditto.
1843 * src/header.c: ditto.
1845 * config.h.in (INCLUDE_OWNER_NAME_IN_HEADER): changed macro name.
1847 * configure.ac: ditto.
1849 * src/header.c (init_header): ditto.
1851 * src/header.c (init_header): should clear LzHeader.
1853 2002-06-05 Koji Arai <jca02266@nifty.ne.jp>
1857 * configure.ac (AC_INIT): changed package name and specified tar name.
1859 * src/lharc.c: added `--help' command line switch.
1861 * Makefile.am: fixed EXTRA_DIST for 00readme.autoconf renaming.
1863 * README.autoconf, 00readme.autoconf: renamed.
1865 * configure.ac, configure.in: updated version.
1867 2002-06-04 Koji Arai <jca02266@nifty.ne.jp>
1869 * README.autoconf, header.doc.euc: describe about user/group name
1872 * src/header.c (init_header): added a macro MAKE_USER_NAME_HEADER.
1874 * configure.ac, configure.in, config.h.in: added a switch
1875 `--enable-user-name-header' whether user/name extended header is
1878 2002-06-01 Koji Arai <jca02266@nifty.ne.jp>
1880 * README.autoconf: `-i' switch of automake is deprecated.
1882 2002-05-29 Koji Arai <jca02266@nifty.ne.jp>
1884 * configure.in, configure.ac, config.h.in: checks having uid_t/gid_t.
1886 * src/lha.h: define uid_t/gid_t as `int' if no have it.
1888 * src/lhext.c (adjust_info): mismatched braces.
1890 * header.doc.euc: around user/group name extention.
1892 * configure.in, configure.ac, config.h.in: checks having
1893 getpwuid/getgrgid and so on.
1895 * src/header.c (get_header): use the extend header, user/group name.
1896 (init_header): ditto.
1898 * src/lha.h: added <pwd.h>, <grp.h> header includings.
1900 * src/lhext.c (adjust_info): change owner/group according to
1901 user/group name when extracting.
1903 * src/lhlist.c (list_one): print user/group name when the header
1905 (list_one): correct column position on OS68K.
1907 * tests/lha-test.in: added timestamp checks.
1909 * src/lha_macro.h: comment about OS code.
1911 2002-05-28 Koji Arai <jca02266@nifty.ne.jp>
1913 * src/lharc.c (xstrdup): no need to call fatal_error().
1915 * src/lhdir.h, src/lha_macro.h, src/lha.h: added modeline for vi(m).
1917 * configure.ac, config.h.in: use new autoconf macro, AC_CHECK_MEMBERS().
1919 * IFNAMES, configure.in, src/header.c, src/lharc.c: replaced with
1920 new macro name to adopt to the AC_CHECK_MEMBERS().
1922 2002-05-27 Koji Arai <jca02266@nifty.ne.jp>
1924 * tests/lha-test.in: use awk instead of GNU sh-utils's `seq'.
1926 * src/header.c (filename_conv): fix a bug, reverse condition and
1927 conversion for filename case.
1929 * README.autoconf: added description about `get_filename_from_stdin' feature.
1931 * tests/lha-test.in: remove test around the `get_filename_from_stdin'.
1933 * src/lharc.c (main): never set `get_filename_from_stdin` to true.
1934 `echo foo | lha x foo.lzh' does not work like original LHa for UNIX.
1936 * tests/lha-test.in: replace with #!/bin/bash.
1938 * README.autoconf: added E-Mail address.
1940 * configure.ac: updated version and added mail address for bug reports.
1942 * configure.in: updated version.
1946 * README.autoconf: added `make check' on sample description.
1948 * configure.in, configure.ac: update version.
1950 2002-05-26 Koji Arai <jca02266@nifty.ne.jp>
1952 * tests/lha-test.in: added some tests.
1954 * tests/Makefile.am: refined.
1956 * src/lhext.c (cmd_extract): discard useless fseek() calling (for MinGW).
1958 * tests/lha-test.in: added some tests.
1960 * tests/lha-test.in: specified `q' option on print archive test.
1962 * src/lhadd.c (build_backup_file): On MinGW, cannot rename when
1963 a new file already exists.
1965 * src/lhext.c (extract_one): On MinGW, set binary on stdout when
1966 print archive (`p' switch).
1968 * tests/lha-test.in: added some tests.
1970 * src/lhadd.c (report_archive_name_if_different): warning messages
1971 should be printed to stderr rather than stdout.
1972 (cmd_delete): ditto.
1974 * tests/Makefile.am: fix EXTRA_DIST.
1976 * configure.in, configure.ac: update version.
1978 * tests/lha-test.in: added tests.
1980 * tests/Makefile.am: ditto.
1982 * configure.in, configure.ac, Makefile.am: ditto.
1984 2002-05-25 Koji Arai <jca02266@nifty.ne.jp>
1990 * README.autoconf: added description for developpers.
1992 * configure.in, configure.ac, config.h.in: refined.
1994 * src/util.c (memmove): use HAVE_MEMMOVE.
1995 (mkdir): use HAVE_WORKING_FORK.
1997 * src/huf.c: use HAVE_SYS_PARAM_H instead of sony_news.
1999 * IFNAMES (sony_news): updated.
2001 * configure.ac, configure.in (AC_INIT): added autoconfiscated date.
2002 see `lha --version'.
2004 2002-05-22 Koji Arai <jca02266@nifty.ne.jp>
2006 * 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:
2007 added modeline for vi(m).
2009 * src/lharc.c: backslash was missing.
2011 2002-05-20 Koji Arai <jca02266@nifty.ne.jp>
2013 * src/lharc.c (open_old_archive): On MinGW, set binary stdin.
2015 * src/lhadd.c (temporary_to_new_archive_file): On MinGW, set binary stdout.
2017 * src/lha_macro.h: no define TMP_FILENAME_TEMPLATE in source.
2019 * configure.ac, configure.in, README.autoconf: be able to specify
2020 --with-tmp-file=no which meaning TMP_FILENAME_TEMPLATE is undefined.
2022 * src/lha.h: correct usage of mkstemp().
2023 On MinGW, opening file cannot be removed.
2025 * src/lhadd.c (build_temporary_file): ditto.
2027 * src/lharc.c (fatal_error): ditto.
2029 2002-05-19 Koji Arai <jca02266@nifty.ne.jp>
2031 * configure.in, configure.ac: added AM_C_PROTOTYPES, AC_C_CONST.
2032 no use AM_C_PROTOTYPES for the present.
2034 * config.h.in: ditto.
2036 * src/lharc.c (print_tiny_usage_and_exit): change credit.
2038 * src/lha_macro.h: put PLATFORM in a macro LHA_VERSION.
2040 * src/lharc.c (print_version): ditto.
2042 * configure.ac: use AC_CANONICAL_TARGET instead of AC_CANONICAL_HOST.
2044 2002-05-19 Koji Arai <jca02266@nifty.ne.jp>
2048 * src/lharc.c (print_tiny_usage_and_exit): added credit.
2049 (print_version): print PLATFORM.
2051 * configure.ac, configure.in, config.h.in: define PLATFORM.
2053 * src/lharc.c (xstrdup): fix typo.
2055 * configure.ac: added for autoconf-2.53.
2057 * config.h.in: regenerate by autoconf-2.53.
2059 * src/lharc.c (find_files): MinGW has st_ino but always 0.
2061 * src/lharc.c (main): provisionally fix. set
2062 `get_filename_from_stdin' to false.
2064 * src/util.c (rename): use builtin rename(2) on mingw32 (since have
2067 * src/lharc.c (main): use xrealloc().
2069 * src/lha_macro.h: specify "b" modifier always (for mingw32).
2071 * src/lharc.c: use xstrdup() instead of strdup().
2073 * src/lha_macro.h: ditto.
2075 * src/lha_macro.h: getuid(), chown(), kill() are provisionally
2078 * src/header.c: set `default_system_kanji_code' to Shift_JIS on mingw32.
2080 * src/lhadd.c (build_temporary_file): no use SIGHUP for mingw32.
2081 (build_backup_file): ditto.
2083 * src/lharc.c (interrupt): ditto.
2085 * src/lhext.c (extract_one): ditto.
2087 * src/lhext.c (make_parent_path): mkdir() has no 2nd argument on
2090 2002-05-18 Koji Arai <jca02266@nifty.ne.jp>
2092 * lha_macro.h: define bcmp(), bzero(), bcopy() even if
2093 STDC_HEADERS is defined.
2095 * huf.c (alloc_buf): call fatal_error() when memory allocation failed
2096 instead of returning NULL.
2098 * lharc.c (main): use xmalloc().
2100 * util.c (copyfile): use xmalloc().
2102 * slide.c (encode_alloc): use xmalloc().
2104 * header.c (default_system_kanji_code): On HP-UX, use Shift_JIS as
2107 2001-02-03 Koji Arai <jca02266@nifty.ne.jp>
2109 * README.autoconf, src/header.c: treat archive and system kanji
2112 2001-01-31 Koji Arai <jca02266@nifty.ne.jp>
2114 * configure.in: mistakes for default archive method.
2116 * src/header.c: directory separator 0xff must be transpose slash
2119 2001-01-29 Koji Arai <jca02266@nifty.ne.jp>
2121 * src/lharc.c: replace MKSTEMP with HAVE_MKSTEMP.
2122 substitute DEFAULT_LZHUFF_METHOD for the `compress_method' variable (it's default value).
2124 * src/lha_macro.h: use the VERSION macro (defined by configure) for
2125 the LHA_VERSION definition.
2127 * src/header.c: added condition whether the macro MULTIBYTE_CHAR
2130 * src/Makefile.am: added $(SUPPORT_LZHUFF_METHOD) in AM_CPPFLAGS.
2132 * configure.in: change version number from 1.14f to 1.14i.
2133 check function mkstemp().
2134 replace --enable-lh6 option to --with-default-method=[567].
2136 * config.h.in: added definitions of HAVE_MKSTEMP and
2137 DEFAULT_LZHUFF_METHOD.
2139 * IFNAMES: added a description about MKSTEMP.
2141 * Makefile.am: added extra files.
2143 * 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:
2144 merged changing from lha-1.14f to lha-1.14i.
2146 * change-114i.txt, src/header.c, src/huf.c, src/lha.h, src/lharc.c:
2149 * src/huf.c, src/lharc.c, src/shuf.c, src/slide.c: import lha-114h
2151 * Makefile, README.euc, change-114g.txt, change-114h.txt:
2154 * 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:
2157 * 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:
2160 * src/header.c, src/lha_macro.h: implemented kanji code conversion
2163 * src/header.c: fix bug in euc2sjis().
2165 1999-10-05 Koji Arai <jca02266@nifty.ne.jp>
2167 * src/header.c: rename the macro HANKAKU_KATAKANA_P to the X0201_KANA_P
2169 1999-09-30 Koji Arai <jca02266@nifty.ne.jp>
2171 * 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:
2172 use the autoconf/automake
2174 1999-08-28 Koji Arai <jca02266@nifty.ne.jp>
2176 * Makefile: import the lha-114f
2178 * change-114f.txt, config.jpn.euc, header.doc.euc: import the lha-114f
2180 * CHANGES.euc, MACHINES.euc, PROBLEMS.euc, README.euc, change-114e.txt, config.eng:
2183 * MACHINES2.euc, man/Makefile, man/lha.man, man/lha.n:
2186 * src/append.c, src/crcio.c: import the lha-114f
2188 * 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:
2191 * src/dhuf.c, src/extract.c, src/header.c, src/huf.c, src/larc.c, src/lhadd.c:
2195 eval: (if (string= (user-login-name) "arai") (setq user-mail-address "arai@users.sourceforge.jp"))