Imported Upstream version 2.5.0
[debian/amanda] / ChangeLog
index db19ab8e25c082666d32d95fe04f5d14b502f6c1..4da905bfe5187d0411b059ec3eabd756ea5ff476 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2006-03-28  Jean-Louis Martineau <martineau@zmanda.com>
+       * Amanda 2.5.0 released.
+       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0).
+       * NEWS: Update for 2.5.0
+
+2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/dumper.c: wait for compress/index/encryp subprocess.
+
+2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/amstatus.pl.in: Parse PARTIAL reply.
+
+2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/driver.c: Put '#define HOLD_DEBUG' in comment.
+
+2006-03-21  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/chunker.c: Don't loop on startup_chunker.
+       * server-src/dumper.c: Don't wait for all children, some process (ssh)
+         might not terminate.
+
+2006-03-17  Ian Turner <ian@zmanda.com>
+       * server-src/taper.c (read_file): When finished flushing a 
+         chunked dump, print information about the whole dump, not just 
+         the last chunk. Also, fix some memory leaks.
+
+2006-03-16  Kevin Till <ktill@zmanda.com>
+       * server-src/amverify.sh.in: check for EOI. amrestore only 
+         reports EOI for some tapetypes.
+
+2006-03-15  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/conffile.c: Fix heritage of auth.
+
+2006-03-14  Kevin Till <ktill@@zmanda.com>
+       * example/amanda.conf.in: add dumptype custom-compress. 
+         add ssh,krb5 as valid input for auth. 
+        * man/xml-source/amanda.conf.5.xml: give reference to 
+         custom-compress, encrypt-fast dumptypes.
+
+2006-03-14  Jean-Louis Martineau <martineau@zmanda.com>
+       * common-src/amfeatures.h: Rename fe_amidxtaped_FEEDME to
+                                         fe_amrecover_FEEDME
+       * common-src/amfeatures.c (am_init_feature_set): Set
+                                                        fe_amrecover_FEEDME.
+       * restore-src/restore.h (search_tapes): Add their_features parameter.
+       * restore-src/amfetchdump.c: Add NULL pointer to search_tapes call.
+       * restore-src/amidxtaped.c: Add their_features to search_tapes call.
+       * restore-src/restore.c (search_tapes): Send FEEDME only if client
+                                               support it.
+
+2006-03-11  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/driverio.c : Fix errors found using Coverity tools.
+
+2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/taperscan.c: Fix Coverity fix.
+
+2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
+       * changer-src/scsi-changer-driver.c:
+                                        Fix errors found using Coverity tools.
+       * server-src/diskfile.c: Fix errors found using Coverity tools.
+       * server-src/planner.c: Fix errors found using Coverity tools.
+       * server-src/taperscan.c: Fix errors found using Coverity tools.
+
+2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/driverio.c: Undo my bad fix.
+       * server-src/infofile.c: Fix errors found using Coverity tools.
+       * tape-src/tapetype.c: Fix errors found using Coverity tools.
+
+2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
+       * restore-src/restore.c: Fix errors found using Coverity tools.
+
+2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/holding.c: Fix John fix.
+
+2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/driverio.c: Fix errors found using Coverity tools.
+       * server-src/planner.c: Fix John fix.
+
+2006-03-09  John Franks <jrfranks@zmanda.com>
+       * changer-src/chg-scsi.c:        Fix errors found using Coverity tools.
+       * changer-src/scsi-changer-driver.c:
+                                        Fix errors found using Coverity tools.
+       * changer-src/sense.c:           Fix errors found using Coverity tools.
+       * client-src/sendbackup-dump.c:  Fix errors found using Coverity tools.
+       * client-src/sendbackup.c:       Fix errors found using Coverity tools.
+       * recover-src/display_commands.c:Fix errors found using Coverity tools.
+       * regex-src/regcomp.c:           Fix errors found using Coverity tools.
+       * restore-src/restore.c:         Fix errors found using Coverity tools.
+       * server-src/amindexd.c:         Fix errors found using Coverity tools.
+       * server-src/diskfile.c:         Fix errors found using Coverity tools.
+       * server-src/driver.c:           Fix errors found using Coverity tools.
+       * server-src/driverio.c:         Fix errors found using Coverity tools.
+       * server-src/infofile.c:         Fix errors found using Coverity tools.
+       * server-src/planner.c:          Fix errors found using Coverity tools.
+       * server-src/taper.c:            Fix errors found using Coverity tools.
+       * server-src/taperscan.c:        Fix errors found using Coverity tools.
+       * server-src/conffile.c:         Change report default to use at least
+                                        one space between every column.
+
+2006-03-08  Jean-Louis Martineau <martineau@zmanda.com>
+       * client-src/amandad.c: Fix coverity bug.
+       * client-src/calcsize.c: Fix coverity bug.
+       * client-src/client_util.c: Fix coverity bug.
+       * client-src/sendbackup.c: Fix coverity bug.
+       * client-src/sendsize.c: Fix coverity bug.
+       * common-src/bsd-security.c: Fix coverity bug.
+       * common-src/file.c: Fix coverity bug.
+       * common-src/fileheader.c: Fix coverity bug.
+       * common-src/pipespawn.c: Fix coverity bug.
+       * recover-src/extract_list.c: Fix coverity bug.
+       * restore-src/restore.c: Fix coverity bug.
+       * server-src/amindexd.c: Fix coverity bug.
+       * server-src/conffile.c: Fix coverity bug.
+       * server-src/diskfile.c: Fix coverity bug.
+       * server-src/driverio.c: Fix coverity bug.
+       * server-src/dumper.c: Fix coverity bug.
+       * server-src/planner.c: Fix coverity bug.
+       * server-src/reporter.c: Fix coverity bug.
+
+2006-03-07  Paddy Sreenivasan <paddy@zmanda.com>
+       * man/xml-source/amanda.8.xml: added amaespipe and amcrypt.
+
+2006-03-07  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/taper.c: Don't log a multi-line message in no-tape case.
+
+2006-03-06  John Franks <jrfranks@zmanda.com>
+       * recover-src/extract_list.c:
+         1) Don't add '.' directory twice to tar extract list.
+         2) Don't prepend extra '/' to extract patterns starting with '/'.
+          3) Convert "/" extract pattern to "*" equivalent.
+
+2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/taperscan.c (scan_slot): append slotstr to
+         ct->error_message.
+       * server-src/taperscan.c: Add a '\n' after each slot error message.
+
+2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/reporter.c (handle_error): Handle error from taper.
+
+2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/taper.c (label_tape): Set errstr and return 0 if no
+         valid tape are available.
+
+2006-03-03  Ian Turner <ian@zmanda.com>
+       * common-src/amanda.h: New macros MAX_TAPE_LABEL_LEN and 
+         MAX_TAPE_LABEL_BUF.
+       * common-src/amfeatures.h: New amfeature fe_amidxtaped_FEEDME
+       * recover-src/extract_list.c: Accept port number with CONNECT; 
+         implement fe_amidxtaped_FEEDME.
+       * restore-src/amidxtaped.c: Introduce port number with CONNECT. 
+         (closes SF bug 1431623)
+       * restore-src/restore.c: Implement fe_amidxtaped_FEEDME.
+         (closes SF bug 1421433)
+       * restore-src/restore.h: Properly name rst_flags.
+
+2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
+       * common-src/bsd-security.c (bsd_connect, netfd_read_callback, main):
+         Set bh->proto_handle to NULL after allocating bh.
+       * common-src/bsd-security.c (bsd_close): Donothing if
+         bh->proto_handle == NULL.
+
+2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
+       * common-src/protocol.c (s_repwait): Decrease p->timeout on receive
+                                            of a PREP.
+
+2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/driver.c: Print dumper TRY_AGAIN message.
+
+2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/planner.c: Don't print estimate size if estimate failed.
+
+2006-02-25  Ian Turner <ian@zmanda.com>
+       * man/Makefile.am: Don't use static patterns (as they are not 
+         portable), use implicit rules instead.
+
+2006-02-20  Kevin Till <ktill@zmanda.com>
+       * common-src/krb4-security.c: changes needed for krb4/5 to compile. Thanks to
+                                     Orion Poplawski.
+       * common-src/krb5-security.c: ditto.
+
+2006-02-16  Kevin Till <ktill@zmanda.com>
+       * example/amanda.conf.in: dumptype option is "encrypt"
+       * man/xml-source/amanda.conf.5.xml: ditto
+       * server-src/holding.c: util.h is include'd twice
+       * common-src/ssh-security.c: set correct debug print 
+
+2006-02-10  Kevin Till <ktill@zmanda.com>
+       * man/xml-source/amanda.8.xml: replace informaltable with literallayout 
+
+2006-02-13  John Franks <jrfranks@zmanda.com>
+       * server-src/driver.c: Pring a more precise message when taper
+         returns an error.  Include error message from taper in log.
+         Print out "protocol error" if taper returns a bogus command.
+
+2006-02-10  Kevin Till <ktill@zmanda.com>
+       * man/xml-source/amanda.conf.5.xml: add note about first character of a 
+                       tapetype string must be alphabet
+
+2006-02-10  John Franks <jrfranks@zmanda.com>
+       * server-src/taper.c: Call error() if an invalid string is read
+         by syncpipe_getstr().
+2006-02-09  John Franks <jrfranks@zmanda.com>
+       * Makefile.am, */Makefile.am:  Corrections generated by David Braun
+         dustybird@users.sourceforge.net to properly set source directories
+         for remote (VPATH) builds.
+       * man/Makefile.am:  Fixed man page builds to use proper source and
+         build paths.
+       * autogen: Force rebuilding everything and print only syntax errors.
+         (Errors are seen occasionally in system autogen files...)
+       * configure.in: Eliminate possibility of empty string in shell tests.
+         fix quoting of '[' and ']' characters in help messages.
+         Fix default value for DUMPER_DIR to pick up EPREFIX correctly.
+2006-02-08  Ian Turner <ian@zmanda.com>
+       * server-src/driver.c (handle_taper_result): Properly handle 
+         SPLIT_NEEDNEXT case. Thanks to Josef Wolf for finding this bug.
+         Also reindent.
+
+2006-02-06 Kevin Till <ktill@zmanda.com> 
+       * restore-src/restore.c: fix comment formatting on version 1.2.1
+
+2006-02-06 Kevin Till <ktill@zmanda.com>
+       * configure.in: Bug 1423731, SSH_SECURITY set only when --with-ssh-security used
+       * server-src/Makefile.am:: not to install planner/dumper setuid-root --with-ssh-security
+       * server-src/amcheck.c:    ditto
+       * server-src/dumper.c:     ditto
+       * restore-src/restore.c:    add missing "}"
+       
+2006-02-06  Ian Turner <ian@zmanda.com>
+       * restore-src/amidxtaped.c: Properly handle changers, 
+         tape-label checking, and tape prompting in amrecover, 
+         amindexd, and amidextaped. Thanks to Paul Bijnens 
+         <pbijnens@users.sourceforge.net> for the patch.
+       * restore-src/restore.c: ditto.
+       * server-src/amindexd.c: ditto.
+
+2006-02-04  Paddy Sreenivasan <paddy@zmanda.com>
+        * man/xml-source/amfetchdump.8.xml
+        * man/xml-source/amcrypt.8.xml
+        * man/xml-source/amanda.conf.5.xml
+        * man/xml-source/amanda.8.xml
+        * man/xml-source/amaespipe.8.xml
+        * man/entities/global.entities: Merged changes from xml-docs tree
+
+2006-02-03  John Franks <jrfranks@zmanda.com>
+       * server-src/taper.c: Fix null string printout in CHUNKERSUCCESS log line.
+
+2006-02-03  Ian Turner <ian@zmanda.com>
+       * server-src/amadmin.c (main): Don't free conf_tapelist too 
+         early. Thanks to Cédric Lucantis
+         <cedric-lucantis@users.sourceforge.net> for the patch.
+
+2006-02-02 Kevin Till <ktill@zmanda.com>
+       * man/xml-source/amanda.8.xml: fix formatting. <informaltable> problem 
+                                      to be fixed.
+       * man/xml-source/amrecover.8.xml: add note on client-encrypted tapes.
+
+2006-02-02  Ian Turner <ian@zmanda.com>
+       * recover-src/extract_list.c (extract_files_child): Run tar with 
+         --numeric-owner if we are extracting a non-sambafied tar file. 
+         Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for 
+         the patch. Thanks also to Mark Schaefer for suggesting this 
+         change.
+
+2006-02-01  Jean-Louis Martineau <martineau@zmanda.com>
+       * restore-src/restore.c: Use OFF_T_FMT to printf off_t variable,
+         cast size_t to am64_t and use AM64_FMT to printf them.
+
+2006-01-31  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/driver.c (dumper_result): Reset sched(dp)->attempted to 0
+         before adding it to tapeq.
+
+2006-01-27  Ian Turner <ian@zmanda.com>
+       * configure.in: Add new option --without-xsltproc (and
+         --with-xsltproc), which turns off (or forces) the use of xsltproc to
+         build manpages. Thanks to Paul Bijnens
+         <pbijnens@users.sourceforge.net> for suggesting this feature.
+
+2006-01-27  Ian Turner <ian@zmanda.com>
+       * restore-src/amfetchdump.c: Properly clean up logfiles. Also, 
+         run as user amanda even if we are started as some other user.
+         Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for the 
+         patch.
+
+2006-01-25  Paddy Sreenivasan <paddy@zmanda.com>
+        * common-src/amanda.h:     Removed unnecessary header include files.
+
+2006-01-25  Kevin Till<ktill@zmanda.com>
+       * server-src/amadmin.c: fix for sourceforge bug 1412698
+                               add missing parameters to "amadmin x disklist"
+       * server-src/amstatus.pl.in: untaint user input, enforce known path.
+       * server-src/amoverview.pl.in: untaint user input (bug 1353481)
+
+2006-01-25  Kevin Till<ktill@zmanda.com>
+       * man/xml-source/amanda.conf.5.xml: fix formatting (<para> is not compatible 
+                                           with some tag) add supported auth types.
+
+2006-01-25  Kevin Till<ktill@zmanda.com>
+       * common-src/bsd-security.c: move check_security to bsd_security.c, 
+                                     fix faulty return
+                                    Thanks to Paul Bijnens
+       * restore-src/amidxtaped.c:  ditto
+       * server-src/amindexd.c:     ditto and no need to tell client 
+                                     about reason for denial
+       * common-src/amanda.h:       add proto of check_security
+       * server-src/conffile.c:     don't list CRYPT in the summary report 
+                                     for now
+       * restore-src/restore.c:     set outfd correctly for amfetchdump cases
+                                    Thanks to Paul Bijnens
+
+2006-01-24  Ian Turner <ian@zmanda.com>
+       * man/xml-source/amanda.conf.5.xml: Put documentation of 
+         split-dump options in the right place. Thanks to Paul Bijnens 
+         <pbijnens@users.sourceforge.net> for the fix.
+       * man/xml-source/amanda.8.xml: ditto.
+
+2006-01-23  Ian Turner <ian@zmanda.com>
+       * server-src/taperscan.c (find_brand_new_tape_label): Start 
+         brand new tape labels at 1 instead of 0. Thanks to Paul 
+         Bijnens <pbijnens@users.sourceforge.net> for the fix.
+
+2006-01-18  Jean-Louis Martineau <martineau@zmanda.com>
+       * Amanda 2.5.0b2 released.
+       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b2).
+       * NEWS: Update for 2.5.0b2
+       
+2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/disk_history.c: Fix memory leak.
+
+2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
+       * common-src/bsd-security.c: Fix memory leak.
+       * common-src/tapelist.c: Fix memory leak.
+       * restore-src/amidxtaped.c: Fix memory leak.
+       * restore-src/restore.c: Fix memory leak.
+       * server-src/amindexd.c: Fix memory leak.
+       * server-src/conffile.c: Fix memory leak.
+       * server-src/disk_history.c: Fix memory leak.
+       * server-src/find.c: Fix memory leak.
+
+2006-01-13  John Franks <jrfranks@zmanda.com>
+       * client-src/amandad.c:      Remove SO_LINGER and TCP_NDELAY.
+                                    Loop on I/O if EINTR or EAGAIN.
+       * client-src/noop.c:         Loop on I/O if EINTR or EAGAIN.
+       * client-src/sendbackup.c:   Remove SIGPIPE handler.
+                                    Loop on I/O if EINTR or EAGAIN.
+                                    Check for EPIPE on writes.
+       * common-src/bsd-security.c: Loop on I/O if EINTR or EAGAIN.
+       * common-src/stream.c:       Remove SO_LINGER and TCP_NDELAY.
+       * common-src/util.c:         Loop on I/O if EINTR or EAGAIN.
+       * recover-src/amrecover.c:   Write commanda atomically in sigint handler
+       * recover-src/extract_list.c:Remove SIGPIPE handler.
+                                    Loop on I/O if EINTR or EAGAIN.
+                                    Check for EPIPE on writes.
+                                    Remove shutdown functions.
+       * restore-src/amfetchdump.c: Remove SIGPIPE handler.
+       * restore-src/amidxtaped.c:  Remove SO_LINGER and TCP_NDELAY.
+                                    Remove SIGPIPE handler.
+                                    read_file_header does not return if it
+                                    Fix infinite loop on EOF or error and
+                                    fail if memory reallocation failure in
+                                    get_client_line_fd.
+       * restore-src/restore.c:     Remove SIGPIPE handler.
+                                    Loop on I/O if EINTR or EAGAIN.
+                                    Remove shutdown functions.
+                                    Simplify read loop.
+       * restore-src/restore.h:     Change read_file_header to return void
+       * server-src/amcheck.c:      Use fullread() to handel EINTR etc.
+                                    Remove unused variable.
+       * server-src/changer.c:      Remove SO_LINGER and TCP_NDELAY.
+                                     Use fullwrite on socket.
+       * server-src/driverio.c:     Remove SO_LINGER and TCP_NDELAY.
+       * server-src/taper.c:        Use fullwrite() to write data.
+                                    Use fullread() to read data.
+       * tape-src/output-file.c;    Use fullwrite() to write data.
+
+2006-01-13  Jean-Louis Martineau <martineau@zmanda.com>
+       * server-src/amcheck.c (start_server_check): Remove unused variable
+         errstr.
+       * restore-src/restore.c (restore): Remove unused variable s, l and
+         dataeof.
+
+2006-01-12  Jean-Louis Martineau <martineau@zmanda.com>
+       * recover-src/extract_list.c (send_to_tape_server): Do only on write.
+       * restore-src/amidxtaped.c (get_client_line_fd): New function to read
+         one complete line from an fd.
+
+2006-01-09  John Franks <jrfranks@zmanda.com>
+       * common-src/amanda.h:  Include tcp.h
+       * client-src/amandad.c: Set TCP_NODELAY and SO_LINGER on sockets.
+       * common-src/dgram.c:   No linger on datagrams
+       * common-src/stream.c:  Set TCP_NODELAY and SO_LINGER on sockets.
+       * common-src/util.c:    Fix fullwrite to return # of bytes written
+                               before failure.
+       * example/amanda.conf.in: Cleanup exclude list template.
+                               Use configure directlries instead of /usr/local
+       * recover-src/extract_list.c: Cleanup read loops.
+                               Use real fullwrite instead of inline versions.
+                               Remove extra setting of LINGER on socket.
+       * restore-src/amidxtaped.c: Set TCP_NODELAY and SO_LINGER on sockets.
+       * restore-src/restore.c:Use real fullwrite instead of inline versions.
+       * server-src/changer.c: Set TCP_NODELAY and SO_LINGER on sockets.
+       * server-src/chunker.c: Use real fullwrite instead of inline versions.
+       * server-src/driverio.c:Set TCP_NODELAY and SO_LINGER on sockets.
+       * server-src/dumper.c:  Use real fullwrite instead of inline versions.
+
+2006-01-09  Ian Turner <ian@zmanda.com>
+       * changer-src/scsi-changer-driver.c: If there is a problem opening
+         the device during GenericRewind, don't retry for 201 minutes; give
+         up after only 200 seconds.
+
+2006-01-09  Ian Turner <ian@zmanda.com>
+       * server-src/taperscan.c: When doing taper-scan algorithm, properly
+         accept new tapes.
+
+2006-01-09  Ian Turner <ian@zmanda.com>
+       * tape-src/tapeio.c: Generate a more reasonable message when
+       reading an empty tape label on brand-new tapes.
+
+2006-01-09  Ian Turner <ian@zmanda.com>
+       * server-src/amcheck.c: Actually do what the documentation for 
+         amcheck -w says; that is, overwrite labels on tapes.
+
+2006-01-06  Kevin Till<ktill@zmanda.com>
+       * server-src/amcheck.c: check if encrypt or compress program is 
+         executable. Check encrypt/compress configuration.
+       * server-src/dumper.c: kill encrypt child when dump is stopped
+       * server-src/amcrypt.sh.in: check for aespipe
+       * server-src/amaespipe.sh.in: adjust PATH
+       * man/xml-source/amtapetype.8.xml: fix format problem.
+
+2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
+       * recover-src/extract-list.c: Remove 'U' argument for gtar extraction.
+
+2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
+       * restore-src/restore.c (flush_open_outputs): Another shutdown is
+         required.
+
+2006-01-05  John Franks <jrfranks@zmanda.com>
+       * recover-src/extract_list.c: Extend linger timeouts to 60 seconds.
+          Use shutdown() on sockets.
+         Retry reads in case of EINTR or EAGAIN.
+       * common-src/stream.c: set linger on correct socket.
+         Extend linger timeouts to 60 seconds.
+       * restore-src/restore.c: Fix compiler warnings.
+       * Call shutdown in more cases.
+
+2006-01-05  John Franks <jrfranks@zmanda.com>
+       * client-src/amandad.c: Set SO_LINGER on sockets.
+       * common-src/dgram.c:   Set SO_LINGER on sockets.
+       * common-src/stream.c:  Set SO_LINGER on sockets.
+       * common-src/util.c:    Return any bytes already read on error or EOF.
+       * recover-src/extract_list.c: Set SO_LINGER on data socket.
+          Fix printf of unterminated string data.
+         Check return codes on socket header reads.
+       * restore-src/amidxtaped.c: Set SO_LINGER on sockets.
+         Check return codes on socket header reads.
+       * restore-src/restore.c:
+         Flush newline after operator prompt.
+       * common-src/debug.c:
+         Fix memory leak when debug file name already exists.
+         Print error text upon hard open() error.
+         Allow group members read only access to log files.
+
+2006-01-05  Kevin Till<ktill@zmanda.com>
+        * restore-src/restore.c: handle sigpipe. Some program (e.g. bzip2) closes reading pipe
+          early when it sees trailing garbage after EOF.
+
+2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
+       * common-src/amanda.h: Add a FD_COPY macro.
+       * recover-src/extract_list.c (writer_intermediary): Don't use
+         writer_intermediary, do the select locally.
+
+2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
+       * restore-src/restore.c (flush_open_outputs): Call shutdown before
+         close.
+
+2005-12-30  John Franks <jrfranks@zmanda.com>
+       * recover-src/extract_list.c:
+         Fix double clearing of buffer during normal read path.
+       * restore-src/amidxtaped.c
+         Actually initialize changer if it is needed.  (Set use_changer
+          before checking it...)
+        * Fix control messages being sent down the data pipe when
+          restoring to client that does not support split dumps.
+        * Print error and exit if a split dump is needed during restore
+         and client can not handle it. 
+
+2005-12-30  Ian Turner <ian@zmanda.com>
+       * common-src/fileheader.c: Remove xx/UNKNOWN split-dump header 
+         syntax, in favor of xx/-1.
+
+2005-12-29  John Franks <jrfranks@zmanda.com>
+       * Index: recover-src/display_commands.c
+         Fix list deletion which did not update list root with NULL pointer.
+         Make free_dir_item() a non-recursive function to prevent stack bloat.
+         Fix list insertion code which inserts item in list initializes entry.
+       * Index: recover-src/extract_list.c
+         Fix to initialize lditem before using it...
+         Prevent multiple frees of cmd string.
+         Do not free err which is only initialized with static string pointers.
+         Fix typo which caused newstralloc() to free the wrong memory.
+       * Index: server-src/amindexd.c
+         Fix Compiler warning of unused variable.
+       * Index: server-src/taperscan.c
+         Fix Compiler warning of bogus format specifier.
+  
+2005-12-29  Kevin Till<ktill@zmanda.com>
+       * man/xml-source/amcrypt.8.xml: add new amcrypt man page
+       * man/xml-source/amaespipe.8.xml: add new amaespipe man page
+
+2005-12-29  Ian Turner <ian@zmanda.com>
+       * man/xml-source/amanda.conf.5.xml: Document label_new_tapes 
+         config option.
+
+2005-12-28  Ian Turner <ian@zmanda.com>
+       * recover-src/amrecover.h: Use dynamic strings in struct DIR_ITEM.
+       * recover-src/display_commands.c: ditto
+       * recover-src/extract_list.c: ditto. Also use dynamic strings in
+         struct EXTRACT_LIST and struct EXTRACT_LIST_ITEM.
+
+2005-12-28  Ian Turner <ian@zmanda.com>
+       * common-src/amfeatures.h: Add three new amfeatures:
+         fe_amindexd_marshall_in_OLSD, fe_amindexd_marshall_in_ORLD,
+         fe_amindexd_marshall_in_DHST.
+       * common-src/amfeatures.c: ditto.
+       * server-src/amindexd.c: Talk well to older clients.
+
+2005-12-23  Ian Turner <ian@zmanda.com>
+       * server-src/taperscan.c: Don't crash if find_brand_new_tape_label
+         returns NULL. Also, don't return NULL from
+         find_brand_new_tape_label without a good excuse.
+       
+2005-12-23  Kevin Till <ktill@zmanda.com>
+       * client-src/client_util.c: change server_decrypt_option to
+         server-decrypt-option
+       * client-src/sendbackup.c:  change client_decrypt_option to
+         client-decrypt-option
+       * server-src/dumper.c:      ditto
+       * common-src/amfeatures.c:  add crypt related amfeaturs
+       * common-src/amfeatures.h:  ditto  
+       * server-src/diskfile.c:    amfeatures checking and warns on
+         mis-configuration
+
+2005-12-23  Paddy Sreenivasan <paddy@zmanda.com>
+         * restore-src/restore.c:
+         * server-src/amtape.c:
+         * server-src/taperscan.c : Make scan_init static function
+
+2005-12-23  John Franks <jrfranks@zmanda.com>
+       * server-src/taper.c: Reduce I/O's system call overhead by 30%
+          in main read / write loop. 
+
+2005-12-23  John Franks <jrfranks@zmanda.com>
+       * recover-src/restore.c  Remove inapproriate aclose which caused
+          broken restore pipe.
+       * recover-src/extract_list.c  Fix and cleanup read_buffer()
+          mainly to fix hole that drops parital buffer of data if end
+          of file is reached or an error occured..  Touched up calling
+          functions to make sure EOF/timeouts are handled correctly.
+          Increased normal path read timeout value from on second to
+          whatever READ_TIMEOUT is set to.
+
+2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * restore-src/restore.c (restore): Remova an aclose.
+
+2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * restore-src/amidxtaped.c (cleanup): Function registered with atexit
+         to remove the log file.
+
+2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/Makefile.am (noinst_HEADERS): Add taperscan.h.
+
+2005-12-20  John Franks <jrfranks@zmanda.com>
+
+       * restore-src/restore.c: Remove unused variables.
+                                Fix uninitialize reference to bytes_read.
+       * server-src/amcheck.c:  Remove unused variables.
+                                Include taperscan.h for missing prototype.
+       * server-src/amtape.c:   Remove unused variables.
+                                Include taperscan.h for missing prototype.
+       * server-src/taper.c:    Remove unused variables.
+                                Minor indenting changes.
+       * server-src/taperscan.c:Remove unused variables.
+                                Fix typo which assigns NULL rather than
+                                 checks for NULL.
+                                Commented out reference to auto_pos which
+                                 is assigned but never used...
+
+2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * common-src/fileheader.c (parse_file_header): Parse '/' in part.
+       * common-src/fileheader.c (build_header): Add space ' ' before "part".
+
+2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/reporter.c: Fix report of output size.
+
+2005-12-19  Ian Turner <ian@zmanda.com>
+       * server-src/taperscan.c: Check that automatic tape labels satisfy
+       the labelstr.
+
+2005-12-19  Ian Turner <ian@zmanda.com>
+       * server-src/fileheader.c: Fix broken split-dump file headers.
+
+2005-12-18  Jean-Louis Martineau <martineau@zmanda.com>
+       Patch by Paul Bijnens
+
+       * server-src/amcheck.c: Tapelist file is regular file.
+
+2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * restore-src/restore.c (get_block): Return a ssize_t.
+       * restore-src/restore.c: convert ssize_t to long for printing.
+       * restore-src/restore.c (restore>): Remove unused variable, outpipe,
+          outpipe2, i.
+
+2005-12-17  John R. Franks <jrfranks@zmanda.com>
+
+       * restore-src/restore.h (read_file_header, restore): Return a ssize_t
+         instead of using a global variable bytes_read.
+       * restore-src/restore.c: Use local variable instead of global
+         bytes_read. Many memory management fixe. Fixe pipe handling,
+       * restore-src/amrestore.c: Use new read_file_header and restore.
+       * restore-src/amfetchdump.c: Use new read_file_header and restore.
+
+2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
+       With Kevin Till <ktill@zmanda.com>
+
+       * common-src/fileheader.c (parse_file_header): Fix parsing of first
+         line.
+       * common-src/fileheader.c (build_header): Print crypt after programi
+          and only if it is needed.
+
+2005-12-14  Ian Turner <ian@zmanda.com>
+
+       * common-src/alloc.c: Add new function vstrextend, which extends an
+         existing string.
+       * common-src/amanda.h: Define vstrextend.
+       * example/amanda.conf.in: Document new option
+         label_new_tapes. Change default labelstr.
+       * man/xml-source/amcheck.8.xml: Emphasize the destructiveness of
+         amcheck -w.
+       * restore-src/restore.c: Use the new changer_find interface.
+       * server-src/Makefile.am: Add new file taperscan.c
+       * server-src/amcheck.c: Use the taper-scan algorithm in taperscan.c,
+         instead of the previous separate amcheck implementation.
+       * server-src/amtape.c: Use the taper-scan algorithm in taperscan.c,
+         instead of the previous separate amtape implementation. Also, use
+         the new changer_find interface for other kinds of tape finding.
+       * server-src/changer.c: Eliminate changer_scan. Change the API to
+         changer_find, so that callers can pass a user-data object, instead
+         of using globals.
+       * server-src/changer.h: Declare and document new changer_find
+         interface.
+       * server-src/conffile.c: Add new config option label_new_tapes.
+       * server-src/conffile.h: ditto.
+       * server-src/taper.c: Use the taper-scan algorithm in taperscan.c,
+         instead of the previous separate taper implementation. Also,
+         combine tape-label-reading for ZFTAPE and non-ZFTAPE drives (the
+         difference only matters on writing).
+       * server-src/taperscan.c: Refactor the taper-scan algorithm from
+         taper, amtape, and amcheck. Implement label_new_tapes feature.
+       * server-src/taperscan.h: Declare and document new taperscan
+         interface.
+       * tape-src/tapeio.c: Notice the difference between a non-Amanda tape
+         and some other tape-reading problem.
+       * tape-src/tapeio.h: New declarations.
+
+2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/reporter.c (handle_success): On a taper line, the outsize
+         should only count dump to tape, not flush.
+
+2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/amstatus.pl.in: Parse chunker DONE line to set output size.
+
+2005-12-09  John Franks <jrfranks@zmanda.com>
+
+       * client-src/Makefile.am: Do not include tape library if
+         configuring with --without-server option.
+       * recover-src/Makefile.am: Do not include tape library if
+         configuring with --without-server option.
+
+2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * configure.in: Move the size detection after detection of large
+         file support. That change the size of off_t.
+
+2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * common-src/amanda.h: Set OFF_T_FMT to printf format of a off_t.
+       * server-src/taper.c: Use OFF_T_FMT.
+
+2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * configure.in: Set LL_FMT correctly.
+       * server-src/conffile.c: Use LL_FMT.
+
+2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/conffile.c: Maxdumpsize is a AM64.
+       * server-src/planner.c: conf_maxdumpsize, total_size, tape_length and
+         tape_mark are am64_t.
+
+2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * configure.in: Check for sizeof of many type. Check printf format of
+         a 64-bit integers.
+       * common-src/amanda.h: Typedef am64_t to a 64 bits signed type,i
+         set AM64_FMT to the printf format of a am64_t variable.
+       * server-src/conffile.c: New AM64 type.
+       * server-src/conffile.h(getconf_am64): Prototype.
+
+2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * client-src/Makefile.am: Remove amqde.
+       * client-src/sendsize.c: Remove code to call amqde.
+       * client-src/amqde.c: Remove file.
+       * configure.in: Remove '--with-qde' option.
+
+2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/amindexd.c (reply, lreply, fast_lreply): Must use
+         str_buffer_sizebuf instead of sizeof(bug).
+
+2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/planner.c: Print the time in the FINISH line.
+       * server-src/reporter.c: The estimate time is based on the planner
+         FINISH line.
+
+2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * common-src/Makefile.am (bsdsecurity_LDADD): Add ssh-security.
+
+2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/holding.c (scan_holdingdisk): Static function.
+       * server-src/taper.c (signal_handler, install_signal_handlers): Ditto.
+       * server-src/reporter.c (output_strange,do_postscript_output): Ditto.
+
+2005-12-04  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/logfile.c (logtype_str): Add important ','.
+
+2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/planner.c (setup_estimate): Fix wrong order for argument.
+
+2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/driver.c (start_some_dumps): Don't test for
+         cur_idle == NOT_IDLE.
+
+2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/driverio.c (check_unfree_serial): New fonction to check
+         unfreed serial number.
+       * server-src/driverio.c (free_serial_dp): Set stable[s].dp to NULL.
+       * server-src/driverio.h (check_unfree_serial): Prototype.
+       * server-src/driver.c (main): Call check_unfree_serial.
+
+2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
+       Patch by Franz Fischer
+
+       * config/acinclude.m4i: Fix for __alpha.
+
+2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * common-src/util.c: Debug must end with '\n'.
+
+2005-12-01  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * configure.in: Amanda support x86_64-unknown-linux-gnu.
+
+2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
+
+        * common-src/rsh-security.c (rsh_sendpkt): buf is a char array.
+        * common-src/ssh-security.c (rsh_sendpkt): buf is a char array.
+       * config/acinclude.m4i (AX_CREATE_STDINT_H): Newer macro.
+
+2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * client-src/rundump.c: undef USE_RUNDUMP before define.
+
+2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
+       Patch by Franz Fischer
+
+       * client-src/amqde.c: Fix compiler warning.
+
+2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
+       Patch by Franz Fischer
+
+       * common-src/event.h: Fix compiler warning.
+       * server-src/conffile.h: Fix compiler warning.
+
+2005-11-30  Kevin Till <ktill@zmanda.com>
+       
+       * client-src/client_util.c add server-side, client-side encryption
+         as well as custom compression. Custom compression patch is
+         orginally created by Matthieu Lochegnies.
+       * client-src/client_util.h Ditto
+       * client-src/selfcheck.c Ditto
+       * client-src/sendbackup-dump.c Ditto
+       * client-src/sendbackup-gnutar.c Ditto
+       * client-src/sendbackup.c Ditto
+       * client-src/sendbackup.h Ditto
+       * common-src/fileheader.c Ditto
+       * common-src/fileheader.h Ditto
+       * common-src/util.h Ditto
+       * example/amanda.conf.in Ditto
+       * man/xml-source/amanda.conf.5.xml Ditto
+       * restore-src/amrestore.c Ditto
+       * restore-src/restore.c Ditto
+       * server-src/conffile.c Ditto
+       * server-src/conffile.h Ditto
+       * server-src/diskfile.c Ditto
+       * server-src/diskfile.h Ditto
+       * server-src/dumper.c Ditto
+       
+2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * config/libtool.m4i: libtool 1.5.20
+       * config/ltmain.sh: libtool 1.5.20
+
+2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
+       Patch by Franz Fischer
+
+       * common-src/fileheader.c (build_header): Declation before instruction.
+       * restore-src/amfetchdump.c: Don't use C++ style comment.
+       * restore-src/restore.c: Don't use C++ style comment.
+       * server-src/amindexd.c (reply, lreply, fast_lreply): buf must be
+          dynamicaly allocated.
+       * server-src/logfile.h: Don't use C++ style comment.
+       * server-src/taper.c (free_split_buffer): Test splitbuf against NULL.
+
+2005-11-22 Paddy Sreenivasan <paddy@zmanda.com>
+        * common-src/rsh-security.c: Fix x86_64 compile warnings.
+        * common-src/ssh-security.c: Fix x86_64 compile warnings.
+        * man/Makefile.am: Added EXTRA_XML files.
+        * man/xml-source/amanda.8.xml: Added spanning patch variables.
+        * man/xml-source/amrecover.8.xml: Added amfetchdump to SEE ALSO.
+        * xslt/global.entities: Removed file.
+
+2005-11-20  Jean-Louis Martineau <martineau@zmanda.com>
+       Patch by Jon H. LaBadie
+
+       * changer-src/chg-disk.sh.in: Check permission on file access.
+
+2005-11-17  Paddy Sreenivasan <paddy@zmanda.com>
+        * man/entities/global.entities: New file. Added man page entities.
+        * man/entities/xinclude.dtd: New file.
+        * man/xslt/man.xsl: Correct include path for settings.xsl.
+
+2005-11-15  John R. Franks <jrfranks@zmanda.com>
+       * changer-src/scsi-changer-driver.c: Fix IA-64 compile warnings.
+       * common-src/rsh-security.c: Fix IA-64 compile warnings.
+       * common-src/ssh-security.c: Fix IA-64 compile warnings.
+       * regex-src/engine.c: Fix IA-64 compile warnings.
+       * regex-src/regexec.c: Fix IA-64 compile warnings.
+
+2005-11-15  Paddy Sreenivasan <paddy@zmanda.com>
+
+        * configure.in:  Changed defaults for tape_dev and nr_tape_dev.
+        * example/amanda.conf.in: Leave only changerfile definition
+          uncommented.
+        * man/xml-source/amanda.conf.5.xml: Updated defaults for 
+          tapedev and rawtapedev
+
+2005-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * server-src/planner.c: Fix incronly.
+
+2005-11-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * man/Makefile.am: Set man_MANS,
+
+2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * man/Makefile.am: Set man5_MANS and man8_MANS,
+         install-data-hook use them.
+
+2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+       Patch by Olivier Cherrier
+
+       * man/Makefile.am (install-data-hook): Set protection correclty
+         for man5 and man8.
+
+2005-10-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * common-src/util.c (bind_portrange): Increase port in all case.
+
+2005-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * server-src/conffile.c: Allow runtapes==0.
+       * server-src/driver.c: Use a global conf_runtapes. Don't start a
+         taper if runtapes==0.
+       * server-src/reporter.c: Don't print The next tapes if runtapes==0.
+
+
 2005-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * Amanda 2.4.5p1 released.
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.5p1).
-       * NEWS: Update for 2.4.5p1.
+       * Amanda 2.5.0b1 released.
+       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b1).
+       * NEWS: Update for 2.5.0b1.
+
+2005-10-25  Ian Turner <ian@zmanda.com>
+       
+       * man/Makefile.am: include amfetchdump.8.
+       * man/xml-source/amadmin.8.xml: Add spanning-patch documentation.
+       * man/xml-source/amanda.8.xml: ditto
+       * man/xml-source/amrecover.8.xml: ditto
+       * man/xml-source/amfetchdump.8.xml: ditto (new file)
+       * man/xslt/global.entities: Add myself, Zmanda Inc.
+       
+2005-10-24  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * client-src/sendsize.c (getsize_wrapper): Add a NULL at the end of
+         the argvchild array.
+
+2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/server_util.c (getcmd): Print DEBUG to stderr.
+
+2005-10-20  Ian Turner <ian@zmanda.com>
+
+       * configure.in: Check for xsltproc.
+       * man/Makefile.am: Properly build, clean, and distribute generated
+         manpages from XML source.
+       * man/amadmin.8: Remove from CVS
+       * man/amanda.8: Remove from CVS
+       * man/amanda.conf.5: Remove from CVS
+       * man/amcheck.8: Remove from CVS
+       * man/amcheckdb.8: Remove from CVS
+       * man/amcleanup.8: Remove from CVS
+       * man/amdd.8: Remove from CVS
+       * man/amdump.8: Remove from CVS
+       * man/amflush.8: Remove from CVS
+       * man/amgetconf.8: Remove from CVS
+       * man/amlabel.8: Remove from CVS
+       * man/ammt.8: Remove from CVS
+       * man/amoverview.8: Remove from CVS
+       * man/amplot.8: Remove from CVS
+       * man/amrecover.8: Remove from CVS
+       * man/amreport.8: Remove from CVS
+       * man/amrestore.8: Remove from CVS
+       * man/amrmtape.8: Remove from CVS
+       * man/amstatus.8: Remove from CVS
+       * man/amtape.8: Remove from CVS
+       * man/amtapetype.8: Remove from CVS
+       * man/amtoc.8: Remove from CVS
+       * man/amverify.8: Remove from CVS
+       * man/amverifyrun.8: Remove from CVS
+       * man/xml-source/amadmin.8.xml: Add from xml-docs
+       * man/xml-source/amanda.8.xml: Add from xml-docs
+       * man/xml-source/amanda.conf.5.xml: Add from xml-docs
+       * man/xml-source/amcheck.8.xml: Add from xml-docs
+       * man/xml-source/amcheckdb.8.xml: Add from xml-docs
+       * man/xml-source/amcleanup.8.xml: Add from xml-docs
+       * man/xml-source/amdd.8.xml: Add from xml-docs
+       * man/xml-source/amdump.8.xml: Add from xml-docs
+       * man/xml-source/amflush.8.xml: Add from xml-docs
+       * man/xml-source/amgetconf.8.xml: Add from xml-docs
+       * man/xml-source/amlabel.8.xml: Add from xml-docs
+       * man/xml-source/ammt.8.xml: Add from xml-docs
+       * man/xml-source/amoverview.8.xml: Add from xml-docs
+       * man/xml-source/amplot.8.xml: Add from xml-docs
+       * man/xml-source/amrecover.8.xml: Add from xml-docs
+       * man/xml-source/amreport.8.xml: Add from xml-docs
+       * man/xml-source/amrestore.8.xml: Add from xml-docs
+       * man/xml-source/amrmtape.8.xml: Add from xml-docs
+       * man/xml-source/amstatus.8.xml: Add from xml-docs
+       * man/xml-source/amtape.8.xml: Add from xml-docs
+       * man/xml-source/amtapetype.8.xml: Add from xml-docs
+       * man/xml-source/amtoc.8.xml: Add from xml-docs
+       * man/xml-source/amverify.8.xml: Add from xml-docs
+       * man/xml-source/amverifyrun.8.xml: Add from xml-docs
+       * man/xslt/expand-sambadoc.xsl: Add from xml-docs
+       * man/xslt/global.entities: Add from xml-docs
+       * man/xslt/man.xsl: Add from xml-docs
+       * man/xslt/settings.xsl: Add from xml-docs
+
+2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/amstatus.pl.in: a FLUSH command can't be in an estimate
+         phase.
+       * server-src/driver.c: Start autoflush while waiting for estimate.
+       * server-src/planner.c: Write FLUSH line before estimate.
+
+2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
+       Patch by John R. Franks <jrfranks@zmanda.com>
+
+       * server-src/taper.c (create_split_buffer): Should not use sizeof().
+
+2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/taper.c (read_file): Move the putresult(DONE) to the
+         right place, some cleanup.
+
+2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/planner.c: Increase DEFAULT_DUMPRATE to 1024 K/s.
+
+2005-10-17  Ian Turner <ian@zmanda.com>
+
+       * Changelog: Fix line breaks.
+       * restore-src/restore.c: Give more useful FSF error messages.
+       * recover-src/extract_list.c: Do better error checking on passed port
+         number.
+       * common-src/tapelist.c: Do proper memory management of strings.
+         Otherwise really bad stuff happens.
+
+2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/taper.c: Set SIGPIPE to SIG_IGN, the code already
+         handle it correctly.
+
+2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/taper.c (signal_handler): Don't REMOVE_SHARED_MEMORY, it
+         is done by exit.
+
+2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * server-src/driverio.c (serial2disk): Print str if error.
+
+2005-10-15  Paddy Sreenivasan <paddy@zmanda.com>
+
+        * server-src/taper.c: Shared memory need not be removed in normal paths.
+          Done as part of atexit. 
+
+2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
+       Patch by John R. Franks <jrfranks@zmanda.com>
+
+       * changer-src/scsi-aix.c: calls to open/openx guages success by
+         checking for a file descriptor greater than 0.  0 is also a valid
+         descriptor so the check should be >= 0.
+         Calls to SCSI_OpenDevice does not check for error return.
+         Calls to SCSI_OpenDevice does not check for error return.
+         Calls to SCSI_OpenDevice does not check for error return.
+         Call to opendir() does not check for error.
+       * changer-src/scsi-hpux_new.c: Ditto.
+       * changer-src/scsi-irix.c: Ditto.
+       * changer-src/scsi-linux.c: Ditto.
+       * changer-src/scsi-solaris.c: Ditto.
+       * client-src/selfcheck.c: Call to open() does not check for error.
+       * client-src/sendbackup.c: Call to freopen() does not check for error.
+       * client-src/sendsize.c: Call to open() does not check for error.
+       * common-src/bsd-security.c: Call to open() does not check for error.
+       * common-src/file.c: Call to open() does not check for error.
+       * restore-src/amrestore.c: Calls to tape_open() do not always check
+         return code.  open() is called with open flags set to 0
+         (Call always fails with an EINVAL)
+       * restore-src/restore.c: fopen() return error check  is "fopen() < 0".
+         fopen returns a pointer and the proper check should be
+         "fopen() == NULL".
+         Call to open() does not check for error.
+       * tape-src/tapeio.c: tape_open() is called here and other places with a
+         variable number of arguments, and yet is not defined as a varargs
+         function...
+       * tape-src/tapeio.h: Prototype for tape_open.
+
+2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
+       Patch by Paddy Sreenivasan <paddy@zmanda.com>
+
+       * client-src/sendsize.c: Log message changes.
+       * server-src/taper.c: And an atexit function to detach shared memory.
+         Trap some signal and detach shared memory.
+
+2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * regex-src/regcomp.c (findmust): Initialized start to NULL.
+
+2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
+       Patch by John R. Franks <jrfranks@zmanda.com>
+
+       * regex-src/cclass.h: Fixed to add missing braces and reformat long
+         strings to fix in 80 columns.
+       * regex-src/cname.h: Fixed by adding braces and tidying up code a bit.
+       * regex-src/regcomp.c (p_ere): Initialized prevback and prevfwd to 0.
+         ifdef out unused mcsub, mcin and mcfind functions.
+         (findmust) Initialized newstart to NULL.
+       * regex-src/regerror.c: Adds missing braces.
+       * regex-src/regexec.c (nope): Use only in assert, so it is not only
+         defined if NDEBUG is not defined.
+
+2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
+       Patch by John R. Franks <jrfranks@zmanda.com>
+
+       * common-src/krb4-security.c (krb4_security_dummy): Rename from dummy,
+         it is not static int.
+       * common-src/krb5-security.c (krb5_security_dummy): Rename from dummy,
+         it is not static int.
+
+2005-10-13  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * common-src/util.c (bind_portrange): New argument proto.
+         Check for reserved port.
+       * common-src/util.h (bind_portrange): New prototype.
+       * common-src/bsd-security.c (bind_portrange): New prototype.
+       * common-src/dgram.c: Add "udp" as argument to bind_portrange.
+       * common-src/stream.c: Add "tcp" as argument to bind_portrange.
+
+2005-10-12  Jean-Louis Martineau <martineau@zmanda.com>
+
+       * restore-src/amidxtaped.c (check_security_buffer): i is a socklen_t.
+       * restore-src/amidxtaped.c (main): Remove i, fd, amrestore_path, pid,
+         isafile, stat_tape, tapename, s, fp, ch and errstr variable.
+
+2005-10-11  Ian Turner <ian@zmanda.com>
+       Patch by  Jean-Louis Martineau <martineau@zmanda.com>
+       
+       * restore-src/amfetchdump.c: Remove unused variable debug.
+        * restore-src/amidxtaped.c: Remove lock_logfile(), which is also 
+         in restore.c.
+       * restore-src/Makefile.am: Include libamanda twice, to fix build 
+         on some machines.
+
+2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * restore-src/Makefile (noinst_HEADERS): Add restore.h.
+       * restore-src/restore.c (search_tapes): Add the fourth argument to
+         read_file_header.
+
+2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * server-src/conffile.c: dpcur.s_split_diskbuffer must be initialize
+         to 0.
+       * server-src/reporter.c (handle_partial): Set repdata to the result
+         of handle_success.
+       * server-src/taper.c: Set the first-file.
 
 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
 
        * server-src/taper.c (tape_writer_side): detach_buffers on normal exit.
 
