cvs2cl for latest entries.

--HG--
branch : HEAD
diff --git a/ChangeLog b/ChangeLog
index 706d358..534af90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,266 @@
+2006-04-23 20:47  Dieter Baron  <dillo@danbala.tuwien.ac.at>
+
+	* lib/zip_open.c, src/zipcmp.c: Only check for garbage at end of
+	  file when ZIP_CHECKCONS.
+
+2006-04-23 20:47  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* configure.ac: Bump to 0.6.1d for another test release.
+
+2006-04-23 18:38  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* NEWS: Document comment support.
+
+2006-04-23 18:37  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/libzip.man: regen.
+
+2006-04-23 18:37  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/libzip.mdoc: Link zip_unchange_archive.
+
+2006-04-23 18:36  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/zip.h: Add zip_unchange_archive.
+
+2006-04-23 18:35  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* TODO: Another TODO done.
+
+2006-04-23 18:11  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/zip_get_archive_comment.c: We do not check za for NULL
+	  elsewhere, so do not check it here either.
+
+2006-04-23 18:11  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/zip_close.c: Avoid _zip_memdup of NULL.
+
+2006-04-23 17:26  Dieter Baron  <dillo@danbala.tuwien.ac.at>
+
+	* lib/: zip_set_archive_comment.c, zip_set_file_comment.c: Use
+	  _zip_memdup.
+
+2006-04-23 17:03  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/: zip_set_archive_comment.man, zip_set_file_comment.man:
+	  regen.
+
+2006-04-23 16:57  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/: zip_set_archive_comment.mdoc, zip_set_file_comment.mdoc:
+	  Drop trailing whitespace.
+
+2006-04-23 16:55  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/zip_source_free.man: regen.
+
+2006-04-23 16:55  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/zip_source_free.mdoc: Document that it should not be called
+	  after a successful zip_add or zip_replace.
+
+2006-04-23 16:52  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* TODO: UNISTD_H done.
+
+2006-04-23 16:51  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/mkstemp.c, lib/zip_close.c, lib/zip_dirent.c,
+	  lib/zip_file_get_offset.c, src/zipcmp.c: Remove unneeded
+	  inclusion of unistd.h.  Tested on Darwin, Irix, NetBSD, Solaris.
+
+2006-04-23 16:51  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* src/zipmerge.c: Test for HAVE_UNISTD_H before including it.
+
+2006-04-23 16:50  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/zip_source_buffer.c: Unsigned fix for Irix cc.
+
+2006-04-23 16:50  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/zip_open.c: Unsigned fix for Irix cc. Remove unneeded
+	  inclusion of unistd.h.
+
+2006-04-23 16:49  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/zip_fread.c: unsigned fix for Irix cc.
+
+2006-04-23 16:49  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* configure.ac: Check for unistd.h.
+
+2006-04-23 16:33  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* regress/Makefile.am: Set path to zipcmp in environment.
+
+2006-04-23 16:17  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* regress/get_comment.c: Only print len characters from file
+	  comment.
+
+2006-04-23 16:13  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* regress/Makefile.am: Add another zip file.
+
+2006-04-23 15:55  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* regress/: set_comment_all.c, set_comment_localonly.c,
+	  set_comment_removeglobal.c, set_comment_revert.c: Remove unused
+	  variables found by Irix cc.
+
+2006-04-23 15:33  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* TODO: Remove comment related stuff.
+
+2006-04-23 15:30  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/zip_unchange_archive.man: Add.
+
+2006-04-23 15:30  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/: zip_get_archive_comment.man, zip_get_file_comment.man,
+	  zip_unchange.man, zip_unchange_all.man: regen
+
+2006-04-23 15:30  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/Makefile.am: Add zip_unchange_archive.
+
+2006-04-23 15:28  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* regress/: set_comment_all.c, set_comment_localonly.c,
+	  set_comment_revert.c: Correct comment.
+
+2006-04-23 15:28  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* regress/: Makefile.am, set_comment_removeglobal.c,
+	  set_comment_removeglobal.test, testcommentremoved.zip: Add test
+	  for removing archive comment.
+
+2006-04-23 15:21  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/zip_unchange.c, regress/Makefile.am,
+	  regress/set_comment_revert.c, regress/set_comment_revert.test:
+	  Add test for comment reverting via zip_unchange_all, and fix a
+	  bug it found.
+
+2006-04-23 15:14  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/Makefile.am, lib/zip_unchange_all.c,
+	  lib/zip_unchange_archive.c, man/zip_unchange.mdoc,
+	  man/zip_unchange_all.mdoc, man/zip_unchange_archive.mdoc: Add
+	  zip_unchange_archive.
+
+2006-04-23 15:06  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/zip.h, lib/zip_get_archive_comment.c,
+	  lib/zip_get_file_comment.c, man/zip_get_archive_comment.mdoc,
+	  man/zip_get_file_comment.mdoc, regress/Makefile.am,
+	  regress/get_comment.c: Add flags argument to zip_get_*_comment,
+	  requested by dillo.
+
+2006-04-23 15:06  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/zip_set_file_comment.c: Test idx argument validity.
+
+2006-04-23 15:05  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/zip_close.c: Improve some comments, and remove a superfluous
+	  free.
+
+2006-04-23 14:50  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/: libzip.man, zip_error_get.man, zip_get_archive_comment.man,
+	  zip_get_file_comment.man, zip_get_name.man,
+	  zip_set_archive_comment.man, zip_set_file_comment.man: regen
+
+2006-04-23 14:50  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/libzip.mdoc: Link zip_set_{archive,file}_comment. Bump date.
+
+2006-04-23 14:47  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/: Makefile.am, zip_set_archive_comment.mdoc,
+	  zip_set_file_comment.mdoc: Document
+	  zip_set_{archive,file}_comment.
+
+2006-04-23 14:45  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/zip_get_file_comment.mdoc: Bump date for previous.
+
+2006-04-23 14:44  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* man/: zip_get_file_comment.mdoc, zip_error_get.mdoc: Consistency
+	  in argument naming.
+
+2006-04-23 14:28  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* regress/: set_comment_localonly.c, testchangedlocal.zip: Test
+	  removing file comments too.
+
+2006-04-23 14:25  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* regress/: Makefile.am, set_comment.c, set_comment.test,
+	  set_comment_all.c, set_comment_all.test, set_comment_localonly.c,
+	  set_comment_localonly.test, testchangedlocal.zip: Rename
+	  set_comment to set_comment_all, testing changing both global and
+	  local comments.  Add test set_comment_localonly, testing changing
+	  only local comments.
+
+2006-04-23 12:13  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/zip_close.c: Put from code from zip_close in separate
+	  functions.
+
+2006-04-23 11:25  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/zip_close.c: Handle malloc/free correctly. Add some comments.
+
+2006-04-23 02:40  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/: Makefile.am, zip.h, zip_close.c, zip_get_archive_comment.c,
+	  zip_memdup.c, zip_new.c, zip_open.c, zip_set_archive_comment.c,
+	  zip_set_file_comment.c, zip_unchange_all.c, zipint.h:
+	  set_*_comment support.  XXX: there's a double free somewhere, but
+	  I currently don't find its cause
+
+2006-04-23 02:39  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* regress/: Makefile.am, comment.c, comment.test, get_comment.c,
+	  get_comment.test, set_comment.c, set_comment.test,
+	  testchanged.zip: Add test for writing comments.  Rename previous
+	  "comment" test to "get_comment" to make clear it's for reading.
+
+2006-04-23 02:38  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* regress/: add_from_buffer.test, add_from_file.test,
+	  add_from_filep.test, fread.test, name_locate.test, open.test:
+	  Adapt for runtest update.
+
+2006-04-23 02:38  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* regress/runtest: Sync with 1.22 from ckmame.
+
+2006-04-09 23:45  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* TODO: Add some API ideas.
+
+2006-04-09 21:05  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
+
+	* lib/Makefile.am, lib/zip.h, lib/zip_entry_free.c,
+	  lib/zip_entry_new.c, lib/zip_get_archive_comment.c,
+	  lib/zip_get_file_comment.c, lib/zip_open.c, lib/zip_unchange.c,
+	  lib/zip_unchange_all.c, lib/zipint.h, man/Makefile.am,
+	  man/libzip.mdoc, man/zip_get_archive_comment.mdoc,
+	  man/zip_get_file_comment.mdoc, regress/Makefile.am,
+	  regress/comment.c, regress/comment.test, regress/testcomment.zip:
+	  Add read-only comment support: zip_get_file_comment to get the
+	  comment for a file zip_get_archive_comment to get the comment for
+	  the whole zip archive
+
+	  Add documentation and regression test.
+
 2006-04-09  Thomas Klausner  <wiz@danbala.tuwien.ac.at>
 
 	* lib/zip_replace.c (_zip_replace): return idx of changed file,