X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ChangeLog;h=a37ffb6261fa3ed2268e00063d908612dedffec4;hb=e6f5b6ec8d303807a43534a2a33cc9640b8d2972;hp=3e4b05f43e868b94ceea11f496fb255d9f1161b3;hpb=0de2ad0a86685398621fb8ffa6990c029681bb3a;p=debian%2Famanda diff --git a/ChangeLog b/ChangeLog index 3e4b05f..a37ffb6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,70 +1,10563 @@ -2005-04-20 Jean-Louis Martineau +2009-01-22 Jean-Louis Martineau + * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.1") + * packaging/deb/rules, packaging/deb/buildpkg, packaging/deb/changelog, + packaging/rpm/buildpkg, + packaging/rpm/amanda.spec: Change version to 2.6.1. + +2009-01-22 Jean-Louis Martineau + * man/xml-source/amstar.8.xml: Typo. + +2009-01-21 Jean-Louis Martineau + * server-src/driver.c: Add call to short_dump_state(). + +2009-01-21 Jean-Louis Martineau + * server-src/reporter.c: Set exit_status to STATUS_TAPE if taper crash. + +2009-01-21 Jean-Louis Martineau , + Dustin J. Mitchell + * common-src/fileheader.c: Remove strquotedstr function. + * common-src/quoting-test.c: Test strquotedstr function. + * common-src/util.c: Add prototype for strquotedstr function. + * common-src/util.h: Add new strquotedstr function. + +2009-01-21 Jean-Louis Martineau + * application-src/Makefile.am: Typo + +2009-01-21 Dustin J. Mitchell + Patch suggested by Ingo Schaefer + * packaging/rpm/amanda.spec: detect and properly support suse11.1, + with a temporary hack to support suse11, too + +2009-01-21 Jean-Louis Martineau + * packaging/rpm/amanda.spec: Typo. + +2009-01-21 Jean-Louis Martineau + * server-src/amstatus.pl: Fix use of %free and %qlen keys. + +2009-01-20 Dan Locks + * packaging/rpm/amanda.spec: add missing BuildRequires, conditionalize + libtermcap.so.2 for fedora, change tar requirement to %{tarver} + +2009-01-20 Dan Locks + * packaging/rpm/amanda.spec: add %{PERLSITELIB} to %files section to + install perl for the client package add "directory mode" to defattr + statements where appropriate. + +2009-01-19 Jean-Louis Martineau + * server-src/diskfile.c: Use dp->hostnext to scan dles of a host. + +2009-01-19 Jean-Louis Martineau + * device-src/vfs-device.c: robust_open can return fd 0. + +2009-01-19 Tom Robinson + * server-src/amoverview.pl: fix parsing of filenames containing colons + +2009-01-19 Jean-Louis Martineau + * application-src/amzfs-sendrecv.pl: Handle incremental, + new KEEP-SNAPSHOT property. + * man/xml-source/amzfs-sendrecv.8.xml: Document it. + * application-src/teecount.c: New program. + * application-src/Makefile.am: Add teecount. + * perl/Amanda/Application/Zfs.pm: Work with 'current' snapshot. + * common-src/amanda.h: include "safe-read.h" + +2009-01-17 Jean-Louis Martineau + * server-src/amstatus.pl: Don't add 'dump to tape' in the 'dumped' + result. + +2009-01-16 Dan Locks + * packaging/rpm/amanda.spec: fix the fedora 10 fix for other distros + +2009-01-16 Dustin J. Mitchell + * device-src/vfs-device.c: don't cache the dir_handle, as + such caching does not work on some network filesystems + +2009-01-16 Jean-Louis Martineau + * packaging/rpm/amanda.spec: Fix for fedora 10. + +2009-01-16 Dustin J. Mitchell + * device-src/amtapetype.pl: remove call to old device function + +2009-01-16 Jean-Louis Martineau + * server-src/driver.c: Use bitwise NOT for taper_state. + +2009-01-16 Jean-Louis Martineau + * server-src/taper.c: Go to next tape if device_start_file fail. + * device-src/tape-device.c: write a filemark when a file is finished. + * device-src/tape-device.h (TapeDevice): Remove first_file. + +2009-01-16 Jean-Louis Martineau + * client-src/sendbackup.c: Fix for no index with application. + * application-src/amstar.c: Improve error reporting. + * application-src/amgtar.c: Improve error reporting. + +2009-01-14 Jean-Louis Martineau + * application-src/amgtar.c: Add TAR-BLOCKSIZE property. + * man/xml-source/amgtar.8.xml; document TAR-BLOCKSIZE property. + +2009-01-13 Jean-Louis Martineau + * server-src/amcheck.c: Check fallback_splitsize is smaller than + physmem_total(). + * server-src/taper-mem-port-source.c: Dont; check physmem_available. + +2009-01-12 Jean-Louis Martineau + * server-src/server_util.c: New get_pending_cmd function. + * server-src/server_util.h: get_pending_cmd prototype. + * server-src/driver.c: Send message to dumper in ABORT command. + * server-src/driverio.c: Send message to dumper in ABORT command. + * server-src/dumper.c: Check for ABORT cmd. + * server-src/reporter.c: Don't log duplicate + 'Not enough holding disk space' error + +2009-01-12 Jean-Louis Martineau + * server-src/driver.c: Fix result_argv subscript. + +2009-01-08 Jean-Louis Martineau + * restore-src/amfetchdump.c: Write to stderr. + +2009-01-06 Jean-Louis Martineau + * device-src/tape-device.c (tape_device_seek_file): Set is_eof to FALSE + after it is use. + +2009-01-06 Jean-Louis Martineau + * server-src/taper.c: Don't call changer_label() if a changer is not + in use. + +2009-01-06 Jean-Louis Martineau + * server-src/driverio.c: Set *result_argv to NULL on EOF. + * server-src/taper-mem-port-source.c: Set an error if the memory can't + be allocated for the memory buffer. + +2009-01-05 Dustin J. Mitchell + * client-src/runtar.c: remove unnecessary check for existence of + CLIENT_LOGIN + +2009-01-05 Jean-Louis Martineau + * perl/Amanda/Archive.swg, perl/Amanda/Device.swg, + perl/Amanda/Xfer.swg: Fix compiler warning. + +2009-01-05 Jean-Louis Martineau + * config/automake/scripts.am: Remove 'use lib' line before doing check. + +2008-12-22 Jean-Louis Martineau + * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.1b2") + * packaging/deb/rules, packaging/deb/buildpkg, + packaging/deb/changelog, packaging/rpm/buildpkg, + packaging/rpm/amanda.spec: Change version to 2.6.1b2. + +2008-12-22 Paul Yeatman + * man/entities/global.entities.in: added author/email entity for me + * man/xml-source/amanda-auth.7.xml: newly added man page + * man/Makefile.am: added amanda-auth to section 7 + * man/xml-source/amanda.conf.5.xml: removed details on auth parameter + and added link to amanda-auth man page + * man/xml-source/amanda.conf.5.xml: moved AUTHORIZATION section to + amanda-auth and added link to amanda-auth man page + +2008-12-22 Nikolas Coukouma + * device-src/s3.c: retry on CURLE_GOT_NOTHING (52) to handle "connection reset by peer" + +2008-12-22 Dustin J. Mitchell + * device-src/s3.c: translate error code 0 to "None", not NULL + +2008-12-22 Dustin J. Mitchell + * application-src/amgtar.c, + application-src/amstar.c: Use sizeof(line) for argument to fgets. + +2008-12-22 Jean-Louis Martineau + * man/xml-source/amarchiver.8.xml: amanda-archive-format man page is + in section 5. + +2008-12-22 Dustin J. Mitchell + * installcheck/Installcheck/Dumpcache.pm + installcheck/Installcheck/Run.pm installcheck/amdump.pl + installcheck/pp-scripts.pl: move amdump_diag to Installcheck::Run, fix + it, and use it in amdump and pp-scripts + * application-src/amlog-script.pl: don't pretend to be script-email + * man/Makefile.am: amanda-archive-format should be section 5 + * man/xml-source/amanda-archive-format.5.xml: small tweaks + * man/xml-source/amanda-changers.7.xml: fix authorship + * man/xml-source/amanda.8.xml: add link to amvault(8) + * man/xml-source/amvault.8.xml: enumerate limitations of this version + * perl/Amanda/Config.swg: fix mem leak in config_dir_relative wrapper + +2008-12-22 Dustin J. Mitchell + * config/amanda/dirs.m4: add --with-amdatadir + * example/Makefile.am: use it for examples and templates + * perl/Amanda/Paths.pm.in: add $amdatadir + * server-src/amserverconfig.pl: use it + * packaging/deb/rules packaging/rpm/amanda.spec: packaging changes + so that built packages still put examples and templates in + /var/lib/amanda + +2008-12-22 Jean-Louis Martineau + * application-src/amstar.c: Use fgets to read star output. + * application-src/amgtar.c: Use fgets to read gtar output. + +2008-12-22 Jean-Louis Martineau , + Dustin J. Mitchell + * common-src/util.c: Convert underscore in application and script + property name to dash. + * device-src/property.c: Make underscore and dash equal in device + property name. + * installcheck/Amanda_Device.pl: Check device property name with + mixed case and dash. + * installcheck/pp-scripts.pl: Check property name with underscore. + +2008-12-22 Jean-Louis Martineau + * server-src/reporter.c: Fix reporting of FLUSH. + +2008-12-19 Nikolas Coukouma , Dustin J. Mitchell + * device-src/s3-device.c, device-src/s3.c, device-src/s3.h: + Reset read and write when retrying a failed request + +2008-12-19 Jean-Louis Martineau + * server-src/holding.c (holding_get_file_chunks): Set fullpaths to 1. + +2008-12-18 Jean-Louis Martineau + * common-src/security-util.c: Don't free 'rc'. + +2008-12-18 Jean-Louis Martineau + * man/xml-source/amgtar.8.xml: Improve documentation of regex. + +2008-12-18 Jean-Louis Martineau + * common-src/conffile.h (anonymous_value): New prototype. + * common-src/conffile.c (anonymous_value): New function. + * common-src/conffile.c: Use anonymous_value. + * server-src/diskfile.c: Use anonymous_value. + +2008-12-17 Jean-Louis Martineau + * perl/Amanda/Script_App.pm: Fix infinite loop. + * perl/Amanda/Application/Zfs.pm: Fix for freebsd. + +2008-12-17 Jean-Louis Martineau + * server-src/planner.c: Run script only if todo is set. + +2008-12-17 Jean-Louis Martineau + * installcheck/amfetchdump.pl: chdir() before rmtree(). + +2008-12-17 Jean-Louis Martineau + * common-src/pipespawn.c: Remove bogus g_debug(). + +2008-12-17 Jean-Louis Martineau + * installcheck/amarchiver.pl: chdir() before rmtree(). + * installcheck/amcheckdump.pl: Add reason to BAIL_OUT. + * installcheck/amdevcheck.pl: Add reason to BAIL_OUT. + +2008-12-07 Satya Ganga + * changer-src/chg-lib.sh.in: Remove dependency on ggrep and use mtx + offline command instead of "eject" which is not supported on solaris. + +2008-12-17 Dan Locks + * config/amanda/changer.m4: update AC_CHECK_HEADERS to get rid of + "present but cannot be compiled" warning during debian packaging. + +2008-12-17 Dan Locks + * packaging/rpm/amanda.spec: add detection for SLES11 (Beta) + +2008-12-17 Dustin J. Mitchell + * man/xml-source/amgtar.8.xml: atime_preserve -> atime-preserve + * installcheck/pp-scripts.pl: add atime-preserve property, remove + references to Installcheck::Dumpcache, which isn't in this release + +2008-12-16 Dustin J. Mitchell + * man/xslt/html.xsl.in: add
for the benefit + of amanda.css. + +2008-12-16 Jean-Louis Martineau + * common-src/security-util.c: Don't close if it's not open. + +2008-12-16 Jean-Louis Martineau + * application-src/Makefile.am: Add amlog-script. + * application-src/amlog-script.pl: New scripts. + * server-src/amcheck.c , server-src/planner.c, + server-src/server_util.c, server-src/server_util.h, + server-src/driver.c: Add level argument to run_server_scripts(). + The script is executed with that level argument. + * installcheck/pp-scripts.pl: Check scripts. + * installcheck/Makefile.am: Add pp-scripts. + +2008-12-16 Dustin J. Mitchell + * man/Makefile.am man/xml-source/amanda-changers.7.xml + man/xml-source/amanda-devices.7.xml man/xml-source/amanda.8.xml + man/xml-source/amanda.conf.5.xml: new documentation + * perl/Amanda/Changer.pm: not finished yet! + * perl/Amanda/Changer/compat.pm: fix error message + * server-src/changer.c changer-src/chg-glue.pl: + better error handling + +2008-12-16 Dustin J. Mitchell + * changer-src/chg-glue.pl: add labelling support + * perl/Amanda/Changer/compat.pm: only call '-label' on chg-zd-mtx if + the changer is not seekable (hack to make slotinfofile work) + * changer-src/chg-zd-mtx.sh: provide optional slotinfofile mapping + slots to labels on a best-information-available basis + +2008-12-15 Jean-Louis Martineau + * amandad-src/amandad.c: Set wait_30s to 0 for local auth. + +2008-12-15 Dustin J. Mitchell + * installcheck/Amanda_Config.pl: work around buggy sort() in perl-5.6 + * installcheck/Amanda_DB_Catalog.pl installcheck/Amanda_Logfile.pl: + stringify bigints in is_deeply arguments + * perl/Amanda/Archive.swg: grok_number is not in perl-5.6 + * perl/Amanda/BigIntCompat.pm: additional overloads and methods for + BigIntCompat for perl-5.6 compatibility + +2008-12-14 Dustin J. Mitchell + * man/Makefile.am: change manpage build process + * man/entities/global.entities.in: generate with config.status + * man/xslt/html.xsl.in: new templates to handle authors + * man/xslt/man.xsl.in: new templates to handle authors + * man/xml-source/*.xml: change specification of authors + * man/xml-source/amanda-applications.7.xml: add links to apps + * man/xml-source/amanda-scripts.7.xml: add links to scripts + +2008-12-12 John Hein + * server-src/amdump.sh: fix Open3 invocation to work on + FreeBSD-4.x + +2008-12-12 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: Fix use of , it must + always be at the beginning of the line. + +2008-12-12 Jean-Louis Martineau + * application-src/amgtar.c: Fix coredump if GNUTAR is not set. + +2008-12-12 Dustin J. Mitchell + * client-src/sendbackup-dump.c: fix previous commit to not use + precompiler directives in the middle of a macro invocation + +2008-12-12 Jean-Louis Martineau + * NEWS, ReleaseNotes: Add amzfs-sendrecv. + * client-src/sendbackup.c: Fix indexd test. + * man/Makefile.am: Add amzfs-sendrecv.8. + * man/xml-source/amzfs-snapshot.8.xml: Add DLE format example. + * man/xml-source/amanda-applications.7.xml: Add amzfs-sendrecv.8. + * man/xml-source/amanda.8.xml: Add amzfs-sendrecv.8. + * man/xml-source/amzfs-sendrecv.8.xml: New man page. + * application-src/amzfs-sendrecv.pl: New application. + * application-src/amzfs-snapshot.pl: Fix to use + Amanda::Application::Zfs + * application-src/Makefile.am: Add amzfs-sendrecv. + * perl/Amanda/Script_App.pm: Exit instead of die. + * perl/Amanda/Application/Zfs.pm: New perl module for zfs. + * perl/Makefile.am: Add Amanda/Application and + Amanda/Application/Zfs.pm + +2008-12-12 Jean-Louis Martineau + * recover-src/extract_list.c: Wait to read at least one byte from the + data stream before forking the child. + +2008-12-12 Jun Kuriyama , Göran Löwkran + * changer-src/chg-zd-mtx.sh: fix bashisms + * client-src/sendbackup-dump.c: use -L on systems that support it + +2008-12-11 Jean-Louis Martineau + * NEWS, ReleaseNotes: Add amsamba. + +2008-12-11 Jean-Louis Martineau + * server-src/driver.c: Check start_t before doing a dump to tape. + +2008-12-09 C R Ritson. + * server-src/reporter.c: Add threshold to small and big estimate. + +2008-12-09 Jean-Louis Martineau + * client-src/client_util.c: Parse RECOVER-MODE application support. + * client-src/client_util.h (backup_support_option_t): + Add smb_recover_mode. + * client-src/sendsize.c: Fix size. + * man/Makefile.am: Add amsamba.8. + * man/xml-source/amsamba.8.xml: New man page. + * man/xml-source/amanda-applications.7.xml: List amsamba. + * man/xml-source/amanda.8.xml: List amsamba. + * application-src/Makefile.am (CHECK_PERL): Add amsamba + * application-src/amsamba.pl: New application. + * recover-src/extract_list.c: Get support option from application + and set --recover-mode if needed. + * recover-src/amrecover.h: Remove some "#ifdef SAMBA_CLIENT". + * recover-src/set_commands.c: Remove some "#ifdef SAMBA_CLIENT". + * perl/Amanda/Paths.pm.in: Add $sysconfdir. + * perl/Amanda/Util.swg: Add skip_quoted_string. + +2008-12-09 Jean-Louis Martineau + * man/xml-source/amstar.8.xml: Typo. + +2008-12-09 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: Fix plugin location. + +2008-12-07 Dustin J. Mitchell + * server-src/Makefile.am server-src/amvault.pl: new, experimental + script to copy data from secondary to tertiary volumes + * common-src/fileheader.c: strip spurious ' ' from headers + * man/Makefile.am man/xml-source/amvault.8.xml: docs + * perl/Amanda/DB/Catalog.pm: add kbps calculation + * perl/Amanda/Device.swg: add volume_header() method + +2008-12-05 Dustin J. Mitchell + * server-src/taper.c: remove dead code that can cause compiler errors + +2008-12-05 Jean-Louis Martineau + * server-src/driverio.c: Send a message with NO-NEW-TAPE. + * server-src/driver.c: Generate message for NO-NEW-TAPE, call + start_degraded_mode when sending NO-NEW-TAPE, Fix a subscript error + for INPUT-ERROR and TAPE-ERROR + * server-src/taper.c: Get message from NO-NEW-TAPE command and log it. + +2008-12-03 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: Provide default unit. + +2008-12-03 Jean-Louis Martineau + * server-src/amcheckdump.pl: Use GNUTAR to validate smbclient image. + +2008-12-01 Nikolas Coukouma + * device-src/s3.c: fix signedness + +2008-12-01 Dustin J. Mitchell + * common-src/util.c: fix mishandling of trailing backslash in + unquote_string + +2008-12-01 Nikolas Coukouma + * device-src/s3.c, device-src/s3.h: Fix segmentation fault within s3_make_bucket + by adding some "null-op" read and write functions. + +2008-11-27 Jean-Louis Martineau + * server-src/amstatus.pl: Correctly parse degraded size. + +2008-11-26 Jean-Louis Martineau + * client-src/sendbackup.c: Set application in extraction command. + +2008-11-25 Jean-Louis Martineau + * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.1b1") + * ReleaseNotes: Release notes for 2.6.1b1. + * NEWS: News for 2.6.1b1. + * packaging/deb/rules, packaging/deb/buildpkg, + packaging/rpm/buildpkg, + packaging/rpm/amanda.spec: Change version to 2.6.1b1. + +2008-11-25 Jean-Louis Martineau + * config/amanda/bsd-security.m4: Fix. + * config/amanda/bsdtcp-security.m4: Enable --with-bsdtcp-secutiy by + default. + * config/amanda/ssh-security.m4: Enable --with-ssh-security by default. + +2008-11-25 Dustin J. Mitchell + * changer-src/Makefile.am changer-src/chg-glue.pl: + add new c-to-perl glue script + * server-src/changer.c: interface with new script + * server-src/amtape.c man/xml-source/amtape.8.xml: + remove 'slot last' and 'slot prev' + * perl/Amanda/Changer.pm perl/Amanda/Changer/compat.pm + perl/Amanda/Changer/disk.pm perl/Amanda/Changer/single.pm: updates to + new Changer API + * installcheck/Amanda_Changer.pl installcheck/Amanda_Changer_compat.pl + installcheck/Amanda_Changer_disk.pl installcheck/Amanda_Changer_single.pl + installcheck/Makefile.am: tests for all of it + +2008-11-25 Dustin J. Mitchell + * example/template.d/advanced.conf.in: don't imply that + maxdumpsize is in bytes + +2008-11-21 Nikolas Coukouma + * device-src/s3.c: work around a bug in Amazon's HTTP implementation + by avoiding HEAD requests. + +2008-11-21 Jean-Louis Martineau + * server-src/diskfile.c (clean_dle_str_for_client): Return NULL if + argument is NULL. + * restore-src/restore.c: Also check for F_EMPTY. + +2008-11-21 Jean-Louis Martineau + * amandad-src/amandad.c: Wait up to 5 seconds dwfor only for process + that should terminate. + +2008-11-21 Dustin J. Mitchell + * restore-src/restore.c: Continue if setting PROPERTY_READ_BUFFER_SIZE + fail. + +2008-11-20 Jean-Louis Martineau + * server-src/server_util.c: Skip one field in parsing INFO pid line. + +2008-11-20 Jean-Louis Martineau + * oldrecover-src/extract_list.c: Use config. + * server-src/dumper.c: Check dle_str for NULL. + +2008-11-20 Jean-Louis Martineau + * server-src/amdump.sh: Run amreport if the 'log' file already exist. + +2008-11-20 Urs Schurer + * server-src/amindexd.c: remove unnecessary stralloc()/free() calls + in process_ls_dump + +2008-11-19 Satya Ganga + * example/inetd.conf.amandaserver.in: Add serverconfig file + * configure.in,example/Makefile.am: Include inetd.conf.amandaserver + +2008-11-18 Dan Locks + * packaging/rpm/amanda.spec: removed conditionals around + perl(ExtUtils::Embed) so that buildrequires applies to all platforms + +2008-11-18 Satya Ganga + * device-src/tape-device.c: Remove O_NONBLOCK flag from all tape open calls. + +2008-11-18 Jean-Louis Martineau + * application-src/amstar.c: Free qdisk after the loop. + * application-src/amgtar.c: Free qdisk after the loop. + +2008-11-17 Jean-Louis Martineau + * man/xml-source/amgtar.8.xml: Update for ATIME-PRESERVE default. + +2008-11-17 Jean-Louis Martineau + * server-src/taper.c: Fix formating. + +2008-11-17 Jean-Louis Martineau + * server-src/amstatus.pl: Parse "taper: using label ..." line. + * server-src/driver.c: Print tape size. + * server-src/amtoc.pl: Fix for new log format. + * server-src/reporter.c: Increase field width. + * server-src/taper.c: Print number of kbytes written to each tape. + +2008-11-14 Dustin J. Mitchell + * device-src/s3-device.c: eliminate an extra buffer copy in the + common case where the caller supplies a large enough buffer + * device-src/s3.h: tweak a comment + +2008-11-14 Jean-Louis Martineau + * server-src/holding.h: Improve comment. + * server-src/reporter.c: Print holding disk size in displyaunit. + +2008-11-14 Jean-Louis Martineau + * client-src/client_util.c: Get stderr of scripts and send it to + server. + * client-src/client_util.h: Add err in client_script_result_t. + * client-src/sendbackup.c: Call run_client_scripts with mesgstream. + * client-src/sendsize.c: Fix. + * server-src/planner.c: Get WARNING line from client. + * server-src/reporter.c: Don't mark the dumper as FAILED if the + planner FAILED. + * common-src/amfeatures.h (fe_sendsize_rep_warning): New amfeature + * common-src/amfeatures.c: Add fe_sendsize_rep_warning. + +2008-11-12 Dustin J. Mitchell + * man/xml-source/amfetchdump.8.xml: fix ugly HTML formatting + +2008-11-11 Jean-Louis Martineau + * amandad-src/amandad.c: Check that something is ready to be read + before calling errfd_recv. + +2008-11-11 Dustin J. Mitchell + * changer-src/chg-manual.sh: fix typo + +2008-11-11 Dan Locks + * packaging/rpm/amanda.spec: add fedora 9 detection, add + BuildRequires: perl(ExtUtils::Embed), fix %{dist}=unknown when + undetected instead of at all times + +2008-11-11 Dustin J. Mitchell + * installcheck/Makefile.am installcheck/amfetchdump.pl: build all + active test scripts; add a DLE in the amfetchdump installcheck + +2008-11-11 Dustin J. Mitchell + * config/macro-archive/ac_perl_module_version.m4: new macro + * config/amanda/swig.m4: check for ExtUtils::Embed + +2008-11-11 Dustin J. Mitchell + * installcheck/amarchiver.pl: quote $sbindir from regexp + interpretation + +2008-11-11 Jean-Louis Martineau + * perl/Makefile.am: Don't add Amanda/Script_App.pm and Amanda/Script.pm + to DISTCLEANFILES. + +2008-11-11 Jean-Louis Martineau + * installcheck/amdump.pl: Set property "ATIME-PRESERVE" to "NO" in + amgtar application. + +2008-11-11 Jean-Louis Martineau + * client-src/selfcheck.c: fix. + * amandad-src/amandad.c: Read stderr of server and report it to server. + * server-src/planner.c: Keep first line only. + +2008-11-10 Dustin J. Mitchell + * amar-src/amarchiver.c: fix filesize printf conversion + +2008-11-10 Jean-Louis Martineau + * client-src/sendbackup.c, client-src/selfcheck.c: Check return + value of pipe. + +2008-11-10 Dustin J. Mitchell + * installcheck/Installcheck/Run.pm: change default DLEs + * installcheck/amcheckdump.pl: add DLE explicitly + * installcheck/amdevcheck.pl: add DLE explicitly + * installcheck/amdump.pl: use the amgtar application in a dump + +2008-11-10 Dustin J. Mitchell + * installcheck/Makefile.am: only test amfetchdump if it was built + * installcheck/amfetchdump.pl: use arguments in the right order + +2008-11-10 Dustin J. Mitchell + * perl/Amanda/Archive.swg amar-src/amar.c amar-src/amar.h: bugfixes + * man/Makefile.am man/xml-source/amarchiver.8.xml + amar-src/Makefile.am amar-src/amarchiver.c: new application + * installcheck/Makefile.am installcheck/amarchiver.pl: tests + +2008-11-10 Dustin J. Mitchell + * installcheck/Installcheck/Run.pm: add Expect support + * installcheck/Makefile.am installcheck/amfetchdump.pl: amfetchdump + installcheck, using Expect support + +2008-11-10 Dustin J. Mitchell + * common-src/amgetconf.pl: don't setup_application() in dbclose + +2008-11-10 Jean-Louis Martineau + * perl/Makefile.am: Build Amanda::Application only if WANT_CLIENT. + +2008-11-08 Dustin J. Mitchell + * perl/Amanda/Changer.pm perl/Amanda/Changer/compat.pm + perl/Amanda/Changer/disk.pm perl/Amanda/Changer/single.pm + perl/Makefile.am: entirely new perl-based changer API + * perl/Amanda/Config.swg common-src/conffile.c common-src/conffile.h: + add changer subsections + * man/xml-source/amanda.conf.5.xml: document them + * server-src/amcheckdump.pl: use the new changer API + * installcheck/Amanda_Changer.pl installcheck/Amanda_Changer_Compat.pl + installcheck/Amanda_Changer_Single.pl installcheck/Amanda_Config.pl + installcheck/Installcheck/Config.pm installcheck/Makefile.am + installcheck/Amanda_Changer_Disk.pl: new/updated tests + +2008-11-07 Jean-Louis Martineau + * application-src/amstar.c: fix. + +2008-11-07 Jean-Louis Martineau + * perl/Amanda/Application.swg: Remove %init. + +2008-11-07 Jean-Louis Martineau + * application-src/amgtar.c, application-src/amgtar_perl.pl, + application-src/amstar.c: Write backup image to fd3 and index to fd4. + * perl/Amanda/Script_App.pm: Use $self->{mesgout}. + * recover-src/extract_list.c: Add more check. + * client-src/client_util.c (backup_support_option): Get stderr of + application and put it in errarray, + * client-src/client_util.h (backup_support_option): New prototype. + * client-src/selfcheck.c, client-src/sendbackup.c, + client-src/sendsize.c: Get stderr of application and send it to + server. + * server-src/dumper.c: Log the first error message. + * server-src/planner.c: Log the first error message. + * server-src/reporter.c: Don't print some error in report. + +2008-11-07 Jean-Louis Martineau + * client-src/client_util.c: Parse CALCSIZE and MULTI-ESTIMATE. + * client-src/client_util.c (run_calcsize): New function. + * client-src/client_util.h (run_calcsize): Prototype. + * client-src/sendbackup.c: Update amandates. + * client-src/sendsize.c: Handling of calcsize and multi-estimate. + * client-src/selfcheck.c: Check calcsize for application. + * application-src/amgtar_perl.pl, application-src/amstar.c, + * application-src/amgtar.c: handling of calcsize and multi-estimate. + * perl/Amanda/Script_App.pm: Add a check. + * perl/Amanda/Application.swg: Add run_calcsize. + * perl/Amanda/Application.pm: Delete + * perl/Makefile.am: Built from Application.swg + * client-src/calcsize.c: Handling of STAR program. + +2008-11-06 Jean-Louis Martineau + * man/xml-source/amgtar.8.xml: Document new properties. + * application-src/amgtar.c: Remove ifdef IGNORE_TAR_ERRORS. + +2008-11-06 Jean-Louis Martineau + * changer-src/chg-zd-mtx.sh: Return first line of mtx output if mtx + exit with a status != 0. + * server-src/amtape.c: Display changer error. + +2008-11-06 Jean-Louis Martineau + * application-src/amgtar.c: Add exit-handling property. + +2008-11-06 Jean-Louis Martineau + * application-src/amgtar.c: Add normal, ignore and strange property. + +2008-11-04 Jean-Louis Martineau + * server-src/amcheck.c: Check tape_splitsize < tape length. + +2008-10-30 Dustin J. Mitchell + * server-src/find.c server-src/find.h man/xml-source/amadmin.8.xml: + add new sort key, 'w', for write_timestamp + * server-src/amadmin.c: use it + * server-src/amindexd.c restore-src/amfetchdump.c: use 'w' to prefer + the oldest-written copy of a dump + +2008-10-30 Jean-Louis Martineau + * application-src/amgtar_perl.pl, application-src/amstar.c, + application-src/amgtar.c: Implement validate command. + * server-src/amcheckdump.pl: Execute the validate command of an + application. + * perl/Amanda/Script_App.pm (print_to_server): Add validate. + * perl/Amanda/Application.pm (known_commands): Add validate. + * common-src/security-util.c: Fix typo. + +2008-10-29 Dustin J. Mitchell + * man/xml-source/amanda.conf.5.xml + man/xml-source/amanda-devices.7.xml: improve device property + documentation + +2008-10-29 Dustin J. Mitchell + * man/xml-source/amanda.conf.5.xml: taperflush params can be + greater than 100% + +2008-10-27 Jean-Louis Martineau + * common-src/fileheader.c (dumpfile_free_data): New function. + * common-src/fileheader.h (dumpfile_free_data): New prototype. + * server-src/cmdline.c, server-src/dumper.c, + server-src/planner.c, server-src/amadmin.c, + server-src/amflush.c, server-src/holding.c, + server-src/driver.c, server-src/find.c, + server-src/taper-source.c, server-src/taper-file-source.c + server-src/taper.c: Call dumpfile_free or dumpfile_free_data. + +2008-10-27 Dustin J. Mitchell + * common-src/glib-util.c: check library version at runtime + +2008-10-27 Jean-Louis Martineau + * perl/Amanda/Device.swg (start_file): Remove const for jobInfo. + +2008-10-24 Dustin J. Mitchell + * installcheck/Amanda_Archive.pl: fix to also test for identity of + $user_data on perls that recognize such things + +2008-10-24 Dustin J. Mitchell + * amar-src/amar-test.c: don't ignore the return value of write() + +2008-08-14 Nikolas Coukouma + Jean-Louis Martineau + * amar-src/amar.c: fix mis-aligned memory accesses + * amar-src/amar-test.c: fix test_pipe + +2008-10-24 Jean-Louis Martineau + * perl/Amanda/Script_App.pm: New base module for script and application. + * perl/Amanda/Script.pm: New base module for script. + * perl/Amanda/Application.pm: New base module for application. + * perl/Makefile.am: Add Amanda::Script_app, Amanda::Script And + Amanda::Application. + * application-src/generic-dumper.pl: Remove file. + * application-src/generic-script.pl: Remove file. + * application-src/script-email.pl: Use Amanda::Script. + * application-src/amgtar_perl.pl: Use Amanda::Application. + * application-src/amzfs-snapshot.pl: Use Amanda::Script. + * application-src/Makefile.am: Remove generic-*.pl files. + +2008-10-24 Dustin J. Mitchell + * perl/Amanda/Archive.swg perl/Makefile.am: add a Perl interface to + libamar + * installcheck/Amanda_Archive.pl installcheck/Makefile.am: test it. + +2008-10-24 Dustin J. Mitchell + * */Makefile.am: change @AMLINT@ to $(AMLINT), similarly for + $(AMLINTFLAGS), and strip $(EXEEXT) from program names when running + lint + * config/amanda/libs.m4: put GLIB_CFLAGS in AMANDA_CPPFLAGS + +2008-10-23 Dustin J. Mitchell + * amar-src/Makefile.am: add amar.h to noinst_HEADERS + +2008-10-23 Dustin J. Mitchell + * configure.in Makefile.am amar-src/Makefile.am: new directory + * amar-src/amar.c amar-src/amar.h: amanda archive library + * amar-src/amar-test.c: tests for library + * common-src/security-util.c common-src/security-util.h + common-src/util.c common-src/util.h: move net_writev to + util.c, rename to full_writev + * man/Makefile.am man/xml-source/amanda-archive-format.7.xml + man/xml-source/amanda.8.xml: new manpage to describe the format + +2008-10-20 Nikolas Coukouma + * configure.in: add tests for more headers, plus some defines + for the presence of Amanda's headers + * device-src/s3-util.c, device-src/s3-util.h: Use defines to switch between + POSIX regex API and a GRegex (PCRE) call-compatability layer. + * device-src/s3.c, device-src/s3.h: Add a curl progress callback. + Use callbacks to write and read data. Provide callbacks for + memory buffers and files. The callbacks for files are currently + Windows-specific. + * device-src/s3-device.c: update to use new API + +2008-10-20 Dustin J. Mitchell + * perl/Makefile.am: remove spurious variables + +2008-10-17 Jean-Louis Martineau + * changer-src/chg-multi.sh: Check permission on the statefile and its + directory. + +2008-10-17 Jean-Louis Martineau + * server-src/planner.c: Set i to 0. + +2008-10-17 Jean-Louis Martineau + * server-src/amcheck.c, server-src/dumper.c + server-src/planner.c: Don't send appliaciton-api request if the + client doesn't use the xml protocol. + +2008-10-15 Jean-Louis Martineau + * server-src/reporter.c: print space instead of N/A, dumper stats are + set to "FLUSH" if it is a flush. + +2008-10-13 Dustin J. Mitchell + * device-src/vfs-device.c: re-open the dir handle on every + device start or read label + * installcheck/Amanda_Device.pl: adjust tests to degrade the + VFS device *after* it is started + +2008-10-13 Jean-Louis Martineau + * perl/Makefile.am: Moce EXTRA_DIST out of conditionals. + +2008-10-13 Jean-Louis Martineau + * installcheck/Makefile.am: revert previous commit. + * config/automake/scripts.am: Check for a server perl module. + +2008-10-13 Jean-Louis Martineau + * installcheck/Makefile.am: SCRIPTS_PERL = $(tests). + +2008-10-13 Jean-Louis Martineau + * perl/Makefile.am: Don't check Amanda/Config files. + +2008-10-11 Jean-Louis Martineau + * perl/Makefile.am: Check file in top_srcdir if they are not + in top_builddir. + +2008-10-10 Jean-Louis Martineau + * common-src/amgetconf.pl: remove 'use Amanda::Device qw( :constants);' + +2008-10-10 Jean-Louis Martineau + * perl/Makefile.am: test for libConfig.so before doing check. + +2008-10-10 Jean-Louis Martineau + * config/automake/scripts.am: Check perl scripts on compilation. + Add -I... to 'make check' to access perl module in build tree. + Add installcheck rules to check perl scripts with installed perl + modules. + * application-src/amstar_perl.pl: Remove file. + * device-src/Makefile.am, application-src/Makefile.am, + server-src/Makefile.am, installcheck/Makefile.am, + common-src/Makefile.am: Move most perl scripts to CHECK_PERL. + * installcheck/Makefile.am: + Add "CHECK_PERL_FLAGS=-I$(top_srcdir)/installcheck". + * perl/Makefile.am: Add rules to check all .pm files for check-local. + * device-src/amtapetype.pl, server-src/amaddclient.pl, + common-src/amgetconf.pl: Fix syntax errors. + +2008-10-10 Jean-Louis Martineau + * application-src/amzfs-snapshot.pl, application-src/amoracle.pl + application-src/script-email.pl, application-src/amgtar_perl.pl: + fix typos. + +2008-10-10 Nick Smith + * application-src/amzfs-snapshot.pl: fix typos + +2008-10-08 Dustin J. Mitchell + * perl/Amanda/DB/Catalog.pm: manage the tapelist internally + * perl/Amanda/Tapelist.swg: fix error message, re-read C tapelist + after writing + * server-src/amcheckdump.pl: don't read tapelist + * installcheck/Amanda_DB_Catalog.pl: don't read tapelist first + +2008-10-08 Nick Smith + * server-src/driver.c: set degr_mesg to NULL when not degraded + +2008-10-06 Jean-Louis Martineau + * application-src/amzfs-snapshot.pl: Accept execute-where argument. + * application-src/script-email.pl: Accept execute-where argument. + * client-src/client_util.c: Send execute-where argument to script. + * server-src/server_util.c: Send execute-where argument to script. + +2008-10-06 Jean-Louis Martineau + * application-src/amzfs-snapshot.pl: Add PFEXEC-PATH and PFEXEC + properties. + * man/xml-source/amzfs-snapshot.8.xml: Document new properties. + +2008-10-03 Dustin J. Mitchell + * perl/Amanda/Util.swg: add Amanda::Util::generate_timestamp + * common-src/timestamp.c: add comment + +2008-10-02 Dustin J. Mitchell + * perl/Amanda/DB/Catalog.pm: add rudimentary ability to read logfiles + * installcheck/Amanda_DB_Catalog.pl: test it + * perl/Amanda/Logfile.swg: fix typo + +2008-10-01 Nikolas Coukouma + * device-src/s3-device.c, device-src/s3.c, device-src/s3.h: + Add new property, S3_SSL, to control the use of SSL/TLS when + connecting to Amazon S3 + * man/xml-source/amanda-devices.7.xml: + document S3_SSL and S3_BUCKET_LOCATION + +2008-10-01 Nikolas Coukouma + * device-src/s3-util.c: Re-implement s3_hex_encode() to avoid OpenSSL weirdness. + +2008-10-01 Dustin J. Mitchell + * common-src/amanda.h common-src/conffile.c + oldrecover-src/extract_list.c recover-src/extract_list.c + server-src/amcheck.c server-src/amflush.c server-src/planner.c: + use g_ascii_isspace, as we assume ASCII (for now) and isspace() + is affected by locale and encoding settings. Thanks to Michael + Reuland for helping track this down. + +2008-09-30 Jean-Louis Martineau + * server-src/diskfile.h (xml_optionstr): New prototype. + * server-src/diskfile.h (clean_dle_str_for_client): Prototype. + * server-src/amindexd.c: Pass 0 to new argument of xml_optionstr. + * server-src/amcheck.c: Pass 0 to new argument of xml_optionstr. + * server-src/planner.c: Pass 0 to new argument of xml_optionstr. + * server-src/driverio.c: Pass 1 to new argument of xml_optionstr. + * server-src/dumper.c: Call clean_dle_str_for_client. + * server-src/diskfile.c (xml_optionstr): Work for ENCRYPT_SERV_CUST. + * server-src/diskfile.c (clean_dle_str_for_client): New function. + * restore-src/restore.c: Call clean_dle_str_for_client. + * common-src/amxml.c: Fix parsing. + * common-src/amanda.h (match_no_newline): Prototype. + * common-src/match.c (match_no_newline): New function. + +2008-09-30 Dustin J. Mitchell + * restore-src/restore.c: set data.flags for use by the changer_find + callback + +2008-09-30 Dustin J. Mitchell + * perl/Amanda/MainLoop.swg: add call_later() + * installcheck/Amanda_MainLoop.pl: test it + +2008-09-30 Dustin J. Mitchell + * device-src/rait-device.c: fix typos + +2008-09-30 Dustin J. Mitchell + * common-src/semaphore.h: fix typo + * device-src/rait-device.c: add a private threadpool-like + implementation for old glibs, where GThreadPool is susceptible to + deadlock + +2008-09-29 Dustin J. Mitchell + * device-src/device.c device-src/device.h device-src/null-device.c + device-src/property.c device-src/property.h device-src/rait-device.c + device-src/s3-device.c device-src/tape-aix.c device-src/tape-device.c + device-src/tape-device.h device-src/tape-ops.h device-src/tape-posix.c + device-src/tape-uware.c device-src/tape-xenix.c + device-src/vfs-device.c: add a 'configure' method to the Device API; + revamp device property handling to add source and surety and make + implementation easier + * device-src/rait-device.h device-src/rait-device.c: make RAIT device + calculate block sized based on child devices, if they were configured + explicitly. + * man/xml-source/amanda-devices.7.xml: note that common properties are + not implemented on all devices + * common-src/glib-util.c common-src/glib-util.h: add helpers for + case-insensitive hashes + * changer-src/scsi-changer-driver.c installcheck/Amanda_Device.pl + perl/Amanda/Device.swg restore-src/restore.c server-src/amcheck.c + server-src/amlabel.c server-src/amtape.c server-src/taper.c + server-src/taperscan.c: use new API + +2008-09-29 Dustin J. Mitchell + * server-src/find.c: handle find_result->label == NULL + * perl/Amanda/DB/Catalog.pm: filter out bogus results with NULL label + +2008-09-26 Dustin J. Mitchell + * perl/amglue/ghashtable.c: #include conffile.h, not conffile.c (!) + +2008-09-26 Jean-Louis Martineau + * server-src/driver.c: Parse dumpsize from taper result. + +2008-09-26 Jean-Louis Martineau + * client-src/selfcheck.c: Set qdevice on common_exit path. + +2008-09-25 Dustin J. Mitchell + * common-src/fileheader.c: fix headers_are_equal + +2008-09-25 Dustin J. Mitchell + * common-src/fileheader.c common-src/fileheader.h: allow blocksize=0 + * device-src/device.c device-src/device.h: set blocksize in tape + header + * device-src/null-device.c device-src/s3-device.c + device-src/tape-device.c device-src/vfs-device.c: set blocksize + in headers when starting files + * device-src/rait-device.c: duplicate headers for child devices, since + they are no longer const + * server-src/dumper.c: set blocksize on holding-disk files to + DISK_BLOCK_BYTES + +2008-09-25 Dustin J. Mitchell + * device-src/tape-device.c: mark device as non-appendable temporarily, + since file numbers are incorrect when appending + * installcheck/Amanda_Device.pl: handle non-appendable devices + +2008-09-24 Jean-Louis Martineau + * server-src/driverio.c (dumper_cmd, chunker_cmd): Take new mesg + argument. + * server-src/server_util.h (dumper_cmd, chunker_cmd): New prototype. + * server-src/chunker.c: Get mesg from ABORT cmd and log it. + * server-src/driver.c: Add the mesg argument to all dumper_cmd and + chunker_cmd. + +2008-09-24 Jean-Louis Martineau + * server-src/planner.c: Set degr_mesg and send it to driver. + * server-src/driverio.h (sched_t): Add degr_mesg field. + * server-src/driver.c: Parse message if no degraded estimate. + +2008-09-23 Dustin J. Mitchell + * common-src/conffile.c common-src/conffile.h: store a struct + containing both filename and line number for each parameter, and use + it when reporting errors and warnings + +2008-09-23 Dustin J. Mitchell + * device-src/device.c: make 'unimplemented method' an assertion + +2008-09-23 Dustin J. Mitchell + * device-src/s3.c: use max_keys, instead of maximum body size (which + doesn't work) to limit the number of keys listed + +2008-09-22 Jean-Louis Martineau + * common-src/fileheader.c (fh_init): Set default type to F_EMPTY. + * changer-src/chg-zd-mtx.sh: Allow to remove barcode from barcode file. + * server-src/taperscan.c: Check type != F_EMPTY. + * server-src/taper.c: Call changer_label(). + * server-src/amlabel.c: iCheck type != F_EMPTY. Call changer_label(). + +2008-09-22 Jean-Louis Martineau + * device-src/device.c: Don't g_value_unset a bzero value. + +2008-09-22 Jean-Louis Martineau + * server-src/driver.c: Set result_argv=NULL, Fix typo. + +2008-09-22 Dustin J. Mitchell + * config/amanda/ps.m4: give up on runtime detection and just special- + case the 'ps' arguments for various systems + * perl/Amanda/Constants.pm.in: add $PS + * perl/Amanda/Process.pm: use $PS + +2008-09-19 Jean-Louis Martineau + * server-src/reporter.c (addline): Done it constant time. + +2008-09-19 Dustin J. Mitchell + * common-src/Makefile.am common-src/quoting-test.c: new tests + * common-src/token.c common-src/token.h: removed + * common-src/util.c common-src/util.h: new home for quoting functions + * configure.in: don't check for shquote + * man/xml-source/amanda.conf.5.xml: info on quoting + * perl/Amanda/Config/Server.pm: note about incompatibility + * server-src/amcheck.c server-src/amindexd.c server-src/chunker.c + server-src/driver.c server-src/driverio.c server-src/driverio.h + server-src/dumper.c server-src/infofile.c server-src/server_util.c + server-src/server_util.h server-src/taper-file-source.c + server-src/taper-port-source.c server-src/taper.c: use new/updated + quoting functions + +2008-09-19 Nick Smith + * example/amanda.conf.in: fix incorrect execute_on examples + +2008-09-18 Jean-Louis Martineau + * server-src/dumper.c: Call security_close_connection before + checking if pkt == NULL. + +2008-09-18 Jean-Louis Martineau + Patch by Nick Smith + * server-src/diskfile.c: Fix vstrextend use, Patch by Nick Smith. + * server-src/diskfile.c: Init xml_app.result to stralloc(""). + +2008-09-16 Dan Locks + * packaging/rpm/amanda.spec: Added detection of CentOS 4 and 5 as + suggested by dswartz. added graceful failure when Distro/version is + not detected correctly + +2008-09-15 Dustin J. Mitchell + * common-src/conffile.c: uninit apps, pp_scripts, and device_configs + +2008-09-14 Dustin J. Mitchell + * server-src/tapefile.c server-src/tapefile.h: add comments to + tapelist + * perl/Amanda/Tapelist.swg: perl tapelist parser, too + * installcheck/Amanda_Tapelist.pl: tests + * man/xml-source/tapelist.5.xml: docs + * server-src/amlabel.c: no initial comments when labeling + * server-src/taper.c: maintain comment when relabeling + +2008-09-12 Jean-Louis Martineau + * amandad-src/amandad.c: Fix typo: authetication -> authentication. + +2008-09-05 Dustin J. Mitchell + * man/xml-source/amanda.conf.5.xml: fix inequalities; thanks to + Mike McConnell for spotting these + +2008-09-05 Dustin J. Mitchell + * server-src/taper.c: improve handling of device errors in taper + +2008-09-02 Jean-Louis Martineau + * restore-src/amrestore.c: Load a default server config. + +2008-08-29 Dustin J. Mitchell + * autogen: revert glib's configure-time requirement for + pkg-config-0.16 + +2008-08-28 Dustin J. Mitchell + * device-src/tape-device.c: use the correct blocksize while reading + * device-src/rait-device.c: fix typo + * installcheck/Amanda_Device.pl: use the VFS device in RAIT tests, not + the tape device + +2008-08-28 Jean-Louis Martineau + * server-src/dumper.c: Reset the MESG buffer for a new dump. + +2008-08-27 Dustin J. Mitchell + * server-src/amcheck.c: make the check for tapelist result in a NOTE, + not a failure + * server-src/tapefile.c: make a missing tapelist equivalent to an + empty one + +2008-08-27 Dustin J. Mitchell + * config/amanda/types.m4: always include sys/types.h, if it exists, + before trying other headers (fixes builds of FreeBSD-4.x); thanks + to John Hein + * perl/Amanda/MainLoop.swg server-src/driverio.h: include amanda.h + before event.h + +2008-08-22 Dustin J. Mitchell + * perl/amglue/bigint.c: add #include "stdint.h" + +2008-08-22 Dustin J. Mitchell + * config/amanda/ps.m4: search multiple ps invocations; thanks + to John Hein + +2008-08-22 Jean-Louis Martineau + * server-src/amadmin.ci (tape): Correctly print next tape to use. + * server-src/tapefile.c (print_new_tapes): New function to print new + tapes. + * server-src/tapefile.h (print_new_tapes): Prototype. + * server-src/reporter.c: Correctly print next tape to use. + +2008-08-22 Dustin J. Mitchell + * common-src/conffile.c common-src/conffile.h perl/Amanda/Config.swg: + add new 'define device' config section + * perl/Makefile.am perl/Amanda/Config/Server.pm + perl/Amanda/Config/Server/Devices.pm + perl/Amanda/Config/Server/Grammar: ditto + * device-src/device.c device-src/device.h: configure devices from + device definitions, with better error handling + * device-src/rait-device.c: handle child devices better + * installcheck/Amanda_Config.pl installcheck/Amanda_Config_Server.pl + installcheck/Amanda_Xfer.pl installcheck/Installcheck/Config.pm + installcheck/amgetconf.pl: new tests, modifications to work with the + new system + * man/xml-source/amanda-devices.7.xml + man/xml-source/amanda.conf.5.xml: corresponding documentation updates + * perl/Amanda/Changer.pm perl/Amanda/Device.swg + restore-src/amrestore.c restore-src/restore.c server-src/amcheck.c + server-src/amcheckdump.pl server-src/amdevcheck.pl + server-src/amlabel.c server-src/amtape.c server-src/taper.c + server-src/taperscan.c: remove calls to + set_startup_properties_from_config + * device-src/vfs-test.c: load config before trying to use a device + * common-src/conffile.c: fix use of uninitialized variable + +2008-08-22 Dustin J. Mitchell + * changer-src/chg-disk.sh: replace == with = + * changer-src/chg-lib.sh.in: fix sed invocation for BSD's sed + +2008-08-22 Jean-Louis Martineau + * server-src/reporter.c: Fix computation of compression ratio. + +2008-08-22 Jean-Louis Martineau + * client-src/sendbackup.h: Add DMP_IGNORE and AM_IGNORE_RE. + * application-src/amgtar.c, application-src/amgtar_perl.pl: + Ignore "Directory is new" and "Directory has been renamed". + +2008-08-21 Jean-Louis Martineau + * common-src/krb5-security.c: Fix security_seterror use. + +2008-08-19 Dustin J. Mitchell + * configure.in: check for getgrgid_r and getpwuid_r + * common-src/security-util.c: conditionalize on checks + +2008-08-18 Dustin J. Mitchell + * common-src/version.h: remove #include of config.h + * device-src/vfs-device.c: #include amanda.h first + +2008-08-18 Dustin J. Mitchell + * device-src/Makefile.am device-src/amtapetype.pl: new perl amtapetype + * installcheck/Installcheck/Run.pm: report exit status + * installcheck/Makefile.am installcheck/amtapetype.pl: new test + * man/xml-source/amtapetype.8.xml: updated manpage + * device-src/s3-device.c device-src/vfs-device.c + device-src/tape-device.c: add compression property + * perl/Amanda/Xfer.swg: add POD for the cancel() method + * xfer-src/dest-device.c: add a default for max_memory + +2008-08-18 Dustin J. Mitchell + * common-src/conffile.c: make find_multiplier case-insensitive + * device-src/device.c: reorder assertions + * device-src/tape-device.c: don't set access_mode twice, but + set in_file = FALSE in start + * device-src/s3-device.c: fix property registration + * perl/Amanda/MainLoop.swg: remove attach() from example + * perl/Amanda/Xfer.swg: more detail in POD + * xfer-src/source-pattern.c: operate byte-for-byte, like the random + source, instead of using lots of memcpys and reallocs + * xfer-src/source-random.c: remove redundant check + +2008-08-18 Dustin J. Mitchell + * configure.in Makefile.am tape-src/*: remove tape-src + * changer-src/Makefile.am: don't link with libamtape + * changer-src/chg-scsi.c: don't use libamtape + * changer-src/scsi-changer-driver.c: don't use libamtape + * config/amanda/tape.m4: fix comment + * example/amanda.conf.in example/template.d/tapetypes: fix outdated + comments + * man/Makefile.am man/xml-source/amdd.8.xml man/xml-source/ammt.8.xml: + remove amdd and ammt manpages + * restore-src/Makefile.am: remove refs to tape-src/ + * server-src/Makefile.am: remove refs to tape-src/ + +2008-08-18 Dustin J. Mitchell + * common-src/krb4-security.c common-src/krb5-security.c + config/amanda/tape.m4 common-src/amanda.h: remove + --with-maxtapeblocksize + * common-src/conffile.c: deprecate file-pad + * device-src/device-queueing.c device-src/device-queueing.h + device-src/device.c device-src/device.h device-src/null-device.c + device-src/property.c device-src/property.h device-src/rait-device.c + device-src/s3-device.c device-src/tape-device.c + device-src/tape-device.h device-src/vfs-device.c server-src/amcheck.c + server-src/taper.c tape-src/tapeio.c xfer-src/dest-device.c + xfer-src/source-device.c perl/Amanda/Device.swg: devices have + {min,max,current} block sizes; remove the short_block parameter from + device_write_block; fix property initialization; rename + PROPERTY_MEDIUM_TYPE to PROPERTY_MEDIUM_ACCESS_TYPE + * device-src/rait-device.c: set child block sizes explicitly + * installcheck/Amanda_Device.pl: tests; better S3 test count + calculations + * installcheck/Amanda_Xfer.pl: tests + * man/xml-source/amanda-devices.7.xml: update block sizes + documentation + * man/xml-source/amanda.conf.5.xml: refer to block size properties + * restore-src/amrestore.c: use set_restore_device_read_buffer_size + * restore-src/restore.h restore-src/restore.c: add + set_restore_device_read_buffer_size + +2008-08-16 Dustin J. Mitchell + * server-src/driver.c: handle taper_{input,tape}_error memory + correctly, and add taper_tape_error to the trace log + +2008-08-16 Dustin J. Mitchell + * application-src/amzfs-snapshot.pl application-src/script-email.pl: + remove unnecessary 'use Amanda::Device' + +2008-08-16 Dustin J. Mitchell + * common-src/amgetconf.pl: use filename-safe characters for $appname + * installcheck/amgetconf.pl: test it + +2008-08-16 Dustin J. Mitchell + * man/entities/global.entities: add manpage refs + * packaging/rpm/amanda_enterprise.spec + packaging/rpm/amanda_enterprise_client.spec + man/xml-source/disklist.5.xml man/xml-source/tapelist.5.xml + man/Makefile.am: add disklist(5), tapelist(5) + * man/xml-source/amaddclient.8.xml man/xml-source/amadmin.8.xml + man/xml-source/amanda-client.conf.5.xml man/xml-source/amanda.8.xml + man/xml-source/amanda.conf.5.xml man/xml-source/amcheck.8.xml + man/xml-source/amcheckdb.8.xml man/xml-source/amdevcheck.8.xml + man/xml-source/amflush.8.xml man/xml-source/amlabel.8.xml + man/xml-source/amrecover.8.xml man/xml-source/amrmtape.8.xml: + - remove references to "output drivers" in favor of "device drivers" + - add more inter-page references + - fix typos + - add client_login to amanda-client.conf(5) + - reformat informaltables, which don't render well in HTML or nroff, + into variablelists, with fixes for bad xml->man conversion + - fix funky replacement entities in HTML output + * perl/Amanda/DB/Catalog.pm: mention $dump->{kb} and ->{sec} + * perl/Amanda/Device.swg: fix typo + * perl/Amanda/MainLoop.swg: add hints for writing async functions + * perl/Amanda/Types.swg: fix bad POD + * perl/Amanda/Util.swg: POD fix: use $CONTEXT_* rather than strings + * perl/Amanda/Xfer.swg: tweaks + * server-src/taper.c: fix typo + * server-src/taperscan.c: remove "(previously non-amanda)", as Amanda + will no longer overwrite such tapes + +2008-08-16 Dustin J. Mitchell + * common-src/debug.c: lock debug logging on a per-line basis + +2008-08-16 Dustin J. Mitchell + * device-src/rait-device.c: parse RAIT names with internal {..} + * installcheck/Amanda_Device.pl: light testing + +2008-08-15 Dustin J. Mitchell + * common-src/debug.c: include backtraces on fatal errors + * config/amanda/debugging.m4: look for glibc's backtrace support + * configure.in: ditto + +2008-08-14 Dustin J. Mitchell + * device-src/tape-aix.c device-src/tape-ops.h device-src/tape-uware.c + device-src/tape-xenix.c: bring non-POSIX tape-ops implementations up + to date with function signatures + +2008-08-14 Dustin J. Mitchell , + Nikolas Coukouma + * xfer-src/*: add support for asynchronous cancellation of transfers + and use it for error-handling + * perl/Amanda/Xfer.swg: reflect into perl + * installcheck/Amanda_Xfer.pl: test cancellation + +2008-08-12 Dustin J. Mitchell + * common-src/Makefile.am: clean up svn-info.h on maintainer-clean + * man/Makefile.am: remove config.log after running config.status + +2008-08-07 Nikolas Coukouma + * common-src/conffile.c: cleaner fix for signed compared to unsigned + errors on older versions of GCC. + +2008-08-06 Dustin J. Mitchell + * common-src/Makefile.am: second fix + +2008-08-06 Dustin J. Mitchell + * common-src/Makefile.am: don't syntax-check amgetconf, since + it uses Amanda::* modules + +2008-08-06 Nikolas Coukouma + * server-src/amgetconf.pl, common-src/amgetconf.pl: + Add --execute-where=client|server and --client options + to make amgetconf query the client configuration + instead. Move from server-src to common-src. + * man/xml-source/amgetconf.8.xml: Document the new options. + * installcheck/amgetconf.pl: Test the new options. + * server-src/Makefile.am, common-src/Makefile.am: + Updated Makefiles for move. + * packaging/deb/amanda-enterprise-backup-client.install, + packaging/sun-pkg/i386/client/prototype: + Add amgetconf to client packages. + +2008-08-04 Dan Locks + * packaging/rpm/amanda.spec: add %{tarver} macro and set the correct + minimum version per distro (Thanks to Jesse Angell for the rhel4 tip) + +2008-08-04 Dustin J. Mitchell + * common-src/conffile.c: workaround gcc<4.1.0 problems with long + constants, don't use G_MAXINT64 in precompiler expressions + +2008-08-03 Dustin J. Mitchell + * server-src/amrmtape.sh: use shell redirection with shell functions + +2008-08-03 Dustin J. Mitchell + * common-src/util.c: if !WORKING_IPV6, request AF_INET, not AF_NATIVE + * common-src/dgram.c: address family debugging + * common-src/stream.c: address family debugging + +2008-08-03 Dustin J. Mitchell + * common-src/amanda.h common-src/conffile.c common-src/conffile.h + installcheck/Amanda_Config.pl perl/Amanda/Config.swg + server-src/planner.c: replace am64 type with gint64; also replace + some uses of off_t + +2008-08-01 Nikolas Coukouma + * perl/Amanda/BigIntCompat.pm: Add a module to make 'Math::BigInt's + stringify consistently (no '+' prefixing positive numbers). + * perl/Makefile.am: Add Amanda/BigIntCompat.pm for installation, etc. + * installcheck/bigint.pl, perl/amglue/bigint.c: + Use Amanda::BigIntCompat everywhere we use bigint. + +2008-08-01 Nikolas Coukouma + * common-src/match.c: Correct array index to be within bounds + +2008-08-01 Nikolas Coukouma + * config/amanda/flags.m4: Rename AMANDA_TEST_GCC_WARNING_FLAG to + AMANDA_TEST_GCC_FLAG and use AMANDA_ENABLE_GCC_WARNING where + appropriate. Add AMANDA_DISABLE_GCC_FEATURE. Disable strict-aliasing + (which causes errors). + +2008-07-30 Dustin J. Mitchell + * installcheck/Amanda_Config.pl: add + to avoid perl-5.6.0 parsing bug + * installcheck/amgetconf.pl: ditto + +2008-07-29 Dan Locks + * packaging/rpm/amanda.spec: Merged fixes from enterprise .spec for + parsing redhat-release for fedora versions correctly. + +2007-07-28 Nikolas Coukouma + * config/amanda/flags.m4: Add proper detection of flags for GCC 4.3+ + +2007-07-28 Nikolas Coukouma + * device-src/s3.c: Calculate and send the MD5 hash when uploading data. + Also check the returned ETag to make sure it matches the sent MD5 hash. + Use simpler s3_base64_encode() instead of base64_encode(). + Correct the use of character classes in several regular expressions. + * device-src/s3-util.h, device-src/s3-util.c: Add utility functions + s3_base64_encode(), s3_hex_encode(), and s3_compute_md5_hash() as well + as some constants. Move regexec_wrap() into this and rename it to + s3_regexec_wrap(). + * device-src/Makefile.am: add s3-util.c and s3-util.h + +2008-07-28 Dustin J. Mitchell + * installcheck/Installcheck/Config.pm: don't set default tapetype + unless not set explicitly. + * installcheck/Amanda_Config.pl: test changes + * man/xml-source/amanda-client.conf.5.xml + man/xml-source/amanda.conf.5.xml: encourage, but don't require, + quoted identifiers + +2008-07-28 Dustin J. Mitchell + * server-src/amserverconfig.pl: apply perltidy, factor some common + code, and create the config dir and changer conf only after the check + for mtx is performed + +2008-07-28 Dustin J. Mitchell + * device-src/tests/semaphore-test.c: move function call out of + variable initialization + +2008-07-25 Dan Locks + * packaging/deb/control: added alternative dependency of libssl0.9.8 for + Ubuntu 8.x builds. Added build dependencies for debhelper, fakeroot, + libcurl-dev, libssl-dev. Updated server and client dependency for curl + to libcurl3 + +2008-07-18 Dan Locks + * configure.in: add format-security to gcc compile flags + * server-src/amindexd.c, + server-src/dumper.c, + server-src/reporter.c, + restore-src/restore.c, + common-src/security-util.c, + common-src/bsd-security.c: replacemented unquoted strings in + function arguments with "%s", arg. jrfranks's suggestion, dustin provided + syntax for the fix. + +2008-07-17 Dan Locks + * packaging/debian/amanda-enterprise-backup-*.install: added entries for + applications and devices man pages. + +2008-07-17 Jean-Louis Martineau + * man/Makefile.am: Add amzfs-snapshot.8 + * man/xml-source/amzfs-snapshot.8.xml: New man page. + * man/xml-source/amanda.8.xml: Add amzfs-snapshot.8 + * man/xml-source/amanda-scripts.7.xml: Add amzfs-snapshot.8 + * application-src/amzfs-snapshot.pl: New script + * application-src/Makefile.am: Add amzfs-snapshot + * perl/Amanda/Util.swg: Add sanitise_filename. + +2008-07-17 Jean-Louis Martineau + * amandad-src/amandad.c: amandad must be run by root for krb5 auth. + +2008-07-16 Jean-Louis Martineau + * server-src/driver.c: Improve message in failure to dump in degraded + mode. + +2008-07-16 Dan Locks + * packaging/deb/control, + packaging/rpm/amanda.spec: added explicit dependency on openssl, and a + build dependency for openssl and curl development files. + +2008-07-15 Dustin J. Mitchell + * example/xinetd.amandaserver.in example/xinetd.amandaclient.in: + specifying both IPv{4,6} does not work; remove IPv4 + +2008-07-15 Jean-Louis Martineau + * man/Makefile.am: Add new man pages. + * man/xml-source/script-email.8.xml: New man page. + * man/xml-source/amanda.8.xml: List new man pages. + * man/xml-source/amanda-scripts.7.xml: New man page. + +2008-07-15 Dustin J. Mitchell + * configure.in: generate (x)inetd files + * example/inetd.conf.amandaclient.in example/xinetd.amandaclient.in + example/xinetd.amandaserver.in: give appropriate path for amandad, + from configure (fixes builds on 64-bit machines) +2008-07-15 Dustin J. Mitchell + * client-src/client_util.c: #include "glib-util.h" + * common-src/glib-util.c: New g_ptr_array_foreach fucntion. + * common-src/glib-util.h: Prototype of g_ptr_array_foreach. + * device-src/rait-device.c: Remove g_ptr_array_foreach. + +2008-07-15 Jean-Louis Martineau + * client-src/client_util.c: Read stdout of scripts. + * client-src/client_util.h: New prototype for run_client_scripts, + New client_script_result_t struct. + * client-src/sendbackup.c: Send scripts properties to application. + * client-src/sendsize.c: Send scripts properties to application. + * client-src/selfcheck.c: Send scripts properties to application. + * recover-src/extract_list.c: Send scripts properties to application. + * common-src/amxml.h (script_t) Add field to keep result of script. + * common-src/amxml.c: Set script->result to NULL. + +2008-07-14 Dan Locks + * packaging/rpm/amanda.spec: fix macro detection of fedora version + +2008-07-14 Dan Locks + * packaging/rpm/amanda.spec: fix distribution detection, add + activate-devpay to server files list + +2008-07-11 Dustin J. Mitchell + * installcheck/Amanda_Changer.pl: set up and parse a config, now that + Amanda::Changer needs one + +2008-07-11 Dustin J. Mitchell + * perl/Amanda/Changer.pm: set device properties when testing device + labels in the changer + +2008-07-11 Jean-Louis Martineau + * application-src/amgtar.c: Add a DIRECTORY property. + * man/xml-source/amgtar.8.xml: Document DIRECTORY property. + +2008-07-11 Dustin J. Mitchell + * changer-src/chg-lib.sh.in: remove bogus Log() invocations + +2008-07-11 Dustin J. Mitchell + * man/xml-source/amanda.8.xml: fix amanda(8) formatting and add links + to new manpages + +2008-07-11 Dustin J. Mitchell + * installcheck/Amanda_Device.pl: be more liberal in the flags that are + accepted from S3's read_label; this will reduce false failures + +2008-07-11 Jean-Louis Martineau + * client-src/client_util.c: Remove unused output_tool_property function. + * client-src/client_util.h: Remove output_tool_property prototype. + * man/xml-source/amanda-client.conf.5.xml: Add application and script + sections. + * man/xml-source/amanda.conf.5.xml: Improve application and script + sections. + * device-src/device.c: Fix for new property_t. + * server-src/diskfile.h: Change prototype for xml_application and + xml_scripts. + * server-src/diskfile.c: Add tag if client support it. + * server-src/amindexd.c: Fix call to xml_application. + * server-src/amcheck.c: Fix call to xml_application. + * server-src/planner.c: Fix call to xml_application. + * server-src/driverio.c: Fix call to xml_application. + * server-src/server_util.c: Remove code to write property to stdin of + script. + * perl/Amanda/Config.swg: Fix for new property_t. + * perl/amglue/amglue.h: Prototype for g_hash_table_to_hashref_property. + * perl/amglue/ghashtable.c: New g_hash_table_to_hashref_property + function. + * installcheck/Amanda_Config.pl: Fix for new property_t. + * common-src/util.c: Remove unused output_tool_proplist fucntion, + Fix for new property_t. + * common-src/util.h: Remove output_tool_proplist prototype. + * common-src/amxml.c:Fix for new property_t, parse priority of property. + * common-src/conffile.c: Parse priority of a property, + Add application and script to amanda-client.conf. + * common-src/conffile.h: New property_t struct. + * common-src/amfeatures.h: New fe_xml_property_priority amfeature. + * common-src/amfeatures.c: New fe_xml_property_priority amfeature. + +2008-07-11 Jean-Louis Martineau + * man/entities/global.entities: Add ENTITY email.jlm. + * man/Makefile.am (CLIENT_MAN_PAGES): Set to amanda-applications.7, + amgtar.8 and amstar.8. + * man/xml-source/amanda.conf.5.xml: Fix , it must be + at the begining of a line. + * man/xml-source/amanda-applications.7.xml: New page. + * man/xml-source/amgtar.8.xml: New page. + * man/xml-source/amstar.8.xml: New page. + +2008-07-09 Ian Turner + * device-src/device.h: Clarify documentation of device_read_label(). + * device-src/s3-device.c, device-src/tape-device.c, + device-src/vfs-device.c (device_read_label): Always clear volume + labels, even if device is in error. + * device-src/rait-device.c: Ditto; also properly handle properties + that change device labels. + +2007-07-09 Nikolas Coukouma + * man/xml-source/amanda-devices.7.xml: Document the S3_BUCKET_LOCATION + property (for setting location constraints). + +2008-07-08 Dustin J. Mitchell + * device-src/vfs-device.c device-src/tape-device.c: do not autofinish + when EOF occurs on writing + +2008-07-08 Dustin J. Mitchell , + Nikolas Coukouma , + Ian Turner , + Jean-Louis Martineau + Amanda has been analyzed with Klocwork source code analysis, the most + accurate and comprehensive tool for finding critical programming + errors and security vulnerabilities. + * amandad-src/amandad.c changer-src/chg-scsi.c + client-src/client_util.c client-src/selfcheck.c + client-src/sendbackup.c client-src/sendsize.c common-src/amfeatures.c + common-src/bsd-security.c common-src/fileheader.c + common-src/local-security.c common-src/queueing.c + common-src/security-util.c device-src/property.c + device-src/rait-device.c device-src/tape-device.c + device-src/vfs-device.c recover-src/set_commands.c + restore-src/amidxtaped.c restore-src/amrestore.c restore-src/restore.c + server-src/amadmin.c server-src/amcheck.c server-src/amindexd.c + server-src/changer.c server-src/chunker.c server-src/cmdline.c + server-src/driver.c server-src/holding.c server-src/logfile.c + server-src/reporter.c server-src/server_util.c + server-src/taper-file-source.c: fix many issues identified + by Klockwork, ranging in severity from stylistic to minor. + - many memory leaks in error paths and application shutdown + - better handling of incorrect commandline arguments + - better resource management (file descriptors, etc.) + +2008-07-07 Nikolas Coukouma + * device-src/Makefile.am: conditionalize activate-devpay on + WANT_S3_DEVICE + +2007-07-06 Nikolas Coukouma + * device-src/s3-device.c, device-src/s3.c, device-src/s3.h, + device-src/activate-devpay.c, device-src/Makefile.am: + Allow both regular S3 and S3-with-DevPay to be used in + the same installation. Remove WANT_DEVPAY macro. + * device-src/s3-device.c: Added a flag, is_devpay, to the device + and handled divergent cases. Removed useless device_error_set calls. + * device-src/s3.c: Use DevPay authentication iff user_token is set. + Replaced some if statements about non-NULL pointers with assertions. + * config/amanda/s3-device.m4, device-src/Makefile.am: + remove devpay flag and WANT_DEVPAY definition. + * installcheck/Amanda_Device.pl: add tests for DevPay, refactor + other S3 tests. + +2007-07-06 Nikolas Coukouma + * device-src/s3.c: wait for bucket to appear after creation, treat + missing bucket as temporary error, increase retries from 5 to 14 + (about 3min), explicitly handle HTTP verbs as libcurl expects. + * installcheck/Amanda_Device.pl: remove (now-irrelvant) note about + buckets taking too long to appear. + +2008-07-06 Dan Locks + * packaging/deb/amanda-backup-server.postrm + packaging/deb/amanda-backup-client.postrm: removed unused + code + * packaging/deb/postrm: fixed typo in deluser command + * packaging/deb/rules: added specific preinst and postrm scripts for + client and server. + +2008-07-03 Dustin J. Mitchell + * man/Makefile.am man/amanda.css man/index.php man/xslt/html.xsl.in: + new files for HTML output + * man/xslt/man.xsl.in: substitute XSLT_VERS + * man/xml-source/amanda-devices.7.xml: tweaks + * man/xml-source/amanda.8.xml: tweaks + * man/xml-source/amanda.conf.5.xml: tweaks + * man/xml-source/amgetconf.8.xml: tweaks + * man/xml-source/amtoc.8.xml: tweaks + +2008-07-03 Dustin J. Mitchell + * common-src/genversion.c: correctly represent available amflock + implementations + +2008-07-03 Jean-Louis Martineau + * perl/Amanda/Xfer.swg: #include "glib-util.h" + +2008-07-02 Dustin J. Mitchell + * device-src/rait-device.c: don't use self->device_name in open_device + +2008-07-02 Dustin J. Mitchell + * installcheck/amgetconf.pl: supply a plugin for scripts + +2008-07-02 Jean-Louis Martineau + * server-src/diskfile.c: Check an application is set if + program == "APPLICATION". + * common-src/amxml.c: Check plugin is set for application and script. + * common-src/conffile.c: Check plugin is set for application and script + +2008-07-02 Jean-Louis Martineau + * server-src/amstatus.pl: Fix printing of config path on error. + +2008-07-02 Dustin J. Mitchell + * installcheck/Amanda_Device.pl: test that start(READ) without first + reading the label doesn't cause errors + * device-src/s3-device.c: call s3_device_read_label directly + +2008-07-02 Ian Turner + * man/xml-source/amanda.8.xml: Document how to override device + properties. + +2008-07-02 Ian Turner + Dustin J. Mitchell contributed code and thoughts + to this patch. + * man/xml-source/amanda-devices.7.xml: Document new ERROR flag + to start RAIT device in degraded mode. + * device/device.c: Be a little more forgiving of NULL devices. + * device-src/vfs-device.c: Fix a bug where vfs_device_start() + would sometimes throw an erroneous assertion. + * device-src/rait-device.c: Be much more robust in error handling; + new feature to start a RAIT device in degraded mode. + * installcheck/Amanda_Device.pl: Enable more RAIT device tests. + +2008-07-02 Dustin J. Mitchell + * common-src/amanda.h: remove unused #include + +2008-07-02 Dustin J. Mitchell + * device-src/tape-device.c: add "user" and "good" to feature flags + * man/xml-source/amanda-devices.7.xml: document it + +2008-07-01 Dustin J. Mitchell + * device-src/device.h: fix comments to reflect removal of + autofinishing + * device-src/tape-device.c: remove autofinishing + +2008-07-01 Dustin J. Mitchell + * changer-src/chg-lib.sh.in: also handle bare tape dev names + +2008-07-01 Dustin J. Mitchell + * changer-src/chg-lib.sh.in: fix tape_device_filename to not use perl + * changer-src/chg-zd-mtx.sh: always use the unqualified hostname to + open the debug file + +2008-06-30 Dustin J. Mitchell + * common-src/match.c: fix multiple bugs in match_datestamp + +2008-06-29 Dustin J. Mitchell + * perl/Amanda/Changer.pm perl/Amanda/Cmdline.swg + perl/Amanda/Config.swg perl/Amanda/DB/Catalog.pm + perl/Amanda/Device.swg perl/Amanda/Logfile.swg + perl/Amanda/Util.swg: POD cleanup + * perl/Makefile.am: new files, rules to make HTML + * perl/amperl.css: CSS file for online POD + * perl/make_html.pl: make online POD + +2008-06-29 Dustin J. Mitchell + * installcheck/Makefile.am installcheck/amstatus.pl: new check + +2008-06-27 Ian Turner + * server-src/taper.c: fix printing a NULL pointer in the error path + +2008-06-27 Dustin J. Mitchell + * device-src/device.c: check for and fail on multiple + short writes to the same file + * device-src/null-device.c device-src/rait-device.c + device-src/s3-device.c device-src/tape-device.c + device-src/vfs-device.c: do not autofinish files + * installcheck/Amanda_Device.pl installcheck/Amanda_Xfer.pl: don't + expect devices to autofinish anymore + * server-src/taper.c xfer-src/dest-device.c: finish files explicitly + * device-src/device-queueing.c: comments + * xfer-src/xfer-element.h: comments + +2008-06-27 Nikolas Coukouma + * device-src/s3.c device-src/s3.h device-src/s3-device.c installcheck/Amanda_Device.pl: + Add support for bucket location constraints + * device-src/s3-device.c: Add S3_BUCKET_LOCATION device property + * device-src/s3.c device-src/s3.h device-src/s3-device.c: + Checks for libcurl and bucket name compatability with location constraints + * device-src/s3.c: make s3_init() threadsafe, + refactor regex compilation and calling, + refactor perform_request() functions to construct URL later, + use GString to tidy string generation + * installcheck/Amanda_Device.pl: Add tests for location constraints + +2008-06-27 Ian Turner + * device-src/rait-device.c: Fix a memory corruption issue on the last + block of a file. + +2008-06-27 Ian Turner + * device-src/rait-device.c: Fix a memory corruption issue on the last + block of a file. + +2008-06-27 Ian Turner + * device-src/rait-device.c: Track file numbers properly when child + devices change them (that is, in rait_device_start_file() and + rait_device_seek_file()). + * installcheck/Amanda_Device.pl: Enable primary set of RAIT tests. + +2008-06-27 Jean-Louis Martineau + * device-src/s3-device.c (s3_device_read_label): Don't set + volume_header if nothing is read. + +2008-06-27 Jean-Louis Martineau + * device-src/device.c: Don't log is flag is DEVICE_STATUS_SUCCESS. + +2008-06-27 Dustin J. Mitchell + * device-src/tape-posix.c: return DEVICE_ERROR|DEVICE_BUSY on EIO + * changer-src/chg-lib.sh.in: keep waiting for a device if it *might* + be busy or offline + +2008-06-26 Jean-Louis Martineau + * application-src/amstar.c: Use local start_time variable. + * application-src/amgtar.c: Use local start_time variable. + * common-src/clock.h: Remove times_zero and start_time extern. + * common-src/clock.c: Remove times_zero. + +2008-06-25 Jean-Louis Martineau + * server-src/diskfile.c: Don't send encryption in xml req packet for + server encryption. + +2008-06-25 Dustin J. Mitchell + * application-src/amgtar.c: revert --atime-preserve change + +2008-06-22 Dustin J. Mitchell + * application-src/amgtar.c: change --atime-preserve=system to + --atime-preserve + +2008-06-20 Dustin J. Mitchell + * installcheck/amdump.pl: fix checks to refresh the test configuration + +2008-06-20 Dustin J. Mitchell , Ian Turner + * server-src/amdump.sh: correctly handle error exits from planner + * server-src/planner.c: fail if planning fails + * installcheck/amdump.pl: test changes + +2008-06-20 Dan Locks + * packaging/rpm/amanda.spec: typo amanda-devices.7.gz + +2008-06-20 Dan Locks + * packaging/rpm/amanda.spec: added %{MANDIR}/man7/amanda-device.7.gz + +2008-06-20 Jean-Louis Martineau + * client-src/client_util.c: Call check_access() only + if getuid() == geteuid(). + * application-src/amgtar.c: check_dir(argument->dle.device, R_OK) + +2008-06-19 Jean-Louis Martineau + * server-src/amcleanup.pl: Correctly rename amdump files. + +2008-06-19 Dustin J. Mitchell , Ian Turner + * man/Makefile.am man/xml-source/amanda-devices.7.xml: new manpage + * man/entities/global.entities: emails for dustin and ian + * man/xml-source/amanda.8.xml: refer to new manpage + * man/xml-source/amanda.conf.5.xml: refer to new manpage + * man/xml-source/amrecover.8.xml: refer to new manpage + * server-src/amcheck.c: fix message regarding WORM media + +2008-06-19 Dustin J. Mitchell + * server-src/amgetconf.pl: fail on bad parameters or subsections, but + not empty values or subsection lists + * perl/Amanda/Config.swg: publish a list of subsections + * installcheck/amgetconf.pl: test it + +2008-06-19 Dustin J. Mitchell + * example/template.d/amanda-single-tape.conf.in + example/template.d/amanda-harddisk.conf.in + example/template.d/amanda-tape-changer.conf.in + example/template.d/dumptypes example/template.d/amanda-S3.conf.in: + use application amgtar instead of program GNUTAR + +2008-06-19 Dustin J. Mitchell + * config/amanda/net.m4: AC_SUBST port ranges; update comments + +2008-06-19 Satya Ganga + * example/template.d/amanda-single-tape.conf.in + example/template.d/advanced.conf.in: update displayunit to "g" and + remove chg-manual for single tape configurations. + +2008-06-19 Ian Turner + * device-src/rait-device.c (rait_device_start): Check for consistent + volume label on all child devices, fail with + DEVICE_STATUS_DEVICE_ERROR otherwise. + * installcheck/Amanda_Device.pl: Test for foregoing. + +2008-06-19 Paddy Sreenivasan + * device-src/s3.h: use "https://ls.amazonaws.com/" as STS endpoint + +2008-06-19 Dustin J. Mitchell + * installcheck/Makefile.am: remove test_utils from SCRIPTS_PERL + * config/automake/scripts.am: explain why + +2008-06-18 Jean-Louis Martineau + * changer-src/chg-manual.sh: Make it interruptible. + +2008-06-18 Jean-Louis Martineau + * application-src/amgtar.c: Remove check for amandates file. + +2008-06-18 Jean-Louis Martineau + * common-src/amanda.h: Fix skip_quoted_string for "\\". + * common-src/file.c: Fix debug_agets for "\\". + +2008-06-18 Jean-Louis Martineau + * server-src/amstatus.pl: Report size of PART taped on 'dump to tape'. + +2008-06-18 Jean-Louis Martineau + * client-src/sendsize.c: Report error from application to server. + * application-src/amgtar.c: Report exit status of tar. + +2008-06-16 Dustin J. Mitchell + * perl/Amanda/Xfer.swg xfer-src/Makefile.am xfer-src/xfer-element.h + xfer-src/dest-device.c xfer-src/source-device.c: new elements + Amanda::Xfer:{Dest,Source}::Device + * perl/Amanda/Xfer.swg: POD fix for Amanda::Xfer:Filter::Xor + * installcheck/Amanda_Xfer.pl: tests for new elements + +2008-06-16 Dustin J. Mitchell + * installcheck/amservice.pl: add invocations of selfcheck for GNUTAR + and amgtar + * installcheck/amservice.pl: put -f switches first + +2008-06-15 Dustin J. Mitchell + * installcheck/Amanda_Config.pl: test config overwrites + * common-src/conffile.c: don't segfault applying config overwrites + after config_init(0, NULL) + +2008-06-13 Jean-Louis Martineau + * client-src/sendbackup.c: Run compression and encryption for + application-api. + +2008-06-13 Jean-Louis Martineau + * perl/Amanda/Util.swg: Expose get_original_cwd. + * application-src/amgtar_perl.pl, application-src/amoracle.pl: + chdir(get_original_cwd()) before restore. + +2008-06-13 Dustin J. Mitchell + * device-src/property.c device-src/property.h: remove tape properties + * device-src/tape-device.c device-src/tape-device.h: add tape + properties + +2008-06-12 Dan Locks + * packaging/rpm/amanda_enterprise.spec, + packaging/rpm/amanda_enterprise_client.spec, + packaging/deb/rules: install amgtar and amstar suid root + +2008-06-12 Jean-Louis Martineau + * client-src/selfcheck.c: Typo. - * Amanda 2.4.5 released. - * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.5). - * NEWS: Update for 2.4.5. +2008-06-11 Jean-Louis Martineau + * client-src/sendsize.c: Check MAX-LEVEL from application. + * server-src/planner.c: Ask for estimate even if SERVER, estimate is + valid if client return -1 and invelid if client return -2. + * common-src/amfeatures.h: New fe_xml_estimate amfeature. + * common-src/amxml.c: Parse tag. + * common-src/amxml.h (dle_t): New estimate field. + * common-src/amfeatures.c: Set fe_xml_estimate. + +2008-06-11 Jean-Louis Martineau + * client-src/client_util.c (application_property_add_to_argv): + Add include and exclude. + * client-src/client_util.h (application_property_add_to_argv): + New prototype. + * client-src/sendbackup.c, client-src/sendsize.c, + client-src/selfcheck.c, recover-src/extract_list.c: + Add bsu param to application_property_add_to_argv. + * client-src/selfcheck.c: Check if application support includ/exclude. + * application-src/amgtar_perl.pl: Don't support include/exclude. + * application-src/amgtar.c: Support include-optional and + exclude-optional. + * common-src/amxml.c: Fix include/exclude parsing. + +2008-06-11 Jean-Louis Martineau + * application-src/Makefile.am: Install amgtar and amstar suid root. + +2008-06-11 Jean-Louis Martineau + * client-src/selfcheck.c: Print cmdline before execing the application. + * application-src/generic-dumper.pl: Cleanup. + * application-src/script-oracle.pl: Cleanup. + * application-src/script-email.pl: Cleanup. + * application-src/amgtar_perl.pl: Cleanup. + * application-src/generic-script.pl: Cleanup. + * application-src/Makefile.am: Remove all scripts from CHECK_PERL. + * perl/Amanda/Debug.swg: Typo. + +2008-06-10 Dustin J. Mitchell + * common-src/Makefile.am: don't use $(builddir), fix comparison + * installcheck/Makefile.am: don't use $(builddir) + +2008-06-10 Ian Turner + * common-src/fileheader.c: Silence a compiler warning. + * device-src/rait-device.c: ditto. + +2008-06-10 Dustin J. Mitchell + * device-src/rait-device.c: hack around glib bug in versions <2.10.2 + using the precompiler macro instead of glib_check_version, which + doesn't exist in every version of glib + +2008-06-10 Dan Locks + * packaging/rpm/amanda.spec: Replaced individual SBINDIR/am... entries + with SBINDIR/am* in %%files + +2008-06-10 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: Add pre&post recover scripts. + +2008-06-09 Dan Locks + * packaging/rpm/buildpkg: added "|| exit 1" to any command which should + cause the script to fail. + +2008-06-09 Dan Locks + * packaging/rpm/amanda.spec: Changed individual SBINDIR/am... entries to + use a single SBINDIR/am* entry in %files + +2008-06-09 Dustin J. Mitchell + * common-src/fileheader.c: correctly free dle_str + * device-src/device.c device-src/device.h: add volume_header Device + attributes + * device-src/rait-device.c device-src/s3-device.c + device-src/tape-device.c device-src/vfs-device.c: populate + volume_header + * server-src/amlabel.c: use volume_header to detect a non-empty tape + and require a force (-f) to overwrite it + * server-src/taperscan.c: use volume_header to detect a non-empty tape + and require 'amlabel -f' to overwrite it + * device-src/tape-device.c device-src/vfs-device.c: fix read_label + return values and remove useless chain-up calls + +2008-06-09 Jean-Louis Martineau + * server-src/amservice.c: Open input file in read mode, prepend + get_original_cwd() to relative path. + * installcheck/Makefile.am: Check amservice only on server. + +2008-06-09 Dustin J. Mitchell + * installcheck/Amanda_Device.pl: skip all RAIT tests temporarily + +2008-06-09 Dustin J. Mitchell + * man/xml-source/amanda.8.xml: add links to amservice + +2008-06-07 Dustin J. Mitchell + * config/amanda/ipv6.m4: remove redundant AC_SOCKADDR_STORAGE + * configure.in: don't call AC_SOCKADDR_STORAGE + +2008-06-07 Dustin J. Mitchell + * installcheck/Amanda_Xfer.pl: make AMANDA_TMPDIR if it doesn't exist + +2008-06-07 Dustin J. Mitchell + * installcheck/Installcheck/Run.pm: fix Installcheck::Run vtape + handling so that checks can load/unload vtapes "manually" + +2008-06-07 Dustin J. Mitchell + * server-src/amdevcheck.pl: apply config_overwrites before printing + config errors + +2008-06-07 Dustin J. Mitchell + * application-src/amgtar_perl.pl application-src/amstar_perl.pl + application-src/generic-dumper.pl application-src/generic-script.pl + application-src/script-email.pl server-src/amgetconf.pl: add GPL + notice + +2008-06-06 Jean-Louis Martineau + * server-src/amservice.c: Exit with 1 if the connection fail. + * man/xml-source/amservice.8.xml: Document exit code. + +2008-06-06 Dustin J. Mitchell + * device-src/device.c: make device_set_error bulletproof to NULLs + * device-src/tape-posix.c: fix compilation error when GMT_ONLINE is + not defined + +2008-06-06 Jean-Louis Martineau + * man/Makefile.am: Add amservice.8. + * man/xml-source/amservice.8.xml: New man page for amservice. + * server-src/amservice.c: New program to execute an amanda service + on a client. + * server-src/Makefile.am: Add amservice + * installcheck/amservice.pl: New check for amservice program. + * installcheck/Makefile.am: Add amservice + +2008-06-06 Jean-Louis Martineau + * server-src/dumper.c: Don't quote dle_str. + * common-src/fileheader.c: DLE= in header is like heredoc. + +2008-06-06 Dustin J. Mitchell + * device-src/*: major overhaul: + - add device_set_error to set error status and message for Device + - every error return from a device API method sets error status + - device_status_error is now threadsave + - a device in an error state will not perform further operations + - ensure Device attributes are set correctly by member functions + - device_open never returns NULL, but may return a null device with + error status set + - clearly define $device_name="$device_type:$device_node" + - send RAIT logging to the debug log + - vfs, tape devices don't touch the device until read_label or start + - on out-of-space in write, set is_eof, finish the file, and return + FALSE + - use accessor functions in Amanda::Device + - move device-specific properties to live with their devices + - change g_return_val_if_fail to g_assert or explicit checks + - remove most default Device methods, as they were more confusing + than helpful + - misc. other cleanup + * device-src/null-device.h device-src/rait-device.h + device-src/s3-device.h device-src/vfs-device.h: removed to make most + device class declarations local to the source file + * perl/Amanda/Device.swg: new error handling + * perl/Amanda/Changer.pm restore-src/amrestore.c restore-src/restore.c + server-src/amcheck.c server-src/amcheckdump.pl + server-src/amdevcheck.pl server-src/amlabel.c server-src/amtape.c + server-src/taperscan.c: use new device error-handling + * server-src/taper-file-source.c server-src/taper-port-source.c + server-src/taper-source.c: rename GObject constants (typo) + * server-src/taper-source.h: + * server-src/taper.c: handle opening devices better, log on EOM + * common-src/glib-util.c: g_english_strjoinv: handle one-element lists + correctly + * installcheck/amdevcheck.pl: volume-unlabeled message has changed + * installcheck/Amanda_Device.pl perl/Amanda/Tests.swg: test all device + classes + * configure.in device-src/tests/: removed + * device-src/vfs-test.c: moved from device-src/tests/ + +2008-06-06 Jean-Louis Martineau + * client-src/sendbackup.c: Don't write the uncompression program if + it is not client compressed. + +2008-06-05 Jean-Louis Martineau + * server-src/taper.c: Log no-tape line. + +2008-06-05 Jean-Louis Martineau + * server-src/reporter.c: Improve formating. + +2008-06-05 Jean-Louis Martineau + * server-src/driver.c: start the degraded mode if it receive + NO-NEW-TAPE from taper. + +2008-06-05 Jean-Louis Martineau + * server-src/amcheckdump.pl: Check log fiels in directory if find_log + find no log for the timestamps. + +2008-06-05 Dustin J. Mitchell + * common-src/conffile.c common-src/conffile.h: expose config_add_error + * server-src/diskfile.c server-src/diskfile.h: use config_add_error + to send diskfile errors to conffile's error-handling mechanism + * restore-src/amfetchdump.c 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: parse disklist along with config + +2008-06-04 Jean-Louis Martineau + And Dustin J. Mitchell + * man/xml-source/amanda-client.conf.5.xml: Document property. + * installcheck/Amanda_Config.pl: Add test for client property. + * common-src/conffile.c (client_var): Add CONF_PROPERTY. + +2008-06-03 Jean-Louis Martineau + * perl/Amanda/Types.swg: Add dle_str to dumpfile_t. + * common-src/fileheader.c: Don't print NULL dle_str. + +2008-06-03 Jean-Louis Martineau + * common-src/amfeatures.h: Rename fe_amrecover_dle to fe_amindexd_DLE, + add fe_amrecover_dle_in_header. + * common-src/amfeatures.c: Set fe_amrecover_dle_in_header. + * recover-src/set_commands.c: Use fe_amindexd_DLE. + * server-src/dumper.c: Set dle_str and add it to the header. + * restore-src/restore.c: Remove dle_str is client doesn't have + fe_amrecover_dle_in_header. + * common-src/fileheader.c: Parse and set dle_str from header. + * common-src/fileheader.h: Add dle_str in dumpfile_t. + +2008-06-03 Jean-Louis Martineau + * man/xml-source/amdump.8.xml, man/xml-source/amreport.8.xml, + man/xml-source/amcheck.8.xml, man/xml-source/amflush.8.xml, + man/xml-source/amstatus.8.xml: Add "EXIT CODE" section". + +2008-06-03 Jean-Louis Martineau + * common-src/conffile.c (parm_key_info): Don't fold '-' to '_' in + subsec_name. + * installcheck/amgetconf.pl: Fix and add more tests. + +2008-06-03 Dustin J. Mitchell + * common-src/amxml.c: give parse error on an empty "disk" element + * server-src/diskfile.c: give parse error on an empty "disk" element + +2008-05-30 Jean-Louis Martineau + * common-src/security-util.c: Remove unneeded pointer cast. + * common-src/stream.c: Fix compiler error. + +2008-05-30 Dustin J. Mitchell + * installcheck/Installcheck/Config.pm: fix subsection inheritance + +2008-05-30 Dustin J. Mitchell + * common-src/amanda.h, common-src/bsd-security.c, + common-src/bsdtcp-security.c, common-src/bsdudp-security.c, + common-src/dgram.c, common-src/dgram.h, common-src/krb5-security.c, + common-src/security-util.c, common-src/security-util.h, + common-src/sockaddr-util.c, common-src/sockaddr-util.h, + common-src/stream.c, common-src/util.c, common-src/util.h, + restore-src/amidxtaped.c, server-src/amindexd.c: add sockaddr_union, + change all relevant functions to use it, to avoid aliasing violations + +2008-05-30 Jean-Louis Martineau + * common-src/conffile.c (lookup_keyword): Use temporary variable. + * installcheck/Amanda_Config.pl: Check insentivity of -/_ in amanda + keyword. + * installcheck/Installcheck/Config.pm: Adjust to make the subsection + inheritance work. + +2008-05-30 Jean-Louis Martineau + * recover-src/extract_list.c: Send properties from dump_dle to + application plugin. + +2008-05-30 Jean-Louis Martineau + * client-src/client_util.c: New *-RECOVER scripts. + * application-src/script-email.pl: Add new *-RECOVER scripts. + * application-src/generic-script.pl: Add new *-RECOVER scripts. + * application-src/amstar.c: Fix. + * application-src/amgtar.c: Fix. + * recover-src/amrecover.c: Add a global dump_dle variable. + * recover-src/extract_list.c: Call run_client_scripts for *-RECOVER + scripts. + * recover-src/amrecover.h: Add an extern dump_dle variable. + * recover-src/set_commands.c: Send to amindexd the DLE command. + * server-src/amindexd.c: Handle the DLE command. + * server-src/server_util.c: Add *-RECOVER scripts, they can't be + executed on server. + * server-src/diskfile.c (xml_scripts): Add *-RECOVER scripts. + * common-src/amfeatures.h: New fe_amrecover_dle amfeature. + * common-src/amfeatures.c (am_init_feature_set): Add fe_amrecover_dle. + * common-src/amxml.c: Add *-RECOVER scripts. + * common-src/conffile.c: Add *-RECOVER scripts. + * common-src/conffile.h: Add *-RECOVER scripts. + +2008-05-29 Dustin J. Mitchell + * common-src/conffile.c: make config insensitive to + differences between '-' and '_' + * man/xml-source/amanda-client.conf.5.xml + man/xml-source/amanda.conf.5.xml + man/xml-source/amgetconf.8.xml: document it + * installcheck/Amanda_Config.pl installcheck/amgetconf.pl: update + tests + +2008-05-29 Orion Poplawski + * server-src/chunker.c: fix buffer overrun + +2008-05-29 Jean-Louis Martineau + * common-src/conffile.c (client_keytab): Remove "DEVICE-PROPERTY". + +2008-05-28 Dustin J. Mitchell + * device-src/rait-device.c: rait-device returns correct size when + blocksize is too small + +2008-05-28 Jean-Louis Martineau + * server-src/reporter.c: Fix ignoring pid line. + +2008-05-27 Jean-Louis Martineau + * config/amanda/ps.m4: Define PS_ARGUMENT to CYGWIN on cygwin. + * perl/Amanda/Process.pm: Works with PS_ARGUMENT eq "CYGWIN". + +2008-05-25 Jean-Louis Martineau + * server-src/amstatus.pl: use lib '@amperldir@'; + * perl/Amanda/Process.pm: use Amanda::Constants; + +2008-05-26 Dustin J. Mitchell + * device-src/rait-device.c: temporarily remove the call to set the + BLOCK_SIZE property on all RAIT children, as it fails with VFS + devices + * device-src/rait-device.c: rewrite g_ptr_array_union_robust to + correctly detect and handle child device failures + * common-src/fileheader.c: fix parse_file_header to be threadsafe + +2008-05-25 Jean-Louis Martineau + * device-src/tape-aix.c, device-src/tape-xenix.c + device-src/tape-posix.c: tape_is_ready take a (TapeDevice *) argument + * device-src/tape-posix.c (tape_is_ready): Check for broken_gmt_online. + * device-src/property.c: Add broken_gmt_online property. + * device-src/property.h: Add PROPERTY_BROKEN_GMT_ONLINE. + * device-src/tape-device.c: Use broken_gmt_online property. + * device-src/tape-device.h (TapeDevice): Add broken_gmt_online field. + * device-src/tape-ops.h (tape_is_ready): Change prototype. + +2008-05-25 Jean-Louis Martineau + * changer-src/chg-zd-mtx.sh: Fix logging. + +2008-05-25 Jean-Louis Martineau + * packaging/rpm/amanda.spec: Fix output message. + +2008-05-25 Dustin J. Mitchell + * common-src/Makefile.am common-src/simpleprng.c + common-src/simpleprng.h: new simple PRNG module for + reproducible use in tests (bitlength bug fixed). + * xfer-src/dest-null.c: verify stream against PRNG + * xfer-src/source-random.c: use PRNG to create stream + * installcheck/Amanda_Xfer.pl: verify streams in xfers + * perl/Amanda/Xfer.swg: use PRNG + * xfer-src/xfer-element.h xfer-src/xfer-test.c: use + PRNG to test glue elements + +2008-05-23 Dustin J. Mitchell + * installcheck/Amanda_MainLooop.pl: handle SIGCHILD while + reading from dying child + +2008-05-22 Dustin J. Mitchell + * xfer-src/xfer-test.c: don't try to write to a file in the + source directory + +2008-05-22 Jean-Louis Martineau + * perl/Amanda/Process.pm (load_ps_table): Fix split. + +2008-05-22 Jean-Louis Martineau + * configure.in: Call AMANDA_PS_ARGUMENT + * config/amanda/ps.m4 (AMANDA_PS_ARGUMENT): New macro to find ps + argument. + * perl/Amanda/Constants.pm.in: Add PS_ARGUMENT. + * perl/Amanda/Process.pm (load_ps_table): Use PS_ARGUMENT. + +2008-05-22 Jean-Louis Martineau + * perl/Amanda/Process.pm: process_alive return '' if the process is + dead. + * installcheck/Amanda_Process.pl: New module to check Amanda::Process. + * installcheck/Makefile.am (server_tests): Add Amanda_Process. + +2008-05-21 Jean-Louis Martineau + * server-src/amstatus.pl: Add "failed: killed while" to some status if + the driver process is dead. + * perl/Amanda/Process.pm: New process_alive function. + +2008-05-21 Jean-Louis Martineau + * server-src/dumper.c server-src/planner.c, server-src/chunker.c, + server-src/amflush.c, server-src/driver.c, server-src/taper.c, + restore-src/amidxtaped.c, restore-src/restore.c, + restore-src/amfetchdump.c: Convert all pid_t to long before printing. + +2008-05-21 Jean-Louis Martineau + * man/xml-source/amcleanup.8.xml: Document new -p option. + * server-src/logfile.c (program_str): Add many programs. + * server-src/logfile.h (program_e): Add many programs. + * server-src/dumper.c, server-src/planner.c, + server-src/chunker.c, server-src/amflush.c, + server-src/driver.c, server-src/taper.c, + restore-src/amidxtaped.c, restore-src/restore.c, + restore-src/amfetchdump.c, + server-src/amdump.sh: Log pid and pid-done lines, call run_amclenup. + * server-src/server_util.c (run_amcleanup): New function to run + amcleanup. + * server-src/server_util.c (get_master_process): New function get the + name of the first pid line in a log file. + * server-src/server_util.h (run_amcleanup): Prototype. + * server-src/server_util.h (get_master_process): Prototype. + * server-src/reporter.c: Ignore pid and pid-done lines. + * server-src/amcleanup.pl: New amcleanup program written in perl. + * server-src/Makefile.am: Move amcleanup from SCRIPTS_SHELL to + SCRIPTS_PERL. + * server-src/amcleanup.sh: Old program removed. + * perl/Amanda/Process.pm: New module to hanlde amanda process. + * perl/Makefile.am: Add Amanda/Process.pm to Amanda_DATA and EXTRA_DIST + +2008-05-21 Jean-Louis Martineau + * server-src/driver.c: Fix quoting of diskname. + +2008-05-20 Dustin J. Mitchell + * configure.in config/amanda/socklen_t_equiv.m4: detect the type (not + necessarily socklen_t used by getpeername et al. + * amandad-src/amandad.c server-src/amindexd.c restore-src/amidxtaped.c + common-src/util.c common-src/bsdtcp-security.c common-src/amanda.h + common-src/krb5-security.c common-src/dgram.c common-src/stream.c: + use the type instead of socklen_t + +2008-05-20 Jean-Louis Martineau + Dustin J. Mitchell + John Franks + * server-src/amstatus.pl: quote disknames in amstatus + * server-src/Makefile.am: don't check amstatus (since it + uses Amanda::* libs) + * perl/Amanda/Util.swg: add (un)quote_string + * installcheck/Amanda_Util.pl installcheck/Makefile.am: test it + +2008-05-16 Jean-Louis Martineau + * common-src/conffile.c: Fix conf_parserror use. + +2008-05-15 Dustin J. Mitchell + * perl/Makefile.am installcheck/Makefile.am Makefile.am: only build + XFA in server builds + +2008-05-15 Jean-Louis Martineau + * common-src/conffile.c: Parse send-amreport-on. + * common-src/conffile.h (send_amreport_t): New enum for possible value + of send-amreport-on. + * server-src/reporter.c: Use send-amreport-on setting. + * perl/Amanda/Config.swg: Define send_amreport_on_t constants. + * man/xml-source/amanda.conf.5.xml: Document send-amreport-on. + +2008-05-15 Jean-Louis Martineau + * client-src/client_util.c (application_property_argv_size): New + function to count the number of argument needed to store all + properties of an application for + * a dle in an ARGV. + * client-src/client_util.c (application_property_add_to_argv): New + function to add all properties of an application for a dle to an ARGV. + * client-src/client_util.h (application_property_argv_size, + application_property_add_to_argv): Prototype. + * client-src/sendbackup.c, client-src/sendsize.c, + client-src/selfcheck.c: Use new functions to pass properties as + argument to application plugin. + * application-src/script-email.pl, application-src/amstar.c, + application-src/generic-script.pl, + application-src/amgtar.c: Get properties from command line. + * server-src/server_util.c: Use new functions to pass properties as + argument to pre/post script. + * common-src/util.c (count_proplist): Callback function to count the + number of values of a property. + * common-src/util.c (proplist_add_to_argv): callback function to store a + property and it's value in an ARGV. + * common-src/util.h (count_proplist, proplist_add_to_argv): Prototype. + * common-src/conffile.c (property_argv_size): New function to count the + number of properties. + * common-src/conffile.c (property_add_to_argv): New function to store a + property and it's value in an ARGV. + * common-src/conffile.h (property_argv_size, + property_add_to_argv): Prototype. + +2008-05-15 Dustin J. Mitchell + * xfer-src/Makefile.am: add element-glue.h to the distribution + * xfer-src/element-glue.h: add 'extern' + * xfer-src/xfer-test.c: fix test elements + * xfer-src/xfer.c: don't use the sometimes-undefined constant + G_MAXINT32 + * xfer-src/source-random.c: Only use 'prolong' for threads, not + push/pull methods + * installcheck/Amanda_Xfer.pl: Check the content of $msg->{message} in + XMSG_INFO + +2008-05-14 Dustin J. Mitchell + * xfer-src/xfer-element.h xfer-src/xfer.c xfer-src/dest-null.c + xfer-src/source-random.c xfer-src/xfer-test.c + xfer-src/element-glue.c xfer-src/xmsg.h xfer-src/dest-fd.c + xfer-src/source-fd.c xfer-src/element-glue.h + xfer-src/Makefile.am xfer-src/filter-xor.c + xfer-src/xfer-element.c perl/Amanda/Xfer.swg: new organization + of transfer mechansims and new algorithm for linking xfers, with + expanded unit tests to exercise new glue elements + * installcheck/Amanda_Xfer.pl: updated installchecks + * common-src/semaphore.h: fix comment typo + * common-src/testutils.c common-src/testutils.h: optionally skip + timeouts (-t), and only show g_debug messages if -d is given + +2008-05-14 Dustin J. Mitchell + * client-src/amhpfixdevs.sh client-src/Makefile.am + client-src/amsinixfixdevs.sh config/amanda/devprefix.m4: + permanently remove amsinixfixdevs and amhpfixdevs + +2008-05-12 Jean-Louis Martineau + Patch by Orion Poplawski + * server-src/planner.c: Warn about overwrite of last level 1, and + force backup of level 1 if overwrite on this run. + +2008-05-08 Jean-Louis Martineau + * common-src/conffile.c: Define default tapetype. + +2008-05-08 Jean-Louis Martineau + * device-src/tape-device.c (tape_validate_properties): New function to + validate properties. + +2008-05-07 Jean-Louis Martineau + * man/xml-source/amdevcheck.8.xml: Add an OUTPUT section. + +2008-05-07 Jean-Louis Martineau + * common-src/conffile.c: Check the tapetype is defined. + +2008-05-07 Jean-Louis Martineau + * device-src/tape-device.c: Allow user to set "read_buffer_size" + property. + * restore-src/amrestore.c: Don't limit blocksize to + --with-maxtapeblocksize. + * common-src/conffile.c: Increase readblocksize to blocksize. + blocksize and readblocksize can be bigger than + --with-maxtapeblocksize. + +2008-05-06 Jean-Louis Martineau + * common-src/conffile.c: Add a 'mailer' config parameter. + * common-src/conffile.h: Add CNF_MAILER. + * changer-src/chg-scsi-chio.c, changer-src/chg-scsi.c + changer-src/chg-manual.sh, application-src/script-email.pl + server-src/amcheck.c server-src/amgetconf.pl + server-src/reporter.c: Use mailer from config. + * perl/Amanda/Config.swg: amglue_add_constant(CNF_MAILER, confparm_key) + * config/amanda/progs.m4: Set DEFAULT_MAILER. + * common-src/amanda-sh-lib.sh.in: Don't set MAILER. + * man/xml-source/amanda-client.conf.5.xml, + man/xml-source/amanda.conf.5.xml, + man/xml-source/amgetconf.8.xml: Update man pages. + +2008-05-02 Dan Locks + * packaging/rpm/amanda.spec: Replace ${ with %{ where applicable. + +2008-05-02 Dan Locks + * packaging/deb/amanda-enterprise-backup-server.postinst + packaging/rpm/amanda_enterprise.spec: Change .am_passphrase to a + semi-random number in both packages. + +2008-04-29 Dustin J. Mitchell + * config/amanda/dirs.m4: note that --with-dumperdir is + deprecated in ./configure --help + + +2008-04-24 Jean-Louis Martineau + * restore-src/restore.c: Fix test for DEVICE_STATUS_SUCCESS. + +2008-04-28 Dustin J. Mitchell + * xfer-src/Makefile.am xfer-src/xfer-element.h xfer-src/dest-fd.c + xfer-src/source-fd.c perl/Amanda/Xfer.swg: add new + Amanda::Xfer::Source::Fd, Amanda::Xfer::Dest::Fd + * xfer-src/source-random.c xfer-src/xfer.c xfer-src/dest-null.c + xfer-src/xfer.h xfer-src/filter-xor.c xfer-src/xfer-element.c: + reorganize detection of transfer completion, to handle cases where + elements don't do any active processing + * installcheck/Amanda_Xfer.pl: test it all + +2008-04-24 Jean-Louis Martineau + * server-src/reporter.c: Correctly print truncated quoted diskname. + +2008-04-23 Dustin J. Mitchell + * installcheck/Amanda_MainLoop.pl common-src/event-test.c + common-src/queueing-test.c: try to make tests more resilient + to heavily-loaded, slow machines + +2008-04-23 Jean-Louis Martineau + * common-src/security-util.c: Typo. + +2008-04-23 Jean-Louis Martineau + * server-src/driver.c: Always sent a FAILED to taper if dumper failed. + * common-src/event.c: Check event is not dead before fire it. + +2008-04-23 Jean-Louis Martineau + * server-src/planner.c: Fix vstrextend use. + +2008-04-23 Dustin J. Mitchell + * common-src/event.c: use internal child_watch_source + for glib <2.6.0; versions 2.4.0 to 2.6.0 use unreliable + signals and are thus unreliable + +2008-04-22 Dustin J. Mitchell + * perl/Amanda/Logfile.swg server-src/find.c server-src/find.h: add + parsing of 'sec' and 'kb' from logfile messages + * perl/Amanda/DB/Catalog.pm perl/Makefile.am: new module + * installcheck/Amanda_DB_Catalog.pl installcheck/Makefile.am: checks + for new module + +2008-04-22 Dustin J. Mitchell + * common-src/event.c: on glib <2.4.0, use a simple polling + child_watch_source; on more recent glib, use glib's own + child_watch_source + +2008-04-22 Dustin J. Mitchell + * xfer-src/source-random.c xfer-src/xmsg.c xfer-src/xfer-element.h + xfer-src/xfer-dest.c xfer-src/xfer-test.c xfer-src/xmsg.h + xfer-src/xfer.c xfer-src/xfer-dest.h xfer-src/dest-null.c + xfer-src/xfer.h xfer-src/filter-xor.c xfer-src/xfer-element.c: + - flatten XferElement hierarchy to one level + - change test element argument order + - rename XMsg.src to Xmsg.elt + - Improve memory management (refcounting, perl interface) + * perl/Amanda/Changer.pm perl/Amanda/Xfer.swg + perl/Amanda/MainLoop.swg perl/Makefile.am + perl/amglue/amglue.h perl/amglue/source.c: + - rewrite handling of amglue_Source for better refcounting + - Amanda::MainLoop callbacks get the event source as 1st argument, + and will be called even if the event source goes out of scope in + perl + - MainLoop.swg significantly rewritten to get refcounting right + * installcheck/Amanda_Xfer.pl: new checks (without excessive use of + file descriptors) + * installcheck/Amanda_MainLoop.pl installcheck/Makefile.am: updated + checks + +2008-04-22 Jean-Louis Martineau + * device-src/tape-posix.c: Don't return DEVICE_STATUS_VOLUME_MISSING + on ioctl error. + * changer-src/chg-lib.sh.in (amdevcheck_status): return 1 only if the + possible errors are VOLUME_MISSING or DEVICE_BUSY. + +2008-04-22 Kevin Zembower + * man/xml-source/amflush.8.xml: add amflush example + +2008-04-22 Jean-Louis Martineau + * device-src/tape-device.c: Move all device access from + tape_device_open_device to tape_device_read_label. + tape_device_start read the label if it is not already read. + * device-src/vfs-device.c (vfs_device_open_device): remove read of the + label. + +2008-04-22 Jean-Louis Martineau + * device-src/tape-device.c (check_resetofs): Compilation fix if + NEED_RESETOFS is defined. + * device-src/tape-posix.c: Handle no ENOMEDIUM. + +2008-04-21 Dan Locks + * packaging/deb/buildpkg: modified build script to create unsigned + packages + +2008-04-21 Jean-Louis Martineau + * changer-src/chg-lib.sh.in (amdevcheck_status): + Set amdevcheck_message. + * changer-src/chg-chs.sh, changer-src/chg-juke.sh, + changer-src/chg-manual.sh, changer-src/chg-zd-mtx.sh, + changer-src/chg-multi.sh: Output amdevcheck_message + * device-src/device.c: Set errmsg and status. + device_open always return a device, the status and errmsg are set. + * device-src/device.h: Define DeviceStatusFlags. + * device-src/null-device.c, device-src/s3-device.c, + device-src/tape-device.c, device-src/vfs-device.c, + device-src/rait-device.c: Set errmsg and status. + * device-src/tape-posix.c: Return status for VOLUME_MISSING. + * device-src/tape-ops.h: Remove TapeCheckResult. + * server-src/taper-source.h (_TaperSource): Add errmsg. + * server-src/taper-source.c: Set errmsg + * server-src/amcheck.c, server-src/amtape.c, server-src/amlabel.c, + server-src/taperscan.c, restore-src/amrestore.c, + restore-src/restore.c: Use status and errmsg of a device. + * server-src/taper-disk-port-source.c: Set errmsg. + * server-src/reporter.c: Fix parsing of taper PARTIAL line. + * server-src/taper.c: Use errmsg for device and _TaperSource. + * server-src/taper-file-source.c: Set errmsg. + * server-src/amcheckdump.pl, + server-src/amdevcheck.pl: Use status and errmsg from device. + * perl/Amanda/Changer.pm: Fix for DEVICE_STATUS_*. + * perl/Amanda/Device.swg: New interface. + * installcheck/Makefile.am: Don't print some commands. + * installcheck/Amanda_Device.pl: Check new device api. + * common-src/queueing.c: Use new queue_fd_t. + * common-src/queueing.h (queue_fd_t): new struct. + * common-src/amanda-sh-lib.sh.in: Fix bug. + * common-src/queueing-test.c: Use queue_fd_t. + +2008-04-21 Dustin J. Mitchell + * installcheck/amgetconf.pl: properly quote filenames in + regex, to avoid spurious failures when e.g., '+' appears + in the filename + +2008-04-18 Dustin J. Mitchell + * perl/Amanda/Changer.pm: rewrite Amanda::Changer to use + Amanda::MainLoop, allowing asynchronous operation of + changers + * server-src/amcheckdump.pl: use new Amanda::Changer + interface (synchronously, until we have Amanda::Xfer) + * installcheck/Amanda_Changer.pl: test new interface + +2008-04-18 Dustin J. Mitchell + * installcheck/Makefile.am: build $(full_tests) too + +2008-04-18 Cyrille Bollu + * client-src/sendsize.c: use --numeric-owner during 'sendsize' + +2008-04-17 Dustin J. Mitchell + * installcheck/Makefile.am: segregate installchecks that require + both client and server components + +2008-04-17 Dustin J. Mitchell + * common-src/debug.c: add Amanda version to debug logs + +2008-04-16 Dustin J. Mitchell + * perl/Amanda/Util.swg common-src/util.c common-src/util.h: add + process type and context process attributes + * perl/Amanda/Debug.swg common-src/debug.c common-src/debug.h: add + debug_init to set up debugging according to the process context, and + log nothing in CONTEXT_SCRIPTUTIL + * server-src/amgetconf.pl server-src/amdevcheck.pl: + CONTEXT_SCRIPTUTIL + * server-src/amcheckdump.pl: use new $CONSTANT_CMDLINE variable + * installcheck/Amanda_Debug.pl: add comment + +2008-04-16 Dan Locks + * Fixes to debian package reported by daniel_P + * packaging/deb/preinst: remove spaces near ${amanda_group} + * packaging/deb/amanda-backup-server.dirs + packaging/deb/amanda-backup-client.dirs: added var/amanda and + usr/share/lintian/overrides + * packaging/deb/rules: added logic to find PERLSITELIB and append that + to amanda-backup-server.install, removed broken brace expansion + * packaging/deb/buildpkg: removed extraneous configure step + * packaging/deb/amanda-backup-server.postinst: added check for correct + permissions on /tmp/amanda + +2008-04-16 Dan Locks + * packaging/deb/rules packaging/rpm/amanda.spec: remove --with-gnutar= + from configure invocation. no longer necessary. + +2008-04-16 Dustin J. Mitchell + * device-src/s3.c config/amanda/s3-device.m4: test curl features + at runtime, instead of compile time, and always use SSL if it + is available. + +2008-04-16 Jean-Louis Martineau + * server-src/amadmin.c: Improve message. + * man/xml-source/amanda.conf.5.xml: Fix man page. + * server-src/planner.c: Fix DS_INCRONLY and FORCE_FULL. + +2008-04-16 Dustin J. Mitchell + * config/amanda/dumpers.m4: continue searching for gnutar if we + find a binary claiming to be gnu tar that is not. This gets + around serious breakage on Ubuntu, where star is installed as + /bin/gnutar, but /bin/tar is actually GNU Tar. + +2008-04-15 Dustin J. Mitchell + * common-src/file.c(mk1dir): fix reversed conditional to handle + a race condition + +2008-04-15 Jean-Louis Martineau + * common-src/debug.c (debug_logging_handler, debug_printf): Don't print + msg_timestamp() to stderr. + +2008-04-15 Jean-Louis Martineau + * server-src/dumper.c: Call error() only after set_logerror is done. + * server-src/planner.c: Call error() only after set_logerror is done. + * server-src/chunker.c: Report a better error message. + * common-src/stream.c: Set errno to ETIMEDOUT after a timeout. + +2008-04-15 Jean-Louis Martineau + * server-src/find.c (dumps_match_dumpspecs): New function to only keep + dumps that match a dumpspecs, using it simplify amfetchdump. + * server-src/find.h (dumps_match_dumpspecs): Prototype. + * restore-src/amrestore.c: Add a first_restored_file to + search_a_tape(), to allow restore ot stop after the first image. + * restore-src/restore.c: Set first_restored_file, it was never set, + it's needed to stop after the first image. + * restore-src/restore.c (restore_from_tapelist): break if piping to + stdout. + * restore-src/amfetchdump.c: Use dumps_match_dumpspecs. + * restore-src/amfetchdump.c: If -p, the keep only one dump. + * perl/Amanda/Logfile.swg (dumps_match_dumpspecs): New prototype. + * perl/Amanda/Cmdline.swg: cmdline_parse_dumpspecs. + * perl/amglue/dumpspecs.swg: Map dumpspecs to perl. + * perl/Makefile.am (AMGLUE_SWG): Add amglue/dumpspecs.swg. + * installcheck/Amanda_Logfile.pl: Add many tests. + +2008-04-15 Jean-Louis Martineau + * tape-src/tapetype.c: Initialize an default config. + +2008-04-15 Jean-Louis Martineau + * common-src/util.c (connect_portrange, connect_port, bind_portrange): + Return the latest errno reported. + +2008-04-08 Dustin J. Mitchell + * common-src/conffile.c common-src/conffile.h + perl/Amanda/Config.swg installcheck/Amanda_Config.pl: + new interface for config errors, re-introduce rawtapedev for + deprectation purposes + * installcheck/Installcheck/Config.pm: support test + amanda-client.conf files + * installcheck/Installcheck/Run.pm: add get_stdout, get_stderr + * client-src/client_util.c client-src/client_util.h: add + config_errors_to_error_string + * server-src/dumper.c server-src/planner.c: handle ERRORs and NAKs + better, so users see client-side config errors + * oldrecover-src/amrecover.c changer-src/chg-scsi-chio.c + changer-src/chg-scsi.c client-src/sendbackup.c client-src/sendsize.c + client-src/selfcheck.c amandad-src/amandad.c application-src/amstar.c + application-src/amgtar.c recover-src/amrecover.c + server-src/amlogroll.c server-src/amindexd.c server-src/amcheck.c + server-src/amgetconf.pl server-src/chunker.c server-src/amadmin.c + server-src/amtape.c server-src/amcheckdump.pl + server-src/amcleanupdisk.c server-src/amflush.c server-src/amtrmlog.c + server-src/driver.c server-src/reporter.c server-src/taper.c + server-src/amdevcheck.pl server-src/amtrmidx.c server-src/diskfile.c + server-src/amlabel.c installcheck/Amanda_Changer.pl + installcheck/Amanda_Device.pl installcheck/Amanda_Logfile.pl + installcheck/Amanda_Tapelist.pl restore-src/amidxtaped.c + restore-src/amrestore.c restore-src/amfetchdump.c: adapt to new config + error interface + +2008-04-08 Dustin J. Mitchell + * server-src/diskfile.c: improve messages when client does not + support required features + +2008-04-08 Dustin J. Mitchell + * installcheck/Amanda_Config.pl common-src/conffile.c + common-src/conffile.h: fix deprecation of keywords to + actually issue a warning. 'netusage' is no longer + deprecated. + +2008-04-08 Dustin J. Mitchell + * common-src/event.c: use SA_RESTART for child_watch_source + +2008-04-07 Dustin J. Mitchell + * perl/Amanda/MainLoop.swg perl/amglue/source.c + installcheck/Amanda_MainLoop.pl: wrap GMainLoop and the + GSources defined in event.c, using an extensible model + * common-src/event.c: check whether child_watch_source's signal + handler has been replaced, and issue a warning if it has. + +2008-04-07 Dustin J. Mitchell + * common-src/queueing.c: fix condition (thanks to Jean-Louis + Martineau) + +2008-04-07 Dustin J. Mitchell + * common-src/Makefile.am common-src/queueing-test.c: new tests + * device-src/tests/queue_test.c device-src/tests/Makefile.am: remove + * common-src/queueing.c: fix two bugs: + - spurious in-place memmove on every buffer copy + - silent discard of a final packet if the consumer does not + completely consume it + * common-src/queueing.h: update comments + * common-src/testutils.h: add header-protection macros + +2008-04-07 Dustin J. Mitchell + * installcheck/Makefile.am installcheck/Amanda_Device.pl: Add tests + for Amanda::Device + +2008-04-07 Dustin J. Mitchell + * man/xml-source/amanda.conf.5.xml: fix typos + +2008-04-04 Jean-Louis Martineau + * man/xml-source/*.xml: Use ulink tag to link to wiki.zmanda.com. + +2008-04-04 Jean-Louis Martineau + * restore-src/restore.c: Check last_header->type != F_UNKNOWN. + +2008-04-01 Dustin J. Mitchell + Suggested by Sunil Sawant + * man/xml-source/amrecover.8.xml: suggest including a config in the + amrecover command line + +2008-04-01 John Franks + * gnulib/regenerate/regenerate gnulib/regenerate/no-restrict.patch: + Patches to reapply after gnulib updates. + * gnulib/inet_ntop.c gnulib/inet_ntop.h gnulib/string.in.h + gnulib/gettimeofday.c gnulib/sys_time.in.h gnulib/base64.c + gnulib/getaddrinfo.c gnulib/Makefile.am gnulib/base64.h + gnulib/getaddrinfo.h: + Remove restricted keywords from source files. + +2008-04-01 Satya Ganga + * example/template.d/amanda-S3.conf.in: S3 device should have + "infinite" tape length + +2008-03-31 John Franks + * common-src/stream.c + Fix warning about ininitialized variables. + +2008-03-31 John Franks + * oldrecover-src/Makefile.am xfer-src/Makefile.am + recover-src/Makefile.am server-src/Makefile.am + restore-src/Makefile.am: + Fix build problems with multiply defined symbols. + +2008-03-31 Dan Locks + * packaging/deb/buildpkg + packaging/rpm/buildpkg: added -p to cp to preserve file timestamps. + +2008-03-31 Dustin J. Mitchell , Jean-Louis Martineau + * client-src/sendbackup-gnutar.c client-src/sendsize.c + client-src/selfcheck.c: update amandates whenever possible, but only + complain when it is really needed: when using calcsize, or when + using GNUTAR and --without-gnutar-listdir. + * client-src/amandates.c: Set errno before return of start_amandates + * perl/Amanda/Paths.pm.in: always terminate a perl mod with '1;' + +2008-03-31 Jean-Louis Martineau + * server-src/amgetconf.pl: Parse config after setup_applccation call. + +2008-03-31 Jean-Louis Martineau + * server-src/amcheck.c: Check errno after full_read. + +2008-03-31 Dan Locks + * packaging/Makefile.am: add deb subdirectory. + +2008-03-31 Dustin J. Mitchell + * common-src/rsh-security.c common-src/ssh-security.c: improve error + messages for resolve_hostname calls + +2008-03-27 Dustin J. Mitchell + * common-src/util.c common-src/util.h: remove fullread(), fullwrite() + * gnulib/regenerate/regenerate gnulib/Makefile.am + config/gnulib/gnulib-cache.m4: add full-read, full-write modules + * oldrecover-src/extract_list.c client-src/noop.c + client-src/sendbackup-gnutar.c client-src/sendbackup.c + client-src/sendsize.c client-src/selfcheck.c amandad-src/amandad.c + application-src/amgtar.c recover-src/extract_list.c + server-src/changer.c server-src/logfile.c server-src/amindexd.c + server-src/amcheck.c server-src/dumper.c server-src/chunker.c + server-src/taper-port-source.c server-src/driverio.c + server-src/holding.c server-src/driver.c + server-src/taper-file-source.c restore-src/restore.c + common-src/security-util.c common-src/amanda.h + tape-src/output-file.c: use gnulib full_read, full_write functions, + which have slightly different error semantics than the corresponding + Amanda functions. + +2008-03-27 Jean-Louis Martineau + * application-src/amgtar.c: Add 'CHECK-DEVICE' property. + +2008-03-27 Jean-Louis Martineau + * device-src/activate-devpay.c (parse_commandline): Always return. + +2008-03-25 Jean-Louis Martineau + * config/amanda/readline.m4: Don't add READLINE_LIBS to LIBS. + * oldrecover-src/Makefile.am (LDAAD): Add READLINE_LIBS. + * recover-src/Makefile.am (LDAAD): Add READLINE_LIBS. + * config/amanda/swig.m4: AM_CONDITIONAL(WANT_CYGWIN_COPY_PERL_DLL) + * config/amanda/swig.m4: Add library to PERLEXTLIBS on cygwin. + * config/amanda/syshacks.m4: Add '-no-undefined' to AMANDA_ADD_LDFLAGS. + * amandad-src/Makefile.am, + * client-src/Makefile.am, device-src/Makefile.am, + server-src/Makefile.am, server-src/server_util.c, + tape-src/Makefile.am: Add library to many *_LIBADD. + * perl/Makefile.am (install-data-hook): Copy cygwin ddl if + WANT_CYGWIN_COPY_PERL_DLL. + +2008-03-25 Jean-Louis Martineau + * common-src/conffile.c: Fix typo and remove unused prefix. + +2008-03-25 Jean-Louis Martineau + * server-src/reporter.c: Check difference between origsize and outsize + to find if the image is compressed. + +2008-03-25 Jean-Louis Martineau + Greg Troxel reported the bug and possible solution. + * common-src/stream.c (stream_server): New family argument, it is used + to create the socket. + * common-src/stream.h (stream_server): New prototype. + * server-src/chunker.c, server-src/taper.c: Call stream_server with + family of 'localhost', it's the name dumper use to contact them. + * restore-src/amidxtaped.c: Call stream_server with AF_INET. + * common-src/bsd-security.c, common-src/security-util.c: Call + stream_server with family of incoming packet. + +2008-03-25 Jean-Louis Martineau + Davor Ocelic reported the problem. + * application-src/Makefile.am: Use applicationexec_PROGRAMS and + applicationexec_SCRIPTS to install executable. + +2008-03-25 Jean-Louis Martineau + * common-src/security-util.c (show_stat_info): Use getpwuid_r + and getgrgid_r. +2008-03-25 Dustin J. Mitchell + * config/amanda/swig.m4: fix the fix to the fix for FreeBSD systems' + peculiar linking of threading libraries. + +2008-03-20 Dan Locks + * packaging/deb/control: removed grep dependency + * packaging/deb/amanda-backup-client.postinst + packaging/deb/amanda-backup-server.postinst + packaging/deb/amanda-backup-server.postrm + packaging/deb/amanda-backup-client.postrm: removed call to + ldconfig to satisfy lintian + * packaging/deb/amanda-backup-server.lintian + packaging/deb/amanda-backup-client.lintian: sorted and added new + overrides + * packaging/deb/amanda-backup-client.dirs: removed var/amanda + +2008-03-18 Dustin J. Mitchell + * device-src/activate-devpay.c: fix type warning + +2008-03-17 Jean-Louis Martineau + * server-src/diskfile.c: Correctly check if two hosts map to the same + name. + +2008-03-15 Dustin J. Mitchell + * perl/Makefile.am perl/amglue/mainloop.c perl/amglue/amglue.h + perl/amglue/source.c: rename mainloop.c to source.c to avoid + conflicts with MainLoop.c on case-insensitive filesystems + +2008-03-14 Dan Locks + * Initial debian release: This package is based on Bdale Garbee's + work as the official debian maintainer for amanda. + +2008-03-14 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: Document global and by dumptype + property. + * server-src/server_util.c: Rename _proplist to _property. + * server-src/diskfile.c: Rename _proplist to _property. + * server-src/amadmin.c (disklist_one): Print property. + * perl/Amanda/Config.swg: Add new constants to Amanda::Config + * installcheck/Amanda_Config.pl: Test global property. + * common-src/conffile.c: Add global and by dumptype property. + * common-src/conffile.h: Add global and by dumptype property. + +2008-03-14 Dustin J. Mitchell + * perl/Amanda/MainLoop.swg perl/Makefile.am: new perl module + * perl/amglue/amglue.h perl/amglue/mainloop.c: support for new module + * installcheck/Amanda_MainLoop.pl installcheck/Makefile.am: tests for + new module + * common-src/event.h: fix typo in comment + +2008-03-14 Dustin J. Mitchell + * xfer-src/dest-null.c: fix Solaris 8 compilation problem: isprint() + expects an int, not a char. + +2008-03-13 Dan Locks + * packaging/rpm/amanda.spec: changed the PKG_CONFIG_PATH macro so that + it works with rpm versions earlier than 4.4 + +2008-03-13 Dustin J. Mitchell + * device-src/device-queueing.c device-src/device-queueing.h + server-src/taper-source.c server-src/taper-source.h + server-src/taper-source-test.c server-src/taper.c + common-src/queueing.c common-src/queueing.h: change ints in + consumer/producer to (s)size_t + * device-src/device.c device-src/device-queueing.c + device-src/tests/semaphore-test.c device-src/tests/Makefile.am + device-src/queueing.c device-src/semaphore.c + device-src/device-queueing.h device-src/queueing.h + device-src/Makefile.am device-src/semaphore.h + device-src/property.h server-src/taper.c common-src/queueing.c + common-src/queueing.h common-src/semaphore-test.c + common-src/semaphore.c common-src/semaphore.h + common-src/Makefile.am: move queueing and semaphore into + common-src, along with their tests + * configure.in xfer-src/source-random.c xfer-src/xfer-element.h + xfer-src/xfer-dest.c xfer-src/xfer-test.c xfer-src/xfer.c + xfer-src/xfer-dest.h xfer-src/amxfer.h xfer-src/dest-null.c + xfer-src/Makefile.am xfer-src/xfer.h xfer-src/xfer-element.c + xfer-src/filter-xor.c Makefile.am: introduce transfer architecture + * xfer-src/xmsg.c xfer-src/xfer-element.h xfer-src/xfer-test.c + xfer-src/xmsg.h xfer-src/xfer.c xfer-src/amxfer.h + xfer-src/Makefile.am xfer-src/xfer.h: support for sending + and receiving XMsgs. + * common-src/event.c common-src/event.h: add default_event_loop(). + * device-src/device.c server-src/taper-source-test.c common-src/util.c + common-src/util.h common-src/glib-util.c common-src/glib-util.h: + create new glib_init() to do g_type_init(), initialize threads, etc. + +2008-03-13 Jean-Louis Martineau + * client-src/sendsize.c: Don't use sscanf for est->qamname because it + can have a '%'. + * server-src/diskfile.c: Clean the diskname before using it as a regex. + * common-src/protocol.c: Fix bug if packet have a '%' character. + +2008-03-13 Jean-Louis Martineau + * installcheck/Installcheck/Run.pm: Increase size of TAPE. + +2008-03-12 Dustin J. Mitchell + * common-src/event.c: Use %jd to print a pid_t, since it may be + larger on some platforms. + +2008-03-12 Jean-Louis Martineau + * common-src/conffile.c: Fix solaris 8 cc warning. + +2008-03-12 Jean-Louis Martineau + * client-src/sendbackup.c: Set stroptions to "". + +2008-03-12 Dustin J. Mitchell + * common-src/event.c common-src/event.h common-src/event-test.c: + add two new GSources: child_watch_source (sends events when a child + dies) and fdsource (sends events when file descriptors match + conditions). Thanks to Jean-Louis Martineau for finding and fixing + a race condition. + +2008-03-12 Dustin J. Mitchell + * gnulib/regenerate/regenerate gnulib/Makefile.am DEVELOPING: update + documentation to reflect use of gnulib's git repository + +2008-03-12 Jean-Louis Martineau + * installcheck/Makefile.am: Remove CONFIG_CLOBBER_MY_CONFIG, + it is done automaticaly. + * config/amanda/defaults.m4: AC_SUBST(CONFIG_CLOBBER_MY_CONFIG) to not + conflict with make CLOBBER_MY_CONFIG. + +2008-03-12 Jean-Louis Martineau + * installcheck/Makefile.am: Use CONFIG_CLOBBER_MY_CONFIG for Makefile + variable. + +2008-03-11 Dan Locks + * packaging/rpm/buildpkg: made the script quieter + +2008-03-12 Dan Locks + * packaging/rpm/amanda.spec: fixed a number of complaints from rpmlint, + added --quiet to the configure invocation + +2008-03-10 Jean-Louis Martineau + * gnulib: Update to latest version, add getopt module. + +2008-03-07 Jean-Louis Martineau + * oldrecover-src/Makefile.am, example/Makefile.am, + amandad-src/Makefile.am, recover-src/Makefile.am, + restore-src/Makefile.am, Makefile.am: Include config/automake/vars.am. + * installcheck/Amanda_Config.pl: Check config_filename. + * installcheck/Installcheck/Config.pm: Use local amandates and + gnutar_listdir. + * installcheck/Makefile.am: Take a copy of amanda-client.conf + * config/amanda/defaults.m4: AC_SUBST(CLOBBER_MY_CONFIG) + * config/automake/scripts.am: DISTCLEANFILES += $(SCRIPTS_INCLUDE) + * config/automake/installperms.am: installperms.sh in top_builddir, + DISTCLEANFILES += $(installperms_sh) + * Makefile.am: add '--without-amperldir CLOBBER_MY_CONFIG=OK' to + DISTCHECK_CONFIGURE_FLAGS. + * common-src/Makefile.am: distclean-local: remove svn-info.h. + +2008-03-07 Dan Locks + * packaging/rpm/buildpkg: Simplified usage of packaging script by + creating a tarball from existing source. + +2008-03-06 Jean-Louis Martineau + * installcheck/Installcheck/Run.pm: merge from application-api. + * installcheck/Installcheck/Config.pm: merge from application-api. + +2008-03-06 Jean-Louis Martineau + * merge application-api + +2008-03-06 Jean-Louis Martineau + * common-src/Makefile.am: dest=$(amlibexecdir). + +2008-03-06 Jean-Louis Martineau + * changer-src/Makefile.am: Rename SCRIPTSDATA to SCRIPTS_INCLUDE, + Add chg-lib.sh.in to EXTRA_DIST. + * dumper-src/Makefile.am: Rename SCRIPTSDATA to SCRIPTS_INCLUDE, + Add generic-dumper.pl to EXTRA_DIST. + * common-src/Makefile.am: Add amanda-sh-lib.sh to SCRIPTS_INCLUDE, + Add amanda-sh-lib.sh.in to EXTRA_DIST. + +2008-03-05 Jean-Louis Martineau + * changer-src/Makefile.am: Move chg-lib.sh to SCRIPTSDATA. + * dumper-src/Makefile.am: Move generic-dumper to SCRIPTSDATA. + +2008-03-05 Jean-Louis Martineau + * config/amanda/swig.m4: Check for *freebsd[123456]* + +2008-03-05 Jean-Louis Martineau + * changer-src/chg-scsi-chio.c: Compile fix. + * changer-src/scsi-chio.c: Compile fix. + * config/amanda/changer.m4: Check for linux/chio.h + +2008-03-05 Jean-Louis Martineau + * packaging/rpm/amanda.spec: Give CFLAGS after ./configure + +2008-03-05 Dustin J. Mitchell + * config/amanda/swig.m4: With many thanks to John E. Hein + , fix the comment and make the change committed + yesterday apply to all FreeBSD < 7.0. + +2008-03-05 Dustin J. Mitchell + * config/amanda/summary.m4: quote all warning messages that will be + included in heredocs, to avoid spurious interpretation of backquotes + +2008-03-05 Jean-Louis Martineau + * packaging/rpm/amanda.spec: Add %{PERLSITELIB} in %files sections. + +2008-03-05 Jean-Louis Martineau + * restore-src/amidxtaped: Use default config if amrecover doesn't send + a config name. (amoldrecover doesn't send a config). + * restore-src/restore.c: amrecover from 2.4.5 doesn't send the filenum, + so desired_tape->numfiles == 0. + If amidxtaped is launched directly from xinetd, then + flags->pipe_to_fd == STDOUT_FILENO, but this test should only + succeed for amrestore of amfetchdump. + +2008-03-05 Jean-Louis Martineau + * device-src/tape-device.c: Set d_self->is_eof to FALSE. + +2008-03-04 Dustin J. Mitchell + * perl/Makefile.am config/amanda/swig.m4: add a special case for + FreeBSD-6.2: include -lpthread in the linking of each perl + extension, because libgthread does not pull in libpthread as + it does on other platforms. + +2008-03-03 Jean-Louis Martineau + * common-src/security-util.c: getnameinfo return != 0 on error. + +2008-03-03 Jean-Louis Martineau + * config/amanda/dumpers.m4: Typo. + +2008-03-03 Jean-Louis Martineau + * device-src/tests/vfs_test.c, common-src/event-test.c: Fix ignoring + return value of 'pipe', declared with attribute warn_unused_result. + +2008-02-29 Dustin J. Mitchell + * common-src/amanda.h: add + +2008-02-28 Dustin J. Mitchell + * config/automake/installperms.am: --without-installperms now + generates a shell-parsable list of desired permissions + * Makefile.am: erase installperms.sh before beginning a 'make + install' + * oldrecover-src/Makefile.am client-src/Makefile.am + recover-src/Makefile.am server-src/Makefile.am: give mode + bits in octal + +2008-02-28 Dustin J. Mitchell + Thanks to John E. Hein for identifying this problem + * perl/Amanda/Tests.swg: expose sizeof(size_t) to perl + * installcheck/Amanda_Config.pl: use a properly-sized constant to + check parsing of large configuration values + + +2008-02-28 Jean-Louis Martineau + * server-src/amindexd.c: Compute maxpart, call clean_dump. + * server-src/disk_history.h (DUMP_ITEM): Add maxpart field. + * server-src/disk_history.h (add_dump): New prototype, + add maxpart argument. + * server-src/disk_history.c (add_dump): Remove a DUMP_ITEM if the + previous part is not already added. + * server-src/disk_history.c (clean_dump): New function to remove + DUMP_ITEM if all part are not added. + * common-src/tapelist.h (tapelist_t): Add partnum field. + * common-src/tapelist.h (append_to_tapelist): New prototype, + add partnum argument. + * common-src/tapelist.c (append_to_tapelist): New partnum argument. + * restore-src/amfetchdump.c: Use new append_to_tapelist prototype. + +2008-02-28 Jean-Louis Martineau + * common-src/security-util.c: Don't write unclaimed warning if we have + an accept function. + +2008-02-27 Dustin J. Mitchell + * common-src/testutils.c common-src/testutils.h + common-src/Makefile.am: add libtestutils.la + * common-src/event-test.c common-src/amflock-test.c: + use libtestutils.la + +2008-02-27 Jean-Louis Martineau + * server-src/find.c: Use sort_key in switch statement. + +2008-02-26 Jean-Louis Martineau + * NEWS, ReleaseNotes: Document --with-amlibdir. + * config/amanda/dirs.m4: Add AS_HELP_STRING for --without-amlibdir and + --without-amlibexecdir, + Set AMPERLLIB to $amlibdir/perl. + +2008-02-26 Dustin J. Mitchell + * common-src/event-test.c: a more robust and effective test of + EV_READFD; thanks to Jean-Louis Martineau for the suggestions. + +2008-02-26 Dustin J. Mitchell + * perl/Makefile.am config/amanda/dirs.m4 config/amanda/summary.m4: + add --with-amperldir, --without-amperldir, and install perl modules + in Perl's installsitearch by default; thanks to Orion Poplawski + for help and suggestions. + +2008-02-26 Jean-Louis Martineau + * client-src/getfsent.c: Don't fail if stat of mount point fail. + +2008-02-26 Jean-Louis Martineau + * common-src/util.c: Don't log a note if CLIENT_LOGIN == dumpuser for + RUNNING_AS_DUMPUSER_PREFERRED. + +2008-02-25 Jean-Louis Martineau + * server-src/reporter.c: Report size of data on holding disk. + +2008-02-20 Jean-Louis Martineau + * config/amanda/dirs.m4: Add --with-amlibdir and --with-amlibexecdir. + +2008-02-20 Jean-Louis Martineau + * server-src/amcheck.c, server-src/dumper.c, + server-src/planner.c: Call waitpid to cleanup defunct process. + +2008-02-20 Dustin J. Mitchell + * device-src/tape-posix.c: keep ioctl error message in + debug log + +2008-02-19 Jean-Louis Martineau + * device-src/device.c, device-src/null-device.c, + device-src/s3.c, device-src/tape-device.c, + device-src/queueing.h, device-src/s3.h, + device-src/vfs-device.c, device-src/rait-device.c, + server-src/taper-source-test.c, server-src/server_util.c, + server-src/taper-disk-port-source.c, perl/Amanda/Device.swg, + perl/amglue/integers.swg, restore-src/restore.c, + common-src/glib-util.c: Fix solaris compiler warning. + +2008-02-19 Jean-Louis Martineau + * common-src/util.c (quote_string): Quote single quote ('). + * server-src/find.c:Correctly compute length of diskname. + +2008-02-15 Dustin J. Mitchell + * configure.in config/amanda/progs.m4 config/amanda/flags.m4: + use AC_PROG_EGREP instead of the Amanda version + * server-src/find.c: fix compiler warning on Solaris 8 + +2008-02-15 Jean-Louis Martineau + * packaging/rpm/amanda.spec: Remove amverify* + +2008-02-15 Jean-Louis Martineau + * oldrecover-src/Makefile.am: Build all files in the build directory. + * recover-src/Makefile.am: Build all files in the build directory. + * config/amanda/config.m4: Use $srcdir to buld common-src/svn-info.h + * configure.in: execute AMANDA_GET_SVN_INFO after AC_OUTPUT because + AC_OUTPUT create the common-src directory. + +2008-02-15 Jean-Louis Martineau + * server-src/amadmin.c: Use 'long long' and '%lld' to sscanf. + * file server-src/infofile.c: Use %jd to print intmax_t value. + * file server-src/driver.c: Use 'long long' and '%lld' to sscanf. + +2008-02-15 Jean-Louis Martineau + * packaging/rpm/amanda.spec: Fix typo. + +2008-02-15 Jean-Louis Martineau + * server-src/amdump.sh: Don't use 'date -d', use sed. + +2008-02-14 Dustin J. Mitchell + * installcheck/Installcheck/Run.pm: run test dumps of a smaller + directory, to avoid overflowing test tapes + +2008-02-14 Dustin J. Mitchell + * dumper-src/amstar.pl dumper-src/amgtar.pl + device-src/tests/get-activation-key.pl server-src/amcheckdump.pl + server-src/amdevcheck.pl: add GPL header + +2008-02-14 Dustin J. Mitchell + * installcheck/Makefile.am installcheck/amdump.pl: add a check + that runs 'amdump' directly, since that fails often + +2008-02-14 Dustin J. Mitchell + * common-src/event-test.c: make tests more robust to environmental + variations, clean up forked children + +2008-02-13 Dustin J. Mitchell + * common-src/security-util.c + common-src/security-util.h: don't cast pointers to + integers for tcp_conn event id's + +2008-02-13 Dan Locks + * packaging/rpm/amanda.spec: added a check for PKG_CONFIG_PATH in the + build environment as well as if provided on rpmbuild commandline. + Conditionalized this var to handle cross compiling on FC8. + +2008-02-12 Dustin J. Mitchell + * amandad-src/amandad.c: use sizeof() instead of strlen() + in a constant expression + +2008-02-12 Dustin J. Mitchell + * amandad-src/amandad.c: initialize as->service + * common-src/event.c common-src/event.h: new GMainLoop-based + version of the event library, allowing GMainLoop-based and + event-based processes to co-exist peacefully + +2008-02-12 Dustin J. Mitchell + * installcheck/amcheckdump.pl: fix typo + +2008-02-12 Jean-Louis Martineau + * server-src/dumper.c: Fail if no header or no data. + +2008-02-12 Jean-Louis Martineau + * server-src/amstatus.pl: Report failure if dumper succeed and + chunker failed. + +2008-02-12 Jean-Louis Martineau + * common-src/conffile.h (config_name, config_dir, config_filename): + Remove extern declaration. + * common-src/conffile.h (get_config_name, get_config_dir, + get_config_filename): New prototype. + * common-src/conffile.c (config_name, config_dir, config_filename): + Declare static. + * common-src/conffile.h (get_config_name, get_config_dir, + get_config_filename): New functions. + * perl/Amanda/Config.swg: Don't inline the functions. + * oldrecover-src/extract_list.c, client-src/sendbackup.c, + client-src/sendsize.c, client-src/selfcheck.c, + recover-src/amrecover.c, recover-src/extract_list.c, + server-src/changer.c, server-src/amlogroll.c, + server-src/amindexd.c, server-src/amcheck.c, + server-src/dumper.c, server-src/planner.c, + server-src/chunker.c, server-src/amadmin.c, + server-src/amtape.c, server-src/amcleanupdisk.c, + server-src/amflush.c, server-src/amtrmlog.c, + server-src/driverio.c, server-src/driver.c, + server-src/reporter.c, server-src/taper.c, + server-src/amtrmidx.c, server-src/diskfile.c, + server-src/amlabel.c, + restore-src/amfetchdump.c: Use new functions. + +2008-02-12 Dustin J. Mitchell + * common-src/event-test.c common-src/Makefile.am: add checks + for the event module + +2008-02-12 Dustin J. Mitchell + * server-src/dumper.c server-src/server_util.c + server-src/infofile.c server-src/amtrmlog.c common-src/debug.c + common-src/file.c: Always call mkpdir without the 02000 bit set, + as it is not needed and causes problems on MacOS X. + +2008-02-11 Dustin J. Mitchell + * all source files: update GPL dates + * perl/*: use LGPL instead of GPL + +2008-02-11 Dustin J. Mitchell + * amandad-src/amandad.c: fix use of non-constant array size + +2008-02-11 Dustin J. Mitchell + * amandad-src/amandad.c: add hack to avoid a race condition in + sendbackup operation + * common-src/security-util.c: issue debug log message when data + tokens are dropped by the security API + +2008-02-07 Jean-Louis Martineau + * recover-src/amrecover.c: Use tapedev from server if it is not set + in amanda.client.conf + * example/amanda-client.conf.in: Document it. + +2008-02-07 Jean-Louis Martineau + * device-src/tape-device.c (tape_device_init): Init min_block_size + and fixed_block_size to 32768. + +2008-02-07 Dustin J. Mitchell + * packaging/rpm/amanda_enterprise.spec man/Makefile.am + man/xml-source/amverify.8.xml man/xml-source/amverifyrun.8.xml + man/xml-source/amcheckdump.8.xml server-src/amverifyrun.sh + server-src/amverify.sh server-src/Makefile.am: remove amverify* + * server-src/amdevcheck.pl: tweak @ARGV parsing + * server-src/amcheckdump.pl installcheck/Installcheck/Run.pm + installcheck/amcheckdump.pl: significant rewrite to catch more errors + and not loop for ever on some errors. + +2008-02-01 Dustin J. Mitchell + * server-src/amgetconf.pl installcheck/amgetconf.pl + common-src/conffile.c: fix and test amgetconf to allow extra + command-line arguments (undocumented), to allow -o options without a + space, and to correctly return empty results for empty build + variables + +2008-02-01 Dan Locks + * packaging/rpm/amanda.spec: added amdumpcheck.8.gz to the %files list + for both client and server, removed amplot from client, added missing + directory %{SYSCONFDIR}/amanda + +2008-01-29 Dan Locks + * packaging/rpm/amanda.spec: changed %{SYSCONFDIR} to %{LOCALSTATEDIR} + where amanda/amandates is concerned. also added %{LOCALSTATEDIR} to + the %files list. + +2008-01-29 Dan Locks + * man/xml-source/* added http://wiki.zmanda.com to the "see also" + section + +2008-01-29 Jean-Louis Martineau + * client-src/sendbackup.c: Check for g_options. + * client-src/sendsize.c: Check for g_options. + * client-src/selfcheck.c: Check for g_options. + * amandad-src/amandad_util.c (free_g_options): Check g_options != NULL. + +2008-01-28 Jean-Louis Martineau + * server-src/amstatus.pl: Fix "Use of uninitialized value in string". + +2008-01-28 Dustin J. Mitchell + * installcheck/Amanda_Config.pl common-src/conffile.c: uppercase + displayunit, and add a unit test to be sure. + +2008-01-28 Jean-Louis Martineau + * server-src/amstatus.pl: handle lowercase displayunit. + +2008-01-28 Dustin J. Mitchell + * configure.in config/amanda/ipv6.m4 common-src/amanda.h: check + for netinet/in.h and in_port_t, and define the latter if + necessary. Thanks to Craig Dewick + for the suggestion. + +2008-01-28 Paddy Sreenivasan + * man/xml-source/amanda.8.xml: Update amanda(8) to reflect 2.6.0 + status + +2008-01-28 Jean-Louis Martineau + * amandad-src/amandad.c: Send service stderr to amandad debug file, + Wait for service termination and send error message to server. + +2008-01-28 Jean-Louis Martineau + * device-src/device.c: Set PROPERTY_BLOCK_SIZE with a G_TYPE_INT + Set PROPERTY_READ_BUFFER_SIZE with a G_TYPE_UINT + +2008-01-22 Dustin J. Mitchell + * man/Makefile.am man/xml-source/amcheckdump.8.xml: new manpage + * server-src/amcheckdump.pl: fix usage message + +2008-01-22 Dustin J. Mitchell + * configure.in config/amanda/userid.m4: add --with-single-userid + +2008-01-22 Dustin J. Mitchell + * server-src/amfreetapes.sh: remove unused script + +2008-01-22 Dustin J. Mitchell + * perl/amglue/amglue.h perl/amglue/bigint.c: Include integer limits + for all amglue files where they are missing from glib headers + +2008-01-22 Dustin J. Mitchell + * installcheck/Makefile.am: condition installchecks on the selected + components + +2008-01-22 Dustin J. Mitchell + * installcheck/Makefile.am Makefile.am: distribute + installcheck/Installcheck scripts, make sure enough parameters + are passed along to distcheck for it to succeed, and also clean + up properly after tests are run. + +2008-01-22 Dustin J. Mitchell + * config/amanda/dumpers.m4: eliminate strange warning when + --without-smbclient is given + +2008-01-18 Dustin J. Mitchell + * server-src/amgetconf.pl perl/Amanda/Constants.pm.in + installcheck/Amanda_Types.pl installcheck/Amanda_Config.pl + installcheck/Amanda_Tapelist.pl installcheck/Amanda_Debug.pl + installcheck/Amanda_Changer.pl installcheck/amdevcheck.pl + installcheck/Installcheck/Config.pm + installcheck/Amanda_Cmdline.pl installcheck/amcheckdump.pl + installcheck/Amanda_Logfile.pl installcheck/amgetconf.pl: + accumulated tweaks and updates to installchecks + +2008-01-18 Dustin J. Mitchell + * perl/Amanda/Tests.swg perl/Makefile.am installcheck/bigint.pl + installcheck/Makefile.am: new tests for integer-handling + SWIG support, including an installed module (Amanda::Test) that + is not used except by this test. + +2008-01-18 Dustin J. Mitchell + * installcheck/Amanda_Types.pl + installcheck/Amanda_Config.pl installcheck/Amanda_Changer.pl + installcheck/Amconfig.pm.in installcheck/amdevcheck.pl + installcheck/Installcheck installcheck/Installcheck/Run.pm + installcheck/Installcheck/Config.pm installcheck/Makefile.am + installcheck/amcheckdump.pl installcheck/Amanda_Logfile.pl + installcheck/amgetconf.pl: tweaks: + - Move installcheck utilities to the Installcheck::* namespace + - add Installcheck::Run to help with setting up amdump runs, and + running applications in general + - Add complete runs to amdevcheck, amcheckdump + - Return a nonzero exit status from amgetconf when an invalid + configuration parameter is specified. + +2008-01-18 Dustin J. Mitchell + * perl/Amanda/Tapelist.swg perl/Amanda/Tapefile.swg perl/Makefile.am: + new module (Tapelist) replaces old stub (Tapefile) + * installcheck/Amanda_Tapelist.pl installcheck/Makefile.am: test new + module + * server-src/amcheckdump.pl installcheck/Amanda_Logfile.pl: use new + module + +2008-01-18 Dustin J. Mitchell + * perl/Makefile.am perl/Amanda/Debug.swg: handle die() and warn() with + critical() and warning(), respectively + * server-src/amgetconf.pl server-src/amcheckdump.pl + server-src/amdevcheck.pl: use die() + * installcheck/Amanda_Config.pl installcheck/Amanda_Changer.pl + installcheck/Amanda_Debug.pl installcheck/Makefile.am: new/updated + unit tests + +2008-01-18 Dustin J. Mitchell + * man/xml-source/amgetconf.8.xml server-src/amgetconf.pl + server-src/getconf.c server-src/Makefile.am: rewrite amgetconf in + Perl, and add the ability to list available build variables. + * config/amanda/krb4-security.m4 config/amanda/krb5-security.m4 + config/amanda/bsd-security.m4 config/amanda/dumpers.m4 + config/amanda/bsdtcp-security.m4 config/amanda/userid.m4 + config/amanda/rsh-security.m4 config/amanda/ssh-security.m4 + config/amanda/bsdudp-security.m4 config/amanda/compress.m4 + config/amanda/debugging.m4 config/amanda/flock.m4: AC_SUBST a bunch + of constants for use in Amanda::Constants + * perl/Makefile.am perl/Amanda/Paths.pm.in + perl/Amanda/Constants.pm.in: add new constants + * perl/Amanda/Config.swg: add getconf_byname_strs + * installcheck/amgetconf.pl: check new functionality + * perl/Amanda/Util.swg common-src/util.c common-src/util.h: add + RUNNING_AS_ANY + +2008-01-17 Jean-Louis Martineau + * packaging/rpm/buildpkg, packaging/rpm/amanda.spec, + configure.in: Set for release 2.6.1alpha. + +2008-01-16 Dustin J. Mitchell + * installcheck/Makefile.am: Require user to specify + CLOBBER_MY_CONFIG=OK when running installchecks + +2008-01-16 Jean-Louis Martineau + * packaging/rpm/amanda.spec: Don't set PKG_CONFIG_PATH. + +2008-01-16 Jean-Louis Martineau + * oldrecover-src/extract_list.c, client-src/sendbackup.c, + client-src/sendsize.c, client-src/selfcheck.c, + recover-src/extract_list.c, server-src/changer.c, + server-src/amflush.c, server-src/driverio.c, + common-src/pipespawn.c: Call safe_fd before exec*. + +2008-01-15 Jean-Louis Martineau + * packaging/rpm/amanda.spec: Remove build_host. + +2008-01-15 Dustin J. Mitchell + * perl/Amanda/Types.swg perl/Amanda/Config.swg perl/Amanda/Device.swg + perl/amglue/integers.swg: fix typos and compiler warnings + +2008-01-15 Jean-Louis Martineau + * packaging/Makefile.am: New file. + * packaging/README: New file. + * packaging/rpm/buildpkg: New file. + * packaging/rpm/amanda.spec: New file. + * configure.in + * config/amanda/dirs.m4 (AMANDA_WITH_DUMPERDIR): Give a warning if used. + * config/amanda/dirs.m4 (AMANDA_EXPAND_DIRS): Expand DUMPER_DIR to + ${amlibexecdir}/application + * Makefile.am (SUBDIRS): Add packaging. + * amanda.spec: Remove file. + +2008-01-15 Jean-Louis Martineau + * device-src/Makefile.am (AM_CFLAGS): Set to $(AMANDA_WARNING_CFLAGS) + * device-src/tape-device.c, device-src/tape-posix.c, + device-src/vfs-device.c: include "util.h" + * device-src/rait-device.c: fix compiler warning. + +2008-01-14 Dustin J. Mitchell + * perl/amglue/bigint.c: fix the range-checking mechanics for large + integers, since the precompiler seems to get confused by large + constants. + +2008-01-14 Dustin J. Mitchell + * config/amanda/krb5-security.m4: abort configure run if krb5 + is requested by libraries aren't found + +2008-01-13 Dustin J. Mitchell + * man/xml-source/amanda.conf.5.xml: use × instead of × + +2008-01-11 Paddy Sreenivasan + * device-src/Makefile.am: Don't install queueing.h and device.h + +2008-01-11 Dustin J. Mitchell + * perl/Amanda/Config.swg perl/Amanda/Debug.swg: complete documentation + +2008-01-11 Jean-Louis Martineau + * amandad-src/Makefile.am: Install amandad in $libexecdir/amanda + * installcheck/amgetconf.pl: usetimestamps defaults to yes. + * NEWS, ReleaseNotes: Notes about make installcheck. + +2008-01-11 Jean-Louis Martineau + * NEWS: Add amcryptsimple, amgpgcrypt, amserverconfig and amaddclient. + * ReleaseNotes: Ditto. + +2008-01-11 Jean-Louis Martineau + * ReleaseNotes: Update for amanda-2.6.0 + * News: Update for amanda-2.6.0 + * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0b1") + * Makefile.am (pkgdata_DATA): Add NEWS, ChangeLog and amanda.spec + * amanda.spec: %{!?amanda_version: %define amanda_version 2.6.0b1} + +2008-01-10 Jean-Louis Martineau + * common-src/conffile.c (usetimestamps): Default ot yes. + * man/xml-source/amanda.conf.5.xml (usetimestamps): Document it. + +2008-01-10 Jean-Louis Martineau + * server-src/amverifyrun.sh, server-src/amverify.sh, + tape-src/ammt.c, tape-src/amdd.c: Write deprecated message. + +2008-01-10 Jean-Louis Martineau + * config/amanda/defaults.m4: Set amandates to $localstatedir/amanda/amandate + +2008-01-10 Jean-Louis Martineau + * server-src/amfreetapes.sh: Use amlibexecdir. + +2008-01-10 Jean-Louis Martineau + * config/amanda/dirs.m4: Set amlibexecdir to $libexecdir/amanda. + * amandad-src/amandad.c, amplot/amplot.sh, + amplot/Makefile.am, changer-src/chg-chs.sh, + changer-src/chg-disk.sh, changer-src/chg-juke.sh, + changer-src/chg-lib.sh.in, changer-src/chg-manual.sh, + changer-src/chg-mcutil.sh, changer-src/chg-mtx.sh, + changer-src/chg-multi.sh, changer-src/chg-null.sh, + changer-src/chg-rait.sh, changer-src/chg-rth.pl, + changer-src/chg-zd-mtx.sh, changer-src/Makefile.am, + client-src/Makefile.am, client-src/patch-system.sh, + client-src/selfcheck.c, client-src/sendbackup-dump.c, + client-src/sendbackup-gnutar.c, client-src/sendsize.c, + common-src/amaespipe.sh, common-src/amanda-sh-lib.sh.in, + common-src/amcrypt-ossl-asym.sh, common-src/amcrypt-ossl.sh, + common-src/amcrypt.sh, common-src/genversion.c, + common-src/local-security.c, common-src/Makefile.am, + common-src/rsh-security.c, common-src/ssh-security.c, + dumper-src/amgtar.pl, example/xinetd.amandaclient, + example/xinetd.amandaserver, installcheck/amgetconf.pl, + perl/Amanda/Changer.pm, perl/Amanda/Paths.pm.in, + restore-src/Makefile.am, server-src/amcheck.c, + server-src/amcheckdb.sh, server-src/amcleanup.sh, + server-src/amdump.sh, server-src/amflush.c, + server-src/amoverview.pl, server-src/amrmtape.sh, + server-src/amverifyrun.sh, server-src/amverify.sh, + server-src/changer.c, server-src/driver.c, + server-src/getconf.c, server-src/Makefile.am, + tape-src/Makefile.am: Use amlibexecdir. + +2008-01-10 Jean-Louis Martineau + * config/amanda/flags.m4 (AMANDA_STATIC_FLAGS): + Set AMANDA_STATIC_LDFLAGS to '-static' if set. + * configure.in: Call AMANDA_STATIC_FLAGS. + * amandad-src/Makefile.am, changer-src/Makefile.am, + client-src/Makefile.am, common-src/Makefile.am, + dumper-src/Makefile.am, oldrecover-src/Makefile.am, + recover-src/Makefile.am, restore-src/Makefile.am, + server-src/Makefile.am, + tape-src/Makefile.am(AM_LDFLAGS): Set to AMANDA_STATIC_LDFLAGS. + +2008-01-09 Jean-Louis Martineau + * configure.in (AC_CONFIG_FILES): Add example/template.d/amanda-S3.conf + * example/Makefile.am (dist_template_DATA): Add + template.d/amanda-S3.conf + +2008-01-09 Jean-Louis Martineau + * changer-src/scsi-solaris.c: Cleanup. + +2008-01-09 Ian Turner + * changer-src/chg-zd-mtx.sh.in: Don't write a corrupt changerfile + when a tape has no barcode label. + +2008-01-08 Dustin J. Mitchell + * server-src/amcheckdump.pl: call critical() rather than + using die(). + +2008-01-08 Jean-Louis Martineau + * server-src/amcheckdump.pl: Parse 'amflush: starttime' and + 'planner: timestamp' line. + * server-src/amflush.c: Print correct starttime line. + +2008-01-08 Ian Turner + Most of this work was done by Dustin J. Mitchell + , with contributions by Ian Turner . + * example/template.d/amanda-S3.conf.in: Example configuration + using Amazon S3. + * device-src/device.c: Register the S3 device. + * device-src/tests/get-activation-key.pl: Tool to retrieve + a DevPay activation key. + * device-src/s3-device.c, device-src/s3-device.h: S3 device driver. + * device-src/s3.c, device-src/s3.h: Network support for S3 driver. + * device-src/property.c, device-src/property.h: Register S3 + authentication properties. + * device-src/activate-devpay.c: Tool to convert a devpay + activation key into user tokens. + * device-src/Makefile.am: Support all these new files. + * configure.in: Check S3 prerequesites. + * config/amanda/s3-device.m4: Check if the S3 device should be + built. + * config/amanda/libs.m4: Code to check for libcurl version and + features. + * common-src/util.c: Use libcurl header. + +2008-01-08 Dustin J. Mitchell + * server-src/amcheckdump.pl: call critical() rather than + using die(). + +2008-01-08 Jean-Louis Martineau + * common-src/local-security.c: New 'local' security driver. + * common-src/security.c (drivers): Add local_security_driver + * common-src/Makefile.am (libamanda_la_SOURCES): Add local-security.c + * man/xml-source/amanda.conf.5.xml, + man/xml-source/amanda-client.conf.5.xml, + example/amanda-client.conf.in, + example/template.d/dumptypes: Document 'local' security driver. + +2008-01-08 Dustin J. Mitchell + * server-src/amcheckdump.pl perl/Amanda/Util.swg: don't use + the C safe_fd, which kills the Perl debugger; just check + that fd's 0-2 are open + +2008-01-08 Dustin J. Mitchell + * perl/Amanda/Types.swg perl/Makefile.am: add new Amanda::Types module + to contain data structures common to several other modules. + * perl/Amanda/Device.swg: move dumpfile_t to Amanda::Types + * installcheck/Amanda_Types.pl installcheck/Makefile.am: simple tests + for the new module + * common-src/fileheader.c common-src/fileheader.h: build_header + now takes a precise size, not a minimum. + +2008-01-08 Jean-Louis Martineau + * recover-src/amrecover.c: Call apply_config_overwrites before + config_init(CONFIG_INIT_EXPLICIT_NAME ...) + +2008-01-07 Jean-Louis Martineau + * common-src/util.c (strquotedstr, hexdump): Remove function. + * common-src/util.h (strquotedstr, hexdump): Remove prototype. + * common-src/fileheader.c (strquotedstr, hexdump): Add function. + * common-src/fileheader.c (strquotedstr): Fix. + +2008-01-07 Jean-Louis Martineau + * perl/Amanda/Changer.pm: Use Amanda::Config::get_config_dir(). + +2008-01-07 Jean-Louis Martineau + * config/automake/scripts.am: Don't set CHECK_PERL. + * changer-src/Makefile.am: Set CHECK_PERL. + * client-src/Makefile.am: Set CHECK_PERL. + * dumper-src/Makefile.am: Set CHECK_PERL. + * common-src/Makefile.am: Set CHECK_PERL. + +2008-01-07 Jean-Louis Martineau + * common-src/krb5-security.c: Fix argument to resolve_hostname. + * config/amanda/krb4-security.m4: Check .a or .so lib. + * config/amanda/krb5-security.m4: Check .a or .so lib. + +2008-01-07 Jean-Louis Martineau + * device-src/Makefile.am: Merge typo. + * example/Makefile.am: Merge Typo. + +2007-12-27 Dustin J. Mitchell + * configure.in config/amanda/printf.m4: remove unused + configure checks + +2007-12-27 Paddy Sreenivasan + * server-src/reporter.c: Check for NULL mailto + +2007-12-27 Satya Ganga + * server-src/amserverconfig.pl: holding disk will be created + only if we have at least 1G free space in the Amanda home dir + +2007-12-27 Ian Turner + * server-src/taperscan.c server-src/taper.c: only print error_message + if it is non-NULL + +2007-12-27 Dustin J. Mitchell + * server-src/amrmtape.sh: remove @DB_EXT@, which no longer + exists (since 2007-10-09). + +2007-12-26 Dustin J. Mitchell + * server-src/amverify.sh: fix multiple non-portable shell + techniques + +2007-12-23 Dustin J. Mitchell + Large-scale merge of perl interface to Amanda, along with + a fleet of related changes. Patch authors are given for + changes not made by Dustin. + + * perl/Makefile.am config/amanda/swig.m4: use + ExtUtils::Embed::perl_inc() to get the include directory + and let Amanda's compiler/linker flags and libtool take + care of the rest + * perl/Amanda/Config.swg: use accessors for config_name, + config_filename, and config_dir + * server-src/amcheckdump.pl server-src/amdevcheck.pl + perl/Amanda/Util.swg installcheck/Amanda_Config.pl: use + new accessors + * perl/Amanda/Util.swg common-src/amanda.h: use a .-relative + path in two #include directives to avoid accidentally + including perl's headers of the same name; this is a temporary + hack until a larger-scale overhaul of Amanda's headers is done. + * config/amanda/swig.m4: error out if shared libraries are disabled + * server-src/amcheckdump.pl: Use timestamp from latest + amdump.1 or amflush.1 log file. (Jean-Louis Martineau + ) + * server-src/amcheckdump.pl: Output partnum. (Jean-Louis + Martineau ) + * server-src/amcheckdump.pl: Add a '/' after the config name. + (Jean-Louis Martineau ) + * perl/Amanda/Logfile.swg perl/Amanda/Device.swg perl/Makefile.am + perl/amglue/integers.swg perl/amglue/amglue.h + perl/amglue/amglue.swg perl/amglue/glib.swg + perl/amglue/bigint.c: Always use Math::BigInt to convert numeric + quantities from C to Perl, to avoid integer overflow and automatic + promotion to double. + * perl/Amanda/Debug.swg client-src/versionsuffix.c + common-src/util.c common-src/util.h common-src/debug.c + common-src/debug.h common-src/conffile.c + common-src/conffile.h common-src/file.c common-src/file.h: + - move get_/set_pname to util.c + - rename RunningAsWho to running_as_flags + - cache original cwd before changing it in safe_cd, and use the + cached value in conffile + * server-src/logfile.c: call set_logerror in open_log + * client-src/runtar.c common-src/debug.c common-src/amanda.h + common-src/file.c common-src/file.h: replace client_uid, + client_gid globals with functions, to eliminate the need + for initialization + * server-src/logfile.c: Update warning about globals + * server-src/find.c: Update search_logfile to possibly search + all tapes in a logfile. Also, other miscellaneous + refactoring. (Ian Turner ) + * server-src/find.h: Document new interface. + * server-src/amindexd.c, server-src/amadmin.c, + server-src/amtrmidx.c, restore-src/amfetchdump.c: Use new + find_dump interface. + * common-src/util.c, common-src/util.h: New function + compare_possibly_null_strings, which is like strcmp() but + orders NULL pointers before non-null strings. + * Makefile.am: reflect BINARY_OWNER into distcheck-triggered + ./configure + * common-src/conffile.c common-src/conffile.h: completely + new API, almost complete rewrite + * common-src/columnar.c common-src/columnar.h + common-src/Makefile.am: new files, extracted from + conffile.[ch] + * oldrecover-src/amrecover.c oldrecover-src/extract_list.c + changer-src/chg-scsi-chio.c changer-src/chg-scsi.c + client-src/sendbackup.c client-src/sendsize.c + client-src/selfcheck.c amandad-src/amandad.c + device-src/device.c recover-src/amrecover.c + recover-src/extract_list.c server-src/diskfile.h + server-src/logfile.c server-src/amlogroll.c + server-src/amindexd.c server-src/amcheck.c + server-src/dumper.c server-src/planner.c + server-src/chunker.c server-src/amadmin.c + server-src/amtape.c server-src/amcleanupdisk.c + server-src/getconf.c server-src/amflush.c + server-src/amtrmlog.c server-src/driverio.c + server-src/holding.c server-src/driverio.h + server-src/driver.c server-src/reporter.c server-src/taper.c + server-src/find.c server-src/amindex.c server-src/amtrmidx.c + server-src/diskfile.c server-src/amlabel.c + perl/Amanda/Config.swg config/amanda/defaults.m4 + restore-src/amidxtaped.c restore-src/amrestore.c + restore-src/restore.c restore-src/amfetchdump.c + common-src/util.h common-src/glib-util.c tape-src/tapeio.c + common-src/amanda.h tape-src/tapeio.h: use new conffile API + * installcheck/Makefile.am installcheck/Amconfig.pm.in + installcheck/Installdirs.pm.in installcheck/Amanda_Config.pl + installcheck/Amanda_Changer.pl installcheck/Amanda_Cmdline.pl + installcheck/Amanda_Logfile.pl installcheck/amcheckdump.pl + installcheck/amdevcheck.pl installcheck/amgetconf.pl: + new unit tests for new modules, applications + * server-src/amdevcheck.pl server-src/amcheckdump.pl: new pure- + Perl applications; amcheckdump.pl is by Ian Turner + + * perl/Amanda perl/Makefile.am perl/Amanda/Paths.pm.in + perl/Amanda/Logfile.swg perl/Amanda/Changer.pm + perl/Amanda/Config.swg perl/Amanda/Debug.swg + perl/Amanda/Tapefile.swg perl/Amanda/Cmdline.swg + perl/Amanda/Util.swg perl/Amanda/Device.swg: new directory + containing perl interfaces to Amanda modules + * perl/amglue perl/amglue/integers.swg perl/amglue/amglue.h + perl/amglue/exports.swg perl/amglue/ghashtable.c + perl/amglue/amglue.swg perl/amglue/constants.swg + perl/amglue/glib.swg perl/amglue/bigint.c: functions and + macros to glue Amanda to perl + +2007-12-21 Satya Ganga + * server-src/amserverconfig.pl: correct holding disk size + validation logic so that it works on solaris too + +2007-12-21 Satya Ganga + * server-src/amserverconfig.pl: amserverconfig needs to create a empty + changer.conf file + +2007-12-21 Jean-Louis Martineau + Bug reported by Tim Bunnell. + * client-src/getfsent.c (dev2rdev): Do it only for block device. + +2007-12-21 Jean-Louis Martineau + * server-src/taper.c: Unquote holding_disk_file. + +2007-12-20 Dustin J. Mitchell + * common-src/debug.h: fix (cosmetic, but confusing) typo + +2007-12-19 Jean-Louis Martineau + * common-src/util.c (quote_string): Quote ':'. + +2007-12-19 Ian Turner + * server-src/taper.c: Don't crash if there is a problem writing a + brand new tape. + +2007-12-19 Jean-Louis Martineau + * server-src/planner.c: Correctly set planner_timestamp if + usetimestamps is set to no. + +2007-12-18 Jean-Louis Martineau + * server-src/driverio.c (childstr): Check dumper->chunker. + +2007-12-14 Ian Turner + * device-src/tape-device.c: Try to open tape devices as O_NONBLOCK + at first; if the device is not ready, we will let the changer script + retry, instead of having the kernel do it for us. + * device-src/tape-ops.h, device-src/tape-aix.c, + device-src/tape-uware.c, device-src/tape-xenix.c, + device-src/tape-posix.c: Add new tape_is_ready() function. + +2007-12-14 Jean-Louis Martineau + * config/amanda/dumpers.m4: Don't set STAR in AMANDA_PROG_SAMBA_CLIENT. + +2007-12-14 Jean-Louis Martineau + * server-src/find.c (search_logfile): Parse taper result line before + merging part_find. + +2007-12-14 Jean-Louis Martineau + * server-src/find.c (find_log): Result should not have duplicate + logfile. + +2007-12-10 Jean-Louis Martineau + * server-src/amstatus.pl: Parse NEW-TAPE line + * server-src/taper.c: Add the handle in NEW-TAPE result. + * server-src/driver.c: Check number of arguments in NEW-TAPE result. + +2007-12-10 Jean-Louis Martineau + * config/amanda/progs.m4: Define AMLINT To 'echo;false' to no lint + are found. + +2007-12-10 Jean-Louis Martineau + * common-src/bsdudp-security.c: Loop over all address until a bind + is successful. + * common-src/bsd-security.c: Loop over all address until a bind + is successful. + * common-src/stream.c: Loop over all address until a connect is + successful. + +2007-12-07 Jean-Louis Martineau + * server-src/amindexd.c: Don't use duplicate part. + +2007-12-07 Jean-Louis Martineau + * restore-src/amfetchdump.c: Don't use duplicate part. + +2007-12-07 Jean-Louis Martineau + * server-src/holding.c (holding_get_all_datestamps): Don't add + duplicate datestamp. + +2007-12-07 Jean-Louis Martineau + * server-src/amcheck.c: Don't complain about correct unlabeled + volumes. + +2007-12-06 Jean-Louis Martineau + * client-src/sendbackup.c, client-src/sendsize.c, + client-src/selfcheck.c, client-src/calcsize.c, + amandad-src/amandad.c, device-src/device.c, + device-src/vfs-device.c, server-src/changer.c, + server-src/dumper.c, server-src/planner.c, + server-src/chunker.c, server-src/server_util.c, + server-src/taperscan.c, server-src/driver.c, + server-src/taper.c, server-src/find.c, + server-src/diskfile.c, common-src/pipespawn.c, + common-src/util.c, common-src/conffile.c: Fix memory leak. + +2007-12-06 Jean-Louis Martineau + * server-src/find.c (search_logfile): Parse PARTPARTIAL line. + +2007-12-06 Jean-Louis Martineau + * server-src/taper.c: Use g_strdup if pointer can be NULL. + +2007-12-05 Jean-Louis Martineau + * server-src/taperscan.c: Don't output the latest changer result. + +2007-12-05 Jean-Louis Martineau + * common-src/util.c (resolve_hostname): Take a new socktype argument. + * common-src/util.h (resolve_hostname): New prototype. + * common-src/bsd-security.c, common-src/bsdtcp-security.c, + common-src/bsdudp-security.c, common-src/krb5-security.c, + common-src/rsh-security.c, common-src/security-util.c, + common-src/ssh-security.c, common-src/stream.c, + recover-src/set_commands.c, server-src/amcheck.c, + server-src/dumper.c: Call resolve_hostname with socktype argument. + +2007-12-05 Jean-Louis Martineau + * common-src/util.c (resolve_hostname): Don't return V4MAPPED address. + * common-src/amanda.h (AI_V4MAPPED, AI_ALL): Don't define. + +2007-12-04 Ian Turner + * server-src/taperscan.c, server-src/taperscan.h: Support persistence + between invocations of taper_scan(), so that you can get second-best + and further tapes. + * server-src/amcheck.c, server-src/amtape.c: Use the new taperscan + interface. + * server-src/taper.c: Do the right thing if there is an error writing + the tape label. + +2007-12-04 Jean-Louis Martineau + * server-src/amtape.c: Correctly output the result of taper scan. + +2007-12-04 Jean-Louis Martineau + * server-src/amcheck.c, server-src/dumper.c + server-src/planner.c: Don't crash is securoty driver is not found. + +2007-12-04 Jean-Louis Martineau + * server-src/changer.c: Print better message if the changer script + has no output. + +2007-12-03 Jean-Louis Martineau + * man/xml-source/amserverconfig.8.xml: Fix indentation. + +2007-11-30 Jean-Louis Martineau + * server-src/taper-mem-port-source.c, server-src/taper-file-source.c + server-src/taper.c: Cast guint64 to uintmax_t and use %ju to print. + +2007-11-30 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: Improve documentation. + * example/amanda.conf.in: Ditto. + +2007-11-30 Jean-Louis Martineau + * server-src/server_util.c (cmdstr): Remove SPLIT-NEEDNEXT + and SPLIT-CONTINUE + * server-src/server_util.h (cmd_t): Remove SPLIT_NEEDNEXT + and SPLIT_CONTINUE. + * server-src/taper.c: Send part_kbyte in PARTDONE result. + * server-src/amstatus.pl: Parse part_kbyte in PARTDONE result line. + Parse REQUEST-NEW_TAPE line. + * common-src/conffile.h: CONF_FLUSH_THRESHOLD_DUMPED, + CONF_FLUSH_THRESHOLD_SCHEDULE, CONF_TAPERFLUSH. + * common-src/conffile.c: CNF_FLUSH_THRESHOLD_DUMPED, + CNF_FLUSH_THRESHOLD_SCHEDULE, CNF_TAPERFLUSH. + * server-src/driverio.h: Add Many globals. + * server-src/driver.c: Split runq in runq and directq. + Implement flush-threshold-*/taperflush. + * example/amanda.conf.in: Example for flush-threshold-* and taperflush. + * man/xml-source/amanda.conf.5.xml: Document flush-threshold-* + and taperflush. + +2007-11-30 Jean-Louis Martineau + * server-src/taperscan.c: Fix output formating. + +2007-11-30 Jean-Louis Martineau + * recover-src/set_commands.c: Add a terminating '/' in cd_regex. + Never add it in cd_dir. + +2007-11-30 Jean-Louis Martineau + * config/automake/scripts.am: Build of the scripts also depend on + $(top_builddir)/config.status + +2007-11-30 Jean-Louis Martineau + * server-src/amdump.sh: Pass a --startime argument to planner. + * server-src/planner.c: Get the --starttime command line argument. + +2007-11-30 Jean-Louis Martineau + * server-src/amstatus.pl: New --locale-independent-date-format option. + * man/xml-source/amstatus.8.xml: Document it. + * server-src/amflush.c: Output a "starttime-locale-independent" line. + * server-src/amdump.sh: Output a "starttime-locale-independent" line. + +2007-11-30 Jean-Louis Martineau + * server-src/find.c: Remove seen_chunk_of function. + +2007-11-28 Jean-Louis Martineau + * config/macro-archive/docbook-dtd.m4: Check return code of 5. + +2007-11-28 Dustin J. Mitchell + * installcheck/Amconfig.pm.in: fix quoting error leading to + directories named '"' + +2007-11-28 Dustin J. Mitchell + * common-src/file.c: only chown new directories when running as root + +2007-11-28 Dustin J. Mitchell + * config/automake/installperms.am: strip directory names from build + filenames when setting permissions; fixes errors from examples/ + install + +2007-11-28 Dustin J. Mitchell + * man/Makefile.am: Allow installs, but not tarballs, without + manpages + +2007-11-27 Jean-Louis Martineau + * server-src/planner.c: Check dp->todo before using (est)->dp. + +2007-11-27 Jean-Louis Martineau + * device-src/device.c (default_device_start): Overwrite label only + if mode == ACCESS_WRITE. + +2007-11-20 Ian Turner + * device-src/device.c, device-src/device.h + device-src/tape-device.c, device-src/rait-device.c: Change API + semantics with respect to label reading. This patch makes it + possible to open and read a volume with properties while only + reading its label once. Thanks to Jean-Louis Martineau + for suggesting this change. + +2007-11-20 Ian Turner + * device-src/vfs-device.c: Be more thourough about updating volume + usage statistics. + +2007-11-20 Ian Turner + * changer-src/chg-lib.sh.in: Use a more robust check for MT path. + * server-src/amverify.sh.in: Use amrestore instead of amdd/ammt. + +2007-11-09 Ian Turner + * server-src/taperscan.c: Fix a memory allocation bug and be a little + more paranoid. + +2007-11-06 Ian Turner + * server-src/taperscan.c: Print a proper message if there is + only one flag from device_read_label(). + +2007-11-26 Dustin J. Mitchell + * configure.in config/amanda/config.m4 common-src/genversion.c + common-src/Makefile.am: explicitly generate svn info at configure + time, rather than relying on svn keywords + +2007-11-26 Ian Turner + * server-src/Makefile.am: Move amdevcheck from libexec/ to sbin/. + Thanks to Satya Ganga for noticing this problem. + +2007-11-26 John Franks + * common-src/debug.c For cygwin builds: change to + close and reopen log file handle on successful rename. + This is to ensure that Windows has no possibility of + preventing access to the original file name if processes + collide. + +2007-11-23 Jean-Louis Martineau + * server-src/amflush.c: Send config option (-o) to child process. + +2007-11-23 Jean-Louis Martineau + * server-src/planner.c: Don't set est(dp)->state before testing it. + +2007-11-23 Jean-Louis Martineau + * config/amanda/readline.m4: Include termcap, curses or ncurese in LIBS. + +2007-11-23 Jean-Louis Martineau + * server-src/diskfile.c (match_disklist): Fix for disk not found. + +2007-11-23 Jean-Louis Martineau + * server-src/driver.c: Don't release taper_ev_read in + start_degraded_mode. + +2007-11-20 Paddy Sreenivasan + * amanda.spec: Added calls to Zmanda + * example/amanda-client.conf.in: Switch to bsdtcp + +2007-11-14 Jean-Louis Martineau + * server-src/amstatus.pl: Handle taper FAILED message. + +2007-11-14 Jean-Louis Martineau + * config/amanda/userid.m4: Use $enableval in AC_ARG_ENABLE. + +2007-11-07 Paddy Sreenivasan + * server-src/amserverconfig.pl server-src/amaddclient.pl: + new configuration tools + * common-src/amgpgcrypt.pl common-src/amcryptsimple.pl: + new encryption plugins + * man/xml-source/amaddclient.8.xml man/xml-source/amgpgcrypt.8.xml + man/xml-source/amcryptsimple.8.xml + man/xml-source/amserverconfig.8.xml: man pages for new tools + * example/template.d/* - Configuration file templates + * example/amanda-client.conf.in: Updated amanda configuration file + * example/Makefile.am man/Makefile.am server-src/Makefile.am + common-src/Makefile.am: Added amserverconfig, amaddclient, + amgpgcrypt and amcryptsimple + * device-src/Makefile.am: Fixed libamdevice version + * configure.in: Added template files + * amanda.spec: Updated spec file for new utilities + +2007-11-01 Dustin J. Mitchell + * config/automake/installperms.am: new method of specifying + permissions on installed files + * config/amanda/userid.m4 configure.in: add --disable-installperms + to disable any permsisions settings (useful for packaging builds) + * oldrecover-src/Makefile.am example/Makefile.am + changer-src/Makefile.am amplot/Makefile.am + client-src/Makefile.am amandad-src/Makefile.am man/Makefile.am + dumper-src/Makefile.am recover-src/Makefile.am + server-src/Makefile.am restore-src/Makefile.am + Makefile.am support/Makefile.am common-src/Makefile.am + tape-src/Makefile.am: use installperms.am + +2007-11-01 Dustin J. Mitchell + Suggested by Jon LaBadie + * config/automake/precompile.am: new rule to make + precompiler output files; useful for debugging + * */Makefile.am: include precompile.am + +2007-11-01 Jean-Louis Martineau + * AUTHORS: Add Dustin J. Mitchell. + +2007-10-31 John Franks (merged by dustin@zmanda.com) + * most C files, amanda.h: Switch to using the g_printf family, which + supports a consistent set of %-conversions, including the 'z' + (size_t) and 'j' (intmax_t) size specifiers. Convert various + printf format strings accordingly. + +2007-10-31 Dustin J. Mitchell + * common-src/genversion.c common-src/Makefile.am: fix BUILD_REV + and BUILD_BRANCH to work even when packages are built from + distribution tarballs + +2007-10-31 Ian Turner + * server-src/taperscan.c: Don't segfault if there is an error opening + a device during taperscan. + +2007-10-30 Dustin J. Mitchell + * docs autogen INSTALL UPGRADING configure.in + DEVELOPING Makefile.am: remove docs/ directory in favor of + manpages and online reference; most docs/* were outdated + +2007-10-29 Dustin J. Mitchell + * changer-src/chg-zd-mtx.sh: fix typo + +2007-10-29 Ian Turner + * restore-src/restore.c: Don't mention slot numbers when running + without a changer. + +2007-10-29 Ian Turner + * man/xml-source/amfetchdump.8.xml: Remove documentation for + amfetchdump -i. + +2007-10-26 Dustin J. Mitchell + Add support for post-install tests, which can be more thorough than + unit tests. + * configure.in Makefile.am installcheck/*: new directory + * installcheck/amgetconf.pl: test some of amgetconf's functionality + * docs/developing.txt: notes on various test mechanisms + * config/automake/scripts.am: add CHECK_PERL_FLAGS + * common-src/debug.c: only try to chown debug files if running as root + +2007-10-25 Dustin J. Mitchell + * config/mkinstalldirs config/depcomp config/config.guess + config/ltmain.sh config/config.sub config/missing + config/install-sh config/ylwrap: update files with automake-1.10, + libtool-1.5.24 + * autogen: don't call automake with --add-missing, as it stomps all + over the working copy + +2007-10-25 Dustin J. Mitchell + * gnulib/* config/*: updated to latest gnulib + * gnulib/regenerate/regenerate: update gnulib date + * gnulib/regenerate/getaddrinfo-cygwin.patch: update to patch new + getaddrinfo.c + * device-src/tests/vfs_test.c: mkdtemp.h no longer exists + +2007-10-24 Jean-Louis Martineau + * client-src/Makefile.am: Remove duplicate entry for + libamclient_la_SOURCES. + +2007-10-23 Dustin J. Mitchell + * config/automake/scripts.am: rules to build (substitute) scripts + * config/automake/vars.am: define empty variables for later appending + * config/automake/check-perl.am config/automake/check-shell.pm: + removed + * changer-src/Makefile.am amplot/Makefile.am client-src/Makefile.am + dumper-src/Makefile.am server-src/Makefile.am + common-src/Makefile.am: Use new include files + * configure.in: remove now-unnecessary AC_CONFIG_FILES + * *.sh.in *.pl.in *.awk.in: renamed + +2007-10-20 Jean-Louis Martineau + * server-src/reporter.c: Always call sort_disks. + +2007-10-20 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: Correctly document portrange. + * common-src/conffile.c: Fix portrange. + +2007-10-20 Jean-Louis Martineau + * common-src/conffile.c: Allow reserved-udp-port and reserved-tcp-port + in amanda-client.conf. + +2007-10-17 Dustin J. Mitchell + * common-src/amanda.h: remove amflock cruft + +2007-10-16 Dustin J. Mitchell + * config/amanda/defaults.m4: Change EXAMPLE_TAPEDEV to use the 'tape:' + syntax, and to indicate "you need to change this!" more explicitly + +2007-10-16 Ian Turner + * common-src/glib-util.c: Allow use of units in parsing GValues; in + particular, this allows use of units when specifying device + properties in the configuration file. + * common-src/conffile.c, common-src/conffile.h: Make unit suffixes + available outside of conffile.c. + +2007-10-16 Ian Turner + * device-src/device.c: Fix a compilation error in + device_set_startup_properties_from_config(). + +2007-10-16 Ian Turner + * man/xml-source/amanda.conf.5.xml, server-src/taper.c, + common-src/conffile.c, common-src/conffile.h: Add new + configuration directive device_output_buffer_size to replace + tapebufs. + +2007-10-15 Ian Turner + * device-src/device.c: Don't complain about problems setting + MAX_VOLUME_USAGE; do complain about problems setting + READ_BUFFER_SIZE. + +2007-10-16 Jean-Louis Martineau + * client-src/sendbackup-gnutar.c: Use GNUTAR. + +2007-10-15 Dustin J. Mitchell + * device-src/device.c: do not fall back to tape:/foo if the tape + device is not available (WANT_TAPE_DEVICE is not set) + +2007-10-12 Dustin J. Mitchell + * changer-src/chg-mtx.sh.in changer-src/chg-zd-mtx.sh.in + changer-src/chg-multi.sh.in: add missing definition of prefix + +2007-10-12 Jean-Louis Martineau + * common-src/protocol.c (s_repwait): return PA_FINISH on P_NAK. + +2007-10-11 Dustin J. Mitchell + * config/amanda/tape.m4: fix typo (have_MTIOCTOP -> HAVE_MTIOCTOP) + +2007-10-10 Dustin J. Mitchell + * common-src/amflock-test.c common-src/amflock-lnlock.c: don't use + AMANDA_TMPDIR during build-time testing + +2007-09-14 Dustin J. Mitchell + * recover-src/uscan.l recover-src/extract_list.c + recover-src/uparse.y recover-src/amrecover.h + recover-src/help.c recover-src/set_commands.c: deprecate + 'settape', add 'setdevice' + * man/xml-source/amrecover.8.xml: corresponding doc update + * example/amanda.conf.in: update comments in example config, + change default value of amrecover_changer from the confusing + "/dev/null" + +2007-10-09 Dustin J. Mitchell + * common-src/amflock-test.c: lock files in the cwd, rather than /tmp, + and pay attention to errors from unlink() + +2007-10-09 Dustin J. Mitchell + * gnulib/regenerate/regenerate gnulib/mkdtemp.c gnulib/mkdtemp.h + gnulib/gettimeofday.c gnulib/sys_time_.h gnulib/tempname.c + gnulib/tempname.h gnulib/stat_.h gnulib/Makefile.am + device-src/tests/vfs_test.c config/gnulib/mkdtemp.m4 + config/gnulib/sys_time_h.m4 config/gnulib/tempname.m4 + config/gnulib/gnulib-comp.m4 config/gnulib/sys_stat_h.m4 + config/gnulib/gnulib-cache.m4 config/gnulib/gettimeofday.m4: + add 'mkdtemp' gnulib module, use it in vfs_test.c + +2007-10-09 Jean-Louis Martineau + * common-src/util.c (portable_readdir): Don't use reentrant function. + +2007-10-08 Dustin J. Mitchell + * autogen configure.in config/macro-archive/*.m4 + config/amanda/*.m4 config/libtool/*.m4: move most autoconf + checks to macros in .m4 files. Hilights of changes along the way: + - use AC_REQUIRES to enforce check ordering + - Add a post-configure summary of important results + - use AM_CONDITIONAL to control conditional compilation of whole + files, instead of preprocessor macros + - correct spelling of PRINCIPLE -> PRINCIPAL + - remove support for dbmalloc (we use valgrind, coverity, etc. now) + - remove support for infofiles in anything but text format + - change DONT_SUID_ROOT to !WANT_SETUID_ROOT + - remove unused --with-broken-fsf + - remove multiple unused function and header checks, the defines + from which do not appear in any source file + - remove LTLIBOBJS cruft based on + http://www.delorie.com/gnu/docs/autoconf/autoconf_165.html + - remove unused LTALLOCA definition based on + http://www.delorie.com/gnu/docs/libtool/libtool_30.html + - use autoconf macro archive's + AC_DEFINE_DIR to expand $prefix, etc. in directory variables + - do not *require* --with-{user,group}; this allows 'make distcheck' + to run successfully + * docs/developing.txt: describe how to update gnulib, libtool, and + gettext + * po/reautopoint.patch po/reautopoint: script to update gettext, + parallel to gnulib/regenerate/regenerate + * amandad-src/amandad.c changer-src/scsi-aix.c + changer-src/scsi-bsd.c changer-src/scsi-cam.c + changer-src/scsi-changer-driver.c changer-src/scsi-chio.c + changer-src/scsi-hpux.c changer-src/scsi-hpux_new.c + changer-src/scsi-irix.c changer-src/scsi-linux.c + changer-src/scsi-proto.c changer-src/scsi-solaris.c + changer-src/sense.c client-src/calcsize.c client-src/getfsent.c + client-src/selfcheck.c client-src/sendbackup.c + client-src/sendsize.c common-src/alloc.c common-src/amanda.h + common-src/conffile.c common-src/debug.c common-src/file.c + common-src/genversion.c common-src/krb4-security.c + common-src/writev.c device-src/tape-posix.c server-src/amadmin.c + server-src/amcheck.c server-src/amlabel.c server-src/amlogroll.c + server-src/amtape.c server-src/amtrmidx.c server-src/amtrmlog.c + server-src/changer.c server-src/chunker.c server-src/diskfile.c + server-src/driver.c server-src/dumper.c server-src/getconf.c + server-src/infofile.c server-src/infofile.h server-src/planner.c + server-src/reporter.c tape-src/output-tape.c: changes corresponding + to simplifications and fixes in autoconf + * gnulib/regenerate/no-error.patch gnulib/regenerate/regenerate: no + need to create gnulib.m4i anymore + +2007-10-08 Kevin Till (merged by dustin@zmanda.com) + * example/amanda.conf.in: add segate LTO tapetype + +2007-10-08 Paddy Sreenivasan + * changer-src/chg-lib.sh.in + changer-src/chg-null.sh.in changer-src/chg-disk.sh.in + changer-src/chg-juke.sh.in changer-src/chg-rait.sh.in + changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in + amplot/amplot.sh.in client-src/patch-system.sh.in + server-src/amcheckdb.sh.in server-src/amverifyrun.sh.in + server-src/amrmtape.sh.in server-src/amverify.sh.in + server-src/amfreetapes.sh.in server-src/amcleanup.sh.in + server-src/amdump.sh.in common-src/amanda-sh-lib.sh.in + common-src/amcrypt-ossl-asym.sh.in common-src/amcrypt.sh.in + common-src/amaespipe.sh.in common-src/Makefile.am + common-src/amcrypt-ossl.sh.in: move amanda-sh-lib.sh from + $libexecdir/amanda to just $libexecdir + +2007-10-04 Dustin J. Mitchell + * device-src/tests/Makefile.am device-src/tests/vfs_test.c: add a test + for the vfs device + * device-src/property.c device-src/vfs-device.c: add + PROPERTY_FREE_SPACE + +2007-10-04 Dan Locks + * amanda.spec: add .spec file Zmanda uses for community builds + +2007-10-04 Dustin J. Mitchell + * device-src/device.c device-src/Makefile.am configure.in: add + WANT_TAPE_DEVICE conditional, for machines that have no tape + support whatsoever (Mac OS X) + +2007-10-03 Dan Locks + * configure.in: Added /opt/local/bin AC_PATH_PROG(PKG_CONFIG.. for + mac osx and macports + +2007-10-03 Jean-Louis Martineau + * server-src/driver.c: Go in degraded mode after out of tape. + +2007-10-02 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: Fix indentation. + +2007-10-02 Dustin J. Mitchell + * server-src/amcheck.c: Fix typo in merge found by + martineau@zmanda.com + +2007-10-01 Ian Turner + * device-src/rait-device.c, device-src/queueing.c, + device-src/tests/device_test.c, device-src/device.h, + device-src/device.c: Remove device_is_eof() function in favor of + accessing is_eof member directly. + +2007-10-01 Dustin J. Mitchell + Coverity bug #237 + * amandad-src/amandad.c: fix a use-after-free + +2007-10-01 Ian Turner + * device-src/device.c: Automatically register the CANONICAL_NAME + property for all devices. + +2007-10-01 Ian Turner + * device-src/tape-posix.c: Use MTEOD on systems that have it but not + MTEOM. + +2007-10-01 Ian Turner + * device-src/device.c, device-src/vfs-device.c, + device-src/rait-device.c: Use g_strdup() instead of strdup(). + +2007-10-01 Ian Turner + * changer-src/chg-lib.sh.in: Fix some compilation problems on + Solaris 10. + +2007-09-25 Dan Locks + * common-src/util.c: cast uid_t to long long for printf formatting + +2007-09-25 Dustin J. Mitchell + * oldrecover-src/Makefile.am changer-src/Makefile.am + client-src/Makefile.am amandad-src/Makefile.am + recover-src/Makefile.am server-src/Makefile.am + restore-src/Makefile.am common-src/Makefile.am + tape-src/Makefile.am: replace -I../config with + -I$(top_builddir)/config + * device-src/tests/Makefile.am: Replace -I.. with + -I$(top_srcdir)/device-src + +2007-09-25 Dustin J. Mitchell + * client-src/sendsize.c: change "smbclient" to SAMBA_CLIENT to allow + configurable name + +2007-09-25 Dustin J. Mitchell + * common-src/amflock-flock.c common-src/amflock-posix.c + common-src/amflock-lockf.c common-src/amflock-lnlock.c + common-src/amflock.c: use G_GNUC_UNUSED to avoid compiler + warnings + +2007-09-25 Dustin J. Mitchell + * common-src/amanda.h common-src/file.h: move declaration of + canonicalize_pathname to file.h + +2007-09-25 Dustin J. Mitchell + * common-src/util.c common-src/util.h: only check euid==uid + if not RUNNING_AS_UID_ONLY; set_root_privs() checks that euid=0 + * client-src/runstar.c client-src/noop.c client-src/runtar.c + client-src/sendbackup.c client-src/killpgrp.c + client-src/sendsize.c client-src/selfcheck.c + client-src/rundump.c amandad-src/amandad.c + server-src/amlogroll.c server-src/amindexd.c + server-src/amcheck.c server-src/dumper.c server-src/planner.c + server-src/chunker.c server-src/amadmin.c server-src/amtape.c + server-src/amcleanupdisk.c server-src/amflush.c + server-src/amtrmlog.c server-src/amdevcheck.c + server-src/driver.c server-src/reporter.c server-src/taper.c + server-src/amtrmidx.c server-src/amlabel.c + restore-src/amidxtaped.c restore-src/amfetchdump.c: + remove RUNNING_WITHOUT_SETUID and change RUNNING_AS_SETUID_ROOT + to RUNNING_AS_UID_ONLY (with corresponding checks for root-ness) + * client-src/calcsize.c: drop root privs immediately, and only + regain them for stat() and opendir() operations + +2007-09-25 Dustin J. Mitchell + * device-src/property.c device-src/property.h: create VERBOSE property + +2007-09-25 Dustin J. Mitchell + * device-src/device.h device-src/queueing.h: expand comments + * tape-src/output-rait.h tape-src/output-null.c + tape-src/output-null.h tape-src/output-file.c + tape-src/output-file.h tape-src/output-tape.c + tape-src/output-tape.h tape-src/output-rait.c: add deprecation + comment + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * changer-src/chg-zd-mtx.sh.in: Don't pass stripped device names back + to Amanda. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * changer-src/chg-mtx.sh.in, changer-src/chg-manual.sh.in, + changer-src/chg-zd-mtx.sh.in, changer-src/chg-juke.sh.in, + changer-src/chg-chs.sh.in, changer-src/chg-multi.sh.in: Don't use + ammt for anything; use system mt and only for device operations that + require it. + * changer-src/chg-lib.sh.in: Support for above change. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * device-src/tape-device.c: Fix a border case bug where + tape_device_robust_read() would abort when called with a buffer + exactly equal to the minimum read size. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * device-src/tape-device.c: Use g_strdup() instead of strdup(). + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * device-src/vfs-device.h, device-src/fd-device.c, + device-src/tape-device.c, device-src/Makefile.am, + device-src/fd-device.h, device-src/tape-device.h, + device-src/vfs-device.c: Delete the FdDevice and make TapeDevice + and VfsDevice direct descendants of Device. Also, correct all + reading and writing of volume and part labels for both drivers. + * server-src/amcheck.c: Unlabeled tapes are OK, at least with + label_new_tapes_option. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * server-src/taperscan.c: Fix the order of arguments to + scan_read_label(). Patch by Dustin J. Mitchell . + +2007-09-25 Jean-Louis Martineau (merged by dustin@zmanda.com) + * restore-src/restore.c: Change "no tapedev specified" message. + +2007-09-25 Jean-Louis Martineau (merged by dustin@zmanda.com) + * server-src/amtape.c: changer_label should be called only on success. + +2007-09-25 Jean-Louis Martineau (merged by dustin@zmanda.com) + * restore-src/restore.c: init cur_tapedev. + +2007-09-25 Dustin J. Mitchell + * gnulib/regenerate/regenerate gnulib/* config/gnulib/*: add + gnulib module 'fsusage' + * common-src/statfs-test.c common-src/statfs.c + common-src/statfs.h common-src/Makefile.am: remove old statfs + * client-src/selfcheck.c client-src/calcsize.c + server-src/amcheck.c server-src/driver.c: use fsusage instead of + statfs + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * common-src/alloc.c: Do away with debug_amfree(), which makes invalid + assumptions about the way system malloc() works. + * common-src/amanda.h: Update definition of amtable_free() accordingly. + +2007-09-25 Jean-Louis Martineau (merged by dustin@zmanda.com) + * server-src/amadmin.c: Allow 'f' sort order. + * server-src/find.c: Fix parsing of log files. + * server-src/find.h (DEFAULT_SORT_ORDER): Set to "hkdlpbf". + +2007-09-25 Jean-Louis Martineau (merged by dustin@zmanda.com) + * server-src/driverio.h (sched_t): Split attempted in dump_attempted + and taper_attempted. + * server-src/driver.c: Split attempted in dump_attempted + and taper_attempted. + * server-src/driver.c (file_taper_result): Retry dump if INPUT-ERROR. + +2007-09-25 Jean-Louis Martineau (merged by dustin@zmanda.com) + * server-src/dumper.c (add_msg_data): Remove bogus handling of " + in mesg stream. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * server-src/taper-file-source.c: If there's a problem reading the + holding disk, log the error as we get it from the OS. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * server-src/taper-source.c, server-src/taper.c: Do the right thing + if the connection to dumper is severed before we recieve a header. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * server-src/taper-source.c, server-src/taper-source.h, + server-src/taper-source-test.c, server-src/taper-port-source.c, + server-src/taper-port-source.h: Don't have TaperPortSource track + the control FD, and make it responsible for closing the data FD. + * server-src/taper.c: ditto, plus close control socket correctly. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * server-src/vfs-device.c: Fix a bug where all VFS device volumes + were thought unlabeled. Also do the right thing when there are + extra files in the VFS volume directory. + * server-src/amlabel.c: Fail if there is a problem re-reading the + volume label. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * device-src/device.c: Set the device name before reading the label. + * device-src/fd-device.c: An invalid header indicates an unlabeled + volume, not a volume error. + * device-src/taper-device.c: Insufficient buffer space causes + ENOMEM, not ENOSPC, at least on Linux. + * server-src/amlabel.c: Correctly handle the case where + device_read_label() returns exactly 1 set bit. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * server-src/taper-source.c, server-src/taper-disk-port-source.c, + server-src/taper.c: Be careful not to use strings from getcwd() + past the next invocation of getcwd(). + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * device-src/vfs-device.c: Use old VFS device specification. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * server-src/amlabel.c: Don't dump core on successful labeling. + +2007-09-25 Dustin J. Mitchell + * device-src/tests/semaphore-test.c device-src/tests/Makefile.am: + test semaphore module + * device-src/semaphore.c: bugfixes, optimizations + * device-src/semaphore.h: inline documentation + +2007-09-25 Nikhil Bandiwadekar (merged by dustin@zmanda.com) + * server-src/driver.c: Added quoting to directory name while logging + in statistics section + * server-src/reporter.c: Handled quoted string for directory name in + statistics section + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * device-src/device.c, device-src/device.h, device-src/s3-device.c, + device-src/fd-device.c, device-src/tape-device.c, + device-src/vfs-device.c, device-src/rait-device.c: Implement new, + more nuanced device_read_label() interface. + * server-src/amcheck.c, server-src/amtape.c, server-src/taperscan.c, + server-src/amlabel.c, restore-src/amrestore.c, + restore-src/restore.c: Use new interface. + * common-src/glib-util.c, common-src/glib-util.h: New Flags->string + interface. + * server-src/amdevcheck.c: New tool to check device/volume status. + * man/xml-source/amdevcheck.8.xml: Document it. + * server-src/Makefile.am: Add amdevcheck + * man/Makefile.am: Add amdevcheck.8 + +2007-09-25 Dustin J. Mitchell + * device-src/s3-device.c: adjust glib logging calls to match debug.h's + definitions. + * common-src/debug.c: typo + * common-src/debug.h: add definitions for g_info() and g_debug() if + they are missing + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + Thanks to Pavel Pragin for finding these issues. + * server-src/amtape.c: Update the changer database in 'amtape update'. + Thanks to Dustin J. Mitchell for this fix. + * server-src/taperscan.c: Update the changer database during the + taper scan algorithm. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + Thanks to Jean-Louis Martineau for these fixes: + * server-src/dumper.c: Log packet to debug file. + * server-src/planner.c: Improve quoting. + * server-src/driver.c: Don't call free_serial if we still need it. + * server-src/driver.c: Wait for dumper result if taper fail. + * server-src/amstatus.pl.in: Improve parsing of initial schedule. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * device-src/tape-device.c: Use the right default block size for + reading. + +2007-09-25 Dustin J. Mitchell + * device-src/vfs-device.c: add forgotten device_add_property() call + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * server-src/taper.c: Remove an erroneous assertion. Thanks to + Jean-Louis Martineau for noticing this issue. + +2007-09-25 Patch by Jean-Louis Martineau (merged by dustin@zmanda.com) + * server-src/driverio.h server-src/driver.c: Record + information from first PARTDONE result. Remove duplicate + update_info_dumper. Call update_info_taper as needed. + +2007-09-25 Jean-Louis Martineau (merged by dustin@zmanda.com) + * restore-src/restore.c: Don't send text to prompt_out if amidxtaped. + +2007-09-25 Jean-Louis Martineau (merged by dustin@zmanda.com) + * restore-src/amfetchdump.c: Fix a bug where amfetchdump will never + try to use the changer. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * restore-src/amfetchdump.c: Fix a bug where amfetchdump will + still try to use the changer even with the -d parameter. + +2007-09-25 Dustin J. Mitchell + * man/xml-source/amadmin.8.xml server-src/amadmin.c: add an + 'outd' column to 'amadmin CONF holding list -l', indicating + an "outdated" dump, and a '-d' option to list only outdated + holding disk files. Outdated dumps are described in the + amadmin documentation. + +2007-09-25 Dustin J. Mitchell + * client-src/sendsize.c configure.in server-src/getconf.c + restore-src/amrestore.c restore-src/amfetchdump.c + common-src/util.c common-src/genversion.c common-src/util.h + common-src/debug.c common-src/error.c common-src/amanda.h + common-src/Makefile.am: + - support the glib logging infrastructure by feeding messages + into debug logs + - merge the error module into the debug module + - document debug.h with verbose comments + - call g_critical() for error() and g_error() for errordump() + - remove double dgettext() call in debug_printf + - remove --without-debugging (so debugging is always on) + - remove mostly unused debug prefix support + - remove onerror(), replacing its few uses with alternatives + +2007-09-25 Dustin J. Mitchell + * device-src/tests/device_test.c configure.in + recover-src/extract_list.c recover-src/uparse.y + server-src/amlogroll.c server-src/dumper.c server-src/reporter.c + common-src/conffile.c common-src/amanda.h common-src/getcwd.c + common-src/getcwd.h common-src/Makefile.am: Replace calls + to safe_getcwd with calls to g_get_current_dir(), which + has the same signature and semantics. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * restore-src/restore.c: Fix a bug where amfetchdump would not + restore anything when given the -p option. Thanks to Jean-Louis + Martineau for help in the development of + this patch. + +2007-09-25 Dustin J. Mitchell + * man/xml-source/amanda.conf.5.xml: note that includefile can + take relative paths + * server-src/amcleanupdisk.c: fix local variable shadowing + config_dir + +2007-09-25 Dustin J. Mitchell + * server-src/holding.c (holding_walk_file): amfree(filename). + +2007-09-25 John Franks (merged by dustin@zmanda.com) + * man/Makefile.am: fixes for conditional compiles + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * common-src/conffile.c: Clean up some bad warning suppression and + obselete unused code. + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * example/config.site man/xml-source/amanda.conf.5.xml + device-src/device.c device-src/device.h device-src/property.c + device-src/fd-device.c device-src/tape-device.c + device-src/property.h device-src/tape-device.h + device-src/tape-ops.h server-src/amcheck.c server-src/amtape.c + server-src/taperscan.c server-src/taper.c server-src/amlabel.c + restore-src/amrestore.c restore-src/restore.c: + This patch adds a new property READ_BUFFER_SIZE which is used + only by the tape device. The VFS device still uses BLOCK_SIZE + for reading; other devices don't need the property. + +2007-09-25 Dustin J. Mitchell + * server-src/amcheck.c: remove debugging message + * device-src/tape-posix.c: fix compilation + errors when MTCOMPRESSION is not defined + +2007-09-25 Dustin J. Mitchell + * Makefile.am config/Makefile.am config/ax_create_stdint_h.m4i + autogen configure.in: remove AX_CREATE_STDINT_H + * configure.in: add system-specific glib configuration + * changer-src/scsi-cam.c device-src/device.c + device-src/device.h device-src/tests/device_test.c + device-src/rait-device.c server-src/amcheck.c + server-src/taper.c server-src/amlabel.c + restore-src/amrestore.c restore-src/restore.c + common-src/glib-util.c common-src/security-util.c + common-src/amanda.h common-src/krb4-security.c: + replace references to stdint types and defines with glib + equivalents + +2007-09-25 Ian Turner (merged by dustin@zmanda.com) + * device-src/s3.c, device-src/tape-device.c, + device-src/rait-device.c: Fix a number of compiler warnings, some + legimate, others not. Thanks to Dustin J. Mitchell + and Jean-Louis Martineau + for help identifying warnings that need fixing. + +2007-09-25 Dustin J. Mitchell + * man/xml-source/amcleanup.8.xml server-src/amcleanupdisk.c + server-src/amcleanup.sh.in: add -v option for verbose output + * server-src/holding.c server-src/holding.h: rewrite + implementation of the holding API to use functors + * server-src/driver.c: modifications to holding API changes + +2007-09-24 Ian Turner (merged by dustin@zmanda.com) + * device-src/device.c: Suppress a compiler warning. + +2007-09-24 Ian Turner (merged by dustin@zmanda.com) + * device-src/device.h, device-src/device.c, device-src/fd-device.c, + device-src/tape-device.c, device-src/vfs-device.c, + device-src/rait-device.c: Update the seek_file API skip missing + files. Thanks to Dustin J. Mitchell and + Jean-Louis Martineau for help with this patch. + * restore-src/restore.c: Use the new API. + +2007-09-24 Ian Turner (merged by dustin@zmanda.com) + * client-src/Makefile.am, device-src/tests/Makefile.am, + device-src/Makefile.am, configure.in, common-src/Makefile.am, + tape-src/Makefile.am: Use AM_CFLAGS and LDFLAGS when + compiling. These changes by Dustin J. Mitchell . + * device-src/device.c, device-src/null-device.c, + device-src/device.c, device-src/queueing.c, device-src/property.c, + device-src/fd-device.c, device-src/s3-device.c, + device-src/semaphore.h, device-src/property.h, + device-src/vfs-device.c: Fix compiler warnings revealed by above + change. Thanks to Jean-Louis Martineau Jean-Louis Martineau + for help with these fixes. + +2007-09-24 Dustin J. Mitchell + * restore-src/restore.c restore-src/restore.h: + Allow NULLs in arguments to dump_match(); make it a static + function. + +2007-09-24 Dustin J. Mitchell + * device-src/device.c device-src/vfs-device.h + device-src/rait-device.h device-src/device.h + device-src/null-device.c device-src/tape-aix.c + device-src/tape-uware.c device-src/null-device.h + device-src/tape-xenix.c device-src/queueing.c + device-src/semaphore.c device-src/property.c + device-src/fd-device.c device-src/tape-device.c + device-src/queueing.h device-src/semaphore.h + device-src/property.h device-src/tape-posix.c + device-src/fd-device.h device-src/tape-device.h + device-src/vfs-device.c device-src/rait-device.c + device-src/tape-ops.h common-src/glib-util.c + common-src/glib-util.h: restrict to GPLv2 + +2007-09-24 John Franks (merged by dustin@zmanda.com) + * Correct Cygwin build errors: + common-src/Makefile.am + common-src/amanda.h + +2007-09-24 Dustin J. Mitchell + * server-src/cmdline.c server-src/planner.c server-src/amadmin.c + server-src/amcleanupdisk.c server-src/amflush.c + server-src/holding.c server-src/holding.h server-src/driver.c + server-src/find.c common-src/glib-util.c common-src/glib-util.h: + remove 'verbose' flag, remove holding directories from API (they + will be gone soon anyway), and rework the holding module to use + glib data structures + +2007-09-24 Dustin J. Mitchell + * gnulib/regenerate/regenerate gnulib/Makefile.am + device-src/tests/Makefile.am device-src/Makefile.am + server-src/taper-mem-port-source.c server-src/taper.c + config/gnulib/gnulib-comp.m4 config/gnulib/gnulib-cache.m4 + config/gnulib.m4i common-src/physmem.c common-src/physmem.h + common-src/amanda.h common-src/base64.c common-src/Makefile.am + common-src/base64.h: move base64, physmem into gnulib and set + device API to include libgnu. + +2007-09-24 Dustin J. Mitchell + * common-src/Makefile.am: remove redundant use of EXTRA_DIST + +2007-09-24 Dustin J. Mitchell + * device-src/device.c device-src/tests/device_test.c + device-src/rait-device.c server-src/amcheck.c + server-src/amtape.c server-src/taperscan.c server-src/taper.c + server-src/amlabel.c restore-src/restore.c: device_open() no + longer free()s the device name it is given. + +2007-09-24 Dustin J. Mitchell + * restore-src/restore.c: fix uninitialized value error + +2007-09-24 Dustin J. Mitchell + * server-src/changer.c server-src/amindexd.c + restore-src/amidxtaped.c common-src/debug.c common-src/amanda.h + common-src/alloc.c: fix support for builds without --with-debugging + +2007-09-24 Dustin J. Mitchell + * device-src/tests/queue_test.c: simplify signal handling to + be more portable + +2007-09-24 Dustin J. Mitchell + * server-src/cmdline.c server-src/cmdline.h: + Optionally parse datestamps and levels + * server-src/amadmin.c: pass flags to cmdline functions + * server-src/find.c restore-src/amidxtaped.c + restore-src/amrestore.c restore-src/restore.c + restore-src/restore.h restore-src/amfetchdump.c: + Use cmdline module in amrestore, amidxtaped, and amfetchdump + +2007-09-24 Ian Turner (merged by dustin@zmanda.com) + * restore-src/amrestore.c: Fix a segmentation fault that occurs + when the user specifies hostname, diskname, and date. Thanks to + Jean-Louis Martineau for finding and + fixing this bug. + +2007-09-24 Ian Turner (merged by dustin@zmanda.com) + * device-src/device.c (device_set_startup_properties_from_config): + Use tapetype parameters as well as device_property directives. + * device-src/device.h: ditto. + * common-src/conffile.c: Use a new macro DEFAULT_TAPE_LENGTH + as default tapetype length. + * common-src/conffile.h: ditto. + * restore-src/amrestore.c: Use new interface to + devic_set_startup_properties_from_config(). + * restore-src/restore.c: ditto. + * server-src/amcheck.c: ditto. + * server-src/amlabel.c: ditto. + * server-src/amtape.c: ditto. + * server-src/taper.c: ditto. + * server-src/taperscan.c: ditto. + +2007-09-24 Ian Turner (merged by dustin@zmanda.com) + * server-src/amcheck.c: Return 0 if everything is good with the + tape. Thanks to Dustin Mitchell for + reporting this issue, and to Jean-Louis Martineau + for suggesting the form of the fix. + +2007-09-24 Ian Turner (merged by dustin@zmanda.com) + * server-src/restore.c: Only restore files matching requested + disknames. Report and patch by Jean-Louis Martineau + . + +2007-09-24 Ian Turner (merged by dustin@zmanda.com) + * server-src/restore.c: Drop some globals, use data types + responsibly. + +2007-09-24 Ian Turner (merged by dustin@zmanda.com) + * server-src/taper.c: Be slightly more rigorous in sanity-checking + the expected number of splits. + * server-src/taper-file-source.c: Correctly predict the number + of splits. + +2007-09-24 Ian Turner (merged by dustin@zmanda.com) + * device-src/vfs-device.c: Accept device names without a + terminating '/'. + +2007-09-24 Ian Turner (merged by dustin@zmanda.com) + Merge in new Device API. Thanks to Jean-Louis and Dustin for their + code contributions to this patch. + +2007-09-20 Dustin J. Mitchell + * oldrecover-src/extract_list.c recover-src/extract_list.c: + change stralloc2 to newstralloc2 to avoid possible memory + leak (coverity bug #214) + +2007-09-17 Jean-Louis Martineau + * client-src/client_util.c: Parse kencrypt in option string. + * client-src/sendbackup.c: Send KENCRYPT keyword in REP packet. + * client-src/client_util.h: Add kencrypt field in option_t. + * amandad-src/amandad.c: Enable kencrypt. + * server-src/dumper.c: Enable kencrypt. + * common-src/security.h (accept): New prototype, add conf_fn and datap. + * common-src/bsdtcp-security.c (bsdtcp_accept): Use new param. + * common-src/ssh-security.c (ssh_connect): Set rh->rc->conf_fn and + rh->rc->datap + * common-src/security-util.c (sec_accept): Set rc->conf_fn and + rc->datap + * common-src/amanda.h (kencrypt_type): New enum. + * common-src/bsdudp-security.c (bsdudp_accept): Use new param. + * common-src/security-util.h (sec_accept): New prototype. + * common-src/krb5-security.c: encryption enabled based on kencrypt. + * common-src/bsd-security.c (bsd_accept): Use new param. + +2007-09-14 Dustin J. Mitchell + * common-src/util.c common-src/util.h: add euid checks to + check_running_as + * client-src/runstar.c client-src/noop.c client-src/runtar.c + client-src/sendbackup.c client-src/killpgrp.c + client-src/sendsize.c client-src/selfcheck.c + client-src/rundump.c client-src/calcsize.c + amandad-src/amandad.c configure.in server-src/amlogroll.c + server-src/amindexd.c server-src/dumper.c server-src/planner.c + server-src/chunker.c server-src/amadmin.c server-src/amtape.c + server-src/amcleanupdisk.c server-src/amflush.c + server-src/amtrmlog.c server-src/amdevcheck.c + server-src/driver.c server-src/reporter.c server-src/taper.c + server-src/amtrmidx.c server-src/amlabel.c + restore-src/amidxtaped.c restore-src/amfetchdump.c: use them + * common-src/krb5-security.c: remove unused variable + +2007-09-14 Dustin J. Mitchell + * server-src/getconf.c: Don't check running_as in amgetconf, as + it may not have a configuration file (e.g., for build params) + +2007-09-12 Dustin J. Mitchell + Bug identified by Satya Ganga + * common-src/util.c: handle bad call to check_running_as correctly + +2007-09-11 Dustin J. Mitchell + Bug reported by Bill Bartlett; patch by Jean-Louis Martineau + + * common-src/statfs.c: fix error in available-space calculations + +2007-09-10 Dustin J. Mitchell + * server-src/amcheck.c: quiet compiler warnings when SINGLE_USERID is + defined + +2007-09-10 Dustin J. Mitchell + * configure.in: change FORCE_USERID to CHECK_USERID, add SINGLE_USERID + (when all of Amanda runs as the same userid) and WANT_SETUID_CLIENT + (clint binaries should be setuid-root), currently only used on + Cygwin. + * common-src/util.c common-src/util.h: utility functions for userid + checks and manipulations + * oldrecover-src/amrecover.c client-src/runstar.c + client-src/noop.c client-src/runtar.c client-src/sendbackup.c + client-src/killpgrp.c client-src/sendsize.c + client-src/selfcheck.c client-src/rundump.c + client-src/calcsize.c amandad-src/amandad.c + recover-src/amrecover.c server-src/amlogroll.c + server-src/amindexd.c server-src/amcheck.c server-src/dumper.c + server-src/planner.c server-src/chunker.c server-src/amadmin.c + server-src/amtape.c server-src/amcleanupdisk.c + server-src/getconf.c server-src/amflush.c server-src/amtrmlog.c + server-src/amdevcheck.c server-src/driver.c + server-src/reporter.c server-src/taper.c server-src/amdump.sh.in + server-src/amtrmidx.c server-src/amlabel.c common-src/genversion.c + restore-src/amidxtaped.c restore-src/amfetchdump.c + common-src/bsdtcp-security.c common-src/bsdudp-security.c + common-src/krb5-security.c common-src/krb4-security.c + common-src/bsd-security.c: use utility functions to check userids. + +2007-09-07 Dustin J. Mitchell + Change by Paul Bijnens + * man/xml-source/amanda.conf.5.xml: Clarify 'etimeout' + +2007-09-07 Dustin J. Mitchell + * gnulib/regenerate/no-error.patch gnulib/Makefile.am: remove + spurious sign-compare warnings from gnulib + +2007-09-05 Dustin J. Mitchell + Bug identified downstream in Debian packaging + * changer-src/chg-null.sh.in: fix typo + +2007-08-29 Dustin J. Mitchell + * common-src/genversion.c common-src/Makefile.am: add subversion revision + and branch info to 'amadmin x version' + +2007-08-23 Dustin J. Mitchell + sf bug #1775316 reported by joerg + * configure.in: use 'sed' instead of shell substitutions to C-quote + ssh arguments + +2007-08-22 Dustin J. Mitchell + * common-src/Makefile.am: adjust dependencies so that 'make dist' can + run without a 'make all' + +2007-08-20 Dustin J. Mitchell + * client-src/sendbackup-gnutar.c client-src/sendsize.c: use + sanitized, canonicalized, and quoted filenames where necessary + * server-src/driver.c: quote diskname in logfile + * common-src/amanda.h common-src/file.c: Add ':' to the list + of characters sanitised when constructing filenames from + disknames; add canonicalize_pathname() + +2007-08-14 Dustin J. Mitchell + * common-src/amanda.h common-src/util.h: move readline headers + out of amanda.h and into util.h, since the corresponding + functions are in util.c + * common-src/util.c: comments + * configure.in: check for both headers and libraries and define + HAVE_READLINE if both are found; add new --with-readline + to require readline and --without-readline to not search + for it at all. + * oldrecover-src/Makefile.am recover-src/Makefile.am: remove explicit + use of READLINE_LIBS + +2007-08-09 Dustin J. Mitchell + Patch by C R Ritson + * server-src/amverifyrun.sh.in: "lock" the logfile by creating a + symlink. + +2007-08-06 Dustin J. Mitchell + * example/DLT-A4.ps example/Makefile.am: add new template contributed + by Terry Burton . + +2007-08-01 Dustin J. Mitchell + Patch by Satya Ganga + * server-src/amcleanup.sh.in: shell-compatibility fixes for bash-2.03 + (Solaris 8) + +2007-07-31 Dustin J. Mitchell + * common-src/statfs-test.c common-src/statfs.c common-src/statfs.h + common-src/Makefile.am: Add a statfs-test to make sure that + statfs works on target systems. + +2007-07-27 Ian Turner + * restore-src/amfetchdump.c: Check for required arguments in + all cases. + +2007-07-27 Dustin J. Mitchell + * config/automake/check-perl.am: new automake fragment to check perl scripts + * config/automake/check-shell.am: new automake fragment to check shell scripts + * configure.in changer-src/Makefile.am client-src/Makefile.am dumper-src/Makefile.am + server-src/Makefile.am common-src/Makefile.am: use new checks + * changer-src/chg-lib.sh.in: add newline for Solaris's 'bash' + * changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in: fix errors found by + new checks + +2007-07-26 Ian Turner + * restore-src/restore.c: If tpchanger is not defined, then (duh) + don't use the changer. This patch by Jean-Louis Martineau + . + +2007-07-24 Dustin J. Mitchell + * changer-src/chg-lib.sh.in common-src/amanda-sh-lib.sh.in + configure.in common-src/Makefile.am: new general-purpose + shell-script library + * configure.in: check for prog 'gettext' + * changer-src/chg-null.sh.in + changer-src/chg-manual.sh.in changer-src/chg-disk.sh.in + changer-src/chg-juke.sh.in changer-src/chg-rait.sh.in + changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in + amplot/amplot.sh.in client-src/patch-system.sh.in + server-src/amcheckdb.sh.in server-src/amverifyrun.sh.in + server-src/amrmtape.sh.in server-src/amverify.sh.in + server-src/amfreetapes.sh.in server-src/amcleanup.sh.in + server-src/amdump.sh.in common-src/amcrypt-ossl-asym.sh.in + common-src/amcrypt.sh.in common-src/amaespipe.sh.in + common-src/amcrypt-ossl.sh.in: use new library to function + correctly even when gettext is missing. + +2007-07-23 Jean-Louis Martineau + * common-src/conffile.c: Set MaxWidth for numerical value + * server-src/reporter.c: Calculate the size if a numerical value. + +2007-07-20 Jean-Louis Martineau + Patch by Dimitri Gorokhovik + * changer-src/chg-multi.sh.in: Typo. + +2007-07-18 Ian Turner (merged by dustin@zmanda.com) + * changer-src/chg-lib.sh.in, changer-src/chg-zd-mtx.sh.in: Correctly + accept the use of tape:/dev/nst0 notation in chg-zd-mtx. + +2007-07-18 Dustin J. Mitchell + * server-src/reporter.c: fix reporting of STRANGE messages + +2007-07-16 Dustin J. Mitchell + * changer-src/chg-zd-mtx.sh.in: check for validity of 'mt' and 'mtx' + binaries early, and produce appropriate error messages + +2007-07-13 Dustin J. Mitchell + * configure.in: add /usr/sfw/bin to SYSPATH for Solaris 10 + +2007-07-13 Jean-Louis Martineau + * changer-src/chg-lib.sh.in: Remoce duplicate amdd, add ammt. + +2007-07-12 Dustin J. Mitchell + * autogen config/Makefile.am config/ax_compare_version.m4i + Makefile.am: new m4 file + * config/docbook-xslt-min.m4i config/docbook-dtd.m4i + config/docbook-xslt.m4i: major bug fixing + +2007-07-11 Dustin J. Mitchell + * recover-src/amrecover.c recover-src/extract_list.c: Add detailed + logging of the amrecover user conversation. + +2007-07-11 Jean-Louis Martineau + Patch by Paul Bijnens + * changer-src/chg-multi.sh.in: Typo. + +2007-07-10 Dustin J. Mitchell + * configure.in: an empty 'MAILER' is no longer an error, just a + warning + * changer-src/chg-manual.sh.in changer-src/chg-scsi-chio.c + changer-src/chg-scsi.c server-src/amverify.sh.in + server-src/getconf.c common-src/genversion.c: conditionalize + references to MAILER, to handle the situation when it is not + set. + +2007-07-09 Dustin J. Mitchell + Documentation patch as suggested by Chris Hoogendyk and Olivier + Nicole. + * man/xml-source/amanda.8.xml: add better documentation about the + -o command-line option for configuration override. + +2007-07-09 Jean-Louis Martineau + * restore-src/restore.c: Don't do superfluous fsf, + improve error handling. + +2007-07-05 Dustin J. Mitchell + * server-src/amadmin.c: correct misalignment of 'amadmin x balance' + output, as reported by Stefan G. Weichinger . + +2007-07-03 Dustin J. Mitchell + * common-src/amanda.h common-src/amflock.c: remove unused + CONFIGURE_TEST conditionals + +2007-06-28 Dustin J. Mitchell + * common-src/security-util.c: Change authorization error message to + "Please add the line "HOST USER SERVICE" to AMANDAHOSTS on the client" + as suggested by Paddy Sreenivasan . + +2007-06-28 Dustin J. Mitchell + * configure.in common-src/amflock-flock.c + common-src/amflock-posix.c common-src/amanda.h + common-src/amflock-lockf.c common-src/amflock-test.c + common-src/amflock-lnlock.c common-src/amflock.c + common-src/amflock.h common-src/Makefile.am: + refactor file locking support into multiple implementations, + only test for availability (not functionality) at configure + time, and add a 'make check' test script. Fixes a bug reported + by Paul Crittenden. Chris Hoogendyk, Jon LaBadie, and Jean-Louis + Martineau helped track it down. + +2007-06-27 Dustin J. Mitchell + * autogen config/ax_create_stdint_h.m4i config/acinclude.m4i + Makefile.am: use updated version of ax_create_stdint_h.m4 + from http://autoconf-archive.cryp.to/ax_create_stdint_h.html. + Original by Guido U. Draheim , patched locally + to avoid spurious "command not found" on Solaris 10. + * config/Makefile.am: add ax_create_stdint_h.m4i + +2007-06-25 Dustin J. Mitchell + * server-src/cmdline.c server-src/cmdline.h server-src/taperscan.c + server-src/taperscan.h config/docbook-dtd.m4i + config/docbook-xslt-min.m4i config/docbook-xslt.m4i + config/xsltproc.m4i common-src/sockaddr-util.c + common-src/sockaddr-util.h common-src/amaespipe.sh.in: + restrict to GPLv2 + +2007-06-25 Dustin J. Mitchell + * client-src/sendbackup.c client-src/killpgrp.c + client-src/sendsize.c client-src/selfcheck.c + server-src/amcheck.c server-src/reporter.c common-src/util.c + common-src/util.h common-src/security-util.c: add str_exit_status() + to interpret the status resulting from wait(), use it throughout + the codebase. + +2007-06-20 Dustin J. Mitchell + * server-src/planner.c common-src/bsdudp-security.c + common-src/krb5-security.c common-src/bsd-security.c: + remove dead/unused code + +2007-06-20 Dustin J. Mitchell + * client-src/sendsize.c: call dbfn(), not debug_fn() + * common-src/amanda.h: make dbfn() return a meaningful string + when debugging is disabled + +2007-06-19 Dustin J. Mitchell + * tape-src/tapetype.c: close and re-open tape after rewind + (patch from Franz Fischer , modified + by Jean-Louis Martineau ) + +2007-06-06 Jean-Louis Martineau + * restore-src/restore.c: accept all header with size >= DISK_BLOCK_BYTES + +2007-06-18 Jean-Louis Martineau + * server-src/amstatus.pl.in: Set and use chunk_time. + +2007-06-07 Dustin J. Mitchell + * server-src/amcleanupdisk.c: don't try to clean up holding disks + if they are empty. + +2007-06-06 Dustin J. Mitchell + * client-src/sendbackup.c: remove bogus check for unknown program + +2007-06-07 Jean-Louis Martineau + Christopher McCrory found the cause of the problem. + * server-src/find.c: Send ouput to stderr. + +2007-06-07 Jean-Louis Martineau + * configure.in: detect GNU tar's 'backup' and ignore it. Thanks + to Jeanna Geier for spotting this. + +2007-06-05 Jean-Louis Martineau + * common-src/util.c: Don't use -w flags for od execution. + +2007-06-05 Dustin J. Mitchell + * client-src/selfcheck.c: fix formatting typo + * common-src/security.h: fix prototypes in comments + * common-src/security-util.c common-src/util.c: fix + vstralloc errors + * common-src/debug.c common-src/amanda.h: remove + debug_prefix_time + * changer-src/scsi-linux.c changer-src/chg-scsi-chio.c + changer-src/scsi-cam.c client-src/calcsize.c + recover-src/amrecover.c server-src/driver.c + client-src/sendbackup-gnutar.c server-src/find.c + server-src/diskfile.c : format string / i18n tweaks + * common-src/amcrypt-ossl.sh.in: fix shell quoting + +2007-06-04 Dustin J. Mitchell + * changer-src/sense.c server-src/driver.c server-src/reporter.c + server-src/amadmin.c server-src/amtape.c common-src/amanda.h: + use T_() instead of _T() as the macro flagging static strings + in need of translation; fixes compilation error on Mac OS X, where + _T is defined in the system headers. + +2007-06-04 Dustin J. Mitchell + * changer-src/chg-zd-mtx.sh.in changer-src/chg-multi.sh.in: + use chg-lib.sh fully, fix i18n problems. + +2007-06-04 Dustin J. Mitchell + * common-src/krb5-security.c common-src/bsdtcp-security.c + common-src/security-util.c: check results from getnameinfo() + correctly + +2007-06-04 Dustin J. Mitchell + * server-src/amstatus.pl.in: use perl flags -Tw + +2007-06-04 Dustin J. Mitchell + * common-src/debug.c common-src/error.c: fix compilation errors + on strict platforms. + +2007-06-04 Jean-Louis Martineau + * common-src/bsd-security.c common-src/bsdudp-security.c: + Make bsd, bsdudp open an IPv4 and an IPv6 socket; fixes bug reported + by Marc Muehlfeld. + +2007-06-04 Dustin J. Mitchell + * oldrecover-src/Makefile.am changer-src/Makefile.am + amplot/Makefile.am client-src/Makefile.am + amandad-src/Makefile.am dumper-src/Makefile.am + recover-src/Makefile.am restore-src/Makefile.am + tape-src/Makefile.am: add quotes to allow spaces in user + and group names + +2007-06-04 Dustin J. Mitchell + * changer-src/chg-scsi.c: use long int for tape sleep time + * client-src/selfcheck.c: error out if no calcsize program is found + * server-src/amindexd.c: run 'sort' in the C locale + * server-src/amcheck.c: flag localhost not resolving as an error + * server-src/diskfile.c: improve error handling + * common-src/amcrypt.sh.in common-src/amcrypt-ossl-asym.sh.in + common-src/amcrypt-ossl.sh.in: search /opt/csw/bin for openssl + binaries; improve error handling + +2007-06-04 Dustin J. Mitchell + * server-src/planner.c server-src/amcleanupdisk.c + server-src/amflush.c server-src/holding.c server-src/holding.h: + do not assume anything about the names of holding + directories; use holding disk files themselves to discover + dump time/datestamps + +2007-06-04 Jean-Louis Martineau + * common-src/krb5-security.c: Typo. + +2007-06-01 Ian Turner + * restore-src/restore.c: Set flags->fsf = 0 by default. + +2007-05-29 Jean-Louis Martineau + * server-src/driver.c: Check dumper->down. + * server-src/dumper.c (sendbackup_response): Only call + security_close_connection if pkt != NULL. + +2007-05-29 Jean-Louis Martineau + * server-src/amstatus.pl.in: Use compressed size. + +2007-05-29 Jean-Louis Martineau + * server-src/planner.c: Don't report overwrite if no label. + +2007-05-29 Jean-Louis Martineau + * changer-src/chg-manual.sh.in: Don't reset the slot to 0 on eject. + +2007-05-25 Kevin Till + * example/amanda.conf.in: ditto + * man/xml-source/amanda.conf.5.xml: ditto + * common-src/conffile.c: ditto + +2007-05-24 Dustin J. Mitchell + * changer-src/scsi-changer-driver.c changer-src/scsi-cam.c + client-src/sendbackup.c client-src/selfcheck.c + recover-src/extract_list.c server-src/amindexd.c + server-src/amcheck.c server-src/driver.c server-src/dumper.c + server-src/planner.c server-src/amadmin.c server-src/diskfile.c + contrib/set_prod_link.pl common-src/krb5-security.c + common-src/bsd-security.c common-src/security-util.c + common-src/conffile.c common-src/bsdudp-security.c: + trivial changes to add _(), etc. -- harmonization of branch + divergence caused by manual resolution of merge conflicts + +2007-05-24 Satya Ganga (merged by dustin@zmanda.com) + * server-src/amcleanup.sh.in: rewrite to find all the active + process/children for a given configuration + +2007-05-24 John Franks (merged by dustin@zmanda.com) + * common-src/fileheader.c: + Remove ".exe" extension from program name is tape header. + +2007-05-24 John Franks (merged by dustin@zmanda.com) + * config/gettext-macros/gettext.m4 + config/gettext-macros/inttypes-pri.m4: + Change name gl_HEADER_INTTYPES_H to gl_AC_HEADER_INTTYPES_H + +2007-05-24 Dustin J. Mitchell + * configure.in: add configure.in recognition for Mac OS X + +2007-05-24 John Franks (merged by dustin@zmanda.com) + * configure.in: IPV6 on cygwin only partially works. + Force WORKING_IPV6 to false. + +2007-05-24 Kevin Till (merged by dustin@zmanda.com) + * server-src/driver.c: use amanda text domain in driver + +2007-05-24 John Franks (merged by dustin@zmanda.com) + * config/libtool.m4i: + Fix to pass loader variables correctly on Solaris systems + with a gcc that does not use -static or -shared. + +2007-05-24 Kevin Till (merged by dustin@zmanda.com) + * server-src/amstatus.pl.in: parse directory and holding_disk_dir with + space correctly + +2007-05-24 John Franks (merged by dustin@zmanda.com) + * client-src/sendbackup.c client-src/sendsize.c client-src/sendbackup-star.c + configure.in server-src/amindexd.c server-src/taper.c server-src/diskfile.c + config/acinclude.m4i common-src/amanda.h common-src/util.c + common-src/security-util.c: + Fix compilation problems using GCC on solaris. + +2007-05-24 Jean-Louis Martineau (merged by dustin@zmanda.com) + * server-src/reporter.c: Split FAILED and STRANGE section. + +2007-05-23 John Franks (merged by dustin@zmanda.com) + * common-src/conffile.c: Fix windows compilation warning. + +2007-05-23 John Franks (merged by dustin@zmanda.com) + * po/Makefile.am changer-src/scsi-changer-driver.c changer-src/sense.c + client-src/unctime.c server-src/amadmin.c server-src/amtape.c + server-src/driver.c server-src/reporter.c common-src/amanda.h + tape-src/tapeio.h tape-src/tapetype.c: + Change _() gettext macro to call gettext() + Create _T() to allow gettext translation of static strings. + * common-src/security.c: Create larger buffers for error messages. + +2007-05-23 John Franks (merged by dustin@zmanda.com) + * configure.in: Prevent annoying lint usage message from + being displayed in configure console output. + +2007-05-23 John Franks (merged by dustin@zmanda.com) + * autogen: + Fix problem of not generating po/Makefile.in on fresh checkout. + * server-src/logfile.c: + Always output to logfile in "C" locale. + * amandad-src/amandad.c changer-src/chg-scsi-chio.c + changer-src/chg-scsi.c client-src/calcsize.c client-src/getfsent.c + client-src/killpgrp.c client-src/noop.c client-src/rundump.c + client-src/runstar.c client-src/runtar.c client-src/selfcheck.c + client-src/sendbackup.c client-src/sendsize.c + client-src/versionsuffix.c common-src/amfeatures.c + common-src/amflock.c common-src/file.c common-src/genversion.c + common-src/statfs.c common-src/token.c oldrecover-src/amrecover.c + recover-src/amrecover.c restore-src/amfetchdump.c + restore-src/amidxtaped.c restore-src/amrestore.c server-src/amadmin.c + server-src/amcheck.c server-src/amcleanupdisk.c server-src/amflush.c + server-src/amindexd.c server-src/amlabel.c server-src/amlogroll.c + server-src/amtape.c server-src/amtrmidx.c server-src/amtrmlog.c + server-src/chunker.c server-src/diskfile.c server-src/driver.c + server-src/dumper.c server-src/getconf.c server-src/infofile.c + server-src/planner.c server-src/reporter.c server-src/taper.c + tape-src/amdd.c tape-src/ammt.c tape-src/tapeio.c tape-src/tapetype.c: + Change back to always run in "C" locale. + +2007-05-23 Jean-Louis Martineau (merged by dustin@zmanda.com) + * changer-src/chg-manual.sh.in: Fix quoting; fix gettext usage. + +2007-05-23 John Franks (merged by dustin@zmanda.com) + * configure.in: + New gettext routines. + * server-src/amcheckdb.sh.in server-src/amcleanup.sh.in + server-src/amverifyrun.sh.in server-src/amrmtape.sh.in + server-src/amverify.sh.in server-src/amdump.sh.in + server-src/amfreetapes.sh.in amplot/amplot.sh.in + changer-src/chg-mtx.sh.in changer-src/chg-null.sh.in + changer-src/chg-manual.sh.in changer-src/chg-zd-mtx.sh.in + changer-src/chg-disk.sh.in changer-src/chg-juke.sh.in + changer-src/chg-rait.sh.in changer-src/chg-scsi.c + changer-src/chg-chs.sh.in changer-src/chg-multi.sh.in + changer-src/chg-mcutil.sh.in client-src/patch-system.sh.in + common-src/amcrypt.sh.in common-src/amaespipe.sh.in + common-src/amcrypt-ossl-asym.sh.in common-src/amcrypt-ossl.sh.in: + Internationalize shell messages + * autogen config/gettext-macros/nls.m4 + config/gettext-macros/lib-link.m4: + Update for autoconf version 2.6 autogen + * oldrecover-src/amrecover.c recover-src/amrecover.c + server-src/amflush.c server-src/logfile.c server-src/amtrmlog.c + server-src/amlogroll.c server-src/amindexd.c server-src/amcheck.c + server-src/driver.c server-src/dumper.c server-src/chunker.c + server-src/planner.c server-src/reporter.c server-src/amadmin.c + server-src/amtape.c server-src/taper.c server-src/server_util.c + client-src/versionsuffix.c client-src/runtar.c + server-src/amtrmidx.c server-src/amcleanupdisk.c + server-src/getconf.c server-src/diskfile.c + changer-src/chg-scsi-chio.c client-src/noop.c server-src/infofile.c + server-src/amlabel.c client-src/sendbackup.c client-src/getfsent.c + client-src/killpgrp.c client-src/sendsize.c client-src/selfcheck.c + client-src/rundump.c client-src/calcsize.c restore-src/amidxtaped.c + restore-src/amrestore.c restore-src/amfetchdump.c Makefile.am + amandad-src/amandad.c common-src/genversion.c common-src/debug.c + common-src/error.c common-src/statfs.c common-src/amflock.c + common-src/file.c common-src/token.c common-src/security-util.c + common-src/conffile.c common-src/amanda.h common-src/amfeatures.c + tape-src/ammt.c tape-src/amdd.c tape-src/tapeio.c + tape-src/tapetype.c: + Use amanda domain for LC_MESSAGES. + +2007-05-22 Maitreyee Karmarkar (merged by dustin@zmanda.com) + * server-src/amcheck.c : Changed some amcheck messages + * common-src/conffile.c : Changed some amcheck messages + +2007-05-22 Maitreyee Karmarkar (merged by dustin@zmanda.com) + * client-src/selfcheck.c, server-src/changer.c, server-src/amcheck.c, + server-src/taperscan.c, server-src/diskfile.c, + common-src/conffile.c: + Change in some amcheck error messages + +2007-05-22 John Franks (merged by dustin@zmanda.com) + * common-src/krb5-security.c common-src/security-util.c + server-src/taper.c server-src/taperscan.c: + Fix botched *vstrallocf conversions. + * oldrecover-src/extract_list.c server-src/amlogroll.c + server-src/chunker.c server-src/driver.c server-src/dumper.c + server-src/getconf.c server-src/holding.c server-src/planner.c + server-src/reporter.c server-src/taper.c: + Add errno text when printing getcwd() error message. + +2007-05-22 Kevin Till (merged by dustin@zmanda.com) + * configure.in: move crypt scripts to common-src since they are needed + by both server and client + * common-src/Makefile.am: ditto + * server-src/Makefile.am: ditto -2005-04-20 Jean-Louis Martineau +2007-05-17 John Franks (merged by dustin@zmanda.com) + * configure.in oldrecover-src/amrecover.c + oldrecover-src/extract_list.c oldrecover-src/display_commands.c + oldrecover-src/help.c oldrecover-src/set_commands.c + recover-src/amrecover.c recover-src/extract_list.c + recover-src/display_commands.c recover-src/help.c + recover-src/set_commands.c server-src/amflush.c + server-src/changer.c server-src/taperscan.c server-src/logfile.c + server-src/amtrmlog.c server-src/driverio.c + server-src/amlogroll.c server-src/tapefile.c + server-src/amindexd.c server-src/driver.c server-src/amcheck.c + server-src/dumper.c server-src/chunker.c server-src/planner.c + server-src/reporter.c server-src/server_util.c + server-src/amadmin.c server-src/amtape.c server-src/taper.c + server-src/amcleanupdisk.c server-src/find.c + server-src/amtrmidx.c server-src/getconf.c + server-src/diskfile.c server-src/infofile.c + server-src/amlabel.c changer-src/scsi-linux.c + changer-src/chg-scsi-chio.c changer-src/scsi-chio.c + changer-src/scsi-hpux.c changer-src/scsi-changer-driver.c + changer-src/scsi-cam.c changer-src/chg-scsi.c + changer-src/scsi-bsd.c changer-src/scsi-irix.c + changer-src/scsi-solaris.c changer-src/sense.c + changer-src/scsi-aix.c changer-src/scsi-hpux_new.c + autogen client-src/unctime.c client-src/versionsuffix.c + client-src/noop.c client-src/client_util.c client-src/runtar.c + client-src/sendbackup-gnutar.c client-src/getfsent.c + client-src/sendbackup.c client-src/sendbackup-dump.c + client-src/killpgrp.c client-src/sendsize.c + client-src/selfcheck.c client-src/rundump.c + client-src/calcsize.c client-src/amandates.c + restore-src/amidxtaped.c restore-src/amrestore.c + restore-src/restore.c restore-src/amfetchdump.c Makefile.am + amandad-src/amandad_util.c amandad-src/amandad.c + common-src/rsh-security.c common-src/pipespawn.c + common-src/security.c common-src/krb5-security.c + common-src/util.c common-src/genversion.c + common-src/bsdtcp-security.c common-src/debug.c + common-src/fileheader.c common-src/dgram.c + common-src/stream.c common-src/match.c + common-src/protocol.c common-src/ssh-security.c + common-src/statfs.c common-src/krb4-security.c + common-src/amflock.c common-src/bsd-security.c + common-src/file.c common-src/token.c common-src/event.c + common-src/security-util.c common-src/conffile.c + common-src/amanda.h common-src/bsdudp-security.c + common-src/alloc.c common-src/clock.c common-src/amfeatures.c + tape-src/ammt.c tape-src/amdd.c tape-src/output-file.c + tape-src/tapeio.c tape-src/tapeio.h tape-src/output-tape.c + tape-src/tapetype.c tape-src/output-rait.c: + o First stage of internationalization. + - Add GNU gettext to configuration. + - Add _() macro to flag translatable strings and modify + code to use it. Macros like SSIZE_T_FMT are included in + this call, even though xgettext will not parse them; this + will be fixed later. + - Add plural() function for selecting singular or plural form + of string and modify code to use it. + - Add amanda.po target to Makefile. + +2007-05-17 Jean-Louis Martineau + * server-src/amcheck.c: Remove bogus amfree(newtapefile). + +2007-05-17 Jean-Louis Martineau + * server-src/amcheck.c: Check all tapelist filename. + +2007-05-17 Jean-Louis Martineau + * server-src/dumper.c (read_datafd): Reset timeout after the write. + +2007-05-17 Jean-Louis Martineau + * amplot/amplot.sh.in: Remove function keyword. + * changer-src/chg-lib.sh.in: Remove function keyword. + * changer-src/chg-multi.sh.in: Remove function keyword. + * changer-src/chg-zd-mtx.sh.in: Remove function keyword. + +2007-05-17 Jean-Louis Martineau + * server-src/diskfile.c: Fix double free. + +2007-05-17 Jean-Louis Martineau + * common-src/amanda.h: define sockaddr_storage and ss_family. + * common-src/amanda.h: define INET_ADDRSTRLEN. + * config/acinclude.m4i (AC_SOCKADDR_STORAGE): New macro. + * configure.in: AC_SOCKADDR_STORAGE. + +2007-05-17 Jean-Louis Martineau + * common-src/amanda.h: Define AI_V4MAPPED and AI_ALL. + +2007-05-17 Jean-Louis Martineau + * util.c (cmp_sockaddr): un-map V4mapped address before comparison. + * common-src/security-util.c: add debugging. + +2007-05-17 Dustin J. Mitchell (merged by dustin@zmanda.com) + * common-src/amanda.h: fix typo (missing 'extern') in erroutput_type + +2007-05-16 John Franks (merged by dustin@zmanda.com) + * oldrecover-src/amrecover.c oldrecover-src/extract_list.c + oldrecover-src/display_commands.c oldrecover-src/set_commands.c + recover-src/amrecover.c recover-src/extract_list.c + recover-src/display_commands.c recover-src/set_commands.c + server-src/changer.c server-src/taperscan.c + server-src/amtrmlog.c server-src/amindexd.c server-src/driver.c + server-src/amcheck.c server-src/dumper.c server-src/chunker.c + server-src/planner.c server-src/reporter.c server-src/taper.c + server-src/amtrmidx.c changer-src/scsi-linux.c + changer-src/chg-scsi-chio.c changer-src/scsi-chio.c + changer-src/scsi-hpux.c changer-src/scsi-cam.c + changer-src/scsi-changer-driver.c changer-src/chg-scsi.c + changer-src/scsi-bsd.c changer-src/scsi-irix.c + changer-src/scsi-solaris.c changer-src/sense.c + changer-src/scsi-aix.c changer-src/scsi-hpux_new.c + client-src/client_util.c client-src/runtar.c + client-src/sendbackup-gnutar.c client-src/sendbackup.c + client-src/sendbackup-dump.c client-src/killpgrp.c + client-src/sendsize.c client-src/selfcheck.c + client-src/rundump.c client-src/calcsize.c + client-src/amandates.c restore-src/amidxtaped.c + restore-src/restore.c amandad-src/amandad_util.c + amandad-src/amandad.c common-src/rsh-security.c + common-src/sockaddr-util.c common-src/pipespawn.c + common-src/security.c common-src/krb5-security.c + common-src/util.c common-src/util.h common-src/bsdtcp-security.c + common-src/tapelist.c common-src/debug.c common-src/fileheader.c + common-src/error.c common-src/dgram.c common-src/stream.c + common-src/protocol.c common-src/ssh-security.c + common-src/krb4-security.c common-src/bsd-security.c + common-src/event.c common-src/security-util.c + common-src/conffile.c common-src/amanda.h + common-src/bsdudp-security.c common-src/security-util.h + common-src/alloc.c tape-src/output-file.c tape-src/tapeio.c + tape-src/output-tape.c: + - Change dbprintf() to use __VA_ARGS__. (Remove extra parens) + - Prepend program name and nano second accuracy time stamp + to each line in debug file. + - Emove any resulting duplicate timestamps from functions that + inserted them in each dbprintf() line. + - Fix dballoc compilation. + - Fix dbmalloc compilation. + - Fix amfree() to report file and line # of amfree line during + errors. + - Add vstrallocf() and newvstrallocf() functions. These are + the same as vstralloc() and newvstralloc() except they use + printf style format strings. (Required to eliminate + untranslateable string concatenations in messages.) + - Change files to use *allocf() functions where it seemed + appropriate.. + - Fix kerberos 4 compilation. + - Fix kerberos 5 compilation. + +2007-05-16 Jean-Louis Martineau (merged by dustin@zmanda.com) + * common-src/debug.c (debug_rename): Fix for cygwin: rename + will not overwrite an existing file + +2007-05-15 John Franks (merged by dustin@zmanda.com) + * client-src/sendbackup.c common-src/dgram.c common-src/event.c + server-src/changer.c server-src/driverio.c: + Cast FD_SETSIZE to int to avoid compilation problems. + +2007-05-15 Kevin Till (merged by dustin@zmanda.com) + * common-src/debug.c: dbrename patch by Jean-Louis Martineau to + unlink the target of the rename operation before renaming. + +2007-05-15 Dustin J. Mitchell + * client-src/sendsize.c: fix parsing of include/excludes for + old clients + +2007-05-11 Jean-Louis Martineau + * server-src/amcrypt-ossl-asym.sh.in: Use CLIENT_LOGIN. + * server-src/amcrypt-ossl.sh.in: Use CLIENT_LOGIN. + +2007-05-08 Jean-Louis Martineau + * common-src/krb5-security.c: Fix compilation. + +2007-05-09 Dustin J. Mitchell + * common-src/stream.c: add errno's to stream_client_internal + +2007-05-09 Dustin J. Mitchell + * server-src/amadmin.c server-src/infofile.c + common-src/security-util.c common-src/krb5-security.c: + fix type-punning warnings + +2007-05-09 Dustin J. Mitchell + * recover-src/set_commands.c server-src/amcheck.c + server-src/dumper.c common-src/rsh-security.c + common-src/krb5-security.c common-src/util.c common-src/util.h + common-src/bsdtcp-security.c common-src/stream.c + common-src/ssh-security.c common-src/bsd-security.c + common-src/security-util.c common-src/bsdudp-security.c + common-src/security-util.h: Add IPv6-savvy resolve_hostname() and use it + everywhere + +2007-05-08 Jean-Louis Martineau + * config/Makefile.am (EXTRA_DIST): Add docbook-dtd.m4i, + docbook-xslt.m4i, docbook-xslt-min.m4i and xsltproc.m4i. + +2007-05-07 Jean-Louis Martineau + * common-src/stream.c: pass correct sockaddr size to bind() + +2007-05-07 Pieter Bowman + * common-src/file.c: reverse the order of chown/chmod to correctly + create temporary files. + +2007-05-07 Jean-Louis Martineau + * common-src/krb5-security.c: Fix compilation. + +2007-05-04 Dustin J. Mitchell + * server-src/cmdline.c server-src/holding.c server-src/holding.h + server-src/amadmin.c server-src/amcleanupdisk.c: remove + holding_file_read_header() + +2007-05-04 Dustin J. Mitchell + * common-src/sockaddr-util.h common-src/bsdtcp-security.c common-src/security-util.c + common-src/krb5-security.c common-src/stream.c: add and use a copy_sockaddr() macro + +2007-05-04 Dustin J. Mitchell + * configure.in common-src/rsh-security.c common-src/bsdtcp-security.c + common-src/ssh-security.c common-src/bsdudp-security.c + common-src/krb5-security.c common-src/krb4-security.c common-src/bsd-security.c + common-src/Makefile.am: use AM_CONDITIONAL to select security modules to compile + +2007-05-04 Dustin J. Mitchell + * autogen man/Makefile.am configure.in config/acinclude.m4i + config/docbook-xslt-min.m4i config/docbook-dtd.m4i config/docbook-xslt.m4i + config/xsltproc.m4i Makefile.am: detect xsltproc, docbook xslt, and docbook + dtd versions better, to ensure proper creation of manpages. + +2007-05-04 Dustin J. Mitchell + * server-src/amindexd.c common-src/sockaddr-util.c common-src/sockaddr-util.h + common-src/util.c common-src/security-util.c common-src/amanda.h + common-src/dgram.c common-src/stream.c common-src/Makefile.am: add new + sockaddr-util.[ch] containing sockaddr-related functions. + +2007-05-04 Jean-Louis Martineau + * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.3alpha) + +2007-05-03 Jean-Louis Martineau + * docs/*.txt: Update from xml-docs. + +2007-05-03 Jean-Louis Martineau + * man/xml-source/amrecover.8.xml: Fix space. + +2007-05-03 Jean-Louis Martineau + * Amanda 2.5.2 released. + * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2). + +2007-05-02 Jean-Louis Martineau + * docs/*.txt, man/xml-source/*.xml: Change OVERWRITE bu OVERRIDE. + * man/xml-source/amadmin.8.xml: Add notees on no-reuse command. + +2007-05-02 Jean-Louis Martineau + * amandad-src/amandad.c: Improve 'invalid service' message. + +2007-05-01 Jean-Louis Martineau + * recover-src/extract_list.c: Report the error message. + * recover-src/extract_list.c: Don't call close_connection. + * common-src/security-util.c: (tcpm_close_connection): Check for rh->rc + +2007-04-27 Jean-Louis Martineau + * common-src/security-util.c (tcp1_stream_client): Set rh->rc->driver. + +2007-04-27 Jean-Louis Martineau + * common-src/bsd-security.c, common-src/bsdudp-security.c, + common-src/krb4-security.c: Fix ntohs for port number. + * common-src/dgram.c: Add socket number in comment. + +2007-04-27 Dustin J. Mitchell + * server-src/holding.c server-src/holding.h server-src/find.c: + use holding module in find.c:search_holding_disk() + +2007-04-27 Jean-Louis Martineau + * server-src/amcheck.c: Fix infobad setting. + +2007-04-26 Jean-Louis Martineau + * server-src/amcheck.c: Set *bad on error. + +2007-04-26 Jean-Louis Martineau + * server-src/amflush.c: Quote L_DISK and FLUSH line. + * server-src/driver.c: Parse quoted FLUSH line. + * server-src/planner.c: Quote L_DISK and FLUSH line. + +2007-04-25 Dustin J. Mitchell + * configure.in common-src/ssh-security.c: allow build-time configuration of SSH options + +2007-04-23 Paddy Sreenivasan + * changer-src/scsi-solaris.c common-src/protocol.c: changes to build on Solaris + +2007-04-20 Dustin J. Mitchell + * configure.in: remove unused AMANDA_C_VOLATILE + * config/acinclude.m4: remove unused AMANDA_C_VOLATILE + +2007-04-20 Dustin J. Mitchell + * autogen: silence unnecessary warnings about GNU make, return exit status + +2007-04-20 Dustin J. Mitchell + * common-src/stream.c: retry socket creation if OS does not support IPv6 + at runtime + +2007-04-20 Jean-Louis Martineau + * amplot/amplot.sh.in (test_awk,find_gnuplot): Imported from zmanda. + * amplot/amplot.awk: Fix some parsing. + * server-src/driver.c (free_kps): Return 0 instead of big value. + +2007-04-18 Jean-Louis Martineau + * oldrecover-src/Makefile.am, changer-src/Makefile.am, + client-src/Makefile.am, amandad-src/Makefile.am, + recover-src/Makefile.am, server-src/Makefile.am, + restore-src/Makefile.am: Link libgnu after libamanda. + +2007-04-18 Jean-Louis Martineau + * client-src/sendbackup.c: Improve tar argument in amanda header for + extraction. + +2007-04-18 Dustin J. Mitchell + * man/Makefile.am configure.in config/acinclude.m4i: add xsltproc- and docbook- + related autoconf macros, use them to ensure the environment is appropriate for + building manpages; manpage build is off by default. + +2007-04-17 Jean-Louis Martineau + * changer-src/chg-disk.sh.in: Send error message to stdout. + +2007-04-17 Dustin J. Mitchell + * changer-src/chg-zd-mtx.sh.in: fix more typos (thanks to + "Stefan G. Weichinger" ) + +2007-04-17 Jean-Louis Martineau + * restore-src/restore.c: Fix restoration of split and encrypted backup. + +2007-04-13 Dustin J. Mitchell + * changer-src/chg-zd-mtx.sh.in: fix typo in error message + +2007-04-13 Jean-Louis Martineau + * Amanda 2.5.2b1 released. + * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2b1). + +2007-04-13 Jean-Louis Martineau + * client-src/sendbackup.c (first_num): Removed function. + * client-src/sendbackup.c (the_num): return the nth number in a string. + * client-src/sendbackup.h (AM_SIZE_RE): Need a field. + * client-src/sendbackup-dump.c: Use new AM_SIZE_RE. + * client-src/sendbackup-gnutar.c: Use new AM_SIZE_RE. + +2007-04-13 Jean-Louis Martineau + * NEWS: Change in amanda-2.5.2 + * ReleaseNotes: Releases Notes for 2.5.2 + * server-src/chunker.c (write_tapeheader): Set errno to ENOSPC. + +2007-04-12 Dustin J. Mitchell + * server-src/dumper.c: use fullwrite() instead of write() + +2007-04-12 Jean-Louis Martineau + * amandad-src/amandad.c: Remove duplicate setsockopt(,,SO_REUSEADDR). + * common-src/bsd-security.c: Use int for setsockopt. + * common-src/stream.c (try_socksize): Use int for setsockopt. + +2007-04-12 Jean-Louis Martineau + * server-src/amcheck.c: Remove duplicate test. + * server-src/dumper.c: Use newvstralloc. + +2007-04-12 Jean-Louis Martineau + * server-src/reporter.c: Take value from chunker if it succeed and + taper fail. + +2007-04-10 Jean-Louis Martineau + * configure.in: Use krb5 shared library. + +2007-04-10 Dustin J. Mitchell + * changer-src/chg-zd-mtx.sh.in: remove configurability of mt, mtx paths + +2007-04-10 Jean-Louis Martineau + * common-src/krb5-security.c: Initialize rc->gss_context. + +2007-04-09 Dustin J. Mitchell + * changer-src/chg-zd-mtx.sh.in: fix bugs in configuration for mt, mtx paths + +2007-04-06 Dustin J. Mitchell + * oldrecover-src/extract_list.c oldrecover-src/display_commands.c + client-src/sendbackup.c client-src/getfsent.c client-src/sendsize.c + client-src/selfcheck.c recover-src/amrecover.c recover-src/extract_list.c + recover-src/display_commands.c server-src/amlogroll.c + server-src/amindexd.c server-src/tapefile.c server-src/amcheck.c + server-src/dumper.c server-src/planner.c server-src/reporter.c + server-src/amadmin.c server-src/find.c server-src/infofile.c + restore-src/amidxtaped.c common-src/security-util.c common-src/amanda.h: + improve parsing with strcmp_const and strcmp_const_skip + +2007-04-06 Jean-Louis Martineau + * server-src/taper.c: Limit splitsize to 1G in PORT-WRITE. + +2007-04-06 Jean-Louis Martineau + * common-src/krb5-security.c: Report client hostname. + +2007-04-06 Jean-Louis Martineau + * common-src/tapelist.c (append_to_tape): Don't call dump_tapelist. + +2007-04-05 Dustin J. Mitchell + * contrib/macosx/org.amanda.amandad.bsd*.plist: updated to use username + 'amandabackup' + +2007-04-05 Dustin J. Mitchell + * amplot/amplot.sh.in configure.in config/acinclude.m4i: + move checks for gnuplot, awk to runtime for easier packaging; + add fake gettext functions to ease the transition to + full gettext support + +2007-04-05 Dustin J. Mitchell + * server-src/amindex.c: fix bug where debug fd was closed by safe_fd, + remove remote_hostname, rewrite to use getaddrinfo/getnameinfo + * server-src/dumper.c server-src/amcheck.c recover-src/set_commands.c: + use getaddrinfo/getnameinfo + * common-src/security-util.[ch]: add try_resolving_hostname() + * common-src/ssh-security.c common-src/rsh-security.c: + use try_resolving_hostname, rewrite to avoid gethostbyname + * common-src/krb5-security.c: use getaddrinfo instead of gethostbyname + +2007-04-05 Dustin J. Mitchell + * changer-src/chg-lib.sh.in changer-src/chg-mtx.sh.in + changer-src/chg-manual.sh.in changer-src/chg-zd-mtx.sh.in + changer-src/chg-multi.sh.in changer-src/Makefile.am + configure.in: make the path to MTX and other executables configurable + in changer scripts; introduce new changer shell library to reduce + code duplication; add fake gettext functions to ease the transition to + full gettext support + +2007-04-04 Dustin J. Mitchell + * server-src/dumper.c server-src/chunker.c: remove assumed ENOSPC + error in static write_tapeheader functions + +2007-04-03 Jean-Louis Martineau + * common-src/security-util.c: Remove buggy &. + +2007-04-03 Jean-Louis Martineau + * common-src/conffile.c: Add READBLOCKSIZE tapetype config option. + * common-src/conffile.c(getconf_readblocksize): Function to retrieve + the tapetype readblocksize or the configured maxtapeblocksize. + * common-src/conffile.h: Add READBLOCKSIZE tapetype config option. + * man/xml-source/amanda.conf.5.xml: Document it. + * tape-src/output-tape.c: Use getconf_readblocksize. + * tape-src/tapeio.c: Use getconf_readblocksize. + +2007-04-03 Jean-Louis Martineau + * common-src/bsd-security.c, common-src/bsdtcp-security.c, + common-src/bsdudp-security.c, + common-src/security-util.c: Fix auth_debug and dbprintf usage. + +2007-04-03 Jean-Louis Martineau + Merge from zmanda ext. + * man/xml-source/amadmin.8.xml man/xml-source/amanda.8.xml + server-src/amflush.c server-src/cmdline.c server-src/cmdline.h + server-src/holding.c server-src/holding.h server-src/driver.c + server-src/planner.c server-src/amadmin.c server-src/taper.c + server-src/amcleanupdisk.c server-src/find.c + server-src/Makefile.am: revise holding-disk management, add new + 'amadmin' subcommand to list and delete dumps from the holding + disk. + * server-src/amadmin.c: Add 'amadmin XX holding list -l' + +2007-04-02 Dustin J. Mitchell + * common-src/bsdtcp-security.c common-src/bsd-security.c + common-src/security-util.c common-src/bsdudp-security.c: + bugfixes, always check for NULL ai_canonname + * common-src/util.c common-src/util.h common-src/krb4-security.c + common-src/security-util.c: bugfix for hosts with multiple addresses, + improved cmp_sockaddr, remove redundant checks + * server-src/taper.c: add log message when new tapes are auto-labeled + * common-src/security-util.c: patch to avoid spurious compiler warnings + noticed on FC3 + +2007-03-30 Dustin J. Mitchell + * common-src/file.c: remove unused amanda_setup() + +2007-03-30 Jean-Louis Martineau + * common-src/amanda.h: Define a _() macro. + +2007-03-28 Dustin J. Mitchell + * common/amanda.h: fix typo in SS_SET_INADDR_ANY for non-IPv6 + machines + * gnulib/regenerate/regenerate: update to include visibility + and lock modules (See 2007-03-14) + * recover-src/extract_list.c common-src/krb4-security.c + common-src/event.c common-src/security-util.c: use + SELECT_ARG_TYPE instead of fd_set + +2007-03-27 Jean-Louis Martineau + * common-src/krb5-security.c: Fix for krb5 and IPv6. + * common-src/security-util.c: Fix for krb5 and IPv6. + +2007-03-27 Jean-Louis Martineau + * common-src/krb5-security.c: Compile with heimdal kerberos. + +2007-03-27 Jean-Louis Martineau + Fix solaris 9 problem: + * common-src/krb5-security.c: Use putenv instead of setenv. + * common-src/security-util.c: Set flags according to family. + +2007-03-27 Jean-Louis Martineau + Merge from zmanda EXT. + +2007-03-27 Jean-Louis Martineau + * Makefile.am (EXTRA_DIST): Remove contrib/gnulib-update-current. + +2007-03-27 Jean-Louis Martineau + * server-src/reporter.c: Ouput quoted diskname in "DUMP SUMMARY" + section. + +2007-03-23 Jean-Louis Martineau + * changer-src/chg-zd-mtx.sh.in: Exit with a message if the + configuration file doesn't exist. + +2007-03-23 Jean-Louis Martineau + * common-src/conffile.c: Fix error message. + +2007-03-23 Jean-Louis Martineau + * amandad-src/amandad.c: Fix segfault. + +2007-03-23 Jean-Louis Martineau + * common-src/security-util.c: Use SS_LEN. + * common-src/util.c: Use SS_LEN. + +2007-03-21 Jean-Louis Martineau + * common-src/security.h (security_driver): Add data_encrypt and + data_decrypt function. + * common-src/bsd-security.c, common-src/bsdtcp-security.c, + common-src/bsdudp-security.c, common-src/krb4-security.c, + common-src/rsh-security.c, + common-src/ssh-security.c: Set data_encrypt and data_decrypt to NULL. + + * common-src/conffile.c: Parse KRB5KEYTAB and KRB5PRINCIPAL on client. + * common-src/krb5-security.c: Complete rewrite. + * common-src/security-util.h: Change many prototype. + * common-src/security-util.c: Change argument to function. + * recover-src/amrecover.c: Use generic_client_get_security_conf. + * recover-src/extract_list.c: Use generic_client_get_security_conf. + +2007-03-21 Jean-Louis Martineau + Merge from zmanda EXT. + - Add SS_INIT, SS_SET_INADDR_ANY, SS_GET_PORT and SS_SET_PORT + macros for IPv6 portability + - add SS_LEN() macro for calculating length of a + struct sockaddr, use it in a few locations where incorrect + lengths were being passed. + - New script for rebuilding gnulib from scratch; current + gnulib is from "cvs update -D '2007-01-31 13:12:51 -0600'" + +2007-03-12 Jean-Louis Martineau + * recover-src/set_commands.c (set_tape): Don't amfree(tape). + * oldrecover-src/set_commands.c (set_tape): Don't amfree(tape). + +2007-02-22 Jean-Louis Martineau + * changer-src/scsi-linux.c, common-src/security-util.c, + common-src/stream.c, oldrecover-src/amrecover.c, + restore-src/restore.c, server-src/amcheck.c, + server-src/taper.c: Use SIZE_T_FMT and SSIZE_T_FMT instead of %z. + +2007-02-22 Jean-Louis Martineau + * common-src/bsd-security.c: Always retry getaddrinfo if INET6 failed. + * common-src/bsdudp-security.c: Ditto. + +2007-02-22 Jean-Louis Martineau + * common-src/debug.c: Remove old file in current directory. + +2007-02-22 Jean-Louis Martineau + * changer-src/chg-chio.pl.in: Typo. + +2007-02-21 Jean-Louis Martineau + * recover-src/extract_list.c: Remove match for path_on_disk_slash. + +2007-02-20 Jean-Louis Martineau + * common-src/stream.c, common-src/util.c: Pass exact socklen_t to + bind and connect call. + +2007-02-20 Jean-Louis Martineau + * server-src/taper.c: Set splitsize to 0 if no data in file. + * server-src/amflush.c: Don't send FLUSH request if no data in file. + * server-src/planner.c: Don't send FLUSH request if no data in file. + * server-src/driver.c: Don't send request to taper if no data in file. + +2007-02-19 Jean-Louis Martineau + * amandad-src/amandad.c: Fix compilation with --without-ipv6. + +2007-02-19 Jean-Louis Martineau + * server-src/amverify.sh.in: Remove bogus fi. + +2007-02-16 Jean-Louis Martineau + * server-src/amverify.sh.in: Add timeout on wait for device ready. + * changer-src/chg-chio.pl.in: Wait (with timeout) for drive ready. + +2007-02-15 Jean-Louis Martineau + * server-src/taper.c: Don't call free_server_config. + +2007-02-15 Jean-Louis Martineau + * patching file oldrecover-src/amrecover.h (local_cd): Prototype. + * oldrecover-src/set_commands.c: Works with quoted arguments. + * oldrecover-src/uparse.y (LCD): Call local_cd. + * recover-src/amrecover.h (local_cd): Prototype. + * recover-src/set_commands.c: Works with quoted arguments. + * recover-src/uparse.y (LCD): Call local_cd. + +2007-02-14 Jean-Louis Martineau + * common-src/security-util.c: Add "on the client" message. + +2007-02-13 Jean-Louis Martineau + * server-src/amstatus.pl.in: fix for chunk and displayunit. + +2007-02-13 Jean-Louis Martineau + * server-src/dumper.c: Fix if krb4 is compiled but another auth is + used. + +2007-02-13 Jean-Louis Martineau + * common-src/alloc.c (safe_env): Remove LANG and LC_* only if we are + priviledged process. + +2007-02-13 Jean-Louis Martineau + * dumper-src/amgtar.pl.in: Replace -t options by -T. + * dumper-src/Makefile.am: Remove perl -t options. + +2007-02-12 Jean-Louis Martineau + * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add sl. + * common-src/statfs.c: Fix scale function. + +2007-02-12 Jean-Louis Martineau + * client-src/sendsize.c: Fix PARAM_HONOR_NODUMP. + +2007-02-09 Jean-Louis Martineau + * server-src/reporter.c: Fix postscript crash. + +2007-02-09 Jean-Louis Martineau + * changer-src/chg-manual.sh.in: Add tty, email, tty_email request mode. + +2007-02-07 Jean-Louis Martineau + * server-src/amindexd.c: Use dbfd. + +2007-02-06 Jean-Louis Martineau + * common-src/alloc.c (vstrallocf): New function. + * common-src/amanda.h (vstrallocf): Prototype. + * client-src/sendsize.c: Send error if fe_rep_sendsize_quoted_error. + * common-src/amfeatures.c (am_init_feature_set): Set + fe_rep_sendsize_quoted_error. + * common-src/amfeatures.h (fe_rep_sendsize_quoted_error): new features. + * server-src/planner.c: Receive error message from sendsize. - * docs/*: Update from latest xml-docs. +2007-02-06 Jean-Louis Martineau + * amandad-src/amandad.c, changer-src/scsi-linux.c, + common-src/conffile.c, configure.in, + man/Makefile.am, man/xml-source/amcheck.8.xml, + server-src/amlabel.c, server-src/taper.c: Merge from zmanda. -2005-04-15 Jean-Louis Martineau +2007-02-06 Jean-Louis Martineau + * common-src/clock.c (timesub): The result must always be positive. - * docs/*: Update from latest xml-docs. +2007-02-05 Jean-Louis Martineau + * changer-src/chg-zd-mtx.sh.in: Fix for sed and IMPORT/EXPORT. -2005-04-14 Jean-Louis Martineau +2007-02-05 Jean-Louis Martineau + * server-src/amcheck.c: Add parentheses. - * changer-src/chg-zd-mtx.sh.in: Improve handling of - "Unknown Storage Element Loaded". +2007-02-02 Jean-Louis Martineau + * contrib/gnulib-update-current: New file. + * Makefile.am (EXTRA_DIST): Add contrib/gnulib-update-current. -2005-04-14 Jean-Louis Martineau +2007-02-02 Jean-Louis Martineau + * man/Makefile.am: Use http://docbook.sourceforge.net + * man/xml-source/amadmin.8.xml, man/xml-source/amaespipe.8.xml, + man/xml-source/amanda.8.xml, man/xml-source/amanda-client.conf.5.xml, + man/xml-source/amanda.conf.5.xml, man/xml-source/amcheck.8.xml, + man/xml-source/amcrypt.8.xml, man/xml-source/amdump.8.xml, + man/xml-source/amfetchdump.8.xml, man/xml-source/amflush.8.xml, + man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml, + man/xml-source/ammt.8.xml, man/xml-source/amrecover.8.xml, + man/xml-source/amreport.8.xml, + man/xml-source/amtape.8.xml: Fix for xmllint. + * man/xslt/man.xsl: Remove bogus code. - * man/amcheckdb.8: Update from latest xml-docs. +2007-02-01 Jean-Louis Martineau + * changer-src/chg-zd-mtx.sh.in: Support IMPORT/EXPORT slot. -2005-04-14 Jean-Louis Martineau +2007-02-01 Jean-Louis Martineau + * server-src/amdump.sh.in: Output a starttime line. + * server-src/amflush.c: Output a starttime line. + * server-src/amstatus.pl.in: parse the starttime line. - * docs/*: New documentation from xml-docs. - * docs/Makefile.am (pkgdata_DATA): Update for new files. +2007-01-26 Jean-Louis Martineau + * configure.in: Fix --with-ipv6 option. -2005-04-06 Jean-Louis Martineau - - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052 +2007-01-26 Jean-Louis Martineau + * server-src/amdump.sh.in: Exit with a status. - * server-src/amverifyrun.sh.in: Filter changer log file. +2007-01-26 Jean-Louis Martineau + * server-src/diskfile.c: Use hostnext pointer. -2005-04-06 Jean-Louis Martineau +2007-01-26 Jean-Louis Martineau + * server-src/reporter.c: Exit with a status. - * server-src/amcheck.c: Improve messages. +2007-01-26 Jean-Louis Martineau + * server-src/amstatus.pl.in: Exit with a status. -2005-04-06 Jean-Louis Martineau +2007-01-26 Jean-Louis Martineau + * server-src/amstatus.pl.in: Detect failed dump to tape. - * client-src/sendsize.c (generic_calc_estimates): Use amname instead - of dirname in message. +2007-01-25 Jean-Louis Martineau + * configure.in: Add --with-ipv6 option. -2005-04-01 Jean-Louis Martineau +2007-01-25 Jean-Louis Martineau + * server-src/changer.c (changer_command): Send stderr to dbfd(). - * man/amanda.8, man/amdd.8, man/ammt.8: Updated. +2007-01-25 Jean-Louis Martineau + * server-src/diskfile.c: Check hostname have same case. -2005-03-31 Jean-Louis Martineau +2007-01-25 Jean-Louis Martineau + * changer-src/chg-zd-mtx.sh.in: Check if MT and MTX exists. - * 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 +2007-01-25 Jean-Louis Martineau + * changer-src/chg-zd-mtx.sh.in: Set CHANGER environment variable. + +2007-01-24 Jean-Louis Martineau + * common-src/conffile.c: Cleanup conf_print function. + +2007-01-24 Jean-Louis Martineau + * common-src/conffile.c: Check for duplicate -o options. + * recover-src/amrecover.c: Change precedence of option. + +2007-01-24 Jean-Louis Martineau + * server-src/diskfile.c: Fix compiler warning. + +2007-01-23 Jean-Louis Martineau + * common-src/security-util.c (tcpm_recv_token): Check size < 0. + + +2007-01-23 Jean-Louis Martineau + * server-src/diskfile.c: Check duplicate DLE with match_host and + match_disk. + +2007-01-18 Jean-Louis Martineau + * client-src/selfcheck.c: Improve check if /etc/dumpdates in not there. + +2007-01-18 Jean-Louis Martineau + * restore-src/amfetchdump.c: Set arg_state to ARG_GET_HOST. + +2007-01-18 Jean-Louis Martineau + * server-src/amcheck.c: Check tape_access. + * server-src/taper.c: Improve message. + +2007-01-16 Jean-Louis Martineau + * configure.in: Define GCC_COMPILER. + * gnulib/Makefile.am: Add -Wno-error to AM_CFLAGS if GCC_COMPILER. + +2007-01-16 Jean-Louis Martineau + * server-src/getconf.c: Fix segfault in parameter parsing. + +2007-01-15 Jean-Louis Martineau + * common-src/bsd-security.c, common-src/bsdtcp-security.c, + common-src/bsdudp-security.c, + common-src/stream.c: Don't call check_addrinfo_give_name. + * common-src/security-util.c (check_addrinfo_give_name): Always log + error message. + +2007-01-11 Jean-Louis Martineau + * common-src/conffile.c Set default length/filemark correctly. + * man/xml-source/amanda.conf.5.xml: Document they are in kbytes. + +2007-01-10 Jean-Louis Martineau + * config/gnulib/gnulib-common.m4: New file. + * config/gnulib.m4i: Load config/gnulib/gnulib-common.m4. + +2007-01-10 Jean-Louis Martineau + * amandad-src/amandad.c (do_sendpkt): Send packet if handle != NULL. + +2007-01-10 Jean-Louis Martineau + * common-src/conffile.c, common-src/conffile.h, + server-src/diskfile.c: Keep different list for exclude file and list. + +2007-01-10 Jean-Louis Martineau + * server-src/taper.c (read_file): Don't count first header twice. + +2007-01-05 Jean-Louis Martineau + * server-src/amstatus.pl.in: Fix split-dump accounting. + +2007-01-04 Jean-Louis Martineau + * restore-src/restore.c: Use prompt_in. + +2007-01-04 Jean-Louis Martineau + * amandad-src/amandad.c, common-src/bsd-security.c, + common-src/bsdtcp-security.c, common-src/bsdudp-security.c, + common-src/dgram.c, common-src/security-util.c, + common-src/stream.c, + common-src/util.c: Replace HAVE_IPV6 by WORKING_IPV6. + * configure.in: Define HAVE_IPV6 if IPv6 is working. + +2007-01-04 Jean-Louis Martineau + * changer-src/chg-chio.pl.in, changer-src/chg-iomega.pl.in, + changer-src/chg-rth.pl.in, dumper-src/amgtar.pl.in, + server-src/amoverview.pl.in, server-src/amstatus.pl.in, + server-src/amtoc.pl.in: Clean ENV and set PATH. + +2006-12-27 Jean-Louis Martineau + * server-src/driver.c: Don't repport error for many run in a day if + it's amflush. + +2006-12-27 Jean-Louis Martineau + * common-src/util.c (quote_string): Escape '\' character. + +2006-12-22 Jean-Louis Martineau + * recover-src/display_commands.c: Send quoted text to amindexd. + * recover-src/extract_list.c: Send quoted text to amindexd. + * recover-src/set_commands.c: Send quoted text to amindexd. + +2006-12-22 Jean-Louis Martineau + * changer-src/chg-disk.sh.in: LASTSLOT in a changerfile for chg-disk. + +2006-12-22 Jean-Louis Martineau + * client-src/sendsize.c: Compilation fix. + +2006-12-18 Jean-Louis Martineau + * common-src/packet.c (pkt_init_empty): New function. + * common-src/packet.h (pkt_init_empty): New prototype. + * amandad-src/amandad.c, common-src/protocol.c, + common-src/security-util.c: Use pkt_init_empty. + +2006-12-18 Jean-Louis Martineau + * common-src/conffile.c: Print nothing if the list is emtpy. + +2006-12-14 Jean-Louis Martineau + * restore-src/restore.c: Fix filename for output file. + +2006-12-12 Jean-Louis Martineau + * common-src/amanda.h: Define __attribute__ for gcc >= 3. + * common-src/packet.c (pkt_init): Accept NULL for fmt. + * amandad-src/amandad.c, common-src/protocol.c, + common-src/security-util.c: Pass NULL to pkt_init. + * amandad-src/amandad.c, changer-src/chg-scsi.c, + changer-src/scsi-linux.c, client-src/sendbackup.c, + common-src/amanda.h, common-src/conffile.c, + common-src/event.c, common-src/packet.c, + common-src/security-util.c, common-src/stream.c, + common-src/util.c, oldrecover-src/amrecover.c, + restore-src/restore.c, server-src/amcheck.c, + server-src/driver.c, server-src/driverio.c, + server-src/taper.c: Fix printf format error. + +2006-12-12 Jean-Louis Martineau + * server-src/amindexd.c: Use fgets to read index file because they + are not quoted. + +2006-12-12 Jean-Louis Martineau + * configure.in: Find patch for sort program. + * server-src/amindexd.c: Clean the indexd file between the uncompress + and sort process. + +2006-12-08 Jean-Louis Martineau + * configure.in: Add ICE_CHECK_DECL(snprintf,stdio.h) + * configure.in: Add ICE_CHECK_DECL(vsnprintf,stdio.h) + * client-src/sendbackup.c: Fix ignoring return value of write. + +2006-12-08 Jean-Louis Martineau + * man/xml-source/amadmin.8.xml, man/xml-source/amanda.8.xml, + man/xml-source/amanda.conf.5.xml, man/xml-source/amcheck.8.xml, + man/xml-source/amfetchdump.8.xml, man/xml-source/ammt.8.xml, + man/xml-source/amrecover.8.xml: Move tag to beginning of line + +2006-12-08 Jean-Louis Martineau + * changer-src/chg-rait.sh.in: Fix typo for -reset. + +2006-12-07 Jean-Louis Martineau + * server-src/amindexd.c: Fix host case problem. + * server-src/diskfile.c (add_disk, parse_diskline): Update hostname + field. + * server-src/diskfile.h (disk_s): New hostname field. + * server-src/disk_history.c (add_dump): New hostname parameter. + * server-src/disk_history.h (DUMP_ITEM): New hostname field. + * server-src/disk_history.h (add_dump): Protoype change. + +2006-12-07 Jean-Louis Martineau + * amandad-src/amandad.c: Add missing HAVE_IPV6. + * common-src/security-util.c: Add missing HAVE_IPV6. + * common-src/bsd-security.c, common-src/bsdtcp-security.c, + common-src/bsdudp-security.c, common-src/dgram.c, + common-src/dgram.h, common-src/stream.c, + common-src/util.c: Fix for broken getaddrinfo:not returning V4MAPPED + +2006-12-07 Jean-Louis Martineau + * common-src/conffile.c (lookup_keyword): Use strcasecmp. + * common-src/conffile.c (get_conftoken): Don;t convert to uppercase. + * server-src/getconf.c: Don;t print extra '\n' for --list. + +2006-12-04 Jean-Louis Martineau + * common-src/util.c (str_sockaddr): Use host byte order for port. + +2006-12-04 Jean-Louis Martineau + * server-src/amtape.h: Remove file. + +2006-12-04 Jean-Louis Martineau + Application API phase 1. + * client-src/client_util.c, client-src/client_util.h, + client-src/selfcheck.c, client-src/sendbackup.c, + client-src/sendsize.c, common-src/amfeatures.c, + common-src/amfeatures.h, common-src/fileheader.c, + common-src/fileheader.h, recover-src/extract_list.c, + server-src/amcheck.c, server-src/amstatus.pl.in, + server-src/dumper.c, server-src/Makefile.am, + server-src/planner.c: Fix for Application API. + * configure.in: Fix for moved files. + * dumper-src/generic-dumper.pl.in: Fix for Application API. + * dumper-src/Makefile.am: Fix for renamed files. + * dumper-src/gnutar.pl.in: Renamed to dumper-src/amgtar.pl.in. + * dumper-src/amgtar.pl.in: Fix for Application API. + * dumper-src/star.pl.in: Renamed to dumper-src/amstar.pl.in. + * dumper-src/amstar.pl.in: Fix for Application API. + +2006-11-29 Jean-Louis Martineau + * client-src/sendbackup.c: Kill dump process on error. + +2006-11-29 Jean-Louis Martineau + * changer-src/chg-chio.pl.in: Check tapedev is set. + * changer-src/chg-disk.sh.in: Check tapedev is set. + * changer-src/chg-iomega.pl.in: Check tapedev is set. + * changer-src/chg-manual.sh.in: Check tapedev is set. + * changer-src/chg-mtx.sh.in: Check tapedev is set. + * changer-src/chg-rth.pl.in: Check tapedev is set. + * server-src/amcheck.c: Tapedev is needed only if tpchanger is not set. + * server-src/amflush.c: Tapedev is needed only if tpchanger is not set. + * server-src/amindexd.c: Tapedev is needed only if tpchanger is not set + * server-src/taper.c: Tapedev is needed only if tpchanger is not set. + +2006-11-29 Jean-Louis Martineau + * client-src/sendbackup.c: Ignore tar exit with status 1. + +2006-11-29 Jean-Louis Martineau + * server-src/amindexd.c (clean_backslash): New function use to unescape + '\' characters in index files. + +2006-11-29 Jean-Louis Martineau + * restore-src/restore.c (search_tapes): Fix prompt_out setting. + +2006-11-28 Jean-Louis Martineau + * common-src/amanda.h: Don't include gnulib header if CONFIGURE_TEST + is defined. + * common-src/amflock.c (main): Remove unused fd variable. + +2006-11-28 Jean-Louis Martineau + * config/Makefile.am (EXTRA_DIST): Add gnulib.m4i. + +2006-11-27 Jean-Louis Martineau + * common-src/util.c (copy_file): Fix compilation error. + +2006-11-27 Jean-Louis Martineau + * common-src/stream.c: Fix compilation error. + +2006-11-27 Jean-Louis Martineau + * common-src/amanda.h (NI_MAXHOST): Define if not defined. + * common-src/bsd-security.c, common-src/bsdtcp-security.c, + common-src/bsdudp-security.c, common-src/dgram.c, + common-src/security-util.c, common-src/stream.c, + common-src/util.c: HAVE_IPV6 conditional code + +2006-11-26 Jean-Louis Martineau + * config/gnulib/*: m4 files for gnulib. + * config/gnulib.m4i: File to load all m4 files for gnulib. + * gnulib/*: gnulib source. + * */Makefile.am (INCLUDES): Add $(top_srcdir)/gnulib. + * */Makefile.am (LDADD): Add ../gnulib/libgnu.$(LIB_EXTENSION). + * Makefile.am (ACINCLUDE_M4_DEPS): Add $(srcdir)/config/gnulib.m4i. + * Makefile.am (SUBDIRS): Add gnulib. + * configure.in: AC_PREREQ(2.59), gl_EARLY, gl_INIT. + * configure.in (AC_CONFIG_FILES): Add gnulib/Makefile. + * autogen: Add config/gnulib.m4i to acinclude.m4. + +2006-11-24 Jean-Louis Martineau + * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c, + client-src/sendsize.c, + server-src/amindexd.c: Patch for gcc-3.2.3 to compile the new + vstralloc macro. + +2006-11-24 Jean-Louis Martineau + * common-src/file.c (old_sanitise_filename): New function. + * common-src/amanda.h (old_sanitise_filename): Prototype. + * common-src/util.c (copy_file): New function. + * common-src/util.h (copy_file): Prototype. + * server-src/diskfile.c: Check that two DLE doesn't get the same + sanitized filename. + * server-src/amindex.c (getoldindexfname): New function. + * server-src/amindex.h (getoldindexfname): prototype. + * server-src/amindexd.c: Use the old sanitized filename if the new + file doesn't exist. + * server-src/amcheck.c: Call check_infofile. + * server-src/planner.c: Call check_infofile. + * server-src/server_util.c (check_infofile): New function, will copy + the old sanitizes info file if the new doesn't exist. + * server-src/server_util.h (check_infofile): Prototype. + +2006-11-23 Jean-Louis Martineau + * common-src/security-util.c (tcpm_recv_token): amanda protocol + packet can be larger than NETWORK_BLOCK_BYTES + +2006-11-21 Jean-Louis Martineau + * common-src/stream.c: Fix compiler error. + +2006-11-21 Jean-Louis Martineau + * amandad-src/amandad.c, common-src/amanda.h, + common-src/bsd-security.c, common-src/bsdtcp-security.c, + common-src/bsdudp-security.c, common-src/dgram.c, + common-src/dgram.h, common-src/krb4-security.c, + common-src/krb5-security.c, common-src/security-util.c, + common-src/security-util.h, common-src/stream.c, + common-src/util.c, common-src/util.h, + restore-src/amidxtaped.c, server-src/amindexd.c: IPV6. + +2006-11-20 Jean-Louis Martineau + * client-src/sendsize.c, oldrecover-src/display_commands.c, + oldrecover-src/extract_list.c, recover-src/display_commands.c, + recover-src/extract_list.c, + server-src/driver.c: Fix compiler error. + +2006-11-20 Jean-Louis Martineau + * client-src/sendsize.c: Open the amandates file after the + /amanda-client.conf file is loaded. + +2006-11-20 Jean-Louis Martineau + * client-src/sendsize.c: Fix compiler error on boris. + * server-src/driver.c: Fix compiler error on rocky. + +2006-11-20 Jean-Louis Martineau + * common-src/security-util.c, server-src/amcheck.c, + * server-src/driver.c, server-src/dumper.c, + * server-src/planner.c, tape-src/output-file.c: Lint cleanup. + +2006-11-20 Ian Turner + * tape-src/output-file.c: Fix a compilation error related to + improper type casts. Thanks to Satya Ganga for noticing this + problem. + +2006-11-20 Jean-Louis Martineau + * server-src/driver.c: Use temporary variable to scanf an OFF_T_FMT. + * server-src/planner.c: Use temporary variable to scanf an OFF_T_FMT. + +2006-11-13 Jean-Louis Martineau + * client-src/selfcheck.c: Work for estimate calcsize and + program "DUMP". + +2006-11-13 Jean-Louis Martineau + * server-src/amcheck.c: Don't ouput an warning if holdingdisk 'use' + is set to 0. + +2006-11-09 Jean-Louis Martineau + * man/xml-source/amgetconf.8.xml: Document --list. + +2006-11-09 Jean-Louis Martineau + * changer-src/chg-scsi.c: Don't remove '_' from "generic_changer". + +2006-11-08 Jean-Louis Martineau + * common-src/amanda.h, common-src/conffile.c, + common-src/conffile.h, common-src/security-util.c, + configure.in, oldrecover-src/amrecover.c, + oldrecover-src/extract_list.c, recover-src/amrecover.c, + recover-src/extract_list.c, restore-src/amrestore.c, + server-src/dumper.c: Fix compiler error on Tru64. + +2006-11-08 Jean-Louis Martineau + * common-src/conffile.c (getconf_byname): + Parse "DEFINE:identifer:parameter" format. + * common-src/conffile.c (getconf_list): New function to list a DEFINE. + * common-src/conffile.c (lookup_holdingdisk): New function. + * common-src/conffile.h (getconf_list, + lookup_holdingdisk): New prototype. + * server-src/getconf.c: accept --list argument and + "DEFINE:identifer:parameter" format. + * man/xml-source/amgetconf.8.xml: Document. + +2006-11-08 Jean-Louis Martineau + * server-src/driver.c: set off_t variable to 0 before sscanf. + * server-src/planner.c: set off_t variable to 0 before sscanf. + +2006-11-07 Jean-Louis Martineau + * server-src/amstatus.pl.in: Improve error message. + +2006-11-07 Jean-Louis Martineau + * common-src/security-util.c: Fix coverity bug 170. + * server-src/diskfile.c: Fix coverity bug 147. + +2006-11-07 Jean-Louis Martineau + * common-src/conffile.c (validate_chunksize): Check chunksize is >= + 2*DISK_BLOCK_KB + +2006-11-06 Jean-Louis Martineau + * common-src/amanda.h: Define OFF_T_STRTOL. + * configure.in: Check for strtol and strtoll. + +2006-11-02 Ian Turner + * common-src/amanda.h: Use atol if atoll is missing. + +2006-11-02 Jean-Louis Martineau + * common-src/security-util.c: Better message on invalid size. + +2006-11-02 Jean-Louis Martineau + * configure.in: List bsdudp as a udp transport. + +2006-11-01 Jean-Louis Martineau + * server-src/diskfile.c: Don't use 0 for NULL. + +2006-11-01 Jean-Louis Martineau + Revert Ian patch of 2006-10-29. + * common-src/conffile.c: Defile AMANDATES_FILE + * client-src/amandates.h: Don't define AMANDATES_FILE + +2006-11-01 Jean-Louis Martineau + * common-src/conffile.c: Rename DUMPTYPE_START_T to DUMPTYPE_STARTTIME. + * common-src/conffile.h: Rename DUMPTYPE_START_T to DUMPTYPE_STARTTIME. + * server-src/amadmin.c (disklist_one): Print correct starttime. + * server-src/diskfile.c: Set start_t to starttime. + * server-src/diskfile.h (disk_t): Add starttime. + +2006-11-01 Jean-Louis Martineau + * changer-src/scsi-changer-driver.c: Add Tandberg SLR100, + more debugging. + * changer-src/sense.c: Add Tandberg SLR100 Tape Drive "SLR100". + +2006-11-01 Jean-Louis Martineau + * common-src/amanda.h: Define dbrename if !DEBUG_CODE. + * restore-src/amidxtaped.c: Declare i if !DEBUG_CODE. + +2006-10-30 Jean-Louis Martineau + * server-src/amadmin.c (disklist_one): Print ignore field. + * server-src/amoverview.pl.in: Ignore 'ignore yes' and 'strategy skip'. + * server-src/diskfile.c: Correct hostname allocation. + Keep 'ignore yes' and 'strategy skip' DLE in + memory, set there todo to 0. + * server-src/diskfile.h: (struct disk_s): New ignore field. + +2006-10-29 Ian Turner + This was reported as debian bug 394796. Thanks to Damyan Ivanov + for reporting and to Bdale Garbee + for a preliminary patch. + * common-src/conffile.c: Use AMANDATES_FILE as default for + location of amandates. + * common-src/amandates.h: Move from client-src/ + * client-src/amandates.h: Move to common-src/ + * common-src/Makefile.am: Update to reflect new location of + amandates.h. + * client-src/Makefile.am: ditto. + +2006-10-25 Jean-Louis Martineau + Patch by Jay Fenlason + * common-src/rsh-security.c: Fix. + +2006-10-24 Jean-Louis Martineau + * common-src/conffile.c (get_config_options): Build and argv of the + -o arguments. + * common-src/conffile.h (get_config_options): Prototype. + * server-src/driverio.c: exec dumper/chunker/driver with the argv from + get_config_options + * server-src/amtape.c: Accept -o argument. + * man/xml-source/amtape.8.xml: Document it. + +2006-10-24 Jean-Louis Martineau + * server-src/taper.c: Fix allocation problem on tapedev. + +2006-10-20 Jean-Louis Martineau + * common-src/conffile.c (conf_print): Add a parameter if we want + CONFTYPE_STRING enclosed in ". + * server-src/planner.c: Use getconf_int to get etimeout value. + +2006-10-20 Jean-Louis Martineau + * server-src/taper.c (free_split_buffer): Correct free. + +2006-10-20 Jean-Louis Martineau + * client-src/sendbackup.c: Parse quote amdevice. + * server-src/amcheck.c: Send quoted amdevice. + * server-src/planner.c: Send quoted amdevice. + +2006-10-20 Jean-Louis Martineau + * common-src/conffile.c (CNF_CTIMEOUT, CNF_DTIMEOUT, CNF_ETIMEOUT): + They are of type CONFTYPE_INT + (CONFTYPE_TIME are for value parsed as "hhmm"") + * common-src/conffile.c (getconf_byname): Use conf_print(). + * common-src/conffile.h: Add comment. + * server-src/amcheck.c, server-src/dumper.c, server-src/planner.c: + Use getconf_int to get timeout value. + +2006-10-19 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: Fix formating. + +2006-10-19 Jean-Louis Martineau + * client-src/calcsize.c, client-src/sendsize.c: Remove bogus fseek. + +2006-10-19 Jean-Louis Martineau + * client-src/calcsize.c: Quote amname. + +2006-10-19 Jean-Louis Martineau + * server-src/driver.c: Print an L_STATS with the hostname + * server-src/reporter.c: Print hostname, org, config and date at the + beginning of the report + +2006-10-16 Jean-Louis Martineau + * common-src/dgram.c (dgram_cat), + common-src/packet.c (pkt_init, pkt_cat): Works correctly with + vsnprintf returning -1. + +2006-10-11 Jean-Louis Martineau + * common-src/Makefile.am (libamanda_la_LIBADD) Remove @LTLIBOBJS@. + +2006-10-11 Jean-Louis Martineau + * server-src/taper.c: stralloc(tapedev). + * configure.in (EXAMPLE_TAPEDEV): Set to /dev/null if no tape-device. + * example/amanda-client.conf.in, example/amanda.conf.in + example/chg-mcutil.conf.in: Use EXAMPLE_TAPEDEV. + +2006-10-11 Jean-Louis Martineau + * common-src/alloca.c, common-src/getcwd.c, common-src/mktime.c, + common-src/memmove.c, common-src/snprintf.c, + common-src/strcasecmp.c, common-src/strerror.c, + common-src/strftime.c, common-src/strncasecmp.c, + common-src/strstr.c, common-src/waitpid.c, + COPYRIGHT-APACHE: Removed files. + * configure.in: Remove many AC_REPLACE_FUNCS. + * Makefile.am (pkgdata_DATA): Remove COPYRIGHT-APACHE. + +2006-10-11 Jean-Louis Martineau + * common-src/Makefile.am: Remove all reference to our regex + * common-src/match.c: #include , the system regex + * common-src/memmove.c: No more memmove in regex-src + * Makefile.am (pkgdata_DATA): Remove COPYRIGHT-REGEX + * Makefile.am (EXTRA_DIST): Remove regex-src/* + * regex-src: Remove directory. + * common-src/regcomp.c, common-src/regerror.c, + common-src/regexec.c, common-src/regfree.c, + common-src/amregex.h: Remove files. + +2006-10-11 Jean-Louis Martineau + * server-src/planner.c: Improve message for dump larger than available + tape space if runtapes > 1 and splitsize == 0. + +2006-10-10 Jean-Louis Martineau + * server-src/driver.c (wait_children): Don't crash if dumper->chunker + is NULL + +2006-10-04 Jean-Louis Martineau + * amandad-src/amandad.c: Call security_recvpkt() on A_SENDNACK + and dup P_REQ. + * common-src/security-util.c: Improve message. + +2006-10-03 Jean-Louis Martineau + * server-src/amcleanupdisk.c: Accept -o arguments. + * server-src/amcleanup.sh.in: Add missing 'shift' for non-linux system. + Accept -o arguments. + +2006-10-03 Jean-Louis Martineau + * server-src/amoverview.pl.in: Fix parsing of time field from amadmin. + +2006-10-03 Jean-Louis Martineau + * restore-src/amidxtaped.c, restore-src/restore.c, + server-src/amcheck.c, server-src/amflush.c, + server-src/amlabel.c, server-src/taper.c, + server-src/taperscan.c: Check for CNF_TAPEDEV == NULL. + +2006-10-03 Jean-Louis Martineau + * common-src/conffile.c: Don't set CNF_TAPEDEV to DEFAULT_TAPE_DEVICE. + * configure.in: Don't set DEFAULT_TAPE_DEVICE. + +2006-09-29 Jean-Louis Martineau + * common-src/bsdtcp-security.c: Add logging on error. + +2006-09-29 Jean-Louis Martineau + * server-src/amoverview.pl.in: Use shellwords instead of quotewords, + don't add date for disk not in the disklist. + +2006-09-28 Jean-Louis Martineau + * common-src/bsd-security.c: Fix %hd printf argument format. + * common-src/security-util.c: Fix %hd printf argument format. + +2006-09-28 Jean-Louis Martineau + * common-src/conffile.c (client_keytab): Add DEBUG_*. + * oldrecover-src/amrecover.c: Call read_clientconf. + +2006-09-27 Jean-Louis Martineau + * restore-src/restore.c: Improve debugging. + * server-src/changer.c: Make sure to dup the fd out of the 0..2 range. + +2006-09-27 Jean-Louis Martineau + * restore-src/amfetchdump.c: Pass new prompt_in parameter to + search_tapes. + * restore-src/restore.c (search_tapes, load_manual_tape): New prompt_in + parameter. + * restore-src/restore.h (search_tapes): New prompt_in parameter. + * restore-src/amidxtaped.c: Set new 'FILE *' instead of reusing stdin + and stdout. + * server-src/amindexd.c: Set new 'FILE *' instead of reusing stdin + and stdout. + +2006-09-27 Jean-Louis Martineau + Patch by Orion Poplawski + * server-src/planner.c: Add a skip_quoted_line() on error. + +2006-09-23 Jean-Louis Martineau + * server-src/amstatus.pl.in: Fix parsing of 'taper: wrote label' line. + * server-src/amtoc.pl.in: Fix parsing of 'START taper' line. + +2006-09-22 Jean-Louis Martineau + * common-src/conffile.h: New CONFTYPE_INTRANGE conftype_t. + * common-src/conffile.c: New CNF_RESERVED_UDP_PORT, + CNF_RESERVED_TCP_PORT, + CNF_UNRESERVED_TCP_PORT config options. + * common-src/dgram.c: Use the new CNF_RESERVED_UDP_PORT option. + * common-src/stream.c: Use the new CNF_*RESERVED_PORT options. + * man/xml-source/amanda-client.conf.5.xml: Document it. + * man/xml-source/amanda.conf.5.xml: Document it. + +2006-09-22 Jean-Louis Martineau + Patch by William Jojo + * client-src/sendsize.c: Fix #endif for AIX. + +2006-09-22 Jean-Louis Martineau + * common-src/packet.c: Fix use of arglist_start/arglist_end. + * server-src/amindexd.c: Fix use of vsnprintf (for IRIX). + * server-src/logfile.c: Fix use of arglist_start/arglist_end. + +2006-09-21 Jean-Louis Martineau + * server-src/amcheck.c: Don't assert if holding use is set to 0. + +2006-09-19 Jean-Louis Martineau + * server-src/find.c (search_logfile): Count 'PARTIAL taper line'. + +2006-09-19 Jean-Louis Martineau + Patch by Paul Bijens + * server-src/amcheck.c: Print "tapelist" instead of "tapefile". + +2006-09-19 Jean-Louis Martineau + * common-src/dgram.c (dgram_bind): Remove unused variables. + +2006-09-19 Jean-Louis Martineau + * common-src/conffile.c, common-src/conffile.h: Add debug_amandad, + debug_amidxtaped, debug_amindexd, debug_amrecover, debug_auth, + debug_event, debug_holding, debug_protocol, debug_planner, + debug_driver, debug_dumper, debug_chunker, debug_taper, + debug_selfcheck, debug_sendsize, debug_sendbackup + configurations options. + * common-sc/debug.c: Use it's own clock function. + * amandad-src/amandad.c, amandad-src/amandad_util.c, + client-src/calcsize.c, client-src/client_util.c, + client-src/killpgrp.c, client-src/rundump.c, + client-src/runtar.c, client-src/selfcheck.c, + client-src/sendbackup.c, client-src/sendsize.c, + common-src/bsd-security.c, common-src/bsdtcp-security.c, + common-src/bsdudp-security.c, common-src/debug.c, + common-src/dgram.c, common-src/event.c, + common-src/krb5-security.c, common-src/pipespawn.c, + common-src/protocol.c, common-src/rsh-security.c, + common-src/security.c, common-src/security-util.c, + common-src/security-util.h, common-src/ssh-security.c, + common-src/stream.c, common-src/util.c, + recover-src/amrecover.c, restore-src/amidxtaped.c, + server-src/amindexd.c, server-src/chunker.c, + server-src/driver.c, server-src/dumper.c, + server-src/planner.c, + server-src/taper.c: Use the debug_* configuration options. + Use debug_prefix_time to print the time on + all debugging message. + +2006-09-19 Jean-Louis Martineau + * amandad-src/amandad.c: Use CNF_REP_TRIES. + * common-src/conffile.c: New CONNECT_TRIES, REQ_TRIES, REP_TRIES + configuration options. + * common-src/conffile.h: New CONNECT_TRIES, REQ_TRIES, REP_TRIES + configuration options. + * common-src/protocol.c: Use CNF_CONNECT_TRIES and CNF_REQ_TRIES. + * common-src/protocol.c: Rename reqtries to resettries. + Rename acktries to reqtries. + * man/xml-source/amanda-client.conf.5.xml: Document new options. + * man/xml-source/amanda.conf.5.xml: Document new options. + +2006-09-19 Jean-Louis Martineau + * amandad-src/amandad.c: Read client configuratrion file. + * client-src/client_util.c, client-src/selfcheck.c, + client-src/sendbackup.c, client-src/sendbackup-dump.c, + client-src/sendbackup-gnutar.c, client-src/sendsize.c, + recover-src/amrecover.c, recover-src/extract_list.c, + restore-src/amfetchdump.c, server-src/amadmin.c, + server-src/amcheck.c, server-src/amflush.c, + server-src/amflush.c, server-src/amlabel.c, + server-src/amlogroll.c, server-src/amtrmidx.c, + server-src/amtrmlog.c, server-src/chunker.c, + server-src/diskfile.c, server-src/driver.c, + server-src/dumper.c, server-src/getconf.c, + server-src/planner.c, server-src/reporter.c, + server-src/taper.c: Use generic macro/functions instead of + client/server functions. + * client-src/client_util.h: Remove unuse macro. + * client-src/Makefile.am: Remove clientconf.? files. + * common-src/amanda.h: Define MAX_DUMPERS. + * common-src/conffile.c: New file, merge of client-src/clientconf.c + and server-src/conffile.c + * common-src/conffile.h: New file, merge of client-src/clientconf.c + and server-src/conffile.c + * common-src/Makefile.am (libamanda_la_SOURCES): Add conffile.c + * common-src/Makefile.am (noinst_HEADERS): Add conffile.h + * common-src/util.c: Move many thing to common-src/conffile.c. + * common-src/util.h: Move many thing to common-src/conffile.h. + * server-src/driverio.h: Remove MAX_DUMPERS define. + * server-src/Makefile.am: Remove conffile.[hc]. + +2006-09-19 Jean-Louis Martineau + * common-src/dgram.c (dgram_bind): Don't set SO_REUSEADDR on socket. + +2006-09-19 Jean-Louis Martineau + * common-src/util.c (connect_port): Make EHOSTUNREACH and ENETUNREACH + fatal error. + +2006-09-18 Jean-Louis Martineau + * common-src/util.c(dump_sockaddr): Convert from network to machine + bytes order before printing. + * common-src/dgram.c (dgram_recv): Print the fromaddr. + +2006-09-15 Jean-Louis Martineau + * amandad-src/amandad.c: Correct order of close/dup. + +2006-09-12 Jean-Louis Martineau + * common-src/bsdtcp-security.c: Use AMANDA_SERVICE_NAME. + +2006-09-12 Jean-Louis Martineau + * server-src/amstatus.pl.in: Check that $dumpers_active is defined. + +2006-09-12 Jean-Louis Martineau + * common-src/util.c (conftoken_getc): Return an int. + +2006-09-11 Jean-Louis Martineau + * client-src/sendbackup-dump.c: Works if rundump is not used. + +2006-09-05 Jean-Louis Martineau + * Amanda 2.5.1 released. + * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1). + * NEWS: Change in amanda-2.5.1 + +2006-08-30 Jean-Louis Martineau + * server-src/dumper.c: Typo in error message. + +2006-08-29 Jean-Louis Martineau + * client-src/selfcheck.c: Print error message to stdout before + calling error(). + +2006-08-28 Jean-Louis Martineau + * server-src/dumper.c (log_msgout): Seek to begining of file. + +2006-08-28 Jean-Louis Martineau + * server-src/reporter.c: Report if a dump was successfully retried. + +2006-08-28 Jean-Louis Martineau + * server-src/amstatus.pl.in: Correct size for retried dump. + +2006-08-25 Jean-Louis Martineau + * client-src/runtar.c: Check that strcmp(argv[3], "--create") == 0. + +2006-08-24 Jean-Louis Martineau + * common-src/statfs.c (scale): Macro replaced by a function. + +2006-08-24 Jean-Louis Martineau + * server-src/chunker.c: Use STREAM_BUFSIZE for stream_accept. + * server-src/taper.c: Use STREAM_BUFSIZE for stream_accept. + +2006-08-24 Maitreyee Karmarkar + * man/xml-source/amcheck.8.xml: amcheck xml man page change + +2006-08-23 Kevin Till + * server-src/driver.c: fix typo + +2006-08-23 Jean-Louis Martineau + * server-src/driver.c (dumper_result): Decrement pendings_aborts. + * server-src/driver.c (handle_dumper_result): Don't send duper result + to chunker if we aborted it. + * server-src/driverio.c (dumper_cmd, chunker_cmd): Don't close the fd + on ABORT. + * server-src/dumper.c: Accept ABORT command. + +2006-08-23 Jean-Louis Martineau + * restore-src/restore.c (restore): Set bytes_read to the return value + of read_file_header. + +2006-08-22 Jean-Louis Martineau + * tape-src/output-tape.c: Works if EOVERFLOW is not defined. + +2006-08-21 Jean-Louis Martineau + * amandad-src/amandad.c, common-src/rsh-security.c, + common-src/ssh-security.c, restore-src/restore.c, + server-src/changer.c, server-src/dumper.c: Fix sentinel warning. + +2006-08-21 Jean-Louis Martineau + * example/amanda.conf.in: Typo. + +2006-08-21 Jean-Louis Martineau + * server-src/driverio.c: Fix bogus "(unsigned long)-1". + +2006-08-21 Jean-Louis Martineau + * server-src/driver.c (start_some_dumps): Remove bogus free_assignedhd. + +2006-08-21 Maitreyee Karmarkar + * server-src/amcheck.c: Check specific clients + * man/amcheck.8: add the multiple client check format + +2006-08-18 Ian Turner + * tape-src/amtapetype.c: Don't crash on exit + +2006-08-17 Paddy Sreenivasan + * server-src/driverio.c: + * server-src/changer.c: + * restore-src/amfetchdump.c: + * recover-src/extract_list.c: + * oldrecover-src/extract_list.c: + * common-src/util.c: + * common-src/stream.c: + * common-src/file.c: + * common-src/dgram.c: Fix warnings + +2006-08-17 Kevin Till + * common-src/stream.c: Loop 5 times (ntries > 5) on select error + +2006-08-14 Paddy Sreenivasan + * client-src/sendsize.c: Fix warning + * server-src/reporter.c: Fix warnings + +2006-07-28 Jean-Louis Martineau + * Amanda 2.5.1b2 released. + * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b2). + +2006-07-28 Jean-Louis Martineau + * server-src/driver.c (find_diskspace): Make sure size > 0. + +2006-07-28 Jean-Louis Martineau + * server-src/planner.c: Don't check new disk. + +2006-07-28 Jean-Louis Martineau + * server-src/planner.c: Always log if full size estimate is larger + than the available tape space. + +2006-07-28 Jean-Louis Martineau + * server-src/planner.c: Always log if the latest full dump will be + overwritten soon. + +2006-07-27 Jean-Louis Martineau + * common-src/clock.c (timesub): Don't make a negative time. + +2006-07-27 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: Tell which file are loaded. + * man/xml-source/amanda-client.conf.5.xml: Ditto. + +2006-07-26 Jean-Louis Martineau + * NEWS: for 2.5.1b2. + +2006-07-26 Jean-Louis Martineau + * common-src/util.h (CONFTYPE_HOLDING): New conftype. + * common-src/util.c (conf_init_holding, conf_set_holding, + get_conftype_hold): New fonction. + * example/amanda.conf.in: Example of new holdingdisk value. + * man/xml-source/amanda.8.xml: Example. + * man/xml-source/amanda.conf.5.xml: Document it. + * server-src/amadmin.c (disklist_one): Print holdingdisk value. + * server-src/conffile.c: Parse new CONF_HOLDING type. + * server-src/conffile.h (dumptype_get_to_holdingdisk): Change macro. + * server-src/diskfile.c (parse_diskline): dumptype_get_to_holdingdisk. + * server-src/driver.c: Use new CONFTYPE_HOLDING value. + +2006-07-26 Jean-Louis Martineau + * client-src/selfcheck.c: Fix bug found by coverity. + * common-src/debug.c: Fix bug found by coverity. + +2006-07-25 Jean-Louis Martineau + * server-src/amflush.c: Typo. + +2006-07-25 Jean-Louis Martineau + * server-src/amflush.c: Correct test for driver_stream. + +2006-07-25 Jean-Louis Martineau + * client-src/clientconf.c: Default CLN_AMANDATES to /etc/amandates. + * common-src/util.c (conf_init_size): Type is CONFTYPE_SIZE. + * server-src/conffile.c (getconf_taperalgo): New function. + * server-src/conffile.h (getconf_taperalgo): Prototype. + * server-src/driver.c: Use getconf_taperalgo. + +2006-07-25 Jean-Louis Martineau + * client-src/clientconf.c (client_getconf_boolean): New function. + * client-src/clientconf.h (client_getconf_boolean): Prototype. + * server-src/conffile.c (getconf_boolean): New function. + * server-src/conffile.h (getconf_boolean): Prototype. + * restore-src/amidxtaped.c: Use getconf_boolean. + * server-src/amflush.c: Use getconf_boolean. + * server-src/planner.c: Use getconf_boolean. + +2006-07-25 Jean-Louis Martineau + * server-src/getconf.c: Don't print BUGGY. + * changer-src/chg-chio.pl.in: Don't parse BUGGY. + * changer-src/chg-iomega.pl.in: Don't parse BUGGY. + * changer-src/chg-zd-mtx.sh.in: Don't parse BUGGY. + * man/xml-source/amgetconf.8.xml: Don't parse BUGGY. + * server-src/amverifyrun.sh.in: Don't parse BUGGY. + * server-src/amverify.sh.in: Don't parse BUGGY. + +2006-07-25 Jean-Louis Martineau + * restore-src/restore.c: Cleanup. + * restore-src/amrestore.c: Don't fsf if the last read return 0. + +2006-07-25 Jean-Louis Martineau + * client-src/selfcheck.c: Fix bug found by klocwork. + * common-src/rsh-security.c: Fix bug found by klocwork. + * common-src/ssh-security.c: Fix bug found by klocwork. + * server-src/planner.c: Fix bug found by klocwork. + +2006-07-25 Jean-Louis Martineau + * tape-src/output-tape.c (tape_tape_open): mt is declared inside #ifdef. + +2006-07-25 Jean-Louis Martineau + * server-src/amcheck.c: Fix quoting. + +2006-07-25 Jean-Louis Martineau + * client-src/clientconf.c: client_getconf* validate the type. + * common-src/util.c (get_conftype_*): New function. + * common-src/util.h (get_conftype_*): Prototype. + * server-src/conffile.c: getconf* validate the type. + * server-src/conffile.h: Use get_conftype_* function. + +2006-07-25 Jean-Louis Martineau + * client-src/clientconf.c: New AMANDATES client config option. + * client-src/clientconf.h: New AMANDATES client config option. + * client-src/amandates.c: Use AMANDATES. + * client-src/amandates.h: Use AMANDATES. + * client-src/selfcheck.c: Use AMANDATES. + * client-src/sendbackup-gnutar.c: Use AMANDATES. + * client-src/sendsize.c:: Use AMANDATES. + * common-src/util.h : New CONF_AMANDATES. + * man/xml-source/amanda-client.conf.5.xml: Document it. + +2006-07-25 Jean-Louis Martineau + * client-src/clientconf.c: New GNUTAR_LIST_DIR client config option. + * client-src/clientconf.h: New GNUTAR_LIST_DIR client config option. + * client-src/selfcheck.c: Use GNUTAR_LIST_DIR. + * client-src/sendbackup-gnutar.c: Use GNUTAR_LIST_DIR. + * client-src/sendsize.c: Use GNUTAR_LIST_DIR. + * common-src/util.h: New CONF_GNUTAR_LIST_DIR. + * man/xml-source/amanda-client.conf.5.xml: Document it. + +2006-07-25 Jean-Louis Martineau + * client-src/calcsize.c, client-src/killpgrp.c, + client-src/rundump.c, client-src/runtar.c, + client-src/selfcheck.c, client-src/sendbackup.c, + client-src/sendsize.c, common-src/amanda.h, + common-src/debug.c, oldrecover-src/amrecover.c, + recover-src/amrecover.c, restore-src/amfetchdump.c, + restore-src/amidxtaped.c, server-src/amadmin.c, + server-src/amcheck.c, server-src/amcleanupdisk.c, + server-src/amflush.c, server-src/amindexd.c, + server-src/amlabel.c, server-src/amlogroll.c, + server-src/amtape.c, server-src/amtrmidx.c, + server-src/amtrmlog.c, server-src/chunker.c, + server-src/driver.c, server-src/dumper.c, + server-src/getconf.c, server-src/planner.c, + server-src/reporter.c, server-src/taper.c: dbrename ot the config dir. + +2006-07-25 Jean-Louis Martineau + * common-src/amanda.h: Define DBG_SUBDIR_SERVER, DBG_SUBDIR_CLIENT + and DBG_SUBDIR_CLIENT. + * amandad-src/amandad.c, changer-src/chg-scsi.c, + changer-src/chg-scsi-chio.c, client-src/calcsize.c, + client-src/killpgrp.c, client-src/rundump.c, client-src/runtar.c, + client-src/selfcheck.c, client-src/sendbackup.c, + client-src/sendsize.c, + oldrecover-src/amrecover.c, recover-src/amrecover.c, + restore-src/amfetchdump.c, restore-src/amidxtaped.c, + restore-src/amrestore.c, server-src/amadmin.c, + server-src/amcheck.c, server-src/amcleanupdisk.c, + server-src/amflush.c, server-src/amindexd.c, + server-src/amlabel.c, server-src/amlogroll.c, + server-src/amtape.c, server-src/amtrmidx.c, + server-src/amtrmlog.c, server-src/chunker.c, + server-src/diskfile.c, server-src/driver.c, + server-src/dumper.c, server-src/getconf.c, + server-src/infofile.c, server-src/planner.c, + server-src/reporter.c (dbopen): Use DBG_SUBDIR_SERVER, + DBG_SUBDIR_CLIENT or DBG_SUBDIR_CLIENT. + +2006-07-25 Jean-Louis Martineau + * client-src/calcsize.c: Get config on argument. + * client-src/killpgrp.c: Get config on argument. + * client-src/rundump.c: Get config on argument. + * client-src/runtar.c: Get config on argument. + * client-src/sendbackup.c: Call program with config as argument. + * client-src/sendbackup-dump.c: Call program with config as argument. + * client-src/sendbackup-gnutar.c: Call program with config as argument. + * client-src/sendbackup.h: Add global g_options. + * client-src/sendsize.c: Call program with config as argument. + +2006-07-23 Jean-Louis Martineau + * client-src/sendbackup-gnutar.c: Fix bug found by splint. + * client-src/sendsize.c: Fix bug found by splint. + +2006-07-22 Jean-Louis Martineau + * server-src/taper.c: Fix amfree(mem_splitbuf). + +2006-07-22 Jean-Louis Martineau + * server-src/diskfile.c, server-src/taper.c: Fix memory leak found + by coverity. + +2006-07-22 Jean-Louis Martineau + * server-src/taper.c: Fix split_buffer allocation problem. + +2006-07-22 Jean-Louis Martineau + * client-src/selfcheck.c, common-src/security-util.c, + restore-src/restore.c, server-src/diskfile.c: Fix memory leak found + by coverity. + +2006-07-20 Jean-Louis Martineau + * changer-src/chg-scsi.c, changer-src/scsi-changer-driver.c, + client-src/amandates.c, client-src/calcsize.c, + client-src/selfcheck.c, client-src/sendbackup.c, + client-src/sendsize.c, common-src/security-util.c, + recover-src/extract_list.c, restore-src/restore.c, + server-src/amindexd.c, server-src/diskfile.c, + server-src/driver.c, server-src/reporter.c, + server-src/tapefile.c, server-src/taper.c: Fix memory leak found + by coverity. + +2006-07-19 Jean-Louis Martineau + * client-src/selfcheck.c : Read client config file. + * client-src/sendbackup.c: Read client config file. + * client-src/sendsize.c : Read client config file. + +2006-07-19 Jean-Louis Martineau + * amandad-src/amandad.h (g_option_t): Add 'char *config'; + * amandad-src/amandad_util.c (parse_g_options): Parse 'config='. + * common-src/amfeatures.h (fe_req_options_config): New amfeature. + * common-src/amfeatures.c (am_init_feature_set): + set fe_req_options_config. + * server-src/amcheck.c: Send 'config=' in global options. + * server-src/dumper.c: Send 'config=' in global options. + * server-src/planner.c: Send 'config=' in global options. + +2006-07-19 Jean-Louis Martineau + * amandad-src/amandad.c: Call dbopen("amandad"). + * changer-src/chg-scsi.c: Call dbopen("server"). + * changer-src/chg-scsi-chio.c: Call dbopen("server"). + * client-src/calcsize.c: Call dbopen("client"). + * client-src/getfsent.c: Call dbopen(NULL). + * client-src/killpgrp.c: Call dbopen("client"). + * client-src/rundump.c: Call dbopen("client"). + * client-src/runstar.c: Call dbopen("client"). + * client-src/runtar.c: Call dbopen("client"). + * client-src/selfcheck.c: Call dbopen("client"). + * client-src/sendbackup.c: Call dbopen("client"). + * client-src/sendsize.c: Call dbopen("client"). + * common-src/amanda.h (dbopen, debug_open): Take a 'char * subdir' + argument. + * common-src/bsd-security.c: Call dbopen(NULL). + * common-src/debug.c (debug_open): Call debug_setup_1(subdir) + * common-src/debug.c (debug_setup_1): Take a subdir argument, + add it to dbgdir. + * common-src/file.c: Call dbopen(NULL). + * common-src/statfs.c: Call dbopen(NULL). + * common-src/token.c: Call dbopen(NULL). + * oldrecover-src/amrecover.c: Call dbopen("client"). + * recover-src/amrecover.c: Call dbopen("client"). + * restore-src/amfetchdump.c: Call dbopen("server"). + * restore-src/amidxtaped.c: Call dbopen("server"). + * restore-src/amrestore.c: Call dbopen("server"). + * server-src/amadmin.c: Call dbopen("server"). + * server-src/amcheck.c: Call dbopen("server"). + * server-src/amcleanupdisk.c: Call dbopen("server"). + * server-src/amflush.c: Call dbopen("server"). + * server-src/amindexd.c: Call dbopen("server"). + * server-src/amlabel.c: Call dbopen("server"). + * server-src/amlogroll.c: Call dbopen("server"). + * server-src/amtape.c: Call dbopen("server"). + * server-src/amtrmidx.c: Call dbopen("server"). + * server-src/amtrmlog.c: Call dbopen("server"). + * server-src/chunker.c: Call dbopen("server"). + * server-src/diskfile.c: Call dbopen("server"). + * server-src/driver.c: Call dbopen("server"). + * server-src/dumper.c: Call dbopen("server"). + * server-src/getconf.c: Call dbopen("server"). + * server-src/infofile.c: Call dbopen("server"). + * server-src/planner.c: Call dbopen("server"). + * server-src/reporter.c: Call dbopen("server"). + * server-src/taper.c: Call dbopen("server"). + +2006-07-17 Jean-Louis Martineau + * server-src/chunker.c: Fix rt computation. + * server-src/dumper.c: Fix dumptime computation. + * server-src/taper.c: Fix rt computation. + +2006-07-17 Jean-Louis Martineau + * NEWS: Klocwork defects fixed. + * NEWS: Coverity defect fixed. + +2006-07-14 Jean-Louis Martineau + * Makefile.am (pkgdata_DATA): add ReleaseNotes. + +2006-07-14 Jean-Louis Martineau + * Amanda 2.5.1b1 released. + * configure.in: Remove -Werror. + +2006-07-14 Jean-Louis Martineau + * client-src/sendsize.c: Use read/write to copy tar snapshot file. + * client-src/sendbackup-gnutar.c: Ditto. + +2006-07-13 Jean-Louis Martineau + * common-src/stream.c (stream_accept): Loop 5 times on select error. + +2006-07-13 Jean-Louis Martineau + * server-src/dumper.c: The datafd is not scheduled at start, + add test for it. + * common-src/stream.c (tcpm_recv_token): Set error_msg. + +2006-07-12 Jean-Louis Martineau + * common-src/util.c (free_new_argv): Move out of + #ifndef HAVE_LIBREADLINE. + +2006-07-12 Jean-Louis Martineau + * server-src/amadmin.c (tape): Report the number of new tapes instead + of "a new tape" for each tapes. + * server-src/reporter.c (output_tapeinfo): Ditto. + +2006-07-12 Jean-Louis Martineau + * server-src/taperscan.c (changer_taper_scan): Report error from + changer_find. + +2006-07-11 John Franks jrfranks@zmanda.com + * configure.in: Fix multiple definition of readline during cygwin + compile. + +2006-07-11 Paddy Sreenivasan + * common-src/pipespawn.c : Fixed compiler warning + +2006-07-11 Jean-Louis Martineau + * man/xml-source/amtapetype.8.xml: No default value for -e. + +2006-07-11 Jean-Louis Martineau + * common-src/util.c: Don't conftoken_ungetc(ch) if ch == EOF. + * server-src/reporter.c: Check tp == NULL. + +2006-07-11 Jean-Louis Martineau + * tape-src/tapetype.c: Make -e an needed argument. + * man/xml-source/amtapetype.8.xml: Update man page. + +2006-07-11 Jean-Louis Martineau + * changer-src/chg-zd-mtx.sh.in: Remove .conf from changerfile. + +2006-07-11 Jean-Louis Martineau + * recover-src/extract_list.c (check_file_overwrite): Renamed from + check_file_overwite. + * recover-src/extract_list.c (check_file_overwrite): Do the path check + in the correct order (from left ro right). + +2006-07-11 Jean-Louis Martineau + * common-src/file.c (debug_agets): Remove call to dbprintf. + +2006-07-10 Jean-Louis Martineau + * recover-src/extract_list.c (add_to_unlink_list, do_unlink_list, + free_unlink_list): New function to manage unlink_list. + * recover-src/extract_list.c (check_file_overwite): Check all + component of an EXTRACT_LIST_ITEM, if a component is not a + directory, add it to the unlink_list. + * recover-src/extract_list.c (extract_files): Call do_unlink_list and + free_unlink_list, rename buf to cwd. + +2006-07-10 Jean-Louis Martineau + * common-src/pipespawn.c (pipespawnv_passwd): Add prototype. + * common-src/pipespawn.c (pipespawn, pipespawn): Remove 2 NULL + parameters to the pipespawnv_passwd call. + * common-src/pipespawn.c (pipespawnv_passwd): Remove passwdvar and + passwdfd parameters, add passwdvar and local variable. + Don't use memcpy to set passwdfd. + * common-src/pipespawn.h (pipespawnv_passwd): Remove prototype. + +2006-07-07 Jean-Louis Martineau + * common-src/security-util.c (stream_read_sync_callback): Remove bogus + call of callback. + +2006-07-07 Kevin Till + * common-src/bsd-security.c: use STREAM_BUFSIZE instead of -1 + * common-src/bsdtcp-security.c: ditto + * common-src/krb4-security.c: ditto + * common-src/security-util.c: ditto + * restore-src/amidxtaped.c: ditto + +2006-07-07 Jean-Louis Martineau + * common-src/util.c (get_conftoken): Remove duplicate conftoken_ungetc. + +2006-07-07 Jean-Louis Martineau + * common-src/security-util.c: Validate and report big packet size. + +2006-07-07 Jean-Louis Martineau + * oldrecover-src/Makefile.am: Typo. + +2006-07-07 Jean-Louis Martineau + * client-src/sendsize.c: Typo. + +2006-07-06 John Franks + * common-src/genversion.c: + Remove reference to error(). This causes a compile + error on cygwin. + +2006-07-06 Jean-Louis Martineau + Klocwork bug 128, 170, 182, 470, 517 + * changer-src/chg-scsi.c: Validate drivenum, check count_file. + * client-src/sendsize.c: Validate level. + * oldrecover-src/amrecover.c: Use tm. + * recover-src/amrecover.c: Use tm. + * server-src/infofile.c (delete_txinfofile): Use local variable. + +2006-07-06 Jean-Louis Martineau + * server-src/taper.c: Check for cur_filename. + * tape-src/output-file.c: Use vstrextend. + * tape-src/tapeio.c: Check for r. + +2006-07-06 Jean-Louis Martineau + Fix splint warning + * oldrecover-src/extract_list.c (clean_tape_list): Cleanup for splint. + * recover-src/extract_list.c (clean_tape_list): Cleanup for splint. + * server-src/amindexd.c: Add a /*@i@*/. + * server-src/conffile.c: Cast to off_t for conf_init_am64. + * server-src/driver.c: Cast to unsigned to print pid_t. + * server-src/find.c (strip_failed_chunks): Cleanup for splint. + +2006-07-06 Jean-Louis Martineau + Klocwork bug 114 + * server-src/amindexd.c: Free their_feature_string. + Klocwork bug 130 + * restore-src/amrestore.c: Test maximum value for rst_flags->blocksize. + Klocwork bug 294 + * common-src/genversion.c: Check NULL result of malloc. + Klocwork bug 294 + * client-src/selfcheck.c: Check NULL result of fdopen. + Klocwork bug 539, 542 + * oldrecover-src/extract_list.c: Fix pfn2->next = fn2. + * recover-src/extract_list.c : Ditto + Klocwork bug 268, 272, 543, 544 + * oldrecover-src/extract_list.c: Check for cmd != NULL. + * recover-src/extract_list.c : Ditto + Klocwork bug 510 + * restore-src/amidxtaped.c: Check for argv != NULL. + Klocwork bug 435 + * changer-src/scsi-linux.c: Make buffer one larger. + Klocwork bug 520 + * changer-src/scsi-changer-driver.c (OpenDevice): Validate parameters. + Klocwork bug 182 + * changer-src/chg-scsi.c (clean_tape): Check usagetime != NULL. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 551 + * regex-src/regcomp.c (allocset): Check for p->g->sets + and p->g->setbits + +2006-07-05 Jean-Louis Martineau + Klocwork bug 169, 170, 181 + * changer-src/chg-scsi.c: Validate input. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 282 + * common-src/file.c (rmpdir): Check for p == NULL. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 524 + * common-src/dgram.c (dgram_send_addr): Set addr_save earlier. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 495 + * server-src/taper.c (file_reader_side): Maximum value for + fallback_splitsize. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 532 + * recover-src/display_commands.c: Check for cmd != NULL. + * oldrecover-src/display_commands.c: Ditto + +2006-07-05 Jean-Louis Martineau + Klocwork bug 410 + * restore-src/restore.c (restore): Check for tmp_filename. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 234 + * server-src/driver.c: Check for h and activehd >= 0. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 338 and 390 + * server-src/reporter.c (handle_partial, handle_strange): Check result + of handle_success. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 558 + * client-src/selfcheck.c (check_options, check_disk): Check for + calcprog == NULL + +2006-07-05 Jean-Louis Martineau + Klocwork bug 521 + * client-src/clientconf.c (add_client_conf): Check result of realloc. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 447 and 449 + * restore-src/restore.c: Check for valid sendbackup request. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 407 + * restore-src/restore.c (restore): Set statinfo.st_size. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 189 + * common-src/file.c (sanitise_filename): Never return NULL. + +2006-07-05 Jean-Louis Martineau + * amandad-src/Makefile.am: Remove tape-src and libamtape. + * client-src/Makefile.am: Remove tape-src and libamtape. + * man/Makefile.am: Cleanup. + * oldrecover-src/Makefile.am: Remove tape-src and libamtape. + * recover-src/Makefile.am: Remove tape-src and libamtape. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 236 + * server-src/driver.c (handle_dumper_result): Check for + dumper->ev_read != NULL. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 553 + * restore-src/restore.c (search_a_tape): Check for desired_tape == NULL. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 556 and 557 + * common-src/security-util.c (bsd_recv_security_ok): Check result of + strtok, check service == NULL. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 161 + * client-src/calcsize.c (calc_load_file): Return NULL if fopen fail. + * client-src/calcsize.c (main): check NULL result from calc_load_file. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 84 + * server-src/amflush.c (main): Check return of lookup_disk. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 62, 85, 459, 463, 466, 469, 555, 559 + * common-src/security-util.c: Check result of fdopen. + * client-src/sendsize.c : Ditto. + * server-src/amcheck.c : Ditto. + * server-src/amflush.c : Ditto. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 159, 375, 377, 379, 508, 509, 513, 519 + * common-src/bsd-security.c: Replace malloc by alloc. + * common-src/bsdudp-security.c: Ditto + * common-src/genversion.c: Ditto + * recover-src/amrecover.c: Ditto + * restore-src/amidxtaped.c: Ditto + * server-src/reporter.c: Ditto + +2006-07-05 Jean-Louis Martineau + Klocwork bug 562 and 475 + * recover-src/set_commands.c (cd_dir): Check result of rindex. + * oldrecover-src/set_commands.c (cd_dir): ditto. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 552 + * restore-src/restore.c (load_manual_tape): Alloc space for cur_tapedev. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 406 + * restore-src/restore.c (restore): Check for final_filename. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 318 + * server-src/list_dir.c (add_dir_list_item): Check for cur_list->next. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 17, 32 + * server-src/amadmin.c (disklist_one): Check localtime return NULL. + * server-src/amadmin.c (info_one) : Ditto. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 2, 83, 128, 384, 478, 504, 505, 506, 517, 566, 567 + * server-src/amadmin.c (seqdatestr): Check localtime return NULL. + * common-src/util.c (construct_datestamp, construct_timestamp, + conf_print): Ditto. + * oldrecover-src/amrecover.c (main): Ditto. + * oldrecover-src/uscan.l (ll_parse_date): Ditto. + * recover-src/amrecover.c (main): Ditto. + * recover-src/uscan.l (ll_parse_date): Ditto. + * server-src/amflush.c (main): Ditto. + * server-src/reporter.c (handle_success): Ditto. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 470 + * client-src/sendsize.c (add_diskest): Check for level value. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 372 + * server-src/reporter.c (nicedate): Check month value. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 20 + * server-src/amadmin.c (tape): Limit nb_days to 10000. + +2006-07-05 Jean-Louis Martineau + Klocwork bug 21 + * server-src/amadmin.c (balance): Test 'later' after it is set. + +2006-07-05 Jean-Louis Martineau + * common-src/alloc.c (internal_vstralloc): Don't return NULL. + +2006-07-05 Jean-Louis Martineau + * server-src/infofile.c (open_txinfofile): Use local variable. + +2006-06-29 Jean-Louis Martineau + * restore-src/restore.c (label_of_current_slot): Close the tapefd if + the label mismatch. + +2006-06-29 Jean-Louis Martineau + * server-src/find.c (strip_failed_chunks): + - Get a **output_find as parameter. + - Check the label before remove a valid chunk. + - Memory management fix. + +2006-06-28 Jean-Louis Martineau + * common-src/security-util.c: Improve message for .amandahosts. + +2006-06-27 Ian Turner + * common-src/fileheader.c: Fix a bug where spanned dumps would + always fail. + +2006-06-27 Jean-Louis Martineau + * server-src/amcheck.c: Fix test for holdingdisk negative size. + +2006-06-27 Jean-Louis Martineau + * configure.in: Don't set DEFAULT_TAPE_DEVICE if it is not set. + * client-src/clientconf.c: Work DEFAULT_TAPE_DEVICE not set. + * common-src/genversion.c: Work DEFAULT_TAPE_DEVICE not set. + * recover-src/amrecover.c: Work DEFAULT_TAPE_DEVICE not set. + * server-src/getconf.c: Work DEFAULT_TAPE_DEVICE not set. + +2006-06-27 Jean-Louis Martineau + Patch by Paul Bijnens + * server-src/amcheck.c: Check for access(hdp->diskdir, X_OK). + +2006-06-27 Jean-Louis Martineau + * server-src/conffile.c (getconf_byname): Check for kt->keyword != NULL. + * client-src/clientconf.c (client_getconf_byname): Ditto + +2006-06-22 Jean-Louis Martineau + * recover-src/extract_list.c: check_file_overwite. + +2006-06-22 Jean-Louis Martineau + * recover-src/extract_list.c: Do the cleanup of the extract list + at the extraction time + * oldrecover-src/extract_list.c: Ditto. + +2006-06-22 Jean-Louis Martineau + * NEWS: Add new features. + * ReleasesNotes: New files. + +2006-06-22 Jean-Louis Martineau + * docs/Makefile.am (pkgdata_DATA): Add amaespipe.8.txt amcrypt.8.txt + amcrypt-asym-ossl.8.txt amcrypt-ossl.8.txt amfetchdump.8.txt + * docs/amaespipe.8.txt: New file. + * docs/amcrypt.8.txt: New file. + * docs/amcrypt-asym-ossl.8.txt: New file. + * docs/amcrypt-ossl.8.txt: New file. + * docs/amfetchdump.8.txt: New file. + +2006-06-22 Jean-Louis Martineau + * docs/Makefile.am (pkgdata_DATA): Add howto-auth.txt. + * docs/howto-auth: Documentation on auth. + * docs/*.txt: Update from xml-docs + +2006-06-22 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: Add notes about bsdudp and bsdtcp. + * man/xml-source/amanda-client.conf.5.xml: Ditto. + +2006-06-22 Jean-Louis Martineau + * recover-src/extract_list.c (is_empty_dir): New function. + * recover-src/extract_list.c: Print a warning if cwd is not empty. + +2006-06-22 Jean-Louis Martineau + * server-src/amadmin.c: Allow 'p' and 'P' in --sort argument. + +2006-06-22 Jean-Louis Martineau + * server-src/amadmin.c: Print errstr returned by match_disklist. + * server-src/amcheck.c: Print errstr returned by match_disklist. + * server-src/amflush.c: Print errstr returned by match_disklist. + * server-src/diskfile.c (match_disklist): Return an error str. + * server-src/diskfile.h (match_disklist): New prototype. + * server-src/planner.c: Print errstr returned by match_disklist. + * server-src/reporter.c: Accept host/disk as arguments. + +2006-06-22 Jean-Louis Martineau + * server-src/amindexd.c (uncompress_file): Set LC_ALL=C before + executing sort. + +2006-06-22 Jean-Louis Martineau + * server-src/driver.c (wait_children, kill_children): New function. + * server-src/driver.c (wait_for_children): Use wait_children and + kill_children. + * server-src/driver.c (main): Use wait_children. + * server-src/driverio.c (taper_cmd, chunker_cmd): Close socket on QUIT + or ABORT command. + +2006-06-22 Jean-Louis Martineau + * common-src/amfeatures.c (am_init_feature_set): Set + fe_amrecover_feedme_tape. + * common-src/amfeatures.h (fe_amrecover_feedme_tape): New amfeatures. + * common-src/fileheader.c (print_header): Fix. + * recover-src/extract_list.c: Use fe_amrecover_feedme_tape. + * restore-src/amfetchdump.c: Print error if get_lock == 0. + * restore-src/amidxtaped.c: Call send_message if get_lock == 0. + * restore-src/restore.c: Split search_tapes in 5 functions. + * restore-src/restore.h (send_message): prototype. + +2006-06-22 Jean-Louis Martineau + * man/xml-source/amfetchdump.8.xml: Document -O and new -o. + * restore-src/amfetchdump.c: Replace -o by -O + +2006-06-22 Jean-Louis Martineau + * client-src/clientconf.c (parse_client_conf): Fix segmentation fault. + * server-src/conffile.c (parse_server_conf): Fix segmentation fault. + +2006-06-21 Kevin Till + * changer-src/chg-juke.sh.in + * changer-src/chg-manual.sh.in + * changer-src/chg-mcutil.sh.in + * changer-src/chg-multi.sh.in + * changer-src/chg-mtx.sh.in + * changer-src/chg-rait.sh.in + * changer-src/chg-disk.sh.in + * changer-src/chg-zd-mtx.sh.in + * changer-src/chg-null.sh.in + * changer-src/chg-chs.sh.in + * client-src/patch-system.sh.in + * amplot/amplot.sh.in + * server-src/amcrypt-ossl.sh.in + * server-src/amrmtape.sh.in + * server-src/amcleanup.sh.in + * server-src/amverifyrun.sh.in + * server-src/amaespipe.sh.in + * server-src/amdump.sh.in + * server-src/amcrypt.sh.in + * server-src/amcrypt-ossl-asym.sh.in + * server-src/amcheckdb.sh.in + * server-src/amfreetapes.sh.in + * server-src/amverify.sh.in + change /bin/sh to @SHELL@ for configure to pick up the correct + shell. Sourceforge bug 1466655 + * man/xml-source/amcrypt-ossl-asym.8.xml: it's backup-privkey.pem + +2006-06-20 Kevin Till + * common-src/security-util.c: ignore EINTR in net_writev + patch by Jean-Louis Martineau. + +2006-06-20 John Franks + * server-src/conffile.c: + Remove Duplicate keyword table entries and alphabetize + to make future duplicates easier to spot... + + * server-src/taper.c: + Fix compiler warnings when no mmap function is present. + +2006-06-20 John Franks + * server-src/diskfile.c: + Default boolean values without parameters to yes if + no value is present in configuration file. This + maintains backward compatibility and is logical since + a value such as "index" reads as an assertion of fact. + +2006-06-19 Jean-Louis Martineau + * docs/wishlist.txt: Remove features done in 2.5.0/2.5.1 + +2006-06-19 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: amrecover_check_label and + amrecover_do_fsf default to yes. + * server-src/conffile (init_dumptype_defaults): DUMPTYPE_INDEX set to 1. + * server-src/diskfile.c (parse_diskline): index set from + dumptype_get_index. + +2006-06-16 Jean-Louis Martineau + * server-src/amstatus.pl.in: Match quotes in DONE line. + +2006-06-16 Kevin Till + * example/amanda-client.conf.in: + correct DEFAULT_TAPE_SERVER/DEFAULT_SERVER + * server-src/amcrypt-ossl-asym.sh.in: + set RANDFILE for openssl to place entropy file. + * server-src/amcrypt-ossl.sh.in: ditto + +2006-06-16 Jean-Louis Martineau + * amandad-src/amandad.c : Use strcasecmp to compare auth. + * client-src/selfcheck.c : Ditto + * client-src/sendbackup.c : Ditto + * restore-src/amidxtaped.c: Ditto + * server-src/amindexd.c : Ditto + +2006-06-16 Jean-Louis Martineau + * server-src/amindexd.c (reply, lreply, fast_lreply): Correct use + of arglist_start and arglist_end.. + * server-src/amindexd.c (lreply_backend): Remove function. + +2006-06-16 Jean-Louis Martineau + * common-src/bsd-security.c (stream_read_callback): Send error to the + callback. + +2006-06-16 Jean-Louis Martineau + * recover-src/extract_list.c: Typo. + * restore-src/restore.c: Typo. + +2006-06-16 Jean-Louis Martineau + * client-src/clientconf.c: Allow include. + * client-src/clientconf.c (read_confline): Don't crash. + * server-src/conffile.c (read_confline): Don't crash. + * recover-src/amrecover.c: Exit if error in conf file. + +2006-06-16 Jean-Louis Martineau + * common-src/arglist.h: Typo. + * recover-src/extract_list.c: handle MESSAGE from amidxtaped. + +2006-06-16 Jean-Louis Martineau + * common-src/amfeatures.c (am_init_feature_set): Set + fe_amrecover_message. + * common-src/amfeatures.h (am_feature_e): Add fe_amrecover_message. + * common-src/arglist.h (printf_arglist_function3): Prototype. + +2006-06-16 Jean-Louis Martineau + * restore-src/restore.c (send_message): New function that send message + to stderr and/or amrecover. + * restore-src/restore.c: Call send_message on some error path. + +2006-06-16 Jean-Louis Martineau + * common-src/event.c (event_loop_wait, event_wait): Take an + event_handle_t * as parameter. + * common-src/event.h: New prototype. + * common-src/bsd-security.c: Call event_wait(bs->ev_read). + * common-src/krb4-security.c: Call event_wait(ks->ev_read). + * common-src/krb5-security.c: Call event_wait(ks->ev_read). + * common-src/security-util.c: Call event_wait(ss->ev_read). + +2006-06-15 Kevin Till + * man/xml-source/amcrypt-ossl-asym.8.xml: it's .am_passphrase + * server-src/amcrypt-ossl-asym.sh.in: export PATH + * server-src/amcrypt-ossl.sh.in: export PATH + + +2006-06-15 Jean-Louis Martineau + * server-src/amcheck.c: -w doesn't change the test selection. + * man/xml-source/amcheck.8.xml + +2006-06-15 Jean-Louis Martineau + * server-src/planner.c: Log empty disklist and no DLE selected. + +2006-06-14 Jean-Louis Martineau + * common-src/bsd-security.c: Use %u to print in_port_t data. + * common-src/bsdudp-security.c: Ditto. + +2006-06-14 Jean-Louis Martineau + * changer-src/chg-disk.sh.in: Return the number of slot in output of + the -info command. + * changer-src/chg-zd-mtx.sh.in: Ditto. + +2006-06-14 Jean-Louis Martineau + * changer-src/chg-zd-mtx.sh.in: Accept changerfile that already + have the .conf suffix. + +2006-06-13 Jean-Louis Martineau + * amandad-src/amandad.c (s_ackwait): Resend the REP on receive of a + duplicate REQ. + +2006-06-13 Jean-Louis Martineau + * common-src/security-util.c (bsd_recv_security_ok): Set error only + if we get an error. + +2006-06-12 Jean-Louis Martineau + * server-src/driver.c: usetimestamps is a warning. + +2006-06-12 Kevin Till + * common-src/security-util.c: if host is 127.0.0.1 and either + localhost or localhost.domain is in .amandahost, hostmatch passes. + * common-src/security-util.h: update check_user_amandahosts prototype + +2006-06-12 Jean-Louis Martineau + * amandad-src/amandad.c (process_writenetfd): Close the pipe if the + security_stream is closed. + * recover-src/extract_list.c: Improve message if we don't get thei + FEATURE line from amidxtaped. + +2006-06-12 Jean-Louis Martineau + * recover-src/amrecover.c: Read amanda-client.conf and + /amanda-client.conf. + +2006-06-12 Jean-Louis Martineau + * common-src/security-util.c, common-src/tapelist.c, + restore-src/restore.c, server-src/amcheck.c, server-src/amindexd.c, + server-src/amtape.c, server-src/changer.c, server-src/driver.c, + server-src/planner.c, server-src/taper.c, + server-src/taperscan.c: Fix memory leak. + +2006-06-12 Jean-Louis Martineau + * restore-src/restore.c: Fix Adding at end of list. + +2006-06-12 Jean-Louis Martineau + * server-src/taper.c (syncpipe_putstr): Don't crash if str is NULL. + +2006-06-09 Jean-Louis Martineau + * server-src/holding.c (pick_datestamp): Fix reading user input. + +2006-06-09 Jean-Louis Martineau + * recover-src/amrecover.c (sigint_handler): Call send_command only if + amindexd is alive. + +2006-06-09 Jean-Louis Martineau + * common-src/util.c (connect_port): ETIMEDOUT is a fatal error. + +2006-06-09 Jean-Louis Martineau + * common-src/stream.c (stream_client_internal): Get errno set + correctly. + * server-src/driver.c (handle_chunker_result): Don't assert(0) on + receive of a TRYAGAIN from a chunker, but set + chunker->result. + * server-src/dumper.c: Try gethostbyname("localhost") before calling + stream_client and log appropriate message. + +2006-06-09 Jean-Louis Martineau + * server-src/amcheck.c: Report ERROR if gethostbyname("localhost") + doesn't succeed. + +2006-06-08 Jean-Louis Martineau + * client-src/clientconf.c (add_client_conf): New function to map + normal option to their + -o equivalent. + * client-src/clientconf.h (add_client_conf): Prototype. + * man/xml-source/amrecover.8.xml: Document -o. + * recover-src/amrecover.c: Also read /amanda-client.conf + +2006-06-08 Jean-Louis Martineau + * server-src/diskfile.c (parse_diskline): Only return 0 or -1. + +2006-06-08 Jean-Louis Martineau + * amandad-src/amandad.h (g_option_t): Add auth. + * amandad-src/amandad_util.c (init_g_options): Set auth to NULL. + * amandad-src/amandad_util.c (parse_g_options): Parse auth. + * amandad-src/amandad_util.c (free_g_options): Free auth. + * client-src/sendbackup.c: Get amandad_auth from command line and + compare with REQ packet. + * common-src/amfeatures.h (fe_amindexd_options_hostname, + fe_amindexd_options_features, + fe_amindexd_options_auth, + fe_amidxtaped_options_hostname, + fe_amidxtaped_options_features, + fe_amidxtaped_options_auth): New amfeatures. + * common-src/amfeatures.c (am_init_feature_set): Set new amfeatures. + * recover-src/amrecover.c: Send auth in OPTIONS of req packet. + * recover-src/extract_list.c: Send auth in OPTIONS of req packet. + * restore-src/amidxtaped.c: Parse amandad_auth from command line. + Get auth from OPTIONS line. + Compare them. + * server-src/amindexd.c: Parse amandad_auth from command line. + Get auth from OPTIONS line. + Compare them. + +2006-06-08 Jean-Louis Martineau + * common-src/util.c(connect_port): Return -2 on ECONNREFUSED error + from connect. + +2006-06-07 Jean-Louis Martineau + * amandad-src/amandad.c: exec the service with the auth as parameter. + * amandad-src/amandad.c(writebuf): Do no close fd. + * client-src/selfcheck.c: Read the auth for the command line and + compare with the option string. + * client-src/selfcheck.c(main): Do no close 0,1,2 fd. + +2006-06-07 Jean-Louis Martineau + * man/xml-source/amanda.8.xml(CONFIGURATION OVERWRITE): New section. + * man/xml-source/amadmin.8.xml, man/xml-source/amcheck.8.xml, + man/xml-source/amdump.8.xml, man/xml-source/amflush.8.xml, + man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml, + man/xml-source/amreport.8.xml, + man/xml-source/amrestore.8.xml: Add -o option. + +2006-06-07 Jean-Louis Martineau + * common-src/util.c(get_conftoken): Merge from zmanda. + +2006-06-07 Jean-Louis Martineau + * common-src/util.c(get_conftoken): Remove a conftoken_ungetc. + +2006-06-07 Jean-Louis Martineau + * common-src/bsd-security.c (stream_read_callback): Merge with zmanda. + +2006-06-07 Jean-Louis Martineau + * amandad-src/amandad.c(process_writenetfd): Call security_stream_read + only if size > 0. + +2006-06-07 Jean-Louis Martineau + * server-src/conffile.c (lookup_interface): Fix merge error. + +2006-06-07 John Franks + * common-src/amanda.h: + Fix isnormal() replacement macro to indirectly + check if a floating point value is != 0.0. + This prevents compiler warnings. + +2006-06-07 John Franks + * common-src/util.c + Put in "/* NOTREACHED */" comments after error() calls. + * server-src/diskfile.c + Change disktype index default to yes for backward compatibility. + +2006-06-06 John Franks + * amandad-src/amandad.c common-src/bsd-security.c: + Correct fix for infinite amandad loop. + +2006-06-06 John Franks + * common-src/stream.c common-src/util.c: + Lint clean again. + * server-src/conffile.c: + Remove replicated line + +2006-06-06 Jean-Louis Martineau + * common-src/util.c (conftoken_ungetc): Return the character. + * common-src/util.c (get_conftoken): Merge to allow escape character. + * common-src/util.c (read_block): Allow STRING as IDENT. + * server-src/conffile.c (getconf_long, getconf_size): New function. + * server-src/conffile.c: Cleanup after Merge. + +2006-06-06 Jean-Louis Martineau + * server-src/amadmin.c, server-src/amcheck.c, server-src/amflush.c, + server-src/amlabel.c, server-src/amlogroll.c, server-src/amtrmidx.c, + server-src/amtrmlog.c, server-src/getconf.c, + server-src/reporter.c: Usage -o + * server-src/amflush.c, server-src/amlogroll.c, server-src/amtrmidx.c, + server-src/amtrmlog.c, server-src/chunker.c, server-src/driver.c, + server-src/dumper.c, server-src/getconf.c, server-src/planner.c, + server-src/reporter.c, + server-src/taper.c: Add call to report_bad_conf_arg. + * server-src/conffile.c(get_comprate, get_compress): Parse CONF_END. + +2006-06-06 John Franks + * configure.in: + Increase checking level from 1 to 2 for SUN lint. + * client-src/amandates.c client-src/clientconf.c + common-src/security-util.c recover-src/amrecover.c + recover-src/extract_list.c regex-src/regcomp.c server-src/amcheck.c + server-src/amlabel.c server-src/chunker.c server-src/conffile.c + server-src/conffile.h server-src/diskfile.c server-src/diskfile.h + server-src/driver.c server-src/holding.c server-src/reporter.c + server-src/tapefile.c server-src/taper.c tape-src/amdd.c: + Lint clean again. + * common-src/util.h common-src/util.c: + Lint clean again. + Add missing conftype size. + * common-src/bsd-security.c + Fix infinte loop which consumes all /tmp space and 1/2 + the CPU time when EOF is reached on socket. + +2006-06-05 Paddy Sreenivasan + * common-src/util.c: Fix warning + +2006-06-05 Jean-Louis Martineau + * restore-src/amfetchdump.c, server-src/amcheck.c, + server-src/amcheckdb.sh.in, server-src/amcleanup.sh.in, + server-src/amdump.sh.in, server-src/amflush.c, + server-src/amlabel.c, server-src/amlogroll.c, + server-src/amtrmidx.c, server-src/amtrmlog.c, + server-src/chunker.c, server-src/conffile.c, + server-src/diskfile.c, server-src/driver.c, + server-src/driverio.c, server-src/dumper.c, + server-src/getconf.c, server-src/planner.c, + server-src/reporter.c, server-src/taper.c, + server-src/taperscan.c: Allow -o options and some memory fix. + * server-src/conffile.c(lookup_dumptype, lookup_tapetype, + lookup_interface): Use strcasecmp. + +2006-06-02 Jean-Louis Martineau + * common-src/stream.c (stream_client_internal): Use connect_portrange. + * common-src/util.c (connect_portrange): First, try to connect with a + port already used. + * common-src/util.c (connect_port): Try to connect with a specific port. + * common-src/util.h: Cleanup. + +2006-06-02 Jean-Louis Martineau + * server-src/reporter.c: Remove empty if. + +2006-06-02 Jean-Louis Martineau + * common-src/util.c (read_block): Don't read CONF_NL aftre the '{'. + * server-src/conffile.c(get_holdingdisk, get_tapetype, get_interface): + Read a CONF_NL after the call to read_block. + * server-src/conffile.c(read_dumptype): Read a CONF_NL if we are not + called from diskfile. + * server-src/diskfile.c: Don't loop on empty line after read_dumptype. + +2006-06-01 Kevin Till + * server-src/amcrypt-ossl.sh.in: symmetric encrypt script using openSSL. + Thanks to Ben Slusky. + * server-src/amcrypt-ossl-asym.sh.in: public-ley encrypt script using openSSL. + * man/xml-source/amcrypt-ossl.8.xml: man page + * man/xml-source/amcrypt-ossl-asym.8.xml: man page + * configure.in: ditto + * man/Makefile.am: ditto + * man/entities/global.entities: ditto + * server-src/Makefile.am: ditto + +2006-06-01 John Franks + Eliminate Cygwin compile warnings. + * client-src/getfsent.c: Quiet unused parameter warnings. + * client-src/selfcheck.c: Quiet unused parameter warnings. + * common-src/security-util.h: Make hostname const char *. + +2006-06-01 Jean-Louis Martineau + * server-src/amcheck.c: holdingdisk_get_disksize() return an off_t. + * server-src/find.c: result should be ssize_t. + +2006-06-01 Jean-Louis Martineau + * common-src/amanda.h: Remove am64_t. + * client-src/clientconf.c, client-src/clientconf.h, common-src/util.c, + common-src/util.h, server-src/conffile.c, server-src/conffile.h: + Second pass of config cleanup, add function to parse -o argument. + * recover-src/amrecover.c: -o command argument. + * restore-src/restore.c: Use off_t instead of am64_t. + * server-src/amadmin.c: New config subcommand. -o command argument. + * server-src/amlabel.c: Fix memory leak. + * server-src/diskfile.c: Fix memory leak. + * server-src/diskfile.h: Rename no_hold to to_holdingdisk. + * server-src/driver.c: Many. + * server-src/planner.c: am64_t to off_t. + +2006-06-01 Jean-Louis Martineau + This is the first pass of a general rewrite of configuration file + parsing, It will now use array to store all options. + + * client-src/clientconf.c: + * client-src/clientconf.h: + * server-src/conffile.c: + * server-src/conffile.h: + * common-src/util.c: Many new functions. + * common-src/util.h: + + * restore-src/amidxtaped.c, server-src/amcheck.c, + server-src/amcleanupdisk.c, server-src/amlabel.c, + server-src/diskfile.c, server-src/driver.c, server-src/driverio.c, + server-src/find.c, server-src/holding.c, server-src/planner.c, + server-src/reporter.c, + server-src/taper.c: Use new macro to get configuration option. + +2006-06-01 Jean-Louis Martineau + * amandad-src/amandad.c, client-src/amandates.c, client-src/noop.c, + client-src/selfcheck.c, client-src/sendsize.c, + common-src/bsd-security.c, common-src/bsdtcp-security.c, + common-src/bsdudp-security.c, common-src/fileheader.c, + common-src/rsh-security.c, common-src/security-util.c, + common-src/security-util.h, common-src/ssh-security.c, + recover-src/extract_list.c, server-src/amcheck.c, + server-src/amindexd.c, server-src/amlogroll.c, + server-src/diskfile.c, server-src/driver.c, server-src/dumper.c, + server-src/find.c, server-src/logfile.c, server-src/planner.c, + server-src/reporter.c, + server-src/tapefile.c: Fix memory and fd leak. + +2006-06-01 Jean-Louis Martineau + * server-src/find.c (search_holding_disk): Take the datestamp from the + file, not the directory name, otherwise usetimestamps=no doesn't + work. + +2006-06-01 Jean-Louis Martineau + * common-src/stream.c (stream_server): New priv parameter if we want + a reserved port. Don't try to + get a reserved port if priv==0. + * common-src/stream.h (stream_server): New prototype. + * common-src/bsd-security.c: Call stream_server with priv==0. + * common-src/krb4-security.c: Call stream_server with priv==1. + * common-src/security-util.c: Call stream_server with priv==0. + * restore-src/amidxtaped.c: Call stream_server with priv==0. + * server-src/chunker.c: Call stream_server with priv==0. + * server-src/taper.c: Call stream_server with priv==0. + +2006-06-01 Jean-Louis Martineau + * server-src/diskfile.c: Return -1 if open of diskfile failed. + * server-src/driver.c: Change message if didn't get a DATE line. + * server-src/reporter.c: Ignore faillure in reading amanda.conf + disklist and tapelist. + +2006-05-29 Jean-Louis Martineau + * man/xml-source/amanda.8.xml: Documents service in .amandahosts. + +2006-05-29 Jean-Louis Martineau + Previous patch doesn't work because 'make -j2' will use fd 3. + * amandad-src/Makefile.am: Use a temporary file for output of + 'make listlibsrc'. + * changer-src/Makefile.am: Ditto. + * client-src/Makefile.am: Ditto. + * common-src/Makefile.am: Ditto. + * oldrecover-src/Makefile.am: Ditto. + * recover-src/Makefile.am: Ditto. + * restore-src/Makefile.am: Ditto. + * server-src/Makefile.am: Ditto. + * tape-src/Makefile.am: Ditto. + +2006-05-29 Jean-Louis Martineau + * amandad-src/Makefile.am: 'make listlibsrc' send it's ouput to fd 3. + * changer-src/Makefile.am: Ditto. + * client-src/Makefile.am: Ditto. + * common-src/Makefile.am: Ditto. + * oldrecover-src/Makefile.am: Ditto. + * recover-src/Makefile.am: Ditto. + * restore-src/Makefile.am: Ditto. + * server-src/Makefile.am: Ditto. + * tape-src/Makefile.am: Ditto. + +2006-05-28 Paddy Sreenivasan + * tape-src/tapeio.c : Fixed warnings + * tape-src/output-rait.c : Fixed warnings + * tape-src/output-null.c : Fixed warnings + * tape-src/output-file.c : Fiexed warnings + * recover-src/amrecover.c: Fixed warnings + * recover-src/extract_list.c : Fixed warnings + * server-src/amadmin.c : Fixed warnings + * server-src/driver.c : Fixed warnings + * server-src/infofile.c : Fixed warnings + +2006-05-26 Jean-Louis Martineau + * server-src/conffile.c (read_dumptype): Parse SSH_KEYS. + +2006-05-26 Jean-Louis Martineau + * common-src/security-util.c (udp_inithandle): Remove bad merge. + * server-src/amindexd.c: Improve error message. + * server-src/planner.c: Add a space in output. + +2006-05-26 Jean-Louis Martineau + * server-src/conffile.c: Set dpcur.no_hold correctly, + Fix for conffile program. + +2006-05-26 Jean-Louis Martineau + Allow many services to share the same tcp connection for + bsdtcp/ssh/rsh. + Add a security_close_connection to the security-api. + * amandad-src/amandad.c (wait_30s, exit_on_qlength): New variable to + control auth specific behaviour. + * common-src/bsd-security.c: Add sec_close_connection_none. + * common-src/bsdudp-security.c: Add sec_close_connection_none. + * common-src/krb4-security.c: Add sec_close_connection_none. + * common-src/krb5-security.c: Add sec_close_connection_none. + * common-src/security.h (security_close_connection): Prototype. + * common-src/security-util.h (sec_close_connection_none, + tcpm_close_connection): Prototype. + * common-src/security-util.h (struct tcp_conn): Add toclose. + * common-src/security-util.h (struct sec_stream): Add closed_by_me and + closed_by_network. + * common-src/security-util.c (sec_close_connection_none, + tcpm_close_connection): New function. + * common-src/security-util.c: Handle many services on one connection. + * common-src/bsdtcp-security.c: Handle many services on one connection. + * common-src/rsh-security.c: Handle many services on one connection. + * common-src/ssh-security.c: Handle many services on one connection. + * recover-src/amrecover.c: Add call security_close_connection. + * recover-src/extract_list.c: Add call security_close_connection. + * server-src/amcheck.c: Add call security_close_connection. + * server-src/dumper.c: Add call security_close_connection. + +2006-05-26 Jean-Louis Martineau + * common-src/security-util.c (bsd_prefix_packet): We need the username + of the getuid() user. + +2006-05-26 Jean-Louis Martineau + * common-src/fileheader.c: Parse datestamp on F_TAPEEND. + * restore-src/amrestore.c: Set read_result to the result of + read_file_header. + * restore-src/restore.c (read_file_header): Return a ssize_t. + Rename bytes_read by read_result. + Set read_result to the result of read_file_header. + * restore-src/restore.h (read_file_header): New prototype. + +2006-05-25 Jean-Louis Martineau + * server-src/taperscan.c: Replace bogus newvstralloc by vstrextend. + +2006-05-25 Jean-Louis Martineau + * client-src/getfsent.c (print_entry): Add prototype. + * common-src/token.c (main): Shut up compiler warning. + * server-src/infofile.c (dump_rec, dump_db): Add prototype. + +2006-05-25 Jean-Louis Martineau + * amandad-src/amandad.c, common-src/bsd-security.c, + common-src/bsdtcp-security.c, common-src/bsdudp-security.c, + common-src/event.c, common-src/krb5-security.c, + common-src/protocol.c, common-src/rsh-security.c, + common-src/security-util.c, common-src/ssh-security.c, + common-src/util.c, server-src/driver.c: comment debugging. + +2006-05-25 Jean-Louis Martineau + * common-src/security-util.c: typo. + * server-src/amcheck.c: Make sure all check are done. + +2006-05-25 Jean-Louis Martineau + Fix for program not compiled by default. + make bsdsecurity still not compile. + * common-src/bsd-security.c(bind_portrange): prototype change. + * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add match.o. + * server-src/conffile.c: Many typo. + * tape-src/tapeio.c: Use OFF_T_FMT and SSIZE_T_FMT when needed, typo. + +2006-05-25 Jean-Louis Martineau + * common-src/fileheader.c (validate_datestamp): Works for 8 characters + datestamp. + * common-src/security-util.c (tcpm_send_token): netlength must be + uint32_t. + * common-src/security-util.c (bsd_prefix_packet): Fix typo. + * common-src/util.c (get_time): Don't do computation for starttime. + * server-src/conffile.c (read_dumptype): Do computation for starttime. + +2006-05-25 Jean-Louis Martineau + * common-src/krb5-security.c (krb5_sendpkt, krb5_stream_read_sync, + recv_token): Return ssize_t. + * common-src/krb5-security.c (krb5_accept, krb5_stream_accept,i + krb5_stream_auth): Shut up compiler. + * tape-src/output-file.c: Use SSIZE_MAX instead of SSIZE_T_MAX. + +2006-05-25 Jean-Louis Martineau + * configure.in(AM_INIT_AUTOMAKE): Fix. + +2006-05-25 John Franks + Pass user CFLAGS correctly to machine generated code and do not + enforce code quality checks on them. + * configure.in: + Put compiler code check flags into existing, but previously + unused, AM_CFLAGS for Makefiles to pick up. CFLAGS should + now only contain mandatory flags. + + * recover-src/Makefile.am oldrecover-src/Makefile.am: + Use CFLAGS for compiling C code generated from uparse.y and uscan.l + +2006-05-24 John Franks + Add support for binary path names on disk and in configuration files. + (Allow spaces in filenames.) + + Allow quoted strings for disklist entries. + + Lint clean code using sun lint, splint and strict GCC warnings. + Type / size clean, dead code removal, portibility checks, etc. + Many checks are still turned off. See configure.in for lint flags used. + + Increase debug output in /tmp/amanda/*debug files. + + Set SO_REUSEADDR on sockets help avoid running out of ports. + + * configure.in: + Added lint program discovery with specific targets for SUN lint and splint. + Check each compiler option to see if GCC supports it. + Enable more code quality warnings. + Change missing xsltproc to warning rather than error. + Define _GNU_SOURCES to build flags. + Make size_t and time_t printf format macros. + Check for isnormal() availability. + Don't install man pages if they are not built. + Fix man pages to not attempt build or install if + --without-built-manpages is set. + + * Makefile.am amandad-src/Makefile.am changer-src/Makefile.am + client-src/Makefile.am common-src/Makefile.am + oldrecover-src/Makefile.am recover-src/Makefile.am + restore-src/Makefile.am server-src/Makefile.am tape-src/Makefile.am: + Add lint target. + + * common-src/amanda.h common-src/dgram.c common-src/stream.c + common-src/util.c: + Keep checking for ports on all bind errors. + Delay and retry a few times if all ports are busy. + Retry bind failures after all methods fail. + increase bind checking timeout to 30 minutes. + + * client-src/amandad.c + Issue wait when any child exits. (Get rid of defunct processes) + Stat() index file before using system command. + (shell is not reporting failure if index is not present) + + * recover-src/extract_list.c: + Fix problem of 'add *' not adding directories. + Fix problem of freeing pointer not obtained through malloc. + Touch up file addition to actually use the file names + retrieved when adding a directory and not the directory itself. + + * server-src/taper.c + Strenghten error recovery for broken syncpipes and writer errors. + + * changer-src/chg-scsi-chio.c client-src/amandates.c + client-src/client_util.c client-src/findpass.c client-src/getfsent.c + client-src/selfcheck.c client-src/sendbackup-gnutar.c + client-src/sendbackup-star.c client-src/sendbackup.c + client-src/sendsize.c common-src/bsd-security.c common-src/file.c + common-src/krb5-security.c server-src/amcheck.c server-src/amindexd.c + server-src/diskfile.c server-src/driver.c server-src/dumper.c + server-src/holding.c server-src/infofile.c server-src/logfile.c + server-src/tapefile.c: + allow empty lines in input streams. + + * recover-src/uparse.y + print message when input is garbage. + + * server-src/getconf.c: + Define HOSTNAME_INSTANCE if it was not already defined + for Kerberos. + + * configure.in: Make readline warning less specific. Readline is + used by all input from terminal now. + +2006-05-24 Kevin Till + * client-src/sendbackup.c: ignore SIGINT + * common-src/ssh-security.c: add to total only when n > 0 + * common-src/ssh-security.c: add ssh to error, + retry writev when EINTR, EAGAIN is seen + to STDOUT. exit when options is chosen in template mode. + * server-src/driver.c: make sure timestamp is not null + * amanda/configure.in: remove template.d/amanda.conf which is a dup + of amanda-harddisk.conf + * example/Makefile.am: add template.d/README + * amanda-harddisk.conf.in: set tapedev + * recover-src/amrecover.c: aclose socket before exit. + * recover-src/extract_list.c: ditto + * amanda_enterprise.spec: remove template.d/amanda.conf, add template.d/README + in the failure cases. <> user input field. + * server-src/amcheck.c: no quoted text is a warning + * server-src/driver.c: no need to amfree qname + argument. Search mtx in PATH too. + * example/template.d/advanced.conf.in: fix comment for autoflush + * example/template.d/advanced.conf.in: add usetimestamps + * server-src/diskfile.c: to catch unsupported compress-encryption + combination and abort amdump gracefully. + * man/xml-source/amanda.conf.5.xml: fix syntax, add + dumptype references. + * man/xml-source/amanda.8.xml: fix syntax + * configure.in: ditto + * man/Makefile.am: ditto + * example/amanda.conf.in: tidy up + * man/xml-source/amaespipe.8.xml: add uuencode as requirement + * man/xml-source/amcrypt.8.xml: add uuencode as requirement + * server-src/amcheck.c: catch dumptype misconfiguration + * server-src/diskfile.c: ditto + * server-src/driverio.c: ditto + * server-src/planner.c: ditto + * server-src/conffile.c: check includefile before calling + read_conffile_recursively + * example/amanda.conf.in: add public-key encryption dumptype example + * man/xml-source/amanda.8.xml: fix some formatting + * server-src/planner.c: adjust setuid() calling sequences so that ssh can work + * server-src/dumper.c: ditto + * configure.in: add LOW_TCPPORTRANGE for amrecover + * common-src/stream.c: use LOW_TCPPORTRANGE + * server-src/amdump.sh.in: check if config is supplied + * man/xml-source/amrestore.8.xml: add notes on "-f" option + +2006-05-24 Ian Turner + * configure.in: Properly document --without-xsltproc as itself, + and not the (nonexistant) option --without-built-manpages. + +2006-05-16 John Franks + * amandad-src/amandad.c client-src/clientconf.c common-src/bsd-security.c + common-src/bsdudp-security.c common-src/dgram.c common-src/krb4-security.c + common-src/krb5-security.c common-src/match.c common-src/packet.c + common-src/security-util.c common-src/security-util.h + common-src/security.h common-src/util.c oldrecover-src/Makefile.am + oldrecover-src/set_commands.c recover-src/amrecover.c + recover-src/extract_list.c server-src/conffile.c server-src/driver.c + server-src/dumper.c server-src/planner.c server-src/reporter.c: + Minimal changes to get tree to compile along with some more + debugging output. + +2006-05-15 Jean-Louis Martineau + * server-src/amadmin.c (disklist_one): print spindle. + +2006-05-12 Jean-Louis Martineau + * commmon-src/bsd-security.c: Typo. + +2006-05-12 Jean-Louis Martineau + * common-src/Makefile.am (noinst_HEADERS): Add security-util.h. + +2006-05-12 Jean-Louis Martineau + Build a big tok_t enum for server and client config. + * client-src/clientconf.c: Move many things to util.c. + * client-src/clientconf.h: Remove extern variable. + * common-src/util.c: Add common part of clientconf.c and conffile.c + * common-src/util.h: Prototype. + * server-src/conffile.c: Move many things to util.c. + * server-src/diskfile.c(disk_parserror): Rename from parserror. + * server-src/taper.c: Make many variable static. + +2006-05-12 Jean-Louis Martineau + * restore-src/restore.c: Fix use of possibly NULL input. + +2006-05-12 Jean-Louis Martineau + * common-src/ssh-security.c (ssh_connect): Retrieve ssh_keys from + configuration. + * server-src/amadmin.c(disklist_one): Print ssh_keys. + * server-src/conffile.c(SSH_KEYS): Parse new dumptype option. + * server-src/conffile.h(dumptype_t): Add ssh_keys. + * server-src/diskfile.c(parse_diskline): Copy new field. + * server-src/diskfile.h(disk_t) Add ssh_keys. + * server-src/driverio.c(dumper_cmd): Send dp->ssh_keys in a PORT_DUMP + command to the dumper. + * server-src/dumper.c: Parse ssh_keys in a PORT_DUMP command. + * server-src/dumper.c(dumper_get_security_conf): Return the ssh_keys. + * server-src/server_util.c(amhost_get_security_conf): Return the + ssh_keys. + +2006-05-12 Jean-Louis Martineau + * amandad-src/amandad.c: Set allow_many_services to 0 if auth=bsdtcp. + * common-src/bsd-security.c: Use security-util.c. + * common-src/bsdtcp-security.c: New security-api. + * common-src/bsdudp-security.c: New secutity-api. + * common-src/krb4-security.c: Use security-util.c. + * common-src/krb5-security.c: Use security-util.c. + * common-src/Makefile.am (libamanda_la_SOURCES): Add bsdtcp-security.c, + bsdtcp-security.c + and security-util.c. + * common-src/protocol.c: Debuging cleanup. + * common-src/rsh-security.c Use security-util.c. + * common-src/security.c: Use bsdtcp_security_driver + and bsdudp_security_driver. + * common-src/security.h(accept): New prototype. + * common-src/security-util.c: Many common function for security-api. + * common-src/security-util.h: many prototype for security-api. + * common-src/ssh-security.c Use security-util.c. + * common-src/stream.c (stream_client_internal): Call connect_portrange. + * common-src/util.c (make_socket): Make a socket. + * common-src/util.c (connect_portrange): Make a socket, bind it and + connect. + * common-src/util.h (connect_portrange): Prototype. + * configure.in: new --with-bsdtcp-security and --with-bsdudp-security. + +2006-05-10 Jean-Louis Martineau + Patch by + * man/xml-source/amrecover.8.xml: Document listhost command. + +2006-05-08 Jean-Louis Martineau + Patch by + * server-src/amindexd.c: new LISTHOST command. + * recover-src/set_commands.c (list_host): New function. + * recover-src/amrecover.h (list_host): Prototype. + * recover-src/help.c (list_host): Print help. + * recover-src/uscan.l: Parse listhost command. + * recover-src/uparse.y: LISTHOST command. + * oldrecover-src/set_commands.c (list_host): New function. + * oldrecover-src/amrecover.h (list_host): Prototype. + * oldrecover-src/help.c (list_host): Print help. + * oldrecover-src/uscan.l: Parse listhost command. + * oldrecover-src/uparse.y: LISTHOST command. + +2006-05-08 Ian Turner + * server-src/amcheck.c: Make it an error when the expected new + tape cannot be found. Thanks to Paul Bijnens + for the patch and to Jason L + Tibbitts III for noticing this problem. + +2006-05-08 Jean-Louis Martineau + * driverio.h (shed_s): Add est_nsize, est_csize, degr_nsize, degr_csize + for nativa and compressed estimate size. + * planner.c: Send the native and compressed estimate size to the driver. + * driver.c: log with L_STATS the estimate of a successful dump. + * reporter.c: Parse the L_STATS. + * reporter.c(generate_bad_estimate): New function that will put in the + NOTES section all bad estimate. + +2006-05-08 Jean-Louis Martineau + * configure.in (AC_CONFIG_FILES): Add oldrecover-src/Makefile. + * Makefile.am (RECOVER_SUBDIRS): Add oldrecover-src. + * oldrecover-src/amrecover.c: Copy of old recover-src/amrecover.c + * oldrecover-src/amrecover.h: Copy of old recover-src/amrecover.h + * oldrecover-src/display_commands.c: Copy of old + recover-src/display_commands.c + * oldrecover-src/extract_list.c: Copy of old recover-src/extract_list.c + * oldrecover-src/help.c: Copy of old recover-src/help.c + * oldrecover-src/Makefile.am: Copy of old recover-src/Makefile.am + * oldrecover-src/set_commands.c: Copy of old recover-src/set_commands.c + * oldrecover-src/uparse.y: Copy of old recover-src/uparse.y + * oldrecover-src/uscan.l: Copy of old recover-src/uscan.l + * recover-src/amrecover.c: Works with security-api. + * recover-src/amrecover.h: Works with security-api. + * recover-src/extract_list.c: Works with security-api. + +2006-05-08 Jean-Louis Martineau + * amandad-src/amandad.c: Fixup. + +2006-05-08 Jean-Louis Martineau + * common-src/packet.h: pkt_t.body is now a char*. + * common-src/packet.c (pkt_init): Return an alloced pkt.body. + * common-src/packet.c (pkt_cat): Increade pkt.body size if needed. + * common-src/protocol.c: Free allocated pkt.body. + * common-src/dgram.c (dgram_cat): Return int. + * common-src/dgram.h (dgram_cat): New prototype. + * common-src/krb5-security.c: Work with dynamicaly allocated packet + body. + * common-src/rsh-security.c: Work with dynamicaly allocated packet + body. + * common-src/ssh-security.c: Work with dynamicaly allocated packet + body. + * amandad-src/amandad.c: Work with dynamicaly allocated packet body. + * server-src/amcheck.c: Don't limit packet size. + * server-src/planner.c: Don't limit packet size. + +2006-05-08 Jean-Louis Martineau + * amandad-src/amandad.c (service_new): Apply the correct patch. + +2006-05-08 Jean-Louis Martineau + * server-src/taper.c: Fix compiler warning. + * common-src/match.c: Many function get const parameters. + * common-src/amanda.h: Prototype change. + +2006-05-07 Jean-Louis Martineau + * amandad-src/amandad.c (service_new): Make sur that the 3 data_read[] + and the 3 data_write[] fd are not in the range DATA_FD_OFFSET to + DATA_FD_OFFSET+DATA_FD_COUNT-1. + +2006-05-05 Jean-Louis Martineau + * common-src/tapelist.c (append_to_tapelist): Remove bad amfree. + +2006-05-05 Nikhil Bandiwadekar + * server-src/conffile.c: fix to correctly handle am64 datatype + +2006-05-04 Jean-Louis Martineau + * server-src/taper.c: Write the slot number in the + 'taper: wrote label' line. + * server-src/amverifyrun.sh.in: Parse that line. + +2006-05-02 Jean-Louis Martineau + * amstatus.pl.in: Limit characters for hostname in setup_estimate line. + +2006-04-27 Jean-Louis Martineau + * common-src/rsh-security.c: Pass "amdump amindexd amidxtaped" option + to amandad. + * common-src/ssh-security.c: Ditto. + +2006-04-27 Jean-Louis Martineau + * amandad-src/amandad.c: Accept a list of services on the command line. + +2006-04-27 Jean-Louis Martineau + * common-src/tapelist.c (append_to_tapelist): Fix memory leak. + +2006-04-27 Jean-Louis Martineau + * amandad-src/amandad.c: Fix memory leak. + * amandad-src/amandad.h (free_g_options): Prototype. + * amandad-src/amandad_util.c (free_g_options): New function to free a + g_option_t. + * server-src/amcleanupdisk.c: Fix memory leak. + * server-src/reporter.c: Fix memory leak. + * server-src/tapefile.c: Fix memory leak. + * server-src/taperscan.c: Put message in error_message. + +2006-04-26 Jean-Louis Martineau + * server-src/amcheck.c (start_server_check): Memory leak. + +2006-04-26 Jean-Louis Martineau + * amandad-src/Makefile.am (noinst_HEADERS): Add amandad.h. + * client-src/Makefile.am (noinst_HEADERS): Add clientconf.h. + +2006-04-26 Jean-Louis Martineau + * man/xml-source/amanda-client.conf.5.xml: New file. + +2006-04-26 Jean-Louis Martineau + * common-src/amanda.h (check_user_ruserok, check_user_amandahosts): + Remove prototype. + * common-src/bsd-security.c: Pass the service name across check_user* + function and validate it from the .amandahosts file. + +2006-04-26 Jean-Louis Martineau + * restore-src/amidxtaped.c: Can be launched by amandad. + * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src + * server-src/Makefile.am (amidxtaped__LDADD): Link with libamandad. + * restore-src/restore.c: Fix indentation. + +2006-04-26 Jean-Louis Martineau + * server-src/amindexd.c: Can be launched by amandad + * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src + * server-src/Makefile.am (amindexd_LDADD): Link with libamandad. + +2006-04-26 Jean-Louis Martineau + * amandad-src/amandad.c: New file. + * amandad-src/amandad.h: New file. + * amandad-src/amandad_util.c: New file, add function init_g_options + parse_g_options. + * amandad-src/Makefile.am: New file. + * client-src/amandad.c: Removed file. + * client-src/amandad.h: Removed file. + * client-src/client_util.c (init_g_options, parse_g_options): Remove. + * client-src/client_util.h (init_g_options, parse_g_options): Remove. + * client-src/Makefile.am (INCLUDES): -I$(top_srcdir)/amandad-src + * client-src/Makefile.am (libexec_PROGRAMS): Remove amandad. + * client-src/Makefile.am (LDADD): Add + ../amandad-src/libamandad.$(LIB_EXTENSION). + * client-src/selfcheck.c: #include "amandad.h". + * client-src/sendsize.c: #include "amandad.h". + * configure.in (AC_CONFIG_FILES): amandad-src/Makefile. + * Makefile.am (SUBDIRS): amandad-src. + +2006-04-26 Jean-Louis Martineau + * docs/security-api.txt: Document security_read_sync. + * common-src/security.h: Typo. + +2006-04-26 Jean-Louis Martineau + * client-src/amandad.c (service_new): Pass the "amandad" argument to + the service. + +2006-04-26 Jean-Louis Martineau + * common-src/bsd-security.c: Allow to run many services on the same + client. Cleanup. + * common-src/rsh-security.c: Ditto. + * common-src/ssh-security.c: Ditto. + +2006-04-26 Jean-Louis Martineau + * common-src/security.h (security_stream_read_sync): Prototype. + * common-src/bsd-security.c (bsd_stream_read_sync): New function. + * common-src/krb4-security.c (krb4_stream_read_sync): New function. + * common-src/krb5-security.c (krb5_stream_read_sync): New function. + * common-src/rsh-security.c (rsh_stream_read_sync): New function. + * common-src/ssh-security.c (ssh_stream_read_sync): New function. + +2006-04-26 Jean-Louis Martineau + * client-src/amandad.c: Open pipe in both direction to the services. + * client-src/sendbackup.c: Deal with the newer pipe. + +2006-04-26 Jean-Louis Martineau + * client-src/clientconf.c: New file to read the client configuration + file. + * client-src/clientconf.h: Header. + * client-src/Makefile.am: Link clientconf into libamclient. + * configure.in (AC_CONFIG_FILES): example/amanda-client.conf. + * docs/amanda-client.conf.5.txt: New documentation. + * docs/Makefile.am (pkgdata_DATA): amanda-client.conf.5.txt. + * example/amanda-client.conf.in: exemple. + * example/Makefile.am (noinst_DATA): amanda-client.conf. + * man/entities/global.entities: amclientconf. + * man/Makefile.am (COMMON_MAN5_PAGES): amanda-client.conf.5. + * man/xml-source/amanda.8.xml (SEE ALSO): amanda-client.conf(5). + * man/xml-source/amanda.conf.5.xml (SEE ALSO): amanda-client.conf(5). + * man/xml-source/amrecover.8.xml (SEE ALSO): amanda-client.conf(5). + +2006-04-26 K. K. George + * server-src/reporter.c: Fix to untaint the mailto parameter. + * server-src/amcheck.c: Fix to untaint the mailto parameter + * changer-src/chg-scsi.c: Fix to untaint the mailto parameter. + * changer-src/chg-scsi-chio.c: Fix to untaint the mailto parameter. + * common-src/util.h: Added function to check if the mailto + parameter is untainted + * common-src/util.c: Added function to check if the mailto + parameter is untainted + +2006-04-26 Jean-Louis Martineau + * common-src/event.c(event_wait): New function. + * common-src/event.h(event_wait): prototype. + * docs/eventapi.txt: Document event_wait. + +2006-04-24 Jean-Louis Martineau + * server-src/planner.c: Fix divide by zero if runtapes==0. + +2006-04-24 K. K. George + * server-src/reporter.c: Fix to make the mailto parameter in + amanda.conf optional. Added two more commandline options + -i & -Maddress. + * server-src/amcheck.c: Fix to make the mailto parameter in + amanda.conf optional. + * man/xml-source/amreport.8.xml: Modified to document the + -i & -Maddress commandline parameters + * docs/amreport.8.txt: Modified to document the + -i & -Maddress commandline parameters + * changer-src/chg-scsi.c: Fix to make the mailto parameter in + amanda.conf optional. + * changer-src/chg-scsi-chio.c: Fix to make the mailto parameter in + amanda.conf optional. + +2006-04-23 Jean-Louis Martineau + * server-src/driver.c (handle_chunker_result): make sure that + est_size > act-size. + +2006-04-21 Jean-Louis Martineau + * server-src/changer.c (changer_command): Make sure fd[0] != 1. + +2006-04-19 Jean-Louis Martineau + * restore-src/amidxtaped.c: Cleanup. + +2006-04-19 Ian Turner + * tape-src/output-tape.c: Do a more thourough check to ensure + that we actually got a tape device, before proceeding to use + it. + +2006-04-18 Ian Turner + * changer-src/chg-disk.sh.in: Check that the virtual device is a + directory with proper permissions. + * server-src/changer.c: Do the right thing (failure) if there is + a problem with the changer. + +2006-04-18 Ian Turner + * recover-src/uscan.l: Accept setdate of the form + yyyy-MM-dd-hh-mm in addition to yyyy-MM-dd-hh-mm-ss. + * man/xml-source/amrecover.8.xml: Document this change. + +2006-04-14 Jean-Louis Martineau + * recover-src/help.c: Document setdate YYYY-MM-DD-HH-MM-SS format. + * man/xml-source/amrecover.8.xml: Ditto. + +2006-04-14 Jean-Louis Martineau + * client-src/amandad.c: Use %p to printf pointer. + +2006-04-14 Jean-Louis Martineau + * server-src/amtape.c: Add update command. + +2006-04-11 Jean-Louis Martineau + * server-src/taper.c: log_add(L_WARNING) the output of taper_scan if + no valid tape are found. + +2006-04-11 Jean-Louis Martineau + * server-src/amcheck.c: Call taper_scan with + (..., FILE_taperscan_output_callback,outf) arguments. + * server-src/amtape.c: Call taper_scan with + (..., FILE_taperscan_output_callback,stderr) arguments. + * server-src/taper.c: Call taper_scan with + (..., CHAR_taperscan_output_callback, &error_msg) arguments. + * server-src/taperscan.h(FILE_taperscan_output_callback, + CHAR_taperscan_output_callback): Protoype. + * server-src/taperscan.h(taper_scan): New protoype, remove + error_message arg, add taperscan_output_callback and data arg. + * server-src/taperscan.c(FILE_taperscan_output_callback): Callback + that print the msg to it's arg, which is FILE*. + * server-src/taperscan.c(CHAR_taperscan_output_callback): Callback + that append the msg to it's arg, which is char*. + * server-src/taperscan.c(taper_scan): Fix for new arguments. + * server-src/taperscan.c(changer_taper_scan): Fix for new arguments. + +2006-04-11 Jean-Louis Martineau + * man/xml-source/amanda.conf.5.xml: Document amandad_path and + client_username dumptype option. + +2006-04-11 Jean-Louis Martineau + * common-src/krb4-security.c: Increase timeout to 60 seconds. + * common-src/rsh-security.c: Increase timeout to 60 seconds. + * common-src/ssh-security.c: Increase timeout to 60 seconds. + +2006-04-07 Jean-Louis Martineau + * server-src/conffile.c: New configuration option usetimestamps. + * server-src/conffile.h: New configuration option usetimestamps. + * example/amanda.conf.in: Document new usetimestamps options. + * man/xml-source/amanda.conf.5.xml: Document new usetimestamps options. + * server-src/amflush.c: Use datestamp or timestamp depending of + usetimesstamps. + * server-src/planner.c: Use datestamp or timestamp depending of + usetimesstamps. + * server-src/driver.c: Log an ERROR if many run a day and + usetimestamps us set to no. + +2006-04-07 Ian Turner + * server-src/changer.c: Don't crash if we go to taperscan "Plan + B". + +2006-04-07 Ian Turner + * server-src/changer.c: Only print changer debug messages if + there was a problem. + +2006-04-07 Ian Turner + * recover-src/amrecover.c: Print a more helpful command if mount + point autodetection fails. + * recover-src/display_commands.c: Print a more helpful message + if the user tries to ls without having setdisk earlier. + +2006-04-07 Jean-Louis Martineau + * server-src/amadmin.c: Fix use of datestamp as int. + * server-src/find.c: Ditto. + * server-src/reporter.c: Ditto. + * server-src/tapefile.c: Ditto. + +2006-04-07 Jean-Louis Martineau + * common-src/Makefile.am: Fix dependency between genversion and + versuff.o. + +2006-04-07 Jean-Louis Martineau + * recover-src/amrecover.c: Change initialization of server_name and + tape_server_name. + +2006-04-07 Jean-Louis Martineau + * restore-src/amrestore.c: reset count_error to 0 on a restore. + +2006-04-06 Kevin Till + * server-src/Makefile.am: always install planner/dumper setuid-root + * server-src/amcheck.c: check planner/dumper for setuid-root + * server-src/dumper.c: drop privilege asap. Switch between bsd + and ssh auth is now possible with the same installation. + * server-src/planner.c: ditto + +2006-04-06 Jean-Louis Martineau + * server-src/taperscan.c (changer_taper_scan): Pass a pointer to the + changer_loadslot call. + +2006-04-06 Jean-Louis Martineau + * server-src/tapefile.c (lookup_last_reusable_tape): Fix a datestamp + test with an int. + +2006-04-06 Ian Turner + * recover-src/amrecover.c (main): Check AMANDA_SERVER and + AMANDA_TAPE_SERVER environment variables before falling back + to compiled-in defaults. Document this new behavior. Thanks to + Malcolm Locke for the idea and patch. + +2006-04-06 Jean-Louis Martineau + * server-src/reporter.c (handle_chunk): CHUNK line always have the + datestamp. + +2006-04-05 Jean-Louis Martineau + * server-src/krb5-security.c: Fix for krb5_connect call in + open_callback. + +2006-04-05 Jean-Louis Martineau + * server-src/driver.c (start_some_dumps): Recover correctly if the + chunker reply with something that is not a PORT command. + * server-src/driver.c (dump_to_tape): remove duplicate free_serial. + * server-src/driverio.c: Improve debugging. + +2006-04-05 Jean-Louis Martineau + * common-src/tapelist.c(unmarshal_tapelist_str): Fix + "value computed is not used" compiler warning. + +2006-04-05 Jean-Louis Martineau + * common-src/bsd-security.c (bsd_connect): New datap argument. + * common-src/krb4-security.c (krb4_connect): New datap argument. + * common-src/krb5-security.c (krb5_connect): New datap argument. + * common-src/rsh-security.c (rsh_connect): New datap argument, + retrieve amanda_path and client_username from configuration. + * common-src/ssh-security.c (ssh_connect): New datap argument, + retrieve amanda_path and client_username from configuration. + * common-src/protocol.c: Pass new datap argument to security_connect. + * common-src/security.h(connect): New prototype. + * common-src/security.h(security_connect): Add datap to macro. + * server-src/amadmin.c(disklist_one): Print amandad_path and + client_username. + * server-src/conffile.c(AMANDAD_PATH, CLIENT_USERNAME): Parse new + dumptype option. + * server-src/conffile.h(dumptype_t): Add amandad_path and + client_username. + * server-src/diskfile.c(parse_diskline): Copy new field. + * server-src/diskfile.h(disk_t) Add amandad_path and client_username. + * server-src/driverio.c(dumper_cmd): Send dp->amandad_path and + dp->client_username in a PORT_DUMP command to the dumper. + * server-src/dumper.c: Parse amandad_path and client_username in a + PORT_DUMP command. + * server-src/dumper.c(dumper_get_security_conf): New function to return + configuration option to the security-api. + * server-src/dumper.c: Use dumper_get_security_conf for the callback + to protocol_sendreq. + * server-src/planner.c Use amhost_get_security_conf for the callback + to protocol_sendreq. + * server-src/amcheck.c: Use amhost_get_security_conf for the callback + to protocol_sendreq. + * server-src/server_util.c(amhost_get_security_conf): New function to + return configuration option to the security-api, + it expect an am_host_t arg. + * server-src/server_util.h(amhost_get_security_conf): Prototype. + +2006-04-05 Jean-Louis Martineau + * server-src/amstatus.pl.in: Remove duplicate instruction. + +2006-04-05 Jean-Louis Martineau + * server-src/amindexd.c: Remove all code that set str_buffer_size, + rename str_buffer_size to reply_buffer_size, + rename buf to reply_buffer, + * server-src/amindexd.c(reply, lreply_backend): Increase reply_buffer + size if required. + +2006-04-05 Jean-Louis Martineau + * common-src/amfeatures.h: Add fe_amrecover_timestamp amfeature. + * common-src/amfeatures.c (am_init_feature_set): + Add fe_amrecover_timestamp. + * server-src/amindexd.c(opaque_ls_one): New function. + * server-src/amindexd.c(disk_history_list,opaque_ls_one): Send only a + datestamp if client doesn't have fe_amrecover_timestamp. + +2006-04-05 Jean-Louis Martineau + * recover-src/uscan.l: Parse "setdate YYYY-MM-DD-HH-MM-SS". + * server-src/amindexd.c (cmp_date): New function to cmp datestamp with + timestamp, use it where needed. + * server-src/amindexd.c (amindexd_nicedate): Fix for timestamp. + * server-src/amtrmidx.c: Fix for timestamp. + * server-src/disk_history.h (DUMP_ITEM): Increase size of date. + +2006-04-05 Jean-Louis Martineau + * server-src/amflush.c: Send DATE line to driver, use timestamp. + * server-src/amindex.c (getindexfname): Increase datebuf size. + * server-src/amtrmlog.c: Fix bug with date_keep computation if + dumpcycle is INF. + * server-src/amtrmlog.c: rotate timestamped log file. + * server-src/chunker.c: Receive START cmd, use timestamp. + * server-src/driver.c: Receive DATE line, send START cmd to chunker, + use timestamp. + * server-src/driverio.c (startup_dump_processes): Send START cmd to + dumper. + * server-src/driverio.c (dumper_cmd, chunker_cmd): Send START command. + * server-src/driverio.h (startup_dump_processes): Prototype change, + need the timestamp. + * server-src/dumper.c: Receive START cmd, use timestamp. + * server-src/find.c (find_nicedate): Fix for timestamp. + * server-src/planner.c: Send DATE line to driver, use timestamp. + * server-src/server_util.c (cmdstr): Add START. + * server-src/server_util.h (cmd_t): Add START. + * server-src/taper.c: Get timestamp from TAPER_START command. + +2006-04-05 Jean-Louis Martineau + * server-src/amindexd.c (amindexd_nicedate): New function. + * server-src/find.h (struct find_result_s): Remove datestamp and + datestamp_aux field, only timestamp will be used. + * restore-src/amfetchdump.c: Convert datestamp to 'char *'. + * restore-src/restore.c: Convert datestamp to 'char *'. + * server-src/amindexd.c: Convert datestamp to 'char *'. + * server-src/amlabel.c: Convert datestamp to 'char *'. + * server-src/amtrmidx.c: Convert datestamp to 'char *'. + * server-src/find.c: Convert datestamp to 'char *'. + * server-src/reporter.c: Convert datestamp to 'char *'. + * server-src/tapefile.c: Convert datestamp to 'char *'. + * server-src/tapefile.h: Convert datestamp to 'char *'. + * server-src/taper.c: Convert datestamp to 'char *'. + +2006-04-05 Jean-Louis Martineau + * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b1). + +2006-04-05 Jean-Louis Martineau + * server-src/driver.c: Change expression to remove overflow. + +2006-03-29 Jean-Louis Martineau + * client-src/calcsize.c: Don't use declaration after instruction, + older compiler don't accept it. + +2006-03-23 Jean-Louis Martineau + * 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 + * server-src/dumper.c: wait for compress/index/encryp subprocess. + +2006-03-22 Jean-Louis Martineau + * server-src/amstatus.pl.in: Parse PARTIAL reply. + +2006-03-22 Jean-Louis Martineau + * server-src/driver.c: Put '#define HOLD_DEBUG' in comment. + +2006-03-21 Jean-Louis Martineau + * 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 + * 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 + * server-src/amverify.sh.in: check for EOI. amrestore only + reports EOI for some tapetypes. + +2006-03-15 Jean-Louis Martineau + * server-src/conffile.c: Fix heritage of auth. + +2006-03-14 Kevin Till + * 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 + * 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 + * server-src/driverio.c : Fix errors found using Coverity tools. + +2006-03-10 Jean-Louis Martineau + * server-src/taperscan.c: Fix Coverity fix. + +2006-03-10 Jean-Louis Martineau + * 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 + * 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 + * restore-src/restore.c: Fix errors found using Coverity tools. + +2006-03-09 Jean-Louis Martineau + * server-src/holding.c: Fix errors found using Coverity tools. + +2006-03-09 Jean-Louis Martineau + * server-src/driverio.c: Fix errors found using Coverity tools. + * server-src/planner.c: Fix errors found using Coverity tools. + +2006-03-09 John Franks + * 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 + * 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 + * man/xml-source/amanda.8.xml: added amaespipe and amcrypt. + +2006-03-07 Jean-Louis Martineau + * server-src/taper.c: Don't log a multi-line message in no-tape case. + +2006-03-06 John Franks + * 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 + * 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 + * server-src/reporter.c (handle_error): Handle error from taper. + +2006-03-06 Jean-Louis Martineau + * server-src/taper.c (label_tape): Set errstr and return 0 if no + valid tape are available. + +2006-03-03 Ian Turner + * 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 + * 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 + * common-src/protocol.c (s_repwait): Decrease p->timeout on receive + of a PREP. + +2006-02-28 Jean-Louis Martineau + * server-src/driver.c: Print dumper TRY_AGAIN message. + +2006-02-28 Jean-Louis Martineau + * server-src/planner.c: Don't print estimate size if estimate failed. + +2006-02-25 Ian Turner + * man/Makefile.am: Don't use static patterns (as they are not + portable), use implicit rules instead. + +2006-02-20 Kevin Till + * 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 + * 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 + * man/xml-source/amanda.8.xml: replace informaltable with literallayout + +2006-02-13 John Franks + * 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 + * man/xml-source/amanda.conf.5.xml: add note about first character of a + tapetype string must be alphabet + +2006-02-10 John Franks + * server-src/taper.c: Call error() if an invalid string is read + by syncpipe_getstr(). + +2006-02-09 John Franks + * 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 + * 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 + * restore-src/restore.c: fix comment formatting on version 1.2.1 + +2006-02-06 Kevin Till + * 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 + * restore-src/amidxtaped.c: Properly handle changers, + tape-label checking, and tape prompting in amrecover, + amindexd, and amidextaped. Thanks to Paul Bijnens + for the patch. + * restore-src/restore.c: ditto. + * server-src/amindexd.c: ditto. + +2006-02-04 Paddy Sreenivasan + * 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 + * server-src/taper.c: Fix null string printout in CHUNKERSUCCESS log line. + +2006-02-03 Ian Turner + * server-src/amadmin.c (main): Don't free conf_tapelist too + early. Thanks to Cédric Lucantis + for the patch. + +2006-02-02 Kevin Till + * man/xml-source/amanda.8.xml: fix formatting. problem + to be fixed. + * man/xml-source/amrecover.8.xml: add note on client-encrypted tapes. + +2006-02-02 Ian Turner + * 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 for + the patch. Thanks also to Mark Schaefer for suggesting this + change. + +2006-02-01 Jean-Louis Martineau + * 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 + * server-src/driver.c (dumper_result): Reset sched(dp)->attempted to 0 + before adding it to tapeq. + +2006-01-27 Ian Turner + * 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 + for suggesting this feature. + +2006-01-27 Ian Turner + * 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 for the + patch. + +2006-01-25 Paddy Sreenivasan + * common-src/amanda.h: Removed unnecessary header include files. + +2006-01-25 Kevin Till + * 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 + * man/xml-source/amanda.conf.5.xml: fix formatting ( is not compatible + with some tag) add supported auth types. + +2006-01-25 Kevin Till + * 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 + * man/xml-source/amanda.conf.5.xml: Put documentation of + split-dump options in the right place. Thanks to Paul Bijnens + for the fix. + * man/xml-source/amanda.8.xml: ditto. + +2006-01-23 Ian Turner + * server-src/taperscan.c (find_brand_new_tape_label): Start + brand new tape labels at 1 instead of 0. Thanks to Paul + Bijnens for the fix. + +2006-01-18 Jean-Louis Martineau + * 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 + * server-src/disk_history.c: Fix memory leak. + +2006-01-15 Jean-Louis Martineau + * 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 + * 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 + * 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 + * 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 + * 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 + * 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 + * server-src/taperscan.c: When doing taper-scan algorithm, properly + accept new tapes. + +2006-01-09 Ian Turner + * tape-src/tapeio.c: Generate a more reasonable message when + reading an empty tape label on brand-new tapes. + +2006-01-09 Ian Turner + * server-src/amcheck.c: Actually do what the documentation for + amcheck -w says; that is, overwrite labels on tapes. + +2006-01-06 Kevin Till + * 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 + * recover-src/extract-list.c: Remove 'U' argument for gtar extraction. + +2006-01-06 Jean-Louis Martineau + * restore-src/restore.c (flush_open_outputs): Another shutdown is + required. + +2006-01-05 John Franks + * 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 + * 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 + * 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 + * 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 + * restore-src/restore.c (flush_open_outputs): Call shutdown before + close. + +2005-12-30 John Franks + * 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 + * common-src/fileheader.c: Remove xx/UNKNOWN split-dump header + syntax, in favor of xx/-1. + +2005-12-29 John Franks + * 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. + * 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. + * server-src/amindexd.c + Fix Compiler warning of unused variable. + * server-src/taperscan.c + Fix Compiler warning of bogus format specifier. + +2005-12-29 Kevin Till + * 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 + * man/xml-source/amanda.conf.5.xml: Document label_new_tapes + config option. + +2005-12-28 Ian Turner + * 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 + * 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 + * 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 + * 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 + * restore-src/restore.c: + * server-src/amtape.c: + * server-src/taperscan.c : Make scan_init static function + +2005-12-23 John Franks + * server-src/taper.c: Reduce I/O's system call overhead by 30% + in main read / write loop. + +2005-12-23 John Franks + * 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 + + * restore-src/restore.c (restore): Remova an aclose. + +2005-12-22 Jean-Louis Martineau + + * restore-src/amidxtaped.c (cleanup): Function registered with atexit + to remove the log file. + +2005-12-20 Jean-Louis Martineau + + * server-src/Makefile.am (noinst_HEADERS): Add taperscan.h. + +2005-12-20 John Franks + + * 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 + + * 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 + + * server-src/reporter.c: Fix report of output size. + +2005-12-19 Ian Turner + * server-src/taperscan.c: Check that automatic tape labels satisfy + the labelstr. + +2005-12-19 Ian Turner + * server-src/fileheader.c: Fix broken split-dump file headers. + +2005-12-18 Jean-Louis Martineau + Patch by Paul Bijnens + + * server-src/amcheck.c: Tapelist file is regular file. + +2005-12-17 Jean-Louis Martineau + + * 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 + + * 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 + With Kevin Till + + * 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 + + * 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 + + * 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 + + * server-src/amstatus.pl.in: Parse chunker DONE line to set output size. + +2005-12-09 John Franks + + * 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 + + * 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 + + * 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 + + * configure.in: Set LL_FMT correctly. + * server-src/conffile.c: Use LL_FMT. + +2005-12-08 Jean-Louis Martineau + + * 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 + + * 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 + + * 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 + + * server-src/amindexd.c (reply, lreply, fast_lreply): Must use + str_buffer_sizebuf instead of sizeof(bug). + +2005-12-05 Jean-Louis Martineau + + * 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 + + * common-src/Makefile.am (bsdsecurity_LDADD): Add ssh-security. + +2005-12-05 Jean-Louis Martineau + + * 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 + + * server-src/logfile.c (logtype_str): Add important ','. + +2005-12-03 Jean-Louis Martineau + + * server-src/planner.c (setup_estimate): Fix wrong order for argument. + +2005-12-03 Jean-Louis Martineau + + * server-src/driver.c (start_some_dumps): Don't test for + cur_idle == NOT_IDLE. + +2005-12-03 Jean-Louis Martineau + + * 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 + Patch by Franz Fischer + + * config/acinclude.m4i: Fix for __alpha. + +2005-12-02 Jean-Louis Martineau + + * common-src/util.c: Debug must end with '\n'. + +2005-12-01 Jean-Louis Martineau + + * configure.in: Amanda support x86_64-unknown-linux-gnu. + +2005-11-30 Jean-Louis Martineau + + * 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 + + * client-src/rundump.c: undef USE_RUNDUMP before define. + +2005-11-30 Jean-Louis Martineau + Patch by Franz Fischer + + * client-src/amqde.c: Fix compiler warning. + +2005-11-30 Jean-Louis Martineau + Patch by Franz Fischer + + * common-src/event.h: Fix compiler warning. + * server-src/conffile.h: Fix compiler warning. + +2005-11-30 Kevin Till + + * 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 + + * config/libtool.m4i: libtool 1.5.20 + * config/ltmain.sh: libtool 1.5.20 + +2005-11-29 Jean-Louis Martineau + 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 + * 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 + Patch by Jon H. LaBadie + + * changer-src/chg-disk.sh.in: Check permission on file access. + +2005-11-17 Paddy Sreenivasan + * 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 + * 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 + + * 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 + + * server-src/planner.c: Fix incronly. + +2005-11-05 Jean-Louis Martineau + + * man/Makefile.am: Set man_MANS, + +2005-11-03 Jean-Louis Martineau + + * man/Makefile.am: Set man5_MANS and man8_MANS, + install-data-hook use them. + +2005-11-03 Jean-Louis Martineau + Patch by Olivier Cherrier + + * man/Makefile.am (install-data-hook): Set protection correclty + for man5 and man8. + +2005-10-29 Jean-Louis Martineau + + * common-src/util.c (bind_portrange): Increase port in all case. + +2005-10-27 Jean-Louis Martineau + + * 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 + + * 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 + + * 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 + + * client-src/sendsize.c (getsize_wrapper): Add a NULL at the end of + the argvchild array. + +2005-10-20 Jean-Louis Martineau + + * server-src/server_util.c (getcmd): Print DEBUG to stderr. + +2005-10-20 Ian Turner + + * 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 + + * 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 + Patch by John R. Franks + + * server-src/taper.c (create_split_buffer): Should not use sizeof(). + +2005-10-17 Jean-Louis Martineau + + * server-src/taper.c (read_file): Move the putresult(DONE) to the + right place, some cleanup. + +2005-10-17 Jean-Louis Martineau + + * server-src/planner.c: Increase DEFAULT_DUMPRATE to 1024 K/s. + +2005-10-17 Ian Turner + + * 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 + + * server-src/taper.c: Set SIGPIPE to SIG_IGN, the code already + handle it correctly. + +2005-10-16 Jean-Louis Martineau + + * server-src/taper.c (signal_handler): Don't REMOVE_SHARED_MEMORY, it + is done by exit. + +2005-10-16 Jean-Louis Martineau + + * server-src/driverio.c (serial2disk): Print str if error. + +2005-10-15 Paddy Sreenivasan + + * server-src/taper.c: Shared memory need not be removed in normal paths. + Done as part of atexit. + +2005-10-15 Jean-Louis Martineau + Patch by John R. Franks + + * 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 + Patch by Paddy Sreenivasan + + * 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 + + * regex-src/regcomp.c (findmust): Initialized start to NULL. + +2005-10-14 Jean-Louis Martineau + Patch by John R. Franks + + * 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 + Patch by John R. Franks + + * 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 + + * 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 + + * 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 + Patch by Jean-Louis Martineau + + * 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 + + * 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 + + * 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 + + * client-src/client_util.c, server-src/amcheck.c, + server-src/reporter.c: Add missing type for arguments. + +2005-10-11 Jean-Louis Martineau + + * server-src/taper.c (tape_writer_side): detach_buffers on normal exit. + +2005-10-10 Ian Turner + + * server-src/amtape.h: Apply tape-spanning patch by John Stange + as ported to 2.5.0 by Ian Turner, with + contributions by Christopher Pascoe . + * 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 + + * server-src/taper.c: Change message: on new tape due to + +2005-10-06 Jean-Louis Martineau + Patch by John R. Franks + + * common-src/amflock.c (main): Don't call safe_fd, it's not needed + during configure. + * configure.in: '#include ' in the check + 'for Linux like scsi support (sg)' + +2005-10-02 Jean-Louis Martineau + + * client-src/amandad.c (writebuf): Call waitpid in the parent. + +2005-10-02 Jean-Louis Martineau + + * 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 + + * 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 + + * common-src/stream.c: len is a socklen_t. + * server-src/amindexd.c: Add socklen as 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 + + * server-src/reporter.c: Don't trunk hostname/diskname in + 'FAILURE AND STRANGE DUMP SUMMARY' section. + +2005-10-01 Jean-Louis Martineau + + * server-src/chunker.c (main): Remove outfd. + +2005-09-30 Jean-Louis Martineau + + * 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. + +2005-09-30 Jean-Louis Martineau + + * client-src/runtar.c: 'e' and 'bdf' are only needed if GNUTAR. + +2005-09-30 Jean-Louis Martineau + + * common-src/sl.c (insert_sort_sl). Typo. + +2005-09-30 Jean-Louis Martineau + + * config/config.guess: Update from automake 1.9.5. + * config/config.sub: Update from automake 1.9.5. + * config/depcomp: Update from automake 1.9.5. + * config/install-sh: Update from automake 1.9.5. + * config/missing: Update from automake 1.9.5. + * config/mkinstalldirs: Update from automake 1.9.5. + * config/ltmain.sh: Update from libtool-1.5.16. + * config/libtool.m4i: Update from libtool-1.5.16. + +2005-09-30 Jean-Louis Martineau + + * common-src/bsd-security.c: Fix small bug. + +2005-09-22 John R. Jackson + + * configure.in: If --without-server is specified, either on the + command line or via config.site, make sure --without-restore + is also in effect. Avoids compilation errors if mismatched. + * example/config.site: Document above. + +2005-09-21 John R. Jackson + + * server-src/getconf.c: Allow CLIENT_LOGIN to be retrieved via + "amgetconf build.CLIENT_LOGIN". + +2005-09-21 John R. Jackson + + * server-src/amlabel.c: 'int fd' is only needed if HAVE_LINUX_ZFTAPE_H + is defined. + +2005-09-21 Jean-Louis Martineau + + * server-src/amlabel.c: 'int fd' is needed. + +2005-09-20 John R. Jackson + + * server-src/reporter.c: Fix minor typo noticed by Scott R. Burns + . + +2005-09-20 John R. Jackson + + * common-src/file.c: Create safe_fd() to do common file descriptor + safety operations at the start of every program. In addition + to closing everything from three on up that used to be done + with explicit code, make sure stdin, stdout and stderr are + open per a potential (but unlikely) security report from Ben + Schwarz . + * common-src/amanda.h: Ditto. + * client-src/amandad.c: Ditto. + * client-src/calcsize.c: Ditto. + * client-src/getfsent.c: Ditto. + * client-src/killpgrp.c: Ditto. + * client-src/rundump.c: Ditto. + * client-src/runtar.c: Ditto. + * client-src/selfcheck.c: Ditto. + * client-src/sendbackup.c: Ditto. + * client-src/sendsize.c: Ditto. + * client-src/versionsuffix.c: Ditto. + * common-src/amflock.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. + * restore-src/amidxtaped.c: Ditto. + * restore-src/amrestore.c: Ditto. + * server-src/amadmin.c: Ditto. + * server-src/amcheck.c: Ditto. + * server-src/amcleanupdisk.c: Ditto. + * server-src/amflush.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/chunker.c: Ditto. + * server-src/conffile.c: Ditto. + * server-src/diskfile.c: Ditto. + * server-src/driver.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 + + * client-src/calcsize.c: Fix format string. + * server-src/diskfile.c: Fix compiler warnings. + * server-src/planner.c: Fix compiler warnings. + +2005-09-20 John R. Jackson + + * common-src/amanda.h: Add dbreopen() so debug file can be closed + and then reopened if needed. + * common-src/debug.c: Ditto. + * client-src/runtar.c: Close the debug file (fd 10) around the + exec of GNU tar. Newer versions complain about stray file + descriptors. + * server-src/getconf.c: Use dbreopen() to create the debug file. + Do not try to open config file unless needed (allows clients to + use build.XXX/dbopen.XXX/dbclose.XXX). + +2005-09-20 John R. Jackson + + * client-src/sendbackup-dump.c: Ignore a new message from Solaris + vxdump. + +2005-09-20 Jean-Louis Martineau + + * common-src/bsd-security.c: Generate a unique event_id, thei + proto_handle is not always unique. + +2005-09-15 Jean-Louis Martineau + + * server-src/amverify.sh.in: Don't check for EOI, it's buggy. + +2005-09-12 Jean-Louis Martineau + + * server-src/driverio.c: Don't save history with size < 0. + +2005-09-12 Jean-Louis Martineau + Patch by Geert Uytterhoeven + + * server-src/planner.c: Don't use history with size < 0. + +2005-09-07 Jean-Louis Martineau + Patch Paul Bijnens + + * server-src/planner.c(delay_dumps): Delay incremental dump also + larger than tape. + +2005-09-07 Jean-Louis Martineau + Patch by Orion Poplawski + + * server-src/amoverview.pl.in: Add options -last, -num0 and -togo0. + * man/amoverview.8: Document -last, -num0 and -togo0. + +2005-09-07 Jean-Louis Martineau + Patch by Orion Poplawski + + * server-src/driver.c: Make tape_length and tape_left unsigned long. + +2005-07-11 Jean-Louis Martineau + Patch by Stefan G. Weichinger + + * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases. + +2005-07-11 Jean-Louis Martineau + + Bug found by John E Hein . + * 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 + Patch by Jay Fenlason + + * client-src/sendsize.c: Fix dbprintf call. + +2005-06-03 Jean-Louis Martineau + Stefan G. Weichinger + + * 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-06-03 Jean-Louis Martineau + + * server-src/amverifyrun.sh.in: Remove buggy space. + +2005-05-17 Jean-Louis Martineau + + * server-src/amadmin.c: Add [--days ] argument to tape subcommand. + +2005-05-13 Jean-Louis Martineau -2005-03-31 Jean-Louis Martineau + * example/amanda.conf.in: Update from 2.4.5. - * man/*: use man pages form xml-docs. +2005-05-13 Jean-Louis Martineau + + * docs/*: New documentation from xml-docs. + * docs/Makefile.am (pkgdata_DATA): Update for new files. + +2005-05-13 Jean-Louis Martineau + + * man/Makefile.am (COMMON_MAN_PAGES): Add amanda.conf.5. + +2005-05-13 Jean-Louis Martineau + + * 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-03-31 Jean-Louis Martineau +2005-05-05 Jean-Louis Martineau - * 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. + * 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-03-29 Jean-Louis Martineau +2005-04-14 Jean-Louis Martineau + + * changer-src/chg-zd-mtx.sh.in: Improve handling of + "Unknown Storage Element Loaded". - * NEWS: new amoverview -skipmissed option. +2005-04-06 Jean-Louis Martineau + - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052 + + * server-src/amverifyrun.sh.in: Filter changer log file. + +2005-04-06 Jean-Louis Martineau + + * server-src/amcheck.c: Improve messages. + +2005-04-06 Jean-Louis Martineau + + * client-src/sendsize.c (generic_calc_estimates): Use amname instead + of dirname in message. 2005-03-29 Jean-Louis Martineau @@ -122,7 +10615,7 @@ and send it to amandad. Write debuging message. 2005-02-09 Jean-Louis Martineau - 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 @@ -146,13 +10639,7 @@ 2005-02-09 Jean-Louis Martineau - * server-src/planner.c: Improve message if no incremental estimate. - -2005-01-23 Stefan G. Weichinger - Patch by Jon LaBadie - - * 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 Patch by Christopher Pascoe @@ -199,15 +10686,17 @@ 2004-11-16 Jean-Louis Martineau - * 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 + * 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 @@ -222,21 +10711,10 @@ * changer-src/chg-zd-mtx.sh.in: Fix for library with barcode. - -2004-11-11 Jean-Louis Martineau - - * 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 * restore-src/amrestore.c: Read empty file. -2004-11-10 Jean-Louis Martineau - - * server-src/driver.c (selectset): Make only one declaration in main. - 2004-11-10 Jean-Louis Martineau * tape-src/tapetype.c: Use new tape. @@ -245,22 +10723,10 @@ * server-src/amstatus.pl.in: Display partial estimate. -2004-11-08 Jean-Louis Martineau - Patch by Orion Poplawski - - * 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 * server-src/diskfile.c (read_diskline): A spindle must be numerical. -2004-10-22 Jean-Louis Martineau - - * Amanda 2.4.5b1 released. - 2004-10-21 Jean-Louis Martineau * server-src/holding.c (rename_tmp_holding): Always rename files. @@ -364,14 +10830,14 @@ * man/amanda.8.in: Document 'estimate' dumptype option. -2004-08-05 Jean-Louis Martineau - - * client-src/amqde.c: Change snprintf for ap_snprintf. - 2004-08-04 Jean-Louis Martineau * server-src/amrmtape.sh.in: Understand history info. +2004-08-03 Jean-Louis Martineau + + * server-src/driver.c: Typo. + 2004-08-03 Jean-Louis Martineau * server-src/amstatus.pl.in: Parse CONTINUE and RQ-MORE-DISK line, @@ -379,12 +10845,19 @@ 2004-08-03 Jean-Louis Martineau - * 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 @@ -421,13 +10894,13 @@ 2004-08-02 Jean-Louis Martineau - * 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 Patch by Paul Bijnens @@ -449,11 +10922,6 @@ * 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 @@ -482,7 +10950,7 @@ 2004-04-26 Jean-Louis Martineau * 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 @@ -508,8 +10976,6 @@ * 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 Fix by Paul Bijnens @@ -534,7 +11000,11 @@ 2004-04-14 Jean-Louis Martineau Fix by John Koyle - * common-src/protocol.c: Fix EAGAIN on Linux. + * common-src/dgram.c: Fix EAGAIN on Linux. + +2004-04-06 Jean-Louis Martineau + + * server-src/amadmin.c (bumpsize): Typo. 2004-04-06 Jean-Louis Martineau @@ -546,7 +11016,6 @@ * 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 @@ -564,7 +11033,7 @@ 2004-03-22 Stefan G. Weichinger - * 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. @@ -576,10 +11045,49 @@ * docs/TOP-TEN-QUESTIONS: New file. +2004-03-17 Jean-Louis Martineau + + * 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 + + * 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 * server-src/amcheck.c: Do labelstr check in correct order. +2004-03-10 Jean-Louis Martineau + + 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 + + * 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 + + * common-src/pipespawn.c (pipespawn): Remove passwdvar and passwdfd. + 2004-02-13 Jean-Louis Martineau Reported by Allen Liu @@ -589,8 +11097,6 @@ * 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 @@ -603,10 +11109,12 @@ * 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 Reported by Jason Brooks @@ -635,8 +11143,6 @@ * 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 @@ -657,22 +11163,17 @@ * configure.in: Call CF_WAIT_INT. * common-src/amanda.h: Try to make waitpid doesn't warn. -2004-02-02 Jean-Louis Martineau - - * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.5b1). - 2004-01-29 Jean-Louis Martineau * Makefile.am (EXTRA_DIST): Add contrib/mkamandisk. 2004-01-29 Christoph Pospiech - * 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 @@ -684,70 +11185,16 @@ * example/amanda.conf.in: Update record documentation. * man/amanda.8.in: Update record documentation. -2004-01-13 Greg Troxel - - * 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 * docs/INSTALL: Add config for xinetd. -2004-01-08 Jean-Louis Martineau - - * Amanda 2.4.4p2 released. - * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.4p2). - - 2004-01-07 Jean-Louis Martineau * 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 - - * 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 - patch by Greg Troxel - and Beverly Schwartz - - 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 * docs/HOWTO-FILE-DRIVER: New file. @@ -764,7 +11211,6 @@ * 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 @@ -772,7 +11218,7 @@ * tape-src/tapeio.c: extern int optind. 2003-11-28 Jean-Louis Martineau - Patch by C.Scheeder * changer-src/sense.c (SenseType): Add "DAT AutoChanger" and "C1537A". @@ -796,11 +11242,6 @@ * server-src/amtape.c (taperscan_slot): Ditto. * server-src/taper.c (taperscan_slot): Ditto. -2003-11-24 Jean-Louis Martineau - - * server-src/driver.c (handle_taper_result): Empty tapeq in TAPE_ERROR - and BOGUS case. - 2003-11-24 Jean-Louis Martineau * server-src/driver.c (handle_taper_result): Always call @@ -863,8 +11304,6 @@ * 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 @@ -885,6 +11324,11 @@ tp->datestamp > 0. * server-src/amadmin.c (disklist_one): Don't print ':' on device line. +2003-10-23 Todd Kover + + * 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 Patch by Paul Bijnens @@ -912,14 +11356,14 @@ 2003-10-07 Jean-Louis Martineau - * 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 - * 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 @@ -927,7 +11371,6 @@ * 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 Fix by John E. Hein @@ -946,29 +11389,21 @@ * changer-src/chg-chio.pl.in: Fix next/prev command. -2003-07-06 Thomas Hepper - * 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 patch by Paul Bijnens * client-src/client_util.c (add_include): Count include with 2 /, Fix descriptor leak. -2003-06-27 Jean-Louis Martineau - - * Amanda 2.4.4p1 released. - * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.4p1). - - 2003-06-25 Jean-Louis Martineau * server-src/amstatus.pl.in: Fix print spacing for idle dumpers. +2003-06-20 Jean-Louis Martineau + + * server-src/holding.c: Fix compiler error. + * server-src/planner.c: Use snprintf. + 2003-06-20 Jean-Louis Martineau patch by Paul Bijnens @@ -988,10 +11423,6 @@ * changer-src/chg-zd-mtx.sh.in: Log the changer file used. -2003-06-14 Jean-Louis Martineau - - * server-src/holding.c: Skip lost+found directories on holding disks. - 2003-06-11 Jean-Louis Martineau * server-src/amverify.sh.in: Do not advance to next tape. @@ -1007,6 +11438,10 @@ * 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 + + * client-src/noop.c: #include "util.h". + 2003-06-05 Jean-Louis Martineau * server-src/amflush.c: Implement new -b and -s options. @@ -1032,7 +11467,7 @@ 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 @@ -1062,6 +11497,10 @@ * server-src/tapefile.c (read_tapelist,parse_tapeline): Fix for previous patch. +2003-05-20 Jean-Louis Martineau + + * common-src/versuff.c.in: Use @VERSION_SUFFIX@. + 2003-05-16 Jean-Louis Martineau * example/amanda.conf.in: Add more amrecover_changer doc. @@ -1076,8 +11515,8 @@ 2003-04-28 Jean-Louis Martineau - * 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 Patch by Darin Dugan @@ -1088,8 +11527,6 @@ * 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 @@ -1119,7 +11556,7 @@ * server-src/amverifyrun.sh.in: Run the amverify command. -2003-04-01 Jean-Louis Martineau +2003-04-02 Jean-Louis Martineau Patch by Paul Bijnens * server-src/reporter.c: Get the filenumber correct. @@ -1128,7 +11565,6 @@ Patch by Paul Bijnens * 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 @@ -1154,7 +11590,7 @@ 2003-03-14 Jean-Louis Martineau - * 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 @@ -1165,46 +11601,46 @@ * changer-src/Makefile.am (libexec_SCRIPTS): Missing \. -2003-03-08 Jean-Louis Martineau - - * NEWS: amrecover_changer works with chg-multi. - 2003-03-08 Jean-Louis Martineau * 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 + + * 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 * 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 - * 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. @@ -1216,7 +11652,6 @@ 2003-03-04 Jean-Louis Martineau * 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 @@ -1224,7 +11659,6 @@ * 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 @@ -1233,7 +11667,7 @@ 2003-02-28 Jean-Louis Martineau Patch by Eric Doutreleau - + * restore-src/amidxtaped.c: Use the device sent by the changer. 2003-02-28 Jean-Louis Martineau @@ -1241,19 +11675,13 @@ * restore-src/amidxtaped.c: Remove lock 'unlink(conf_logfile)' on all failure path. -2003-02-24 Jean-Louis Martineau - Patch by Martin Forssen - - * server-src/changer.c (changer_label): Do not amfree(rest). - -2003-02-24 Jean-Louis Martineau +2003-02-28 Jean-Louis Martineau - * 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 - * 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 @@ -1262,7 +11690,7 @@ 2003-02-20 Jean-Louis Martineau - * 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 @@ -1276,7 +11704,7 @@ 2003-02-12 Jean-Louis Martineau - * 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 @@ -1287,7 +11715,6 @@ * server-src/amcheck.c: New -a option. * man/amcheck.8.in: Document it. - * NEWS: Document it. 2003-02-11 Jean-Louis Martineau @@ -1324,7 +11751,7 @@ * client-src/sendsize.c: New re_size for NetApp. 2003-02-04 Jean-Louis Martineau - Fix by Colin Henein + Fix by Colin Henein * common-src/amanda.h: Fix for the where S_ISDIR is not defined. @@ -1340,11 +11767,6 @@ * man/amtapetype.8.in: Fix example. -2003-01-31 Jean-Louis Martineau - - * Amanda 2.4.4b1 released. - * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.4b1). - 2003-01-31 Jean-Louis Martineau * common-src/amanda.h: #define S_ISDIR if not already defined. @@ -1412,13 +11834,9 @@ 2003-01-23 Jean-Louis Martineau - * 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 - - * server-src/dumper.c (update_dataptr): Loop if rc == 0. - 2003-01-17 Jean-Louis Martineau Do not build chg-scsi-chio, it is buggy. @@ -1449,7 +11867,6 @@ 2003-01-03 Jean-Louis Martineau 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. @@ -1473,20 +11890,6 @@ * tape-src/output-tape.c: Add a ; after f = MT_UNLOAD -2003-01-02 Jean-Louis Martineau - - * 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 - - * 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 Undo patch of 2002-11-27. That doesn't work well for the planner. @@ -1502,28 +11905,22 @@ * 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. @@ -1555,6 +11952,10 @@ * server-src/driver.c (startaflush): New function to start a flush to tape. +2002-12-27 Jean-Louis Martineau + + * server-src/diskfile.c (parse_diskline): Allow skip in dumptype. + 2002-12-23 Jean-Louis Martineau * server-src/amstatus.pl.in: Parse features from PORT-WRITE line. @@ -1566,7 +11967,7 @@ * 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 * amplot/amplot.awk: Parse line with features, parse ENDFLUSH line. @@ -1580,12 +11981,7 @@ * amplot/amplot.awk: Parse newer log lines. -2002-12-12 Jean-Louis Martineau - - * client-src/selfcheck.c: Typo. - -2002-12-11 Jean-Louis Martineau - +2002-12-11 Jean-Louis Martineau * server-src/reporter.c (output_stats): Typo. 2002-12-09 Jean-Louis Martineau @@ -1628,6 +12024,16 @@ * server-src/amadmin.c: Fix for newer days_diff. * server-src/planner.c: Fix for newer days_diff. +2002-11-26 Jean-Louis Martineau + + * 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 * tape-src/tapetype.c: Cast time_t to long for printing. @@ -1639,7 +12045,7 @@ 2002-11-25 Jean-Louis Martineau - * server-src/planner.c (delay_dumps): Use ap_snprintf. + * server-src/planner.c (delay_dumps): Use snprintf. 2002-11-25 Jean-Louis Martineau @@ -1648,13 +12054,7 @@ 2002-11-24 Jean-Louis Martineau - * 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 @@ -1681,6 +12081,19 @@ * server-src/reporter.c: Fix for LPRCMD not defined. +2002-11-14 Marc Mengel + + 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 Patch by Orion Poplawski @@ -1701,19 +12114,19 @@ * 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. @@ -1775,8 +12188,8 @@ 2002-11-04 Jean-Louis Martineau - * 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 @@ -1791,6 +12204,7 @@ * 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. @@ -1798,7 +12212,7 @@ * 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 @@ -1834,9 +12248,9 @@ is_local_fstype): remove Prototype. 2002-10-27 Jean-Louis Martineau - Patch by Paul Bijnens + Patch by Paul Bijnens - * 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 @@ -1844,10 +12258,10 @@ * restore-src/amrestore.c: New '-f ' flag, Do a rewind and 'fsf ' if -f is set. * man/amrestore.8: Document -f flag. - + 2002-10-27 Jean-Louis Martineau - * 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. @@ -1865,7 +12279,7 @@ fe_amindexd_fileno_in_OLSD or fe_amindexd_fileno_in_ORLD are set. 2002-10-27 Jean-Louis Martineau - Patch by Doug Kingston + patch by Doug Kingston * configure.in (NEED_PATH_ENV, IGNORE_UID_CHECK, IGNORE_FSTAB, DONT_SUID_ROOT): Defined if on *-pc-cygwin. @@ -1907,18 +12321,9 @@ * recover-src/extract_list.c (READ_TIMEOUT): Increased to 240*60. -2002-10-07 Jean-Louis Martineau - - * Amanda 2.4.3 released. - * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.3). - 2002-09-30 Jean-Louis Martineau - * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined. - -2002-09-19 Jean-Louis Martineau - - * NEWS: Changes in release 2.4.3. + * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined. 2002-09-19 Jean-Louis Martineau @@ -1962,20 +12367,20 @@ 2002-09-10 Jean-Louis Martineau - * 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 * 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 +2002-09-06 Jean-Louis Martineau * common-src/amfeatures.c (am_set_default_feature_set): fe_rep_options_sendbackup_options is a default feature. -2002-09-06 Jean-Louis Martineau +2002-09-06 Jean-Louis Martineau * server-src/amstatus.pl.in: Sort a disk in datestamp order. @@ -1988,30 +12393,36 @@ * server-src/reporter.c: Fix compilation error if LPRCMD is not defined. -2002-08-29 Jean-Louis Martineau - - * 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 Patch by Jason Brooks * 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 - * 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 - * 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 @@ -2046,12 +12457,13 @@ * common-src/amanda.h: Fix bad #define. 2002-07-02 Jean-Louis Martineau - Patch by David Munro + Patch by + David Munro * common-src/sl.c (new_sl): Alloc (sl_t) instead of (sl_t *). - + 2002-06-10 Jean-Louis Martineau - Bug reported by + Bug reported by Jonathan R. Johnson * server-src/reporter.c: Fix psfname filename. @@ -2080,13 +12492,12 @@ 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 - * 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 @@ -2110,7 +12521,7 @@ 2002-04-22 Jean-Louis Martineau - * 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 @@ -2127,29 +12538,6 @@ * client-src/sendbackup.c: Ditto. * client-src/sendsize.c: Ditto. -2002-04-20 Thomas Hepper - * 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 * client-src/client_util.c (parse_g_options) New function to parse @@ -2161,15 +12549,15 @@ 2002-04-19 Jean-Louis Martineau - * server-src/diskfile.c: Improve message for missing features. + * server-src/diskfile.c: Improve message for missing features. 2002-04-19 Jean-Louis Martineau 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. @@ -2179,6 +12567,11 @@ * server-src/diskfile.h (optionstr): Change prototype. * client-src/sendsize.c: Fix compiler warning. +2002-04-18 Jean-Louis Martineau + + * common-src/amfeatures.c: Include "amfeatures.h" + * common-src/rsh-security.c: Don't assert on undefined variable. + 2002-04-17 Jean-Louis Martineau * common-src/amfeatures.c: Renamed from features.c @@ -2190,6 +12583,7 @@ * 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. @@ -2212,11 +12606,16 @@ * 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 @@ -2228,13 +12627,17 @@ 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 @@ -2250,14 +12653,48 @@ * 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 + + * 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 @@ -2281,6 +12718,11 @@ * 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 @@ -2294,15 +12736,15 @@ * 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. @@ -2333,9 +12775,9 @@ 2002-03-25 Jean-Louis Martineau - * 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 @@ -2356,11 +12798,6 @@ * 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. @@ -2381,28 +12818,10 @@ * 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) @@ -2443,6 +12862,21 @@ * 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 + + * 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 * server-src/tapefile.c (write_tapelist): Write to a temp file and @@ -2500,27 +12934,27 @@ 2002-03-11 Jean-Louis Martineau * 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 * 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 * 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 - * Amanda 2.4.3b3 released - * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.3b3) - -2002-03-08 Jean-Louis Martineau - - * 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) @@ -2575,7 +13009,7 @@ 2002-03-02 Jean-Louis Martineau - * 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 @@ -2593,12 +13027,12 @@ 2002-02-16 Jean-Louis Martineau - * 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 - * 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 @@ -2607,7 +13041,7 @@ 2002-02-15 Jean-Louis Martineau - * 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 @@ -2619,16 +13053,16 @@ 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 @@ -2652,22 +13086,28 @@ * 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 - * 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 - * 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 + + * 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. @@ -2685,7 +13125,11 @@ 2002-02-12 Jean-Louis Martineau - * common-src/pipespawn.c (pipespawnv): New funtion taking an + * common-src/pipespawn.c (pipespawnv): Typo, ap_snprintf -> snprintf. + +2002-02-12 Jean-Louis Martineau + + * common-src/pipespawn.c (pipespawnv): New funtion taking an argv argument. * common-src/pipespawn.h (pipespawnv): Prototype. @@ -2713,6 +13157,10 @@ * changer-src/chg-zd-mtx.sh.in: Don't use '^' in expr match argument. +2002-02-11 Jean-Louis Martineau + + * 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 @@ -2736,14 +13184,15 @@ * common-src/alloc.c: Fix type mismatch issues discovered by splint (www.splint.org). Compliments of jens persson . + * 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. @@ -2764,7 +13213,11 @@ 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. @@ -2802,7 +13255,7 @@ 2002-02-03 Jean-Louis Martineau - * 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) @@ -2812,9 +13265,9 @@ running OSF1 v5.1 2002-02-01 Jean-Louis Martineau - Reported by Roland E. Lipovits + Reported by Roland E. Lipovits - * 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 @@ -2833,7 +13286,6 @@ * 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 @@ -2855,40 +13307,22 @@ * 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 - - * 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 * 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 @@ -2899,19 +13333,6 @@ * server-src/planner.c: Check for dp->todo. -2002-01-10 Thomas Hepper - - * 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 Patch by Harlan Stenn @@ -2921,6 +13342,7 @@ * 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 @@ -2950,9 +13372,7 @@ 2002-01-04 Jean-Louis Martineau - * 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 @@ -2961,16 +13381,21 @@ * 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 + Reported by + + * common-src/rsh-security.c: Fix for RSH_DEBUG. + 2001-12-31 Jean-Louis Martineau - * 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 @@ -2978,6 +13403,12 @@ * configure.in: Add missing [. +2001-12-30 Jean-Louis Martineau + Patch by Jason Thomas + and Eric Siegerman + + * common-src/bsd-security.c (check_user_amandahosts): improve message. + 2001-12-30 Jean-Louis Martineau * server-src/driver.c: Do not go in degraded mode in nodump mode. @@ -3001,7 +13432,7 @@ * 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. @@ -3011,45 +13442,36 @@ 2001-12-29 Jean-Louis Martineau - * 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 - * configure.in: Set MAX_TAPE_BLOCK_KB on linux. + * configure.in: Set MAX_TAPE_BLOCK_KB on linux 2001-12-29 Jean-Louis Martineau Patch by Blaz Zupan * changer-src/chg-zd-mtx.sh.in: typo. -2001-12-20 Thomas Hepper - * 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 - * 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 Patch by Henning Schmiedehausen - * 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 - - * docs/Makefile.am (pkgdata_DATA): Include RAIT and VTAPE-API. - 2001-12-12 Jean-Louis Martineau * server-src/amverify.sh.in: Check that @AMANDA_TMPDIR@ exist. @@ -3075,15 +13497,6 @@ * server-src/amstatus.pl.in: Fixup for estimate, write flush line. -2001-12-09 Jean-Louis Martineau - - * server-src/reporter.c (output_summary): Set origsize and - outsize correctly. - -2001-12-09 Jean-Louis Martineau - - * server-src/driver.c (start_some_dumps): Fixup length of dumporder. - 2001-12-07 Jean-Louis Martineau * recover-src/extract_list.c: You can change the tape device @@ -3091,7 +13504,7 @@ 2001-12-07 Jean-Louis Martineau - * 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 @@ -3099,20 +13512,19 @@ * example/amanda.conf.in: typo. 2001-12-07 Jean-Louis Martineau - + Patch by Roland E. Lipovits * example/amanda.conf.in: typo. 2001-12-04 Jean-Louis Martineau - * 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 +2001-11-27 Jean-Louis Martineau + Patch by Michael D. Beynon - * 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 @@ -3120,7 +13532,7 @@ 2001-11-10 Jean-Louis Martineau - * 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. @@ -3128,8 +13540,7 @@ * server-src/amdump.sh.in: Write a datestamp on stderr. * server-src/amstatus.pl.in: Works with autoflush. -2001-11-08 Jean-Louis Martineau - +2001-11-08 Jean-Louis Martineau * server-src/conffile.c (autoflush): New configuration options. * server-src/conffile.h (autoflush): New configuration options. * man/amanda.8.in: Document it. @@ -3172,56 +13583,12 @@ * 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 - - * 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 - - * 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 - - * 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. @@ -3249,7 +13616,7 @@ * 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 @@ -3305,15 +13672,6 @@ * 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 @@ -3333,6 +13691,10 @@ * 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 @@ -3357,12 +13719,6 @@ 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) @@ -3392,7 +13748,9 @@ * 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) @@ -3408,14 +13766,15 @@ * 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. @@ -3435,8 +13794,14 @@ * 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 @@ -3463,14 +13828,6 @@ * 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" @@ -3491,11 +13848,9 @@ * docs/TAPE.CHANGER: Changes from Ben Lewis (bhlewis@purdue.edu) to document the new (but optional) searchable features. -2001-07-20 John R. Jackson +2001-07-19 John R. Jackson - * 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 @@ -3579,21 +13934,8 @@ 2001-07-10 John R. Jackson - * 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 @@ -3692,6 +14034,15 @@ redundant "OISD /" exchange. Change "Trying" to "Trying host" to distinguish this from disk attempts. +2001-06-19 Thomas Hepper + * 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 * recover-src/extract_list.c: Do not pass a 'b' (blocking) factor @@ -3708,17 +14059,85 @@ * changer-src/chg-manual.sh.in: Add yet another online regex. Found by George Herson . +2001-06-12 Thomas Hepper + * 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 + * 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 + * 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 + * changer-src/scsi-changer-driver.c: Renamed Tape_Eject to Tape_Ioctl + incl. change of passwd parameter. + +2001-06-04 Thomas Hepper + * 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 * 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 + * 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 * 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 . +2001-05-28 Thomas Hepper + * 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 * client-src/patch-system.sh.in: Missed a reference to kamanda in the @@ -3731,19 +14150,13 @@ inetd. Compliments of Tom Schutter . Add the TCP port for amandad for future use. -2001-05-15 John R. Jackson - - * 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 * 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 - - * 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 @@ -3751,25 +14164,56 @@ 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 - - * configure.in: AM_INIT_AUTOMAKE(amanda, 2.4.2p2) - -2001-05-10 John R. Jackson - - * changer-src/scsi-changer-driver.c: Fix routine name in diagnostic - messages for DLT4000Eject. - 2001-05-07 John R. Jackson * 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 + * 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 - * 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 + * 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 + * 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 + + * 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 * changer-src/chg-rth.pl.in: Add exec_prefix back since it is usually @@ -3788,18 +14232,39 @@ * client-src/sendbackup-gnutar.c: Ditto. * client-src/sendsize.c: Ditto. -2001-04-21 John R. Jackson - - * tape-src/output-tape.c: Fix IRIX field reference (patch from Marc - W. Mengel ). +2001-04-15 Thomas Hepper + * Makefile.am: Added contrib/gsc files to EXTRA_DIST + +2001-04-15 Thomas Hepper + * 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 + *contrib/gsc: Generic SCSI interface for AIX, used by chg-scsi 2001-04-13 John R. Jackson * 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 +2001-04-11 Jean-Louis Martineau * client-src/getfsent.h (search_fstab): New prototype. * client-src/getfsent.c (search_fstab): New arg check_dev, skip @@ -3807,8 +14272,8 @@ * 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 @@ -3816,6 +14281,19 @@ * docs/INSTALL: Update location to GNUPLOT per Lars Hecking . +2001-04-09 Thomas Hepper + * 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 + + * client-src/getfsent.c (search_fstab): Don't skip entry just + because device stats failed. + 2001-04-07 Jean-Louis Martineau * config/config.guess: Upgrade from ftp://ftp.gnu.org/pub/gnu/config @@ -3830,20 +14308,9 @@ * Makefile.am: Remove *.test.c from the distribution. -2001-04-02 Jean-Louis Martineau - 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 - * NEWS: Initial notes for 2.4.2p2. + * NEWS: Update some of the 2.4.2 items. 2001-03-29 Jean-Louis Martineau @@ -3884,6 +14351,7 @@ * 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. @@ -3916,21 +14384,26 @@ * 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 * recover-src/extract_list.c (extract_files_child): Fix xfsrestore argument list processing. +2001-03-10 Jean-Louis Martineau + + * server-src/dumper.c (read_datafd): set errstr and return on + databuf_write error. + +2001-03-10 Jean-Louis Martineau + + * 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 * server-src/taper.c: Initialize tape_fd to -1 and test in a couple @@ -3941,11 +14414,32 @@ 2001-03-08 Jean-Louis Martineau Reported by Eric Schnoebelen - * server-src/changer.c (): Fix fd leak. + * server-src/changer.c (changer_command): Fix fd leak. + +2001-03-05 Jean-Louis Martineau + + * 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 + + * 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 - * 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. @@ -3976,11 +14470,26 @@ 2001-02-27 John R. Jackson - * 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-25 Jean-Louis Martineau + Patch by Alex Pilosov -2001-02-26 Jean-Louis Martineau + * 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 + Patch by Joe Rhett + and Jason Hollinden - * 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 @@ -3989,21 +14498,43 @@ 2001-02-25 Jean-Louis Martineau - * 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 + + * 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 - * 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 - * 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 + * 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 + + * 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 * server-src/diskfile.c: Fix core dump in test program. @@ -4015,7 +14546,16 @@ allows the status file to be moved to the main directory. * man/amanda.8.in: Document these changes. -2001-02-05 John R. Jackson +2001-02-08 Thomas Hepper + + * 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 * man/amanda.8.in: Fix mailto to space separated, not comma. @@ -4033,11 +14573,21 @@ other Makefile.am files. * tape-src/Makefile.am: Add CLEANFILES rule to remove *.test.c. +2001-02-03 John R. Jackson + + * 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 * server-src/reporter.c: Fix problem with enum being unsigned on some systems. +2001-01-29 John R. Jackson + + * tape-src/tapeio.c (tape_fsf): Go back to using snprintf as this + is now "the way". + 2001-01-29 John R. Jackson * tape-src/output-tape.c (tape_tapefd_status): Convert flag values @@ -4055,10 +14605,6 @@ * server-src/Makefile.am: Ditto. * tape-src/Makefile.am: Ditto. -2001-01-24 John R. Jackson - - * docs/VTAPE-API: Added. - 2001-01-23 John R. Jackson * configure.in: Add tapeio switch from Marc Mengel , @@ -4135,6 +14681,14 @@ * tape-src/tests/testdist: Ditto. * tape-src/tests/torture: Ditto. +2001-01-24 John R. Jackson + + * client-src/amandad.c: Improve packet logging. + +2001-01-23 Jean-Louis Martineau + + * server-src/driver.c (start_some_dumps): typo. + 2001-01-23 Jean-Louis Martineau * server-src/driverio.h (sched_t): new field no_space. @@ -4150,27 +14704,67 @@ * 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 +2001-01-22 Marc W. Mengel - * 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 - * NEWS: 2.4.2p1 is a bug fix release. + * docs/INSTALL: Notes about tar-1.13.19 -2001-01-20 Jean-Louis Martineau +2001-01-17 Thomas Hepper + + * 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 - * 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 + + * server-src/diskfile.c (match_disklist): Return if no args. + +2001-01-07 Jean-Louis Martineau + + * server-src/diskfile.c (match_disklist): Fix. + +2001-01-07 Jean-Louis Martineau + + * server-src/diskfile.c (match_disklist): Updated for + [host [disk]*]* syntax. + +2001-01-07 Jean-Louis Martineau + + * 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-07 Thomas Hepper +2001-01-06 Jean-Louis Martineau - * 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_word): Support for leading ^ and + trailing $. 2001-01-04 John R. Jackson @@ -4178,6 +14772,15 @@ 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 + + * 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 * client-src/killpgrp.c: Calls to error() do not need a newline. @@ -4193,7 +14796,8 @@ * 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 @@ -4212,15 +14816,120 @@ * server-src/amstatus.pl.in: Better support for TRY-AGAIN and ABORT-FINISHED result. +2001-01-02 Jean-Louis Martineau + + * 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 Patch by Andreas F Mueller * server-src/amadmin.c (force_no_bump_one): Fix message. +2001-01-01 Jean-Louis Martineau + + * 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 + + * 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 + + * configure.in: Don't check krb5 include if krb5 is not selected. + +2000-12-31 Jean-Louis Martineau + + * tape-src/Makefile.am (noinst_HEADERS): Add output-rait.h + +2000-12-31 Jean-Louis Martineau + + * server-src/amadmin.c (diskloop): typo. + +2000-12-31 Jean-Louis Martineau + + * 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 + + * server-src/amflush.c (main):log DISK after checking if logfile exist. + +2000-12-30 John R. Jackson + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 * 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 + * 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 @@ -4235,33 +14944,29 @@ * man/amcheck.8.in: Add mention of tapelist directory and do some other directory writable cleanup. -2000-12-13 John R. Jackson - - * docs/Makefile.am: Removing entries for missing RAIT/VTAPE-API files. - -2000-12-13 John R. Jackson - - * 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 * client-src/sendbackup-gnutar.c: Fix regex pattern to accept blanks or tabs. -2000-12-12 John R. Jackson and Marc Mengel +2000-12-12 John R. Jackson * 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 + + * 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. @@ -4295,24 +15000,10 @@ (plain_tapefd_status): Likewise. (plain_tapefd_weof): Likewise. -2000-12-07 Thomas Hepper - - 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 - server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami problem. - -2000-12-04 John R. Jackson - - * 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 @@ -4327,10 +15018,45 @@ * man/amrestore.8: Document the new option, the compression level, and clean up some nroff issues. -2000-11-25 Jean-Louis Martineau +2000-11-30 Marc Mengel + + * 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 + + * 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 * contrib/dbbackup.ksh: Deal with adm being a symlink. @@ -4415,12 +15141,6 @@ * 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 - - * 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 . - 2000-10-30 Jean-Louis Martineau * client-src/selfcheck.c (check_disk): Write an appropriate @@ -4429,13 +15149,32 @@ 2000-10-29 Jean-Louis Martineau - * 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 + + * server-src/driver.c (handle_chunker_result): don't check + pending_aborts, call event_release() ob ABORT-FINISHED. + +2000-10-29 Jean-Louis Martineau + + * server-src/chunker.c (databuf_flush): workaround to prevent a + hang on a ABORT command. + +2000-10-29 Jean-Louis Martineau + + * 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 + + * server-src/chunker.c: chunker was broken after RQ-MORE-DISK. + 2000-10-28 Jean-Louis Martineau - * 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 @@ -4446,45 +15185,20 @@ 2000-10-28 Jean-Louis Martineau reported by The Hermit Hacker - * 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 * docs/INDEXING: doc updated. -2000-10-24 Jean-Louis Martineau - - * 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 - - * 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 * AUTHORS: add Thomas Hepper. -2000-10-14 Thomas Hepper +2000-10-23 Jean-Louis Martineau - * 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 @@ -4497,18 +15211,22 @@ 2000-10-11 Jean-Louis Martineau - * 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 - * 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 * server-src/taper.c: amfree(strclosing). +2000-10-10 Jean-Louis Martineau + + * server-src/driver.c: typo. + 2000-10-10 Jean-Louis Martineau * configure.in: --with-samba-user is deprecated. @@ -4519,15 +15237,10 @@ * 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 - - * server-src/dumper.c (write_tapeheader): set errno = ENOSPC - and return -1 if is not fully written. 2000-10-10 Jean-Louis Martineau - * 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 @@ -4535,13 +15248,8 @@ * 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 - - * 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 @@ -4570,16 +15278,6 @@ * man/amanda.8.in: add all pages in the SEE ALSO section. -2000-09-24 Jean-Louis Martineau - - * client-src/sendbackup.c: set estr=NULL if the exclude - file doesn't exist. - -2000-09-24 Jean-Louis Martineau - - * client-src/sendbackup-gnutar.c: use exclude string estr - instead of "estr". - 2000-09-24 Jean-Louis Martineau * man/amreport.8.in: amreport does not rotate the log. @@ -4594,10 +15292,6 @@ -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 - - * server-src/amadmin.c (usage): show disklist command. - 2000-09-24 Jean-Louis Martineau * example/amanda.conf.in: chunk should not be larger than @@ -4605,7 +15299,7 @@ 2000-09-24 Jean-Louis Martineau - * 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. @@ -4652,11 +15346,19 @@ * server-src/reporter.c (output_tapeinfo): test reversed for run_tapes. -2000-08-01 Alexandre Oliva - - * client-src/sendbackup-gnutar.c (start_backup) : - NULL-terminate it correctly. - +2000-07-31 Thomas Hepper + * 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 * changer-src/chg-chio.pl.in (do_time): fix chg-chio.pl timestamp @@ -4668,58 +15370,135 @@ memory areas on an error condition. Found by Patrik Andersin . -2000-07-17 Jean-Louis Martineau - - * client-src/sendsize.c (getsize_dump,getsize_gnutar): set - dumppid to the return value of pipespawn. - -2000-06-27 Jean-Louis Martineau - - * client-src/sendbackup.c (parse_options): set efile. - -2000-06-26 Jean-Louis Martineau +2000-07-17 Thomas Hepper + * 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 + * 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 + * 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 + * 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 * server-src/list_dir.c (add_dir_list_item): add at head of list. +2000-06-24 Thomas Hepper + * 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 * server-src/amlabel.c (main): Do not amfree(config_name). -2000-06-03 Thomas Hepper - - * 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 * server-src/holding.c (pick_datestamp): convert ch to upper. +2000-05-29 Jean-Louis Martineau + + * server-src/driver.c (handle_dumper_result, handle_chunker_result): + delay call to dumper_result(). + 2000-05-28 Alexandre Oliva * client-src/sendbackup-gnutar.c: Ignore `socket ignored' GNU tar messages. -2000-05-27 Ian Turner - * 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 + + * 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 + + * server-src/driver.c (chunker_program): new variable. 2000-04-20 Jean-Louis Martineau - * server-src/amstatus.pl.in: typo + * server-src/amstatus.pl.in: handle chunker line. 2000-04-20 Alexandre Oliva * recover-src/Makefile.am (LDADD): Removed libamtape. Reported by Paul Yeatman +2000-04-17 Jean-Louis Martineau + + * 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 * server-src/taper.c: don't crash if the tapelist file @@ -4733,7 +15512,7 @@ should have been `InfoFile'. 2000-04-09 Davide Marchignoli - + * server-src/conffile.h (confparm_t): Added CTIMEOUT. * server-src/conffile.c: Added ctimeout support. Default to 30. * example/amanda.conf.in: Likewise. @@ -4749,34 +15528,25 @@ 2000-04-09 Alexandre Oliva * server-src/amlabel.c (main): Check label *after* writing end mark. - + 2000-03-06 Jean-Louis Martineau - * 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 * server-src/amstatus.pl.in: "0 dumpers busy" should be "0 dumper busy". -2000-02-08 Thomas Hepper - - * 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 * server-src/amadmin.c (force_one, force_bump_one): FORCE_FULL and FORCE_BUMP are mutually exclusive. -2000-01-30 Thomas Hepper +2000-01-31 Jean-Louis Martineau - * 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 @@ -4842,36 +15612,6 @@ * recover-src/amrecover.c (tape_device_name): Default to server-determined default. -2000-01-17 Thomas Hepper - * changer-src/scsi-changer-driver.c : Typo in CheckMove fixed . - -2000-01-17 Thomas Hepper - - * 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 - - * server-src/driver.c (handle_dumper_result): When failed, set - dp->inprogress to 0, not 1. - 2000-01-13 Alexandre Oliva * configure.in: Recognize alpha*-*-linux-* and sparc*-*-linux-*. @@ -4884,7 +15624,7 @@ 2000-01-06 David Wolfskill * docs/TAPETYPES: Typo. - + 2000-01-06 Alexandre Oliva * docs/TAPETYPES: Removed all tapetype entries. Pointed to @@ -4914,6 +15654,11 @@ * client-src/sendbackup-gnutar.c (re_table): Update for Samba 2.0.6. +1999-11-25 John R. Jackson + + * server-src/amflush.c (main): conf_logdir should not be free'd + (found by Espen H Wiborg ). + 1999-11-10 John R. Jackson * recover-src/extract_list.c: report the tape server host in the @@ -4960,6 +15705,11 @@ * 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 + + * server-src/amadmin.c (main): Second occurrence of CNF_TAPELIST + should have been CNF_INFOFILE; fixed. + 1999-11-02 Alexandre Oliva * common-src/amflock.c (struct flock): Do not assume the fields are @@ -4974,14 +15724,14 @@ * contrib/set_prod_link.pl: Create the links for a configuration with --with-suffix. -1999-11-02 Nicolas Mayencourt +1999-11-02 David M. Olsen - * 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 +1999-10-26 Nicolas Mayencourt - * 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 @@ -5048,9 +15798,7 @@ 1999-10-02 John R. Jackson - * 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 @@ -5069,6 +15817,27 @@ * configure.in: wrong variable when processing LIBRARY_DIRS. Fix compliments of John M. Vogtle . +1999-09-20 John R. Jackson + + * 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 + + * 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 * server-src/amverify.sh.in: this script is important enough it should @@ -5087,137 +15856,53 @@ are between those the caller passed and make sure port 0 does not accidentally get requested, which returns a non-privileged port. * common-src/dgram.c: bind_portrange last port argument is inclusive. - * common-src/stream.c: ditto. - * recover-src/amrecover.c: ditto. - * recover-src/extract_list.c: ditto. - -1999-09-19 John R. Jackson - - * server-src/driver.c: do not send a FILE_WRITE to the taper when the - tape queue is empty during a TRYAGAIN (driver core dumped). - -1999-09-19 John R. Jackson - - * server-src/taper.c: fix protocol problems when out of tape. Add - FAKE_TAPE_ERROR debugging code to simulate tape errors. Fix problem - with command line argument processing. - -1999-09-18 John R. Jackson - - * configure.in: several compress/uncompress variables were not being - set properly. - -1999-09-18 John R. Jackson - - * client-src/sendbackup.c: pclose returns a child exit status of the - pipe, not an errno, so do not try to strerror it. - Have the index child process exit with the pclose exit code. - Treat index failures as strange rather than fatal so the dump gets - fully processed. It's more important to have the dump image than - to skip it just because indexing had a (possibly unrelated) problem. - -1999-09-15 John R. Jackson - - * server-src/amtoc.pl.in: handle an image failing on one tape and - succeeding on the next. - -1999-09-15 John R. Jackson - - * server-src/amstatus.pl.in: generalize the "driver: state" parsing - so it can handle current and future information. - -1999-09-15 Jean-Louis Martineau - - * server/driver.c (main): use the holding disk even if the - datestamped directory already exist. - -1999-09-14 Alexandre Oliva - - * 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 - - * 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 - - * server-src/amverify.sh.in: protect against uname not returning - anything. - -1999-09-12 Jean-Louis Martineau - - * 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 - - * server-src/reporter.c: sigh -- it was right the first time. + * common-src/stream.c: ditto. + * recover-src/amrecover.c: ditto. + * recover-src/extract_list.c: ditto. -1999-09-11 John R. Jackson +1999-09-19 John R. Jackson - * server-src/reporter.c: lost a few too many lines with the amlogroll - changes to amreport. + * server-src/driver.c: do not send a FILE_WRITE to the taper when the + tape queue is empty during a TRYAGAIN (driver core dumped). -1999-09-11 John R. Jackson +1999-09-19 John R. Jackson - * server-src/amindex.c: minor memory leak. + * server-src/taper.c: fix protocol problems when out of tape. Add + FAKE_TAPE_ERROR debugging code to simulate tape errors. Fix problem + with command line argument processing. -1999-09-11 John R. Jackson +1999-09-18 John R. Jackson - * server-src/amcheck.c: remove duplicated code. + * configure.in: several compress/uncompress variables were not being + set properly. -1999-09-11 John R. Jackson +1999-09-18 John R. Jackson - * 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. + * client-src/sendbackup.c: pclose returns a child exit status of the + pipe, not an errno, so do not try to strerror it. + Have the index child process exit with the pclose exit code. + Treat index failures as strange rather than fatal so the dump gets + fully processed. It's more important to have the dump image than + to skip it just because indexing had a (possibly unrelated) problem. -1999-09-10 John R. Jackson +1999-09-15 John R. Jackson - * 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. + * server-src/amtoc.pl.in: handle an image failing on one tape and + succeeding on the next. -1999-09-10 John R. Jackson +1999-09-15 John R. Jackson - * client-src/sendsize.c: typo in previous patch and pick a better - variable name (ala other similar code). + * server-src/amstatus.pl.in: generalize the "driver: state" parsing + so it can handle current and future information. -1999-09-10 John R. Jackson +1999-09-15 John R. Jackson - * 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 +1999-09-14 John R. Jackson * configure.in: Add --with-tmpdir to ./configure and use it for all Amanda temporary files. Default --with-dbgdir to --with-tmpdir. @@ -5251,12 +15936,10 @@ * 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. @@ -5279,6 +15962,7 @@ * 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. @@ -5294,22 +15978,43 @@ * server-src/tapefile.c: ditto. * server-src/taper.c: ditto. -1999-09-05 John R. Jackson +1999-09-14 Alexandre Oliva - * common-src/Makefile.am: change OBJ_EXTENSION to OBJEXT in line - related to the "security" test tool. + * 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. + + * 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 + + * 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 * 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 @@ -5320,21 +16025,10 @@ * 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 - - * client-src/amandad.c: clean up a couple of debugging messages. - -1999-09-05 John R. Jackson - - * recover-src/amrecover.c: add missing ntohs calls. Reported by - Kent Kalnasy - * recover-src/extract_list.c: ditto. - 1999-09-05 John R. Jackson * configure.in: make sure the dump and restore programs are defined @@ -5389,49 +16083,23 @@ (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 - * 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 - Patch by Peter Conrad +1999-08-23 John R. Jackson - * 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 @@ -5467,7 +16135,7 @@ Reported by Brian Cuttler 1999-08-15 Jon LaBadie - + * tape-src/tapetype.c: Speed it up by using larger sections in the second pass. @@ -5512,71 +16180,23 @@ not-that-portable `head -1'. Reported by Andrew Lare -1999-06-20 Thomas Hepper - - * 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 * client-src/sendbackup-dump.c (re_table): Match Solaris vxdump output. -1999-06-18 Thomas Hepper - - * 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-17 Thomas Hepper +1999-06-18 Jean-Louis Martineau - * configure.in: Add new example files amanda.conf.chg-scsi, - chg-scsi-linux.conf, chg-scsi-solaris.conf, chg-scsi-hpux.conf + * server-src/dumper.c (read_indexfd): typo - * 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 + * 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 @@ -5655,6 +16275,47 @@ slightly different. Reported by Julian Stevens +1999-06-02 Mike Grupenhoff + + * 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 + + * 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 + + * 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 + + * server-src/taper.c (write_buffer): assert properly + 1999-06-01 John Williams * changer-src/scsi-hpux.c (eject_tape): Enable it, it works. @@ -5671,12 +16332,35 @@ * config/acconfig.h: Add UDPPORTRANGE. * common-src/dgram.c: Implement it. +1999-05-27 Mike Grupenhoff + + * 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 * 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 + + * 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 + + * 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 * docs/FAQ (tar-patch): Mention sparse file problem. @@ -5690,12 +16374,16 @@ * 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 + + * server-src/amandad.c (state2str): string "s_processrep" is 13 + caracters. 1999-05-24 Mike Grupenhoff @@ -5703,6 +16391,23 @@ out the error message we generate, instead of whatever junk happens to be in the buffer. +1999-05-24 Mike Grupenhoff + + * 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 + + * 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 + + * 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 * server-src/amindex.h: Keep P macro expression in a single line. @@ -5726,6 +16431,16 @@ use value from the infofile only the datestamp are equal. Write all available value. +1999-05-18 Mike Grupenhoff + + * common-src/strerror.c (strerror): restructure so that it doesn't + need to malloc. + +1999-05-17 Mike Grupenhoff + + * common-src/genversion.c (prvar): prototype declared it static, + but actual function was still extern. + 1999-05-15 Jean-Louis Martineau * server-src/planner.c (pick_inclevel): check for base_level+1 if @@ -5742,19 +16457,188 @@ 1 on success. * server-src/driverio.h (taper_cmd, dumper_cmd): prototype. +1999-05-14 Mike Grupenhoff + + * server-src/dumper.c: make prototypes consistent, (putresult): + make first arg const. + +1999-05-14 Mike Grupenhoff + + * 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 + + * 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 + + * 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 + + * server-src/find.h: properly prototype find_log() + * server-src/amtrmlog.c (main): prototype. find_log() takes + no arguments. + +1999-05-14 Mike Grupenhoff + + * 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 + + * 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 + + * 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 + + * client-src/amandad.c (action_t): consolidate A_PKTTIMEOUT and + A_REPTIMEOUT into just A_TIMEOUT. + +1999-05-14 Mike Grupenhoff + + * 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 * docs/TAPE.CHANGERS (chg-rth): URL for chs is no longer valid. +1999-05-12 Mike Grupenhoff + + * 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 + + * common-src/protocol.c (proto_t): don't need prev and next ptrs + anymore + +1999-05-11 Mike Grupenhoff + + * 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 + + * 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 + + * 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 + + * client-src/amandad.c (main): call initgroups(), and also set + the real gid. + +1999-05-10 Mike Grupenhoff + + * 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 + + * 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 * client-src/sendsize.c (getsize_dump): print out the strerror if we can't exec killpgrp. +1999-05-10 Mike Grupenhoff + + * server-src/dumper.c (add_msg_data): first two arguments + to memmove() were backwards. + 1999-05-07 Jean-Louis Martineau * example/amanda.conf.in: typo +1999-05-07 Mike Grupenhoff + + * 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 + + * 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 * server-src/amverify.sh.in (pecho): new function. Like echo @@ -5765,6 +16649,47 @@ flags and also know if it supports \r. So we just punt and use perl. +1999-05-04 Mike Grupenhoff + + * 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 + + * 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 + + * 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 + + * 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 * server-src/planner.c (when_overwrite): return a big number (1024) @@ -5775,6 +16700,39 @@ * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated from libtool 1.3. +1999-04-29 Mike Grupenhoff + + * 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 + + * 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 + + * 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 + + * common-src/rsh-security.c (conn_read_callback): cast + event_wakeup() arg to event_id_t. + 1999-04-25 Alexandre Oliva * common-src/versuff.c.in: Adjust constness to match version.h. @@ -5785,6 +16743,23 @@ * server-src/amdump.sh.in: execute amtrmlog. +1999-04-24 Jean-Louis Martineau + + * 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 + + * 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 * configure.in: add --with-broken-fsf to use a read() loop instead @@ -5792,37 +16767,411 @@ * config/acconfig.h: ditto * tape-src/tapeio.c (tapefd_fsf): ditto -1999-04-22 Alexandre Oliva +1999-04-22 Alexandre Oliva + + * 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 + + * 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 + + * docs/WISHLIST: Global reformat. Removed fixed issues. Added + auto-flush mode. + +1999-04-17 Jean-Louis Martineau + + * server-src/server_util.c: use snprintf instead of ap_snprintf. + +1999-04-17 Jean-Louis Martineau + + * 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 + + * common-src/bsd-security.c: this doesn't need queue.h + +1999-04-17 Mike Grupenhoff + + * 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 + + * dumper-src/gnutar.pl.in: add DUMPER_DIR to INC. + +1999-04-17 Jean-Louis Martineau + + * 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 + + * 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 + + * configure.in: implement --with-cflags to allow turning on + compiler warnings and optimizations + +1999-04-16 Mike Grupenhoff + + * 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 + + * common-src/alloc.c (dbmalloc_caller_loc): const the file + arg, use the queue macros to maintain the list. + +1999-04-16 Mike Grupenhoff + + * common-src/versuff.c.in: const the return str of version() + and versionsuffix. Bump copyright to 1999. + +1999-04-16 Mike Grupenhoff + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * server-src/planner.c (getsize): put the hosts disks on the waitq + before sending the request, not after. + +1999-04-15 Alexandre Oliva + + * docs/UPGRADE: Update URL for archived message. + +1999-04-14 Jean-Louis Martineau + + * server-src/amcheck.c (main): should not set real uid to 0. + +1999-04-13 Jean-Louis Martineau + + * common-src/bsd-security.c (bsd_connect): dgram_bind return the port + number, we don't need ntohs(). + +1999-04-12 Mike Grupenhoff + + * common-src/dgram.c,common-src/dgram.h: nothing uses dgram_alloc() + anymore, gc them. + +1999-04-12 Mike Grupenhoff + + * server-src/amindexd.c: dgram.h not needed + +1999-04-12 Mike Grupenhoff + + * 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 + + * client-src/amandad.c (allocstream): if security_stream_server() + fails, dbprintf the error. + +1999-04-10 Mike Grupenhoff + + * 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 + + * 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 - * 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 +1999-04-10 Mike Grupenhoff - * 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 +1999-04-09 Mike Grupenhoff - * 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 +1999-04-09 Mike Grupenhoff - * 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 +1999-04-09 Mike Grupenhoff - * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * server-src/dumper.c (sendbackup_response): don't krb4 authenticate + streams if krb4_auth if false. + +1999-04-08 Mike Grupenhoff + + * server-src/dumper.c (do_dump): some formatting cleanups. Nuke + 'killerr' - we can do without it. + +1999-04-08 Mike Grupenhoff + + * server-src/dumper.c (do_dump): store compresspid inside of + the databuf + +1999-04-08 Mike Grupenhoff + + * 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 + + * 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 @@ -5830,16 +17179,92 @@ * 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 + + * 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 * server-src/reporter.c (TextRule): Fix to write the full string. +1999-04-06 Mike Grupenhoff + + * configure.in: MIT krb5 has libk5crypto, Cygnus kerbnet 1.2 + calls it libcrypto. Check for both. + +1999-04-06 Mike Grupenhoff + + * 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 * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 * server-src/amcheck.c: -t should read the tapelist to validate @@ -5891,6 +17316,25 @@ * 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 + + * common-src/stream.c, common-src/stream.h (stream_client): + const the hostname arg + +1999-03-22 Jean-Louis Martineau + + * configure.in: AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR) + * dumper-src/gnutar.pl.in: use @GNUTAR_LISTED_INCREMENTAL_DIR@ + +1999-03-21 Jean-Louis Martineau + + * 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 * conffile.h, conffile.c: new columnspec option @@ -5908,7 +17352,7 @@ 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 +1999-03-16 Thomas Hepper * 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 @@ -5920,13 +17364,10 @@ Wrong fd passwd to LogSense. * docs/TAPE.CHANGERS: added note about linux and aha1542 -1999-03-15 Michael Povel - * 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 + + * 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 @@ -5934,6 +17375,11 @@ * 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 + + * common-src/bsd-security.c (recv_security_ok): bring over + increased verbosity change from common-src/security.c + 1999-03-14 Mathias Herberts * man/amrecover.8.in: document mode and setmode @@ -5951,7 +17397,21 @@ 1999-03-07 Jean-Louis Martineau - * 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 + + * 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 + + * server-src/dumper.c (startup_dump): rename dumpname to progname. the function will use the parameter progname instead of the global variable. @@ -5961,6 +17421,11 @@ , sparc-unknown-openbsd2.3 is supported; I assume other openbsd platforms work too. +1999-03-06 Thomas Hepper + + * 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 * configure.in: set SAMBA_VERSION @@ -5970,10 +17435,10 @@ 1999-03-05 Mathias Herberts * 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. @@ -5981,36 +17446,57 @@ * recover-src/uscan.l: * recover-src/uparse.y: -1999-03-04 Thomas Hepper - * 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 + * 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 + + * 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 + + * common-src/base64.c (base64encode): don't cast away a const + needlessly. + +1999-03-04 Jean-Louis Martineau + + * 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 * common-src/conffile.h: bit field of length 1 should be unsigned int, not int. +1999-03-03 Ralf Fassel + + * common-src/bsd-security.c (stream_read_callback): n should be ssize_t. + +1999-03-03 Ralf Fassel + + * changer-src/scsi-changer-driver.c (CloseDevice): wrong assignment. + +1999-03-03 Ralf Fassel + + * common-src/base64.c (base64encode): remove warning from sgi cc + compiler. + +1999-03-03 Mike Grupenhoff + + * 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 * server-src/driverio.h: new parameter level to update_info_taper(). @@ -6032,15 +17518,35 @@ * 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 - * 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 + + * common-src/security.h: implement security_connect callback and + security_status_t changes + +1999-03-01 Mike Grupenhoff + + * 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 + + * 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 * docs/WISHLIST: protocol between the driver and dumpers. @@ -6050,13 +17556,10 @@ * 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 - * server-src/amlabel.c fixed call to changer_label - 1999-02-26 Jean-Louis Martineau - * 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 @@ -6070,36 +17573,7 @@ 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 - - * 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 - - * 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 @@ -6143,7 +17617,7 @@ 1999-02-15 Jean-Louis Martineau - * 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. @@ -6159,16 +17633,9 @@ 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 - - * 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 * server-src/list_dir.h: remove global variable dir_list, declare @@ -6178,36 +17645,16 @@ 1999-02-14 Jean-Louis Martineau - * 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 - - * 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 - - * 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 @@ -6217,7 +17664,7 @@ 1999-02-14 Jean-Louis Martineau * 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 @@ -6251,35 +17698,13 @@ * 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 - * 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 * server-src/amlabel.c (main): try to read just-written tape label @@ -6329,19 +17754,15 @@ --exclude-from, not --exclude-list Reported by Tom Schutter -1999-02-01 Alexandre Oliva - * client-src/sendbackup-gnutar.c (re_table): ignore `session request to' message printed by Samba 2.0.0 1999-01-28 Alexandre Oliva * 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 -1999-01-28 Alexandre Oliva - * 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 @@ -6353,7 +17774,7 @@ 1999-01-27 Alexandre Oliva - * 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 @@ -6394,10 +17815,12 @@ to the output of whoami otherwise Reported by Tom Schutter -1999-01-26 Thomas Hepper - * Makefile.am Added sst driver files to EXTAR_DIST +1999-01-26 Thomas Hepper + * Makefile.am Added sst driver files to EXTRA_DIST 1999-01-26 Thomas Hepper + * 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 @@ -6452,10 +17875,10 @@ 1999-01-22 Alexandre Oliva - * 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 * server-src/planner.c (output_scheduleline): removed `or historical data' from `no estimate' message; historical data doesn't matter any @@ -6484,13 +17907,53 @@ instead of /dev/null if we run in background. * server-src/amcleanup.sh.in: rename $logdir/amflush. +1999-01-14 Mike Grupenhoff + + * 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 + + * 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 + + * server-src/dumper.c (databuf_write): Egads! Also increment the + source pointer doing a partial buf copy + +1999-01-14 Mike Grupenhoff + + * 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 + + * server-src/dumper.c (add_msg_data): properly check for half-sent + msg lines. + 1999-01-11 Jean-Louis Martineau * server-src/amstatus.pl.in: fix a divide by zero error. -1999-01-10 Thomas Hepper - * 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 + + * 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 + + * 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 @@ -6573,6 +18036,35 @@ reusable * man/amlabel.8.in: document that tapes are added to tapelist +1998-12-19 Mike Grupenhoff + + * 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 + + * 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 + + * 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 * server-src/amstatus.pl.in: instead of just displaying why no @@ -6584,6 +18076,19 @@ taper and each dumper is busy, how much time N dumpers are busy and why no dumpers were busy. +1998-12-18 Mike Grupenhoff + + * 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 * server-src/amstatus.pl.in: fix two perl warnings. @@ -6608,6 +18113,33 @@ after the dumpers since it writes more information to the amdump file (helps prevent mixed messages). +1998-12-17 Mike Grupenhoff + + * server-src/dumper.c (databuf_flush): return 0 on success + +1998-12-17 Mike Grupenhoff + + * 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 + + * 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 * common-src/Makefile.am (noinst_DATA): removed; bogus @@ -6629,6 +18161,84 @@ * docs/INSTALL: fixed URL to gnuplot; recommend autoconf and automake from CVS +1998-12-14 Mike Grupenhoff + + * 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 + + * 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 + + * server-src/amindexd.c: no need to include protocol.h + +1998-12-14 Mike Grupenhoff + + * 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 + + * 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 + + * 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 + + * common-src/bsd-security.c (bsd_sendpkt): cast uid's to long and + use %ld to print them. + +1998-12-14 Mike Grupenhoff + + * 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 + + * 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 + + * 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 * configure.in (BSD SCSI): test ... -a ... is not portable, and less @@ -6688,6 +18298,18 @@ * common-src/amflock.c (main): remove call set_pname() for CONFIGURE_TEST since error.o is not linked in. +1998-12-10 Mike Grupenhoff + + * 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 * common-src/amflock.c (main): report CONFIGURE_TEST error messages to @@ -6698,14 +18320,56 @@ * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 * 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 @@ -6752,9 +18416,30 @@ * 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 + + * server-src/amtape.c (main, usage): make command lookup and usage + table-driven + +1998-12-07 Mike Grupenhoff + + * 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 - * 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 + + * NEWS: document new force-bump, force-no-bump and unforce-bump command in amadmin. 1998-12-07 Jean-Louis Martineau @@ -6762,7 +18447,7 @@ * 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 @@ -6776,12 +18461,99 @@ * docs/FAQ (large filesystems): fixed reference to results missing (results missing): updated to 64Kb UDP packets +1998-12-04 Mike Grupenhoff + + * 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 + + * common-src/bsd-security.c (recv_security_ok): only check for + a reserved port for REQ packets + +1998-12-03 Mike Grupenhoff + + * 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 + + * 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 + + * configure.in: AC_REPLACE_FUNCS(writev) + 1998-12-02 Jean-Louis Martineau * 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 + + * config/acconfig.h: add KRB5_SECURITY. Update comment above + krb4 define to make clear that they are for krb4 + +1998-12-02 Mike Grupenhoff + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 * server-src/amcheck.c: make -t mean do the tape checks, add new -l @@ -6790,6 +18562,22 @@ * man/amcheck.8.in: document above changes and clean up some minor formatting issues. +1998-12-01 Mike Grupenhoff + + * 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 + + * common-src/arglist.h: implement arglist_function3() + 1998-11-30 Jean-Louis Martineau * server-src/driver.c (start_some_dumps): In degraded mode, @@ -6803,7 +18591,7 @@ 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 @@ -6824,6 +18612,30 @@ * server-src/amadmin.c(import_one): import the last_level and consecutive_runs field. +1998-11-24 Mike Grupenhoff + + * common-src/amanda.h: uhh, every other decl has a leading + 'extern' so writev() should as well + +1998-11-24 Mike Grupenhoff + + * common-src/amanda.h: if no writev() decl exists, declare one + +1998-11-24 Mike Grupenhoff + + * configure.in: check for , check for a writev() decl + in and/or + +1998-11-24 Mike Grupenhoff + + * common-src/writev.c (writev): new file, implements writev for + systems that lack it + +1998-11-24 Mike Grupenhoff + + * common-src/amanda.h: include if it exists. Otherwise, + define struct iovec + 1998-11-24 John R. Jackson * server-src/amlabel.c: insist on being run as the dump user (ala @@ -6858,12 +18670,38 @@ consistency cleanup in the messages. * man/amcheck.8.in: document the changes. +1998-11-24 Mike Grupenhoff + + * common-src/dgram.c (dgram_bind): always try to get a reserved + port, even if KRB4_SECURITY is defined + +1998-11-23 Mike Grupenhoff + + * 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 * 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 +1998-11-20 Mike Grupenhoff + + * 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 * config/ltmain.sh, config/ltconfig, config/libtool/libtool.m4: updated to current CVS libtool @@ -6878,6 +18716,26 @@ * man/amanda.8.in: add some chunksize comments and clean up a few minor odds and ends. +1998-11-19 Mike Grupenhoff + + 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 + + * 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 * recover-src/amrecover.c (main): use set_host to find the initial @@ -6949,9 +18807,9 @@ 1998-11-17 Alexandre Oliva * 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 @@ -7022,6 +18880,13 @@ * 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 + + * 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 * server-src/driver.c (main): redo my patch about total_disksize that @@ -7040,15 +18905,16 @@ 1998-11-09 Jean-Louis Martineau - * 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 -1998-11-09 Mike Grupenhoff * client-src/sendbackup-dump.c (start_backup): don't close indexf if it was never open * client-src/sendbackup-gnutar.c (start_backup): ditto @@ -7060,6 +18926,10 @@ 1998-11-07 Alexandre Oliva + * 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 @@ -7067,7 +18937,7 @@ * 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 @@ -7092,9 +18962,61 @@ * 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 +1998-11-06 Mike Grupenhoff - * 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 + + * 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 + + * 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 + + * 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 + + * common-src/event.c (event_loop): print out WHY select failed + +1998-11-05 Mike Grupenhoff + + * 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 + + * 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 + + * common-src/event.c (event_loop): assert that we are not firing + a dead event 1998-11-05 Jean-Louis Martineau @@ -7116,8 +19038,45 @@ * server-src/amstatus.pl.in: remove warning. +1998-11-04 Mike Grupenhoff + + * common-src/event.c (event_register): delete some improper debug + code that shouldn't have made it in + +1998-11-04 Mike Grupenhoff + + * common-src/bsd-security.c: new file: security driver that + implements "BSD" security. + +1998-11-04 Mike Grupenhoff + + * common-src/security.h: new file: the security api header + +1998-11-04 Mike Grupenhoff + + * 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 + + * 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 + + * common-src/queue.h: new file: the 4.4BSD queue macros, with + additions from NetBSD + +1998-11-04 John R. Jackson + + * server-src/amverify.sh.in: tolerate extra amtape output. + 1998-11-04 Alexandre Oliva + * 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