OSDN Git Service
Koji Arai [Sat, 16 Jan 2016 12:28:44 +0000 (21:28 +0900)]
Avoid the buffer overflow BUG to occur to read the level0 or level1 header
Koji Arai [Mon, 4 Jan 2016 12:50:27 +0000 (21:50 +0900)]
Merge pull request #6 from yoheie/remove-config-h-in
Remove config.h.in
Yohei Endo [Mon, 4 Jan 2016 09:55:21 +0000 (18:55 +0900)]
Remove config.h.in
config.h.in is generated by autoheader.
Fix usage of Autotools commands described in README.jp.md and INSTALL.
Koji Arai [Mon, 30 Nov 2015 13:39:13 +0000 (22:39 +0900)]
Merge pull request #5 from yoheie/fix-make_name_with_pathcheck
make_name_with_pathcheck() 修正
Yohei Endo [Mon, 30 Nov 2015 13:24:01 +0000 (22:24 +0900)]
Fix build error when lstat is not supported
Yohei Endo [Mon, 30 Nov 2015 13:16:46 +0000 (22:16 +0900)]
Remove unused parameter
Koji Arai [Sun, 29 Nov 2015 13:02:52 +0000 (22:02 +0900)]
Add a compiler clang
Koji Arai [Sun, 29 Nov 2015 13:02:34 +0000 (22:02 +0900)]
Remove email address from .travis.yml
Koji Arai [Sun, 29 Nov 2015 12:46:18 +0000 (21:46 +0900)]
Add .travis.yml
Koji Arai [Sun, 29 Nov 2015 12:10:54 +0000 (21:10 +0900)]
Should not use fatal_error() because the errno may not be set
Koji Arai [Sun, 29 Nov 2015 11:47:51 +0000 (20:47 +0900)]
Replace fprintf() with fatal_error()
Koji Arai [Sun, 29 Nov 2015 11:25:07 +0000 (20:25 +0900)]
Prevent from extracting files follow symbolic link
Thanks to Yohei Endo.
Koji Arai [Sun, 29 Nov 2015 11:09:52 +0000 (20:09 +0900)]
Change the file encoding to UTF-8.
Koji Arai [Sun, 18 Oct 2015 12:57:08 +0000 (21:57 +0900)]
Merge pull request #2 from yoheie/fix-case-conversion
Fix filename case conversion on utf8 system
Yohei Endo [Sat, 17 Oct 2015 23:40:37 +0000 (08:40 +0900)]
Fix nesting of MULTIBYTE_FILENAME compiler switch
Yohei Endo [Sat, 17 Oct 2015 16:06:50 +0000 (01:06 +0900)]
Fix filename case conversion on utf8 system
Koji Arai [Tue, 13 Oct 2015 12:04:39 +0000 (21:04 +0900)]
Merge pull request #1 from yoheie/fix-makefile-am
Fix filenames in Makefile.am
Yohei Endo [Tue, 13 Oct 2015 09:24:26 +0000 (18:24 +0900)]
Fix filenames in Makefile.am
Koji Arai [Tue, 20 Jan 2015 11:23:31 +0000 (20:23 +0900)]
We do not have to support non-ANSI C compilers
The prototypes.h was made by cproto 4.71
Koji Arai [Mon, 19 Jan 2015 14:26:58 +0000 (23:26 +0900)]
Add some ignore files
Koji Arai [Mon, 19 Jan 2015 14:04:13 +0000 (23:04 +0900)]
Remove AM_C_PROTOTYPES from configure.ac
Koji Arai [Mon, 19 Jan 2015 13:08:59 +0000 (22:08 +0900)]
Change documents to UTF-8 encoding
Rewrite 00readme.autoconf to README.jp.md (Markdown)
Koji Arai [Sat, 26 Nov 2011 13:25:59 +0000 (22:25 +0900)]
Merge branch 'pmarc'
Koji Arai [Wed, 12 Nov 2008 13:15:14 +0000 (22:15 +0900)]
PMA extracting sources were licensed under the MIT license
Koji Arai [Thu, 30 Oct 2008 00:35:38 +0000 (09:35 +0900)]
Workaround for Zsh bug? on Cygwin.
Koji Arai [Thu, 30 Oct 2008 13:36:55 +0000 (22:36 +0900)]
lha-test.in: print All OK if it is so.
Koji Arai [Thu, 30 Oct 2008 06:17:21 +0000 (15:17 +0900)]
On HP-UX 11.23, discard warning message for non-eol files output by diff command.
Koji Arai [Thu, 30 Oct 2008 06:11:55 +0000 (15:11 +0900)]
On HP-UX 11.23, "chmod -R" cannot change the file permission in non-writable and non-executable directory
Koji Arai [Thu, 30 Oct 2008 06:06:52 +0000 (15:06 +0900)]
should define MIN() when it was not defined
Koji Arai [Thu, 30 Oct 2008 06:05:05 +0000 (15:05 +0900)]
cannot operate ++ for void pointer
Koji Arai [Fri, 24 Oct 2008 15:34:45 +0000 (00:34 +0900)]
Enclosed the INSTALL file for European.
It is contributed by Reynir Stefansson. Thanks!
Koji Arai [Thu, 23 Oct 2008 13:57:43 +0000 (22:57 +0900)]
fixed a bug for timestamp archiving feature
* configure.ac: updated version.
* src/lhadd.c(cmd_add): fixed a bug reported by Reynir Stefansson.
the variable most_recent should be reset at the first.
* tests/lha-test19: added a testcase for above.
Koji Arai [Fri, 3 Oct 2008 16:16:21 +0000 (01:16 +0900)]
updated ChangeLog, configure.ac, man/lha.1 for timestamp archiving feature
Koji Arai [Wed, 10 Sep 2008 03:53:45 +0000 (12:53 +0900)]
maketree2() should refer the tree1 info at first.
Koji Arai [Tue, 9 Sep 2008 15:46:10 +0000 (00:46 +0900)]
Fixed bug: uninitialized variable has been used in maketree2().
Make sure whether the maketree2() need to use the tree1 info.
This is experimental changes.
Koji Arai [Sat, 30 Aug 2008 15:32:46 +0000 (00:32 +0900)]
refined. global tree1, tree2 and struct tree are hidden in pm2tree.c
Koji Arai [Sat, 30 Aug 2008 14:29:22 +0000 (23:29 +0900)]
should check the tree1 value
Koji Arai [Sat, 30 Aug 2008 14:05:41 +0000 (23:05 +0900)]
symmetry
Koji Arai [Sat, 30 Aug 2008 13:43:16 +0000 (22:43 +0900)]
should start with mindepth
When table[] is assigned with a value which is smaller than mindepth,
it is not used in tree_rebuild().
Koji Arai [Fri, 29 Aug 2008 16:14:58 +0000 (01:14 +0900)]
should use header->method instead of permission for timestamp archiving
Koji Arai [Fri, 29 Aug 2008 15:42:56 +0000 (00:42 +0900)]
lha-test19 is added for timestamping archive feature
Koji Arai [Wed, 27 Aug 2008 15:51:32 +0000 (00:51 +0900)]
remade the timestamping archive patch
Koji Arai [Wed, 27 Aug 2008 14:07:39 +0000 (23:07 +0900)]
Merge commit 'origin' into timestamping
Koji Arai [Wed, 27 Aug 2008 12:54:01 +0000 (21:54 +0900)]
should check the Kraft's inequality for tree
Koji Arai [Sat, 23 Aug 2008 19:26:55 +0000 (04:26 +0900)]
refined
Koji Arai [Sat, 23 Aug 2008 19:14:06 +0000 (04:14 +0900)]
re-indent for pm2 source by GNU indent.
Koji Arai [Thu, 21 Aug 2008 03:23:58 +0000 (12:23 +0900)]
applied timestamping archive patch
Koji Arai [Fri, 22 Aug 2008 16:33:48 +0000 (01:33 +0900)]
seek_lha_header() should search the PMA archive
Koji Arai [Fri, 22 Aug 2008 16:17:45 +0000 (01:17 +0900)]
config.h (or lha.h) should be included at the top of source.
Koji Arai [Fri, 22 Aug 2008 16:10:19 +0000 (01:10 +0900)]
Merge commit 'origin/master' into pmarc
Koji Arai [Fri, 22 Aug 2008 16:02:44 +0000 (01:02 +0900)]
* src/lhext.c (cmd_extract): stream position was adjusted by wrong value.
* src/lhext.c (extract_one): fixed misspelling.
Koji Arai [Wed, 20 Aug 2008 16:25:46 +0000 (01:25 +0900)]
updated cproto.sh for PMA
Koji Arai [Wed, 20 Aug 2008 15:54:10 +0000 (00:54 +0900)]
support PMA file decoding
Koji Arai [Tue, 19 Aug 2008 15:03:56 +0000 (00:03 +0900)]
update Hacking_of_LHa
Koji Arai [Mon, 4 Aug 2008 14:41:41 +0000 (23:41 +0900)]
* src/larc.c (decode_start_lz5): should use the dtext[] instead of the text[].
* src/lha.h (dtext): defined as global variable.
* src/slide.c (decode): ditto.
Koji Arai [Sun, 3 Aug 2008 12:48:49 +0000 (21:48 +0900)]
Merge branch 'master' of ssh://kuro-box/home/arai/public_html/lha
Koji Arai [Sun, 3 Aug 2008 12:45:08 +0000 (21:45 +0900)]
Merge branch 'master' of /home/arai/public_html/lha
Koji Arai [Sun, 3 Aug 2008 01:58:56 +0000 (10:58 +0900)]
* src/header.c (convert_filename): Fixed a bug:
If the utf8 is specified for the --system-kanji-code and the path
separator is used with the backslash (0x5c) in archive (level 0
header is used 0x5c as path separator), when extracting, it has been
converted to the U+00A5 (yen sign) instead of the slash (0x2f).
Koji Arai [Wed, 16 Jul 2008 14:44:24 +0000 (23:44 +0900)]
update Hacking_of_LHa
Koji Arai [Tue, 15 Jul 2008 13:13:12 +0000 (22:13 +0900)]
update Hacking_of_LHa
Koji Arai [Wed, 25 Jun 2008 13:22:01 +0000 (22:22 +0900)]
update Hacking_of_LHa
Koji Arai [Tue, 24 Jun 2008 14:03:31 +0000 (23:03 +0900)]
update Hacking_of_LHa
Koji Arai [Wed, 14 May 2008 15:05:49 +0000 (00:05 +0900)]
The -t command should not affect extracting file attributes.
Koji Arai [Fri, 2 May 2008 15:02:02 +0000 (00:02 +0900)]
added a long option --debug=dumplzss which display debugging information for the LZSS.
arai [Mon, 10 Mar 2008 14:58:32 +0000 (14:58 +0000)]
add_dirinfo() no longer suppose that contents of the LZH archive is sorted by pathname.
* src/lhext.c (add_dirinfo): no longer suppose that contents of the LZH archive is sorted by pathname.
* tests/lha-test18: added tests for above.
* src/lharc.c (parse_suboption): added debugging option `--debug=nosort' and `--debug=norecursion'
for above tests.
* src/lha.h: added two global variables for above options: sort_contents, recursive_archiving;
* src/lharc.c (init_variable): ditto.
(sort_files): no sort arguments with --debug=nosort.
(find_files): no sort directory entries with --debug=nosort.
* src/lhadd.c (append_it): non-sorted and non-recursive archiving with --debug=nosort and --debug=norecursion.
* src/lhadd.c (remove_one): should use the message() instead of printf().
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@890
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sat, 8 Mar 2008 17:15:12 +0000 (17:15 +0000)]
man/lha.1: correct the description about the -m command.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@889
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Wed, 5 Mar 2008 22:23:46 +0000 (22:23 +0000)]
man/lha.1 was changed a little and the BUGS section was removed.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@888
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Wed, 5 Mar 2008 22:23:40 +0000 (22:23 +0000)]
man/lha.1 was corrected by Stanislav Brabec.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@887
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Wed, 5 Mar 2008 22:23:34 +0000 (22:23 +0000)]
should treat "-ab" as "-a -b" for shortopts="-a[0123]b".
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@886
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 2 Mar 2008 10:21:47 +0000 (10:21 +0000)]
man/lha.1 is refined
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@885
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 2 Mar 2008 10:21:41 +0000 (10:21 +0000)]
should remove duplicated slash
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@884
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 2 Mar 2008 10:21:36 +0000 (10:21 +0000)]
added new manual page in English.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@883
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 2 Mar 2008 10:21:31 +0000 (10:21 +0000)]
correct English
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@882
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sat, 16 Feb 2008 19:29:22 +0000 (19:29 +0000)]
fixed.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@881
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sat, 16 Feb 2008 19:12:23 +0000 (19:12 +0000)]
could not extract files under readonly directories.
% chmod 555 foo
% ls -ld foo foo/bar
dr-xr-xr-x 2 arai arai 4096 Jan 5 03:30 foo/
-rw-r--r-- 1 arai arai 0 Jan 5 03:30 foo/bar
% lha c foo.lzh foo
% lha x foo.lzh -w baz
LHa: Error: Cannot extract a file "baz/foo/bar"
Please enter the commit message for your changes.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@880
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Tue, 5 Feb 2008 21:30:09 +0000 (21:30 +0000)]
make it possible to add archive suffixes.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@879
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 9 Sep 2007 14:48:39 +0000 (14:48 +0000)]
the function `put_longword()' should be used the ANSI-C declaration for 64-bits off_t type.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@878
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sat, 8 Sep 2007 20:20:29 +0000 (20:20 +0000)]
Added tests for extract large files.
Added two tests for extract 2G and 4G over files.
These are not performed in default, because it will be take a long time.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@877
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sat, 8 Sep 2007 20:20:29 +0000 (20:20 +0000)]
Fix a bug: Could not extract 2G over files.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@876
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Wed, 5 Sep 2007 14:54:37 +0000 (14:54 +0000)]
00readme.autoconf: Added description for the -b switch which extract MacBinaries.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@875
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Tue, 4 Sep 2007 15:06:18 +0000 (15:06 +0000)]
use the length modifier `ll' (%llu) for printing 64bit value.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@874
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Tue, 4 Sep 2007 11:08:21 +0000 (11:08 +0000)]
update prototypes.h using cproto
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@873
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Tue, 4 Sep 2007 10:58:15 +0000 (10:58 +0000)]
possible to extract 4G over files
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@872
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Wed, 23 May 2007 15:04:10 +0000 (15:04 +0000)]
test script was improved.
* tests/lha-test.in: added an optional numeric command-line argument, and a command-line switch -n.
when the numeric argument is specified, only the testsuite is performed.
and the -n switch is specified, it is not made cleanup trash files which is result of the test.
* tests/lha-test11: On MS-Windows, should consider the length of current path.
* tests/lha-test11: On MS-Windows, if current directory is too deep, skip this test.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@871
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Wed, 23 May 2007 15:04:10 +0000 (15:04 +0000)]
Added an option ignoring Mac specific files
The option -X was deprecated.
In place of it, added a long option --ignore-mac-files which ignore
Mac specific files ._*, .DS_Store and Icon\r when the archive is
created. Thanks to Hiroto Sakai.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@870
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Wed, 23 May 2007 15:04:09 +0000 (15:04 +0000)]
.gitignore added for the Git.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@869
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 20 May 2007 14:38:32 +0000 (14:38 +0000)]
Fixed file permission
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@868
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 20 May 2007 14:17:59 +0000 (14:17 +0000)]
* tests/lha-test12: should not use the raw CR code.
(when checkout from SVN repos, raw CR code is removed.)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@867
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sat, 24 Feb 2007 15:04:03 +0000 (15:04 +0000)]
* src/lharc.c (print_tiny_usage, parse_suboption): added a long
option "--traditional". it is just the same
"--convert-filename-case" for the present.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@866
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sat, 24 Feb 2007 14:35:57 +0000 (14:35 +0000)]
* src/header.c (get_header): the variable "noconvertcase" changed
to "convertcase".
it means that this LHa does not convert filename case automatically.
* src/lha.h: ditto.
* src/lharc.c (init_variable): ditto.
* src/lharc.c (print_tiny_usage, parse_suboption): added a long
option "--convert-filename-case" that change to the old behavior.
* src/lharc.c (print_usage, parse_suboption): the "g" option has
no meaning when extracting.
* src/header.c (write_header): no upcase filename when the generic
archive creating.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@865
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sat, 24 Feb 2007 11:13:58 +0000 (11:13 +0000)]
* configure.ac: updated version.
* src/lharc.c (print_usage): updated.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@863
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sat, 24 Feb 2007 10:13:22 +0000 (10:13 +0000)]
* src/header.c (copy_path_element, remove_dots, init_header):
should treat "foo" and "./foo" as same file, so remove "./" from
archived path name.
* tests/Makefile.am, tests/lha-test.in, tests/lha-test17:
added tests for the removing relative path.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@862
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sat, 24 Feb 2007 10:05:10 +0000 (10:05 +0000)]
*** empty log message ***
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@861
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Tue, 17 Oct 2006 16:16:48 +0000 (16:16 +0000)]
* src/lha_macro.h (MIN): newly added a macro for below.
* maketbl.c (make_table): applied the security patch for the
CVE-2006-4335 and CVE-2006-4337.
* huf.c (read_pt_len, read_c_len, decode_c_st1, decode_p_st1):
applied the security patch for the CVE-2006-4338.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@860
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 8 Oct 2006 18:00:56 +0000 (18:00 +0000)]
*** empty log message ***
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@856
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 8 Oct 2006 17:45:45 +0000 (17:45 +0000)]
*** empty log message ***
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@855
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 8 Oct 2006 17:44:55 +0000 (17:44 +0000)]
* lha-test.in: the function local variable `$status' is treated as
the builtin variable on the Zsh version 4.3.2, so it was renamed to
$exit_status.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@854
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 8 Oct 2006 17:36:42 +0000 (17:36 +0000)]
added tests for the header CRC
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@853
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 8 Oct 2006 15:05:54 +0000 (15:05 +0000)]
*** empty log message ***
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@852
6a8cc165-1e22-0410-a132-
eb4e3f353aba
arai [Sun, 8 Oct 2006 14:43:18 +0000 (14:43 +0000)]
*** empty log message ***
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@851
6a8cc165-1e22-0410-a132-
eb4e3f353aba