+2005-10-10  Ian Turner <ian@zmanda.com>
+
+       * server-src/amtape.h: Apply tape-spanning patch by John Stange
+         <building@cs.umd.edu> as ported to 2.5.0 by Ian Turner, with
+         contributions by Christopher Pascoe <c.pascoe@itee.uq.edu.au>.
+       * configure.in: Ditto
+       * amplot/Makefile.am: Ditto
+       * changer-src/Makefile.am: Ditto
+       * client-src/Makefile.am: Ditto
+       * common-src/Makefile.am: Ditto
+       * common-src/amanda.h: Ditto
+       * common-src/amfeatures.c: Ditto
+       * common-src/amfeatures.h: Ditto
+       * common-src/fileheader.c: Ditto
+       * common-src/fileheader.h: Ditto
+       * common-src/match.c: Ditto
+       * common-src/tapelist.c: Ditto
+       * common-src/tapelist.h: Ditto
+       * example/amanda.conf.in: Ditto
+       * man/Makefile.am: Ditto
+       * recover-src/amrecover.c: Ditto
+       * recover-src/amrecover.h: Ditto
+       * recover-src/display_commands.c: Ditto
+       * recover-src/extract_list.c: Ditto
+       * restore-src/Makefile.am: Ditto
+       * restore-src/amfetchdump.c: Ditto
+       * restore-src/amfetchdump.h: Ditto
+       * restore-src/amidxtaped.c: Ditto
+       * restore-src/amrestore.c: Ditto
+       * restore-src/restore.c: Ditto
+       * restore-src/restore.h: Ditto
+       * server-src/Makefile.am: Ditto
+       * server-src/amadmin.c: Ditto
+       * server-src/amindexd.c: Ditto
+       * server-src/amoverview.pl.in: Ditto
+       * server-src/amtoc.pl.in: Ditto
+       * server-src/amverify.sh.in: Ditto
+       * server-src/changer.c: Ditto
+       * server-src/conffile.c: Ditto
+       * server-src/conffile.h: Ditto
+       * server-src/disk_history.c: Ditto
+       * server-src/disk_history.h: Ditto
+       * server-src/diskfile.c: Ditto
+       * server-src/diskfile.h: Ditto
+       * server-src/driver.c: Ditto
+       * server-src/driverio.c: Ditto
+       * server-src/find.c: Ditto
+       * server-src/find.h: Ditto
+       * server-src/holding.c: Ditto
+       * server-src/holding.h: Ditto
+       * server-src/logfile.c: Ditto
+       * server-src/logfile.h: Ditto
+       * server-src/planner.c: Ditto
+       * server-src/reporter.c: Ditto
+       * server-src/server_util.c: Ditto
+       * server-src/server_util.h: Ditto
+       * server-src/taper.c: Ditto
+
 2005-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/taper.c: Change message: on new tape due to
 
 2005-10-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-       Patch by John R. Franks
+       Patch by John R. Franks 
 
        * common-src/amflock.c (main): Don't call safe_fd, it's not needed
          during configure.
        * configure.in: '#include <sys/types.h>' in the check
          'for Linux like scsi support (sg)'
 
+2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * client-src/amandad.c (writebuf): Call waitpid in the parent.
+
+2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * client-src/amandad.c (service_delete): Remove call to sleep.
+       * common-src/bsd-security.c: Add bsdprintf. Add more debug.
+         The handle is used as a string, instead of 2 int.
+
+2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * common-src/rsh-security.c: rshprintf should call dbprint.
+       * common-src/ssh-security.c: rshprintf should call dbprint, add many
+         rshprintf.
+       * common-src/event.c: Add eventprintf, use it. Add debug_prefix_time
+         to the log. 
+
 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * common-src/stream.c: len is a socklen_t.
        * restore-src/amidxtaped.c: Add socklen as a socklen_t.
        * tape-src/tapetype.c: Change printf format.
        * server-src/amlabel.c: Add a variable isa_zftape. init fd to -1.
+       * server-src/dumper.c: Init outfd to -1.
+       * common-src/file.c (areads_getbuf): First argument is const.
 
 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/reporter.c: Don't trunk hostname/diskname in
          'FAILURE AND STRANGE DUMP SUMMARY' section.
 
+2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * server-src/chunker.c (main): Remove outfd.
+
 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/conffile.c, server-src/diskfile.c, server-src/infofile.c,
          client-src/getfsent.c, common-src/statfs.c, common-src/token.c
-         (main): Remove fd declaration.
+          (main): Remove fd declaration.
 
 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * config/ltmain.sh: Update from libtool-1.5.16.
        * config/libtool.m4i: Update from libtool-1.5.16.
 
+2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * common-src/bsd-security.c: Fix small bug.
+
 2005-09-22  John R. Jackson <jrj@purdue.edu>
 
        * configure.in: If --without-server is specified, either on the
        * client-src/sendsize.c: Ditto.
        * client-src/versionsuffix.c: Ditto.
        * common-src/amflock.c: Ditto.
-       * common-src/genversion.c: Ditto.
+       * common-src/rsh-security.c: Ditto.
+       * common-src/ssh-security.c: Ditto.
        * common-src/statfs.c: Ditto.
        * common-src/token.c: Ditto.
        * recover-src/amrecover.c: Ditto.
        * server-src/amtape.c: Ditto.
        * server-src/amtrmidx.c: Ditto.
        * server-src/amtrmlog.c: Ditto.
+       * server-src/chunker.c: Ditto.
        * server-src/conffile.c: Ditto.
        * server-src/diskfile.c: Ditto.
        * server-src/driver.c: Ditto.
-       * server-src/dumper.c: Ditto.
        * server-src/getconf.c: Ditto.
        * server-src/infofile.c: Ditto.
        * server-src/planner.c: Ditto.
        * server-src/reporter.c: Ditto.
        * server-src/taper.c: Ditto.
+       * server-src/dumper.c: Ditto plus remove incorrect chdir to hard
+         coded "/tmp/amanda".
 
 2005-09-20  John R. Jackson <jrj@purdue.edu>
 
        * client-src/sendbackup-dump.c: Ignore a new message from Solaris
          vxdump.
 
+2005-09-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * common-src/bsd-security.c: Generate a unique event_id, thei
+         proto_handle is not always unique.
+
 2005-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/amverify.sh.in: Don't check for EOI, it's buggy.
        * server-src/planner.c: Don't use history with size < 0.
 
 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-        Patch Paul Bijnens <paul.bijnens@xplanation.com>
+       Patch Paul Bijnens <paul.bijnens@xplanation.com>
 
-        * server-src/planner.c(delay_dumps): Delay incremental dump also
-        larger than tape.
+       * server-src/planner.c(delay_dumps): Delay incremental dump also
+         larger than tape.
 
 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Patch by Orion Poplawski <orion@cora.nwra.com>
        * server-src/driver.c: Make tape_length and tape_left unsigned long.
 
 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-       Bug found by John E Hein <jhein@timing.com>.
+       Patch by Stefan G. Weichinger <monitor@oops.co.at>
 
-       * server-src/amadmin.c: Fix of by one with NB_HISTORY.
-       * server-src/infofile.c: Fix of by one with NB_HISTORY.
+       * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases.
 
-2005-06-23  Stefan G. Weichinger <monitor@oops.co.at>
+2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases.
+       Bug found by John E Hein <jhein@timing.com>.
+       * server-src/amadmin.c: Fix of by one with NB_HISTORY.
+       * server-src/infofile.c:x: Fix of by one with NB_HISTORY.
 
 2005-06-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Patch by Jay Fenlason <fenlason@redhat.com>
        * client-src/sendsize.c: Fix dbprintf call.
 
 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+           Stefan G. Weichinger <monitor@oops.co.at>
 
-       * server-src/amverifyrun.sh.in: Remove buggy space.
+       * example/amanda.conf.in: edited the default-value for the
+                                 holdingdisk-usage to "use -100 Mb".
+                                 The old value "use 290 Mb" didn't make much
+                                 sense anymore.
 
-2005-05-28  Stefan G. Weichinger <monitor@oops.co.at>
+2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * example/amanda.conf.in: edited the default-value for the
-                                 holdingdisk-usage to "use -100 Mb".
-                                 The old value "use 290 Mb" didn't make much
-                                 sense anymore.
+       * server-src/amverifyrun.sh.in: Remove buggy space.
 
 2005-05-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
 
 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * man/Makefile.am (COMMON_MAN_PAGES, EXTRA_DIST): Add amadmin.8.
