OSDN Git Service

add_dirinfo() no longer suppose that contents of the LZH archive is sorted by pathname.
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Mon, 10 Mar 2008 14:58:32 +0000 (14:58 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Mon, 10 Mar 2008 14:58:32 +0000 (14:58 +0000)
commit7310b2088a8d9cb6c9e9bca3444e225c839182ff
treeb682aaabf00b2b31eccdbc63d689bae9cf83f215
parent92825bfe04146266c420614fa570ab443499c5a5
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
ChangeLog
src/lha.h
src/lhadd.c
src/lharc.c
src/lhext.c
tests/lha-test18