12006-10-16 Koji Arai <arai@users.sourceforge.jp> 2 3 * released. 4 52006-10-11 Koji Arai <arai@users.sourceforge.jp> 6 7 * configure.ac: updated version and my mail address. 8 92006-10-09 Koji Arai <arai@users.sourceforge.jp> 10 11 * src/lha_macro.h (MIN): newly added a macro for below. 12 13 * maketbl.c (make_table): applied the security patch for the 14 CVE-2006-4335 and CVE-2006-4337. 15 16 * huf.c (read_pt_len, read_c_len, decode_c_st1, decode_p_st1): 17 applied the security patch for the CVE-2006-4338. 18 192005-09-24 Koji Arai <jca02266@nifty.com> 20 21 * released. 22 23 * configure.ac: updated version and my mail address. 24 25 * Hacking_of_LHa: updated. (2003-02-23 edition) 26 27 * 00readme.autoconf: updated. 28 292005-06-08 Koji Arai <jca02266@nifty.ne.jp> 30 31 * configure.ac: updated version. 32 33 * src/lharc.c (parse_suboption): fixed a bug, when the 34 --system-kanji-code option specified, the --archive-kanji-code 35 option was infected. 36 372005-05-08 Koji Arai <jca02266@nifty.ne.jp> 38 39 * configure.ac: updated version. 40 41 * src/lharc.c (print_usage): updated. 42 43 * src/lhadd.c, src/header.c (remove_leading_dots): move to 44 header.c for readlink(). 45 46 * src/lhadd.c (add_one): symbolic link indication was contrary. 47 ( not "realname -> linkname" but "linkname -> realname" ) 48 (delete): ditto. 49 50 * src/lhext.c (extract_one): ditto. 51 52 * src/lhlist.c (list_one): ditto. 53 54 * tests/lha-test14: ditto. 55 56 * src/lhadd.c (remove_leading_dots): newly added. 57 58 * src/lhadd.c (append_it): remove leading relative path from 59 archive. 60 61 * src/lhext.c (is_directory_traversal): should return true when 62 just ".." was found. 63 642004-10-02 Koji Arai <jca02266@nifty.ne.jp> 65 66 * src/lharc.c (print_tiny_usage): added long option helps. 67 68 * src/prototypes.h: updated. 69 70 * src/lharc.c: should accept a single option --help and --version. 71 722004-09-29 Koji Arai <jca02266@nifty.ne.jp> 73 74 * src/lharc.c (parse_option, parse_suboption): use getopt_long(). 75 76 * src/Makefile.am: added getopt_long.c and getopt_long.h. 77 78 * src/getopt_long.c, src/getopt_long.h: newly added. 79 802004-09-29 Koji Arai <jca02266@nifty.ne.jp> 81 82 * released. 83 84 * 00readme.autoconf: note for builds on MS-Windows. 85 86 * configure.ac: updated version. 87 88 * Makefile.am: added Hacking_of_LHa in EXTRA_DIST. 89 90 * Hacking_of_LHa: renamed (typo). 91 922004-09-27 Koji Arai <jca02266@nifty.ne.jp> 93 94 * configure.ac: updated version. 95 96 * src/prototypes.h (str_safe_copy): newly added. 97 (build_standard_archive_name, build_backup_file): 98 added argument the size for build_standard_archive_name() and 99 build_backup_file(). 100 101 * src/header.c (init_header): use str_safe_copy() instead of strcpy(). 102 103 * src/lhadd.c (build_backup_file, cmd_add, cmd_delete): 104 added argument the size for build_standard_archive_name() and 105 build_backup_file(). 106 107 * src/lhext.c (make_parent_path): use str_safe_copy() instead of strcpy(). 108 (extract_one): ditto. 109 110 * src/lharc.c (find_files): use str_safe_copy() instead of strcpy(). 111 (build_temporary_name): ditto. 112 (modify_filename_extention): ditto. 113 (build_backup_name): ditto. 114 (build_standard_archive_name): ditto. 115 116 * src/util.c (str_safe_copy): newly added. 117 1182004-09-26 Koji Arai <jca02266@nifty.ne.jp> 119 120 * src/header.c: fixed typo. 121 1222004-09-18 Koji Arai <jca02266@nifty.ne.jp> 123 124 * configure.ac: updated version. 125 126 * 00readme.autoconf: added a description about 127 `--extract-broken-archive' option. 128 129 * src/lharc.c (init_variable, parse_option): added an option 130 `--extract-broken-archive' to extract broken archive. 131 132 * src/lha.h (extract_broken_archive): ditto. 133 134 * src/slide.c (encode, decode): fixed a *FATAL* bug which make a 135 broken archive. 136 1372004-05-08 Koji Arai <jca02266@nifty.ne.jp> 138 139 * configure.ac: updated version. 140 141 * src/prototypes.h: updated. 142 143 * src/lhext.c (extract_one, is_directory_traversal): applied a 144 security patch (CAN-2004-0235: directory traversal problems) 145 146 * src/lharc.c (print_usage): updated. 147 1482003-12-18 Koji Arai <jca02266@nifty.ne.jp> 149 150 * src/header.c (wintime_to_unix_stamp): no use 64bit constant to 151 avoid the warning `integer constant is too large for "long" type' 152 on GCC. however, for portability, no use the unsigned long long 153 suffix "ULL". 154 1552003-12-13 Koji Arai <jca02266@nifty.ne.jp> 156 157 * configure.ac: updated version. 158 159 * src/lhext.c (extract_one, cmd_extract): preserve directory 160 timestamp. Thanks Akihiro Iriyama. 161 162 * src/lhext.c (add_dirinfo, adjust_dirinfo): newly added. 163 1642003-09-28 Koji Arai <jca02266@nifty.ne.jp> 165 166 * Makefile.am (SUBDIRS): reordered to avoid useless re-compilation. 167 1682003-09-21 Koji Arai <jca02266@nifty.ne.jp> 169 170 * released. 171 172 * configure.ac: updated version. 173 1742003-08-18 Koji Arai <jca02266@nifty.ne.jp> 175 176 * 00readme.autoconf: fixed. 177 178 * configure.ac: use AC_SYS_LARGEFILE for largefile support. 179 180 * config.h.in: ditto. 181 182 * src/prototypes.h: updated. 183 1842003-07-29 Koji Arai <jca02266@nifty.ne.jp> 185 186 * tests/Makefile.am (EXTRA_DIST): lha-test1 was missed. 187 188 * tests/lha-test13: should set LANG=C for `tr'. 189 1902003-07-28 Koji Arai <jca02266@nifty.ne.jp> 191 192 * tests/lha-test.in: filename should be contained in last error 193 information. 194 1952003-07-27 Koji Arai <jca02266@nifty.ne.jp> 196 197 * tests/lha-test2: no need to set $FILENAME. 198 * tests/lha-test3: ditto. 199 * tests/lha-test4: ditto. 200 * tests/lha-test5: ditto. 201 * tests/lha-test6: ditto. 202 * tests/lha-test7: ditto. 203 * tests/lha-test8: ditto. 204 * tests/lha-test9: ditto. 205 * tests/lha-test10: ditto. 206 * tests/lha-test11: ditto. 207 * tests/lha-test12: ditto. 208 * tests/lha-test13: ditto. 209 * tests/lha-test14: ditto. 210 * tests/lha-test15: ditto. 211 212 * tests/lha-test1: newly added. 213 214 * tests/lha-test.in: improved. 215 216 * src/prototypes.h: updated. 217 218 * src/lha.h (exit): defined as lha_exit(). 219 220 * src/lharc.c (init_variable): discard a variable 221 `remove_temporary_at_error'. 222 (fatal_error): ditto. 223 (cleanup): newly added. 224 (interrupt): call cleanup(). 225 (lha_exit): newly added; cleanup temporary files always. 226 227 * src/lhadd.c (add_one): discard a variable 228 `remove_temporary_at_error'. 229 230 * src/indicator.c (start_indicator): refined. 231 232 * src/lharc.c (parse_option): fixed typo. 233 234 * src/indicator.c (carriage_return): newly added; print CR on tty only. 235 (start_indicator): call above. 236 (finish_indicator): ditto. 237 (finish_indicator2): ditto. 238 239 * src/lharc.c (print_usage): newly added. 240 (parse_option): strictly checking command line arguments. 241 (main): ditto. 242 2432003-07-26 Koji Arai <jca02266@nifty.ne.jp> 244 245 * tests/lha-test13: use `tr' instead of `printf` for printing 8 bit 246 characters. 247 2482003-07-25 Koji Arai <jca02266@nifty.ne.jp> 249 250 * tests/lha-test14: `test -e' is unavailable on some systems. 251 2522003-07-22 Koji Arai <jca02266@nifty.ne.jp> 253 254 * tests/lha-test.in: should exit with status in trap. 255 256 * src/shuf.c (decode_start_st0): wrong value was assigned. 257 258 * src/lha.h: discard `prof' variable. 259 260 * src/lharc.c (init_variable): discard `prof' variable. 261 (parse_option): discard undocumented `p' option. 262 (main): ditto. 263 264 * src/append.c (encode_lzhuf): hate global variable. 265 266 * src/extract.c (decode_lzhuf): ditto. 267 268 * src/lha.h: ditto. 269 2702003-07-21 Koji Arai <jca02266@nifty.ne.jp> 271 272 * configure.ac: updated version. 273 274 * 00readme.autoconf: described largefiles. 275 276 * src/header.c (get_header): avoid valgrind warning, `Source and 277 destination overlap in strncpy()'. 278 279 * src/lharc.c (find_files): refined. 280 281 * tests/lha-test.in: should exit in trap. 282 283 * src/lharc.c (find_files): uninitialized variable was caught by 284 Valgrind. 285 286 * src/prototypes.h: updated. 287 288 * src/append.c (encode_lzhuf): set actual copied size. 289 290 * src/util.c (encode_stored_crc): use size_t instead of long. 291 292 * src/lhadd.c (temporary_to_new_archive_file): ditto. 293 (cmd_add): ditto. 294 (cmd_delete): ditto. 295 296 * src/lhadd.c (add_one): fixed a comment. 297 298 * src/indicator.c (MAX_INDICATOR_COUNT): changed to fit for the 80 299 column screen. 300 301 * src/extract.c (decode_lzhuf): refined. 302 303 * src/prototypes.h: updated. 304 305 * src/cproto.sh: added `indicator.c'. 306 307 * src/Makefile.am: ditto. 308 309 * src/indicator.c: separated from append.c. 310 311 * src/append.c: ditto. 312 313 * src/lha.h: ditto. 314 315 * src/lha_macro.h: ditto. 316 3172003-07-20 Koji Arai <jca02266@nifty.ne.jp> 318 319 * configure.ac: updated version. 320 321 * src/Makefile.am (EXTRA_DIST): fnmatch.h was missed. 322 323 * src/lha.h (fseeko, ftello): these macros had no effect. 324 3252003-07-19 Koji Arai <jca02266@nifty.ne.jp> 326 327 * src/maketree.c (make_len): discard debug print. 328 329 * configure.ac: updated version. 330 331 * src/prototypes.h: updated. 332 333 * config.h.in: updated. 334 335 * configure.ac: check declaration of `basename'. 336 337 * src/cproto.sh: ditto. 338 339 * src/util.c (encode_stored_crc): use size_t. 340 341 * src/lha.h (struct LzHeader): use size_t for the members 342 `packed_size' and `original_size'. 343 3442003-07-13 Koji Arai <jca02266@nifty.ne.jp> 345 346 * configure.ac: updated version. 347 348 * src/prototypes.h: updated. 349 350 * src/append.c (encode_lzhuf): use size_t and off_t instead of long. 351 (start_indicator): ditto. 352 353 * src/extract.c (decode_lzhuf): ditto. 354 355 * src/lha.h (struct interfacing): ditto. 356 357 * src/lhadd.c (add_one): ditto. 358 (find_update_files): ditto. 359 (delete): ditto. 360 361 * src/lhext.c (cmd_extract): ditto. 362 363 * src/util.c (copyfile): ditto. 364 365 * src/lhlist.c (print_size): use "%7lu" format string instead of 366 "%7ld" for large files. 367 368 * src/slide.c: refined. 369 3702003-07-11 Koji Arai <jca02266@nifty.ne.jp> 371 372 * src/lharc.c (cleaning_files): should print errno. 373 3742003-05-23 Koji Arai <jca02266@nifty.ne.jp> 375 376 * configure.ac: use fseeko(), ftello() instead of fseek(), ftell(). 377 378 * config.h.in: ditto. 379 380 * src/lha.h, src/lhlist.c, src/lhext.c, src/lharc.c: ditto. 381 382 * src/lhadd.c, src/header.c: ditto. 383 3842003-05-10 Koji Arai <jca02266@nifty.ne.jp> 385 386 * configure.ac: updated version. 387 388 * src/lhext.c (inquire_extract): warning if stdin is not tty, 389 because you cannot reply from stdin. 390 (extract_one): return actual read size from archive. 391 (cmd_extract): fix a bug: skip correct size when error occurred. 392 393 * tests/lha-test5: added tests for above. 394 395 * src/lha.h (struct interfacing): added a member `read_size'. 396 397 * src/extract.c (decode_lzhuf): added an argument `pointer of 398 read_size'. 399 400 * src/prototypes.h: ditto. 401 402 * src/slide.c (decode): set actual read size to interface->read_size. 403 4042003-04-14 Koji Arai <jca02266@nifty.ne.jp> 405 406 * src/cproto.sh: The cproto 4.7a supports some gcc-specific keywords. 407 4082003-03-24 Koji Arai <jca02266@nifty.ne.jp> 409 410 * configure.ac: updated version. 411 412 * src/prototypes.h: updated. 413 4142003-03-23 Koji Arai <jca02266@nifty.ne.jp> 415 416 * src/header.c (convert_filename): support Samba CAP code (experimental). 417 (hex2int, int2hex, cap_to_sjis, sjis_to_cap): added for above. 418 419 * src/lha_macro.h (CODE_CAP): ditto. 420 421 * src/lharc.c (parse_option): added new command line options, 422 --system-kanji-code=xxx and --archive-kanji-code=xxx (experimental). 423 424 * 00readme.autoconf: described above features. 425 4262003-03-22 Koji Arai <jca02266@nifty.ne.jp> 427 428 * src/lharc.c (init_variable): do not use HEADER_LEVELx macros. 429 (parse_option): ditto. 430 431 * src/header.c (write_header): ditto. 432 433 * src/lha_macro.h (HEADER_LEVEL0, HEADER_LEVEL1, HEADER_LEVEL2, MATCHBIT): ditto. 434 435 * src/huf.c (encode_start_st1): do not use assert(). 436 (decode_start_st1): ditto. 437 4382003-03-12 Koji Arai <jca02266@nifty.ne.jp> 439 440 * src/header.c (wintime_to_unix_stamp): should cast to unsigned type. 441 4422003-03-03 Koji Arai <jca02266@nifty.ne.jp> 443 444 * src/prototypes.h: updated. 445 446 * src/cproto.sh: improved. 447 4482003-02-24 Koji Arai <jca02266@nifty.ne.jp> 449 450 * src/prototypes.h: updated. 451 452 * src/maketree.c: hate global variables. 453 454 * src/lha_macro.h: refined. 455 456 * src/huf.c: refined. 457 458 * src/util.c (strdup): defined more properly. 459 (memset): ditto. 460 461 * prototypes.h: ditto. 462 463 * cproto.sh: ditto. 464 4652003-02-23 Koji Arai <jca02266@nifty.ne.jp> 466 467 * src/cproto.sh: improved. 468 469 * src/prototypes.h: updated. 470 471 * src/util.c: `strucmp()' was replaced by `strcasecmp()'. 472 473 * src/util.c (archive_is_msdos_sfx1): ditto. 474 475 * src/lharc.c (open_old_archive): ditto. 476 477 * src/lha.h: ditto. 478 479 * src/util.c: discard `rename()', `mkdir()' and `rmdir()'. 480 481 * configure.ac: ditto. 482 483 * config.h.in: ditto. 484 485 * src/header.c: added credit. 486 no longer use `ftime()', `tzset()', `localtime()' and `gettimeofday()'. 487 4882003-02-17 Koji Arai <jca02266@nifty.ne.jp> 489 490 * configure.ac: updated version. 491 492 * src/fnmatch.h: no need to include <sys/cdefs.h>. it does not 493 exist on MinGW. 494 4952003-02-14 Koji Arai <jca02266@nifty.ne.jp> 496 497 * src/lharc.c (find_files): `goto' requires expression after label. 498 499 * src/lhadd.c (cmd_add): ditto. 500 5012003-02-05 Koji Arai <jca02266@nifty.ne.jp> 502 503 * tests/lha-test7: sleep 1 to make sure for updating tests. 504 505 * src/fnmatch.c, src/fnmatch.h: added fnmatch.c derived from the 506 OpenBSD. 507 5082003-02-04 Koji Arai <jca02266@nifty.ne.jp> 509 510 * configure.ac: need to call `AC_CANONICAL_HOST' for automake 511 1.6.x (for installing the config.guess and config.sub). 512 5132003-02-02 Koji Arai <jca02266@nifty.ne.jp> 514 515 * src/header.c, src/lharc.c: fix credit. 516 5172003-01-20 Koji Arai <jca02266@nifty.ne.jp> 518 519 * src/lha.h (prev_char): discard unused variable `prev_char'. 520 521 * src/crcio.c (fwrite_txt): ditto. 522 523 * src/slide.c (decode): ditto. 524 525 * src/slide.c: refined a little. 526 5272003-01-19 Koji Arai <jca02266@nifty.ne.jp> 528 529 * src/slide.c: took off the debug flag. 530 531 * src/slide.c (search_dict): split into 2 parts. 532 533 * src/slide.c: refined: use the structure `matchdata'. 534 5352003-01-18 Koji Arai <jca02266@nifty.ne.jp> 536 537 * src/lha.h (decode_count): rename a global variable `count' to 538 `decode_count'. 539 540 * src/dhuf.c (decode_p_dyn): ditto. 541 542 * src/slide.c (decode): ditto and refined. 543 5442003-01-17 Koji Arai <jca02266@nifty.ne.jp> 545 546 * src/slide.c: refined ? 547 548 * src/slide.c (INIT_HASH, NEXT_HASH): newly defined to refine. 549 5502003-01-13 Koji Arai <jca02266@nifty.ne.jp> 551 552 * src/prototypes.h: updated. 553 554 * src/slide.c: refined. 555 5562002-12-31 Koji Arai <jca02266@nifty.ne.jp> 557 558 * src/lhext.c (adjust_info): On Cygwin, execute permission should 559 be set for .exe or .dll. 560 5612002-12-28 Koji Arai <jca02266@nifty.ne.jp> 562 563 * src/lha_macro.h (peekbits): newly added. 564 565 * src/huf.c (read_pt_len): use peekbits(). 566 (read_c_len): ditto. 567 (decode_c_st1): ditto. 568 (decode_p_st1): ditto. 569 570 * src/shuf.c (decode_c_st0): ditto. 571 (decode_p_st0): ditto. 572 5732002-12-23 Koji Arai <jca02266@nifty.ne.jp> 574 575 * configure.ac: added a configure option: --enable-ignore-dot-files. 576 577 * config.h.in: ditto. 578 579 * src/lharc.c (parse_option): added `-X' option to ignore dot files. 580 5812002-12-17 Koji Arai <jca02266@nifty.ne.jp> 582 583 * configure.ac: should check whether system has `ssize_t'. 584 585 * config.h.in: ditto. 586 587 * lha.h: ditto. 588 589 * configure.ac: added checking functions `fnmatch' and `basename'. 590 but not yet prepare the free fnmatch.c. 591 592 * config.h.in: ditto. 593 594 * src/util.c (basename): newly added. 595 596 * src/lhadd.c (cmd_add): exclude files specified by -x option. 597 598 * src/lharc.c (print_tiny_usage): refined. 599 6002002-12-16 Koji Arai <jca02266@nifty.ne.jp> 601 602 * 00readme.autoconf: describe about new feature `-x'. 603 604 * src/lha.h: include fnmatch.h. 605 added a global variable `exclude_files'. 606 607 * src/lharc.c (init_variable): initialize `exclude_files'. 608 (print_tiny_usage): modify usage. 609 (parse_option): newly added. should regard leading `-' argument as 610 option (for new -x option). 611 added `-x <pattern>' option (specify exclude files pattern). 612 (find_files): files matched by pattern `exclude_files' exclude 613 from target files. 614 6152002-11-25 Koji Arai <jca02266@nifty.ne.jp> 616 617 * src/header.c: use size_t for header_size. 618 (skip_msdos_sfx1_code): rename to `seek_lha_header()'. 619 620 * src/lha.h: use size_t for header_size. 621 622 * src/lhadd.c (cmd_add): rename `skip_msdos_sfx1_code()' to 623 `seek_lha_header()'. 624 (cmd_delete): ditto. 625 626 * src/lhext.c (cmd_extract): ditto. 627 628 * src/lhlist.c (cmd_list): ditto. 629 630 * src/prototypes.h: updated. 631 632 * tests/lha-test15: added tests to search any level headers. 633 6342002-11-17 Koji Arai <jca02266@nifty.ne.jp> 635 636 * untabify all sources. 637 638 * src/huf.c (encode_start_st1): refined. 639 (decode_start_st1): refined. 640 641 * src/slide.c (encode_alloc): refined. 642 (update): refined. 643 6442002-11-15 Koji Arai <jca02266@nifty.ne.jp> 645 646 * 00readme.autoconf: updated. 647 648 * src/prototypes.h: updated. 649 650 * configure.ac, Makefile.am, olddoc/Makefile.am: 651 old documentations moved to olddoc directory. 652 653 * 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. 654 655 * Makefile.in.org, src/Makefile.in.org: removed. 656 657 * configure.ac: updated version (source maintenance start on 658 sourceforge.jp) 659 6602002-11-11 Koji Arai <jca02266@nifty.ne.jp> 661 662 * src/lhext.c (make_parent_path): On Cygwin, when `foo.exe' 663 exists, stat("foo", &buf) is successful and it is not a directory. 664 665 * src/util.c (skip_msdos_sfx1_code): move to header.c 666 667 * src/header.c (skip_msdos_sfx1_code): ditto. 668 some macro moved from lha_macro.h. 669 670 * src/lha_macro.h: ditto. 671 672 * tests/lha-test15: newly added for testing self extracting archive. 673 674 * tests/lha-test.in: ditto. 675 676 * tests/Makefile.am: ditto. 677 678 * configure.ac: refined messages. 679 6802002-10-26 Koji Arai <jca02266@nifty.ne.jp> 681 682 * src/bitio.c (putbits): use the function putcode(). 683 684 * src/dhuf.c (decode_start_dyn): call init_code_cache(). 685 686 * src/huf.c (encode_start_st1): ditto. 687 (decode_start_st1): ditto. 688 689 * src/larc.c (decode_start_lzs): ditto. 690 691 * src/shuf.c (decode_start_st0): ditto. 692 (encode_start_fix): ditto. 693 (decode_start_fix): ditto. 694 695 * src/Makefile.am: added bitio.c 696 697 * src/cproto.sh: added bitio.c 698 699 * src/bitio.c: new file. 700 701 * src/crcio.c: extracted bitio routines. 702 703 * src/lha.h: ditto. 704 7052002-10-16 Koji Arai <jca02266@nifty.ne.jp> 706 707 * 00readme.autoconf: modified. 708 7092002-10-02 Koji Arai <jca02266@nifty.ne.jp> 710 711 * src/util.c (xstrchr): `strchr(s, 0)' should return the pointer 712 of the '\0' terminator. 713 7142002-09-14 Koji Arai <jca02266@nifty.ne.jp> 715 716 * src/lhadd.c (add_one): Use chsize() if system does not have 717 ftruncate(2). (For MinGW) 718 719 * configure.ac: ditto. 720 721 * config.h.in: ditto. 722 7232002-09-03 Koji Arai <jca02266@nifty.ne.jp> 724 725 * released. 726 727 * 00readme.autoconf: modified for stable release. 728 729 * configure.ac: updated version. 730 7312002-09-01 Koji Arai <jca02266@nifty.ne.jp> 732 733 * tests/Makefile.am (EXTRA_DIST): lha-test12, lha-test13 and 734 lha-test14 were missed. 735 7362002-08-31 Koji Arai <jca02266@nifty.ne.jp> 737 738 * src/lhadd.c (append_it): refined. 739 740 * src/lhadd.c (append_it): no terminate when file cannot be opened. 741 7422002-08-29 Koji Arai <jca02266@nifty.ne.jp> 743 744 * tests/lha-test11: change the way of checking the `header size field'. 745 746 * configure.ac: the `--enable-user-name-header' switch has been 747 ineffective. corrected variable name. 748 7492002-08-26 Koji Arai <jca02266@nifty.ne.jp> 750 751 * tests/lha-test14: on Cygwin, cannot use '|' as filesname. 752 753 * tests/lha-test.in: on MinGW, skip lha-test14 test. 754 755 * 00readme.autoconf: modified. 756 757 * released. 758 759 * configure.ac: updated version. 760 761 * src/header.c: fixed a comment. 762 763 * src/prototypes.h (strcmp_filename): removed. 764 765 * src/header.c (dump_skip_bytes): note "ignored" if data is ignored. 766 767 * src/header.c (wintime_to_unix_stamp): newly added for converting 768 from `FILETIME' to `time_t'. 769 (get_extended_header): use `wintime_to_unix_stamp()' to recognize 770 the Windows time stamp header (0x41). 771 772 * src/lha.h: define `uint64_t' unless system has it. 773 774 * configure.ac: check existence of the type `uint64_t'. 775 776 * config.h.in: ditto. 777 778 * src/lharc.c (init_variable): set default header level to 2. 779 7802002-08-24 Koji Arai <jca02266@nifty.ne.jp> 781 782 * tests/lha-test.in (lha-test14): added to test the symbolic link file. 783 784 * tests/lha-test14: ditto. 785 786 * src/lhlist.c (list_one): use LzHeader.realname. 787 788 * src/lhext.c (extract_one): use LzHeader.realname. 789 should call make_parent_path(symlink). 790 791 * src/lhadd.c (add_one): use LzHeader.realname. 792 (delete): ditto. 793 (append_it): use strcmp() instead of strcmp_filename(). 794 (strcmp_filename): removed. 795 796 * src/lha.h (struct LzHeader): added a member `realname' which is 797 symbolic linked name. 798 799 * src/header.c (get_header): split symbolic name in archive. 800 (write_header): join symbolic link name and linked name to put it 801 in archive. 802 803 * src/lhext.c (extract_one): force extract when `f' option is 804 specified. this is for OS-9 archives, [provisional]. 805 806 * src/header.c: fixed cpp expressions around time functions. 807 808 * tests/lha-test8: test MS-DOS timestamp `ftime' structure. 809 810 * tests/lha-test.in (change_timestamp): newly added. 811 8122002-08-22 Koji Arai <jca02266@nifty.ne.jp> 813 814 * released. 815 816 * src/prototypes.h: regenerated. 817 818 * src/cproto.sh: refined. 819 820 * configure.ac: updated version. 821 822 * configure.ac: should use `exit' rather than `return' on 823 AC_TRY_RUN(). see the Autoconf manual. 824 825 * configure.ac: check whether the 2nd argument of gettimeofday() 826 is effective. 827 828 * src/header.c: ditto. 829 830 * config.h.in (GETTIMEOFDAY_HAS_2ND_ARG): ditto. 831 832 * tests/lha-test.in: `++' is invalid arithmetic operator on POSIX 833 shell, Ksh and Bash version 2.03 or earlier. 834 835 * tests/lha-test13: ditto. 836 8372002-08-18 Koji Arai <jca02266@nifty.ne.jp> 838 839 * src/lharc.c (print_version): version string is made here. 840 841 * src/lha_macro.h (LHA_VERSION): removed. 842 843 * src/slide.c (encode_alloc): used newly named `dicbit' macro. 844 845 * src/shuf.c (read_tree_p): ditto. 846 (decode_start_fix): ditto. 847 848 * src/lha_macro.h: `xxx_DICBIT' for each method was defined. 849 850 * src/header.c: correct a comment `Generic stamp format'. 851 (get_bytes): fixed for dumping header. 852 853 * src/lha_macro.h, src/lha.h: `EXTERN' macro definition was moved 854 to lha.h. 855 856 * src/header.c (get_bytes): print hex codes for invisible chars. 857 858 * src/lhlist.c: hate global variables. 859 860 * src/prototypes.h (convdelim): removed. 861 862 * src/lhlist.c (print_stamp): use ISO 8601 date format when `lha vv'. 863 8642002-08-14 Koji Arai <jca02266@nifty.ne.jp> 865 866 * src/header.c: discarded warning message for the extended header, 867 `Windows time stamp' ignored. 868 869 * src/header.c: in spite of extended type value, read contents of 870 any ext headers. 871 872 * src/header.c: comment fixed. 873 8742002-08-12 Koji Arai <jca02266@nifty.ne.jp> 875 876 * src/header.c (dump_skip_bytes): do nothing when length is 0. 877 8782002-08-11 Koji Arai <jca02266@nifty.ne.jp> 879 880 * src/lha_macro.h (SJC_FIRST_P): rename to SJIS_FIRST_P. 881 (SJC_SECOND_P): rename to SJIS_SECOND_P. 882 883 * src/util.c (convdelim): removed. 884 885 * src/header.c (convert_filename): when small letter is included 886 in filename, do not convert case. 887 888 * 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: 889 print filename when test failed. 890 891 * tests/lha-test.in, tests/lha-test12, tests/lha-test13: 892 added tests for converting text files. 893 894 * src/header.c (get_extended_header): recognize the Windows time 895 stamp header (0x41), but ignored. 896 897 * src/header.c (write_unix_info): added. 898 8992002-08-11 Koji Arai <jca02266@nifty.ne.jp> 900 901 * released. 902 903 * configure.ac: updated version. 904 905 * 00readme.autoconf: modified. 906 907 * src/header.c: DUMP_HEADER is always true. 908 dump header when running `lha vvv foo.lzh'. 909 (get_header): added new extend type JAVA. 910 911 * src/lha_macro.h (EXTEND_JAVA): added new extend type JAVA. 912 913 * src/lhlist.c (list_one): ditto. 914 915 * src/lharc.c (init_variable): `verbose' is changed to successive. 916 (main): ditto. 917 9182002-08-10 Koji Arai <jca02266@nifty.ne.jp> 919 920 * src/lhlist.c (list_one): fixed mode checks. 921 922 * src/prototypes.h: updated. 923 924 * src/header.c (get_header_level2): check CRC value for reading 925 level 2 and 3 header. 926 (get_header_level3): ditto. 927 (get_extended_header): ditto. 928 (get_header_level0): set total header size to 929 `LzHeader.header_size' even if level 0 or 1 header is read. 930 (get_header_level1): ditto. 931 932 * src/append.c (encode_lzhuf): encode(), decode() and copyfile() 933 were changed. 934 (put_indicator): moved from crcio.c. 935 936 * src/crcio.c (put_indicator): moved to append.c. 937 (calccrc): generalized. 938 (fread_crc): changed interface. 939 (fwrite_crc): changed interface. 940 (calc_header_crc): removed. use calccrc() instead. 941 942 * src/extract.c (decode_lzhuf): copyfile() and decode() were changed. 943 944 * src/lha.h: hate global variable. `crc' is removed. 945 `reading_size' moved to append.c. 946 947 * src/lha_macro.h (INITIALIZE_CRC): newly added. 948 (UPDATE_CRC): no update in macro code. 949 950 * src/lhadd.c (temporary_to_new_archive_file): copyfile() was changed. 951 952 * src/lharc.c (copy_old_one): header size adjusting is done by 953 the get_header(). 954 955 * src/slide.c (update): changed interface. 956 (get_next): ditto. 957 (encode): ditto. 958 (decode): ditto. 959 960 * src/util.c (copyfile): changed interface. 961 9622002-08-10 Koji Arai <jca02266@nifty.ne.jp> 963 964 * tests/lha-test5: added tests using pipe. 965 966 * src/lhadd.c (cmd_add): applied reverse patch. intermediate file 967 is the necessary when created archive put in pipe. 968 969 * src/header.c (skip_bytes): newly added. 970 (dump_get_byte): newly added for dumping the data for debugging. 971 (dump_skip_bytes): ditto. 972 (get_word): ditto. 973 (get_longword): ditto. 974 (get_bytes): ditto. 975 (get_extended_header): modified for reading the level 3 header. 976 (get_header_level3): newly added. 977 978 * src/lha.h (struct LzHeader): for level 3 header, added a new 979 member `size_field_length' and changed type of the `header_size' 980 from int to long. 981 982 * src/header.c (init_header): the `hdr->method' should be 983 initialized to the "-lh0-" for empty files. 984 985 * tests/lha-test2: ditto. 986 987 * src/lhadd.c (add_one): should print indicator for empty files. 988 9892002-08-09 Koji Arai <jca02266@nifty.ne.jp> 990 991 * tests/lha-test.in: adapt to ksh (and posix shell). 992 9932002-08-05 Koji Arai <jca02266@nifty.ne.jp> 994 995 * 00readme.autoconf: refined. 996 997 * config.h.in (BACKUP_OLD_ARCHIVE): added. 998 999 * configure.ac: added a command line switch `--enable-backup-archive'. 1000 1001 * src/lhadd.c (cmd_add): if `backup_old_archive' is true, no 1002 backup archive. 1003 (cmd_delete): ditto. 1004 1005 * src/lharc.c (init_variable): initialize `backup_old_archive'. 1006 1007 * src/lha.h (backup_old_archive): added for nobackup. 1008 10092002-08-02 Koji Arai <jca02266@nifty.ne.jp> 1010 1011 * src/lha_macro.h, src/lha.h, src/header.c, src/lhadd.c: Fixed 1012 misspelling, not `STRAGE' but `STORAGE'. 1013 10142002-07-29 Koji Arai <jca02266@nifty.ne.jp> 1015 1016 * re-released. 1017 1018 * src/header.c: should use error() instead of fatal_error(). 1019 (get_header): fixed wrong end mark checking. 1020 1021 * src/prototypes.h: updated. 1022 1023 * released. 1024 1025 * configure.ac: updated version. 1026 1027 * 00readme.autoconf: described about header.c bug on original lha. 1028 10292002-07-28 Koji Arai <jca02266@nifty.ne.jp> 1030 1031 * tests/Makefile.am: added lha-test11. 1032 1033 * src/crcio.c (fread_txt): responded to (gcc -Wall) compiler warnings. 1034 1035 * src/header.c (generic_to_unix_stamp): ditto. 1036 1037 * src/lha_macro.h: ditto. 1038 1039 * src/lhadd.c (delete): ditto. 1040 1041 * src/lharc.c (open_old_archive): ditto. 1042 1043 * src/lhlist.c (list_one): ditto. 1044 1045 * src/prototypes.h: updated. 1046 1047 * tests/lha-test.in: added lha-test11. 1048 1049 * tests/lha-test8: added tests for level 0 and 2 header. 1050 1051 * tests/lha-test10: added tests for generic header. 1052 1053 * tests/lha-test11: testing for long filename. moved from lha-test10. 1054 10552002-07-26 Koji Arai <jca02266@nifty.ne.jp> 1056 1057 * src/header.c (write_header): rewritten. 1058 10592002-07-25 Koji Arai <jca02266@nifty.ne.jp> 1060 1061 * tests/lha-test4: stderr should be redirected. 1062 1063 * src/lharc.c (main): exit with status 1 (meaning failure) when the 1064 function error() was called. 1065 (error): ditto. 1066 1067 * src/lha.h (LzHeader.last_modified_stamp;): no longer used it. 1068 1069 * src/header.c (get_header): rewritten. 1070 10712002-07-21 Koji Arai <jca02266@nifty.ne.jp> 1072 1073 * tests/lha-test10: change grep pattern so that pattern matches 1074 a carriage return at the end of line for MinGW. 1075 1076 * src/lha.h: define `struct utimbuf' when utime.h is not given 1077 such as MinGW. (Microsoft Visual Studio 6.0 has sys/utime.h). 1078 1079 * src/lhext.c (make_parent_path): missing braces. 1080 1081 * tests/lha-test.in (check): print script line number when test failed. 1082 1083 * 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. 1084 1085 * tests/lha-test10: on Cygwin/MinGW, could not make 255 bytes 1086 filename. (the system limit of filename length contains the length 1087 of current directory.) 1088 1089 * tests/lha-test10: should use /bin/ls instead of ls, since 1090 /usr/ucb/ls puts size on 4th field (on Solaris). 1091 10922002-07-18 Koji Arai <jca02266@nifty.ne.jp> 1093 1094 * released. 1095 1096 * configure.ac: updated version. 1097 1098 * src/lhext.c (adjust_info): should use `struct utimbuf' for 1099 `utime(2)' rather than `time_t' array. 1100 1101 * src/header.c (write_header): [BUG]: should not write zero at the 1102 first byte on level 2 header. should adjust header size. 1103 1104 * tests/lha-test10: added tests for level 2 header. 1105 1106 * src/lha_macro.h, src/header.c (setup_get): moved to header.c. 1107 (get_byte): ditto. 1108 (put_ptr): ditto. 1109 (setup_put): ditto. 1110 (put_byte): ditto. 1111 (get_bytes): newly added. 1112 (put_bytes): newly added. 1113 11142002-07-17 Koji Arai <jca02266@nifty.ne.jp> 1115 1116 * src/header.c (get_header): [BUG]: Could not read level 2 header 1117 when the header size is grater than 256. 1118 (convert_filename): Should use the `FILENAME_LENGTH' macro rather 1119 than 256. 1120 (write_header): [BUG]: Suppress to overflow the header size when 1121 long filename is written in level 0 or 1 header. On level 1 1122 header, always use the extended filename header instead of the 1123 base header. 1124 1125 * src/lha.h (LzHeader): the type of `header_size' was changed 1126 from `unsigned char' to `int', for the level 2 header archive. 1127 1128 * src/lhext.c (extract_one): should use the `FILENAME_LENGTH' 1129 macro rather than 256 (provisionally fixed). 1130 1131 * tests/lha-test.in: notify failed test number. 1132 1133 * tests/lha-test10: added tests for long pathname. 1134 11352002-07-14 Koji Arai <jca02266@nifty.ne.jp> 1136 1137 * re-released. 1138 1139 * src/header.c (get_header): archive path separator should be 1140 converted always. 1141 1142 * released. 1143 1144 * configure.ac: updated version. 1145 1146 * src/header.c (write_header): if user/group name is not set, 1147 extended header (0x52 and 0x53) should not be made. 1148 1149 * tests/lha-test10: added testing to handle deep directory. 1150 1151 * src/header.c (write_header): fixed typo, not strchr() but 1152 strrchr(). 1153 1154 * src/prototypes.h: regenerated. 1155 1156 * src/header.c (convert_filename): prefer to use the 1157 `FILENAME_LENGTH' macro rather than 256. 1158 1159 * src/cproto.sh: fixed typo. 1160 11612002-07-11 Koji Arai <jca02266@nifty.ne.jp> 1162 1163 * tests/Makefile.am (EXTRA_DIST): lha-test9 and lha-test10 were missed. 1164 1165 * src/lharc.c (print_tiny_usage): no exit here. 1166 1167 * src/header.c (ConvertEncodingByIconv): newly added. 1168 Thanks to Hiroto Sakai. 1169 1170 * configure.ac, config.h.in: Checking to have iconv() for utf-8 1171 conversion. 1172 1173 * configure.ac: Checking whether strrchr() is 8 bit clean or not. 1174 On Mac OS X, strchr() can handle 8 bit characters, but strrchr() 1175 cannot. 1176 Should use '\377' rather than '\xff' for de-ANSI compiler. 1177 11782002-07-10 Koji Arai <jca02266@nifty.ne.jp> 1179 1180 * released. 1181 1182 * configure.ac: updated version. 1183 1184 * src/header.c: change hex codes '\xff' to octal codes '\377'. 1185 1186 * tests/lha-test.in: Skip the lha-test9. (this test is imcomplete 1187 for now) 1188 1189 * tests/lha-test10: Should extract directory even if the archive 1190 header was level 0. 1191 1192 * src/header.c (get_header): Should convert kanji code and path 1193 separator for the level 0 header entry. 1194 Should convert `\' to `/' for level 0 header (do always to make sure, 1195 SO CANNOT CONTAIN THE `\' IN FILENAME). 1196 (init_header): [BUG]: Should not convert path separator here (Should do 1197 in write_header()). 1198 (write_header): [BUG]: should set pathname (contains directory part) to 1199 the LzHeader.name field on level 0 header archive even if the 1200 archive methods is -lhd-. 1201 12022002-07-09 Koji Arai <jca02266@nifty.ne.jp> 1203 1204 * src/lha.h, src/header.c: the CoreFoundation header inclusion 1205 moved to header.c. 1206 1207 * src/lha.h, src/lharc.c, IFNAMES: macro NODIRECTORY was removed. 1208 1209 * src/lha.h, src/lhadd.c, src/lharc.c, src/lhext.c: fixed 1210 misspelling, not `writting' but `writing'. 1211 12122002-07-07 Koji Arai <jca02266@nifty.ne.jp> 1213 1214 * src/lha.h, src/lha_macro.h: refined. 1215 1216 * src/lhadd.c (append_it): macro STRING_COMPARE() was discarded. 1217 1218 * src/lha_macro.h: ditto. 1219 1220 * IFNAMES: NOVOID was removed. 1221 1222 * src/lharc.c (main): terminate with exit status 2 when specified 1223 command line switche is wrong, 1224 1225 * configure.ac, config.h.in: added checking utime.h existent. 1226 1227 * src/crcio.c (putc_euc): void returned. 1228 1229 * src/header.c, src/lha.h, src/lha_macro.h, src/lhadd.c: refined. 1230 1231 * src/lharc.c, src/prototypes.h, src/slide.c: refined. 1232 1233 * configure.ac: should specify the 4th argument to AC_TRY_RUN() 1234 for cross compiling. 1235 1236 * configure.ac: fix a test expression. 1237 1238 * src/cproto.sh: added for maintainer. 1239 1240 * src/lha.h: support de-ANSI variable arguments. 1241 1242 * src/lharc.c: ditto. 1243 1244 * src/util.c: ditto. 1245 1246 * src/Makefile.am (lha_SOURCES): added prototypes.h. 1247 1248 * src/lha.h: function prototypes moved to prototypes.h. 1249 1250 * src/prototypes.h: generated by the cproto command. 1251 1252 * configure.ac: On Mac OS X, in spite of using the CoreFoundation 1253 for utf-8 conversion, I have missed specifying the `-framework 1254 CoreFoundation' in LDFLAGS. 1255 1256 * src/Makefile.am (EXTRA_DIST): no need to specify `lhdir.c'. 1257 12582002-07-06 Koji Arai <jca02266@nifty.ne.jp> 1259 1260 * released. 1261 1262 * configure.ac: updated version. 1263 1264 * tests/lha-test10: added testing the header level 0, 1 and 2. 1265 1266 * tests/lha-test.in: ditto. 1267 1268 * src/lharc.c: `#include <stdarg.h>' moved to lha.h. 1269 1270 * src/lha.h: ditto. 1271 1272 * src/util.c: ditto. 1273 1274 * configure.ac: AC_REPLACE_FUNCS(vsnprintf). 1275 1276 * config.h.in: ditto. 1277 1278 * src/lha.h: ditto. 1279 1280 * src/vsnprintf.c: derived snprintf() which has the BSD licence. 1281 1282 * configure.ac: fix typo. 1283 1284 * configure.ac: checking whether strchr() is 8 bit clean or not. 1285 1286 * config.h.in: ditto. 1287 1288 * src/util.c: give functions strchr(), strrchr(), memchr() and 1289 memrchr() which handle 8 bit characters correctly. 1290 1291 * src/header.c: use above if needed. 1292 1293 * src/lha_macro.h: deprecate the macro name `DELIM2' which is path 1294 separattor for the filename in lha header. 1295 use LHA_PATHSEP instead. 1296 1297 * src/util.c (convdelim): ditto. 1298 1299 * src/header.c (convert_filename): ditto. 1300 (write_header): ditto. 1301 1302 * src/header.c (convert_filename): fixed bug on utf8 conversion, 1303 provisionally. 1304 13052002-06-30 Koji Arai <jca02266@nifty.ne.jp> 1306 1307 * configure.ac: fixed typo. 1308 1309 * src/header.c (sjis_to_utf8): fixed typo. 1310 (utf8_to_sjis): fixed typo. 1311 1312 * src/lhadd.c (cmd_add): Missed to adjust the index when specified 1313 adding file is same as the generating archive file. 1314 13152002-06-29 Koji Arai <jca02266@nifty.ne.jp> 1316 1317 * src/header.c (convert_filename): rename a function 1318 `filename_conv()' to `convert_filename()'. 1319 (sjis_to_utf8_static): no use the static variable. 1320 (utf8_to_sjis_static): ditto. 1321 1322 * src/lha.h: rename sjis_to_utf8_static() and utf8_to_sjis_static() 1323 into sjis_to_utf8() and utf8_to_sjis(). 1324 1325 * src/lha_macro.h: added a macro `CODE_UTF8'. 1326 1327 * configure.ac: decide CODE_UTF8. 1328 updated version. 1329 1330 * 00readme.autoconf: modified. 1331 1332 * configure.ac: modified for Mac OS X. 1333 1334 * src/header.c, lha.h, lha_macro.h, lharc.c: Merged a patch for 1335 the Mac OS X, convert utf-8 filename to shift_jis. This patch was 1336 contributed on LHa BBS. Thanks to Hiroto Sakai. 1337 1338 * src/lhext.c: replaced bcmp() with memcmp(). 1339 1340 * src/lha_macro.h: ditto. 1341 1342 * src/append.c: replace bcopy() with memcpy() or memmove(). 1343 1344 * src/lha_macro.h: ditto. 1345 1346 * src/lhadd.c: ditto. 1347 1348 * src/lharc.c: ditto. 1349 1350 * src/header.c: ditto. 1351 replace bzero() with memset(). 1352 1353 * src/lhadd.c (cmd_add): exlclude the target archive. (reported on 1354 the LHa BBS [28]) 1355 1356 * src/slide.c (encode_alloc): Wrong value was assigned to the 1357 `dicbit', when SUPPORT_LH7 was not defined. (fixed by DANGAN, 1358 reported on the LHa BBS [38]). 1359 1360 * src/lha_macro.h: ditto. 1361 1362 * src/shuf.c (decode_c_st0): the method of -lh3- extraction was 1363 fixed by DANGAN (reported on the LHa BBS [35]). 1364 1365 * src/lha_macro.h (LH3_DICBIT): ditto. 1366 1367 * src/dhuf.c (encode_c_dyn): the method of -lh1- compression was 1368 refined by DANGAN (reported on the LHa BBS [30], [39], [62]). 1369 13702002-06-26 Koji Arai <jca02266@nifty.ne.jp> 1371 1372 * tests/lha-test4: Skip a test for the LHa for UNIX (original version). 1373 1374 * tests/lha-test3: Rewrite tests for generic format archives. 1375 1376 * tests/lha-test2: Added tests for -lh0- method. 1377 Moved from contents of lha-test3 (tests for print archive). 1378 13792002-06-23 Koji Arai <jca02266@nifty.ne.jp> 1380 1381 * tests/lha-test.in: On Cygwin/MinGW, cannot test lha-test9. 1382 1383 * src/lhext.c: Fixed a misspelling. not `Symblic' but `Symbolic'. 1384 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>). 1385 1386 * src/lharc.c: ditto. 1387 1388 * src/slide.c (interface;): Fixed wrong index. 1389 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>). 1390 1391 * 00readme.autoconf: refined. 1392 1393 * tests/lha-test9: added tests for overriding files. 1394 1395 * tests/lha-test.in: added test9. 1396 1397 * src/lhext.c (cmd_extract): ftell(stdin) will return -1, so 1398 re-fixed provisionaly. 1399 1400 * src/lhext.c (cmd_extract): When error occurred in extract_one(), 1401 should adjust point of file stream. 1402 1403 * configure.ac: library checkings (for libmingwex) should be done 1404 before header checkings. 1405 14062002-06-22 Koji Arai <jca02266@nifty.ne.jp> 1407 1408 * released: 1409 1410 * configure.ac: updated version. 1411 1412 * src/lharc.c (init_variable): Removed useless assignments. 1413 1414 * src/lharc.c (main): Behavior was changed. when `q' or `q2' option 1415 (not `q1') is specified, the `f' option is enabled implicitly. 1416 In original behavior, the option `q', `q0', `q1' and `q2' will 1417 enable `f' option implicitly (bug?). 1418 1419 * src/lharc.c (main): [BUG]: When `q2' option is specified, 1420 level 2 header is generated. 1421 14222002-06-21 Koji Arai <jca02266@nifty.ne.jp> 1423 1424 * tests/Makefile.am: Use the `DISTCLEANFILES' variable instead of the `dist-hook' target. 1425 1426 * tests/Makefile.am: Added `dist-hook' target for `make distcheck'. 1427 1428 * tests/lha-test.in: All tests are splited into some files. 1429 1430 * tests/Makefile.am: ditto. 1431 1432 * tests/lha-test2: ditto. 1433 1434 * tests/lha-test3: ditto. 1435 1436 * tests/lha-test4: ditto. 1437 1438 * tests/lha-test5: ditto. 1439 1440 * tests/lha-test6: ditto. 1441 1442 * tests/lha-test7: ditto. 1443 1444 * tests/lha-test8: ditto. 1445 14462002-06-20 Koji Arai <jca02266@nifty.ne.jp> 1447 1448 * src/lhadd.c (cmd_add): No create an intermediate file when archive 1449 is written in stdout. 1450 14512002-06-19 Koji Arai <jca02266@nifty.ne.jp> 1452 1453 * 00readme.autoconf: Modified. 1454 14552002-06-18 Koji Arai <jca02266@nifty.ne.jp> 1456 1457 * configure.in: Removed. (no support the Autoconf version 2.13). 1458 1459 * config.h.in: Changed meaning of the value of the `MULTIBYTE_FILENAME'. 1460 1461 * src/header.c: Remove preprocess codes for kanji code decision. 1462 1463 * configure.ac: When --enable-multibyte-filename[=auto] is specified, 1464 decide kanji code for filename automatically. 1465 Otherwise, euc or sjis is specified, it is EUC-JP or Shift_JIS. 1466 14672002-06-17 Koji Arai <jca02266@nifty.ne.jp> 1468 1469 * configure.in, configure.ac: updated version. 1470 1471 * configure.in, configure.ac: On mingw-runtime-2.0-1, opendir() 1472 has moved to libmingwex.a. For now, not listed in the 1473 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs file. 1474 1475 * src/lharc.c (message): use variable argument list with stdarg. 1476 (warning): ditto. 1477 (error): ditto. 1478 (write_error): removed. 1479 (read_error): removed. 1480 (build_temporary_name): use xsnprintf(). 1481 (open_old_archive): ditto. 1482 (expanded_archive_name): move in the function (open_old_archive()) as static. 1483 1484 * src/crcio.c (putcode): changed for fatal_error(). 1485 (putbits): changed for fatal_error(). 1486 (fwrite_crc): ditto. 1487 (putc_euc): should return EOF when putc() cause error. 1488 (fwrite_txt): changed for putc_euc(). 1489 1490 * src/header.c (get_header): changed for fatal_error(), warning() and error(). 1491 (init_header): use xsnprintf(). 1492 (write_header): fixed wrong usage of fwrite(). 1493 1494 * src/lha.h: updated declarations. 1495 1496 * src/lhadd.c (append_it): changed for error(). 1497 1498 * src/lhext.c (inquire_extract): ditto. 1499 1500 * src/lhlist.c (cmd_list): ditto. 1501 1502 * src/maketbl.c (make_table): ditto. 1503 1504 * src/util.c (copyfile): changed for fatal_error(). 1505 (xsnprintf): newly added to adopt to various snprintf(). 1506 15072002-06-12 Koji Arai <jca02266@nifty.ne.jp> 1508 1509 * src/lha_macro.h (UNIX_STICKYBIT): fixed a misspelling. 1510 1511 * src/lhlist.c (list_one): ditto. 1512 15132002-06-11 Koji Arai <jca02266@nifty.ne.jp> 1514 1515 * src/lharc.c: index was wrong. 1516 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>). 1517 15182002-06-06 Koji Arai <jca02266@nifty.ne.jp> 1519 1520 * configure.ac, configure.in: changed macro name. 1521 not multibyte-char but multibyte-filename. 1522 not MULTIBYTE_CHAR but MULTIBYTE_FILENAME. 1523 1524 * 00readme.autoconf: ditto. 1525 1526 * config.h.in: ditto. 1527 1528 * src/util.c: ditto. 1529 1530 * src/lha_macro.h: ditto. 1531 1532 * src/header.c: ditto. 1533 1534 * config.h.in (INCLUDE_OWNER_NAME_IN_HEADER): changed macro name. 1535 1536 * configure.ac: ditto. 1537 1538 * src/header.c (init_header): ditto. 1539 1540 * src/header.c (init_header): should clear LzHeader. 1541 15422002-06-05 Koji Arai <jca02266@nifty.ne.jp> 1543 1544 * released. 1545 1546 * configure.ac (AC_INIT): changed package name and specified tar name. 1547 1548 * src/lharc.c: added `--help' command line switch. 1549 1550 * Makefile.am: fixed EXTRA_DIST for 00readme.autoconf renaming. 1551 1552 * README.autoconf, 00readme.autoconf: renamed. 1553 1554 * configure.ac, configure.in: updated version. 1555 15562002-06-04 Koji Arai <jca02266@nifty.ne.jp> 1557 1558 * README.autoconf, header.doc.euc: describe about user/group name 1559 header. 1560 1561 * src/header.c (init_header): added a macro MAKE_USER_NAME_HEADER. 1562 1563 * configure.ac, configure.in, config.h.in: added a switch 1564 `--enable-user-name-header' whether user/name extended header is 1565 made. 1566 15672002-06-01 Koji Arai <jca02266@nifty.ne.jp> 1568 1569 * README.autoconf: `-i' switch of automake is deprecated. 1570 15712002-05-29 Koji Arai <jca02266@nifty.ne.jp> 1572 1573 * configure.in, configure.ac, config.h.in: checks having uid_t/gid_t. 1574 1575 * src/lha.h: define uid_t/gid_t as `int' if no have it. 1576 1577 * src/lhext.c (adjust_info): mismatched braces. 1578 1579 * header.doc.euc: around user/group name extention. 1580 1581 * configure.in, configure.ac, config.h.in: checks having 1582 getpwuid/getgrgid and so on. 1583 1584 * src/header.c (get_header): use the extend header, user/group name. 1585 (init_header): ditto. 1586 1587 * src/lha.h: added <pwd.h>, <grp.h> header includings. 1588 1589 * src/lhext.c (adjust_info): change owner/group according to 1590 user/group name when extracting. 1591 1592 * src/lhlist.c (list_one): print user/group name when the header 1593 has them. 1594 (list_one): correct column position on OS68K. 1595 1596 * tests/lha-test.in: added timestamp checks. 1597 1598 * src/lha_macro.h: comment about OS code. 1599 16002002-05-28 Koji Arai <jca02266@nifty.ne.jp> 1601 1602 * src/lharc.c (xstrdup): no need to call fatal_error(). 1603 1604 * src/lhdir.h, src/lha_macro.h, src/lha.h: added modeline for vi(m). 1605 1606 * configure.ac, config.h.in: use new autoconf macro, AC_CHECK_MEMBERS(). 1607 1608 * IFNAMES, configure.in, src/header.c, src/lharc.c: replaced with 1609 new macro name to adopt to the AC_CHECK_MEMBERS(). 1610 16112002-05-27 Koji Arai <jca02266@nifty.ne.jp> 1612 1613 * tests/lha-test.in: use awk instead of GNU sh-utils's `seq'. 1614 1615 * src/header.c (filename_conv): fix a bug, reverse condition and 1616 conversion for filename case. 1617 1618 * README.autoconf: added description about `get_filename_from_stdin' feature. 1619 1620 * tests/lha-test.in: remove test around the `get_filename_from_stdin'. 1621 1622 * src/lharc.c (main): never set `get_filename_from_stdin` to true. 1623 `echo foo | lha x foo.lzh' does not work like original LHa for UNIX. 1624 1625 * tests/lha-test.in: replace with #!/bin/bash. 1626 1627 * README.autoconf: added E-Mail address. 1628 1629 * configure.ac: updated version and added mail address for bug reports. 1630 1631 * configure.in: updated version. 1632 1633 * released. 1634 1635 * README.autoconf: added `make check' on sample description. 1636 1637 * configure.in, configure.ac: update version. 1638 16392002-05-26 Koji Arai <jca02266@nifty.ne.jp> 1640 1641 * tests/lha-test.in: added some tests. 1642 1643 * tests/Makefile.am: refined. 1644 1645 * src/lhext.c (cmd_extract): discard useless fseek() calling (for MinGW). 1646 1647 * tests/lha-test.in: added some tests. 1648 1649 * tests/lha-test.in: specified `q' option on print archive test. 1650 1651 * src/lhadd.c (build_backup_file): On MinGW, cannot rename when 1652 a new file already exists. 1653 1654 * src/lhext.c (extract_one): On MinGW, set binary on stdout when 1655 print archive (`p' switch). 1656 1657 * tests/lha-test.in: added some tests. 1658 1659 * src/lhadd.c (report_archive_name_if_different): warning messages 1660 should be printed to stderr rather than stdout. 1661 (cmd_delete): ditto. 1662 1663 * tests/Makefile.am: fix EXTRA_DIST. 1664 1665 * configure.in, configure.ac: update version. 1666 1667 * tests/lha-test.in: added tests. 1668 1669 * tests/Makefile.am: ditto. 1670 1671 * configure.in, configure.ac, Makefile.am: ditto. 1672 16732002-05-25 Koji Arai <jca02266@nifty.ne.jp> 1674 1675 * IFNAMES: updated. 1676 1677 * released. 1678 1679 * README.autoconf: added description for developpers. 1680 1681 * configure.in, configure.ac, config.h.in: refined. 1682 1683 * src/util.c (memmove): use HAVE_MEMMOVE. 1684 (mkdir): use HAVE_WORKING_FORK. 1685 1686 * src/huf.c: use HAVE_SYS_PARAM_H instead of sony_news. 1687 1688 * IFNAMES (sony_news): updated. 1689 1690 * configure.ac, configure.in (AC_INIT): added autoconfiscated date. 1691 see `lha --version'. 1692 16932002-05-22 Koji Arai <jca02266@nifty.ne.jp> 1694 1695 * 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: 1696 added modeline for vi(m). 1697 1698 * src/lharc.c: backslash was missing. 1699 17002002-05-20 Koji Arai <jca02266@nifty.ne.jp> 1701 1702 * src/lharc.c (open_old_archive): On MinGW, set binary stdin. 1703 1704 * src/lhadd.c (temporary_to_new_archive_file): On MinGW, set binary stdout. 1705 1706 * src/lha_macro.h: no define TMP_FILENAME_TEMPLATE in source. 1707 1708 * configure.ac, configure.in, README.autoconf: be able to specify 1709 --with-tmp-file=no which meaning TMP_FILENAME_TEMPLATE is undefined. 1710 1711 * src/lha.h: correct usage of mkstemp(). 1712 On MinGW, opening file cannot be removed. 1713 1714 * src/lhadd.c (build_temporary_file): ditto. 1715 1716 * src/lharc.c (fatal_error): ditto. 1717 17182002-05-19 Koji Arai <jca02266@nifty.ne.jp> 1719 1720 * configure.in, configure.ac: added AM_C_PROTOTYPES, AC_C_CONST. 1721 no use AM_C_PROTOTYPES for the present. 1722 1723 * config.h.in: ditto. 1724 1725 * src/lharc.c (print_tiny_usage_and_exit): change credit. 1726 1727 * src/lha_macro.h: put PLATFORM in a macro LHA_VERSION. 1728 1729 * src/lharc.c (print_version): ditto. 1730 1731 * configure.ac: use AC_CANONICAL_TARGET instead of AC_CANONICAL_HOST. 1732 17332002-05-19 Koji Arai <jca02266@nifty.ne.jp> 1734 1735 * released. 1736 1737 * src/lharc.c (print_tiny_usage_and_exit): added credit. 1738 (print_version): print PLATFORM. 1739 1740 * configure.ac, configure.in, config.h.in: define PLATFORM. 1741 1742 * src/lharc.c (xstrdup): fix typo. 1743 1744 * configure.ac: added for autoconf-2.53. 1745 1746 * config.h.in: regenerate by autoconf-2.53. 1747 1748 * src/lharc.c (find_files): MinGW has st_ino but always 0. 1749 1750 * src/lharc.c (main): provisionally fix. set 1751 `get_filename_from_stdin' to false. 1752 1753 * src/util.c (rename): use builtin rename(2) on mingw32 (since have 1754 no link(2)). 1755 1756 * src/lharc.c (main): use xrealloc(). 1757 1758 * src/lha_macro.h: specify "b" modifier always (for mingw32). 1759 1760 * src/lharc.c: use xstrdup() instead of strdup(). 1761 1762 * src/lha_macro.h: ditto. 1763 1764 * src/lha_macro.h: getuid(), chown(), kill() are provisionally 1765 defined as 0. 1766 1767 * src/header.c: set `default_system_kanji_code' to Shift_JIS on mingw32. 1768 1769 * src/lhadd.c (build_temporary_file): no use SIGHUP for mingw32. 1770 (build_backup_file): ditto. 1771 1772 * src/lharc.c (interrupt): ditto. 1773 1774 * src/lhext.c (extract_one): ditto. 1775 1776 * src/lhext.c (make_parent_path): mkdir() has no 2nd argument on 1777 mingw32. 1778 17792002-05-18 Koji Arai <jca02266@nifty.ne.jp> 1780 1781 * lha_macro.h: define bcmp(), bzero(), bcopy() even if 1782 STDC_HEADERS is defined. 1783 1784 * huf.c (alloc_buf): call fatal_error() when memory allocation failed 1785 instead of returning NULL. 1786 1787 * lharc.c (main): use xmalloc(). 1788 1789 * util.c (copyfile): use xmalloc(). 1790 1791 * slide.c (encode_alloc): use xmalloc(). 1792 1793 * header.c (default_system_kanji_code): On HP-UX, use Shift_JIS as 1794 default kanji code. 1795 17962001-02-03 Koji Arai <jca02266@nifty.ne.jp> 1797 1798 * README.autoconf, src/header.c: treat archive and system kanji 1799 code, correctly. 1800 18012001-01-31 Koji Arai <jca02266@nifty.ne.jp> 1802 1803 * configure.in: mistakes for default archive method. 1804 1805 * src/header.c: directory separator 0xff must be transpose slash 1806 at first. 1807 18082001-01-29 Koji Arai <jca02266@nifty.ne.jp> 1809 1810 * src/lharc.c: replace MKSTEMP with HAVE_MKSTEMP. 1811 substitute DEFAULT_LZHUFF_METHOD for the `compress_method' variable (it's default value). 1812 1813 * src/lha_macro.h: use the VERSION macro (defined by configure) for 1814 the LHA_VERSION definition. 1815 1816 * src/header.c: added condition whether the macro MULTIBYTE_CHAR 1817 is defined or not. 1818 1819 * src/Makefile.am: added $(SUPPORT_LZHUFF_METHOD) in AM_CPPFLAGS. 1820 1821 * configure.in: change version number from 1.14f to 1.14i. 1822 check function mkstemp(). 1823 replace --enable-lh6 option to --with-default-method=[567]. 1824 1825 * config.h.in: added definitions of HAVE_MKSTEMP and 1826 DEFAULT_LZHUFF_METHOD. 1827 1828 * IFNAMES: added a description about MKSTEMP. 1829 1830 * Makefile.am: added extra files. 1831 1832 * 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: 1833 merged changing from lha-1.14f to lha-1.14i. 1834 1835 * change-114i.txt, src/header.c, src/huf.c, src/lha.h, src/lharc.c: 1836 import lha-114i 1837 1838 * src/huf.c, src/lharc.c, src/shuf.c, src/slide.c: import lha-114h 1839 1840 * Makefile, README.euc, change-114g.txt, change-114h.txt: 1841 import lha-114h 1842 1843 * 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: 1844 import lha-114g 1845 1846 * 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: 1847 import lha-114g 1848 1849 * src/header.c, src/lha_macro.h: implemented kanji code conversion 1850 on filename. 1851 1852 * src/header.c: fix bug in euc2sjis(). 1853 18541999-10-05 Koji Arai <jca02266@nifty.ne.jp> 1855 1856 * src/header.c: rename the macro HANKAKU_KATAKANA_P to the X0201_KANA_P 1857 18581999-09-30 Koji Arai <jca02266@nifty.ne.jp> 1859 1860 * 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: 1861 use the autoconf/automake 1862 18631999-08-28 Koji Arai <jca02266@nifty.ne.jp> 1864 1865 * Makefile: import the lha-114f 1866 1867 * change-114f.txt, config.jpn.euc, header.doc.euc: import the lha-114f 1868 1869 * CHANGES.euc, MACHINES.euc, PROBLEMS.euc, README.euc, change-114e.txt, config.eng: 1870 import the lha-114f 1871 1872 * MACHINES2.euc, man/Makefile, man/lha.man, man/lha.n: 1873 import the lha-114f 1874 1875 * src/append.c, src/crcio.c: import the lha-114f 1876 1877 * 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: 1878 import the lha-114f 1879 1880 * src/dhuf.c, src/extract.c, src/header.c, src/huf.c, src/larc.c, src/lhadd.c: 1881 import the lha-114f 1882