-       * man/*: Update from latest xml-doc.
-       * docs/Makefile.am (pkgdata_DATA): Add Appendix.txt, amanda.conf.5.txt
-         and howto-wrapper.txt.
-       * docs/* Update from latest xml-docs.
+       * example/amanda.conf.in: Update from 2.4.5.
 
-2005-05-05  Stefan G. Weichinger <monitor@oops.co.at>
+2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * example/amanda.conf.in: added description for parameter estimate.
+       * docs/*: New documentation from xml-docs.
+       * docs/Makefile.am (pkgdata_DATA): Update for new files.
 
-2005-04-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * Amanda 2.4.5 released.
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.5).
-       * NEWS: Update for 2.4.5.
+       * man/Makefile.am (COMMON_MAN_PAGES): Add amanda.conf.5.
 
-2005-04-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * docs/*: Update from latest xml-docs.
+       * man/*: Use man pages form xml-docs.
+       * configure.in (AC_CONFIG_FILES): Remove all man pages.
+       * man/Makefile.am (EXTRA_DIST): Add amadmin.8 amanda.8 amanda.conf.5 
+         amcheck.8 amcheckdb.8 amcleanup.8 amdump.8 amflush.8 amgetconf.8
+         amlabel.8 amoverview.8 amreport.8 amrecover.8 amrmtape.8 amstatus.8
+         amtapetype.8 amtoc.8 amverify.8 amverifyrun.8
 
-2005-04-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+2005-05-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * docs/*: Update from latest xml-docs.
+       * common-src/rsh-security.c (net_read_fillbuf): Read only a packet,
+         nothing more.
+       * common-src/ssh-security.c (net_read_fillbuf): Read only a packet,
+         nothing more.
+       * common-src/rsh-security.c (conn_put): Don't kill the process, only do
+         a wait with WNOHANG.
+       * common-src/ssh-security.c (conn_put): Don't kill the process, only do
+         a wait with WNOHANG.
 
 2005-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * changer-src/chg-zd-mtx.sh.in: Improve handling of
          "Unknown Storage Element Loaded".
 
-2005-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * man/amcheckdb.8: Update from latest xml-docs.
-
-2005-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * docs/*: New documentation from xml-docs.
-       * docs/Makefile.am (pkgdata_DATA): Update for new files.
-
 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052
 
        * client-src/sendsize.c (generic_calc_estimates): Use amname instead
          of dirname in message.
 
-2005-04-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * man/amanda.8, man/amdd.8, man/ammt.8: Updated.
-
-2005-03-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * man/Makefile.am (EXTRA_DIST): Add amadmin.8 amanda.8 amcheck.8
-         amcheckdb.8 amcleanup.8 amdump.8 amflush.8 amgetconf.8 amlabel.8
-         amoverview.8 amreport.8 amrecover.8 amrmtape.8 amstatus.8
-         amtapetype.8 amtoc.8 amverify.8 amverifyrun.8
-
-2005-03-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * man/*: use man pages form xml-docs.
-       * configure.in (AC_CONFIG_FILES): Remove all man pages.
-
-2005-03-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * server-src/dumper.c (update_dataptr): Open a new chunk file even if
-         size==0, the test must be (dataout < datain), which means we have
-         something to write.
-
-2005-03-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * NEWS: new amoverview -skipmissed option.
-
 2005-03-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/conffile.h: Rename getcont_unit_divisor to
          and send it to amandad. Write debuging message.
 
 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-        Patch by Franz G. Fischer
+       Patch by Franz G. Fischer
 
        * server-src/conffile.c: Adds a value type LONG and a val_t.l long
          union member and changes get_number() to return long and
 
 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * server-src/planner.c: Improve message if no incremental estimate.
-
-2005-01-23  Stefan G. Weichinger <monitor@oops.co.at> 
-       Patch by Jon LaBadie <jon@jgcomp.com>
-
-       * changer-src/chg-multi.sh.in: New header to explain the meaning of
-         the "multi" in "chg-multi".
+        * server-src/planner.c: Improve message if no incremental estimate.
 
 2004-12-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Patch by Christopher Pascoe <c.pascoe@itee.uq.edu.au>
 
 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * NEWS: new displayunit global option to select the unit use to
-         display number: k=kilo, m=mega, g=giga, t=tera
+       * server-src/diskfile.c: Compilation fix.
+
+2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
        * server-src/conffile.c: Parse displayunit,
          new fonction getcont_unit_divisor().
        * server-src/conffile.h: Prototype of getcont_unit_divisor().
        * server-src/amcheck.c: Use displayunit to display holding disk size.
        * server-src/amstatus.pl.in: Use displayunit to display dump size.
        * server-src/reporter.c: use displayunit to display dump size.
-       * man/amanda.8.in: Document displayunit.
+       * Document displayunit.
 
 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
 
        * changer-src/chg-zd-mtx.sh.in: Fix for library with barcode.
 
-
-2004-11-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * server-src/planner.c: Print the time in the FINISH line.
-       * server-src/reporter.c: The estimate time is based on the planner
-         FINISH line.
-
 2004-11-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * restore-src/amrestore.c: Read empty file.
 
-2004-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * server-src/driver.c (selectset): Make only one declaration in main.
-
 2004-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * tape-src/tapetype.c: Use new tape.
 
        * server-src/amstatus.pl.in: Display partial estimate.
 
-2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-       Patch by Orion Poplawski <orion@cora.nwra.com>
-
-       * server-src/amstatus.pl.in: a FLUSH command can't be in an estimate
-         phase.
-       * server-src/driver.c: Start autoflush while waiting for estimate.
-       * server-src/planner.c: Write FLUSH line before estimate.
-
 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/diskfile.c (read_diskline): A spindle must be numerical.
 
-2004-10-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-        * Amanda 2.4.5b1 released.
-
 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/holding.c (rename_tmp_holding): Always rename files.
 
        * man/amanda.8.in: Document 'estimate' dumptype option.
 
-2004-08-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * client-src/amqde.c: Change snprintf for ap_snprintf.
-
 2004-08-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/amrmtape.sh.in: Understand history info.
 
+2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * server-src/driver.c: Typo.
+
 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/amstatus.pl.in: Parse CONTINUE and RQ-MORE-DISK line,
 
 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * server-src/driverio.c (dumper_cmd): Print serial number for CONTINUE
-         command.
-       * server-src/driverio.c (disk2serial): Try to find a 'dp' before
-         allocating a new serial.
-       * server-src/dumper.c (update_dataptr): Read serial number for CONTINUE
-         command.
+       * server-src/driver.c (handle_dumper_result, handle_chunker_result):
+         Don't call free_serial().
+       * server-src/driver.c (dumper_result): Call free_serial_dp(dp).
+       * server-src/driverio.c (dumper_cmd): Remove CONTINUE cmd.
+        * server-src/driverio.c (chunker_cmd): Print serial number for CONTINUE
+          command.
+        * server-src/driverio.c (disk2serial): Try to find a 'dp' before
+          allocating a new serial.
+       * server-src/driverio.c (free_serial_dp): New function to remove the
+         serial for a dp.
+       * server-src/driverio.h (free_serial_dp): Prototype.
+        * server-src/chunker.c (databuf_flush): Read serial number for CONTINUE
+          command.
 
 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
 
 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-        * server-src/infofile.h (history_t): new struct.
-        * server-src/infofile.h (info_t): Add a history_t.
-        * server-src/infofile.c (read_txinfofile): Parse history data.
-        * server-src/infofile.c (write_txinfofile): Print history data.
-        * server-src/amadmin.c (export_one): export history data.
-        * server-src/amadmin.c (import_one): import history data.
-        * server-src/driverio.c (update_info_dumper): update history data.
+       * server-src/infofile.h (history_t): new struct.
+       * server-src/infofile.h (info_t): Add a history_t.
+       * server-src/infofile.c (read_txinfofile): Parse history data.
+       * server-src/infofile.c (write_txinfofile): Print history data.
+       * server-src/amadmin.c (export_one): export history data.
+       * server-src/amadmin.c (import_one): import history data.
+       * server-src/driverio.c (update_info_dumper): update history data.
 
 2004-05-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Patch by Paul Bijnens <paul.bijnens@xplanation.com>
        * configure.in: Use AX_CREATE_STDINT_H(common-src/amanda-int.h).
        * common-src/amanda.h: include "common-src/amanda-int.h".
        * changer-src/scsi-cam.c: Change u_int32_t for uint32_t.
-       * client-src/amandad-krb4.c: Change u_int32_t for uint32_t.
-       * common-src/krb4-security.c: Change u_int32_t for uint32_t.
-       * common-src/krb4-security.h: Change u_int32_t for uint32_t.
-       * common-src/protocol.h: Change u_int32_t for uint32_t.
-       * common-src/security.c: Change u_int32_t for uint32_t.
 
 2004-04-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/driver.c (continue_dumps): Fix deadlock if holding disk
-         fill up when in degraded mode.
+       fill up when in degraded mode.
 
 2004-04-23  Eric Siegerman <eric_97@pobox.com>
 
        * server-src/diskfile.h: Define.
        * server-src/planner.c: Use.
        * man/amanda.8.in: Document.
-       * NEWS: bumpsize, bumppercent, bumpdays and bumpmult can be in a
-         dumptype.
 
 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Fix by Paul Bijnens <paul.bijnens@xplanation.com>
 2004-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Fix by John Koyle <jkoyle@rfpdepot.com>
 
-       * common-src/protocol.c: Fix EAGAIN on Linux.
+       * common-src/dgram.c: Fix EAGAIN on Linux.
+
+2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * server-src/amadmin.c (bumpsize): Typo.
 
 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/conffile.h: Define It.
        * server-src/planner.c (bump_thresh): New size_level_0 parameter,
          use the new bumppercent option.
-       * NEWS: Document it.
 
 2004-04-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
 
 2004-03-22  Stefan G. Weichinger <monitor@oops.co.at>
 
-        * server-src/amcheck.c (start_host): Added warning for hostname
+       * server-src/amcheck.c (start_host): Added warning for hostname
          localhost.
        * docs/TOP-TEN-QUESTIONS: added note about localhost-warning.
 
 
        * docs/TOP-TEN-QUESTIONS: New file.
 
+2004-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * server-src/reporter.c (handle_success): Set stats[i].coutsize
+         correctly.
+       * server-src/taper.c: Do not subtract tt_blocksize_kb from filesize.
+
+2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * common-src/ssh-security.c: New ssh security driver.
+       * common-src/Makefile.am (libamanda_la_SOURCES): Add ssh-security.c.
+       * common-src/security.c: Add ssh security driver.
+       * configure.in: Add --with-ssh-security. Define SSH_SECURITY.
+
 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/amcheck.c: Do labelstr check in correct order.
 
+2004-03-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       Use only one time event for all dumpers, no wait event.
+       start_some_dumps is called everytime a dumper or taper finish.
+       * server-src/driver.c (dumpers_ev_time): New global event.
+       * server-src/driver.c (start_some_dumps): Remove dumper argument,
+         can start many dump.
+       * server-src/driver.c (dumper_result): Call start_some_dumps instead
+         of event_wakeup.
+       * server-src/driver.c (handle_idle_wait): Remove function.
+       * server-src/driver.c (handle_dumpers_time): new handle for
+         dumpers_ev_time, it call start_some_dumps.
+       * server-src/driverio.h (dumper_t): Remove ev_wait.
+       * server-src/driverio.c (startup_dump_process): Don't set ev_wait.
+
+2004-03-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * common-src/fileheader.c (print_header): Fix fprintf use.
+       * client-src/amqde.c (parse_exclude_path): Fix = by ==.
+       * common-src/protocol.c (s_repwait): Fix compiler warning.
+       * common-src/rsh-security.c (runrsh): Fix compiler warning.
+
+2004-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * common-src/pipespawn.c (pipespawn): Remove passwdvar and passwdfd.
+
 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Reported by Allen Liu <allen@bellglobal.com>
 
 
        * server-src/amcheck.c: Verify the tape is listed in the tapelist file.
        * server-src/taper.c: Ditto
-       * NEWS: * amanda will not use a tape if it's label is not in the
-                 tapelist file (eg. after an amrmtape).
 
 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * common-src/amfeatures.c (am_init_feature_set): Add
          fe_partial_estimate.
        * common-src/amfeatures.h (am_feature_e): Add fe_partial_estimate.
-       * common-src/protocol.c: Handle PREP packet.
-       * common-src/protocol.h (pktype_t):  Add P_PREP.
+       * common-src/packet.c (pktypes[]): Add PREP.
+       * common-src/packet.h (pktype_t): Add P_PREP.
+       * common-src/protocol.c (action_t): Add A_CONTPEND.
+       * common-src/protocol.c: Handle P_PREP packet.
        * server-src/amstatus.pl.in: Parse "got partial result" line.
-       * server-src/planner.c: Handle PREP packet.
+       * server-src/planner.c: Handle P_PREP packet.
 
 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Reported by Jason Brooks <jason.brooks@windriver.com>
        * server-src/planner.c: Flush today's dump with autoflush.
        * server-src/find.c: Find holding disk with timestamp.
        * server-src/find.h (find_result_t): Add timestamp field.
-       * NEWS: holding disk disk use timestamped directory.
-       * NEWS: autoflush flush today's dump.
 
 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * configure.in: Call CF_WAIT_INT.
        * common-src/amanda.h: Try to make waitpid doesn't warn.
 
-2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.5b1).
-
 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * Makefile.am (EXTRA_DIST): Add contrib/mkamandisk.
 
 2004-01-29  Christoph Pospiech <pospiech@de.ibm.com>
 
-        * configure.in (AC_CONFIG_FILES): Add changer-src/chg-iomega.pl.
-        * changer-src/Makefile.am (libexec_SCRIPTS) Add chg-iomega.
-        * changer-src/chg-iomega.pl.in: New changer script.
-        * docs/TAPE.CHANGERS: Document chg-iomega.
+       * configure.in (AC_CONFIG_FILES): Add changer-src/chg-iomega.pl.
+       * changer-src/Makefile.am (libexec_SCRIPTS) Add chg-iomega.
+       * changer-src/chg-iomega.pl.in: New changer script.
+       * docs/TAPE.CHANGERS: Document chg-iomega.
        * contrib/mkamandisk: Script to format iomega disk.
-       * NEWS: New chg-iomega changer script.
 
 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * example/amanda.conf.in: Update record documentation.
        * man/amanda.8.in: Update record documentation.
 
-2004-01-13  Greg Troxel  <gdt@t...>
-
-       * common-src/krb4-security.c (errstr;): Make krb4 work on 64-bit
-         platforms.  Essentially, change 'unsigned long' to u_int32_t for
-         on-the-wire representation of checksums, declaring that the wire
-         protocol is defined by existing use of unsigned long on 32-bit
-         machines.
-
-         Modify the data/control handshake similarly, defining a
-         'net_timeval' that uses int32_t rather than long.  Cleanup a latent
-         bug in handshake code that didn't cause trouble before when
-         everything was the same type.
-
-         This change preserves interoperability with the previous code
-         on 32 bit machines.  (It is likely that 64/64 interoperability
-         was ok, but unlikely that it was important to anyone, given
-         the low population of amanda-krb users.)
-
 2004-01-14  Stefan G. Weichinger <monitor@oops.co.at>
 
        * docs/INSTALL: Add config for xinetd.
 
-2004-01-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * Amanda 2.4.4p2 released.
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.4p2).
-
-
 2004-01-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/planner.c (handle_result): Detect bad estimate (-1).
        * server-src/planner.c (analyze_estimate): Don't schedule level
          if the estimate is bad.
 
-2003-12-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * client-src/Makefile.am (EXTRA_DIST): Add amandad-krb4.c,
-         sendbackup-krb4.c and sendbackup-krb4.h.
-       * common-src/Makefile.am (EXTRA_DIST): Add krb4-security.c and
-         krb4-security.h.
-       * server-src/Makefile.am (EXTRA_DIST): Add dumper-krb4.c.
-       * NEWS: Kerberos 4 support integrated and functional again.
-
-2003-12-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-       patch by Greg Troxel <gdt@ir.bbn.com>
-             and Beverly Schwartz <bschwart@bbn.com>
-
-       Original *krb4* files are taken form the amanda-krb repository.
-
-       Add kerberos 4 support.
-       * client-src/amandad-krb4.c: New file.
-       * client-src/amandad.c: Fix close of req_pipe[0]/rep_pipe[1].
-       * client-src/sendbackup-krb4.c: New file.
-       * client-src/sendbackup-krb4.h: New file.
-       * client-src/sendbackup.c: Use options->krb4_auth.
-       * common-src/amanda.h: Fix for initgroups.
-       * common-src/krb4-security.c: New file.
-       * common-src/krb4-security.h: New file.
-       * common-src/token.h: Use HAVE_SHQUOTE_DECL.
-       * configure.in: Enhance finding krb libs.
-       * server-src/diskfile.c: Fix.
-       * server-src/dumper-krb4.c: New file.
-       * server-src/getconf.c: Define HOSTNAME_INSTANCE.
-
 2003-12-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * docs/HOWTO-FILE-DRIVER: New file.
        * changer-src/chg-disk.sh.in: New changer script.
        * changer-src/Makefile.am (libexec_SCRIPTS): Add chg-disk.
        * configure.in (AC_CONFIG_FILES): Add changer-src/chg-disk.sh.
-       * NEWS: new chag-disk changer script to use with the file: driver.
 
 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * tape-src/tapeio.c: extern int optind.
 
 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-       Patch by C.Scheeder <christoph.scheeder@scheeder.de
+       Patch by C.Scheeder <christoph.scheeder@scheeder.de>
 
        * changer-src/sense.c (SenseType): Add "DAT AutoChanger" and "C1537A".
 
        * server-src/amtape.c (taperscan_slot): Ditto.
        * server-src/taper.c (taperscan_slot): Ditto.
 
-2003-11-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * server-src/driver.c (handle_taper_result): Empty tapeq in TAPE_ERROR
-         and BOGUS case.
-
 2003-11-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/driver.c (handle_taper_result): Always call
        * server-src/diskfile.c (add_disk): Set device and todo.
        * server-src/find.c: Build disklist dynamicaly from log files.
        * server-src/find.h (find_dump): New prototype.
-       * NEWS: 'amadmin find' list disk removed from the disklist.
-       * NEWS: amrecover can recover a disk removed from the disklist file.
 
 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
          tp->datestamp > 0.
        * server-src/amadmin.c (disklist_one): Don't print ':' on device line.
 
+2003-10-23  Todd Kover <kovert@omniscient.com>
+
+       * make amrecover link against readline rather than libamanda so
+         only amrecover would require the shared library (if it's found)
+
 2003-10-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Patch by Paul Bijnens <paul.bijnens@xplanation.com>
 
 
 2003-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * common-src/genversion.c (prundefvar): New macro to print an
+       * common-src/genversion.c (prundefvar): New function to print an
          undefined variable.
        * common-src/genversion.c: Print undefined variable.
        * server-src/amcheck.c: Improve message for no LPRCMD defined.
 
 2003-07-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * restore-src/amidxtaped.c: Don't clear re_label before checking
+       * restore-src/amidxtaped.c: Don't clea re_label before checking
          for the changer.
 
 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * changer-src/chg-zd-mtx.sh.in (initial_poll_delay): New config
          variable to add a pause after a tape loading.
-       * News: New initial_poll_delay config in chg-zd-mtx.
 
 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Fix by John E. Hein <jhein@timing.com>
 
        * changer-src/chg-chio.pl.in: Fix next/prev command.
 
-2003-07-06  Thomas Hepper <th@ant.han.de>
-       * changer-src/chg-scsi.c: Added debug Information to see which sg
-        version is used
-       * changer-src/scsi-linux.c: Added debug Information to see which sg
-       version is used.
-       Removed check if an data packet is larger than 4096 byte.
-
 2003-07-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        patch by Paul Bijnens <paul.bijnens@xplanation.com>
 
        * client-src/client_util.c (add_include): Count include with 2 /,
          Fix descriptor leak.
 
-2003-06-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * Amanda 2.4.4p1 released.
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.4p1).
-
-
 2003-06-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/amstatus.pl.in: Fix print spacing for idle dumpers.
 
+2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * server-src/holding.c: Fix compiler error.
+       * server-src/planner.c: Use snprintf.
+
 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        patch by Paul Bijnens <paul.bijnens@xplanation.com>
 
 
        * changer-src/chg-zd-mtx.sh.in: Log the changer file used.
 
-2003-06-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * server-src/holding.c: Skip lost+found directories on holding disks.
-
 2003-06-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/amverify.sh.in: Do not advance to next tape.
        * changer-src/scsi-hpux_new.c:Use pDev[DeviceFD].fd instead of DeviceFD.
        * changer-src/scsi-linux.c: Use pDev[ip].fd instead of DeviceFD.
 
+2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * client-src/noop.c: #include "util.h".
+
 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/amflush.c: Implement new -b and -s options.
          directory.
        * server-src/holding.h (mkholdingdir): Prototype.
        * server-src/driver.c: Use mkholdingdir;
-       * server-src/dumper.c: Call mkholdingdir before opening a file for
+       * server-src/chunker.c: Call mkholdingdir before opening a file for
          writing.
 
 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        * server-src/tapefile.c (read_tapelist,parse_tapeline): Fix for
          previous patch.
 
+2003-05-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * common-src/versuff.c.in: Use @VERSION_SUFFIX@.
+
 2003-05-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * example/amanda.conf.in: Add more amrecover_changer doc.
 
 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * configure.in (AC_CHECK_HEADERS): Remove linux/ftape-header-segment.h,
-         linux/ftape-vendors.h and linux/ftape.h.
+       * configure.in (AC_CHECK_HEADERS): Enleve linux/ftape-header-segment.h,
+         linux/ftape-vendors.h et linux/ftape.h.
 
 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Patch by Darin Dugan <dddugan@iastate.edu>
 
        * common-src/error.c (output_error_message): Always prepend program
          name.
-       * server-src/dumper.c (process_dumpeof): 'missing size line' and
-         'missing end line' should be failed, not strange.
 
 2003-04-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
 
        * server-src/amverifyrun.sh.in: Run the amverify command.
 
-2003-04-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Patch by Paul Bijnens <paul.bijnens@xplanation.com>
 
        * server-src/reporter.c: Get the filenumber correct.
        Patch by Paul Bijnens <paul.bijnens@xplanation.com>
 
        * server-src/reporter.c: Print a postscript label for each tape used.
-       * NEWS: Print a postscript label for each tape used.
 
 2003-03-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
 
 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * recover-src/set_commands.c (set_tape): Recognize null:, rait:, 
+       * recover-src/set_commands.c (set_tape): Recognize null:, rait:,
          file: and tape: as driver, not host name.
 
 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * changer-src/Makefile.am (libexec_SCRIPTS): Missing \.
 
-2003-03-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * NEWS: amrecover_changer works with chg-multi.
-
 2003-03-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * client-src/client_util.c (add_include): If include contain 2 '/' then
          use at asis, don't try to match it.
 
+2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * server-src/changer.h (changer_label): Return an int.
+       * server-src/changer.h (changer_label): First parameter is char *.
+
 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * file tape-src/output-rait.c (rait_open): Call tapefd_set_master_fd();
        * file tape-src/tapeio.c (struct tape_info): Add master_fd field.
        * file tape-src/tapeio.c (tape_info_init): Set master_fd to -1;
-       * file tape-src/tapeio.c (tapefd_getinfo_host, tapefd_getinfo_disk, 
+       * file tape-src/tapeio.c (tapefd_getinfo_host, tapefd_getinfo_disk,
          tapefd_getinfo_level): Return info of master_fd.
        * file tape-src/tapeio.c (tapefd_set_master_fd): New function to set
          master_fd.
        * file tape-src/tapeio.h (tapefd_set_master_fd): Prototype.
-       * NEWS: rait: works with file:
 
 2003-03-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * tape-src/output-file.c (file_tapefd_can_fork): New function that 
+       * tape-src/output-file.c (file_tapefd_can_fork): New function that
          return 1 if the file: can be run under a forked process.
        * tape-src/output-file.h (file_tapefd_can_fork): Prototype.
-       * tape-src/output-null.c (null_tapefd_can_fork): New function that 
+       * tape-src/output-null.c (null_tapefd_can_fork): New function that
          return 1 if the null: can be run under a forked process.
        * tape-src/output-null.h (null_tapefd_can_fork): Prototype.
        * tape-src/output-rait.c (rait_close, rait_tapefd_ioctl): Fork only if
        * tapefd_can_fork() return 1.
-       * tape-src/output-rait.c (rait_tapefd_can_fork): New function that 
+       * tape-src/output-rait.c (rait_tapefd_can_fork): New function that
          return 1 if the rait: can be run under a forked process.
        * tape-src/output-rait.h (rait_tapefd_can_fork): Prototype.
-       * tape-src/output-tape.c (tape_tapefd_can_fork): New function that 
+       * tape-src/output-tape.c (tape_tapefd_can_fork): New function that
          return 1 if the tape: can be run under a forked process.
        * tape-src/output-tape.h (tape_tapefd_can_fork): Prototype.
        * tape-src/tapeio.c (struct virtualtape): Add xxx_tapefd_can_fork and
          initialize vtable[];
-       * tape-src/tapeio.c (tapefd_can_fork): New function to can the driver 
+       * tape-src/tapeio.c (tapefd_can_fork): New function to can the driver
          xxx_tapefd_can_fork function.
        * tape-src/tapeio.h (tapefd_can_fork): Prototype.
 
 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * changer-src/chg-zd-mtx.sh.in: Default for driveslot is 0.
-       * NEWS: default driveslot for chg-zd-mtx is now 0.
 
 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * amplot/amplot.awk: Add 'color' to command if bw is set.
        * amplot/amplot.g: Change line 6 to line 8.
        * man/amplot.8: Document -b option.
-       * NEWS: Document amplot -b option.
 
 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
 
 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Patch by Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
-
+       
        * restore-src/amidxtaped.c: Use the device sent by the changer.
 
 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        * restore-src/amidxtaped.c: Remove lock 'unlink(conf_logfile)' on
          all failure path.
 
-2003-02-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-       Patch by Martin Forssen <maf@appgate.com>
-
-       * server-src/changer.c (changer_label): Do not amfree(rest).
-
-2003-02-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * Amanda 2.4.4 released.
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.4).
+       * server-src/changer.c: Sync with 2.4.4.
 
 2003-02-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * client-src/client_util.c: Print error except ENOENT for 
+       * client-src/client_util.c: Print error except ENOENT for
          exclude/include files.
 
 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * server-src/conffile.c (init_defaults): conf_printer.s must be set 
+       * server-src/conffile.c (init_defaults): conf_printer.s must be set
          with stralloc("").
 
 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * server-src/tapefile.c (read_tapelist): return 1 if can't open the 
+       * server-src/tapefile.c (read_tapelist): return 1 if can't open the
          tapelist file.
 
 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/amcheck.c: New -a option.
        * man/amcheck.8.in: Document it.
-       * NEWS: Document it.
 
 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
 
        * man/amtapetype.8.in: Fix example.
 
-2003-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * Amanda 2.4.4b1 released.
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.4b1).
-
 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * common-src/amanda.h: #define S_ISDIR if not already defined.
 
 2003-01-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
-       * recover-src/extract_list.c (add_extract_item, delete_extract_item): 
+       * recover-src/extract_list.c (add_extract_item, delete_extract_item):
          Check also for level when comparing label.
 
-2003-01-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * server-src/dumper.c (update_dataptr): Loop if rc == 0.
-
 2003-01-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        Do not build chg-scsi-chio, it is buggy.
 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        Add new maxpromoteday option in a dumptype.
-       * NEWS: Document it.
        * example/amanda.conf.in: Give an example
        * man/amanda.8.in: Document it.
        * server-src/amadmin.c: Print it in the disklist subcommand.
 
        * tape-src/output-tape.c: Add a ; after f = MT_UNLOAD
 
-2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * server-src/amcheck.c (handle_response): Print 'request timed out' or
-         'reply timed out'.
-       * server-src/dumper.c (sendbackup_response): Print 'request timeout' or
-         'reply timeout'.
-
-2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * common-src/protocol.h (proto_t): Add prevstate field.
-       * common-src/protocol.c: Keep prevstate up to date.
-       * server-src/planner.c (handle_result): Use prevstate to write
-         Request or Estimate timeout.
-
 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        Undo patch of 2002-11-27. That doesn't work well for the planner.
 
        * client-src/sendsize.c: Ditto.
        * common-src/amfeatures.c: Ditto.
        * common-src/debug.c: Ditto.
-       * common-src/file.c: Ditto.
-       * common-src/security.c: Ditto.
        * recover-src/amrecover.c: Ditto.
        * recover-src/extract_list.c: Ditto.
        * recover-src/set_commands.c: Ditto.
        * recover-src/uparse.y: Ditto.
        * recover-src/uscan.l: Ditto.
-       * server-src/amcheck.c: Ditto.
        * server-src/amindexd.c: Ditto.
        * server-src/amlabel.c: Ditto.
-       * server-src/amlogroll.c: Ditto.
        * server-src/amtape.c: Ditto.
        * server-src/amtrmidx.c: Ditto.
        * server-src/amtrmlog.c: Ditto.
        * server-src/changer.c: Ditto.
        * server-src/conffile.c: Ditto.
-       * server-src/diskfile.c: Ditto.
        * server-src/driver.c: Ditto.
        * server-src/driverio.c: Ditto.
        * server-src/dumper.c: Ditto.
        * server-src/find.c: Ditto.
-       * server-src/getconf.c: Ditto.
        * server-src/holding.c: Ditto.
        * server-src/logfile.c: Ditto.
        * server-src/planner.c: Ditto.
        * server-src/driver.c (startaflush): New function to start a flush to
          tape.
 
+2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
+
+       * server-src/diskfile.c (parse_diskline): Allow skip in dumptype.
+
 2002-12-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/amstatus.pl.in: Parse features from PORT-WRITE line.
        * recover-src/extract_list.c (extract_files_child): Set dumptype to
          IS_SAMBA_TAR if it's a SAMBA backup. Don't pass the G flag to tar
          if it's IS_SAMBA_TAR.
-       
+
 2002-12-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * amplot/amplot.awk: Parse line with features, parse ENDFLUSH line.
 
        * amplot/amplot.awk: Parse newer log lines.
 
-2002-12-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
-       * client-src/selfcheck.c: Typo.
-
-2002-12-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
-
+2002-12-11  Jean-Louis Martineau <martineau@iro.umontreal.ca> 
        * server-src/reporter.c (output_stats): Typo.
 
 2002-12-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
        * server-src/amadmin.c: Fix for newer days_diff.
        * server-src/planner.c: Fix for newer days_diff.
 
+2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * client-src/amandad.c: Fix compiler warning.
+       * common-src/Makefile.am (bsdsecurity): Link with file.o.
+       * common-src/bsd-security.c: Fix compiler warning.
+       * common-src/bsd-security.c (construct_datestamp, construct_timestamp):
+         Add function if TEST.
+       * server-src/chunker.c: Fix compiler warning.
+       * server-src/dumper.c: Fix compiler warning.
+
 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * tape-src/tapetype.c: Cast time_t to long for printing.
 
 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/planner.c (delay_dumps): Use ap_snprintf.
+       * server-src/planner.c (delay_dumps): Use snprintf.
 
 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 
 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * docs/TAPE.CHANGERS: Sync with 2.5.0
-       * changer-src/chg-juke.sh.in: New changer from 2.5.0
-       * changer-src/chg-rait.sh.in: New changer from 2.5.0
-       * changer-src/chg-null.sh.in: New changer from 2.5.0
-       * changer-src/Makefile.am: Install them.
-       * configure.in (AC_CONFIG_FILES): Add chg-juke.sh.in, chg-rait.sh.in and
-         chg-null.sh.in
+       * docs/TAPE.CHANGERS: Sync with 2.4.3.
 
 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 
        * server-src/reporter.c: Fix for LPRCMD not defined.
 
+2002-11-14  Marc Mengel <mengel@fnal.gov>
+
+       New changer scripts for use with rait: code, run several other
+       changers in tandem and return a rait: tape device.  Makes fake
+       amanda.conf files under AMANDA_DEBUGDIR for each changer used,
+       then cleans up.
+
+       * changer-src/chg-rait.sh.in:   New file. Multi-changer script.
+       * changer-src/chg-null.sh.in:   New File. Null-device changer script.
+       * docs/TAPE.CHANGERS:  Descriptions of above.
+       * configure.in: added above files.
+       * changer-src/Makefile.am: Likewise.
+
 2002-11-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        Patch by Orion Poplawski <orion@colorado-research.com>
 
        * changer-src/scsi-defs.h (B, B1): Check if already defined.
        * server-src/taper.c: Some cast to int.
        * tape-src/amdd.c (read_func, write_func): Complete prototype.
-       * tape-src/tapeio.h (tapefd_read, tapefd_write): return ssize_t, 
+       * tape-src/tapeio.h (tapefd_read, tapefd_write): return ssize_t,
          third argument is size_t.
        * tape-src/tapeio.c: Ditto.
-       * tape-src/output-file.h (file_tapefd_read, file_tapefd_write): return 
+       * tape-src/output-file.h (file_tapefd_read, file_tapefd_write): return
          ssize_t, third argument is size_t.
        * tape-src/output-file.c: Ditto.
-       * tape-src/output-null.h (null_tapefd_read, null_tapefd_write): return 
+       * tape-src/output-null.h (null_tapefd_read, null_tapefd_write): return
          ssize_t, third argument is size_t.
        * tape-src/output-null.c: Ditto.
        * tape-src/output-rait.h (rait_read, rait__write): return ssize_t,
-         third argument is size_t.
+          third argument is size_t.
        * tape-src/output-rait.c: Ditto.
-       * tape-src/output-tape.h (tape_tapefd_read, tape_tapefd_write): return 
+       * tape-src/output-tape.h (tape_tapefd_read, tape_tapefd_write): return
          ssize_t, third argument is size_t.
        * tape-src/output-tape.c: Ditto.
 
 
 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-        * configure.in: Remove --disable-libtool.
-        * */Makefile.am: Remove WANT_LIBTOOL.
+       * configure.in: Remove --disable-libtool.
+       * */Makefile.am: Remove WANT_LIBTOOL.
 
 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/amtape.c: Ditto.
        * server-src/amtrmidx.c: Ditto.
        * server-src/amtrmlog.c: Ditto.
+       * server-src/chunker.c: Ditto.
        * server-src/diskfile.c: Ditto.
        * server-src/driver.c: Ditto.
        * server-src/dumper.c: Ditto.
        * server-src/planner.c: Ditto.
        * server-src/reporter.c: Ditto.
        * server-src/taper.c: Ditto.
-       * server-src/conffile.c: (config_name, config_dir): Add declaration.
+       * server-src/conffile.c (config_name, config_dir): Add declaration.
 
 2002-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
          is_local_fstype): remove Prototype.
 
 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-        Patch by Paul Bijnens <paul.bijnens@xplanation.com>
+       Patch by Paul Bijnens <paul.bijnens@xplanation.com>
 
-        * tape-src/tapetype.c: Detects and warns the user if the tape drive
+       * tape-src/tapetype.c: Detects and warns the user if the tape drive
          has hardware compression enabled.
 
 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        * restore-src/amrestore.c: New '-f <fileno>' flag, Do a rewind and
          'fsf <fileno>' if -f is set.
        * man/amrestore.8: Document -f flag.
-
+       
 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * common-src/amfeatures.h (fe_amindexd_fileno_in_OLSD,
+       * common-src/amfeatures.h (fe_amindexd_fileno_in_OLSD, 
          fe_amindexd_fileno_in_ORLD): New amfeatures.
        * common-src/amfeatures.c (am_init_feature_set): Set
          fe_amindexd_fileno_in_OLSD and fe_amindexd_fileno_in_ORLD.
          fe_amindexd_fileno_in_OLSD or fe_amindexd_fileno_in_ORLD are set.
 
 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-       Patch by Doug Kingston <dpk@pobox.com>
+       patch by Doug Kingston <dpk@pobox.com>
 
        * configure.in (NEED_PATH_ENV, IGNORE_UID_CHECK, IGNORE_FSTAB,
          DONT_SUID_ROOT): Defined if on *-pc-cygwin.
 
        * recover-src/extract_list.c (READ_TIMEOUT): Increased to 240*60.
 
-2002-10-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * Amanda 2.4.3 released.
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.3).
-
 2002-09-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined.
-
-2002-09-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * NEWS: Changes in release 2.4.3.
+        * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined.
 
 2002-09-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 
 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/taper.c (read_file): Initialize file,
+       * server-src/taper.c (read_file): Initialize file, 
          stat(file.cont_filename) before opening it.
-         
+          
 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/amverify.sh.in: Don't check that the device is
          a character device, it could be a file: or rait:
 
-2002-09-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * common-src/amfeatures.c (am_set_default_feature_set):
          fe_rep_options_sendbackup_options is a default feature.
 
-2002-09-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
 
        * server-src/amstatus.pl.in: Sort a disk in datestamp order.
 
 
        * server-src/reporter.c: Fix compilation error if LPRCMD is not defined.
 
-2002-08-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * Amanda 2.4.3b4 released.
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.3b4).
-       * NEWS: Changes in release 2.4.3b4.
-
 2002-08-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        Patch by Jason Brooks <jason0@mail.wrs.com>
 
        * docs/chg-scsi.notes: New document.
-       * changer-src/chg-scsi.c: Adding printout of "emubarcode" values
+       * changer-src/chg-scsi.c: Adding printout of "emubarcode" values 
          in the debug file.
-       * changer-src/scsi-changer-driver.c: Added dlt8000 and L500 to
+       * changer-src/scsi-changer-driver.c: Added dlt8000 and L500 to 
          ChangerIO[].
        * changer-src/sense.c: Added dlt8000 and L500 to SenseType[].
 
 2002-08-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * tape-src/output-null.c (null_tape_stat, null_tape_access): Use 
+       * tape-src/output-null.c (null_tape_stat, null_tape_access): Use
          "/dev/null" instead of filename.
 
 2002-08-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * changer-src/scsi-hpux.c: Add amanda copyright.
+       * changer-src/chg-mtx.sh.in: Sync with 2.4.3 branch.
+       * changer-src/chg-scsi-chio.c: Ditto.
+       * changer-src/chg-scsi.c: Ditto.
+       * changer-src/scsi-aix.c: Ditto.
+       * changer-src/scsi-bsd.c: Ditto.
+       * changer-src/scsi-cam.c: Ditto.
+       * changer-src/scsi-changer-driver.c: Ditto.
+       * changer-src/scsi-defs.h: Ditto.
+       * changer-src/scsi-hpux_new.c: Ditto.
+       * changer-src/scsi-irix.c: Ditto.
+       * changer-src/scsi-linux.c: Ditto.
+       * changer-src/scsi-solaris.c: Ditto.
+       * tape-src/tapeio.c: Ditto.
 
 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * common-src/amanda.h: Fix bad #define.
 
 2002-07-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-       Patch by David Munro <D.Munro@surrey.ac.uk>
+       Patch by
+         David Munro <D.Munro@surrey.ac.uk>
 
        * common-src/sl.c (new_sl): Alloc (sl_t) instead of (sl_t *).
-         
+          
 2002-06-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-       Bug reported by
+       Bug reported by 
          Jonathan R. Johnson <Jonathan.Johnson@MinnetonkaSoftware.com>
 
        * server-src/reporter.c: Fix psfname filename.
          fe_rep_options_sendbackup_options.
        * common-src/amfeatures.c (am_init_feature_set): Add
          fe_rep_options_features.
-       * client-src/selfcheck.c: Write REP packet according to server features.
-       * client-src/sendbackup.c: Ditto.
+       * client-src/selfcheck.c: Write REP packet according to server features.        * client-src/sendbackup.c: Ditto.
        * client-src/sendsize.c: Ditto.
 
 2002-04-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * common-src/amfeatures.h: 
+       * common-src/amfeatures.h:
             Rename fe_g_options_maxdump  to fe_req_options_maxdumps
             Rename fe_g_options_hostname to fe_req_options_hostname
             Rename fe_g_options_features to fe_req_options_features
 
 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/amcheck.c (start_host): Check the todo bit before
+       * server-src/amcheck.c (start_host): Check the todo bit before 
          sending noop REQ.
 
 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        * client-src/sendbackup.c: Ditto.
        * client-src/sendsize.c: Ditto.
 
-2002-04-20  Thomas Hepper <th@ant.han.de>
-       * changer-src/scsi-aix.c: Fixed bug with the setting of the GSC driver
-         Added detection and setting of device type tape/robot
-       * changer-src/scsi-bsd.c: Added detection and setting of device 
-         type tape/robot
-       * changer-src/scsi-cam.c: Added detection and setting of device 
-         type tape/robot
-       * changer-src/scsi-hpux_new.c: Added detection and setting of device 
-         type tape/robot
-       * changer-src/scsi-linux.c: Added detection and setting of device 
-         type tape/robot
-       * changer-src/scsi-solaris.c: Added detection and setting of device 
-         type tape/robot
-       * changer-src/scsi-irix.c: Added detection and setting of device 
-         type tape/robot
-       * changer-src/scsi-changer-driver.c: Now there is an device handler
-         for an generic tape and an generic robot.
-         The result length from the read element status is now checked
-         and only fields which are in this area are used.. (Some librarys
-         retrun only 4 byte, expected are 52)
-       * changer-src/scsi-defs.h: Fixed the some defines in 
-         ElementStatusPage_T, 
-
 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * client-src/client_util.c (parse_g_options) New function to parse
 
 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/diskfile.c: Improve message for missing features.
+        * server-src/diskfile.c: Improve message for missing features.
 
 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        Add many features.
-       * common-src/amfeatures.c (am_set_default_feature_set): New function
+       * common-src/amfeatures.c (am_set_default_feature_set): New function 
          to set the default features set.
        * common-src/amfeatures.h (am_set_default_feature_set): Prototype.
-       * common-src/amfeatures.h: Rename amanda_feature_auth_keyword to
+       * common-src/amfeatures.h: Rename amanda_feature_auth_keyword to 
          fe_options_auth.
        * client-src/client_util.c: Check features.
        * server-src/amcheck.c: Ditto.
        * server-src/diskfile.h (optionstr): Change prototype.
        * client-src/sendsize.c: Fix compiler warning.
 
+2002-04-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * common-src/amfeatures.c: Include "amfeatures.h"
+       * common-src/rsh-security.c: Don't assert on undefined variable.
+
 2002-04-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * common-src/amfeatures.c: Renamed from features.c
        * client-src/sendbackup.c: Ditto.
        * client-src/sendsize.c: Ditto.
        * server-src/amcheck.c: Ditto.
+       * server-src/chunker.h: Ditto.
        * server-src/diskfile.h: Ditto.
        * server-src/dumper.c: Ditto.
        * server-src/planner.c: Ditto.
        * client-src/sendbackup.c: Ditto.
        * client-src/sendsize.c: Ditto.
        * server-src/diskfile.c: Ditto.
+       * server-src/planner.c: Fix compiler warning.
 
 2002-04-13  John R. Jackson (jrj@purdue.edu)
 
        * server-src/diskfile.c: Fix memory leak.
 
+2002-04-13  John R. Jackson (jrj@purdue.edu)
+
+       * server-src/amcheck.c: Fix error parsing in packet.
+
 2002-04-13  John R. Jackson (jrj@purdue.edu)
 
        * common-src/features.c: New file.  Add support for feature sets so
          Improve parsing.
        * client-src/sendbackup.c: Ditto.
        * client-src/sendsize.c: Ditto.
+       * common-src/bsd-security.c: Minor message change.
        * common-src/error.c: Use strcasecmp.
        * common-src/protocol.c: Use dbprintf for PROTO_DEBUG and improve
-         messages.  Improve parsing.
-       * common-src/security.c: Improve parsing.
+         messages.
+       * restore-src/amidxtaped.c: Improve parsing.
        * server-src/amcheck.c: Ask for client features via "noop" before
          doing the real "selfcheck" service requests.  Improve parsing.
        * server-src/amflush.c: Minor coding format cleanup.
+       * restore-src/amindexd.c: Improve parsing.
+       * server-src/chunker.c: Deal with features string in commands.  Improve
+         parsing.
        * server-src/diskfile.c: Initialize the features hosttype field.
        * server-src/diskfile.h: Add the features hosttype field.
        * server-src/driver.c: Save the features from the schedule.  Clean
        * server-src/taper.c: Deal with features string in commands.  Improve
          parsing.
 
+2002-04-12  John R. Jackson (jrj@purdue.edu)
+
+       * server-src/driver.c: Fix crash when only processing a tape queue
+         (e.g. amflush).
+
+2002-04-11  John R. Jackson (jrj@purdue.edu)
+
+       * server-src/driver.c: Protect against crash when taper has died.
+
 2002-04-11  John R. Jackson (jrj@purdue.edu)
 
        * common-src/stream.c: Clean up an error message.
 
+2002-04-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * docs/DUMPER-API: Remove the section about USER and GROUP.
+
 2002-04-09  John R. Jackson (jrj@purdue.edu)
 
        * server-src/driver.c: Fix send of QUIT to taper when it is down.
 
+2002-04-07  John R. Jackson (jrj@purdue.edu)
+
+       * server-src/dumper.c: Change sendbackup response parsing to handle
+         2.4 changes.  Improve packet parse error processing.  Make packet
+         logging conditional on an #ifdef instead of commented out.
+
+2002-04-07  John R. Jackson (jrj@purdue.edu)
+
+       * client-src/amandad.c: Fix FORCE_USERID to run the service as the
+         client user if amandad was started as root.
+
+2002-04-07  John R. Jackson (jrj@purdue.edu)
+
+       * common-src/clock.c: Move definition of amanda_gettimeofday() macro
+         to the header file so it could be used other places.  Use new
+         amanda_timezone macro to avoid some #ifdef's.
+       * common-src/clock.h: Ditto.
+       * common-src/bsd-security.c: Fix compatibility problems with pre-2.5
+         servers trying to talk to 2.5 clients.  The HANDLE value was not
+         being properly handled, and the sequence number was being ignored.
+
 2002-04-07  John R. Jackson (jrj@purdue.edu)
 
        * server-src/reporter.c: Move column routines to conffile.c so amcheck
        * changer-src/scsi-defs.h: Fix compiler warning and bug it was hiding.
        * changer-src/scsi-solaris.c: Ditto.
 
+2002-03-31  John R. Jackson (jrj@purdue.edu)
+
+       * client-src/amandad.c: Fix arguments to pkt_cat.
+       * common-src/bsd-security.c: Ditto.
+
 2002-03-31  John R. Jackson (jrj@purdue.edu)
 
        * client-src/amandad.c: Add relative timestamps to a lot of debug
        * client-src/sendbackup.c: Ditto.
        * client-src/sendbackup.h: Ditto.
        * client-src/sendsize.c: Ditto.
-       * common-src/Makefile.am: Ditto.
        * common-src/amanda.h: Ditto.
+       * common-src/bsd-security.c: Ditto.
        * common-src/clock.c: Ditto.
        * common-src/clock.h: Ditto.
        * common-src/debug.c: Ditto.
        * common-src/dgram.c: Ditto.
        * common-src/error.c: Ditto.
+       * common-src/file.c: Ditto.
        * common-src/pipespawn.c: Ditto.
-       * common-src/security.c: Ditto.
        * common-src/stream.c: Ditto.
        * common-src/util.c: Ditto.
        * man/amanda.8.in: Ditto.
 
 2002-03-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * client-src/client_util.c (fixup_relative): New function to prepend 
+       * client-src/client_util.c (fixup_relative): New function to prepend
          the dirname if relative.
-       * client-src/client_util.c (build_exclude, build_include): Use 
+       * client-src/client_util.c (build_exclude, build_include): Use
          fixup_relative.
        * client-src/client_util.c (parse_options): Do not prepend the dirname.
        * client-src/selfcheck.c (check_options): Don't generate ERROR for samba
 
        * client-src/sendbackup-gnutar.c: Fix use of no_record.
 
-2002-03-24  Thomas Hepper ( th@ant.han.de)
-       * changer-src/chg-scsi-chio.c: Fixed problems introduced by the agets change
-       * client-src/sendbackup-dump.c: Fixed compile problem on AIX, no_record
-         is no longeer defined, ist is now options->no_record.
-
 2002-03-24  John R. Jackson (jrj@purdue.edu)
 
        * client-src/amandad.c: Make sure argv[0] is valid before using it.
        * server-src/disk_history.c: Ditto.
        * server-src/driver.c: Ditto.
        * server-src/dumper.c: Ditto.
-       * server-src/list_dir.c: Ditto.
        * common-src/amanda.h: Always pass the source file and line number
          to the memory routines to make it easier to debug.
        * common-src/alloc.c: Ditto.
        * common-src/file.c: Ditto.
-       * common-src/dgram.c: Ditto.
-       * common-src/dgram.h: Ditto.
-
-2002-03-24  Thomas Hepper ( th@ant.han.de)
-       * changer-src/chg-scsi.c: Fixed problems introduced by the agets change
-       * changer-src/chg-scsi.c (MapBarCode): Fixed error in eof handling
-         eof was not correctly detected, now use the feof function.
-       * changer-src/scsi-aix.c (SCSI_OS_Version()): New function to print
-         the rcsid 
-       * changer-src/scsi-aix.c: same as above
-       * changer-src/scsi-cam.c: same as above
-       * changer-src/scsi-hpux_new.c: same as above
-       * changer-src/scsi-irix.c: same as above
-       * changer-src/scsi-linux.c: same as above
-       * changer-src/scsi-solaris.c: same as above
-       * changer-src/scsi-changer-driver.c (DLT448ElementStatus()): Fixed 
-         error messages. Fixed some errors with the barcode handling.
 
 2002-03-23  John R. Jackson (jrj@purdue.edu)
 
        * configure.in: Add -R$dir as well as -L$dir on Solaris when processing
          --with-libraries to support shared libraries of support products.
 
+2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/chunker.c: Get result from dumper.
+       * server-src/driver.c: Send dumper result to chunker.
+       * server-src/driverio.c (chunker_cmd): Send DONE and FAILED command.
+       * server-src/driverio.h (chunker_t): New down field.
+       * server-src/dumper.c: Cleanup.
+       * server-src/logfile.c (logtype_str): Add "PARTIAL".
+       * server-src/logfile.h (logtype_e): Add L_PARTIAL log.
+       * server-src/reporter.c: Handle PARTIAL log.
+       * server-src/server_util.c (cmdstr): Add "PARTIAL".
+       * server-src/server_util.h (cmd_t): Add PARTIAL command.
+       * server-src/taper.c (read_file): Result is PARTIAL if dumper
+         result is not DONE.
+
 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/tapefile.c (write_tapelist): Write to a temp file and
 2002-03-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/amstatus.pl.in: Fix.
-       * server-src/conffile.c(get-compress): Change message for bad
+       * server-src/conffile.c(get-compress): Change message for bad 
          compress argument.
 
 2002-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/amstatus.pl.in: Fix.
+       * client-src/client_util.c (parse_options): Parse auth= option.
+       * client-src/client_util.h (option_t): Add auth field.
+       * client-src/sendbackup.c: Use auth instead of bsd-auth.
+       * client-src/sendsize.c: Init auth.
 
 2002-03-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * client-src/sendbackup-dump.c: use amdevice as argument to
          amname_to_fstype.
+       * client-src/sendsize.c: Use amdevice as argument to amname_to_dirname.
+       * server-src/dumper.c: clear device if it is set to NODEVICE.
 
 2002-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * Amanda 2.4.3b3 released
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.3b3)
-
-2002-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * ReleaseNotes: New file.
-       * NEWS: New item for 2.4.3b3.
+       * server-src/amindexd.c: Compilation fix.
 
 2002-03-07 John R. Jackson (jrj@purdue.edu)
 
 
 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/amstatus.pl.in: Write "wait to flush" only if waittaper
+        * server-src/amstatus.pl.in: Write "wait to flush" only if waittaper
          is requested.
 
 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * common-src/debug.c (debug_open); Don't try to renmae an already
+       * common-src/debug.c (debug_open); Don't try to renmae an already 
          renamed file.
 
 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/conffile.c (dump_configuration): Print multiple
+       * server-src/conffile.c (dump_configuration): Print multiple 
          exclude and include.
 
 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * client-src/client_util.c (build_include, build_exclude): Fix for
+       * client-src/client_util.c (build_include, build_exclude): Fix for 
          bad eof detection.
 
 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
          the exclude file.
        * client-src/client_util.c (add_include): Add an include to the
          include file.
-       * client-src/client_util.c (build_exclude): Concat all excludes in
+       * client-src/client_util.c (build_exclude): Concat all excludes in 
          one file.
-       * client-src/client_util.c (build_include): Concat all includes in
+       * client-src/client_util.c (build_include): Concat all includes in 
          one file.
        * client-src/client_util.h (build_exclude, build_include): Prototype.
-       * client-src/selfcheck.c.diff (check_options): Call build_exclude
+       * client-src/selfcheck.c.diff (check_options): Call build_exclude 
          and build_include.
-       * client-src/sendsize.c.diff: Call gtar with one
+       * client-src/sendsize.c.diff: Call gtar with one 
          exclude file/include file.
-       * client-src/sendbackup-gnutar.c.diff: Call gtar with one
+       * client-src/sendbackup-gnutar.c.diff: Call gtar with one 
          exclude file/include file.
 
 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        * server-src/planner.c: Use new protocol if include is used.
        * client-src/client_util.h (option_t): Add include_file and include_list
        * client-src/client_util.c (parse_options): Parse include.
-       * client-src/selfcheck.c (check_options): Print ERROR if include are
+       * client-src/selfcheck.c (check_options): Print ERROR if include are 
          used for SAMBA or DUMP.
        * client-src/sendsize.c: Send include to gnutar.
        * client-src/sendbackup-gnutar.c: Send include to gnutar.
 
 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * client-src/client_util.c (parse_options): Check that files from 
+       * client-src/client_util.c (parse_options): Check that files from
          'exclude list' exist'.
-       * client-src/selfcheck.c (check_options): Give ERROR if multiple 
+       * client-src/selfcheck.c (check_options): Give ERROR if multiple
          exclude are used with samba or if exclude are used with DUMP.
 
 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * client_src/client_util.c (parse_options): Function to parse
-         the option string.
+       * client-src/sendbackup.h: Remove bad stuff introduced in previous
+         patch.
+       * client-src/sendbackup-gnutar.c: Ditto.
+
+2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * client_src/client_util.c (parse_options): Function to parse 
+         the option string. 
        * client_src/client_util.h (parse_options): Prototype.
        * client_src/client_util.h (option_t): Struct for options.
        * client_src/Makefile.am: Compile client_util.
 
 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * common-src/pipespawn.c (pipespawnv): New funtion taking an
+       * common-src/pipespawn.c (pipespawnv): Typo, ap_snprintf -> snprintf.
+
+2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * common-src/pipespawn.c (pipespawnv): New funtion taking an 
          argv argument.
        * common-src/pipespawn.h (pipespawnv): Prototype.
 
 
        * changer-src/chg-zd-mtx.sh.in: Don't use '^' in expr match argument.
 
+2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * common-src/fileheader.c (build_header): Typo.
+
 2002-02-10 John R. Jackson (jrj@purdue.edu)
 
        * configure.in: Add new file-pad tapetype option to take the place
 
        * common-src/alloc.c: Fix type mismatch issues discovered by splint
          (www.splint.org).  Compliments of jens persson <jens@persson.cx>.
+       * common-src/bsd-security.c: Ditto.
        * common-src/debug.c: Ditto.
        * common-src/dgram.c: Ditto.
        * common-src/file.c: Ditto.
        * common-src/fileheader.c: Ditto.
        * common-src/fileheader.h: Ditto.
+       * common-src/genversion.c: Ditto.
        * common-src/getcwd.c: Ditto.
        * common-src/match.c: Ditto.
-       * common-src/security.c: Ditto.
        * common-src/stream.c: Ditto.
        * common-src/strstr.c: Ditto.
        * common-src/token.c: Ditto.
          argument list functions.
        * changer-src/scsi-changer-driver.c: Ditto.
        * common-src/debug.c: Ditto.
+       * common-src/dgram.c: Ditto.
        * common-src/error.c: Ditto.
+       * common-src/packet.c: Ditto.
+       * common-src/packet.h: Ditto.
+       * common-src/security.c: Ditto.
        * common-src/snprintf.c: Ditto.
        * common-src/token.c: Ditto.
        * common-src/token.h: Ditto.
 
 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/holding.c (scan_holdingdir): Create the list in
+       * server-src/holding.c (scan_holdingdir): Create the list in 
          datestamp order.
 
 2002-02-02 John R. Jackson (jrj@purdue.edu)
          running OSF1 v5.1
 
 2002-02-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-       Reported by Roland E. Lipovits <rel@lipo.at0.net>
+        Reported by Roland E. Lipovits <rel@lipo.at0.net>
 
-       * server-src/amstatus.pl.in: Don't double-counts the failed
+       * server-src/amstatus.pl.in: Don't double-counts the failed 
          estimate partitions.
 
 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * common-src/fileheader.c (build_header): Write the BLOCKSIZE= line
          after the dd if=... line.
-       * common-src/fileheader.c (parse_file_header): Ignore unknown line.
 
 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/amindexd.c: Clean up reporting of errors by gethostby*()
          functions.  Make sure they always report what they were trying to
          look up, and don't bother reporting errno (it would be h_errno).
-       * server-src/dumper.c: Ditto.
-       * server-src/planner.c: Ditto.
-
-2002-01-17  Thomas Hepper <th@ant.han.de>
-
-       * changer-src/scsi-changer-driver.c (DecodeSense): Check if it is
-         an normal or an extended result from request sense, and only
-         print the correct infos for the detected type.
-       * changer-src/scsi-changer-driver.c (RequestSense): Use the passed
-         pointer to store the result from request sense. Do not allocate
-         an own buffer. Fixed the bufer size which is passed to teh SCSI
-         function.
-       * changer-src/scsi-changer-driver.c (ChangerStatus): Use the macros
-         for setting the device to use for query, don't use fix values.
-       * changer-src/scsi-changer-driver.c (SCSI_Run): skip the sleep
-         if the status is ok, only sleep if we will loop.
-       * changer-src/scsi-changer-driver.c (DebugPrint): Print an timestamp
-         to see how many time is used between the prints and so see where
-         the time is gone.
 
 2002-01-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * common-src/fileheader.h (dumpfile_t): Add blocksize field.
        * common-src/fileheader.h (build_header): Change prototype.
-       * common-src/fileheader.c (fh_init): blocksize default to
+       * common-src/fileheader.c (fh_init): blocksize default to 
          DISK_BLOCK_BYTES.
        * common-src/fileheader.c (parse_file_header): Parse BLOCKSIZE= line.
-       * common-src/fileheader.c (build_header): Remove blocksize parameter,
+       * common-src/fileheader.c (build_header): Remove blocksize parameter, 
          write the BLOCKSIZE= line.
        * tape-src/tapeio.c: set file.blocksize, Change call to build_header.
        * restore-src/amrestore.c: Ditto.
        * server-src/dumper.c: Ditto.
        * server-src/taper.c: Ditto.
        * server-src/holding.c: Ditto.
+       * server-src/chunker.c: Ditto.
 
 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 
        * server-src/planner.c: Check for dp->todo.
 
-2002-01-10   Thomas Hepper <th@ant.han.de>
-
-        * changer-src/scsi-changer-driver.c: Fixed prototype for SCSI_ReadElementStatus
-        * changer-src/scsi-changer-driver.c (eject_tape): Fixed error in the rewind 
-        * changer-src/scsi-changer-driver.c (unload): Fixed error in the rewind logic
-        * changer-src/scsi-changer-driver.c (load): Fixed error in the rewind logic
-        * changer-src/scsi-changer-driver.c (GetElementStatus): Fixed error in the parameter list to SCSI_ReadElementStatus
-        * changer-src/scsi-changer-driver.c (SCSI_ReadElementStatus): Changed the logic, if the size for DescriptorSize
-         is 0 try to get the size the old way, if this parameter greate 0 take this value as the size for the data
-         buffer which is used to hold the result. May fix a problem with an HP changer
-       * changer-src/scsi-defs.h: Updated the structs for the different element types (Media Changer, Storage, Tape, Import)
-
-
 2002-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
 
 
        * changer-src/Makefile.am: Run `perl -c' on perl script.
        * client-src/Makefile.am: Ditto.
+       * dumper-src/Makefile.am: Ditto.
        * server-src/Makefile.am: Ditto.
 
 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 2002-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * Amanda 2.4.3b2 released
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.3b2)
-       * NEWS: New feature of amanda-2.4.3b2
+       * common-src/event.c: Use ASSERTIONS not ASSERT.
 
 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * changer-src/scsi-irix.c (SCSI_OpenDevice): Cast to int.
        * common-src/match.c (clean_regex): Cast to int.
 
+2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+       Reported by <ian.willis@sge.net>
+
+       * common-src/rsh-security.c: Fix for RSH_DEBUG.
+
 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * config/ltconfig: Remove.
+       * config/ltconfig: Remove
        * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.2.
        * config/config.guess: Update from
-         ftp://ftp.gnu.org/gnu/config/config.guess.
-       * config/config.sub: Update from
-         ftp://ftp.gnu.org/gnu/config/config.sub.
-       * config/depcomp, config/install-sh, config/missing,
-         config/mkinstalldirs: Update from automake 1.5.
+         ftp://ftp.gnu.org/gnu/config/config.guess
+       * config/config.sub: Update from 
+         ftp://ftp.gnu.org/gnu/config/config.sub
+       * config/depcomp, config/install-sh, config/missing, 
+         config/mkinstalldirs: Update from automake 1.5
        * config/Makefile.am (EXTRA_DIST): Remove ltconfig.
 
 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * configure.in: Add missing [.
 
+2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+       Patch by Jason Thomas <jason@topic.com.au>
+            and Eric Siegerman <erics@telepres.com>
+
+       * common-src/bsd-security.c (check_user_amandahosts): improve message.
+
 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/driver.c: Do not go in degraded mode in nodump mode.
        * server-src/driver.c (main): Don't check the value of RESERVE.
        * server-src/driver.c (find_diskspace): Remove as_pref variable.
        * server-src/driverio.c (getresult): cast cmd_t.
-       * server-src/dumper.c (update_dataptr): save_type is a filetype_t.
+       * server-src/chunker.c (databuf_flush): save_type is a filetype_t.
        * server-src/find.c (search_logfile): Remove host_undo_ch and
          disk_undo_ch variables.
        * server-src/holding.c (pick_datestamp): Remove result variable.
 
 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * restore-src/amrestore.c: Fix compiler warning.
+       * client-src/selfcheck.c: Fix compiler warning.
        * changer-src/chg-scsi.c: Ditto.
-       * common-src/fileheader.c: Ditto.
        * changer-src/scsi-changer-driver.c: Ditto.
        * changer-src/scsi-defs.h: Ditto.
-       * client-src/selfcheck.c: Ditto.
+       * server-src/server_util.c: Ditto.
+       * common-src/fileheader.c: Ditto.
 
 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * configure.in: Set MAX_TAPE_BLOCK_KB on linux.
+       * configure.in: Set MAX_TAPE_BLOCK_KB on linux
 
 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        Patch by Blaz Zupan <blaz@amis.net>
 
        * changer-src/chg-zd-mtx.sh.in: typo.
 
-2001-12-20 Thomas Hepper <th@ant.han.de>
-       * changer-src/scsi-changer-driver.c: Return error if the find_empty returns an error
-         In function LogSense try to reset the error counter. Fixed wrong pDev struct pointer in
-         TapeStatus. Must be INDEX_TAPECTL and not INDEX_TAPE at the start of the function
-
 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * client-src/selfcheck.c (check_access): New function (old check_file 
+       * client-src/selfcheck.c (check_access): New function (old check_file
          function).
-       * client-src/selfcheck.c (check_file): Check that the filename is a 
+       * client-src/selfcheck.c (check_file): Check that the filename is a
          file.
        * client-src/selfcheck.c (check_dir): Check that dirname is a directory.
 
 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        Patch by Henning Schmiedehausen <henning@forge.intermeta.de>
 
-       * common-src/file.c (safe_cd): Create the AMANDA_DBGDIR and 
+       * common-src/file.c (safe_cd): Create the AMANDA_DBGDIR and
          AMANDA_TMPDIR directory.
 
-2001-12-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * docs/Makefile.am (pkgdata_DATA): Include RAIT and VTAPE-API.
-
 2001-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/amverify.sh.in: Check that @AMANDA_TMPDIR@ exist.
 
        * server-src/amstatus.pl.in: Fixup for estimate, write flush line.
 
-2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * server-src/reporter.c (output_summary): Set origsize and 
-         outsize correctly.
-
-2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * server-src/driver.c (start_some_dumps): Fixup length of dumporder.
-
 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * recover-src/extract_list.c: You can change the tape device
 
 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * restore-src/amrestore.c (restore): try to find the next chunk
+       * restore-src/amrestore.c (restore): try to find the next chunk 
          in the current directory.
 
 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        * example/amanda.conf.in: typo.
 
 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-       
+
        Patch by Roland E. Lipovits <rel@lipo.at0.net>
        * example/amanda.conf.in: typo.
 
 2001-12-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/dumper.c, server-src/taper.c: Replace TRY_AGAIN
-       by TRYAGAIN.
+       * server-src/dumper.c, server-src/taper.c, server-src/chunker.c:
+       Replace TRY_AGAIN by TRYAGAIN.
 
-2001-11-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+2001-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+       Patch by Michael D. Beynon <beynon@ll.mit.edu>
 
-       * Amanda 2.4.3b1 released
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.3b1)
-       * NEWS: New feature of amanda-2.4.3
+       * server-src/driver.c (main): Take care of empty tapeq.
 
 2001-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 
 2001-11-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/planner.c: Add host, disk, datestamp and level on
+       * server-src/planner.c: Add host, disk, datestamp and level on 
        FLUSH line. Add datestamp on DUMP line.
        * server-src/driver.c (read_flush): Read new format of FLUSH line.
        * server-src/driver.c (read_schedule): Read new format of DUMP line.
        * server-src/amdump.sh.in: Write a datestamp on stderr.
        * server-src/amstatus.pl.in: Works with autoflush.
 
-2001-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
+2001-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA> 
        * server-src/conffile.c (autoflush): New configuration options.
        * server-src/conffile.h (autoflush): New configuration options.
        * man/amanda.8.in: Document it.
 
        * recover-src/amrecover.h (cd_glob, cd_regex, cd_dir): New prototypes.
        * recover-src/set_commands.c (cd_glob, cd_regex, cd_dir): New functions.
-       * recover-src/uparse.y: Add new token CDX, call cd_glob instead
+       * recover-src/uparse.y: Add new token CDX, call cd_glob instead 
        of set_directory for cd command, call cd_regex for cdx command.
        * recover-src/uscan.l: On cdx string return CDX token.
        * recover-src/help.c: Document it.
        * man/amrecover.8.in: Document it.
 
-2001-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * server-src/taper.c: Backport from 2.5.0 the change to use only
-       one cmd_t type for all program.
-       * server-src/server_util.h: Likewise.
-       * server-src/server_util.c: Likewise.
-       * server-src/dumper.c.orig: Likewise.
-       * server-src/dumper.c: Likewise.
-       * server-src/driverio.h: Likewise.
-       * server-src/driverio.c: Likewise.
-       * server-src/driver.c: Likewise.
-       * server-src/amflush.c: Likewise.
-
-2001-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * server-src/reporter.c: Backport from 2.5.0 the change to allow
-       the "[host [disk]*]*" arguments on command.
-       * server-src/planner.c: Likewise.
-       * server-src/logfile.h: Likewise.
-       * server-src/logfile.c: Likewise.
-       * server-src/find.h: Likewise.
-       * server-src/find.c: Likewise.
-       * server-src/diskfile.h: Likewise.
-       * server-src/diskfile.c: Likewise.
-       * server-src/amtrmidx.c: Likewise.
-       * server-src/amindexd.c: Likewise.
-       * server-src/amflush.c: Likewise.
-       * server-src/amdump.sh.in: Likewise.
-       * server-src/amcheck.c: Likewise.
-       * server-src/amadmin.c: Likewise.
-       * restore-src/amrestore.c: Likewise.
-       * man/amrestore.8: Likewise.
-       * man/amflush.8.in: Likewise.
-       * man/amdump.8.in: Likewise.
-       * man/amcheck.8.in: Likewise.
-       * man/amanda.8.in: Likewise.
-       * man/amadmin.8.in: Likewise.
-       * common-src/match.c: Likewise.
-       * common-src/amanda.h: Likewise.
-
-2001-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * man/Makefile.am: add amdd.8 and ammt.8 to EXTRA_DIST.
-
 2001-09-26 John R. Jackson (jrj@purdue.edu)
 
        * server-src/reporter.c: Fix problem when column sizes are negative.
        * server-src/planner.c: Make sure we do not attempt to bump beyond
          level 9.
 
-2001-09-15 Thomas Hepper (th@ant.han.de)
+2001-09-16 Thomas Hepper (th@ant.han.de)
        * changer-src/chg-scsi.c: Added new config option autoinv, 
        if not set no auto inventory will be done if the label db is out of 
        sync. Reworked MapBarCode, now the parameters are passed as a struct 
        * tape-src/Makefile.am: Add chown/chgrp rules for ammt/amdd install
          so they end up like all the other Amanda programs.
 
-2001-08-16 John R. Jackson (jrj@purdue.edu)
-
-       * docs/Makefile.am: Fix PORTS.USAGE -> PORT.USAGE typo.
-
-2001-08-16 John R. Jackson (jrj@purdue.edu)
-
-       * configure.in: Change release name to "2.4.2p2-tapeio".  Add missing
-         CAM header checks from the 2.5 branch.
-
 2001-08-15 Thomas Hepper (th@ant.han.de)
        * changer-src/chg-scsi.c. Removed version 1 DB support from mapBarCode. Changed the way parameter
        are given to MapBarCode and returned from there. No a struct is passed where all infos
 
        * docs/PORT.USAGE: New document about how Amanda ports are used.
 
+2001-08-14 John R. Jackson (jrj@purdue.edu)
+
+       * client-src/sendsize.c: Fix patch merge goof (ap_snprintf -> snprintf).
+
 2001-08-14 John R. Jackson (jrj@purdue.edu)
 
        * common-src/stream.c: Add stream_client_privileged() function to
        Added global variables which are set by the tape_rdlabel function
        in eject/unload.
        Reworked the way how the updates of the labelfile are done.
-       * docs/TAPE.CHANGERS: Added note about solaris 8 and the sgen driver.
-
-2001-08-09 John R. Jackson (jrj@purdue.edu)
-
-       * tape-src/output-tape.c: Missed a reference to TAPE_BLOCK_BYTES
-         while doing the tapetype "blocksize" changes.
 
 2001-08-01 John R. Jackson (jrj@purdue.edu)
 
 
        * server-src/amcheck.c: Unlink the temp files as soon as they are
          created so they always go away when amcheck terminates.  Use
-         pipespawn() instead of system() to call the MAILER program.
+         pipespawn() instead of system() to call the MAILER program.  Call
+         dbopen()/dbclose() in main() to write to a debug file instead of
+         stderr.
 
 2001-08-01 John R. Jackson (jrj@purdue.edu)
 
        * server-src/conffile.c: Add tapetype "blocksize" keyword.  Use
          DISK_BLOCK_KB where appropriate instead of TAPE_BLOCK_SIZE.  Disallow
          negative tape length and tapemark size.
-       * client-src/sendbackup.c: Use new STREAM_BUFSIZE constant.  Use -1
-         for new default buffer size flag.
        * common-src/alloc.c: Add new amtable_free() function.  Adjust args
          to amtable_alloc() to be consistent with amtable_free().
        * common-src/amanda.h: Add new am_round() and am_floor() macros.
          Define new DISK_BLOCK_KB, DISK_BLOCK_BYTES, MAX_TAPE_BLOCK_KB,
          MAX_TAPE_BLOCK_BYTES constants.  Remove TAPE_BLOCK_SIZE and
          TAPE_BLOCK_BYTES.
+       * common-src/bsd-security.c: TAPE_BLOCK_BYTES -> NETWORK_BLOCK_BYTES.
+         Use -1 instead of DEFAULT_SIZE.
+       * common-src/rsh-security.c: Ditto.
        * common-src/fileheader.c: Change write_header() to build_header().
          Add blocksize arg.  Get rid of unused fill_buffer() function.
        * common-src/fileheader.h: Ditto.
        * restore-src/amrestore.c: Add new "-b blocksize" arg.  Document how
          the header is handled.  Deal with arbritrary tape record sizes.
        * server-src/amlabel.c: Use the tapetype blocksize.
+       * server-src/chunker.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
+         appropropriate instead of older constants.  Rewrite disk I/O buffer
+         management.  Never pad output stream (e.g. to holding disk).  Use
+         -1 for default stream buffer size.
        * server-src/driver.c: Use DISK_BLOCK_KB where appropriate instead of
          TAPE_BLOCK_SIZE.
+       * server-src/driverio.c: Set chunker argv[0] to name based on which
+         dumper it is working with.
        * server-src/dumper.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
          appropropriate instead of older constants.  Rewrite disk I/O buffer
          management.  Never pad output stream (e.g. to holding disk).  Use
        * tape-src/tapetype.c: Add "-b blocksize" arg.  Fix some end case
          aborts.
 
-2001-07-31 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
-
-       * configure.in: Add missing CAM header checks from the 2.5 branch.
-
-2001-07-30 John R. Jackson (jrj@purdue.edu)
-
-       * configure.in: Add CAM SCSI support section from the 2.5 branch.
-
 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
 
        * recover-src/amrecover.c: Improve the "Unexpected server end of file"
        * docs/TAPE.CHANGER: Changes from Ben Lewis (bhlewis@purdue.edu) to
          document the new (but optional) searchable features.
 
-2001-07-20 John R. Jackson <jrj@purdue.edu>
+2001-07-19 John R. Jackson <jrj@purdue.edu>
 
-       * common-src/security.c: Use NUM_STR_SIZE instead of hard coded
-         constant.
-       * common-src/versuff.c.in: Ditto.
+       * common-src/error.c: Fix function prototype error.
 
 2001-07-19 John R. Jackson <jrj@purdue.edu>
 
 
 2001-07-10 John R. Jackson <jrj@purdue.edu>
 
-       * server-src/Makefile.am: Backport development branch chg-scsi code
-         to 2.4.2.
-       * changer-src/chg-scsi.c: Ditto.
-       * changer-src/libscsi.h: Ditto.
-       * changer-src/scsi-aix.c: Ditto.
-       * changer-src/scsi-bsd.c: Ditto.
-       * changer-src/scsi-cam.c: Ditto.
-       * changer-src/scsi-changer-driver.c: Ditto.
-       * changer-src/scsi-defs.h: Ditto.
-       * changer-src/scsi-hpux.c: Ditto.
-       * changer-src/scsi-hpux_new.c: Ditto.
-       * changer-src/scsi-irix.c: Ditto.
-       * changer-src/scsi-linux.c: Ditto.
+       * changer-src/scsi-aix.c: Convert Tape_Eject to Tape_Ioctl.
        * changer-src/scsi-solaris.c: Ditto.
-       * changer-src/sense.c: Ditto.
 
 2001-07-10 John R. Jackson <jrj@purdue.edu>
 
          redundant "OISD /" exchange.  Change "Trying" to "Trying host" to
          distinguish this from disk attempts.
 
+2001-06-19 Thomas Hepper <th@ant.han.de>
+       * changer-src/chg-scsi.c: Made clean_slot a global var. Removed
+       the label db update stuff from the COM_SLOT part (moved to unload
+       in scsi-changer-driver.c)
+       * changer-src/scsi-changer-driver.c: Do an unload if the tape is
+       loaded in the Inventory function. Added an marker to avoid recursion
+       in Inventroy function. Added label db check in unload function and
+       call Inventroy if it indicates an out of sync db
+       
 2001-06-18 John R. Jackson <jrj@purdue.edu>
 
        * recover-src/extract_list.c: Do not pass a 'b' (blocking) factor
        * changer-src/chg-manual.sh.in: Add yet another online regex.  Found
          by George Herson <gherson@snet.net>.
 
+2001-06-12 Thomas Hepper <th@ant.han.de>
+       * changer-src/scsi-changer-driver.c (Inventory): Call Tape_Ready and let this function
+       decide how to get the tape drive status.
+       * changer-src/scsi-changer-driver.c (Tape_Ready): Now this function looks how to get
+       the tape drive status.
+       * changer-src/scsi-linux.c: changed some dbprintf to DebugPrint
+       
+2001-06-10 Thomas Hepper <th@ant.han.de>
+       * changer-src/chg-scsi.c: If get_current_slot gets an error from the fscanf function
+       return also an error (-1) to the calling fucntion. (Fixes an error if the slot file
+       is created with an touch)
+       * changer-src/scsi-changer-driver.c: Fixed some NULL pointer errors in PrintConf
+       Fixed an error in the unload function if the destination slot for the unload is not empty.
+       (cut and paste error !!)
+       
+2001-06-07 Thomas Hepper <th@ant.han.de>
+       * changer-src/scsi-changer-driver.c: Change the type of TapeStatus from void to int.
+       In PrintConf changed the loop variable for scan of pDev from 3 to CHG_MAXDEV.
+       In PrintConf check if pDev[count].inquiry is a NULL pointer, and if yes skip.
+       * changer-src/scsi-irix.c: Changed a lot, now it should work.
+       * client-src/sendbackup-dump.c: Removed a { in the vxfsdump part. 
+       * tape-src/output-tape.c: Fixed the tape status checks, the structure elelemt
+       is called buf.mt_dposn not buf.mt.dposn.
+       
+2001-06-04 Thomas Hepper <th@ant.han.de>
+       * changer-src/scsi-changer-driver.c: Renamed Tape_Eject to Tape_Ioctl
+       incl. change of passwd parameter.
+
+2001-06-04 Thomas Hepper <th@ant.han.de>
+       * changer-src/chg-scsi.c: include dmalloc.h for debugging of mem problems
+       * changer-src/scsi-cam.c: Replaced Tape_Eject with a more generic 
+       function to send different ioctls (Tape_Ioctl)
+       * changer-src/scsi-bsd.c: see above
+       * changer-src/scsi-hpux_new.c: see above
+       * changer-src/scsi-irix.c: If the device can be opened in SCSI_OpenDevice
+       set pDev[ip].avail to 1.
+       * changer-src/scsi-linux.c: include dmalloc.h for debugging of mem problems.
+       Fixed an invalid free in SCSI_OpenDevice. Replaced Tape_Eject with Tape_Ioctl.  
+       * changer-src/scsi-changer-driver.c: include dmalloc.h for debugging of mem problems
+       Eject the tape in the inventory function before the scan to get all
+       barcode labels. Check in GenericEject if the device is able to receive
+       SCSI commands, if not use the ioctl interface to eject the tape.
+       Same for the GenericRewind function.
+       Added the LogSense in the GenericEject function.
+       * changer-src/scsi-defs.h: Added define for Tape_Ioctl commands, IOCTL_EJECT.
+       
 2001-06-01 John R. Jackson <jrj@purdue.edu>
 
        * server-src/amindexd.c (build_disk_table): Make sure a holding disk
          image is used rather than a copy also on tape, if both exist.
 
+2001-06-01 Thomas Hepper <th@ant.han.de>
+       * changer-src/scsi-changer-driver.c: Added an range check in the load
+       function and abort if the requested slot is out of range.
+       Fixed in incorrect pointer in the eject function if the ioctl
+       interface is used
+
 2001-05-29 John R. Jackson <jrj@purdue.edu>
 
        * server-src/reporter.c: Fix PostScript output to only show what went
          on the tape, not what the total amount dumped.  Compliments of
          Joshua Baker-LePain <jlb17@duke.edu>.
 
+2001-05-28 Thomas Hepper <th@ant.han.de>
+       * changer-scsi/chg-scsi.c: Made the array for pDev configurable, #define CHG_MAXDEV
+       * changer-scsi/scsi-defs.h: Added the define for CHG_MAXDEV
+       * changer-src/scsi-cam.c: Set the flag pDev[x].avail to 1 if the device can be openend.
+       Added debug message if the open fails. Implemented the function Tape_Status (not tested)
+       * changer-src/scsi-changer-driver.c: Added the function DLT448ElementStatus, was lost
+       during merge from 2.4.2. The difference to GenericElementStatus is that the DecodeModeSense
+       needs an offset of 12, not 0 as in GenericElementStatus.
+       Added an unload/GenericResetStatus in the Inventory function if an bar code reader is 
+       available. This is to get the label from the loaded tape.
+       The function TapeStatus sets now the status regardless of the status of the tape.
+       If the device is capable for sending SCSI commands use the SCSI interface to get
+       the status of the tape.
+       * docs/TAPE.CHANGERS: Added some notes about the debuglevel keyword and a short
+       description on how to use the sgen interface on solaris 2.8
+       
 2001-05-18 John R. Jackson <jrj@purdue.edu>
 
        * client-src/patch-system.sh.in: Missed a reference to kamanda in the
          inetd.  Compliments of Tom Schutter <t.schutter@att.net>.  Add
          the TCP port for amandad for future use.
 
-2001-05-15 John R. Jackson <jrj@purdue.edu>
-
-       * restore-src/amidxtaped.c: Call tape_stat() instead of stat() to
-         decide if an image is a file or a tape.
-
 2001-05-14 John R. Jackson <jrj@purdue.edu>
 
        * client-src/amandad.c: Fix hang when the incoming packet size is
-         larger than the pipe buffer.  Also fix a buffer overflow bug.
-
-2001-05-11 John R. Jackson <jrj@purdue.edu>
-
-       * changer-src/chg-scsi.c: Add support for "-slot advance".
+         larger than the pipe buffer.  Also, report back when too much
+         data for a packet is returned by the service (this is not properly
+         diagnosed back to, e.g., amcheck, but that's for another day).
+       * common-src/bsd-security.c: Fix minor comment error.
 
 2001-05-11 John R. Jackson <jrj@purdue.edu>
 
          explicitly that all ports in the requested range were busy, or
          that a specific port failed bind() for an unexpected reason.
 
-2001-05-11 John R. Jackson <jrj@purdue.edu>
-
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.2p2)
-
-2001-05-10 John R. Jackson <jrj@purdue.edu>
-
-       * changer-src/scsi-changer-driver.c: Fix routine name in diagnostic
-         messages for DLT4000Eject.
-
 2001-05-07 John R. Jackson <jrj@purdue.edu>
 
        * client-src/sendbackup-dump.c: Do not use full path to sed.  Found by
          Roland E. Lipovits (rel@lipo.at0.net).
 
+2001-05-07 Thomas Hepper <th@ant.han.de>
+       * changer-src/chg-scsi.c : Fixed NULL pointer in debug print of the config.
+       * changer-src/scsi-canger-driver.c : Try to get and set the status of the tape drive in
+       GenericElementStatus if there is an error condition. Move from tape to tape to get the
+       tape loaded if it is only ejected.
+       * changer-src/scsi-defs.h : New define for the Tape_Status fucntion, TAPE_NOT_LOADED
+       * changer-src/scsi-linux.c : Added return type for tape not loaded
+       * changer-src/scsi-solaris.c : In SCSI_ExecuteCommand force the direction to write if the
+       databuffersize is 0, if the direction is input the ioctl returns with errno 22, invalid argument.
+       The function Tape_Status will now return either tape loaded or not.
+       * example/chg-scsi-solaris.conf.in : Added pointer to doc/TAPE.CHANGERS on how to configure
+       the sgen driver.
+       * doc/TAPE.CHANGERS : Updated the description of the chg-scsi.conf options, short description on
+       how to confgure the sgen driver on solaris 2.8
+       
 2001-05-04 John R. Jackson <jrj@purdue.edu>
 
-       * config/depcomp: Fix problem with argument processing and update to
+       * config/depcomp: Fix problem with argument processing and update to
          latest version.
 
+2001-05-01 Thomas Hepper <th@ant.han.de>
+       * changer-src/chg-scsi.c : Added patch for the slot advance command from John R. Jackson
+       * changer-src/scsi-changer-driver.c : Renamed EXB120BarCode to EXB_BarCode. The currently
+       known Exabyte libs handles the reader in the same way.
+       
+2001-04-28 Thomas Hepper <th@ant.han.de>
+       * changer-scsi/chg-scsi.c : Added missing break in MapBarCode
+       Changed the way an tape label is read, use tape_open to open the
+       device, not own open.
+       * changer-src/scsi-changer-driver.c : Changed the way an tape label 
+       is read, use tape_open to open the device, not own open.
+       * changer-src/scsi-linux.c : Fixed error on reopen of non SCSI devices
+       (/dev/nst0 for example)
+       
+2001-04-26 Thomas Hepper <th@ant.han.de>
+
+       * changer-src/scsi-aix.c : Added more different ret values depending on the SCSI
+       error condition. 
+       * changer-src/scsi-changer-driver.c: Split GenericElementStatus in GetElementStatus which
+       reads the element Status, and GenericElementStatus which handles the errors.
+       Removed DLT448ElementStatus. Rework the handling of some SCSI error conditions...
+       * changer-src/scsi-defs.h: Added more defs for the debug SECTION types.
+       * changer-src/scsi-linux.c: Fixed an bug in the non SCSI device handling in SCSI_OpenDevice
+       * changer-src/sense.c: Added EXB-210 defs, added defs for READ_ELEMENT_STATUS error conditions.
+       
 2001-04-25 John R. Jackson <jrj@purdue.edu>
 
        * changer-src/chg-rth.pl.in: Add exec_prefix back since it is usually
        * client-src/sendbackup-gnutar.c: Ditto.
        * client-src/sendsize.c: Ditto.
 
-2001-04-21 John R. Jackson <jrj@purdue.edu>
-
-       * tape-src/output-tape.c: Fix IRIX field reference (patch from Marc
-         W. Mengel <mengel@fnal.gov>).
+2001-04-15 Thomas Hepper <th@ant.han.de>
+       * Makefile.am: Added contrib/gsc files to EXTRA_DIST
+       
+2001-04-15 Thomas Hepper <th@ant.han.de>
+       * changer-src/scsi-aix.c: Rework of the SCSI interface, support
+       to talk to an device handled by the gsc driver (not tested yet)
+       * changer-src/scsi-bsd.c (SCSI_ExecuteCommand): Fix error in
+       device handling, Changed the return codes in case of an error
+       * changer-src/scsi-cam.c (SCSI_ExecuteCommand): Fix error in 
+       device handling, Changed the return codes in case of an error
+       * changer-src/scsi-changer-driver.c: Changed the way 
+       SCSI_ExecuteCommand passes error conditions back, error handling
+       should now be done by the calling function, SCSI_Run for example.
+       * changer-src/scsi-changer-driver.c (CheckMove): If the 
+       DeviceCapabilitiesPage is not set do not return an error, print
+       an warning to the debug file.
+       * changer-src/scsi-defs.h: New define for AIX_USE_GSC
+       New defines for the return codes of SCSI_ExecuteCommand
+       * changer-src/scsi-hpux_new.c: Fix error in device handling.
+       Changed the return codes in case of an error
+       * changer-src/scsi-irix.c: Fix error in device handling.
+       Changed the return codes in case of an error
+       * changer-src/scsi-solaris.c: Fix error in device handling.
+       Changed the return codes in case of an error
+       
+2001-04-15 Thomas Hepper <th@ant.han.de>
+       *contrib/gsc: Generic SCSI interface for AIX, used by chg-scsi
 
 2001-04-13 John R. Jackson <jrj@purdue.edu>
 
        * example/amanda.conf.in: Fix multiple holding disks comment.
-       * example/amanda.conf.chg-scsi.in: Ditto, plus bring this file into
-         sync with the base version.
 
-2001-04-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+2001-04-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * client-src/getfsent.h (search_fstab): New prototype.
        * client-src/getfsent.c (search_fstab): New arg check_dev, skip
        * client-src/getfsent.c (open_fstab for linux): Open MOUNTED.
        * client-src/getfsent.c (close_fstab for linux): close MOUNTED.
        * client-src/getfsent.c (get_fstab_nextentry for linux): parse MOUNTED.
-       * client-src/getfsent.c (amname_to_devname, amname_to_dirname,
-       amname_to_fstype): Call search_fstab sequentialy with 1 and 0
+       * client-src/getfsent.c (amname_to_devname, amname_to_dirname, 
+       amname_to_fstype): Call search_fstab sequentialy with 1 and 0 
        for check_dev.
 
 2001-04-10 John R. Jackson <jrj@purdue.edu>
        * docs/INSTALL: Update location to GNUPLOT per Lars Hecking
          <lhecking@nmrc.ie>.
 
+2001-04-09 Thomas Hepper <th@ant.han.de>
+       * changer-src/scsi-changer-driver.c: More rework on the debug output.
+       changed definition SENSE_NO_TAPE to SENSE_TAPE_NOT_ONLINE
+       In function GenericRewind do an check before the rewind to see
+       if the tape is loaded.
+       * changer-src/scsi-defs.h: New #define for the debug, SECTION_TAPE
+       * changer-src/sense.c: New definition for SENSE_RETRY, ASC=4, ASCQ=1
+       
+2001-04-08  Alexandre Oliva  <aoliva@redhat.com>
+
+       * client-src/getfsent.c (search_fstab): Don't skip entry just
+       because device stats failed.
+
 2001-04-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * config/config.guess: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
 
        * Makefile.am: Remove *.test.c from the distribution.
 
-2001-04-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-       Upgrade to the 2.5.0 code.
-
-       * changer-src/chg-zd-mtx.sh.in: Added barcode reader support,
-       >9 tape slot support, variable for 'offline' or 'ONLINE'
-       return value of tape device, and multi-config support.  Moved
-       all user settable variables to 'changerfile'.conf in the
-       amanda config directory.  Added commented out example of .conf
-       file into script.
-       * NEWS: updated chg-zd-mtx.sh.in changer.
-
 2001-04-02 John R. Jackson <jrj@purdue.edu>
 
-       * NEWS: Initial notes for 2.4.2p2.
+       * NEWS: Update some of the 2.4.2 items.
 
 2001-03-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/amcleanupdisk.c: Change construct_datestamp call to pass
          indication that it should get the current time.
        * server-src/amflush.c: Ditto.
+       * server-src/chunker.c: Ditto.
        * server-src/driver.c: Ditto.
        * server-src/dumper.c: Ditto.
        * server-src/planner.c: Ditto.
        * client-src/sendsize.c: Send smbclient via pipe instead of command
          line arg.  Various minor cleanups.  Clean up listed incremental file
          handling.
-       * common-src/pipespawn.c: Support optional password pipe.  Various
-         minor cleanups.
-       * common-src/pipespawn.h: Support optional password pipe.  Various
-         minor cleanups.
-       * common-src/util.c: Backport fullread() and fullwrite() from main
-         branch.
-       * common-src/util.h: Backport fullread() and fullwrite() from main
-         branch.
        * docs/SAMBA: Update and cleanup.
+       * common-src/pipespawn.c: Import from 2.4.2 branch.
+       * common-src/pipespawn.h: Import from 2.4.2 branch.
+       * common-src/Makefile.am: Add pipespawn.[ch] references.
 
 2001-03-13 John R. Jackson <jrj@purdue.edu>
 
        * recover-src/extract_list.c (extract_files_child): Fix xfsrestore
          argument list processing.
 
+2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/dumper.c (read_datafd): set errstr and return on
+       databuf_write error.
+
+2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/dumper.c (read_indexfd): Ignore error while writing
+       to the index file. Log an L_INFO message.
+
 2001-03-09 John R. Jackson <jrj@purdue.edu>
 
        * server-src/taper.c: Initialize tape_fd to -1 and test in a couple
 2001-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        Reported by Eric Schnoebelen <eric@cirr.com>
 
-       * server-src/changer.c (): Fix fd leak.
+       * server-src/changer.c (changer_command): Fix fd leak.
+
+2001-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/server_util.c (cmdstr, getcmd, putresult): New.
+       * server-src/server_util.h (cmdstr, getcmd, putresult): Prototype.
+       * server-src/server_util.h (cmd_t): New.
+       * server-src/driverio.c (cmdstr): Remove.
+       * server-src/driverio.c: Use new cmdstr and cmd_t.
+       * server-src/driverio.h: (tok_t): Remove.
+       * server-src/amflush.c: Use new cmd_t.
+       * server-src/driver.c: Use new cmd_t.
+       * server-src/chunker.c (cmd_t, getcmd, putresult): Remove.
+       * server-src/chunker.c: Use new cmd_t, getcmd and putresult.
+       * server-src/dumper.c (cmd_t, getcmd, putresult): Remove.
+       * server-src/dumper.c: Use new cmd_t, getcmd and putresult.
+       * server-src/taper.c (cmd_t, getcmd, putresult): Remove.
+       * server-src/taper.c: Use new cmd_t, getcmd and putresult.
+
+2001-03-05 John R. Jackson <jrj@purdue.edu>
+
+       * common-src/util.c: The fullread() and fullwrite() functions should
+         call read() and write(), not tapefd_read() and tapefd_write().
 
 2001-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/amadmin.c (info_one): typo.
        * server-src/planner.c (setup_estimate): Don't re-ask for level 0
        if last_level is 0 and FORCE_NO_BUMP is set.
 
 
 2001-02-27 John R. Jackson <jrj@purdue.edu>
 
-       * configure.in: Copy ssize_t type check code from main branch.
+       * configure.in: Add some commentary about why pushdef/popdef are
+         needed around AC_CHECK_TYPE.
 
-2001-02-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+       Patch by Alex Pilosov <alex@pilosoft.com>
+
+       * changer-src/scsi-cam.c: Clean up some SCSI CAM code,
+       and permit use of both bus:target:lun(btl) and a full
+       device name (/dev/ch0) as changerdev.
+       
+2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+       Patch by Joe Rhett <jrhett@isite.net>
+       and Jason Hollinden <jhollind@sammg.com>
 
-       * docs/SYSTEM.NOTES: change cs.umd.edu by amanda.org.
+       * changer-src/chg-zd-mtx.sh.in:  Added barcode reader support,
+       >9 tape slot support, variable for 'offline' or 'ONLINE'
+       return value of tape device, and multi-config support.  Moved
+       all user settable variables to 'changerfile'.conf in the
+       amanda config directory.  Added commented out example of .conf
+       file into script.
 
 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 
 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * changer-src/scsi-changer-driver.c (GenericRewind): init ret to 0
-       to remove compiler warning.
+       * restore-src/amrestore.c (main): init r to 0.
+
+2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * changer-src/scsi-defs.h (PrintConf): Add prototype.
+       * changer-src/scsi-changer-driver.c (SCSI_Run): Add prototype.
+       * changer-src/scsi-linux.c (ScanBus): remove btl variable, return 0.
 
 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/planner.c (setup_estimate): ask for level 0 for
-       a new disk if force-bump is set,
-       log force-bump and force-nobump command.
+       * man/Makefile.am (EXTRA_DIST): add amdd.8 and ammt.8.
 
-2001-02-21 Thomas Hepper <thqant.han.de>
-       * changer-src/scsi-changer-driver.c: Do an Test Unit Ready
-         before sending SCSI commands in GenericRewind
-       * changer-src/chg-scsi.c: Fixed an type in the debug print
-         of the config file
+2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
+        * server-src/planner.c (setup_estimate): ask for level 0 for 
+        a new disk if force-bump is set, 
+        log force-bump and force-nobump command.
+
+2001-02-17 Thomas Hepper <th@ant.han.de>
+
+       * changer-scsi/chg-scsi.c: New Option -genconf to create an example config file
+        based on the information found on the system, works for Linux and BSD with cam
+        support. New config option debuglevel
+       * changer-src/scsi-changer-deriver.c: Reworked the debug output, it is now possible
+        to control the amount of information by the config option debuglevel in the config
+        file (docs follow), not complete yet.
+       * changer-src/scsi-changer-driver.c: New function PrintConf to create an example
+         config file.
+         New function DebugPrint to print debug information based on the variable debuglevel.
+         Replaced a lot of dbprintf with new Function DebugPrint
+       * changer-src/scsi-aix.c: changed parameter for ScanBus
+       * changer-src/scsi-irix.c: changed parameter for ScanBus
+       * changer-src/scsi-solaris.c: changed parameter for ScanBus
+       * changer-src/scsi-bsd.c: changed parameter for ScanBus
+       * changer-src/scsi-cam.c: Implemented function ScanBus
+       * changer-src/scsi-linux.c: Implemented function ScanBus
+       
 2001-02-09 John R. Jackson <jrj@purdue.edu>
 
        * server-src/diskfile.c: Fix core dump in test program.
          allows the status file to be moved to the main directory.
        * man/amanda.8.in: Document these changes.
 
-2001-02-05 John R. Jackson <jrj@purdue.edu>
+2001-02-08 Thomas Hepper <th@ant.han.de>
+
+       * changer-src/scsi-aix.c: Added dummy ScanBus function
+       * changer-src/scsi-bsd.c: Added dummy ScanBus function
+       * changer-src/scsi-cam.c: Added dummy ScanBus function
+       * changer-src/scsi-hpux_new.c: Added dummy ScanBus function
+       * changer-src/scsi-irix.c: Added dummy ScanBus function
+       * changer-src/scsi-defs.h: Added prototype for ScanBus function
+
+2001-02-04 John R. Jackson <jrj@purdue.edu>
 
        * man/amanda.8.in: Fix mailto to space separated, not comma.
 
          other Makefile.am files.
        * tape-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
 
+2001-02-03 John R. Jackson <jrj@purdue.edu>
+
+       * server-src/diskfile.c: Fix test program compilation error and bug
+         when just a config name was given on the command line.
+
 2001-02-02 John R. Jackson <jrj@purdue.edu>
 
        * server-src/reporter.c: Fix problem with enum being unsigned on
          some systems.
 
+2001-01-29 John R. Jackson <jrj@purdue.edu>
+
+       * tape-src/tapeio.c (tape_fsf): Go back to using snprintf as this
+         is now "the way".
+
 2001-01-29 John R. Jackson <jrj@purdue.edu>
 
        * tape-src/output-tape.c (tape_tapefd_status): Convert flag values
        * server-src/Makefile.am: Ditto.
        * tape-src/Makefile.am: Ditto.
 
-2001-01-24 John R. Jackson <jrj@purdue.edu>
-
-       * docs/VTAPE-API: Added.
-
 2001-01-23 John R. Jackson <jrj@purdue.edu>
 
        * configure.in: Add tapeio switch from Marc Mengel <mengel@fnal.gov>,
        * tape-src/tests/testdist: Ditto.
        * tape-src/tests/torture: Ditto.
 
+2001-01-24 John R. Jackson <jrj@purdue.edu>
+
+       * client-src/amandad.c: Improve packet logging.
+
+2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/driver.c (start_some_dumps): typo.
+
 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/driverio.h (sched_t): new field no_space.
        * client-src/getfsent.c: Add some support for Redhat 7 /etc/fstab
          changes that indirectly reference the device for a file system.
 
-2001-01-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+2001-01-22  Marc W. Mengel <mengel@fnal.gov>
 
-       * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.2p1)
+       * recover-src/extract_list.c: Added -U to tar recover options
+       to reduce errors recovering shared libs and/or binaries on
+       active filesystems.
 
 2001-01-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * NEWS: 2.4.2p1 is a bug fix release.
+       * docs/INSTALL: Notes about tar-1.13.19
 
-2001-01-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+2001-01-17  Thomas Hepper <th@ant.han.de>
+
+       * changer-src/chg-scsi.c: Moved definitions for config_t and
+       changer_t into scsi-defs.h
+       * changer-src/chg-scsi.c: New config option havebarcode
+       * changer-src/scsi-changer-driver.c: Changed GenericBarCode do handle
+       the option havebarcode. Replaced NoBarCode with GenericBarCode.
+       Fixed compile warnings from -Wshadow
+       * changer-src/scsi-linux.c: New function ScanBus to scan the SCSI Bus.
+       not used yet.
+       * changer-src/scsi-solaris.c: Changed the return value to
+       Command.uscsi_status in SCSI_ExecuteCommand if the return from the
+       ioctl is not 0;
+       
+2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * docs/INSTALL: Notes about tar-1.13.19
+       * man/amanda.8.in: New section "HOST & DISK EXPRESSION" and 
+         "DATESTAMP EXPRESSION".
+       * man/amadmin.8.in: Document new usage.
+       * man/amflush.8.in: Document new usage.
+       * man/amcheck.8.in: Document new usage.
+       * man/amdump.8.in: Document new usage.
+       * man/amrestore.8: Document new usage.
+       * server-src/amadmin.c: Fix usage.
+       * server-src/amflush.c: Fix usage.
+       * server-src/amcheck.c: Fix usage.
+
+2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/diskfile.c (match_disklist): Return if no args.
+
+2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/diskfile.c (match_disklist): Fix.
+
+2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/diskfile.c (match_disklist): Updated for
+         [host [disk]*]* syntax.
 
-2001-01-07  Thomas Hepper <th@ant.han.de>
+2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * changer-src/chg-scsi.c: Moved defs. for config_t and changer_t
-       into scsi-defs.h
-       New option havebarcode to force the reading of the barcode labels
-       * changer/src/scsi-changer-driver.c: GenericBarCode now returns
-       true/false depending on the setting of havebarcode.
-       Removed EXB230DElementStatus, the exsisting Exabyte function works.
-       Fixed more warnings from -Wshadow
+       * common-src/match.c (match_datestamp): New function.
+       * common-src/amanda.h (match_datestamp): Prototype.
+       * server-src/amflush.c: Use match_datestamp.
+       * restore-src/amrestore.c: Use match_datestamp.
+
+2001-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * common-src/match.c (match_word): Support for leading ^ and
+         trailing $.
 
 2001-01-04 John R. Jackson <jrj@purdue.edu>
 
          any fatal error message to it and close the file so it has a good
          trace of what happened and when.
 
+2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * taper-src/am-dd.c: include "tapeio.h", fix debug warning.
+       * taper-src/am-mt.c: include "tapeio.h", fix debug warning.
+       * taper-src/output-rait.c: include "tapeio.h", new define for
+          rait_debug
+       * taper-src/tapeio.c(many): Remove unused tfd variable.
+       * taper-src/tapeio.h (tape_unload,tape_status): Prototype.
+
 2001-01-04 John R. Jackson <jrj@purdue.edu>
 
        * client-src/killpgrp.c: Calls to error() do not need a newline.
 
        * server-src/driver.c (continue_dumps): Don't reduce est_size if
          it is already larger than holding space allocated.
-       * server-src/dumper.c: Better handling of ENOSPC from open() and
+       * server-src/dumper.c: Remove all code for FILE_DUMP command.
+       * server-src/chunker.c: Better handling of ENOSPC from
          write_tapeheader().
 
 2001-01-04 John R. Jackson <jrj@purdue.edu>
        * server-src/amstatus.pl.in: Better support for TRY-AGAIN and
          ABORT-FINISHED result.
 
+2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/amflush.c: Use getopt to parse argument.
+       * server-src/amflush.c: New [-D date]* argument.
+       * man/amflush.8.in: Document it.
+
 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        Patch by Andreas F Mueller <afm@othello.ch>
 
        * server-src/amadmin.c (force_no_bump_one): Fix message.
 
+2001-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * tape-src/am-dd.c: include "amanda.h"
+       * tape-src/am-mt.c: include "amanda.h"
+       * tape-src/am-mt.c (main): res is int.
+       * tape-src/output-rait.c: include "amanda.h", do not define stderr.
+       * tape-src/tapeio.c (xxx_tapefd_read, plain_tapefd_read): second
+         argument should be "char *"
+       * tape-src/tapeio.c (xxx_tapefd_write, plain_tapefd_write): second
+         argument should be "const char *"
+
+2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/find.c (find_match): Use todo bit.
+       * server-src/find.c (find_dump): No arguments.
+       * server-src/find.h (find_dump): Change prototype.
+       * server-src/amadmin.c (find): New [host disk]* pair arguments.
+       * server-src/amindexd.c: Change call to find_dump().
+       * server-src/amtrmidx.c: Change call to find_dump().
+
+2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * configure.in: Don't check krb5 include if krb5 is not selected.
+
+2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * tape-src/Makefile.am (noinst_HEADERS): Add output-rait.h
+
+2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/amadmin.c (diskloop): typo.
+
+2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/amadmin.c (diskloop): New [host disk]* pair arguments.
+       * server-src/amadmin.c (diskloop, reuse, noreuse): use get_pname()
+       instead of argv[0].
+
+2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/amflush.c (main):log DISK after checking if logfile exist.
+
+2000-12-30 John R. Jackson <jrj@purdue.edu>
+
+       * common-src/bsd-security.c: Improve the .rhosts/.amandahosts messages
+         when things go wrong.  Add support for "bsdsecurity" test program
+         in common-src.
+       * common-src/Makefile.am: Ditto.
+       * common-src/amanda.h: Ditto.
+       * restore-src/amidxtaped.c: Ditto.
+       * server-src/amindexd.c: Ditto.
+
+2000-12-30 John R. Jackson <jrj@purdue.edu>
+
+       * ChangeLog: Bring Jean-Louis into the right month :-).
+       * changer-src/scsi-changer-driver.c: Untested changes to at least
+         get the code to compile on Solaris and to remove some warnings.
+       * changer-src/scsi-defs.h: Ditto.
+       * changer-src/scsi-solaris.c: Ditto.
+
+2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/diskfile.c (add_disk): New function.
+       * server-src/diskfile.h (add_disk): Prototype.
+       * server-src/logfile.h (logtype_e): add L_DISK.
+       * server-src/logfile.c (logtype_str): add "DISK".
+       * server-src/amflush.c (main): log DISK.
+       * server-src/planner.c (main): log DISK.
+       * server-src/reporter.c: use DISK if available.
+
+2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/amcheck.c: New [host disk]* pair arguments.
+       * server-src/amflush.c: Ditto.
+       * server-src/planner.c: Ditto.
+       * server-src/amdump.sh.in: Ditto.
+       * server-src/amrestore.c: Use new host/disk matcher.
+       * man/amcheck.8.in: Document new [host disk]* pair arguments.
+       * man/amflush.8.in: Ditto.
+       * man/amdump.8.in: Ditto.
+
+2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/diskfile.c (match_disklist): new function.
+       * server-src/diskfile.h (struct disk_s): new field todo.
+       * server-src/diskfile.h (match_disklist): prototype.
+
+2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * common-src/match.c (match_word, match_host, match_disk): 
+       new functions.
+       * common-src/amanda.h (match_host, match_disk): prototype.
+
 2000-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/planner.c (analyze_estimate): pick incremental level
-       if no estimate of level 0.
+        if no estimate of level 0.
+
+2000-12-28 Marc W. Mengel <mengel@fnal.gov>
+       * changer-src/chg-juke.sh.in: New File
+       * changer-src/Makefile.am: Added support for chg-juke.
+       * docs/TAPE.CHANGERS: Likewise.
+       * configure.in: Likewise.
 
 2000-12-24 John R. Jackson <jrj@purdue.edu>
 
         * man/amcheck.8.in: Add mention of tapelist directory and do
          some other directory writable cleanup.
 
-2000-12-13 John R. Jackson <jrj@purdue.edu>
-
-       * docs/Makefile.am: Removing entries for missing RAIT/VTAPE-API files.
-
-2000-12-13 John R. Jackson <jrj@purdue.edu>
-
-       * tape-src/tapeio.c: De-commit the RAIT feature from 2.4.2.  It will
-         be in 2.5 and 2.4.2-multitape.
-       * tape-src/tapeio.h: Ditto.
-       * tape-src/Makefile.am: Ditto.
-
 2000-12-12 John R. Jackson <jrj@purdue.edu>
 
        * client-src/sendbackup-gnutar.c: Fix regex pattern to accept blanks
          or tabs.
 
-2000-12-12 John R. Jackson  <jrj@purdue.edu> and Marc Mengel <mengel@fnal.gov>
+2000-12-12 John R. Jackson <jrj@purdue.edu>
 
        * Makefile.am: Work around problem with automake 1.4 not including
          pkgdata_DATA.
-       * docs/RAIT: New file.
-       * docs/VTAPE-API: New file.
        * docs/Makefile.am: Include RAIT and VTAPE-API in distribution.
          Work around problem with automake 1.4 not including pkgdata_DATA.
-       * tape-src/output-rait.h: New File providing RAIT virtual tape type.
-       * tape-src/output-rait.c: New File providing RAIT virtual tape type.
-       * tape-src/Makefile.am: Add output-rait.c.
+       * tape-src/rait.h: Renamed to rait.h.
+       * tape-src/rait.c: Renamed to rait.c.
+       * tape-src/output-rait.h: Renamed from rait.h.
+       * tape-src/output-rait.c: Renamed from rait.c.
+       * tape-src/Makefile.am: Reflect the new rait.[ch] names.
+       * tape-src/tapeio.c: Use output-rait.h name.  Minor typo changes.
+
+2000-12-08 Marc Mengel <mengel@fnal.gov>
+
+       * docs/RAIT: New file.
+       * docs/VTAPE-API: New file.
+       * tape-src/rait.c: New File providing RAIT virtual tape type.
        * tape-src/tapeio.c: Major Surgery.
          (vtable): New static table of virtual tape types.
          (fdtable): New static table mapping file descriptors.
          (plain_tapefd_status): Likewise.
          (plain_tapefd_weof): Likewise.
 
-2000-12-07 Thomas Hepper <th@ant.han.de>
-
-       changer-src/scsi-changer-driver.c: Added Exabyte 230D Sense Handler
-       (patch from Gary Algier gaa@ulticom.com)
-       Fixed some compile warnings (-Wshadow)
-       changer-src/scsi-solaris.c: Changed the return Value from 
-       SCSI_ExecuteCommand to the value of Command.uscsi_status if
-       the return value of the ioctl is > 0
-
 2000-12-04 John R. Jackson  <jrj@purdue.edu>
 
-       server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami problem.
-
-2000-12-04 John R. Jackson  <jrj@purdue.edu>
-
-       * common-src/security.c: Make the "./security" test code available
-         for normal operation by #define so it can be seen in, e.g., the
-         */amandad*debug file.
+       * server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami
+         problem.
 
 2000-12-04 John R. Jackson  <jrj@purdue.edu>
 
        * man/amrestore.8: Document the new option, the compression level,
          and clean up some nroff issues.
 
-2000-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+2000-11-30 Marc Mengel <mengel@fnal.gov>
+
+       * changer-src/chg-chio.pl.in: Use am-mt and am-dd versus mt and dd.
+       * changer-src/chg-chs.sh.in: Likewise.
+       * changer-src/chg-manual.sh.in: Likewise.
+       * changer-src/chg-mtx.sh.in: Likewise.
+       * changer-src/chg-multi.sh.in: Likewise.
+       * changer-src/chg-rth.pl.in: Likewise.
+       * changer-src/chg-zd-mtx.sh.in:  Likewise.
+       * tape-src/am-dd.c: New file. Replacement for dd.
+       * tape-src/am-mt.c: New file. replacement for mt.
+       * tape-src/Makefile.am: Add build for am-mt and am-dd.
+       * tape-src/tapeio.c (tape_unload, tapefd_unload, tape_status, 
+         tapefd_status): New functions.
+          (tape_rewind, tape_fsf, tape_rdlabel): Change error message 
+               for tape being offline so it matches online/offline regex 
+               in changer scripts.
+         (tape_open): Ifdef-out mode flag clearing, so you can pass 
+               O_TRUNC, etc.  in for am-dd.
+
+2000-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * common-src/util.c: #include "../tape-src/tapeio.h"
+       * tape-src/tapeio.c(tapefd_write): second arg is const.
+       * tape-src/tapeio.h(tapefd_write): Likewise.
+       * common-src/event.c(event_loop): declare entry if ASSERT is defined.
+       * changer-src/chg-scsi.c: Fix compiler warning.
+       * changer-src/scsi-aix.c: Likewise.
+       * changer-src/scsi-bsd.c: Likewise.
+       * changer-src/scsi-cam.c: Likewise.
+       * changer-src/scsi-changer-driver.c: Likewise.
+       * changer-src/scsi-defs.h: Likewise.
+       * changer-src/scsi-hpux.c: Likewise.
+       * changer-src/scsi-hpux_new.c: Likewise.
+       * changer-src/scsi-irix.c: Likewise.
+       * changer-src/scsi-linux.c: Likewise.
+       * changer-src/scsi-solaris.c: Likewise.
+       * changer-src/sense.c: Likewise.
 
-       * Amanda 2.4.2 released
-       
 2000-11-22 John R. Jackson  <jrj@purdue.edu>
 
        * contrib/dbbackup.ksh: Deal with adm being a symlink.
        * server-src/amverify.sh.in: use common form for getting the first
        line of a file/pipe.  Sed is more portable than head.
 
-2000-11-01 John R. Jackson  <jrj@purdue.edu>
-
-       * common-src/security.c (bsd_security_ok): Same fix for amwait_t !=
-       int as applied a while back to changer.c.  Compliments of John E.
-       Hein <jhein@timing.com>.
-
 2000-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * client-src/selfcheck.c (check_disk): Write an appropriate
 
 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/driver.c (continue_dumps): set estimate to more than
+       * server-src/driver.c (handle_chunker_result): The dumpsize is
+       the third argument, not the fourth.
+
+2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/driver.c (handle_chunker_result): don't check
+       pending_aborts, call event_release() ob ABORT-FINISHED.
+
+2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/chunker.c (databuf_flush): workaround to prevent a
+       hang on a ABORT command.
+
+2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/driver.c (continue_dumps): set estimate to more than 
        what is already use instead of setting no_hold=1 when a disk
        don't fit on holding disk.
 
+2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/chunker.c: chunker was broken after RQ-MORE-DISK.
+
 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/amstatus.pl.in: add '&' when calling &usage()
+       * server-src/amstatus.pl.in: add '&' when calling &usage() 
        or &dump_size().
 
 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        reported by The Hermit Hacker <scrappy@hub.org>
 
-       * changer-src/chg-chio.pl.in: remove comma after LOG,
+       * changer-src/chg-chio.pl.in: remove comma after LOG, 
        typo: r should be 0.
 
 2000-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * docs/INDEXING: doc updated.
 
-2000-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * changer-src/scsi-defs.h: prototype SCSI_Inquiry, PrintInquiry, 
-       DecodeSCSI, ChangerReplay, BarCode and MapBarCode.
-       * changer-src/scsi-linux.c: fix compiler warning.
-       * changer-src/scsi-changer-driver.c: fix compiler warning.
-
-2000-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * changer-src/chg-scsi.c: remove rcsid.
-       * changer-src/scsi-aix.c: remove rcsid, add amanda Copyright.
-       * changer-src/scsi-bsd.c: remove rcsid, add amanda Copyright.
-       * changer-src/scsi-changer-driver.c: remove rcsid, add amanda Copyright.
-       * changer-src/scsi-defs.h: add amanda Copyright.
-       * changer-src/scsi-hpux.c: remove rcsid.
-       * changer-src/scsi-hpux_new.c: remove rcsid, add amanda Copyright.
-       * changer-src/scsi-irix.c: remove rcsid, add amanda Copyright.
-       * changer-src/scsi-linux.c: remove rcsid, add amanda Copyright.
-       * changer-src/scsi-solaris.c: remove rcsid, add amanda Copyright.
-
 2000-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * AUTHORS: add Thomas Hepper.
 
-2000-10-14  Thomas Hepper <th@ant.han.de>
+2000-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * changer-src/scsi-changer-driver.c: Added support for the TreeFrog
-       library (barcode support), fixed some signal 11 problems in the
-       output of chg-scsi -status
-       Removed unused variables
-       * changer-src/chg-scsi.c: same
-       * changer-src/scsi-defs.h: same
+       * server-src/driverio.c (chunker_cmd): send ABORT command.
 
 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 
 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * NEWS: A new `ctimeout' keyword in amanda.conf to replace
+       * NEWS: A new `ctimeout' keyword in amanda.conf to replace 
        the CHECK_TIMEOUT constant in amcheck.c.
 
 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/amlabel.c: Don't set tape_ok to 0 if
+       * server-src/amlabel.c: Don't set tape_ok to 0 if 
        tape_wrlabel is successful.
 
 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/taper.c: amfree(strclosing).
 
+2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/driver.c: typo.
+
 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * configure.in: --with-samba-user is deprecated.
        * client-src/sendsize.c (getsize_smbtar): ditto.
        * client-src/sendbackup-gnutar.c (start_backup): ditto.
        * recover-src/extract_list.c (extract_files_child): ditto.
-       
-2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * server-src/dumper.c (write_tapeheader): set errno = ENOSPC
-       and return -1 if is not fully written.
 
 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/taper.c: give better message when failing
+       * server-src/taper.c: give better message when failing 
        to open a chunk.
 
 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        * server-src/diskfile.c (headqueue_disk): new function to
        insert at the head of the queue.
        * server-src/diskfile.h (headqueue_disk): prototype.
-       * server-src/driver.c (handle_taper_result,dump_to_tape):
-       insert with headqueue_disk() after a TRY-AGAIN.
-
-2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * server-src/dumper.c (do_dump): wait for index compress
-       process to terminate before renaming the index file.
+       * server-src/driver.c (taper_queuedisk): insert with
+       headqueue_disk() if disk already attempted.
 
 2000-10-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 
        * man/amanda.8.in: add all pages in the SEE ALSO section.
 
-2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * client-src/sendbackup.c: set estr=NULL if the exclude
-       file doesn't exist.
-
-2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * client-src/sendbackup-gnutar.c: use exclude string estr 
-       instead of "estr".
-
 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * man/amreport.8.in: amreport does not rotate the log.
        -config is no longer needed for ccompatibility with other program.
        * man/amoverview.8.in: -config is no longer needed.
 
-2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * server-src/amadmin.c (usage): show disklist command.
-
 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * example/amanda.conf.in: chunk should not be larger than
 
 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * client-src/sendsize.c (getsize_smbtar): remove unused debug_level 
+       * client-src/sendsize.c (getsize_smbtar): remove unused debug_level
        variable.
        * server-src/amlabel.c (main): init errstr to NULL, 
        fix compiler warning.
 
        * server-src/reporter.c (output_tapeinfo): test reversed for run_tapes.
 
-2000-08-01  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
-
-       * client-src/sendbackup-gnutar.c (start_backup) <taropt>:
-       NULL-terminate it correctly.
-
+2000-07-31 Thomas Hepper <th@ant.han.de>
+       * changer-src/chg-scsi.c: Rework of the device handling.
+       Every device is opend for an operation and than closed.
+       This will hopefully fix the problems with openening the tape device
+       and the SCSI control device for the tape
+       new option emubarcode (see docs/TAPE.CHANGERS)
+       * changer-src/scsi-cam.c: Changed to work with the new device handling.
+       * changer-src/scsi-hpux_new.c: Changed to work with the new device handling.
+       * changer-src/scsi-irix.c: Changed to work with the new device handling. (Not tested)
+       * changer-src/scsi-solaris.c: Changed to work with the new device handling. (Not tested)
+       * changer-src/scsi-linux.c: Changed to work with the new device handling.
+       * changer-src/scsi-changer-driver.c: Changed to work with the new device handling
+       * changer-src/scsi-defs.h: Changed to work with the new device handling
 2000-07-18 John R. Jackson  <jrj@purdue.edu>
 
        * changer-src/chg-chio.pl.in (do_time): fix chg-chio.pl timestamp
        memory areas on an error condition.  Found by Patrik Andersin
        <cat@iki.fi>.
 
-2000-07-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * client-src/sendsize.c (getsize_dump,getsize_gnutar): set 
-       dumppid to the return value of pipespawn.
-
-2000-06-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * client-src/sendbackup.c (parse_options): set efile.
-
-2000-06-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+2000-07-17 Thomas Hepper <th@ant.han.de>
+       * docs/TAPE.CHANGERS: Added some notes for the cam driver
+       * changer-src/scsi-cam.c: New syntax for telling scsi ids
+       (bus:target:lun)
+       SCSI_ExecuteCommand now returns the correct sense buffer.
+
+2000-07-17 Thomas Hepper <th@ant.han.de>
+       * configure.in: Added check for BSD SCSI CAM Support
+       * changer-src/scsi-cam.c: New, functions for SCSI CAM Support
+       ( at the moment for FreeBSD 4.0)
+       * changer-src/Makefile.am: added scsi-cam.s to the list of sources
+       * changer-src/chg-scsi.c: The structs for the OpenFiles_T is now
+       allocated in chg-scsi and passed to OpenDevice.
+       * changer-src/scsi-changer-driver.c: New Parameter for OpenDevice
+       (OpenFiles_T)
+
+2000-07-10 Marc Mengel <mengel@fnal.gov>
+       * tape-src/tapeio.c -- add tape_{stat,access}, allow "plain:" prefix
+               on tape device names
+       * tape-src/tapeio.h -- add tape_{stat,access} prototypes
+       * common-src/util.c -- call tape_{read,write}() in full{read,write}()
+       * restore-src/amidxtaped.c -- use tape_stat() on tapename
+       * restore-src/amrestore.c -- use tape_stat() on tapename
+       * server-src/amcheck.c -- use tape_access() on tapename
+       * client-src/Makefile.am -- now needs libamtape.a twice
+       * server-src/Makefile.am -- now needs libamtape.a twice
+       * recover-src/Makefile.am -- now needs libamtape.a twice
+       * Makefile.am -- tape-src before client-src
+
+2000-07-05 Thomas Hepper <th@ant.han.de>
+       * changer-src/chg-scsi.c: fixed an core dump if tapeident was set
+       * changer-src/scsi-changer-driver.c (OpenFile):
+        if the ident ist set in the config set this in the internal device 
+        struct too.
+       * changer-src/scsi-changer-driver.c (GenerciSenseHandler):
+        changed the type for the info text from char * to char ** which
+        is passwd to Sense2Action
+       * changer-src/scsi-changer-driver.c (ChangerStatus):
+        fixed the bug which causes an core dump for chg-scsi -status robot
+        if an bar code reader is detected. Fixed also the bug that the
+        mapping Label -> Barcode was not displayed.
+       * changer-src/scsi-defs.h: Changed the prototype for Sense2Action
+       * changer-src/sense.c: Added the defs for the Spectra TreeFrog lib
+       * changer-src/sense.c (Sense2Action); Fixed the handling if no match
+        was found (fall back to the generic description)
+
+2000-06-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/list_dir.c (add_dir_list_item): add at head of list.
 
+2000-06-24 Thomas Hepper <th@ant.han.de>
+       * changer-src/chg-scsi-chio.c: Merged changes from 2.4.2 
+       * changer-src/chg-scsi.c: Merged changes from 2.4.2
+       * changer-src/sense.c: New file. Contains an table and function for the 
+          mapping of sense/ASC/ASCQ conditions from the SCSI sense.
+       * changer-src/scsi-changer-driver.c: Merged changes from 2.4.2
+         Changed handling for the sense keys. Now there is only one function
+          to decide what to do with an sense/ASC/ASCQ conditon (abort,retry ..)
+       * changer-src/Makefile.am: Added sense.c to the source list.
+       * changer-src/scsi-solaris.c: Merged changes from 2.4.2 
+       * changer-src/scsi-linux.c: Merged changes from 2.4.2 
+       * changer-src/scsi-irix.c: Merged changes from 2.4.2 
+       * changer-src/scsi-hpux_new.c: Merged changes from 2.4.2 
+       * changer-src/scsi-defs.h: Merged changes from 2.4.2 
+       
 2000-06-12  Jeroen Ruigrok van der Werven  <asmodai@wxs.nl>
 
        * server-src/amlabel.c (main): Do not amfree(config_name).
 
-2000-06-03 Thomas Hepper <th@ant.han.de>
-
-       * changer-src/scsi-defs.h: Add missing defines which are used by the
-       sense handler
-       * changer-src/scsi-solaris.c: Added patch to limit the recursion
-       in Scsi_ExecuteCommand.
-
 2000-06-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/holding.c (pick_datestamp): convert ch to upper.
 
+2000-05-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/driver.c (handle_dumper_result, handle_chunker_result):
+         delay call to dumper_result().
+
 2000-05-28  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
        * client-src/sendbackup-gnutar.c: Ignore `socket ignored' GNU tar
        messages.
 
-2000-05-27 Ian Turner <vectro@pipeline.com>
-       * client-src/sendbackup.c (pipespawn): Moved to...
-       * common-src/pipespawn.c: ... new file.  Redirect all std
-       streams.  Support skipping arguments.
-       * common-src/pipespawn.h (pipespawn, skip_argument): Declare.
-       * common-src/Makefile.am (noinst_HEADERS): Added pipespawn.h.
-       (libamanda_la_SOURCES): Added pipespawn.c.
-       * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c:
-       Adjust.
+2000-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * chunker.c: allow chunk to be written on different holding disk.
+       * server-src/driver.c: allow chunk to be written on different
+         holding disk.
+       * server-src/conffile.c: make sure that disksize and chunksize
+         are multiple of TAPE_BLOCK_SIZE.
+       * server-src/conffile.h: disksize and chunksize are long.
+       * server-src/diskfile.c (find_disk): new function to see if a
+         given disk is contained in a list structure.
+       * server-src/diskfile.h (find_disk): prototype.
+       * server-src/driverio.h (RQ_MORE_DISK): Added message.
+       * server-src/driverio.h (free_assignedhd): prototype.
+       * server-src/driverio.h (assignedhd_t): new data structure.
+       * server-src/driverio.c (cmdstr): added comamnd RQ-MORE-DISK.
+       * server-src/driverio.c (free_assignedhd): new function to free an
+         array of assignedhd_t.
+       
+2000-05-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/driver.c (chunker_program): new variable.
 
 2000-04-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/amstatus.pl.in: typo
+       * server-src/amstatus.pl.in: handle chunker line.
 
 2000-04-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
        * recover-src/Makefile.am (LDADD): Removed libamtape.
        Reported by Paul Yeatman <pyeatman@ucsd.edu>
 
+2000-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/chunker.c: new file for the chunker program.
+       * server-src/Makefile.am: compile it.
+       * server-src/driver.c: many modification.
+       * server-src/driverio.c: many modification.
+       * server-src/driverio.c (startup_chunk_process, chunker_cmd):
+       new functions.
+       * server-src/driverio.h: prototype them.
+       * server-src/driverio.h (struct chunker_s): new structure.
+       * server-src/logfile.c: handle chunker log.
+       * server-src/logfile.h: ditto.
+       * server-src/reporter.c: ditto.
+       * server-src/taper.c: size reduced by TAPE_BLOCK_SIZE.
+
 2000-04-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/taper.c: don't crash if the tapelist file
        should have been `InfoFile'.
 
 2000-04-09  Davide Marchignoli  <marchign@di.unipi.it>
-
+  
        * server-src/conffile.h (confparm_t): Added CTIMEOUT.
        * server-src/conffile.c: Added ctimeout support.  Default to 30.
        * example/amanda.conf.in: Likewise.
 2000-04-09  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
        * server-src/amlabel.c (main): Check label *after* writing end mark.
-       
+
 2000-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/amlabel.c: don't crash if the tapelist file
+       * server-src/amlabel.c: don't crash if the tapelist file 
        doesn't exist.
 
 2000-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/amstatus.pl.in: "0 dumpers busy" should be "0 dumper busy".
 
-2000-02-08 Thomas Hepper <th@ant.han.de>
-
-       * changer-src/scsi-linux.c (SCSI_ExecuteCommand) : Direction for the 
-       memcpy for the sense result was wrong, so every time the sense result
-       was 0x0.....
-
-       * changer-src/scsi-changer-driver.c (GenericElementStatus) : Added
-       flag to signal if it is either a tape drive or a library. 
-
 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/amadmin.c (force_one, force_bump_one): FORCE_FULL
        and FORCE_BUMP are mutually exclusive.
 
-2000-01-30  Thomas Hepper <th@ant.han.de>
+2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * changer-src/chg-scsi.c : Exit it tapedev in amanda.conf is not a 
-       number. 
+       * server-src/driver.c (main): use the holding disk even if the
+       datestamped directory already exist.
 
 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
        * recover-src/amrecover.c (tape_device_name): Default to
        server-determined default.
 
-2000-01-17  Thomas Hepper <th@ant.han.de>
-       * changer-src/scsi-changer-driver.c : Typo in CheckMove fixed .
-
-2000-01-17  Thomas Hepper <th@ant.han.de>
-
-       * configure.in: check for scsi/sg.h on linux, and if true
-       enable sg support
-
-       * changer-src/chg-scsi.c : New option -trace for debuging...
-       new option changer_ident to set the internal driver for the changer
-
-       * hanger-src/scsi-hpux_new.c: New function Tape_Status.
-       returns the status of the tape. (loaded/empty etc)
-       * changer-src/scsi-aix.c : Dummy function for Tape_Status
-       * changer-src/scsi-bsd.c : Dummy function for Tape_Status
-       * changer-src/scsi-irix.c : Dummy function for Tape_Status
-       * changer-src/scsi-solaris.c : Dummy function for Tape_Status
-       * changer-src/scsi-linux.c : Added better support for the sg driver.
-       * changer-src/scsi-changer-driver.c : New driver for ADIC SDX and DLT448
-       librarys
-       new function SDXMove for SDX library
-       new function CheckMove to check if a move is legal based on the infs
-       we get from the Mode Sense command
-       * changer-src/scsi-defs.h : Added types returned by Tape_Status
-
-2000-01-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
-
-       * server-src/driver.c (handle_dumper_result): When failed, set
-       dp->inprogress to 0, not 1.
-
 2000-01-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
        * configure.in: Recognize alpha*-*-linux-* and sparc*-*-linux-*.
 2000-01-06  David Wolfskill  <dhw@whistle.com>
 
        * docs/TAPETYPES: Typo.
-
+       
 2000-01-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
        * docs/TAPETYPES: Removed all tapetype entries.  Pointed to
 
        * client-src/sendbackup-gnutar.c (re_table): Update for Samba 2.0.6.
 
+1999-11-25 John R. Jackson  <jrj@purdue.edu>
+
+       * server-src/amflush.c (main): conf_logdir should not be free'd
+         (found by Espen H Wiborg <espenhw@infotek.no>).
+
 1999-11-10 John R. Jackson  <jrj@purdue.edu>
 
        * recover-src/extract_list.c: report the tape server host in the
        * server-src/amcheck.c (start_server_check): test tapedev for
          "/dev/null" and issue warning that dumps will be thrown away.
 
+1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
+
+       * server-src/amadmin.c (main): Second occurrence of CNF_TAPELIST
+       should have been CNF_INFOFILE; fixed.
+
 1999-11-02  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
        * common-src/amflock.c (struct flock): Do not assume the fields are
        * contrib/set_prod_link.pl: Create the links for a configuration
        with --with-suffix.
 
-1999-11-02  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
+1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
 
-       * server-src/amtoc.pl.in: Correct a bug for total report.
+       * common-src/rsh-security.c (net_writev): The result of a cast is
+       not an lvalue; fixed.
 
-1999-11-01 John R. Jackson  <jrj@purdue.edu>
+1999-10-26  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
 
-       * server-src/driver.c (find_diskspace): make noisy holding space log
-         message conditional on HOLD_DEBUG.
+       * server-src/amtoc.pl.in: Correct a bug for total report.
 
 1999-11-01 John R. Jackson  <jrj@purdue.edu>
 
 
 1999-10-02 John R. Jackson  <jrj@purdue.edu>
 
-       * server-src/driver.c: delete #define of HOLD_DEBUG, it was increasing
-         the size of the amdump log file by a factor of 10 or more.  Anyone
-         who needs it can define it in CFLAGS or some other way.
+       * server-src/amlogroll.c: fix minor memory leak.
 
 1999-09-29 John R. Jackson  <jrj@purdue.edu>
 
        * configure.in: wrong variable when processing LIBRARY_DIRS.  Fix
          compliments of John M. Vogtle <jmvogtle@kodak.com>.
 
+1999-09-20 John R. Jackson  <jrj@purdue.edu>
+
+       * server-src/Makefile.am: use new amlogroll utility to rename the log
+         file to the datestamped name.
+       * server-src/amcheck.c: ditto.
+       * server-src/amcleanup.sh.in: ditto and call all utilities with the
+         config file name as an argument.
+       * server-src/amdump.sh.in: ditto and call all utilities with the
+         config file name as an argument.
+       * server-src/amflush.c: ditto.
+       * server-src/amlogroll.c: new utility.
+       * server-src/driverio.c: ditto and call all utilities with the
+         config file name as an argument.
+       * server-src/reporter.c: ditto.
+
+1999-09-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * amlogroll.c: It was missing; copied from the 2.4.2 branch.
+
+       * configure.in (AMANDA_TMPDIR): Added comment for config.h.in.
+
 1999-09-19 John R. Jackson  <jrj@purdue.edu>
 
        * server-src/amverify.sh.in: this script is important enough it should
        * server-src/amstatus.pl.in: generalize the "driver: state" parsing
          so it can handle current and future information.
 
-1999-09-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * server/driver.c (main): use the holding disk even if the
-       datestamped directory already exist.
-
-1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
-
-       * configure.in: Get snapshot date from SNAPSHOT file, if it exists.
-       (VERSION): Add the date to it.
-       (SNAPSHOT_STAMP): AC_SUBST to the SNAPSHOT file, if it exists.
-       * Makefile.am (EXTRA_DIST): Added $(SNAPSHOT_STAMP).
-       (config.status): Depend on $(SNAPSHOT_STAMP).
-       (SNAPSHOT): Dummy rule to allow reconfigure if it's removed.
-
-       * config/Makefile.am: Remove all traces of acconfig.h.
-
-       * server-src/changer.c (changer_command): Fix for amwait_t != int.
-
-1999-09-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
-
-       * config/acinclude.m4i: Added comments for config/config.h.in to all
-       AC_DEFINEs.
-       * configure.in: Likewise.
-       * config/acconfig.h: Deleted.
-       * autogen: Updated.
-
-1999-09-13 John R. Jackson  <jrj@purdue.edu>
-
-       * server-src/amverify.sh.in: protect against uname not returning
-         anything.
-
-1999-09-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * server-src/amcheck.c (start_server_check): use tapefile instead of
-       conf_tapelist to open the file (we no longer cd to the config file).
-
-1999-09-11 John R. Jackson  <jrj@purdue.edu>
-
-       * server-src/reporter.c: sigh -- it was right the first time.
-
-1999-09-11 John R. Jackson  <jrj@purdue.edu>
-
-       * server-src/reporter.c: lost a few too many lines with the amlogroll
-         changes to amreport.
-
-1999-09-11 John R. Jackson  <jrj@purdue.edu>
-
-       * server-src/amindex.c: minor memory leak.
-
-1999-09-11 John R. Jackson  <jrj@purdue.edu>
-
-       * server-src/amcheck.c: remove duplicated code.
-
-1999-09-11 John R. Jackson  <jrj@purdue.edu>
-
-       * server-src/Makefile.am: use new amlogroll utility to rename the log
-         file to the datestamped name.
-       * server-src/amcheck.c: ditto.
-       * server-src/amcleanup.sh.in: ditto and call all utilities with the
-         config file name as an argument.
-       * server-src/amdump.sh.in: ditto and call all utilities with the
-         config file name as an argument.
-       * server-src/amflush.c: ditto.
-       * server-src/amlogroll.c: new utility.
-       * server-src/driverio.c: ditto and call all utilities with the
-         config file name as an argument.
-       * server-src/reporter.c: ditto.
-
-1999-09-10 John R. Jackson  <jrj@purdue.edu>
-
-       * client-src/rundump.c: minor compiler warnings.
-       * common-src/security.c: minor compiler warnings.
-       * server-src/amindexd.c: minor compiler warnings.
-       * server-src/conffile.c: minor compiler warnings.
-
-1999-09-10 John R. Jackson  <jrj@purdue.edu>
-
-       * client-src/sendsize.c: typo in previous patch and pick a better
-         variable name (ala other similar code).
-
-1999-09-10 John R. Jackson  <jrj@purdue.edu>
+1999-09-15 John R. Jackson  <jrj@purdue.edu>
 
-       * client-src/amandad.c: clean up error messages after a fork or exec*
-         failure.
-       * client-src/rundump.c: ditto.
-       * client-src/runtar.c: ditto.
-       * client-src/sendbackup.c: ditto.
-       * client-src/sendsize.c: ditto.
-       * restore-src/amidxtaped.c: ditto.
-       * server-src/amflush.c: ditto.
+       * common-src/bsd-security.c: if the user field is not present in the
+         .amandahosts file, it should default to the local user, not the
+         remote user.  For our purposes, that is CLIENT_USER, not the user
+         we are running as (although they should be the same).
 
-1999-09-07 John R. Jackson  <jrj@purdue.edu>
+1999-09-14 John R. Jackson  <jrj@purdue.edu>
 
        * configure.in: Add --with-tmpdir to ./configure and use it for
          all Amanda temporary files.  Default --with-dbgdir to --with-tmpdir.
        * common-src/alloc.c: ditto.
        * common-src/amanda.h: ditto.
        * common-src/amflock.c: ditto.
+       * common-src/bsd-security.c: ditto.
        * common-src/debug.c: ditto.
        * common-src/file.c: ditto.
        * common-src/genversion.c: ditto.
-       * common-src/security.c: ditto.
-       * config/acconfig.h: ditto.
-       * dumper-src/gnutar.pl.in: ditto.
        * restore-src/amidxtaped.c: ditto.
        * server-src/Makefile.am: ditto.
        * server-src/amadmin.c: ditto.
        * server-src/amverify.sh.in: ditto.
        * server-src/changer.c: ditto.
        * server-src/changer.h: ditto.
+       * server-src/conffile.c: ditto.
        * server-src/conffile.h: ditto.
        * server-src/diskfile.c: ditto.
        * server-src/driver.c: ditto.
        * server-src/tapefile.c: ditto.
        * server-src/taper.c: ditto.
 
-1999-09-05 John R. Jackson  <jrj@purdue.edu>
+1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * common-src/bsd-security.c (bsd_stream): fn should take an ssize_t.
+       (bsd_stream_read): Likewise, declaration.
+       * common-src/rsh-security.c (rsh_stream): Likewise.
+       (rsh_stream_read): Likewise, declaration and definition.
+       * common-src/krb4-security.c (dummy): Compile when disabled.
+       * common-src/krb5-security.c (dummy): Likewise.
 
-       * common-src/Makefile.am: change OBJ_EXTENSION to OBJEXT in line
-         related to the "security" test tool.
+       * server-src/reporter.c (sDivZero): Change from float to double, to
+       build with DEC cc.
+
+       * configure.in: Get snapshot date from SNAPSHOT file, if it exists.
+       (VERSION): Add the date to it.
+       (SNAPSHOT_STAMP): AC_SUBST to the SNAPSHOT file, if it exists.
+       * Makefile.am (EXTRA_DIST): Added $(SNAPSHOT_STAMP).
+       (config.status): Depend on $(SNAPSHOT_STAMP).
+       (SNAPSHOT): Dummy rule to allow reconfigure if it's removed.
+
+       * config/Makefile.am: Remove all traces of acconfig.h.
+
+       * server-src/changer.c (changer_command): Fix for amwait_t != int.
+
+1999-09-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * config/acinclude.m4i: Added comments for config/config.h.in to all
+       AC_DEFINEs.
+       * configure.in: Likewise.
+       * config/acconfig.h: Deleted.
+       * autogen: Updated.
 
 1999-09-05 John R. Jackson  <jrj@purdue.edu>
 
        * changer-src/chg-chio.pl.in: add -w to #! line to catch more errors.
-       * client-src/amandad.c: fix some compiler warnings.
-       * common-src/protocol.c: fix some compiler warnings.
        * recover-src/display_commands.c: fix some compiler warnings.
        * recover-src/extract_list.c: fix some compiler warnings.
        * restore-src/amrestore.c: fix some compiler warnings.
-       * server-src/conffile.c: fix some compiler warnings.
-       * server-src/diskfile.c: fix some compiler warnings.
-       * server-src/holding.c: fix some compiler warnings.
        * server-src/planner.c: fix some compiler warnings.
 
 1999-09-05 John R. Jackson  <jrj@purdue.edu>
 
        * common-src/stream.c: make sure errno is returned properly from
          stream_client() and stream_server().
-       * client-src/sendbackup.c: report errors from stream_server() and
+       * server-src/taper.c: report errors from stream_server() and
          abort.
-       * server-src/taper.c: ditto.
        * recover-src/extract_list.c: make sure errno is preserved.
 
-1999-09-05 John R. Jackson  <jrj@purdue.edu>
-
-       * client-src/amandad.c: clean up a couple of debugging messages.
-
-1999-09-05 John R. Jackson  <jrj@purdue.edu>
-
-       * recover-src/amrecover.c: add missing ntohs calls.  Reported by
-         Kent Kalnasy <kkalnasy@ms.washington.edu>
-       * recover-src/extract_list.c: ditto.
-
 1999-09-05 John R. Jackson  <jrj@purdue.edu>
 
        * configure.in: make sure the dump and restore programs are defined
        (get_dumptype): Use read_dumptype.
        (main): Read disklist, so that custom dumptypes are shown.
        * server-src/conffile.h (read_dumptype): Declare.
-       * server-src/diskfile.c (read_diskline): Use read_dumptype if
-       dumptype starts with `{'.
+       * server-src/diskfile.c (parse_diskline): Get line_num and line by
+       reference.  New argument diskf.  Use read_dumptype if dumptype
+       starts with `{'.
+       (main): Update.
        * man/amanda.8.in (disklist): Document it.
        * NEWS: Likewise.
        * example/disklist: Exemplify it.
 
 1999-08-23 John R. Jackson  <jrj@purdue.edu>
 
-       * server-src/reporter.c (copy_template_file): make sure all data is
-         written to label template pipeline.
+       * recover-src/amrecover.c (main): fix test for IPPORT_RESERVED.
+       * recover-src/extract_list.c (extract_files_setup): ditto.
 
-1999-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-       Patch by Peter Conrad <conrad@opus5.de>
+1999-08-23 John R. Jackson  <jrj@purdue.edu>
 
-       * docs/INTERNALS: documented splitting of dumps across multiple
-         holding disks.
-       * server-src/conffile.c: make sure that disksize and chunksize
-         are multiple of TAPE_BLOCK_SIZE.
-       * server-src/diskfile.c (find_disk): new function to see if a
-         given disk is contained in a list structure.
-       * server-src/diskfile.h (find_disk): prototype.
-       * server-src/driverio.h (RQ_MORE_DISK): Added message.
-       * server-src/driverio.h (free_assignedhd): prototype.
-       * server-src/driverio.h (assignedhd_t): new data structure.
-       * server-src/driverio.c (cmdstr): added comamnd RQ-MORE-DISK.
-       * server-src/driverio.c (dumper_cmd): Modified format of CONTINUE
-       * server-src/driverio.c (free_assignedhd): new function to free an
-         array of assignedhd_t.
-       * server-src/driver.c (roomq): new queue to replace stoppedq.
-       * server-src/driver.c (find_diskspace, assign_holdingdisk, 
-         adjust_diskspace, delete_diskspace): rewrite.
-       * server-src/driver.c (continue_dumps): new function to determine
-         which dump should be continued.
-       * server-src/driver.c (handle_taper_result): call continue_dumps
-         to restart a roomq dump.
-       * server-src/driver.c (handle_dumper_result): some rewrite, 
-         modified semantics of NO_ROOM, new message RQ-MORE-DISK.
-       * server-src/dumper.c (main): Modified parsing of FILE_DUMP, 
-         handling of use.
-       * server-src/dumper.c (write_dataptr): NO-ROOM is informational only,
-         trucate the file to a multiple of TAPE_BLOCK_BYTES.
-       * server-src/dumper.c (update_dataptr): rewrite to emit RQ-MORE-DISK
-         command.
+       * server-src/reporter.c (copy_template_file): make sure all data is
+         written to label template pipeline.
 
 1999-08-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        Reported by Brian Cuttler <brian@wadsworth.org>
 
 1999-08-15  Jon LaBadie  <jon@jgcomp.com>
-
+       
        * tape-src/tapetype.c: Speed it up by using larger sections in the
        second pass.
 
        not-that-portable `head -1'.
        Reported by Andrew Lare <lare@eos913c.gsfc.nasa.gov>
 
-1999-06-20  Thomas Hepper <th@ant.han.de>
-
-       * changer-src/chg-scsi.c: 2 new config keywords, changerident/tapeident
-       
-       * changer-src/scsi-changer-driver.c: deleted the linux driver at the
-       beginning, (wrong window on cut and paste .......)
-
-       * changer-src/scsi-defs.h: new element in Changer_IO which describes
-       the type of device which is handled by this entry (tape/robot)
-
-       * changer-src/scsi-changer-driver.c: New parameter to OpenDevice
-       to override the selection of the driver for this device. (See
-       also docs/TAPE.CHANGERS)
-
 1999-06-19  Alexander Zangerl  <az@Austria.EU.net>
 
        * client-src/sendbackup-dump.c (re_table): Match Solaris vxdump
        output.
 
-1999-06-18  Thomas Hepper <th@ant.han.de>
-
-       * server-src/changer.c: (changer_find) check if serachlabel is NULL
-       if yes don't print it to the debug file
-
-       * changer-src/scsi-solaris.c: (SCSI_ExecuteCommand) Add missing
-       parameter to DecodeExtSense.
-
-       * changer-src/scsi-aix.c: (SCSI_ExecuteCommand) Add missing
-       parameter to DecodeExtSense.
-
-       * changer-src/scsi-hpux.c: Added static char rcsid[] = ...
-       * changer-src-/chg-scsi.c: dito
-       * changer-src/scsi-changer-driver.c: dito
+1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-1999-06-17  Thomas Hepper <th@ant.han.de>
+       * server-src/dumper.c (read_indexfd): typo
 
-       * configure.in: Add new example files amanda.conf.chg-scsi, 
-       chg-scsi-linux.conf, chg-scsi-solaris.conf, chg-scsi-hpux.conf
-
-       * changer-src/chg-scsi-chio.c: Add parameter to find_empty
-
-       * changer-src/chg-scsi.c: Changed the way files are opened, added
-       FILE *debug_file because now it is possible to send some output to
-       stdout. (scsi-changer-driver.c).
-       (ask_clean) return 0  if result from get_clean_state is < 0
-       if get_current_slot returns < 0 try to find the used slot by asking
-       the robot. (happens if no slot file is available, or slot file is empty)
-       
-       * changer-src/scsi-changer-driver.c: New tape/robot types.
-       (find_empty) new parameter to specify range where to search.
-       More checks for NULL pointer ....
-       (DumpDev) new function to print the info for the device struct.
-       (ChangerStatus) some more output ....
-       
-       * changer-src/scsi-linux.c: Complete rewrite of SCSI_OpenDevice.
-
-       * common-src/debug.c: (debug_fp) new function to return the FILE *
-       to the debug file.
-
-       * contrib/sst/sst.c: Removed the inquiry call, this is handled by
-       chg-scsi. The old version will hang if for example no tape is loaded.
-       
-       * contrib/sst/Makefile: New Makefile, the old one does not work if not
-       the complete SUNdrv kit is installed.
+1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
+       * server-src/dumper.c (do_dump): Close the indexout fh and wait
+       for the completion of the index compress process.
+       * server-src/dumper.c (read_mesgfd,read_datafd): Call stop_dump only
+       if the index fd is already shut down.
+       * server-src/dumper.c (read_indexfd): On EOF, call stop_dump() if both
+       the mesg and data fd are shut down.
 
 1999-06-15  Adam Hammer  <hammer@math.purdue.edu>
 
        slightly different.
        Reported by Julian Stevens <julian.stevens@baedsl.co.uk>
 
+1999-06-02  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/util.c (fullread, fullwrite): versions of
+       read()/write() that keep looping until the buffer is
+       completely read/written, or an error occurs.
+       * common-src/Makefile.am: build util.c/util.h
+       * common-src/fileheader.c, common-src/fileheader.h
+       (fill_buffer): remove, replaced with fullread()
+       * server-src/holding.c: use fullread() instead of fill_buffer().
+       * common-src/bsd-security.c, restore-src/amrestore.c,
+       server-src/amcheck.c, server-src/driverio.c, server-src/dumper.c,
+       server-src/logfile.c, server-src/taper.c: use fullread/fullwrite
+       instead of doing the retry loops manually.
+
+1999-06-02  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (read_mesgfd, read_datafd): upon EOF,
+       close the stream.  If the other stream is also closed, shut
+       down.
+
+1999-06-02  Mike Grupenhoff <kashmir@munge.com>
+
+       * client-src/amandad.c (REP_TIMEOUT): bump up to six hours, for slow
+       machines.
+       (exit_check): remove waitpid(), let the service reap its own
+       children.
+       (s_repwait): rename 'err' to 'errstr' to avoid conflict with
+       function in some libcs.
+       (s_ackwait): if no pipes were opened by this service, then shut
+       it down here.
+       (process_netfd): on EOF, be sure to also close the network
+       stream.  Also, if this is the last stream to be closed, shut
+       down the service.
+       (allocstream): correct a comment
+       (service_delete): only close the security handle if it is still
+       open.  Reap our children here instead of in exit_check().
+
+1999-06-01  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/taper.c (write_buffer): assert properly
+
 1999-06-01  John Williams  <williams@morinda.com>
 
        * changer-src/scsi-hpux.c (eject_tape): Enable it, it works.
        * config/acconfig.h: Add UDPPORTRANGE.
        * common-src/dgram.c: Implement it.
 
+1999-05-27  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/alloc.c (alloc, debug_alloc, newalloc, debug_newalloc):
+       make the size argument a size_t.
+       (alloc): if an allocation fails, in the error message print how
+       many bytes we tried to alloc.  This helps us determine if the
+       alloc call was errant, or we really were out of memory.
+       * common-src/amanda.h: update alloc/newalloc prototypes for
+       size_t changes.
+
 1999-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
        to libtool 1.3.2 plus a few patches.
        * config/config.guess, config/config.sub: Ditto.
 
+1999-05-26  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/protocol.c: retry connection failures three times,
+       waiting five seconds between each attempt.  Also, fix a lot
+       of untrue comments.
+
+1999-05-26  Mike Grupenhoff <kashmir@munge.com>
+
+       * client-src/amandad.c: add a lot more dbprintfs so we know what's
+       going on.
+       (service_new): use error() instead of dbprintf(); exit()
+
+
 1999-05-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * docs/FAQ (tar-patch): Mention sparse file problem.
        * Makefile.am: Create acinclude.m4 in the top-level directory.
        * config/Makefile.am: Create link to acconfig.h in the top-level
        directory.
-       * configure.in: Add AMANDA_CFLAGS to CFLAGS.
+       * configure.in: Add AMANDA_CFLAGS to CFLAGS.  Set DUMPER_DIR without 
+       trying to run it.
        * common-src/Makefile.am: Create genversion.h with #defines, to
        avoid genversion-specific CPPFLAGS.
        * common-src/genversion.c: #include genversion.h
-       * common-src/version.h: VERSION_COMMENT must be const, as in
-       version.c.
+
+1999-05-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/amandad.c (state2str): string "s_processrep" is 13
+       caracters.
 
 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
 
        out the error message we generate, instead of whatever junk
        happens to be in the buffer.
 
+1999-05-24  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c (bsd_stream_read): remove old
+       code that was part of something that ended up not happening.
+       (stream_read_callback): use ssize_t.
+
+1999-05-24  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c (event_register): restructure asserts, and
+       for EV_READFD/EV_WRITEFD, assert that the fd is < FD_SETSIZE.
+
+1999-05-24  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/queue.h: move the multiple-inclusion #defines
+       into application namespace.  #undef each macro before defining
+       it, in case the OS has an identical macro.
+
 1999-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * server-src/amindex.h: Keep P macro expression in a single line.
        use value from the infofile only the datestamp are equal.
        Write all available value.
 
+1999-05-18  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/strerror.c (strerror): restructure so that it doesn't
+       need to malloc.
+
+1999-05-17  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/genversion.c (prvar): prototype declared it static,
+       but actual function was still extern.
+
 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/planner.c (pick_inclevel): check for base_level+1 if
        1 on success.
        * server-src/driverio.h (taper_cmd, dumper_cmd): prototype.
 
+1999-05-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c: make prototypes consistent, (putresult):
+       make first arg const.
+
+1999-05-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/conffile.c (getconf_byname): islower takes an int
+       for an arg.
+       * server-src/diskfile.c (upcase): islower takes an int for an
+       arg.
+       * server-src/driver.c (update_failed_dump_to_tape): prototype.
+       * server-src/holding.c (insert_dirname, scan_holdingdisk):
+       prototype and make static, (is_datestr): isdigit takes an int
+       for an arg.
+
+1999-05-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * client-src/calcsize.c (basename): make static, prototype, and
+       only include if BUILTIN_EXCLUDE_SUPPORT is defined and
+       HAVE_BASENAME is not defined.
+       * client-src/getfsent.c (dev2rde, samefile): prototype and
+       make static.
+       * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c
+       (start_backup, end_backup): prototype.
+       * client-src/sendbackup.c (index_closed, save_fd): prototype
+       and make static.
+       * client-src/versionsuffix.c (main): prototype.
+       * common-src/alloc.c (internal_vstralloc): prototype.
+       * common-src/file.c (mk1dir): prototype, make static, and make
+       first arg const.
+       * server-src/amadmin.c (check_dumpuser): prototype.
+       * server-src/amflush.c (get_letter_from_user): prototype and make
+       static.
+       * server-src/amindexd.c: prototype and make static numerous local
+       functions.
+       * server-src/amlabel.c (main): prototype.
+       * server-src/amtrmidx.c (main): prototype.
+       * server-src/changer.c (report_bad_resultstr, run_changer_command):
+       prototype.
+       * server-src/conffile.h: properly prototype getconf_holdingdisks()
+       * server-src/driverio.h: properly prototype init_driverio().
+       * server-src/find.c (find_compare, parse_taper_datestamp_log):
+       prototype.
+       * server-src/infofile.c (zero_info, open_txinfofile,
+       close_txinfofile, read_txinfofile, write_txinfofile,
+       delete_txinfofile): prototype and make static.
+       * server-src/planner.c (main, askfor): prototype.
+
+1999-05-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/server_util.c: include server_util.h for prototypes
+       * server-src/tapefile.h: properly prototype lookup_nb_tape()
+       * server-src/driverio.c (childstr): make static, make return
+       val const.
+
+1999-05-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/find.h: properly prototype find_log()
+       * server-src/amtrmlog.c (main): prototype.  find_log() takes
+       no arguments.
+
+1999-05-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/reporter.c: make all functions and globals
+       static.  Prototype all functions, and make them consistent wrt
+       K&R.  Place all prototypes together.  Place data type
+       declarations before the prototypes that use them.  Remove
+       unused sort_by_time().
+
+1999-05-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (process_dumpline): clean up the error
+       return code
+       * server-src/dumper.c (log_msgout): no need to reuse errf global,
+       it makes me nervous.  Also, use amfree instead of free.
+
+1999-05-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/packet.c (pkt_cat): remove a bogus assert - len is
+       a size_t, which is unsigned, so it will always be >= 0.
+
+1999-05-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * client-src/amandad.c (action_t): consolidate A_PKTTIMEOUT and
+       A_REPTIMEOUT into just A_TIMEOUT.
+
+1999-05-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/amanda.h, common-src/alloc.c, common-src/event.c,
+       common-src/rsh-security.c, server-src/driver.c,
+       server-src/dumper.c: (min, max): consolidate all min/max
+       definitions into amanda.h
+
 1999-05-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * docs/TAPE.CHANGERS (chg-rth): URL for chs is no longer valid.
 
+1999-05-12  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/amanda.h, common-src/alloc.c, common-src/file.c:
+       const the filename arg to all of the dbmalloc versions of
+       alloc and io functions
+
+1999-05-11  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/protocol.c (proto_t): don't need prev and next ptrs
+       anymore
+
+1999-05-11  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/amanda.h, common-src/alloc.c: remove the static
+       buffer manager - nothing uses it.  It can be resurrected in
+       the future if needed.
+
+1999-05-11  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/amanda.h: define stringconcat() macros that
+       concatenate two const strings together
+       * common-src/versuff.c.in (versionsuffix, version): generate
+       data at compile time using stringconcat().
+       * common-src/genversion.c: simplify, don't need to alloc anything
+       * common-src/Makefile.am (genversion_LDADD): this doesn't need
+       alloc.o or error.o anymore
+
+1999-05-11  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/security.c (security_handleinit, security_streaminit):
+       change default error message "unknown error" to "unknown protocol
+       error" or "unknown stream error" to help identify where an
+       messageless error was triggered.
+
+1999-05-11  Mike Grupenhoff <kashmir@munge.com>
+
+       * client-src/amandad.c (main): call initgroups(), and also set
+       the real gid.
+
+1999-05-10  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/driver.c (start_some_dumps): if a dumper is
+       constrained, and some dumpers or the taper are active, register
+       a EV_WAIT event.
+       * server-src/driver.c (handle_taper_result,
+       handle_dumper_result):  wakeup constrained dumpers after we
+       have freed some resources.
+
+1999-05-10  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/fileheader.c, common-src/fileheader.h: rework the
+       fileheader parse and format code to remove a lot of duplicated
+       code (in the F_DUMPFILE and F_CONT_DUMPFILE cases), consting
+       arguments, and simplifying parse code.
+
 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
 
        * client-src/sendsize.c (getsize_dump): print out the strerror
        if we can't exec killpgrp.
 
+1999-05-10  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (add_msg_data): first two arguments
+       to memmove() were backwards.
+
 1999-05-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * example/amanda.conf.in: typo
 
+1999-05-07  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/alloc.c (safe_env): allow DISPLAY into the
+       environment for purify.
+       * server-src/holding.c (rename_tmp_holding): if fill_buffer
+       returns 0, don't try to parse a nonexistant header.
+       * server-src/taper.c (file_reader_side): init datestamp to
+       NULL, and don't try to free it if it's still NULL on exit.
+
+1999-05-06  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/driver.c (start_some_dumps): sleep_time is an
+       offset, not an absolute.  Leave it that way when we return from
+       this function.
+
 1999-05-05  Mike Grupenhoff <kashmir@munge.com>
 
        * server-src/amverify.sh.in (pecho): new function.  Like echo
        flags and also know if it supports \r.  So we just punt and use
        perl.
 
+1999-05-04  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/driver.c: convert to use event handler.
+       (some_dumps_in_progress, lookup_dumper): nuke.
+       (sleep_time): make a time_t and static.
+       (IDLE_NO_DUMPERS): give a lower precedence than IDLE_START_WAIT.
+       (start_some_dumps): make this work on one dumper instead of all.
+       Call when a dumper is finished and needs more work.
+       (handle_idle_wait): callback for dumpers waiting for delayed
+       disks to start up.
+       * server-src/driverio.c: initialize event handles for dumpers
+       and the taper.  Nuke addfd().
+       * server-src/driverio.h: add event handles for each dumper, and
+       one global one for the taper.  Nuke maxfd and readset globals.
+
+1999-05-04  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/driver.c (taper_queuedisk): new function that takes
+       a disk_t, and, if the taper is not busy, tells it to write it out,
+       or else adds it to the tapeq.  Make use_lffo global static.
+       * server-src/driver.c (handle_taper_result, handle_dumper_result):
+       call taper_queuedisk() instead of queueing ourself.
+
+1999-04-30  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/driver.c: make all local functions static.
+       Exposed two prototypes for nonexistant functions
+       (diskname2filename, driver_main), and one function (dump_state)
+       that was never called.  #if 0 out dump_state.
+       Nuke inside_dump_to_tape global - it's value was never used.
+       Make pending_aborts global a static local in handle_dumper_result.
+
+1999-04-30  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/driverio.h (dumper_t): merge infd and outfd into
+       just 'fd'.  Comment the other members of the struct.
+       * server-src/driverio.c: infd/outfd -> fd
+       * server-src/driver.c (handle_dumper_result): merge some common
+       code between the FAILED and TRYAGAIN cases.  Comment the
+       ABORT_FINISHED case.  Also infd/outfd -> fd.
+
 1999-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/planner.c (when_overwrite): return a big number (1024)
        * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
        from libtool 1.3.
 
+1999-04-29  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/driver.c (handle_dumper_result): remove FATAL_TRYAGAIN
+       case, nothing uses it.
+       * server-src/driverio.c, server-src/driverio.h: garbage collect
+       FATAL_TRYAGAIN.  static & const cmdstr.
+
+1999-04-28  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/diskfile.c (read_diskfile): rework to take a
+       disklist_t * as an argument, and return -1 on error, or 0 on
+       success.  const the filename argument.  Kill a few globals.
+       * server-src/diskfile.c (lookup_host, lookup_disk): const
+       arguments
+       * server-src/diskfile.h: adjust prototypes for above changes
+       * server-src/amadmin.c, server-src/amcheck.c,
+       server-src/amcleanupdisk.c, server-src/amflush.c,
+       server-src/amindexd.c, server-src/amtrmidx.c,
+       server-src/amtrmlog.c, server-src/driver.c,
+       server-src/planner.c, server-src/reporter.c: adjust calls to
+       read_diskfile() to deal with convention
+
+1999-04-28  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (read_mesgfd, read_indexfd): on EOF, just
+       stop reading these streams.  We let EOF on the data stream cause
+       the entire dump to be stopped.
+
+1999-04-27  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/rsh-security.c (conn_read_callback): cast
+       event_wakeup() arg to event_id_t.
+
 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * common-src/versuff.c.in: Adjust constness to match version.h.
 
        * server-src/amdump.sh.in: execute amtrmlog.
 
+1999-04-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * client-src/sendbackup.c: rename write_tapeheader to info_taperheader
+       we already have a write_tapeheader function in dumper.c
+       * client-src/sendbackup.h: ditto
+       * client-src/sendbackup-dump.c: ditto
+       * client-src/sendbackup-gnutar.c: ditto
+
+1999-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * dumper-src/gnutar.pl.in: add debuging code.
+       * server-src/planner.c (getsize): send optionstr() for estimate 
+       with a wrapper.
+       * client-src/selfcheck.c: init program_is_wrapper to 0.
+       * client-src/sendsize.c: implement DUMPER-API, support only
+        estimate-direct.
+
 1999-04-22 John R. Jackson  <jrj@purdue.edu>
 
        * configure.in: add --with-broken-fsf to use a read() loop instead
        * config/acconfig.h: ditto
        * tape-src/tapeio.c (tapefd_fsf): ditto
 
-1999-04-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
+1999-04-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * docs/SYSTEM.NOTES: Typo
+       * docs/SAMBA: Update on samba-largefs patch.
+       * docs/FAQ: New FAQ about promotion of full dumps.
+
+1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * tape-src/tapeio.c (tape_open): Retry after EBUSY and EINTR too.
+       Comment out test that would set filename to /dev/null.
+
+1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * docs/WISHLIST: Global reformat.  Removed fixed issues.  Added
+       auto-flush mode.
+
+1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/server_util.c: use snprintf instead of ap_snprintf.
+
+1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/server_util.c: new file for utility function.
+       New function construct_datestamp.
+       * server-src/server_util.h: ditto
+       * server-src/Makefile.am: link server_util.c with libamserver.
+       * amcleanupdisk.c (construct_datestamp): remove function.
+       * server-src/driver.c: ditto
+       * server-src/dumper.c: ditto
+       * server-src/amflush.c: ditto
+       * server-src/planner.c: ditto
+
+1999-04-17  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c: this doesn't need queue.h
+
+1999-04-17  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c: Insert new events at the head of the eventq,
+       not the tail, so we don't loop forever if a newly registered
+       event has the same type as the one currently firing.  Noticed
+       and diagnosed by Jean-Louis Martineau.
+       Use a LIST for the eventq, instead of a TAILQ, since we don't need
+       to do tail insertions anymore.
+       Make the eventq_* functions take a queue name so we can also use
+       them for the handle cache.  Rename eventq_append() to eventq_add().
+
+1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * dumper-src/gnutar.pl.in: add DUMPER_DIR to INC.
+
+1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * client-src/selfcheck.c: Implement DUMPER-API.
+       * dumper-src/gnutar.pl.in (command_selfcheck): print OK, the function
+       is not implemented.
+       * dumper-src/generic-dumper.pl.in (parse_options): option are
+       separated by ;
+
+1999-04-16  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c: make dumpsize and headersize static.  Rename
+       nb_header_block to headersize and also make it static.  headersize
+       now counts bytes instead of blocks, just like the other two.
+       Use SEEK_SET in an lseek instead of hardcoding 0.
+
+1999-04-16  Mike Grupenhoff <kashmir@munge.com>
+
+       * configure.in: implement --with-cflags to allow turning on
+       compiler warnings and optimizations
+
+1999-04-16  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c (gethandle, puthandle): new functions that
+       keep a cache of handles to reduce calls to malloc/free.
+
+1999-04-16  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/alloc.c (dbmalloc_caller_loc): const the file
+       arg, use the queue macros to maintain the list.
+
+1999-04-16  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/versuff.c.in: const the return str of version()
+       and versionsuffix.  Bump copyright to 1999.
+
+1999-04-16  Mike Grupenhoff <kashmir@munge.com>
+
+       * client-src/amandad.c, client-src/amandad.h,
+       client-src/sendbackup-dump,c, client-src/sendbackup-gnutar.c,
+       client-src/sendbackup.c, common-src/bsd-security.c,
+       common-src/dgram,c, common-src/dgram.h, common-src/event.c,
+       common-src/event.h, common-src/krb4-security.c,
+       common-src/krb5-security.c, common-src/packet.c,
+       common-src/packet.h, common-src/protocol.c, common-src/security.c,
+       common-src/security.h, server-src/amcheck.c, server-src/conffile.c,
+       server-src/conffile.h, server-src/dumper.c:
+       update copyright to 1999 on things I've touched this year.
+
+1999-04-16  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/amanda.h: remove version_info extern.  Bump
+       copyright to 1999
+       * common-src/genversion.c: constify version_info.  Emit
+       {KRB4,KRB5,RSH}_SECURITY.  Bump copyright.
+       * common-src/version.h: const VERSION_COMMENT and version_info.
+       const return str and fully prototype versionsuffix() and version()
+       prototypes.  Bump copyright.
+       * server-src/planner.c (main): iterate through version_info using
+       an index instead of a pointer.
+
+1999-04-16  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/conffile.c: explicitly give the seen_columnspec global
+       an int type instead of letting the compiler default to it.
+
+1999-04-16  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.h (event_id_t): a new typedef for the
+       first arg to event_register.  Should be wide enough to
+       reasonably hold an int or a pointer (but it is ok to trunc
+       the pointer if necessary).  Update proto for event_register()
+       and event_wakeup().
+       * common-src/event.c: struct event_handle->data is now an
+       event_id_t.
+       (event_register, event_wakeup): adjust args for event_id_t)
+       (event_register): event_id_t is unsigned, no need to assert
+       positivity anymore.
+       * common-src/rsh-security.c (rsh_stream_read): cast first arg to
+       event_register() to event_id_t.
+
+
+1999-04-15  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c (release): nuke, and inline into event_loop.
+       * common-src/event.c (event_loop): flesh out the timeout comment.
+       Combone the EV_WAIT and EV_DEAD empty cases in the post-select loop.
+       * common-src/event.h: flesh out the event_type_t comment.
+
+1999-04-15  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c (fire): inline this with a macro.  Remove
+       timestamp arg.  eh->lastfired is now only valid for EV_TIME
+       events.  Removes several time() systems from the critical path.
+       * common-src/event.c (event_wakeup): have this fire EV_WAIT events
+       directly instead of deferring back to the event loop.  Removes the
+       sequencing restriction for event_wakeup.
+
+1999-04-15  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/planner.c (getsize): put the hosts disks on the waitq
+       before sending the request, not after.
+
+1999-04-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * docs/UPGRADE: Update URL for archived message.
+
+1999-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/amcheck.c (main): should not set real uid to 0.
+
+1999-04-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * common-src/bsd-security.c (bsd_connect): dgram_bind return the port
+       number, we don't need ntohs().
+
+1999-04-12  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/dgram.c,common-src/dgram.h: nothing uses dgram_alloc()
+       anymore, gc them.
+
+1999-04-12  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/amindexd.c: dgram.h not needed
+
+1999-04-12  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c: fix a bunch of inaccurate comments.
+       * common-src/event.c (event_loop): prune dead events in the
+       pre-select pass instead of in the EV_WAIT pass.
+       * common-src/event.c (fire): factor out all code that fires
+       events into a 'fire' function.
+       * common-src/event.c (signal_handler): bounds check the signal
+       number against the size of sigtable instead of assuming sigtable
+       is NSIG big.
+
+1999-04-10  Mike Grupenhoff <kashmir@munge.com>
+
+       * client-src/amandad.c (allocstream): if security_stream_server()
+       fails, dbprintf the error.
+
+1999-04-10  Mike Grupenhoff <kashmir@munge.com>
+
+       * configure.in: implement --with-rsh-security
+       * common-src/rsh-security.c: first attempt at using rsh or a rsh-like
+       command for dump transport and authentication.  Still has lots
+       of "issues"
+       * common-src/Makefile.am: build rsh-security.c
+       * common-src/security.c: add rsh_security_driver to the drivers array
+       * config/acconfig.h: define RSH_SECURITY
+
+1999-04-10  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (runcompress): use the proper end of the pipe
+       for writing and reading.  Also, grab errno early on fork error
+       before calling close.
+       * server-src/dumper.c (sendbackup_response): make sure the client
+       at least send us a mesgfd and datafd.
+
+1999-04-10  Mike Grupenhoff <kashmir@munge.com>
 
-       * docs/SYSTEM.NOTES: Typo
-       * docs/SAMBA: Update on samba-largefs patch.
-       * docs/FAQ: New FAQ about promotion of full dumps.
+       * client-src/amandad.c (main): don't dup stdout to db_fd - it might
+       be needed by the security driver
+       * client-src/amandad.c (s_ackwait, allocstream,): on error, don't
+       attempt to event_release a handle we haven't attached yet.
 
-1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
+1999-04-10  Mike Grupenhoff <kashmir@munge.com>
 
-       * tape-src/tapeio.c (tape_open): Retry after EBUSY and EINTR too.
-       Comment out test that would set filename to /dev/null.
+       * ap_snprintf -> snprintf, ap_vsnprintf -> vsnprintf
 
-1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
 
-       * docs/WISHLIST: Global reformat.  Removed fixed issues.  Added
-       auto-flush mode.
+       * client-src/Makefile.am (noinst_HEADERS): add amandad.h
 
-1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
 
-       * server-src/server_util.c: new file for utility function. 
-       New function construct_datestamp.
-       * server-src/server_util.h: ditto
-       * server-src/makefile.am: link server_util.c with libamserver.
-       * amcleanupdisk.c (construct_datestamp): remove function.
-       * server-src/driver.c: ditto
-       * server-src/dumper.c: ditto
-       * server-src/amflush.c: ditto
-       * server-src/planner.c: ditto
+       * common-src/Makefile.am (libamanda_la_SOURCES): build
+       krb4-security.c
 
-1999-04-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
 
-       * docs/UPGRADE: Update URL for archived message.
+       * configure.in: implement --with-dbmalloc=[dir], where dir is
+       where the dist is unpacked and built.  This could be improved on,
+       because it doesn't handle the case where it's installed.
+
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * client-src/sendbackup.c: security changes:
+       remove krb4 code and NAUGHTY_BITS macros.
+       (parse_options): don't look for krb4 options
+       (main): don't close pipes that were handed to us from amandad.
+       Don't open stream directly - just use the pipes given to us.
+       * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c:
+       Remove krb4 code and NAUGHTY_BITS macros.
+
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * client-src/amandad.h: new file describing the pipes between
+       amandad and children.
+       * client-src/amandad.c: rewrite for security changes.  Can
+       now handle multiple requests simultaneously, and has a state
+       machine to deal with each active request.
+       This handles all network transmissions and authentication.
+       Each child process (sendbackup, selfcheck) gets three general
+       purpose pipes to amandad which it may allocate for anything.
+       amandad relays these pipes to equivalent security_streams.
+       Lots of other stuff.
+       Finally, NEED_KEYPIPE stuff removed.
+
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c: security changes:
+       Remove krb4 includes and NAUGHTY_BITS macros.
+       Remove no-longer-true comment about DATABUF_SIZE ==
+       TAPE_BLOCK_BYTES for krb4
+       Remove file descriptor and event handle from streams array.  Add
+       a security_stream_t.
+       Remove global read buffer.
+       (check_options): remove krb4 code.
+       (service_ports_init): remove, now handled by individual security
+       drivers.
+       (main): remove dgram usage.
+       (do_dump): remove DUMPER_SOCKET_BUFFERING - now handled in the
+       bsd driver.  schedule reads on the streams using
+       security_stream_read.
+       (read_mesgfd,read_datafd,read_indexfd): adapt to
+       security_stream_read callback interface.
+       (stop_dump): just call security_stream_close on all non-null
+       streams.
+       (sendbackup_response): adapt to new protocol layer error return.
+       Remove krb4 code.
+       (startup_dump): stinky hack to parse the security driver string out of
+       the options passed to us from driver.
+       Lookup the security driver with said string.
+       Remove krb4 code.
+       Free request after calling protocol_sendreq().
+
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/planner.c: security changes:
+       (main): Remove dgram usage.  Call protocol_init().  Remove
+       krb4 code.
+       (getsize): remove krb4 code.  Handle protocol layer api changes.
+       Lookup security driver/complain if not found.  Free request
+       after calling sendreq.  All hosts get put on the waitq since
+       sendreq never returns an error.
+       (handle_result): deal with new protocol layer error semantics.
+       Remove krb4 code.
+
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/conffile.c: remove INTERFACE undef hack.  Our
+       namespace isn't polluted by krb4 headers anymore, so it's
+       unneeded.
+
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/amcheck.c: security changes:
+       (main): ignore SIGPIPE - some security drivers might get it.
+       Remove all usages of dgram.
+       Make our real uid root and our effective uid amanda so we can
+       get back to root later (on most os's :()
+       (start_client_checks): remove krb4 bits.
+       The dump user check should check the effective uid.
+       Get the name of the security driver for this host out of
+       host->diskp->security_driver.
+       Free req after calling protocol_sendreq() because it will internalize
+       it.
+       protocol_sendreq doesn't return any errors - they're all returned
+       via handle_response.
+       (handle_result): renamed from handle_response for consistency.
+       The protocol layer doesn't pass us a proto_t anymore, so detect
+       errors based on pkt being NULL.
+       Remove krb4 bits - security violations will be indicated by a 
+       NULL pkt.
+
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/protocol.[ch]: rewrite for security api.  The entry
+       points now have the 'protocol' prefix.  See protocol.h for more
+       info.
+       * common-src/security.c: rewrite for security api.  This now contains
+       the functions for the 'base class' or some approximation of it.
+       See security.h for the entry points, or docs/SECURITY-API.
+
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/amanda.h: rip out krb4 defines, headers, and
+       prototypes.  Also, make assert() abort() after calling error().
+       * common-src/krb4-security.c: stub file that pulls in the real
+       krb4-security out of amanda-krb-2 if KRB4_SECURITY is defined.
+
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/conffile.h: aggregate all of the compress defines
+       (COMP_{NONE,FAST,BEST,...}) into an enum and typedef it to comp_t.
+       Make dumptype_t->compress a comp_t.
+       * server-src/dumper.c: make srvcompress global a comp_t.
+       * server-src/dumper.c (runcompress): add a comp_t third arg
+       that specifies the level of compression for this fd.
+       * server-src/dumper.c (do_dump): always compress index files
+       with COMP_BEST compression, as pointed out by Jean-Louis Martineau.
+       * server-src/dumper.c (read_indexfd): read the indexfd, not the
+       datafd.  Also noted by Jean-Louis Martineau.
+
+1999-04-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/planner.c (main): ignore SIGPIPE.  tcp based
+       security drivers may get this while getting estimates.
+       Set the real uid to root, and the effective uid to the amanda
+       user, so we can get back to root later if needed.
+       * server-src/planner.c (handle_result): rework error logic
+       so we don't need to use p->state, which will eventually go
+       away.
+
+1999-04-08  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c: rewrite to use the event handler instead
+       of a select loop.  Also, compress the index output using
+       runcompress() instead of forking a compress ourselves.
+
+1999-04-08  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (sendbackup_response): don't krb4 authenticate
+       streams if krb4_auth if false.
+
+1999-04-08  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (do_dump): some formatting cleanups.  Nuke
+       'killerr' - we can do without it.
+
+1999-04-08  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (do_dump): store compresspid inside of
+       the databuf
+
+1999-04-08  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (parse_info_line): parse info lines
+       from sendbackup directly into the 'file' global.  Eliminate
+       the backup_name, recover_cmd, and compress_suffix globals.
+       * server-src/dumper.c (finish_tapeheader): nuke usage
+       of above globals.  Nuke unneeded explicit nul terminations (we
+       memset the whole thing in fn_init).
+
+1999-04-08  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (process_dumpline): rewrite to use strtok
+       and const the argument.
+       * server-src/dumper.c (make_tapeheader): rename to finish_tapeheader
+       and prototype it.  Remove the 'type' arg, since it's always
+       F_DUMPFILE.  Remove call to fn_init().
+       * server-src/dumper.c (do_dump): call fh_init on 'file' while
+       initializing globals.  Call finish_tapeheader after getting info
+       endline.
 
 1999-04-07 John R. Jackson  <jrj@purdue.edu>
 
        * server-src/taper.c: allow tapedev to be /dev/null.
        * man/amanda.8.in: allow tapedev to be /dev/null.
 
+1999-04-07  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c: collect got_info_endline, got_sizeline,
+       got_endline, and header_done into one bitmask global, and make it
+       static.  Also, make 'file' static.
+
 1999-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/reporter.c (TextRule): Fix to write the full string.
 
+1999-04-06  Mike Grupenhoff <kashmir@munge.com>
+
+       * configure.in: MIT krb5 has libk5crypto, Cygnus kerbnet 1.2
+       calls it libcrypto.  Check for both.
+
+1999-04-06  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c (check_user): if an .amandahosts
+       file is missing or unreadable, log this fact to the debug file
+       instead of claiming that a user doesn't have permission.
+       * common-src/bsd-security.c (bsd_stream_client): if
+       DUMPER_SOCKET_BUFFERING is defined, set the socket read buffer to
+       be twice the size of our read buffer.
+
 1999-04-06  David Mankins <dm@k12-nis-2.bbn.com>
 
        * common-src/security.c (bsd_security_ok): if an .amandahosts
        file is missing or unreadable, log this fact to the debug file
        instead of claiming that a user doesn't have permission.
 
+1999-04-06  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c: put all of the streams (data,mesg,index)
+       into an array with a name tag.
+       * server-src/dumper.c (stop_dump): new function that cleans up
+       and shuts down all of the streams.
+       * server-src/dumper.c (sendbackup_response): make static, pass
+       response_error through p->datap instead of making it global.
+       Rewrite the parsing to use strtok() and take advantage of the
+       streams array instead of repeading code for all three streams.
+
+1999-04-06  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (main): keep our real uid as 0, and make
+       our effective uid nonprivlidged, so we can get back to root
+       later.  Don't print what port we bound to.  This info won't
+       always be available or even applicable.
+       * server-src/dumper.c (do_dump): create the stats line with one
+       snprintf instead of a huge amount of code.
+
+1999-04-06  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (startup_dump): make static, and const all
+       of the string args
+       * server-src/dumper.c (do_dump): make static
+
+1999-04-06  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (do_dump): no need to have a separate buffer
+       to read the mesgfd - just reuse the one we used for data reads.
+       Gets rid of one more global.  Also, we don't need to leave
+       space for a NUL anymore.
+       * server-src/dumper.c (main): wait for children after closing
+       our fds.  Some children may be blocked waiting for EOF on outfd,
+       effectively causing deadlock between dumper and child.
+
+1999-04-06  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (add_msg_data): now takes a 'len' arg, and
+       doesn't expect the data to be nul terminated.  Also, move
+       the buffer from global scope into the function, and have a NULL
+       arg flush it out if there is leftover data at the end.  Finally,
+       resize the buffer in 256 byte chunks.
+
+1999-04-06  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/stream.c, common-src/stream.h (stream_client): add
+       yet another arg - if nonzero, do a nonblocking connect
+       * server-src/dumper.c: catch up with extra arg to stream_client()
+
+1999-04-06  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c, common-src/security.h: attempt
+       to decouple security streams from security handles.  Lots of
+       other restructuring.
+
 1999-04-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/amcheck.c: -t should read the tapelist to validate
        * changer-src/chg-chio.pl.in (changeTape): do not print status to
        both stdout and stderr; this causes failures on FreeBSD
 
+1999-03-23  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/stream.c, common-src/stream.h (stream_client):
+       const the hostname arg
+
+1999-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * configure.in: AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
+       * dumper-src/gnutar.pl.in: use @GNUTAR_LISTED_INCREMENTAL_DIR@
+
+1999-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * configure.in: default for DUMPER_DIR is $exec_prefix/dumper.
+       * Makefile.am: make dumper-src directory
+       * dumper-src: directory for program that implement the DUMPER-API.
+       * dumper-src/Makefile.am:
+       * dumper-src/generic-dumper.pl.in: first draft of a generic wrapper.
+       * dumper-src/gnutar.pl.in: first draft of a gnutar wrapper.
+
 1999-03-21  Elmar Bartel  <bartel@Informatik.TU-Muenchen.DE>
 
        * conffile.h, conffile.c: new columnspec option
        the regular expressions, so as to make us more adaptable to future
        minor changes and bugfixes the the output format of some dumps
 
-1999-03-15 Thomas Hepper <th@ant.han.de>
+1999-03-16 Thomas Hepper <th@ant.han.de>
        * changer-src/chg-scsi.c: If the open of the TapeDevice fails
        the programm is not terminated.
        * changer-src/scsi-aix.c: The wrong ident string was checked
        Wrong fd passwd to LogSense.
        * docs/TAPE.CHANGERS: added note about linux and aha1542
 
-1999-03-15   Michael Povel  <mcp@ladyada.han.de>
-       * server-src/amlabel.c: Wrong parameter to changer_label
-       * server-src/amtape.c: New function update_one_slot,
-       update_labeldb
-       * server-src/changer.c: Changed slotsp from int to char, some
-       debug prints.
-       * server-src/changer.h: Changed prototype for changer_label
+1999-03-15  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/packet.h: explicitly list the numeric values for
+       the pktype_t enum, so we can use them on the wire
 
 1999-03-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * config/libtool.m4i, config/config.guess, config/config.sub: ditto
        * configure.in: dropped AC_PROG_RANLIB, as suggested by libtoolize
 
+1999-03-15  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c (recv_security_ok): bring over
+       increased verbosity change from common-src/security.c
+
 1999-03-14  Mathias Herberts  <Mathias.Herberts@ago.fr>
 
        * man/amrecover.8.in: document mode and setmode
 
 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/dumper.c (startup_dump): rename dumpname to progname. 
+       * configure.in: new option --with-dumperdir=DIR to specify the 
+       directory for the dumpers (dumper api).
+       * config/acconfig.h: add def of DUMPER_DIR
+
+1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/conffile.c: accept any string for the program.
+       * server-src/amcheck.c: add the keyword DUMPER to the request if 
+       the program is not DUMP or GNUTAR.
+       * server-src/planner.c: ditto
+       * server-src/dumper.c: ditto
+
+1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * server-src/dumper.c (startup_dump): rename dumpname to progname.
        the function will use the parameter progname instead of the
        global variable.
 
        <rgebhart@cybernet-ag.net>, sparc-unknown-openbsd2.3 is supported;
        I assume other openbsd platforms work too.
 
+1999-03-06 Thomas Hepper <th@ant.han.de>
+
+       * client-src/sendbackup-gnutar.c: Replaced #fi with #endif
+       * changer-src/: Get in sync with 2.4.2 Version
+
 1999-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * configure.in: set SAMBA_VERSION
 1999-03-05 Mathias Herberts <Mathias.Herberts@ago.fr>
 
        * recover-src/amrecover.h (set_mode, show_mode) declare new functions.
-       * recover-src/amrecover.h (SAMBA_SMBCLIENT, SAMBA_TAR) define new
+       * recover-src/amrecover.h (SAMBA_SMBCLIENT, SAMBA_TAR) define new 
        constant.
        * recover-src/extract_list.c: declare variable samba_extract_method.
-       * recover-src/extract_list.c (extract_files_child): set dumptype 
+       * recover-src/extract_list.c (extract_files_child): set dumptype
        according to samba_extract_method.
        * recover-src/help.c (help_list): print help for new command mode
        and showmode.
        * recover-src/uscan.l:
        * recover-src/uparse.y:
 
-1999-03-04  Thomas Hepper <th@ant.han.de>
-       * configure.in Check if samba tar accept the q option
-       * changer-src/chg-scsi.c New command -status. Display slot status.
-       add debug prints to parse_args. Missing {} in case COM_SLOT 
-       add put_current_slot if reset was successfull
-       * changer-src/aix.c Init struct pwork with 0's.
-       Fixed error in copy of the product indent form the inquiry
-       * changer-src/scsi-bsd.c see aix.c
-       * changer-src/scsi-hpux_new.c see aix.c
-       * changer-src/scsi-irix.c see aix.c
-       * changer-src/scsi-linux.c see aix.c
-       * changer-src/scsi-solaris.c see aix.c
-       * changer-src/scsi-changer-driver.c New function TerminatString,
-       places 0 from the end of a string until first char/num
-       Fixed wrong parameter for GenericRewind in LogSense
-       In GenericElementStatus terminate VOL Tag String with 0
-       New function CHangerStatus. dumps changer info on stdout.
-       * changer-src/scsi-defs.h VolTag[TAG_SIZE+1] to have place for
-       terminating 0
-       * client-src/sendbackup-gnutar.c Add option q to tar call if
-       samba tar understand q option
-       * config/acconfig.h New define if samba tar accepts q option
-       * docs/TAPE.CHANGERS Add note on how to init the labelfile      
+1999-03-05  Mike Grupenhoff <kashmir@munge.com>
 
+       * common-src/amanda.h: use ssize_t in writev return value
+       * common-src/bsd-security.c (bsd_stream_write,bsd_stream_read):
+       use ssize_t over int
+       * common-src/file.c (areads): use ssize_t to hold read() return val
+       * common-src/fileheader.c (fill_buffer): usse ssize_t to hold read()
+       return val
+       * common-src/security.h: stream_read's callback now takes a ssize_t
+       as the third argument.
+       * common-src/writev.c (writev): return a ssize_t
+
+1999-03-05  Mike Grupenhoff <kashmir@munge.com>
+
+       * configure.in: check for ssize_t, make it int if not present
+       * config/acconfig.h: add def for ssize_t
+
+1999-03-05  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/base64.c (base64encode): don't cast away a const
+       needlessly.
+
+1999-03-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * common-src/bsd-security.c (stream_read_callback): change n to int
+       since ssize_t doesn't exist on all OS.
 
 1999-03-03  Ralf Fassel <ralf@akutech.de>
 
        * common-src/conffile.h: bit field of length 1 should be unsigned int,
        not int.
 
+1999-03-03  Ralf Fassel <ralf@akutech.de>
+
+       * common-src/bsd-security.c (stream_read_callback): n should be ssize_t.
+
+1999-03-03  Ralf Fassel <ralf@akutech.de>
+
+       * changer-src/scsi-changer-driver.c (CloseDevice): wrong assignment.
+
+1999-03-03  Ralf Fassel <ralf@akutech.de>
+
+       * common-src/base64.c (base64encode): remove warning from sgi cc
+       compiler.
+
+1999-03-03  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c: use EV_WAIT events instead of
+       maintaining a queue of listeners.  Refcnt the dgram read event
+       handle.
+
 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/driverio.h: new parameter level to update_info_taper().
        * server-src/driverio.c (startup_dump_processes): new parameter
        inparallel is used instead of global variable.
        * server-src/driver.c (main): call init_driverio.
-       * server-src/driver.c (main): call startup_dump_processes with
+       * server-src/driver.c (main): call startup_dump_processes with 
        inparallel parameter.
        * server-src/amflush.c (main): call init_driverio.
 
 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/amrmtape.sh.in: work with "last_level" and 
+       * server-src/amrmtape.sh.in: work with "last_level" and
        "consecutive_runs" in the ouput of "amadmin export".
 
+1999-03-01  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/security.h: implement security_connect callback and
+       security_status_t changes
+
+1999-03-01  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c (bsd_connect): properly munge the uids
+       to get a reserved port
+       * common-src/bsd-security.c: adapt to the security_connect
+       callback changes
+       * common-src/bsd-security.c (bsd_sendpkt): dgram_cat is varargs now,
+       so skip the vstralloc
+
+1999-03-01  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c: implement EV_WAIT events.  Implement macros
+       for adding/removing/traversing the event queue
+       * common-src/event.h: define EV_WAIT, and prototype event_wakeup()
+
 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * docs/WISHLIST: protocol between the driver and dumpers.
        * server-src/amtoc.pl.in: output the datestamp of each dump, because
        amflush can flush the same disk multiple date.
 
-1999-02-27  Thomas Hepper <th@ant.han.de>
-       * server-src/amlabel.c fixed call to changer_label
-
 1999-02-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/holding.h: declare struct holding_t.  Remove
-       declaration of insert_dirname, scan_holdingdisk.  Declare
+       * server-src/holding.h: declare struct holding_t.  Remove 
+       declaration of insert_dirname, scan_holdingdisk.  Declare 
        new function free_holding_list.  pick_datestamp and 
        pick_all_datestamp now return (holding_t *).
        * server-src/holding.c (insert_dirname): new parameter holding_list
        pick_all_datestamp.
        * server-src/amflush.c: use the list return by pick_datestamp.
        * server-src/amcleanupdisk.c (check_disks): use the list return by
-        pick_all_datestamp.
-
-1999-02-26 Thomas Hepper <th@ant.han.de>
-
-       * changer-src/chg-scsi.c Added global structs for the openend
-       devices. Added new options label and search for the barcode
-       support. New function MapBarCode, map barcode from reader
-       to amanda tape labels.
-       *changer-src/scsi-aix.c Error in copying SCSI ident fixed. 
-       A space mut not be the end of the string...
-       * changer-src/scsi-bsd.c same as scsi-aix.c 
-       * changer-src/scsi-irix.c same as scsi-aix.c 
-       * changer-src/scsi-solaris.c same as scsi-aix.c 
-       * changer-src/scsi-hpux_new.c same as scsi-aix.c 
-       * changer-src/scsi-linux.c same as scsi-aix.c , fixed
-       error in check if we open an sg device.
-       * changer-src/scsi-changer-driver.c Removed LookupFunction
-       and LookupDevice functions .
-       * docs/TAPE.CHANGERS update info about chg-scsi
-
-1999-02-26  Michael Povel  <mcp@ladyada.han.de>
-
-       * server-src/amcheck.c Added debug output for barcode
-       support
-       * server-src/amlabel.c Added debug output, inform chg-scsi
-       on new label
-       * server-src/amtape.c Added debug output, inform chg-scsi
-       on new label
-       * server-src/changer.c Added debug output, filled function
-       changer-label with live, label search should work now
+       pick_all_datestamp.
 
 1999-02-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 
 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/driverio.c (startup_tape_process): new taper_program 
+       * server-src/driverio.c (startup_tape_process): new taper_program
        argument.
        * server-src/driverio.h: remove declaration of taper_program.
        * server-src/driver.c (main): declare taper_program.
        new dumper_program argument.
        * server-src/driverio.h: remove declaration of dumper_program.
        * server-src/driver.c: declare dumper_program.
-       * server-src/driver.c: call startup_dump_process and 
+       * server-src/driver.c: call startup_dump_process and
        startup_dump_processes with the new dumper_program argument.
 
-1999-02-15  Thomas Hepper <th@ant.han.de>
-
-       * changer-src/scsi-changer-driver.c forget to increment retry
-       in SCSI_* functions
-       * changer-src/chg-scsi.c (clean_tape) added sleep(60) after
-       loading the cleaning tape and before unloading
-
 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/list_dir.h: remove global variable dir_list, declare
 
 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-        * server-src/holding.h: remove declaration of get_letter_from_user()
-        and select_dir().
-        * server-src/holding.c: remove function get_letter_from_user() and
-        select_dir().
-        * server-src/holding.c (pick_datestamp): return empty array instead
-        of calling exit if no directory are found.
-        * server-src/amflush.c (get_letter_from_user): new function copied
-        from holding.c.
-        * server-src/amflush.c (confirm): write a message and exit if no
-        directory were found.
-
-1999-02-14  Thomas Hepper <th@ant.han.de>
-
-       * changer-src/scsi-changer-driver.c New function SCSI_Move
-       removed move in GenericMove, call now SCSI_Move
-       Now check in GenericMove if the move is legal, based on the info
-       from the device capabilities page
-       * changer-src/scsi-linux.c (SCSI_OpenDevice) check if the device
-       is an sg device, or an link to an sg device. If no set SCSI flag to 0
-       Set timeout for SCSI commands, the default will not work if there is an
-       IES on slow changers, if not set high maschine hangs with lot of SCSI  bus
-       resets.....
-
-1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
-
-       * server-src/amindexd.c: remove duplication inclusion of version.h.
-       Include tapefile.h to get read_tapelist() prototype.
-       * server-src/amindexd.c (build_disk_table): remove a plethora of
-       unused local vars.
-       * server-src/planner.c: FORCE_FULL command was not cleared.
+       * server-src/holding.h: remove declaration of get_letter_from_user()
+       and select_dir().
+       * server-src/holding.c: remove function get_letter_from_user() and
+       select_dir().
+       * server-src/holding.c (pick_datestamp): return empty array instead
+       of calling exit if no directory are found.
+       * server-src/amflush.c (get_letter_from_user): new function copied
+       from holding.c.
+       * server-src/amflush.c (confirm): write a message and exit if no
+       directory were found.
 
 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/holding.h (get_dumpfile): new function
-       * server-src/holding.c (get_dumpfile): new function to fill a
+       * server-src/holding.c (get_dumpfile): new function to fill a 
        dumpfile_t struct from a holding file.
 
 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/diskfile.h (host_t): new start_t field.
        * server-src/diskfile.c (read_diskline): set start_t to 0.
-       * server-src/driver.c (start_some_dumps): Don't start a dump if 
+       * server-src/driver.c (start_some_dumps): Don't start a dump if
        the host->start_t > now.
-       * server-src/driver.c (start_some_dumps): set host->start_t to 15 sec 
+       * server-src/driver.c (start_some_dumps): set host->start_t to 15 sec
        in the future when starting a FILE_DUMP.
-       * server-src/driver.c (dump_to_tape): set host->start_t to 15 sec in 
+       * server-src/driver.c (dump_to_tape): set host->start_t to 15 sec in
        the future when starting a PORT_DUMP.
 
-1999-02-12  Thomas Hepper <th@ant.han.de>
-       * changer-src/Makefile.am added tape-src to the include list
-       * changer-src/chg-scsi.c removed the changes for not using the
-       statfile.
-       * changer-src/scsi-aix.c Added debug output in SCSI_ExecuteCommand
-       added size parameter to the SCSI_Inquiry call
-       * changer-src/scsi-bsd.c added size parameter to the SCSI_Inquiry call
-       * changer-src/scsi-hpux_new.c same as above 
-       * changer-src/scsi-irix.c same as above
-       * changer-src/scsi-solaris.c same as above
-       * changer-src/scsi-linux swich from ioctl interface to sg interface.
-       Not full tested yet !!
-       * changer-src/scsi-changer-driver.c Added new structs for new devices.
-       complete rewrite of Sense Handling. Removed now unused functions.
-       Added first functions for Barcode reader support.
-       Now use MODE_SENSE to get the number of Drives/Slots/Robots.
-       Split up functions in SCSI functions (prefix SCSI, Generic functions,
-       prefix Generic. Not complete yet). Rewrite of GenericElementStatus
-       * changer-src/scsi-defs.h added new structs, reordered some defines.
-       * changer-src/chg-scsi-chio.c New file(copy of chg-scsi.c). 
-       Too difficult to maintain chg-scsi and chg-scsi-chio from one file
-
 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * server-src/amlabel.c (main): try to read just-written tape label
        --exclude-from, not --exclude-list
        Reported by Tom Schutter <tom@platte.com>
 
-1999-02-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
-
        * client-src/sendbackup-gnutar.c (re_table): ignore `session request 
        to' message printed by Samba 2.0.0
 
 1999-01-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * man/amanda.8.in (comprate): it is not used when there is history
-       information; useful for large disks that compress little
+       information; useful for large disks that compress little
        Reported by job bogan <job@piquin.uchicago.edu>
 
-1999-01-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
-
        * Makefile.am: select which SUBDIRS to descend to here
        * client-src/Makefile.am: removed if WANT_CLIENT
        * tape-src/Makefile.am: removed if WANT_TAPE
 
 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
-       * NEWS: chg-scsi ports and Samba 2.0.0 support
+       * NEWS: chg-scsi ports, Samba 2.0.0 support and SECURITY API
 
        * configure.in (USE_AMANDAHOSTS): enable by default
        * example/config.site: ditto
        to the output of whoami otherwise
        Reported by Tom Schutter <tom@platte.com>
 
-1999-01-26     Thomas Hepper <th@ant.han.de>   
-       * Makefile.am Added sst driver files to EXTAR_DIST
+1999-01-26  Thomas Hepper <th@ant.han.de>
+       * Makefile.am Added sst driver files to EXTRA_DIST
 
 1999-01-26     Thomas Hepper <th@ant.han.de>   
+       * changer-src/Makefile.am added to LDADD 
+       ../tape-src/libamtape.$(LIB_EXTENSION)
        * changer-src/chg-scsi.c If statfile is not set try to get the info
        about the current loaded tape direct from the changer.
        Fixed debug output for the eject value if > 1
 
 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
-       * configure.in: require autoconf 2.12.2
+       * common-src/bsd-security.c (check_user): there was no uid variable
+       here; replace with getuid()
 
-       * changer-src/Makefile.am (LDADD): add libamtape, because
-       tapefd_rdlabel() is used in scsi-changer-driver.c
+1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * server-src/planner.c (output_scheduleline): removed `or historical
        data' from `no estimate' message; historical data doesn't matter any 
        instead of /dev/null if we run in background.
        * server-src/amcleanup.sh.in: rename $logdir/amflush.
 
+1999-01-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (make_tapeheader): explicitly compare
+       srvcompress against srvcomp_none instead of assuming that
+       srvcomp_none's value is 0.
+
+1999-01-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c: move max() macro to top of file.  Add min()
+       * server-src/dumper.c (databuf_write): use min() to determine the
+       copy size
+       * server-src/dumper.c (databuf_flush): more clearly calculate the
+       buffer offset in the write loop
+
+1999-01-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (databuf_write): Egads!  Also increment the
+       source pointer doing a partial buf copy
+
+1999-01-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c (check_user): use getpwnam(CLIENT_LOGIN)
+       instead of getpwuid(getuid()), in case our caller has not done
+       the setuid().
+
+1999-01-12  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (add_msg_data): properly check for half-sent
+       msg lines.
+
 1999-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/amstatus.pl.in: fix a divide by zero error.
 
-1999-01-10  Thomas Hepper <th@ant.han.de>
-        * rewite of the scsi-changer-driver.c and the os depnedent
-          parts. Removed one layer of functions (Move, Eject, Clean ...)
+1999-01-11  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (add_msg_data): clarify and comment.  Remove
+       'len' arg.  Const 'str' arg.
+       * server-src/dumper.c (do_dump): compresspid and indexpid should
+       be pid_t's.  Also, remove len from add_msg_data call.
+
+1999-01-11  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/fileheader.c (parse_file_header): const the buffer
+       argument
+       * server-src/fileheader.h: update parse_file_header proto for const
+       change
 
 1999-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        reusable
        * man/amlabel.8.in: document that tapes are added to tapelist
 
+1998-12-19  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (runcompress): new function.  Given an output
+       file descriptor, inserts a gzip/compress in front of that descriptor.
+       * server-src/dumper.c (do_dump): if srvcompress is true, insert
+       the gzip (using runcompress) in front of the output fd instead
+       of the input fd.  Only do this after the tapeheader has been written.
+
+1998-12-19  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (startup_chunker): new function.  When doing
+       chunking, fork a piped subprocess that reads in a fileheader and
+       a data stream, and writes out the headered, chunked files.  This
+       allows us to treat unchunked, chunked, and port-dump dumps exactly
+       the same.
+       * server-src/dumper.c (main): file-dump: if chunksize > 0,
+       call startup_chunker for our outfd.  Otherwise, open the
+       holding file directly.
+
+1998-12-19  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (struct databuf): add a chunk_size member,
+       the size of each chunk.  Remove chunksize global.
+       * server-src/dumper.c (main): add a chunksize local var
+       * server-src/dumper.c (databuf_init): init the chunk_size member
+       with the same value as split_size
+       * server-src/dumper.c (databuf_flush): increment db->split_size
+       by the amount in db->chunk_size instead of the global chunksize
+
 1998-12-19  John R. Jackson  <jrj@purdue.edu>
 
        * server-src/amstatus.pl.in: instead of just displaying why no
        taper and each dumper is busy, how much time N dumpers are busy
        and why no dumpers were busy.
 
+1998-12-18  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (struct databuf): add 'filename', 'filename_seq',
+       and 'split_size' members to replace the equivalent globals.  Nuke
+       those globals.
+       * server-src/dumper.c (databuf_init): add 'filename' and 'split_size'
+       args to init those members.  Init filename_seq to 0.
+       * server-src/dumper.c (main): declare and init the databuf here
+       * server-src/dumper.c (databuf_flush): refer to split_size, filename,
+       and filename_seq in the databuf instead of the globals.
+       * server-src/dumper.c (do_dump): now takes a databuf instead of an
+       output file descriptor.
+
 1998-12-18  John R. Jackson  <jrj@purdue.edu>
 
        * server-src/amstatus.pl.in: fix two perl warnings.
        after the dumpers since it writes more information to the amdump
        file (helps prevent mixed messages).
 
+1998-12-17  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (databuf_flush): return 0 on success
+
+1998-12-17  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (databuf_flush): new function.  Writes
+       the contents of the databuf out to its backing file, doing splitting
+       if necessary
+       * server-src/dumper.c (databuf_write): call databuf_flush when the
+       databuf fills up.  Fully complete all writes (no short writes)
+       * server-src/dumper.c (do_dump): databuf_write now guarantees complete
+       writes, so remove retry loop.  Call databuf_flush() when eof is hit.
+       Do not close datafd on eof, because our caller (main) passed it to
+       us and therefore owns it (and main does close it again).
+
+1998-12-17  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (databuf_init): new function, initializes
+       a struct databuf.
+       * server-src/dumper.c (update_dataptr): rename to databuf_write,
+       and have it take a buffer and a size, and return how many bytes
+       of the buffer were written
+       * server-src/dumper.c (do_dump): use databuf_init to initialize db.
+       Use databuf_write to add incomign data to the databuf.
+       Make size1 and size2 local to the blocks they are used in.
+
 1998-12-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * common-src/Makefile.am (noinst_DATA): removed; bogus
        * docs/INSTALL: fixed URL to gnuplot; recommend autoconf and
        automake from CVS
 
+1998-12-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/genversion.c (main): rip out krb4 defines.  If we
+       need this info, each driver will have to do it individually.
+
+1998-12-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/conffile.c: remove KRB4_AUTH, BSD_AUTH tokens, auth
+       element from dumptype_t, and get_auth() lookup func.  Add
+       security_driver to dumptype_t and parse value of AUTH keyword
+       as a string.
+       * server-src/conffile.h: nuke auth_t.  Remove auth_t auth, int s_auth
+       from typetype_t; add char *security_driver, int s_security_driver.
+       * server-src/diskfile.c: nuke auth_t auth from disk_t, add
+       char *security_driver.  Inherit security_driver from the dumptype_t
+       for this disk.
+       * server-src/diskfile.h: ditto
+       * server-src/amadmin.c (disklist_one): output the security-driver
+       string in place of the auth type
+       * server-src/amcheck.c (start_client_checks, handle_response):
+       enum type hostp->disks->auth is gone.  check the string in the
+       security_driver for this disk for krb4 auth.
+       * server-src/planner.c (getsize, handle_result): check the string
+       in hostp->disks->security_driver for the auth type.
+
+1998-12-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/amindexd.c: no need to include protocol.h
+
+1998-12-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/amindexd.c: remove duplication inclusion of version.h.
+       Include tapefile.h to get read_tapelist() prototype
+       * server-src/amindexd.c (build_disk_table): remove a plethora of
+       unused local vars
+       * server-src/amindexd.c (main): rename security_ok() call to
+       check_security(), and define check_security() locally.  security_ok
+       will disappear when the new security api goes in
+
+1998-12-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/changer.c (changer_label): make it return void
+       to keep gcc warning about control reaching the end of a nonvoid
+       function.
+       * server-src/changer.c: update changer_label's proto for previous
+
+1998-12-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/amanda.h: define SET, CLR, ISSET macros for dealing
+       with bitmasks
+       * server-src/amadmin.c: use the bitmask macros for setting
+       and clearing the bits in the infofile command word
+       * server-src/planner.c: ditto.  This fixes a bug in the code that
+       tried to clear FORCE_FULL with an xor expression that was
+       never assigned (x ^ FORCE_FULL)
+
+1998-12-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c (bsd_sendpkt): cast uid's to long and
+       use %ld to print them.
+
+1998-12-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/dgram.h: mark dgram_cat with gcc's printf attribute
+       * common-src/packet.h: ditto for pkt_cat
+       * common-src/security.h: likewise for security_seterror
+
+1998-12-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/error.c (error): const the format arg
+       * common-src/amanda.h: mark error with gcc's noreturn attribute, and
+       const its format arg
+
+1998-12-14  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/debug.c (debug_printf): const the format arg
+       * common-src/amanda.h: const debug_printf's format arg
+
 1998-12-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * configure.in (BSD SCSI): test ... -a ... is not portable, and less 
        * common-src/amflock.c (main): remove call set_pname() for
        CONFIGURE_TEST since error.o is not linked in.
 
+1998-12-10  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (struct databuf): add a fd member - the file
+       descriptor that we are buffering
+       * server-src/dumper.c (update_dataptr): remove
+       outf arguments, use the fd in the passed databuf.  Return 0 on
+       success, and -1 on error.
+       * server-src/dumper.c (update_dataptr): rework and comment the
+       chunk code a bit.  Get rid of the cont_filename global.
+       * server-src/dumper.c (do_dump): init the fd member of the databuf
+       * server-src/dumper.c (write_dataptr): fold back into update_dataptr
+
 1998-12-10  John R. Jackson  <jrj@purdue.edu>
 
        * common-src/amflock.c (main): report CONFIGURE_TEST error messages to
        * common-src/amflock.c (main): call set_pname() for CONFIGURE_TEST.
        * configure.in: do not set up pname global for lnlock CONFIGURE_TEST.
 
+1998-12-10  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (update_dataptr): remove pointless backups
+       of the databuf and associated vars when creating next chunk.
+       Remove duplicate setting of file.cont_filename.
+
+1998-12-10  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (main): reuse outfd to clear the open files
+       passed to us.  Nuke the fd var.
+       * server-src/dumper.c (update_dataptr): nuke 'split' argument - it
+       was always set to 1
+
+1998-12-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (write_tapeheader): kill dead code
+       * server-src/dumper.c (main): remove useless amfree of datestamp.
+       Add missing break to 'default' case in command loop.
+       * server-src/dumper.c: kill databuf, spaceleft, and dataptr globals.
+       Create a 'struct databuf' that holds all three.
+       * server-src/dumper.c (write_dataptr, update_dataptr): make
+       these take a 'struct databuf *' as an argument, and have them
+       operate on its contents instead of the aforementioned globals
+       * server-src/dumper.c (do_dump): declare a 'struct databuf' here.
+       Make it static, because it's large.  Use it instead of the
+       globals.
+
+1998-12-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (main): rework the command loop a bit.
+       Consolidate all duplicated error cleanup into one place at the
+       end of the loop after each command has been processed.  Exit
+       with exit(), not return.
+
+1998-12-09  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/dumper.c (main, getcmd, write_dataptr): kill argc and
+       argv globals, pass them as arguments to getcmd() via struct cmdargs.
+       * server-src/dumper.c (getcmd): make the command lookup table driven.
+       * server-src/dumper.c (write_dataptr): restructure the command
+       logic a bit to hopefully clarify things.
+
 1998-12-09  Henning P. Schmiedehausen  <henning@tanstaafl.de>
 
        * client-src/sendbackup.c (parse_options): Added check whether the
-       pathname of the exclude file is relative and if yes, use the
-       mountpoint of the filesystem as anchor.  So you can put your exclude
-       file in the root of the filesystem to backup.
+       pathname of the exclude file is relative and if yes, use the
+       mountpoint of the filesystem as anchor.  So you can put your exclude
+       file in the root of the filesystem to backup.
        * client-src/sendsize.c (getsize_gnutar): added the same check as
-       above so sendsize uses the same exclude file.
+       above so sendsize uses the same exclude file.
 
 1998-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/dumper.c (update_dataptr): open .tmp for new chunk.
        * server-src/amstatus.pl.in (dump_size): return size of .tmp file.
 
+1998-12-07  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/amtape.c (main, usage): make command lookup and usage
+       table-driven
+
+1998-12-07  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/amadmin.c: make command lookup and usage table-driven
+       * server-src/amadmin.c (balance, tape, bumpsize): add
+       argc/argv arguments to make them like the rest
+       * server-src/amadmin.c (show_version): new function, implements
+       the version command, so it is done like the other commands
+       * server-src/amadmin.c (main): iterate through cmdtab[] when
+       looking up the command, instead of a huge if/then/else
+       * server-src/amadmin.c (usage): iterate through cmdtab[] when
+       displaying usage strings.  Display the "disklist" usage string.
+
 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * NEWS: document new force-bump, force-no-bump and unforce-bump 
+       * config/acconfig.h: add "#undef HAVE_WRITEV_DECL".
+
+1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
+
+       * NEWS: document new force-bump, force-no-bump and unforce-bump
        command in amadmin.
 
 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        * server-src/holding.c (size_holding_files): new function to
        return the sum of the size of all chunk of an image.
        * server-src/holding.h (size_holding_files): declare.
-       * server-src/driver.c (adjust_diskspace): use size_holding_files 
+       * server-src/driver.c (adjust_diskspace): use size_holding_files
        instead of doing a stat of only the first chunk.
 
 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
        * docs/FAQ (large filesystems): fixed reference to results missing
        (results missing): updated to 64Kb UDP packets
 
+1998-12-04  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/amanda.h: implement WIFSIGNALED() if not already
+       defined
+       * server-src/amcheck.c: ream out compat definitions of WEXITSTATUS(),
+       WTERMSIG(), and WIFSIGNALED().  These are already handled in amanda.h
+       * server-src/changer.c: ditto
+
+1998-12-03  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c (recv_security_ok): only check for
+       a reserved port for REQ packets
+
+1998-12-03  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c (recvpkt_callback): only compare
+       the sin_addr and sin_port fields in the sockaddr when determining
+       what handle an incoming packet belongs to.
+       * common-src/bsd-security.c (pkthdr2str): use %s for the handle,
+       since it's a string.
+
+1998-12-03  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c (bsd_sendpkt): newline-terminate
+       the 'SECURITY USER' line in the packet
+       * common-src/bsd-security.c (check_user): fix many bugs
+       in the USE_AMANDAHOSTS case
+
+1998-12-03  Mike Grupenhoff <kashmir@munge.com>
+
+       * configure.in: AC_REPLACE_FUNCS(writev)
+
 1998-12-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/infofile.h: rename PLANNER_FORCE to FORCE_FULL
        * server-src/planner.c: rename PLANNER_FORCE to FORCE_FULL
        * server-src/amadmin.c: rename PLANNER_FORCE to FORCE_FULL
 
+1998-12-02  Mike Grupenhoff <kashmir@munge.com>
+
+       * config/acconfig.h: add KRB5_SECURITY.  Update comment above
+       krb4 define to make clear that they are for krb4
+
+1998-12-02  Mike Grupenhoff <kashmir@munge.com>
+
+       * configure.in: if we're doing krb4 and -lcom_err is there, pull
+       it in
+       * configure.in: implement --with-krb5-security.
+
+1998-12-02  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/dgram.c (dgram_cat): now can take printf-style
+       arguments
+       * common-src/dgram.g (dgram_cat): update prototype
+
+1998-12-02  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c: wrap entire file in #ifdef BSD_SECURITY
+       * common-src/bsd-security.c (bsd_connect): catch up with
+       security interface changes - upper layer now allocates our handle
+       Also, pass up useful error message about why connects failed
+       via the handle we are given
+       * common-src/bsd-security.c (gethandle): rename to inithandle,
+       since we are now passed the handle's memory.  No need to allocate
+       memory or initialize the error msg pointer
+       * common-src/bsd-security.c (bsd_close): now an empty function - no
+       memory to free
+       * common-src/bsd-security.c (recvpkt_callback): allocate the handle
+       before calling inithandle() (nee gethandle()).
+       * common-src/bsd-security.c (stream_read_callback): put
+       strerror(errno) in the handle's error buffer before passing a
+       read error up to the caller
+
+1998-12-02  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/krb5-security.c: new stub file that pulls in the
+       krb5 bits from the amanda-krb-2 tree if KRB5_SECURITY is
+       defined
+
+1998-12-02  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/base64.{c,h}: new files, implement base64 encoding
+       and decoding.  Implementation based on routines in bind, and so
+       copyright is held by ISC and IBM (but is BSD-like).
+
+1998-12-02  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/security.h: add 'handlesize' to the driver struct, also
+       make the connect function pointer return int and take a handle
+       argument
+       * common-src/security.h (security_connect): addd a 'const char **'
+       errmsg argument for returning connect errors
+
 1998-12-01  John R. Jackson  <jrj@purdue.edu>
 
        * server-src/amcheck.c: make -t mean do the tape checks, add new -l
        * man/amcheck.8.in: document above changes and clean up some minor
        formatting issues.
 
+1998-12-01  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c (release): nuke bogus comment about signal
+       handler release
+       * common-src/event.c (event_loop): move the reentrancy assert
+       after the empty queue check.  Otherwise, calling event_loop()
+       with an empty event queue would cause the entry count to get
+       out of sync.  Also, on exit, assert that the entry count has
+       gone to 0
+       * common-src/event.c (event_loop): fix bogus comment about event
+       removal
+
+1998-12-01  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/arglist.h: implement arglist_function3()
+
 1998-11-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/driver.c (start_some_dumps): In degraded mode,
        as command.
        * server-src/amadmin.c (force_one,unforce_one,info_one): work
        with info.command with bit operator.
-       * server-src/planner.c (setup_estimate): work with info.command 
+       * server-src/planner.c (setup_estimate): work with info.command
        with bit operator, support for FORCE_BUMP and FORCE_NO_BUMP command.
 
 1998-11-27  Thomas Hepper    <th@icem.de>
        * server-src/amadmin.c(import_one): import the last_level and
        consecutive_runs field.
 
+1998-11-24  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/amanda.h: uhh, every other decl has a leading
+       'extern' so writev() should as well
+
+1998-11-24  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/amanda.h: if no writev() decl exists, declare one
+
+1998-11-24  Mike Grupenhoff <kashmir@munge.com>
+
+       * configure.in: check for <sys/uio.h>, check for a writev() decl
+       in <unistd.h> and/or <sys/uio.h>
+
+1998-11-24  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/writev.c (writev): new file, implements writev for
+       systems that lack it
+
+1998-11-24  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/amanda.h: include <sys/uio.h> if it exists.  Otherwise,
+       define struct iovec
+
 1998-11-24  John R. Jackson  <jrj@purdue.edu>
 
        * server-src/amlabel.c: insist on being run as the dump user (ala
        consistency cleanup in the messages.
        * man/amcheck.8.in: document the changes.
 
+1998-11-24  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/dgram.c (dgram_bind): always try to get a reserved
+       port, even if KRB4_SECURITY is defined
+
+1998-11-23  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c (struct bsd_handle): change 'int handle'
+       to 'char proto_handle[32]' because the remote client might generate
+       handles that aren't completely numerical
+       * common-src/bsd-security.c (gethandle, str2pkthdr): the 'handle' arg
+       is now a string
+       * common-src/bsd-security.c (bsd_connect): convert our generated
+       handle into a string to pass to gethandle()
+       * common-src/bsd-security.c (str2pkthdr): rewrite to parse with
+       strtok().  Parse the handle as a string instead of trying to
+       convert it into a number
+
 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * server-src/amcleanup.sh.in (logdir/amdump): arrange that it is
        renamed if it exists, even if no log file could be found.
 
-1998-11-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
+1998-11-20  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c: define STREAM_BUFSIZE to be
+       the size of the tcp socket buffers
+       * common-src/bsd-security.c (bsd_stream_server, bsd_stream_client):
+       adapt to the stream_server() interface changes.  Set socket
+       buffers to STREAM_BUFSIZE.
+
+1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * config/ltmain.sh, config/ltconfig, config/libtool/libtool.m4:
        updated to current CVS libtool
        * man/amanda.8.in: add some chunksize comments and clean up a few
        minor odds and ends.
 
+1998-11-19  Mike Grupenhoff <kashmir@munge.com>
+
+       Give amrecover its own security bits.  It has different needs
+       and a different protocol than the rest of amanda, so it shouldn't
+       try to reuse the security bits
+       * recover-src/amrecover.c (get_security): new function, implements
+       bsd security
+       * recover-src/amrecover.c (main): call get_security()
+       * recover-src/amrecover.h: get_security() prototype
+       * recover-src/extract_list.c (extract_files_setup): call
+       get_security()
+       * restore-src/amidxtaped.c (check_security): new function, implements
+       * restore-src/amidxtaped.c (main): call check_security()
+
+1998-11-19  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/stream.c (stream_server, stream_client): cast 4th
+       arg of setsockopt() to (void *) to quash a compiler warning
+       under solaris.
+
 1998-11-19  John R. Jackson  <jrj@purdue.edu>
 
        * recover-src/amrecover.c (main): use set_host to find the initial
 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * example/amanda.conf.in: document that infofile is supposed to be a
-       directory with the default database format
+       directory with the default database format
        * docs/FAQ: New questions: `infofile update failed' and `using the
-       same host in different configurations'
+       same host in different configurations'
 
 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * changer-src/scis-linux.c: Add additional param to Tape_Ready
        * changer-src/scsi-solaris.c: same as scsi-hpux_new.c
 
+1998-11-11  Mike Grupenhoff <kashmir@munge.com>
+
+       * server-src/security.h: add driver entry points and macros
+       for security_stream_accept() and security_stream_auth()
+       * server-src/bsd-security.c: implement security_stream_accept()
+       and security_stream_auth() for bsd security
+
 1998-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
        * server-src/driver.c (main): redo my patch about total_disksize that
 
 1998-11-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
-       * server-src/infofile.h (struct info_s): add last_level and
+       * server-src/infofile.h (struct info_s): add last_level and 
        consecutive_runs.
        * server-src/infofile.c: support new last_level and consecutive_runs
        * server-src/planner.c (last_level): return ip->last_level.
        * server-src/planner.c (runs_at): return ip->consecutive_runs.
        * server-src/driverio.c (update_info_dumper): update inf.last_level
        and inf.consecutive_runs.
+       
+1998-11-09  Mike Grupenhoff <kashmir@munge.com>
 
-1998-11-09  Mike Grupenhoff <kashmir@munge.com> 
        * client-src/sendbackup-dump.c (start_backup): don't close indexf
        if it was never open
        * client-src/sendbackup-gnutar.c (start_backup): ditto
 
 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * Makefile.am (EXTRA_DIST): added EVENT-API, SECURITY-API and
+       STRATEGY-API
+       * docs/STRATEGY-API: new file
+
        * configure.in (GNUTAR): accept tar from Free paxutils, the new name
        of GNU tar
 
 
        * changer-src/scsi-solaris.c: added missing #endif
 
-       * configure.in: merge with camlib.h patch from Oct 31.
+       * configure.in: merge with camlib.h patch from Oct 31
        remove all uses of test ... -a ...; this is not portable.
        (AC_CHECK_HEADERS) added header files for Linux and Solaris
 
        * changer-src/Makefile.am: New conditional for building chg-scsi-chio
        and chg-scsi. chg-scsi-chio is the old chg-scsi
 
-1998-11-05  John R. Jackson  <jrj@purdue.edu>
+1998-11-06  Mike Grupenhoff <kashmir@munge.com>
 
-       * server-src/amverify.sh.in: tolerate extra amtape output.
+       * common-src/bsd-security.c (bsd_stream_write): callback's third
+       arg should now be an int.
+       * common-src/bsd-security.c: quash some gcc -Wall warnings
+
+1998-11-06  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/security.h: the callback to stream_read should
+       take signed type as its 'length' argument so errors can be
+       expressed as a negative number.
+
+1998-11-06  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c (stream_read_callback): do reads into
+       a buffer of size TAPE_BLOCK_BYTES, instead of 256, and place the
+       buffer in the stream handle instead of on the stack, since it's
+       huge
+
+1998-11-05  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c (event_loop): Consider error conditions on
+       file descriptors as read or write events.  The caller will be
+       able to differentiate when they call read or write and it
+       fails.
+
+1998-11-05  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c (event_loop): print out WHY select failed
+
+1998-11-05  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c: adjust for the recvpkt timeout
+       interface changes
+       * common-src/bsd-security.c (handleq_remove): add a missing ; after
+       an assertion
+       * common-src/bsd-security.c (gethandle): initialize the error buffer
+       in the security handle, since errors may be set before the handle
+       is passed up to the general security layer
+       * common-src/bsd-security.c (bsd_recvpkt_cancel): allow it to be
+       called several times, or when no recvpkt was scheduled
+
+1998-11-05  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/security.h: define security_recvpkt_status_t
+       * common-src/security.h: security_driver_t->recvpkt() now
+       takes a timeout argument, and its callback takes a
+       security_recvpkt_status_t
+       * common-src/security.h: adjust the security_recvpkt() macro
+       for the above changes
+
+1998-11-05  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c (event_loop): assert that we are not firing
+       a dead event
 
 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
 
 
        * server-src/amstatus.pl.in: remove warning.
 
+1998-11-04  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c (event_register): delete some improper debug
+       code that shouldn't have made it in
+
+1998-11-04  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/bsd-security.c: new file: security driver that
+       implements "BSD" security.
+
+1998-11-04  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/security.h: new file: the security api header
+
+1998-11-04  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/event.c: new file: the event handler.  Handles file
+       descriptor io, signals, and timed events.
+       * common-src/event.h: new file: interface for the event handler.
+
+1998-11-04  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/packet.c: new file: description of pkt_t's and routines
+       for formatting
+       * common-src/packet.h: new file: header for common-src/packet.c
+
+1998-11-04  Mike Grupenhoff <kashmir@munge.com>
+
+       * common-src/queue.h: new file: the 4.4BSD queue macros, with
+       additions from NetBSD
+
+1998-11-04  John R. Jackson  <jrj@purdue.edu>
+
+       * server-src/amverify.sh.in: tolerate extra amtape output.
+
 1998-11-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * configure.in: bumped to 2.5.0
+
        * server-src/taper.c (read_file): if a new tape cannot be found,
        report a no-tape error to the log file and exit, just like it does
        for the first tape