e671971a8cdbcfc14a817bad211e0b90a74e51a6
[debian/amanda] / ChangeLog
1 2008-08-22  Jean-Louis Martineau <martineau@zmanda.com>
2         * configure.in, packaging/deb/rules,
3           packaging/deb/buildpkg, packaging/rpm/buildpkg,
4           packaging/rpm/amanda.spec: Change release to 2.6.0p2
5         * NEWS: News in 2.6.0p2
6
7 2008-08-22  Dustin J. Mitchell <dustin@zmanda.com>
8         * perl/amglue/bigint.c: add #include "stdint.h"
9
10 2008-08-22  Jean-Louis Martineau <martineau@zmanda.com>
11         * server-src/amadmin.c (tape): Correctly print next tape to use.
12         * server-src/tapefile.c (print_new_tapes): New function to print new
13                                                    tapes.
14         * server-src/tapefile.h (print_new_tapes): Prototype.
15         * server-src/reporter.c: Correctly print next tape to use.
16
17 2008-08-22  Dustin J. Mitchell <dustin@zmanda.com>
18         Thanks to Stefan G. Weichinger <sgw@amanda.org>
19         * server-src/taper.c: check errors from device, and handle them by
20           either requesting a new tape or just using the next tape in the
21           changer
22
23 2008-08-22  Olivier Nicole <on@cs.ait.ac.th>
24         * changer-src/chg-disk.sh: replace == with =
25
26 2008-08-22  Dustin J. Mitchell <dustin@zmanda.com>
27         * changer-src/chg-lib.sh.in: fix sed invocation for BSD's sed
28
29 2008-08-22  Jean-Louis Martineau <martineau@zmanda.com>
30         * server-src/reporter.c: Fix computation of compression ratio.
31
32 2008-08-21  Jean-Louis Martineau <martineau@zmanda.com>
33         * common-src/krb5-security.c: Fix security_seterror use.
34
35 2008-08-21  Jean-Louis Martineau <martineau@zmanda.com>
36         * device-src/queueing.c: Fix compiler warning.
37
38 2008-08-19  Dustin J. Mitchell <dustin@zmanda.com>
39         * configure.in: check for getgrgid_r and getpwuid_r
40         * common-src/security-util.c: conditionalize on checks
41
42 2008-08-18  Dustin J. Mitchell <dustin@zmanda.com>
43         * common-src/version.h: remove #include of config.h
44         * device-src/vfs-device.c: #include amanda.h first
45
46 2008-08-15  Dustin J. Mitchell <dustin@zmanda.com>
47         * common-src/debug.c: include backtraces on fatal errors
48         * config/amanda/debugging.m4: look for glibc's backtrace support
49         * configure.in: ditto
50
51 2008-08-05 Dan Locks <dwlocks@zmanda.com>
52         * packaging/rpm/amanda.spec:  Merged fixes from trunk .spec for
53           parsing redhat-release for fedora versions correctly.
54
55 2008-08-04 Dan Locks <dwlocks@zmanda.com>
56         * packaging/rpm/amanda.spec:  add %{tarver} macro and set the correct
57           minimum version per distro (Thanks to Jesse Angell for the rhel4 tip)
58
59 2008-07-30  Dustin J. Mitchell <dustin@zmanda.com>
60         * perl/Amanda/Changer.pm perl/Amanda/Cmdline.swg
61           perl/Amanda/Config.swg perl/Amanda/DB/Catalog.pm
62           perl/Amanda/Device.swg perl/Amanda/Logfile.swg 
63           perl/Amanda/Util.swg: POD cleanup
64         * perl/Makefile.am: new files, rules to make HTML
65         * perl/amperl.css: CSS file for online POD
66         * perl/make_html.pl: make online POD
67
68 2008-07-30  Dustin J. Mitchell <dustin@zmanda.com>
69         * man/Makefile.am man/amanda.css man/index.php man/xslt/html.xsl.in:
70           new files for HTML output
71         * man/xslt/man.xsl.in: substitute XSLT_VERS
72         * man/xml-source/amanda-devices.7.xml: tweaks
73         * man/xml-source/amanda.8.xml: tweaks
74         * man/xml-source/amanda.conf.5.xml: tweaks
75         * man/xml-source/amgetconf.8.xml: tweaks
76         * man/xml-source/amtoc.8.xml: tweaks
77
78 2008-07-30 Dan Locks <dwlocks@zmanda.com>
79         * packaging/rpm/amanda.spec: removed activate-devpay from %files section
80
81 2008-07-30 Dan Locks <dwlocks@zmanda.com>
82         * device-src/s3.c: Merged changes from 968 to work around a libcurl bug.
83         * config/amanda/s3-device.m4: Same
84
85 2008-07-30  Dustin J. Mitchell <dustin@zmanda.com>
86         * installcheck/Amanda_Config.pl: add + to avoid perl-5.6.0 parsing bug
87         * installcheck/amgetconf.pl: ditto
88
89 2008-07-28  Dustin J. Mitchell <dustin@zmanda.com>
90         * client-src/sendsize.c: remove cruft causing compile errors on HP/UX
91
92 2008-07-28  Dustin J. Mitchell <dustin@zmanda.com>
93         * device-src/tests/semaphore-test.c: move function call out of
94           variable initialization
95
96 2008-07-25 Dan Locks <dwlocks@zmanda.com>
97         * packaging/deb/control: added alternative dependency of libssl0.9.8 for
98           Ubuntu 8.x builds.  Added build dependencies for debhelper, fakeroot,
99           libcurl-dev, libssl-dev.  Updated server and client dependency for curl
100           to libcurl3
101
102 2008-07-23  Dustin J. Mitchell <dustin@zmanda.com>
103         * common-src/conffile.c: fix handling for config overwrites of
104           non-string parameters
105
106 2008-07-17  Jean-Louis Martineau <martineau@zmanda.com>
107         * amandad-src/amandad.c: amandad must be run by root for krb5 auth.
108
109 200i-07-14 Dan Locks <dwlocks@zmanda.com>
110         * packaging/rpm/amanda.spec: fix distribution detection, add
111         activate-devpay to server files list
112
113 2008-07-11  Dustin J. Mitchell <dustin@zmanda.com>
114         * device-src/rait-device.c: fix RAIT file numbers; don't pass
115           block-size-related properties down to child devices (we set the block
116           size in find_block_size); don't use union_robust for checking whether
117           labels changed, as it causes spurious failures
118
119 2008-07-11  Dustin J. Mitchell <dustin@zmanda.com>
120         Thanks to Stefan G. Weichinger <sgw@amanda.org>
121         * device-src/tape-*.c: return DEVICE_ERROR|VOLUME_MISSING on EIO while
122           checking tape_is_tape_device
123         * changer-src/chg-lib.sh.in: keep waiting for a device if it *might*
124           be busy or offline
125
126 2008-07-09  Dustin J. Mitchell <dustin@zmanda.com>
127         * device-src/rait-device.c: rewrite g_ptr_array_union_robust to
128           correctly detect and handle child device failures
129
130 2008-07-09  Dustin J. Mitchell <dustin@zmanda.com>
131         * perl/Amanda/Logfile.swg: POD tweaks
132
133 2008-07-06 Dan Locks <dwlocks@zmanda.com>
134         * packaging/deb/amanda-backup-server.postrm
135           packaging/deb/amanda-backup-client.postrm: removed unused
136           code
137         * packaging/deb/postrm: fixed typo in deluser command
138         * packaging/deb/rules: added specific preinst and postrm scripts for
139           client and server.
140
141 2008-07-04 Dan Locks <dwlocks@zmanda.com>
142         * packaging/rpm/buildpkg: add lines to copy rpms to root of the build dir.
143
144 2008-06-30  Ian Turner <ian@zmanda.com>
145         * device-src/rait-device.c: Fix a memory corruption issue on the last
146           block of a file.
147         * device-src/rait-device.c: Track file numbers properly when child
148           devices change them (that is, in rait_device_start_file() and
149           rait_device_seek_file()).
150
151 2008-06-27  Ian Turner <ian@zmanda.com>
152         * device-src/rait-device.c (rait_device_start): Check for consistent
153           volume label on all child devices, otherwise fail
154
155 2008-06-27  Ian Turner <ian@zmanda.com>
156         * device-src/rait-device.c: Silence a compiler warning.
157
158 2008-06-27  Dustin J. Mitchell <dustin@zmanda.com>
159         * device-src/rait-device.c: hack around glib bug in versions <2.10.2
160
161 2008-06-09  Dustin J. Mitchell <dustin@zmanda.com>
162         * common-src/conffile.c: don't complain about a missing client conf
163           file, as the complaint interferes with the network communication
164           ("invalid size: could not open conf file")
165
166 2008-06-06  Dustin J. Mitchell <dustin@zmanda.com>
167         * device-src/*: bugfixes backported from trunk r1087
168           - device_read_block returns an int, not a gboolean, and sets in_file
169             = FALSE on EOF
170           - tape device only requires a label in READ and APPEND modes
171           - tape device isn't opened until start or read_label
172           - rait sets self->file correctly in start
173           - rait compares child devices' labels and times correctly
174           - vfs correctly chains up in property_get
175           - vfs sets self->file correctly in start with ACCESS_APPEND
176
177 2008-06-03  Jean-Louis Martineau <martineau@zmanda.com>
178         * man/xml-source/amdump.8.xml, man/xml-source/amreport.8.xml,
179           man/xml-source/amcheck.8.xml, man/xml-source/amflush.8.xml,
180           man/xml-source/amstatus.8.xml: Add "EXIT CODE" section".
181
182 2008-05-30  Jean-Louis Martineau <martineau@zmanda.com>
183         * common-src/security-util.c: Remove unneeded pointer cast.
184         * common-src/stream.c: Fix compiler error.
185
186 2008-05-30  Dustin J. Mitchell <dustin@zmanda.com>
187         * common-src/amanda.h, common-src/bsd-security.c,
188           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
189           common-src/dgram.c, common-src/dgram.h, common-src/krb5-security.c,
190           common-src/security-util.c, common-src/security-util.h,
191           common-src/sockaddr-util.c, common-src/sockaddr-util.h,
192           common-src/stream.c, common-src/util.c, common-src/util.h,
193           restore-src/amidxtaped.c, server-src/amindexd.c: add sockaddr_union,
194           change all relevant functions to use it, to avoid aliasing violations
195
196 2008-05-29  Orion Poplawski <orion@cora.nwra.com>
197         * device-src/tests/semaphore-test.c: fix call to amanda_thread_init
198         * device-src/tests/vfs_test.c: fix call to amanda_thread_init
199         * server-src/chunker.c: fix buffer overrun
200
201 2008-05-29  Jean-Louis Martineau <martineau@zmanda.com>
202         * common-src/conffile.c (client_keytab): Remove "DEVICE-PROPERTY".
203
204 2008-05-28  Dustin J. Mitchell <dustin@zmanda.com>
205         * device-src/rait-device.c: rait-device returns correct size when
206           blocksize is too small
207
208 2008-05-25  Jean-Louis Martineau <martineau@zmanda.com>
209         * changer-src/chg-zd-mtx.sh: Fix logging.
210
211 2008-05-25  Jean-Louis Martineau <martineau@zmanda.com>
212         * packaging/rpm/amanda.spec: Fix output message.
213
214 2008-05-21  Jean-Louis Martineau <martineau@zmanda.com>
215         * server-src/driver.c: Fix quoting of diskname.
216
217 2008-05-20  Dustin J. Mitchell <dustin@zmanda.com>
218         * configure.in config/amanda/socklen_t_equiv.m4: detect the type (not
219           necessarily socklen_t used by getpeername et al.
220         * amandad-src/amandad.c server-src/amindexd.c restore-src/amidxtaped.c
221           common-src/util.c common-src/bsdtcp-security.c common-src/amanda.h
222           common-src/krb5-security.c common-src/dgram.c common-src/stream.c:
223           use the type instead of socklen_t
224
225 2008-05-14  Dustin J. Mitchell <dustin@zmanda.com>
226         * client-src/amhpfixdevs.sh client-src/Makefile.am
227           client-src/amsinixfixdevs.sh config/amanda/devprefix.m4:
228           permanently remove amsinixfixdevs and amhpfixdevs
229
230 2008-05-16  Jean-Louis Martineau <martineau@zmanda.com>
231         * common-src/conffile.c: Fix conf_parserror use.
232
233 2008-05-13 Dan Locks <dwlocks@zmanda.com>
234         * packaging/deb/buildpkg: modified build script to create unsigned
235           packages
236
237 2008-05-12  Jean-Louis Martineau <martineau@zmanda.com>
238           Patch by Orion Poplawski
239         * server-src/planner.c: Warn about overwrite of last level 1, and
240           force backup of level 1 if overwrite on this run.
241
242 2008-05-12  Dustin J. Mitchell <dustin@zmanda.com>
243         * server-src/dumper.c server-src/server_util.c
244           server-src/infofile.c server-src/amtrmlog.c common-src/debug.c
245           common-src/file.c: Always call mkpdir without the 02000 bit set,
246           as it is not needed and causes problems on MacOS X.
247
248 2008-05-08  Jean-Louis Martineau <martineau@zmanda.com>
249         * packaging/deb/buildpkg packaging/rpm/buildpkg: AMVER=amanda-2.6.0p1
250         * packaging/deb/changelog: amanda (2.6.0p1-1)
251         * packaging/deb/rules: AMVER=2.6.0p1
252         * packaging/rpm/amanda.spec: amanda_version 2.6.0p1, amanda_release 1
253         * NEWS: Update for 2.6.0p1
254         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0p1")
255
256 2008-05-08  Jean-Louis Martineau <martineau@zmanda.com>
257         * common-src/conffile.c: Define default tapetype.
258
259 2008-05-07  Jean-Louis Martineau <martineau@zmanda.com>
260         * common-src/conffile.c: Check the tapetype is defined.
261
262 2008-05-07  Jean-Louis Martineau <martineau@zmanda.com>
263         * device-src/tape-device.c: Allow user to set "read_buffer_size"
264                                     property.
265         * restore-src/amrestore.c: Don't limit blocksize to
266                                    --with-maxtapeblocksize.
267         * common-src/conffile.c: Increase readblocksize to blocksize.
268           blocksize and readblocksize can be bigger than
269           --with-maxtapeblocksize.
270
271 2008-05-02 Dan Locks <dwlocks@zmanda.com>
272         * packaging/rpm/amanda.spec:  Replace ${ with %{ where applicable.
273
274 2008-04-23  Jean-Louis Martineau <martineau@zmanda.com>
275         * common-src/security-util.c: Typo.
276
277 2008-04-23  Jean-Louis Martineau <martineau@zmanda.com>
278         * server-src/driver.c: Always sent a FAILED to taper if dumper failed.
279
280 2008-04-23  Jean-Louis Martineau <martineau@zmanda.com>
281         * server-src/planner.c: Fix vstrextend use.
282
283 2008-04-16  Dan Locks <dwlocks@zmanda.com>
284         * Fixes to debian package reported by daniel_P
285         * packaging/deb/preinst: remove spaces near ${amanda_group}
286         * packaging/deb/amanda-backup-server.dirs
287           packaging/deb/amanda-backup-client.dirs: added var/amanda and
288           usr/share/lintian/overrides
289         * packaging/deb/rules: added logic to find PERLSITELIB and append that
290           to amanda-backup-server.install, removed broken brace expansion
291         * packaging/deb/buildpkg: removed extraneous configure step
292         * packaging/deb/amanda-backup-server.postinst: added check for correct
293           permissions on /tmp/amanda
294           
295 2008-04-16  Jean-Louis Martineau <martineau@zmanda.com>
296         * server-src/amadmin.c: Improve message.
297         * man/xml-source/amanda.conf.5.xml: Fix man page.
298         * server-src/planner.c: Fix DS_INCRONLY and FORCE_FULL
299
300 2008-04-16  Dustin J. Mitchell <dustin@zmanda.com>
301         * config/amanda/dumpers.m4: continue searching for gnutar if we
302           find a binary claiming to be gnu tar that is not.  This gets
303           around serious breakage on Ubuntu, where star is installed as
304           /bin/gnutar, but /bin/tar is actually GNU Tar.
305
306 2008-04-15  Dustin J. Mitchell <dustin@zmanda.com>
307         * common-src/file.c(mk1dir): fix reversed conditional to handle 
308           a race condition
309
310 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
311         * common-src/debug.c (debug_logging_handler, debug_printf): Don't print
312           msg_timestamp() to stderr.
313
314 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
315         * server-src/find.c (dumps_match_dumpspecs): New function to only keep
316           dumps that match a dumpspecs, using it simplify amfetchdump.
317         * server-src/find.h (dumps_match_dumpspecs): Prototype.
318         * restore-src/amrestore.c: Add a first_restored_file to
319           search_a_tape(), to allow restore ot stop after the first image.
320         * restore-src/restore.c: Set first_restored_file, it was never set,
321           it's needed to stop after the first image.
322         * restore-src/restore.c (restore_from_tapelist): break if piping to
323           stdout.
324         * restore-src/amfetchdump.c: Use dumps_match_dumpspecs.
325         * restore-src/amfetchdump.c: If -p, the keep only one dump.
326         * perl/Amanda/Logfile.swg (dumps_match_dumpspecs): New prototype.
327         * perl/Amanda/Cmdline.swg: cmdline_parse_dumpspecs.
328         * perl/amglue/dumpspecs.swg: Map dumpspecs to perl.
329         * perl/Makefile.am (AMGLUE_SWG): Add amglue/dumpspecs.swg.
330
331 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
332         * tape-src/tapetype.c: Initialize an default config.
333
334 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
335         * common-src/util.c (connect_portrange, connect_port, bind_portrange):
336           Return the latest errno reported.
337
338 2008-04-04  Jean-Louis Martineau <martineau@zmanda.com>
339         * man/xml-source/*.xml: Use ulink tag to link to wiki.zmanda.com.
340
341 2008-04-04  Jean-Louis Martineau <martineau@zmanda.com>
342         * restore-src/restore.c: Check last_header->type != F_UNKNOWN.
343
344 2008-03-31  Dan Locks <dwlocks@zmanda.com>
345         * packaging/deb/buildpkg
346           packaging/rpm/buildpkg: added -p to cp to preserve file timestamps.
347
348 2008-03-31  Dan Locks <dwlocks@zmanda.com>
349         * packaging/Makefile.am: add deb subdirectory.
350
351 2008-03-27  Jean-Louis Martineau <martineau@zmanda.com>
352         * device-src/activate-devpay.c (parse_commandline): Always return.
353
354 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
355         * config/amanda/readline.m4: Don't add READLINE_LIBS to LIBS.
356         * oldrecover-src/Makefile.am (LDAAD): Add READLINE_LIBS.
357         * recover-src/Makefile.am (LDAAD): Add READLINE_LIBS.
358         * config/amanda/swig.m4: AM_CONDITIONAL(WANT_CYGWIN_COPY_PERL_DLL)
359         * config/amanda/swig.m4: Add library to PERLEXTLIBS on cygwin.
360         * config/amanda/syshacks.m4: Add '-no-undefined' to AMANDA_ADD_LDFLAGS.
361         * amandad-src/Makefile.am,
362         * client-src/Makefile.am, device-src/Makefile.am,
363           server-src/Makefile.am, server-src/server_util.c,
364           tape-src/Makefile.am: Add library to many *_LIBADD.
365         * perl/Makefile.am (install-data-hook): Copy cygwin ddl if
366           WANT_CYGWIN_COPY_PERL_DLL.
367
368 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
369         * server-src/reporter.c: Check difference between origsize and outsize
370           to find if the image is compressed.
371
372 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
373         Greg Troxel reported the bug and possible solution.
374         * common-src/stream.c (stream_server): New family argument, it is used
375                                                to create the socket.
376         * common-src/stream.h (stream_server): New prototype.
377         * server-src/chunker.c, server-src/taper.c: Call stream_server with
378           family of 'localhost', it's the name dumper use to contact them.
379         * restore-src/amidxtaped.c: Call stream_server with AF_INET.
380         * common-src/bsd-security.c, common-src/security-util.c: Call
381           stream_server with family of incoming packet.
382
383 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
384         * common-src/security-util.c (show_stat_info): Use getpwuid_r
385                                                        and getgrgid_r.
386
387 2008-03-25  Dustin J. Mitchell <dustin@zmanda.com>
388         * config/amanda/swig.m4: fix the fix to the fix for FreeBSD systems'
389           peculiar linking of threading libraries.
390
391 2008-03-20  Dan Locks <dwlocks@zmanda.com>
392         * packaging/deb/control: removed grep dependency
393         * packaging/deb/amanda-backup-client.postinst 
394           packaging/deb/amanda-backup-server.postinst 
395           packaging/deb/amanda-backup-server.postrm
396           packaging/deb/amanda-backup-client.postrm:  removed call to
397           ldconfig to satisfy lintian
398         * packaging/deb/amanda-backup-server.lintian
399           packaging/deb/amanda-backup-client.lintian: sorted and added new
400           overrides
401         * packaging/deb/amanda-backup-client.dirs: removed var/amanda
402
403 2008-03-18  Jean-Louis Martineau <martineau@zmanda.com>
404         * Amanda 2.6.0 released.
405         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0")
406         * packaging/rpm/amanda.spec: %define amanda_version 2.6.0
407         * packaging/rpm/buildpkg: AMVER=amanda-2.6.0
408
409 2008-03-17  Jean-Louis Martineau <martineau@zmanda.com>
410         * server-src/diskfile.c: Correctly check if two hosts map to the same
411                                  name.
412
413 2008-03-14  Dan Locks <dwlocks@zmanda.com>
414         * packaging/deb/*: Initial debian package release.  This package is 
415           based on Bdale Garbee's work as the official debian maintainer for 
416           amanda.
417
418 2008-03-13  Dan Locks <dwlocks@zmanda.com>
419         * packaging/rpm/amanda.spec: changed the PKG_CONFIG_PATH macro so that
420           it works with rpm versions earlier than 4.4
421
422 2008-03-12  Dan Locks <dwlocks@zmanda.com>
423         * packaging/rpm/buildpkg: made the script quieter, simplified its
424           usage by creating the required tarball on the fly.
425         * packaging/rpm/amanda.spec: fixed a number of complaints from rpmlint,
426           added --quiet to the configure invocation
427
428 2008-03-10  Jean-Louis Martineau <martineau@zmanda.com>
429         * device-src/tests/semaphore-test.c,
430           device-src/tests/vfs_test.c: Call amanda_thread_init(NULL).
431
432 2008-03-07  Jean-Louis Martineau <martineau@zmanda.com>
433         * Amanda 2.6.0b3 released.
434         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0b3")
435         * packaging/rpm/amanda.spec: %define amanda_version 2.6.0b3
436         * packaging/rpm/buildpkg: AMVER=amanda-2.6.0b3
437
438 2008-03-06  Jean-Louis Martineau <martineau@zmanda.com>
439         * common-src/Makefile.am: dest=$(amlibexecdir).
440
441 2008-03-06  Jean-Louis Martineau <martineau@zmanda.com>
442         * changer-src/Makefile.am: Rename SCRIPTSDATA to SCRIPTS_INCLUDE,
443                                    Add chg-lib.sh.in to EXTRA_DIST.
444         * dumper-src/Makefile.am: Rename SCRIPTSDATA to SCRIPTS_INCLUDE,
445                                   Add generic-dumper.pl to EXTRA_DIST.
446         * common-src/Makefile.am: Add amanda-sh-lib.sh to SCRIPTS_INCLUDE,
447                                   Add amanda-sh-lib.sh.in to EXTRA_DIST.
448
449 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
450         * changer-src/Makefile.am: Move chg-lib.sh to SCRIPTSDATA.
451         * dumper-src/Makefile.am: Move generic-dumper to SCRIPTSDATA.
452
453 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
454         * config/amanda/swig.m4: Check for *freebsd[123456]*
455
456 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
457         * changer-src/chg-scsi-chio.c: Compile fix.
458         * changer-src/scsi-chio.c: Compile fix.
459         * config/amanda/changer.m4: Check for linux/chio.h
460
461 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
462         * packaging/rpm/amanda.spec: Give CFLAGS after ./configure
463
464 2008-03-05  Dustin J. Mitchell <dustin@zmanda.com>
465         * config/amanda/swig.m4: With many thanks to John E. Hein
466           <jhein@timing.com>, fix the comment and make the change committed
467           yesterday apply to all FreeBSD < 7.0.
468
469 2008-03-05  Dustin J. Mitchell <dustin@zmanda.com>
470         * config/amanda/summary.m4: quote all warning messages that will be
471           included in heredocs, to avoid spurious interpretation of backquotes
472
473 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
474         * packaging/rpm/amanda.spec: Add %{PERLSITELIB} in %files sections.
475
476 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
477         * restore-src/amidxtaped: Use default config if amrecover doesn't send                         a config name.  (amoldrecover doesn't send a config).
478         * restore-src/restore.c: amrecover from 2.4.5 doesn't send the filenum,          so desired_tape->numfiles == 0.
479           If amidxtaped is launched directly from xinetd, then
480           flags->pipe_to_fd == STDOUT_FILENO, but this test should only
481           succeed for amrestore of amfetchdump.
482
483 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
484         * device-src/tape-device.c: Set d_self->is_eof to FALSE.
485
486 2008-03-04  Dustin J. Mitchell <dustin@zmanda.com>
487         * perl/Makefile.am config/amanda/swig.m4: add a special case for
488           FreeBSD-6.2: include -lpthread in the linking of each perl
489           extension, because libgthread does not pull in libpthread as
490           it does on other platforms.
491
492 2008-03-03  Jean-Louis Martineau <martineau@zmanda.com>
493         * common-src/security-util.c: getnameinfo return != 0 on error.
494
495 2008-03-03  Jean-Louis Martineau <martineau@zmanda.com>
496         * config/amanda/dumpers.m4: Typo.
497
498 2008-03-03  Jean-Louis Martineau <martineau@zmanda.com>
499         * device-src/tests/vfs_test.c: Fix ignoring
500           return value of 'pipe', declared with attribute warn_unused_result.
501
502 2008-02-29  Dustin J. Mitchell <dustin@zmanda.com>
503         * common-src/amanda.h: add <stdint.h>
504
505 2008-02-29  Dustin J. Mitchell <dustin@zmanda.com>
506         * installcheck/Amanda_Config.pl: fix Amanda_Config's use of the
507           missing Amanda::Tests
508
509 2008-02-29  Dustin J. Mitchell <dustin@zmanda.com>
510         * installcheck/Makefile.am: remove Amconfig.pm from EXTRA_DIST, as it
511           is a generated file.
512
513 2008-02-28  Dustin J. Mitchell <dustin@zmanda.com>
514         Thanks to John E. Hein <jhein@timing.com> for identifying this problem
515         * installcheck/Amanda_Config.pl: use a properly-sized constant to
516           check parsing of large configuration values
517
518 2008-02-28  Jean-Louis Martineau <martineau@zmanda.com>
519         * server-src/amindexd.c: Compute maxpart, call clean_dump.
520         * server-src/disk_history.h (DUMP_ITEM): Add maxpart field.
521         * server-src/disk_history.h (add_dump): New prototype,
522                                                 add maxpart argument.
523         * server-src/disk_history.c (add_dump): Remove a DUMP_ITEM if the
524                                         previous part is not already added.
525         * server-src/disk_history.c (clean_dump): New function to remove
526                                         DUMP_ITEM if all part are not added.
527         * common-src/tapelist.h (tapelist_t): Add partnum field.
528         * common-src/tapelist.h (append_to_tapelist): New prototype,
529                                                       add partnum argument.
530         * common-src/tapelist.c (append_to_tapelist): New partnum argument.
531         * restore-src/amfetchdump.c: Use new append_to_tapelist prototype.
532
533 2008-02-27  Jean-Louis Martineau <martineau@zmanda.com>
534         * server-src/find.c: Use sort_key in switch statement.
535
536 2008-02-26  Jean-Louis Martineau <martineau@zmanda.com>
537         * NEWS, ReleaseNotes: Document --with-amlibdir.
538         * config/amanda/dirs.m4: Add AS_HELP_STRING for --without-amlibdir and
539                                 --without-amlibexecdir,
540                                 Set AMPERLLIB to $amlibdir/perl.
541
542 2008-02-26  Dustin J. Mitchell <dustin@zmanda.com>
543         * perl/Makefile.am config/amanda/dirs.m4 config/amanda/summary.m4:
544           add --with-amperldir, --without-amperldir, and install perl modules
545           in Perl's installsitearch by default; thanks to Orion Poplawski
546           <orion@cora.nwra.com> for help and suggestions.
547
548 2008-02-26  Jean-Louis Martineau <martineau@zmanda.com>
549         * client-src/getfsent.c: Don't fail if stat of mount point fail.
550
551 2008-02-26  Jean-Louis Martineau <martineau@zmanda.com>
552         * common-src/util.c: Don't log a note if CLIENT_LOGIN == dumpuser for
553                              RUNNING_AS_DUMPUSER_PREFERRED.
554
555 2008-02-25  Jean-Louis Martineau <martineau@zmanda.com>
556         * server-src/reporter.c: Report size of data on holding disk.
557
558 2008-02-20  Jean-Louis Martineau <martineau@zmanda.com>
559         * config/amanda/dirs.m4: Add --with-amlibdir and --with-amlibexecdir.
560         * NEWS, ReleaseNotes: Document it.
561
562 2008-02-20  Jean-Louis Martineau <martineau@zmanda.com>
563         * server-src/amcheck.c, server-src/dumper.c,
564           server-src/planner.c: Call waitpid to cleanup defunct process.
565
566 2008-02-20  Dustin J. Mitchell <dustin@zmanda.com>
567         * device-src/tape-posix.c: keep ioctl error message in
568           debug log
569
570 2008-02-19  Jean-Louis Martineau <martineau@zmanda.com>
571         * device-src/device.c, device-src/null-device.c,
572           device-src/s3.c, device-src/tape-device.c,
573           device-src/queueing.h, device-src/s3.h,
574           device-src/vfs-device.c, device-src/rait-device.c,
575           server-src/taper-source-test.c, server-src/server_util.c,
576           server-src/taper-disk-port-source.c, perl/Amanda/Device.swg,
577           perl/amglue/integers.swg, restore-src/restore.c,
578           common-src/glib-util.c: Fix solaris compiler warning.
579
580 2008-02-19  Jean-Louis Martineau <martineau@zmanda.com>
581         * common-src/util.c (quote_string): Quote single quote (').
582         * server-src/find.c:Correctly compute length of diskname.
583
584 2008-02-15  Dustin J. Mitchell <dustin@zmanda.com>
585         * configure.in config/amanda/progs.m4 config/amanda/flags.m4:
586           use AC_PROG_EGREP instead of the Amanda version
587         * server-src/find.c: fix compiler warning on Solaris 8
588
589 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
590         * packaging/rpm/amanda.spec: Fix typo.
591
592 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
593         * oldrecover-src/Makefile.am: Build all files in the build directory.
594         * recover-src/Makefile.am: Build all files in the build directory.
595         * config/amanda/config.m4: Use $srcdir to buld common-src/svn-info.h
596         * configure.in: execute AMANDA_GET_SVN_INFO after AC_OUTPUT because
597           AC_OUTPUT create the common-src directory.
598
599 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
600         * server-src/amadmin.c: Use 'long long' and '%lld' to sscanf.
601         * file server-src/infofile.c: Use %jd to print intmax_t value.
602         * file server-src/driver.c: Use 'long long' and '%lld' to sscanf.
603
604 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
605         * server-src/amdump.sh: Don't use 'date -d', use sed.
606
607 2008-02-13  Dan Locks <dwlocks@zmanda.com>
608         * packaging/rpm/amanda.spec: added a check for PKG_CONFIG_PATH in the
609           build environment as well as if provided on rpmbuild commandline.
610           Conditionalized this var to handle cross compiling on FC8.
611
612 2008-02-12  Jean-Louis Martineau <martineau@zmanda.com>
613         * server-src/dumper.c: Fail if no header or no data.
614
615 2008-02-12  Jean-Louis Martineau <martineau@zmanda.com>
616         * server-src/amstatus.pl: Report failure if dumper succeed and
617                                   chunker failed.
618
619 2008-02-07  Jean-Louis Martineau <martineau@zmanda.com>
620         * NEWS, ReleaseNotes: Add notes about rsh/ssh and amandad_path.
621
622 2008-02-07  Jean-Louis Martineau <martineau@zmanda.com>
623         * Amanda 2.6.0b2 released.
624         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0b2")
625         * packaging/rpm/amanda.spec: %define amanda_version 2.6.0b2
626         * packaging/rpm/buildpkg: AMVER=amanda-2.6.0b2
627
628 2008-02-07  Jean-Louis Martineau <martineau@zmanda.com>
629         * recover-src/amrecover.c: Use tapedev from server if it is not set
630                                    in amanda.client.conf
631         * example/amanda-client.conf.in: Document it.
632
633 2008-02-07  Jean-Louis Martineau <martineau@zmanda.com>
634         * device-src/tape-device.c (tape_device_init): Init min_block_size
635           and fixed_block_size to 32768.
636
637 2008-02-07  Jean-Louis Martineau <martineau@zmanda.com>
638         * device-src/tape-posix.c (tape_is_ready): Don't use GMT_ONLINE.
639
640 2008-02-07  Dustin J. Mitchell <dustin@zmanda.com>
641         * man/xml-source/amcheckdump.8.xml: add -o option
642         * man/Makefile.am: build amcheckdump manpage
643         * server-src/amdevcheck.pl: tweak @ARGV parsing
644         * server-src/amcheckdump.pl installcheck/Installcheck/Run.pm
645           installcheck/amcheckdump.pl: significant rewrite to catch more errors
646           and not loop for ever on some errors.
647
648 2008-02-01  Dan Locks <dwlocks@zmanda.com>
649         * packaging/rpm/amanda.spec: added amdumpcheck.8.gz to the %files list
650           for both client and server, removed amplot from client, added missing
651           directory %{SYSCONFDIR}/amanda
652
653 2008-01-29  Dan Locks <dwlocks@zmanda.com>
654         * packaging/rpm/amanda.spec: changed %{SYSCONFDIR} to %{LOCALSTATEDIR}
655           where amanda/amandates is concerned.  also added %{LOCALSTATEDIR} to
656           the %files list.
657
658 2008-01-29  Dan Locks <dwlocks@zmanda.com>
659         * man/xml-src/*: added wiki.zmanda.com to "see also" section of all
660           man pages.
661
662 2008-01-29  Jean-Louis Martineau <martineau@zmanda.com>
663         * client-src/sendbackup.c: Check for g_options.
664         * client-src/sendsize.c: Check for g_options.
665         * client-src/selfcheck.c: Check for g_options.
666         * amandad-src/amandad_util.c (free_g_options): Check g_options != NULL.
667
668 2008-01-28  Jean-Louis Martineau <martineau@zmanda.com>
669         * server-src/amstatus.pl: Fix "Use of uninitialized value in string".
670
671 2008-01-28  Dustin J. Mitchell <dustin@zmanda.com>
672         * installcheck/Amanda_Config.pl common-src/conffile.c: uppercase
673           displayunit, and add a unit test to be sure.
674
675 2008-01-28  Jean-Louis Martineau <martineau@zmanda.com>
676         * server-src/amstatus.pl: handle lowercase displayunit.
677
678 2008-01-28  Dustin J. Mitchell <dustin@zmanda.com>
679         * configure.in config/amanda/ipv6.m4 common-src/amanda.h: check
680           for netinet/in.h and in_port_t, and define the latter if
681           necessary.  Thanks to Craig Dewick <cdewick@lios.apana.org.au>
682           for the suggestion.
683
684 2008-01-28  Paddy Sreenivasan <paddy@zmanda.com>
685         * man/xml-source/amanda.8.xml: Update amanda(8) to reflect 2.6.0
686           status
687
688 2008-01-28  Jean-Louis Martineau <martineau@zmanda.com>
689         * amandad-src/amandad.c: Send service stderr to amandad debug file,
690           Wait for service termination and send error message to server.
691
692 2008-01-28  Jean-Louis Martineau <martineau@zmanda.com>
693         * device-src/device.c: Set PROPERTY_BLOCK_SIZE with a G_TYPE_INT
694                                Set PROPERTY_READ_BUFFER_SIZE with a G_TYPE_UINT
695
696 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
697         * man/Makefile.am man/xml-source/amcheckdump.8.xml: new manpage
698         * server-src/amcheckdump.pl: fix usage message
699
700 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
701         * configure.in config/amanda/userid.m4: add --with-single-userid
702
703 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
704         * perl/amglue/amglue.h perl/amglue/bigint.c: Include integer limits
705           for all amglue files where they are missing from glib headers
706
707 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
708         * installcheck/Makefile.am: condition installchecks on the selected
709           components
710
711 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
712         * installcheck/Makefile.am Makefile.am: distribute
713           installcheck/Installcheck scripts, make sure enough parameters
714           are passed along to distcheck for it to succeed, and also clean
715           up properly after tests are run.
716
717 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
718         * config/amanda/dumpers.m4: eliminate strange warning when
719           --without-smbclient is given
720
721 2008-01-16  Dustin J. Mitchell <dustin@zmanda.com>
722         * installcheck/Makefile.am: Require user to specify
723           CLOBBER_MY_CONFIG=OK when running installchecks
724
725 2008-01-16  Jean-Louis Martineau <martineau@zmanda.com>
726         * packaging/rpm/amanda.spec: Don't set PKG_CONFIG_PATH.
727
728 2008-01-16  Jean-Louis Martineau <martineau@zmanda.com>
729         * oldrecover-src/extract_list.c, client-src/sendbackup.c,
730           client-src/sendsize.c, client-src/selfcheck.c,
731           recover-src/extract_list.c, server-src/changer.c,
732           server-src/amflush.c, server-src/driverio.c,
733           common-src/pipespawn.c: Call safe_fd before exec*.
734
735 2008-01-15  Jean-Louis Martineau <martineau@zmanda.com>
736         * packaging/rpm/amanda.spec: Remove build_host.
737
738 2008-01-15  Dustin J. Mitchell <dustin@zmanda.com>
739         * perl/Amanda/Types.swg perl/Amanda/Config.swg perl/Amanda/Device.swg
740           perl/amglue/integers.swg: fix typos and compiler warnings
741
742 2008-01-15  Jean-Louis Martineau <martineau@zmanda.com>
743         * packaging/Makefile.am: New file.
744         * packaging/README: New file.
745         * packaging/rpm/buildpkg: New file.
746         * packaging/rpm/amanda.spec: New file.
747         * configure.in
748         * config/amanda/dirs.m4 (AMANDA_WITH_DUMPERDIR): Give a warning if used.
749         * config/amanda/dirs.m4 (AMANDA_EXPAND_DIRS): Expand DUMPER_DIR to
750                                          ${amlibexecdir}/application
751         * Makefile.am (SUBDIRS): Add packaging.
752         * amanda.spec: Remove file.
753
754 2008-01-15  Jean-Louis Martineau <martineau@zmanda.com>
755         * device-src/Makefile.am (AM_CFLAGS): Set to $(AMANDA_WARNING_CFLAGS)
756         * device-src/tape-device.c, device-src/tape-posix.c,
757           device-src/vfs-device.c: include "util.h"
758         * device-src/rait-device.c: fix compiler warning.
759
760 2008-01-14  Dustin J. Mitchell <dustin@zmanda.com>
761         * perl/amglue/bigint.c: fix the range-checking mechanics for large
762           integers, since the precompiler seems to get confused by large
763           constants.
764
765 2008-01-14  Dustin J. Mitchell <dustin@zmanda.com>
766         * config/amanda/krb5-security.m4: abort configure run if krb5
767           is requested by libraries aren't found
768
769 2008-01-13  Dustin J. Mitchell <dustin@zmanda.com>
770         * man/xml-source/amanda.conf.5.xml: use &#215; instead of &times;
771
772 2008-01-11  Paddy Sreenivasan <paddy@zmanda.com>
773         * device-src/Makefile.am: Don't install queueing.h and device.h
774
775 2008-01-11  Dustin J. Mitchell <dustin@zmanda.com>
776         * perl/Amanda/Config.swg perl/Amanda/Debug.swg: complete documentation
777
778 2008-01-11  Jean-Louis Martineau <martineau@zmanda.com>
779         * amandad-src/Makefile.am: Install amandad in $libexecdir/amanda
780         * installcheck/amgetconf.pl: usetimestamps defaults to yes.
781         * NEWS, ReleaseNotes: Notes about make installcheck.
782
783 2008-01-11  Jean-Louis Martineau <martineau@zmanda.com>
784         * NEWS: Add amcryptsimple, amgpgcrypt, amserverconfig and amaddclient.
785         * ReleaseNotes: Ditto.
786
787 2008-01-11  Jean-Louis Martineau <martineau@zmanda.com>
788         * ReleaseNotes: Update for amanda-2.6.0
789         * News: Update for amanda-2.6.0
790         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0b1")
791         * Makefile.am (pkgdata_DATA): Add NEWS, ChangeLog and amanda.spec
792         * amanda.spec: %{!?amanda_version: %define amanda_version 2.6.0b1}
793
794 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
795         * common-src/conffile.c (usetimestamps): Default ot yes.
796         * man/xml-source/amanda.conf.5.xml (usetimestamps): Document it.
797
798 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
799         * server-src/amverifyrun.sh, server-src/amverify.sh,
800           tape-src/ammt.c, tape-src/amdd.c: Write deprecated message.
801
802 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
803         * config/amanda/defaults.m4: Set amandates to $localstatedir/amanda/amandate
804
805 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
806         * server-src/amfreetapes.sh: Use amlibexecdir.
807
808 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
809         * config/amanda/dirs.m4: Set amlibexecdir to $libexecdir/amanda.
810         * amandad-src/amandad.c, amplot/amplot.sh,
811           amplot/Makefile.am, changer-src/chg-chs.sh,
812           changer-src/chg-disk.sh, changer-src/chg-juke.sh,
813           changer-src/chg-lib.sh.in, changer-src/chg-manual.sh,
814           changer-src/chg-mcutil.sh, changer-src/chg-mtx.sh,
815           changer-src/chg-multi.sh, changer-src/chg-null.sh,
816           changer-src/chg-rait.sh, changer-src/chg-rth.pl,
817           changer-src/chg-zd-mtx.sh, changer-src/Makefile.am,
818           client-src/Makefile.am, client-src/patch-system.sh,
819           client-src/selfcheck.c, client-src/sendbackup-dump.c,
820           client-src/sendbackup-gnutar.c, client-src/sendsize.c,
821           common-src/amaespipe.sh, common-src/amanda-sh-lib.sh.in,
822           common-src/amcrypt-ossl-asym.sh, common-src/amcrypt-ossl.sh,
823           common-src/amcrypt.sh, common-src/genversion.c,
824           common-src/local-security.c, common-src/Makefile.am,
825           common-src/rsh-security.c, common-src/ssh-security.c,
826           dumper-src/amgtar.pl, example/xinetd.amandaclient,
827           example/xinetd.amandaserver, installcheck/amgetconf.pl,
828           perl/Amanda/Changer.pm, perl/Amanda/Paths.pm.in,
829           restore-src/Makefile.am, server-src/amcheck.c,
830           server-src/amcheckdb.sh, server-src/amcleanup.sh,
831           server-src/amdump.sh, server-src/amflush.c,
832           server-src/amoverview.pl, server-src/amrmtape.sh,
833           server-src/amverifyrun.sh, server-src/amverify.sh,
834           server-src/changer.c, server-src/driver.c,
835           server-src/getconf.c, server-src/Makefile.am,
836           tape-src/Makefile.am: Use amlibexecdir.
837
838 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
839         * config/amanda/flags.m4 (AMANDA_STATIC_FLAGS):
840           Set AMANDA_STATIC_LDFLAGS to '-static' if set.
841         * configure.in: Call AMANDA_STATIC_FLAGS.
842         * amandad-src/Makefile.am, changer-src/Makefile.am,
843           client-src/Makefile.am, common-src/Makefile.am,
844           dumper-src/Makefile.am, oldrecover-src/Makefile.am,
845           recover-src/Makefile.am, restore-src/Makefile.am,
846           server-src/Makefile.am,
847           tape-src/Makefile.am(AM_LDFLAGS): Set to AMANDA_STATIC_LDFLAGS.
848
849 2008-01-09  Jean-Louis Martineau <martineau@zmanda.com>
850         * configure.in (AC_CONFIG_FILES): Add example/template.d/amanda-S3.conf
851         * example/Makefile.am (dist_template_DATA): Add
852                                                     template.d/amanda-S3.conf
853
854 2008-01-09  Jean-Louis Martineau <martineau@zmanda.com>
855         * changer-src/scsi-solaris.c: Cleanup.
856
857 2008-01-09  Ian Turner <ian@zmanda.com>
858         * changer-src/chg-zd-mtx.sh.in: Don't write a corrupt changerfile
859           when a tape has no barcode label.
860
861 2008-01-08  Dustin J. Mitchell <dustin@zmanda.com>
862         * server-src/amcheckdump.pl: call critical() rather than
863           using die().
864
865 2008-01-08  Jean-Louis Martineau <martineau@zmanda.com>
866         * server-src/amcheckdump.pl: Parse 'amflush: starttime' and
867                                      'planner: timestamp' line.
868         * server-src/amflush.c: Print correct starttime line.
869
870 2008-01-08  Ian Turner <ian@zmanda.com>
871         Most of this work was done by Dustin J. Mitchell
872         <dustin@zmanda.com>, with contributions by Ian Turner <ian@zmanda.com>.
873         * example/template.d/amanda-S3.conf.in: Example configuration
874           using Amazon S3.
875         * device-src/device.c: Register the S3 device.
876         * device-src/tests/get-activation-key.pl: Tool to retrieve 
877           a DevPay activation key.
878         * device-src/s3-device.c, device-src/s3-device.h: S3 device driver.
879         * device-src/s3.c, device-src/s3.h: Network support for S3 driver.
880         * device-src/property.c, device-src/property.h: Register S3
881           authentication properties.
882         * device-src/activate-devpay.c: Tool to convert a devpay 
883           activation key into user tokens.
884         * device-src/Makefile.am: Support all these new files.
885         * configure.in: Check S3 prerequesites.
886         * config/amanda/s3-device.m4: Check if the S3 device should be
887           built.
888         * config/amanda/libs.m4: Code to check for libcurl version and
889           features.
890         * common-src/util.c: Use libcurl header.
891
892 2008-01-08  Dustin J. Mitchell <dustin@zmanda.com>
893         * server-src/amcheckdump.pl: call critical() rather than
894           using die().
895
896 2008-01-08  Jean-Louis Martineau <martineau@zmanda.com>
897         * common-src/local-security.c: New 'local' security driver.
898         * common-src/security.c (drivers): Add local_security_driver
899         * common-src/Makefile.am (libamanda_la_SOURCES): Add local-security.c
900         * man/xml-source/amanda.conf.5.xml,
901           man/xml-source/amanda-client.conf.5.xml,
902           example/amanda-client.conf.in,
903           example/template.d/dumptypes: Document 'local' security driver.
904
905 2008-01-08  Dustin J. Mitchell <dustin@zmanda.com>
906         * server-src/amcheckdump.pl perl/Amanda/Util.swg: don't use
907           the C safe_fd, which kills the Perl debugger; just check
908           that fd's 0-2 are open
909
910 2008-01-08  Dustin J. Mitchell <dustin@zmanda.com>
911         * perl/Amanda/Types.swg perl/Makefile.am: add new Amanda::Types module
912         to contain data structures common to several other modules.
913         * perl/Amanda/Device.swg: move dumpfile_t to Amanda::Types
914         * installcheck/Amanda_Types.pl installcheck/Makefile.am: simple tests
915           for the new module
916         * common-src/fileheader.c common-src/fileheader.h: build_header
917           now takes a precise size, not a minimum.
918
919 2008-01-08  Jean-Louis Martineau <martineau@zmanda.com>
920         * recover-src/amrecover.c: Call apply_config_overwrites before
921                                    config_init(CONFIG_INIT_EXPLICIT_NAME ...)
922
923 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
924         * common-src/util.c (strquotedstr, hexdump): Remove function.
925         * common-src/util.h (strquotedstr, hexdump): Remove prototype.
926         * common-src/fileheader.c (strquotedstr, hexdump): Add function.
927         * common-src/fileheader.c (strquotedstr): Fix.
928
929 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
930         * perl/Amanda/Changer.pm: Use Amanda::Config::get_config_dir().
931
932 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
933         * config/automake/scripts.am: Don't set CHECK_PERL.
934         * changer-src/Makefile.am: Set CHECK_PERL.
935         * client-src/Makefile.am: Set CHECK_PERL.
936         * dumper-src/Makefile.am: Set CHECK_PERL.
937         * common-src/Makefile.am: Set CHECK_PERL.
938
939 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
940         * common-src/krb5-security.c: Fix argument to resolve_hostname.
941         * config/amanda/krb4-security.m4: Check .a or .so lib.
942         * config/amanda/krb5-security.m4: Check .a or .so lib.
943
944 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
945         * device-src/Makefile.am: Merge typo.
946         * example/Makefile.am: Merge Typo.
947
948 2007-12-27  Dustin J. Mitchell <dustin@zmanda.com>
949         * configure.in config/amanda/printf.m4: remove unused
950           configure checks
951
952 2007-12-27  Paddy Sreenivasan <paddy@zmanda.com>
953         * server-src/reporter.c: Check for NULL mailto
954
955 2007-12-27  Satya Ganga <gsat@zmanda.com>
956         * server-src/amserverconfig.pl: holding disk will be created
957           only if we have at least 1G free space in the Amanda home dir
958
959 2007-12-27  Ian Turner <ian@zmanda.com>
960         * server-src/taperscan.c server-src/taper.c: only print error_message
961           if it is non-NULL
962
963 2007-12-27  Dustin J. Mitchell <dustin@zmanda.com>
964         * server-src/amrmtape.sh: remove @DB_EXT@, which no longer
965           exists (since 2007-10-09).
966
967 2007-12-26  Dustin J. Mitchell <dustin@zmanda.com>
968         * server-src/amverify.sh: fix multiple non-portable shell
969           techniques
970
971 2007-12-23  Dustin J. Mitchell <dustin@zmanda.com>
972         Large-scale merge of perl interface to Amanda, along with
973         a fleet of related changes.  Patch authors are given for
974         changes not made by Dustin.
975
976         * perl/Makefile.am config/amanda/swig.m4: use
977           ExtUtils::Embed::perl_inc() to get the include directory
978           and let Amanda's compiler/linker flags and libtool take
979           care of the rest
980         * perl/Amanda/Config.swg: use accessors for config_name, 
981           config_filename, and config_dir 
982         * server-src/amcheckdump.pl server-src/amdevcheck.pl
983           perl/Amanda/Util.swg installcheck/Amanda_Config.pl: use
984           new accessors
985         * perl/Amanda/Util.swg common-src/amanda.h: use a .-relative
986           path in two #include directives to avoid accidentally 
987           including perl's headers of the same name; this is a temporary
988           hack until a larger-scale overhaul of Amanda's headers is done.
989         * config/amanda/swig.m4: error out if shared libraries are disabled
990         * server-src/amcheckdump.pl: Use timestamp from latest
991           amdump.1 or amflush.1 log file.  (Jean-Louis Martineau
992           <martineau@zmanda.com>)
993         * server-src/amcheckdump.pl: Output partnum.  (Jean-Louis
994           Martineau <martineau@zmanda.com>)
995         * server-src/amcheckdump.pl: Add a '/' after the config name.
996         (Jean-Louis Martineau <martineau@zmanda.com>)
997         * perl/Amanda/Logfile.swg perl/Amanda/Device.swg perl/Makefile.am
998           perl/amglue/integers.swg perl/amglue/amglue.h
999           perl/amglue/amglue.swg perl/amglue/glib.swg
1000           perl/amglue/bigint.c: Always use Math::BigInt to convert numeric 
1001           quantities from C to Perl, to avoid integer overflow and automatic
1002           promotion to double.
1003         * perl/Amanda/Debug.swg client-src/versionsuffix.c
1004           common-src/util.c common-src/util.h common-src/debug.c
1005           common-src/debug.h common-src/conffile.c
1006           common-src/conffile.h common-src/file.c common-src/file.h:
1007           - move get_/set_pname to util.c
1008           - rename RunningAsWho to running_as_flags
1009           - cache original cwd before changing it in safe_cd, and use the
1010             cached value in conffile
1011         * server-src/logfile.c: call set_logerror in open_log
1012         * client-src/runtar.c common-src/debug.c common-src/amanda.h
1013           common-src/file.c common-src/file.h: replace client_uid,
1014           client_gid globals with functions, to eliminate the need
1015           for initialization
1016         * server-src/logfile.c: Update warning about globals
1017         * server-src/find.c: Update search_logfile to possibly search
1018           all tapes in a logfile. Also, other miscellaneous
1019           refactoring.  (Ian Turner <ian@zmanda.com>)
1020         * server-src/find.h: Document new interface.
1021         * server-src/amindexd.c, server-src/amadmin.c,
1022           server-src/amtrmidx.c, restore-src/amfetchdump.c: Use new
1023           find_dump interface.
1024         * common-src/util.c, common-src/util.h: New function
1025           compare_possibly_null_strings, which is like strcmp() but
1026           orders NULL pointers before non-null strings.
1027         * Makefile.am: reflect BINARY_OWNER into distcheck-triggered
1028           ./configure
1029         * common-src/conffile.c common-src/conffile.h: completely
1030           new API, almost complete rewrite
1031         * common-src/columnar.c common-src/columnar.h
1032           common-src/Makefile.am: new files, extracted from
1033           conffile.[ch]
1034         * oldrecover-src/amrecover.c oldrecover-src/extract_list.c
1035           changer-src/chg-scsi-chio.c changer-src/chg-scsi.c
1036           client-src/sendbackup.c client-src/sendsize.c
1037           client-src/selfcheck.c amandad-src/amandad.c
1038           device-src/device.c recover-src/amrecover.c
1039           recover-src/extract_list.c server-src/diskfile.h
1040           server-src/logfile.c server-src/amlogroll.c
1041           server-src/amindexd.c server-src/amcheck.c
1042           server-src/dumper.c server-src/planner.c
1043           server-src/chunker.c server-src/amadmin.c
1044           server-src/amtape.c server-src/amcleanupdisk.c
1045           server-src/getconf.c server-src/amflush.c
1046           server-src/amtrmlog.c server-src/driverio.c
1047           server-src/holding.c server-src/driverio.h
1048           server-src/driver.c server-src/reporter.c server-src/taper.c
1049           server-src/find.c server-src/amindex.c server-src/amtrmidx.c
1050           server-src/diskfile.c server-src/amlabel.c
1051           perl/Amanda/Config.swg config/amanda/defaults.m4
1052           restore-src/amidxtaped.c restore-src/amrestore.c
1053           restore-src/restore.c restore-src/amfetchdump.c
1054           common-src/util.h common-src/glib-util.c tape-src/tapeio.c
1055           common-src/amanda.h tape-src/tapeio.h: use new conffile API
1056         * installcheck/Makefile.am installcheck/Amconfig.pm.in
1057           installcheck/Installdirs.pm.in installcheck/Amanda_Config.pl
1058           installcheck/Amanda_Changer.pl installcheck/Amanda_Cmdline.pl
1059           installcheck/Amanda_Logfile.pl installcheck/amcheckdump.pl
1060           installcheck/amdevcheck.pl installcheck/amgetconf.pl:
1061           new unit tests for new modules, applications
1062         * server-src/amdevcheck.pl server-src/amcheckdump.pl: new pure-
1063           Perl applications; amcheckdump.pl is by Ian Turner
1064           <ian@zmanda.com>
1065         * perl/Amanda perl/Makefile.am perl/Amanda/Paths.pm.in
1066           perl/Amanda/Logfile.swg perl/Amanda/Changer.pm
1067           perl/Amanda/Config.swg perl/Amanda/Debug.swg
1068           perl/Amanda/Tapefile.swg perl/Amanda/Cmdline.swg
1069           perl/Amanda/Util.swg perl/Amanda/Device.swg: new directory
1070           containing perl interfaces to Amanda modules
1071         * perl/amglue perl/amglue/integers.swg perl/amglue/amglue.h
1072           perl/amglue/exports.swg perl/amglue/ghashtable.c
1073           perl/amglue/amglue.swg perl/amglue/constants.swg
1074           perl/amglue/glib.swg perl/amglue/bigint.c: functions and
1075           macros to glue Amanda to perl
1076
1077 2007-12-21  Satya Ganga <gsat@zmanda.com>
1078         * server-src/amserverconfig.pl: correct holding disk size
1079           validation logic so that it works on solaris too
1080
1081 2007-12-21  Satya Ganga <gsat@zmanda.com>
1082         * server-src/amserverconfig.pl: amserverconfig needs to create a empty
1083           changer.conf file
1084
1085 2007-12-21  Jean-Louis Martineau <martineau@zmanda.com>
1086         Bug reported by Tim Bunnell.
1087         * client-src/getfsent.c (dev2rdev): Do it only for block device.
1088
1089 2007-12-21  Jean-Louis Martineau <martineau@zmanda.com>
1090         * server-src/taper.c: Unquote holding_disk_file.
1091
1092 2007-12-20  Dustin J. Mitchell <dustin@zmanda.com>
1093         * common-src/debug.h: fix (cosmetic, but confusing) typo
1094
1095 2007-12-19  Jean-Louis Martineau <martineau@zmanda.com>
1096         * common-src/util.c (quote_string): Quote ':'.
1097
1098 2007-12-19  Ian Turner <ian@zmanda.com>
1099         * server-src/taper.c: Don't crash if there is a problem writing a
1100           brand new tape.
1101
1102 2007-12-19  Jean-Louis Martineau <martineau@zmanda.com>
1103         * server-src/planner.c: Correctly set planner_timestamp if
1104                                 usetimestamps is set to no.
1105
1106 2007-12-18  Jean-Louis Martineau <martineau@zmanda.com>
1107         * server-src/driverio.c (childstr): Check dumper->chunker.
1108
1109 2007-12-14  Ian Turner <ian@zmanda.com>
1110         * device-src/tape-device.c: Try to open tape devices as O_NONBLOCK
1111           at first; if the device is not ready, we will let the changer script
1112           retry, instead of having the kernel do it for us.
1113         * device-src/tape-ops.h, device-src/tape-aix.c,
1114           device-src/tape-uware.c, device-src/tape-xenix.c,
1115           device-src/tape-posix.c: Add new tape_is_ready() function.
1116
1117 2007-12-14  Jean-Louis Martineau <martineau@zmanda.com>
1118         * config/amanda/dumpers.m4: Don't set STAR in AMANDA_PROG_SAMBA_CLIENT.
1119
1120 2007-12-14  Jean-Louis Martineau <martineau@zmanda.com>
1121         * server-src/find.c (search_logfile): Parse taper result line before
1122                                               merging part_find.
1123
1124 2007-12-14  Jean-Louis Martineau <martineau@zmanda.com>
1125         * server-src/find.c (find_log): Result should not have duplicate
1126                                         logfile.
1127
1128 2007-12-10  Jean-Louis Martineau <martineau@zmanda.com>
1129         * server-src/amstatus.pl: Parse NEW-TAPE line
1130         * server-src/taper.c: Add the handle in NEW-TAPE result.
1131         * server-src/driver.c: Check number of arguments in NEW-TAPE result.
1132
1133 2007-12-10  Jean-Louis Martineau <martineau@zmanda.com>
1134         * config/amanda/progs.m4: Define AMLINT To 'echo;false' to no lint
1135                                   are found.
1136
1137 2007-12-10  Jean-Louis Martineau <martineau@zmanda.com>
1138         * common-src/bsdudp-security.c: Loop over all address until a bind
1139                                         is successful.
1140         * common-src/bsd-security.c: Loop over all address until a bind
1141                                      is successful.
1142         * common-src/stream.c: Loop over all address until a connect is
1143                                successful.
1144
1145 2007-12-07  Jean-Louis Martineau <martineau@zmanda.com>
1146         * server-src/amindexd.c: Don't use duplicate part.
1147
1148 2007-12-07  Jean-Louis Martineau <martineau@zmanda.com>
1149         * restore-src/amfetchdump.c: Don't use duplicate part.
1150
1151 2007-12-07  Jean-Louis Martineau <martineau@zmanda.com>
1152         * server-src/holding.c (holding_get_all_datestamps): Don't add
1153           duplicate datestamp.
1154
1155 2007-12-07  Jean-Louis Martineau <martineau@zmanda.com>
1156         * server-src/amcheck.c: Don't complain about correct unlabeled
1157                                 volumes.
1158
1159 2007-12-06  Jean-Louis Martineau <martineau@zmanda.com>
1160         * client-src/sendbackup.c, client-src/sendsize.c,
1161           client-src/selfcheck.c, client-src/calcsize.c,
1162           amandad-src/amandad.c, device-src/device.c,
1163           device-src/vfs-device.c, server-src/changer.c,
1164           server-src/dumper.c, server-src/planner.c,
1165           server-src/chunker.c, server-src/server_util.c,
1166           server-src/taperscan.c, server-src/driver.c,
1167           server-src/taper.c, server-src/find.c,
1168           server-src/diskfile.c, common-src/pipespawn.c,
1169           common-src/util.c, common-src/conffile.c: Fix memory leak.
1170
1171 2007-12-06  Jean-Louis Martineau <martineau@zmanda.com>
1172         * server-src/find.c (search_logfile): Parse PARTPARTIAL line.
1173
1174 2007-12-06  Jean-Louis Martineau <martineau@zmanda.com>
1175         * server-src/taper.c: Use g_strdup if pointer can be NULL.
1176
1177 2007-12-05  Jean-Louis Martineau <martineau@zmanda.com>
1178         * server-src/taperscan.c: Don't output the latest changer result.
1179
1180 2007-12-05  Jean-Louis Martineau <martineau@zmanda.com>
1181         * common-src/util.c (resolve_hostname): Take a new socktype argument.
1182         * common-src/util.h (resolve_hostname): New prototype.
1183         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
1184           common-src/bsdudp-security.c, common-src/krb5-security.c,
1185           common-src/rsh-security.c, common-src/security-util.c,
1186           common-src/ssh-security.c, common-src/stream.c,
1187           recover-src/set_commands.c, server-src/amcheck.c,
1188           server-src/dumper.c: Call resolve_hostname with socktype argument.
1189
1190 2007-12-05  Jean-Louis Martineau <martineau@zmanda.com>
1191         * common-src/util.c (resolve_hostname): Don't return V4MAPPED address.
1192         * common-src/amanda.h (AI_V4MAPPED, AI_ALL): Don't define.
1193
1194 2007-12-04  Ian Turner <ian@zmanda.com>
1195         * server-src/taperscan.c, server-src/taperscan.h: Support persistence
1196           between invocations of taper_scan(), so that you can get second-best
1197           and further tapes.
1198         * server-src/amcheck.c, server-src/amtape.c: Use the new taperscan 
1199           interface.
1200         * server-src/taper.c: Do the right thing if there is an error writing
1201           the tape label.
1202
1203 2007-12-04  Jean-Louis Martineau <martineau@zmanda.com>
1204         * server-src/amtape.c: Correctly output the result of taper scan.
1205
1206 2007-12-04  Jean-Louis Martineau <martineau@zmanda.com>
1207         * server-src/amcheck.c, server-src/dumper.c
1208           server-src/planner.c: Don't crash is securoty driver is not found.
1209
1210 2007-12-04  Jean-Louis Martineau <martineau@zmanda.com>
1211         * server-src/changer.c: Print better message if the changer script
1212                                 has no output.
1213
1214 2007-12-03  Jean-Louis Martineau <martineau@zmanda.com>
1215         * man/xml-source/amserverconfig.8.xml: Fix indentation.
1216
1217 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
1218         * server-src/taper-mem-port-source.c, server-src/taper-file-source.c
1219           server-src/taper.c: Cast guint64 to uintmax_t and use %ju to print.
1220
1221 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
1222         * man/xml-source/amanda.conf.5.xml: Improve documentation.
1223         * example/amanda.conf.in: Ditto.
1224
1225 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
1226        * server-src/server_util.c (cmdstr): Remove SPLIT-NEEDNEXT
1227                                             and SPLIT-CONTINUE
1228        * server-src/server_util.h (cmd_t): Remove SPLIT_NEEDNEXT
1229                                            and SPLIT_CONTINUE.
1230        * server-src/taper.c: Send part_kbyte in PARTDONE result.
1231        * server-src/amstatus.pl: Parse part_kbyte in PARTDONE result line.
1232                                  Parse REQUEST-NEW_TAPE line.
1233        * common-src/conffile.h: CONF_FLUSH_THRESHOLD_DUMPED,
1234                                 CONF_FLUSH_THRESHOLD_SCHEDULE, CONF_TAPERFLUSH.
1235        * common-src/conffile.c: CNF_FLUSH_THRESHOLD_DUMPED,
1236                                 CNF_FLUSH_THRESHOLD_SCHEDULE, CNF_TAPERFLUSH.
1237        * server-src/driverio.h: Add Many globals.
1238        * server-src/driver.c: Split runq in runq and directq.
1239                               Implement flush-threshold-*/taperflush.
1240        * example/amanda.conf.in: Example for flush-threshold-* and taperflush.
1241        * man/xml-source/amanda.conf.5.xml: Document flush-threshold-*
1242                                            and taperflush.
1243
1244 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
1245         * server-src/taperscan.c: Fix output formating.
1246
1247 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
1248         * recover-src/set_commands.c: Add a terminating '/' in cd_regex.
1249                                       Never add it in cd_dir.
1250
1251 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
1252         * config/automake/scripts.am: Build of the scripts also depend on
1253                                       $(top_builddir)/config.status
1254
1255 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
1256         * server-src/amdump.sh: Pass a --startime argument to planner.
1257         * server-src/planner.c: Get the --starttime command line argument.
1258
1259 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
1260         * server-src/amstatus.pl: New --locale-independent-date-format option.
1261         * man/xml-source/amstatus.8.xml: Document it.
1262         * server-src/amflush.c: Output a "starttime-locale-independent" line.
1263         * server-src/amdump.sh: Output a "starttime-locale-independent" line.
1264
1265 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
1266         * server-src/find.c: Remove seen_chunk_of function.
1267
1268 2007-11-28  Jean-Louis Martineau <martineau@zmanda.com>
1269         * config/macro-archive/docbook-dtd.m4: Check return code of 5.
1270
1271 2007-11-28  Dustin J. Mitchell <dustin@zmanda.com>
1272         * installcheck/Amconfig.pm.in: fix quoting error leading to
1273         directories named '"'
1274
1275 2007-11-28  Dustin J. Mitchell <dustin@zmanda.com>
1276         * common-src/file.c: only chown new directories when running as root
1277
1278 2007-11-28  Dustin J. Mitchell <dustin@zmanda.com>
1279         * config/automake/installperms.am: strip directory names from build
1280           filenames when setting permissions; fixes errors from examples/
1281           install
1282
1283 2007-11-28  Dustin J. Mitchell <dustin@zmanda.com>
1284         * man/Makefile.am: Allow installs, but not tarballs, without
1285           manpages
1286
1287 2007-11-27  Jean-Louis Martineau <martineau@zmanda.com>
1288         * server-src/planner.c: Check dp->todo before using (est)->dp.
1289
1290 2007-11-27  Jean-Louis Martineau <martineau@zmanda.com>
1291         * device-src/device.c (default_device_start): Overwrite label only
1292                                                       if mode == ACCESS_WRITE.
1293
1294 2007-11-20  Ian Turner <ian@zmanda.com>
1295         * device-src/device.c, device-src/device.h
1296           device-src/tape-device.c, device-src/rait-device.c: Change API
1297           semantics with respect to label reading. This patch makes it
1298           possible to open and read a volume with properties while only
1299           reading its label once. Thanks to Jean-Louis Martineau
1300           <martineau@zmanda.com> for suggesting this change.
1301
1302 2007-11-20  Ian Turner <ian@zmanda.com>
1303         * device-src/vfs-device.c: Be more thourough about updating volume
1304           usage statistics.
1305
1306 2007-11-20  Ian Turner <ian@zmanda.com>
1307         * changer-src/chg-lib.sh.in: Use a more robust check for MT path.
1308         * server-src/amverify.sh.in: Use amrestore instead of amdd/ammt.
1309
1310 2007-11-09  Ian Turner <ian@zmanda.com>
1311         * server-src/taperscan.c: Fix a memory allocation bug and be a little
1312           more paranoid.
1313
1314 2007-11-06  Ian Turner <ian@zmada.com>
1315         * server-src/taperscan.c: Print a proper message if there is
1316           only one flag from device_read_label().
1317
1318 2007-11-26  Dustin J. Mitchell <dustin@zmanda.com>
1319         * configure.in config/amanda/config.m4 common-src/genversion.c
1320           common-src/Makefile.am: explicitly generate svn info at configure
1321           time, rather than relying on svn keywords
1322
1323 2007-11-26  Ian Turner <ian@zmanda.com>
1324         * server-src/Makefile.am: Move amdevcheck from libexec/ to sbin/.
1325           Thanks to Satya Ganga <gsat@zmanda.com> for noticing this problem.
1326         
1327 2007-11-26  John Franks <jrfranks@zmanda.com>
1328         * common-src/debug.c    For cygwin builds: change to
1329           close and reopen log file handle on successful rename.
1330           This is to ensure that Windows has no possibility of
1331           preventing access to the original file name if processes
1332           collide.
1333                 
1334 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
1335         * server-src/amflush.c: Send config option (-o) to child process.
1336
1337 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
1338         * server-src/planner.c: Don't set est(dp)->state before testing it.
1339
1340 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
1341         * config/amanda/readline.m4: Include termcap, curses or ncurese in LIBS.
1342
1343 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
1344         * server-src/diskfile.c (match_disklist): Fix for disk not found.
1345
1346 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
1347         * server-src/driver.c: Don't release taper_ev_read in
1348                                start_degraded_mode.
1349
1350 2007-11-20  Paddy Sreenivasan <paddy@zmanda.com>
1351         * amanda.spec: Added calls to Zmanda
1352         * example/amanda-client.conf.in: Switch to bsdtcp
1353
1354 2007-11-14  Jean-Louis Martineau <martineau@zmanda.com>
1355         * server-src/amstatus.pl: Handle taper FAILED message.
1356
1357 2007-11-14  Jean-Louis Martineau <martineau@zmanda.com>
1358         * config/amanda/userid.m4: Use $enableval in AC_ARG_ENABLE.
1359
1360 2007-11-07  Paddy Sreenivasan <paddy@zmanda.com>
1361         * server-src/amserverconfig.pl server-src/amaddclient.pl: 
1362           new configuration tools
1363         * common-src/amgpgcrypt.pl common-src/amcryptsimple.pl: 
1364           new encryption plugins
1365         * man/xml-source/amaddclient.8.xml man/xml-source/amgpgcrypt.8.xml 
1366           man/xml-source/amcryptsimple.8.xml 
1367           man/xml-source/amserverconfig.8.xml: man pages for new tools
1368         * example/template.d/* - Configuration file templates
1369         * example/amanda-client.conf.in: Updated amanda configuration file
1370         * example/Makefile.am man/Makefile.am server-src/Makefile.am
1371           common-src/Makefile.am: Added amserverconfig, amaddclient, 
1372           amgpgcrypt and amcryptsimple
1373         * device-src/Makefile.am: Fixed libamdevice version
1374         * configure.in: Added template files
1375         * amanda.spec: Updated spec file for new utilities
1376
1377 2007-11-01  Dustin J. Mitchell <dustin@zmanda.com>
1378         * config/automake/installperms.am: new method of specifying
1379           permissions on installed files
1380         * config/amanda/userid.m4 configure.in: add --disable-installperms
1381           to disable any permsisions settings (useful for packaging builds)
1382         * oldrecover-src/Makefile.am example/Makefile.am
1383           changer-src/Makefile.am amplot/Makefile.am
1384           client-src/Makefile.am amandad-src/Makefile.am man/Makefile.am
1385           dumper-src/Makefile.am recover-src/Makefile.am
1386           server-src/Makefile.am restore-src/Makefile.am
1387           Makefile.am support/Makefile.am common-src/Makefile.am
1388           tape-src/Makefile.am: use installperms.am
1389
1390 2007-11-01  Dustin J. Mitchell <dustin@zmanda.com>
1391         Suggested by Jon LaBadie
1392         * config/automake/precompile.am: new rule to make
1393           precompiler output files; useful for debugging
1394         * */Makefile.am: include precompile.am
1395
1396 2007-11-01  Jean-Louis Martineau <martineau@zmanda.com>
1397         * AUTHORS: Add Dustin J. Mitchell.
1398
1399 2007-10-31  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
1400         * most C files, amanda.h: Switch to using the g_printf family, which
1401           supports a consistent set of %-conversions, including the 'z'
1402           (size_t) and 'j' (intmax_t) size specifiers.  Convert various
1403           printf format strings accordingly.
1404
1405 2007-10-31  Dustin J. Mitchell <dustin@zmanda.com>
1406         * common-src/genversion.c common-src/Makefile.am: fix BUILD_REV
1407           and BUILD_BRANCH to work even when packages are built from
1408           distribution tarballs
1409
1410 2007-10-31  Ian Turner <ian@zmanda.com>
1411         * server-src/taperscan.c: Don't segfault if there is an error opening
1412           a device during taperscan.
1413
1414 2007-10-30  Dustin J. Mitchell <dustin@zmanda.com>
1415         * docs autogen INSTALL UPGRADING configure.in 
1416           DEVELOPING Makefile.am: remove docs/ directory in favor of
1417           manpages and online reference; most docs/* were outdated
1418
1419 2007-10-29  Dustin J. Mitchell <dustin@zmanda.com>
1420         * changer-src/chg-zd-mtx.sh: fix typo
1421
1422 2007-10-29  Ian Turner <ian@zmanda.com>
1423         * restore-src/restore.c: Don't mention slot numbers when running
1424           without a changer.
1425
1426 2007-10-29  Ian Turner <ian@zmanda.com>
1427         * man/xml-source/amfetchdump.8.xml: Remove documentation for
1428           amfetchdump -i.
1429
1430 2007-10-26  Dustin J. Mitchell <dustin@zmanda.com>
1431         Add support for post-install tests, which can be more thorough than
1432         unit tests.
1433         * configure.in Makefile.am installcheck/*: new directory
1434         * installcheck/amgetconf.pl: test some of amgetconf's functionality
1435         * docs/developing.txt: notes on various test mechanisms
1436         * config/automake/scripts.am: add CHECK_PERL_FLAGS
1437         * common-src/debug.c: only try to chown debug files if running as root
1438
1439 2007-10-25  Dustin J. Mitchell <dustin@zmanda.com>
1440         * config/mkinstalldirs config/depcomp config/config.guess
1441           config/ltmain.sh config/config.sub config/missing
1442           config/install-sh config/ylwrap: update files with automake-1.10, 
1443           libtool-1.5.24
1444         * autogen: don't call automake with --add-missing, as it stomps all
1445           over the working copy
1446
1447 2007-10-25  Dustin J. Mitchell <dustin@zmanda.com>
1448         * gnulib/* config/*: updated to latest gnulib
1449         * gnulib/regenerate/regenerate: update gnulib date
1450         * gnulib/regenerate/getaddrinfo-cygwin.patch: update to patch new
1451           getaddrinfo.c
1452         * device-src/tests/vfs_test.c: mkdtemp.h no longer exists
1453
1454 2007-10-24  Jean-Louis Martineau <martineau@zmanda.com>
1455         * client-src/Makefile.am: Remove duplicate entry for
1456                                   libamclient_la_SOURCES.
1457
1458 2007-10-23  Dustin J. Mitchell <dustin@zmanda.com>
1459         * config/automake/scripts.am: rules to build (substitute) scripts
1460         * config/automake/vars.am: define empty variables for later appending
1461         * config/automake/check-perl.am config/automake/check-shell.pm:
1462           removed
1463         * changer-src/Makefile.am amplot/Makefile.am client-src/Makefile.am
1464           dumper-src/Makefile.am server-src/Makefile.am 
1465           common-src/Makefile.am: Use new include files
1466         * configure.in: remove now-unnecessary AC_CONFIG_FILES
1467         * *.sh.in *.pl.in *.awk.in: renamed
1468
1469 2007-10-20  Jean-Louis Martineau <martineau@zmanda.com>
1470         * server-src/reporter.c: Always call sort_disks.
1471
1472 2007-10-20  Jean-Louis Martineau <martineau@zmanda.com>
1473         * man/xml-source/amanda.conf.5.xml: Correctly document portrange.
1474         * common-src/conffile.c: Fix portrange.
1475
1476 2007-10-20  Jean-Louis Martineau <martineau@zmanda.com>
1477         * common-src/conffile.c: Allow reserved-udp-port and reserved-tcp-port
1478                                  in amanda-client.conf.
1479
1480 2007-10-17  Dustin J. Mitchell <dustin@zmanda.com>
1481         * common-src/amanda.h: remove amflock cruft
1482
1483 2007-10-16  Dustin J. Mitchell <dustin@zmanda.com>
1484         * config/amanda/defaults.m4: Change EXAMPLE_TAPEDEV to use the 'tape:'
1485         syntax, and to indicate "you need to change this!" more explicitly
1486
1487 2007-10-16  Ian Turner <ian@zmanda.com>
1488         * common-src/glib-util.c: Allow use of units in parsing GValues; in
1489           particular, this allows use of units when specifying device
1490           properties in the configuration file.
1491         * common-src/conffile.c, common-src/conffile.h: Make unit suffixes
1492           available outside of conffile.c.
1493
1494 2007-10-16  Ian Turner <ian@zmanda.com>
1495         * device-src/device.c: Fix a compilation error in
1496           device_set_startup_properties_from_config().
1497
1498 2007-10-16  Ian Turner <ian@zmanda.com>
1499         * man/xml-source/amanda.conf.5.xml, server-src/taper.c,
1500           common-src/conffile.c, common-src/conffile.h: Add new
1501           configuration directive device_output_buffer_size to replace
1502           tapebufs.
1503
1504 2007-10-15  Ian Turner <ian@zmanda.com>
1505         * device-src/device.c: Don't complain about problems setting
1506           MAX_VOLUME_USAGE; do complain about problems setting
1507           READ_BUFFER_SIZE.
1508
1509 2007-10-16  Jean-Louis Martineau <martineau@zmanda.com>
1510         * client-src/sendbackup-gnutar.c: Use GNUTAR.
1511
1512 2007-10-15  Dustin J. Mitchell <dustin@zmanda.com>
1513         * device-src/device.c: do not fall back to tape:/foo if the tape
1514           device is not available (WANT_TAPE_DEVICE is not set)
1515
1516 2007-10-12  Dustin J. Mitchell <dustin@zmanda.com>
1517         * changer-src/chg-mtx.sh.in changer-src/chg-zd-mtx.sh.in
1518           changer-src/chg-multi.sh.in: add missing definition of prefix
1519
1520 2007-10-12  Jean-Louis Martineau <martineau@zmanda.com>
1521         * common-src/protocol.c (s_repwait): return PA_FINISH on P_NAK.
1522
1523 2007-10-11  Dustin J. Mitchell <dustin@zmanda.com>
1524         * config/amanda/tape.m4: fix typo (have_MTIOCTOP -> HAVE_MTIOCTOP)
1525
1526 2007-10-10  Dustin J. Mitchell <dustin@zmanda.com>
1527         * common-src/amflock-test.c common-src/amflock-lnlock.c: don't use
1528           AMANDA_TMPDIR during build-time testing
1529
1530 2007-09-14  Dustin J. Mitchell <dustin@zmanda.com>
1531         * recover-src/uscan.l recover-src/extract_list.c 
1532           recover-src/uparse.y recover-src/amrecover.h 
1533           recover-src/help.c recover-src/set_commands.c: deprecate
1534           'settape', add 'setdevice'
1535         * man/xml-source/amrecover.8.xml: corresponding doc update
1536         * example/amanda.conf.in: update comments in example config, 
1537           change default value of amrecover_changer from the confusing
1538           "/dev/null"
1539
1540 2007-10-09  Dustin J. Mitchell <dustin@zmanda.com>
1541         * common-src/amflock-test.c: lock files in the cwd, rather than /tmp,
1542           and pay attention to errors from unlink()
1543
1544 2007-10-09  Dustin J. Mitchell <dustin@zmanda.com>
1545         * gnulib/regenerate/regenerate gnulib/mkdtemp.c gnulib/mkdtemp.h
1546           gnulib/gettimeofday.c gnulib/sys_time_.h gnulib/tempname.c
1547           gnulib/tempname.h gnulib/stat_.h gnulib/Makefile.am
1548           device-src/tests/vfs_test.c config/gnulib/mkdtemp.m4
1549           config/gnulib/sys_time_h.m4 config/gnulib/tempname.m4
1550           config/gnulib/gnulib-comp.m4 config/gnulib/sys_stat_h.m4
1551           config/gnulib/gnulib-cache.m4 config/gnulib/gettimeofday.m4:
1552           add 'mkdtemp' gnulib module, use it in vfs_test.c
1553
1554 2007-10-09  Jean-Louis Martineau <martineau@zmanda.com>
1555         * common-src/util.c (portable_readdir): Don't use reentrant function.
1556
1557 2007-10-08  Dustin J. Mitchell <dustin@zmanda.com>
1558         * autogen configure.in config/macro-archive/*.m4
1559           config/amanda/*.m4 config/libtool/*.m4: move most autoconf
1560           checks to macros in .m4 files.  Hilights of changes along the way:
1561           - use AC_REQUIRES to enforce check ordering
1562           - Add a post-configure summary of important results
1563           - use AM_CONDITIONAL to control conditional compilation of whole
1564             files, instead of preprocessor macros
1565           - correct spelling of PRINCIPLE -> PRINCIPAL
1566           - remove support for dbmalloc (we use valgrind, coverity, etc. now)
1567           - remove support for infofiles in anything but text format
1568           - change DONT_SUID_ROOT to !WANT_SETUID_ROOT
1569           - remove unused --with-broken-fsf
1570           - remove multiple unused function and header checks, the defines
1571             from which do not appear in any source file
1572           - remove LTLIBOBJS cruft based on
1573             http://www.delorie.com/gnu/docs/autoconf/autoconf_165.html
1574           - remove unused LTALLOCA definition based on
1575             http://www.delorie.com/gnu/docs/libtool/libtool_30.html
1576           - use autoconf macro archive's
1577             AC_DEFINE_DIR to expand $prefix, etc. in directory variables
1578           - do not *require* --with-{user,group}; this allows 'make distcheck'
1579             to run successfully
1580         * docs/developing.txt: describe how to update gnulib, libtool, and
1581           gettext
1582         * po/reautopoint.patch po/reautopoint: script to update gettext,
1583           parallel to gnulib/regenerate/regenerate
1584         * amandad-src/amandad.c changer-src/scsi-aix.c
1585           changer-src/scsi-bsd.c changer-src/scsi-cam.c
1586           changer-src/scsi-changer-driver.c changer-src/scsi-chio.c
1587           changer-src/scsi-hpux.c changer-src/scsi-hpux_new.c
1588           changer-src/scsi-irix.c changer-src/scsi-linux.c
1589           changer-src/scsi-proto.c changer-src/scsi-solaris.c
1590           changer-src/sense.c client-src/calcsize.c client-src/getfsent.c
1591           client-src/selfcheck.c client-src/sendbackup.c
1592           client-src/sendsize.c common-src/alloc.c common-src/amanda.h
1593           common-src/conffile.c common-src/debug.c common-src/file.c
1594           common-src/genversion.c common-src/krb4-security.c
1595           common-src/writev.c device-src/tape-posix.c server-src/amadmin.c
1596           server-src/amcheck.c server-src/amlabel.c server-src/amlogroll.c
1597           server-src/amtape.c server-src/amtrmidx.c server-src/amtrmlog.c
1598           server-src/changer.c server-src/chunker.c server-src/diskfile.c
1599           server-src/driver.c server-src/dumper.c server-src/getconf.c
1600           server-src/infofile.c server-src/infofile.h server-src/planner.c
1601           server-src/reporter.c tape-src/output-tape.c: changes corresponding
1602           to simplifications and fixes in autoconf
1603         * gnulib/regenerate/no-error.patch gnulib/regenerate/regenerate: no
1604           need to create gnulib.m4i anymore
1605
1606 2007-10-08  Kevin Till <ktill@zmanda.com>  (merged by dustin@zmanda.com)
1607         * example/amanda.conf.in: add segate LTO tapetype
1608
1609 2007-10-08  Paddy Sreenivasan <paddy@zmanda.com>
1610         * changer-src/chg-lib.sh.in
1611           changer-src/chg-null.sh.in changer-src/chg-disk.sh.in
1612           changer-src/chg-juke.sh.in changer-src/chg-rait.sh.in
1613           changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in
1614           amplot/amplot.sh.in client-src/patch-system.sh.in
1615           server-src/amcheckdb.sh.in server-src/amverifyrun.sh.in
1616           server-src/amrmtape.sh.in server-src/amverify.sh.in
1617           server-src/amfreetapes.sh.in server-src/amcleanup.sh.in
1618           server-src/amdump.sh.in common-src/amanda-sh-lib.sh.in
1619           common-src/amcrypt-ossl-asym.sh.in common-src/amcrypt.sh.in
1620           common-src/amaespipe.sh.in common-src/Makefile.am
1621           common-src/amcrypt-ossl.sh.in: move amanda-sh-lib.sh from
1622           $libexecdir/amanda to just $libexecdir
1623
1624 2007-10-04  Dustin J. Mitchell <dustin@zmanda.com>
1625         * device-src/tests/Makefile.am device-src/tests/vfs_test.c: add a test
1626           for the vfs device
1627         * device-src/property.c device-src/vfs-device.c: add
1628           PROPERTY_FREE_SPACE
1629
1630 2007-10-04  Dan Locks <dwlocks@zmanda.com>
1631         * amanda.spec: add .spec file Zmanda uses for community builds
1632         
1633 2007-10-04  Dustin J. Mitchell <dustin@zmanda.com>
1634         * device-src/device.c device-src/Makefile.am configure.in: add
1635           WANT_TAPE_DEVICE conditional, for machines that have no tape
1636           support whatsoever (Mac OS X)
1637
1638 2007-10-03  Dan Locks <dwlocks@zmanda.com>
1639         * configure.in: Added /opt/local/bin AC_PATH_PROG(PKG_CONFIG.. for 
1640           mac osx and macports
1641
1642 2007-10-03  Jean-Louis Martineau <martineau@zmanda.com>
1643         * server-src/driver.c: Go in degraded mode after out of tape.
1644
1645 2007-10-02  Jean-Louis Martineau <martineau@zmanda.com>
1646         * man/xml-source/amanda.conf.5.xml: Fix indentation.
1647
1648 2007-10-02  Dustin J. Mitchell <dustin@zmanda.com>
1649         * server-src/amcheck.c: Fix typo in merge found by
1650           martineau@zmanda.com
1651
1652 2007-10-01  Ian Turner <ian@zmanda.com>
1653         * device-src/rait-device.c, device-src/queueing.c,
1654           device-src/tests/device_test.c, device-src/device.h,
1655           device-src/device.c: Remove device_is_eof() function in favor of
1656           accessing is_eof member directly.
1657
1658 2007-10-01  Dustin J. Mitchell <dustin@zmanda.com>
1659         Coverity bug #237
1660         * amandad-src/amandad.c: fix a use-after-free
1661
1662 2007-10-01  Ian Turner <ian@zmanda.com>
1663         * device-src/device.c: Automatically register the CANONICAL_NAME
1664           property for all devices.
1665
1666 2007-10-01  Ian Turner <ian@zmanda.com>
1667         * device-src/tape-posix.c: Use MTEOD on systems that have it but not
1668           MTEOM.
1669
1670 2007-10-01  Ian Turner <ian@zmanda.com>
1671         * device-src/device.c, device-src/vfs-device.c,
1672           device-src/rait-device.c: Use g_strdup() instead of strdup().
1673
1674 2007-10-01  Ian Turner <ian@zmanda.com>
1675         * changer-src/chg-lib.sh.in: Fix some compilation problems on
1676           Solaris 10.
1677
1678 2007-09-25  Dan Locks <dwlocks@zmanda.com>
1679         * common-src/util.c: cast uid_t to long long for printf formatting
1680
1681 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1682         * oldrecover-src/Makefile.am changer-src/Makefile.am
1683           client-src/Makefile.am amandad-src/Makefile.am
1684           recover-src/Makefile.am server-src/Makefile.am
1685           restore-src/Makefile.am common-src/Makefile.am
1686           tape-src/Makefile.am: replace -I../config with 
1687           -I$(top_builddir)/config
1688         * device-src/tests/Makefile.am: Replace -I.. with 
1689           -I$(top_srcdir)/device-src
1690
1691 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1692         * client-src/sendsize.c: change "smbclient" to SAMBA_CLIENT to allow
1693           configurable name
1694
1695 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1696         * common-src/amflock-flock.c common-src/amflock-posix.c
1697           common-src/amflock-lockf.c common-src/amflock-lnlock.c
1698           common-src/amflock.c: use G_GNUC_UNUSED to avoid compiler
1699           warnings
1700
1701 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1702         * common-src/amanda.h common-src/file.h: move declaration of 
1703           canonicalize_pathname to file.h
1704
1705 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1706         * common-src/util.c common-src/util.h: only check euid==uid
1707           if not RUNNING_AS_UID_ONLY; set_root_privs() checks that euid=0
1708         * client-src/runstar.c client-src/noop.c client-src/runtar.c
1709           client-src/sendbackup.c client-src/killpgrp.c
1710           client-src/sendsize.c client-src/selfcheck.c
1711           client-src/rundump.c amandad-src/amandad.c
1712           server-src/amlogroll.c server-src/amindexd.c
1713           server-src/amcheck.c server-src/dumper.c server-src/planner.c
1714           server-src/chunker.c server-src/amadmin.c server-src/amtape.c
1715           server-src/amcleanupdisk.c server-src/amflush.c
1716           server-src/amtrmlog.c server-src/amdevcheck.c
1717           server-src/driver.c server-src/reporter.c server-src/taper.c
1718           server-src/amtrmidx.c server-src/amlabel.c
1719           restore-src/amidxtaped.c restore-src/amfetchdump.c:
1720           remove RUNNING_WITHOUT_SETUID and change RUNNING_AS_SETUID_ROOT
1721           to RUNNING_AS_UID_ONLY (with corresponding checks for root-ness)
1722         * client-src/calcsize.c: drop root privs immediately, and only
1723           regain them for stat() and opendir() operations
1724
1725 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1726         * device-src/property.c device-src/property.h: create VERBOSE property
1727
1728 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1729         * device-src/device.h device-src/queueing.h: expand comments
1730         * tape-src/output-rait.h tape-src/output-null.c 
1731           tape-src/output-null.h tape-src/output-file.c 
1732           tape-src/output-file.h tape-src/output-tape.c 
1733           tape-src/output-tape.h tape-src/output-rait.c: add deprecation
1734           comment
1735
1736 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1737         * changer-src/chg-zd-mtx.sh.in: Don't pass stripped device names back
1738           to Amanda.
1739
1740 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1741         * changer-src/chg-mtx.sh.in, changer-src/chg-manual.sh.in,
1742           changer-src/chg-zd-mtx.sh.in, changer-src/chg-juke.sh.in,
1743           changer-src/chg-chs.sh.in, changer-src/chg-multi.sh.in: Don't use
1744           ammt for anything; use system mt and only for device operations that
1745           require it.
1746         * changer-src/chg-lib.sh.in: Support for above change.
1747
1748 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1749         * device-src/tape-device.c: Fix a border case bug where
1750           tape_device_robust_read() would abort when called with a buffer
1751           exactly equal to the minimum read size.
1752
1753 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1754         * device-src/tape-device.c: Use g_strdup() instead of strdup().
1755
1756 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1757         * device-src/vfs-device.h, device-src/fd-device.c,
1758           device-src/tape-device.c, device-src/Makefile.am,
1759           device-src/fd-device.h, device-src/tape-device.h,
1760           device-src/vfs-device.c: Delete the FdDevice and make TapeDevice
1761           and VfsDevice direct descendants of Device. Also, correct all
1762           reading and writing of volume and part labels for both drivers.
1763         * server-src/amcheck.c: Unlabeled tapes are OK, at least with
1764           label_new_tapes_option.
1765
1766 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1767         * server-src/taperscan.c: Fix the order of arguments to
1768           scan_read_label(). Patch by Dustin J. Mitchell <dustin@zmanda.com>.
1769
1770 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1771         * restore-src/restore.c: Change "no tapedev specified" message.
1772
1773 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1774         * server-src/amtape.c: changer_label should be called only on success.
1775
1776 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1777         * restore-src/restore.c: init cur_tapedev.
1778
1779 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1780         * gnulib/regenerate/regenerate gnulib/* config/gnulib/*: add
1781           gnulib module 'fsusage'
1782         * common-src/statfs-test.c common-src/statfs.c
1783           common-src/statfs.h common-src/Makefile.am: remove old statfs
1784         * client-src/selfcheck.c client-src/calcsize.c
1785           server-src/amcheck.c server-src/driver.c: use fsusage instead of
1786           statfs
1787
1788 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1789         * common-src/alloc.c: Do away with debug_amfree(), which makes invalid
1790           assumptions about the way system malloc() works.
1791         * common-src/amanda.h: Update definition of amtable_free() accordingly.
1792
1793 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1794         * server-src/amadmin.c: Allow 'f' sort order.
1795         * server-src/find.c: Fix parsing of log files.
1796         * server-src/find.h (DEFAULT_SORT_ORDER): Set to "hkdlpbf".
1797
1798 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1799         * server-src/driverio.h (sched_t): Split attempted in dump_attempted
1800                                            and taper_attempted.
1801         * server-src/driver.c: Split attempted in dump_attempted
1802                                and taper_attempted.
1803         * server-src/driver.c (file_taper_result): Retry dump if INPUT-ERROR.
1804
1805 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1806         * server-src/dumper.c (add_msg_data): Remove bogus handling of "
1807                                               in mesg stream.
1808
1809 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1810         * server-src/taper-file-source.c: If there's a problem reading the
1811           holding disk, log the error as we get it from the OS.
1812
1813 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1814         * server-src/taper-source.c, server-src/taper.c: Do the right thing
1815           if the connection to dumper is severed before we recieve a header.
1816
1817 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1818         * server-src/taper-source.c, server-src/taper-source.h,
1819           server-src/taper-source-test.c, server-src/taper-port-source.c,
1820           server-src/taper-port-source.h: Don't have TaperPortSource track
1821           the control FD, and make it responsible for closing the data FD.
1822         * server-src/taper.c: ditto, plus close control socket correctly.
1823
1824 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1825         * server-src/vfs-device.c: Fix a bug where all VFS device volumes
1826           were thought unlabeled. Also do the right thing when there are
1827           extra files in the VFS volume directory.
1828         * server-src/amlabel.c: Fail if there is a problem re-reading the
1829           volume label.
1830
1831 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1832         * device-src/device.c: Set the device name before reading the label.
1833         * device-src/fd-device.c: An invalid header indicates an unlabeled
1834           volume, not a volume error.
1835         * device-src/taper-device.c: Insufficient buffer space causes
1836           ENOMEM, not ENOSPC, at least on Linux.
1837         * server-src/amlabel.c: Correctly handle the case where
1838           device_read_label() returns exactly 1 set bit.
1839
1840 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1841         * server-src/taper-source.c, server-src/taper-disk-port-source.c,
1842           server-src/taper.c: Be careful not to use strings from getcwd()
1843           past the next invocation of getcwd().
1844
1845 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1846         * device-src/vfs-device.c: Use old VFS device specification.
1847
1848 2007-09-25  Ian Turner <ian@zmanad.com> (merged by dustin@zmanda.com)
1849         * server-src/amlabel.c: Don't dump core on successful labeling.
1850
1851 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1852         * device-src/tests/semaphore-test.c device-src/tests/Makefile.am:
1853           test semaphore module
1854         * device-src/semaphore.c: bugfixes, optimizations
1855         * device-src/semaphore.h: inline documentation
1856
1857 2007-09-25  Nikhil Bandiwadekar <nikhil@zmanda.com> (merged by dustin@zmanda.com)
1858         * server-src/driver.c: Added quoting to directory name while logging
1859             in statistics section
1860         * server-src/reporter.c: Handled quoted string for directory name in
1861             statistics section
1862
1863 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1864         * device-src/device.c, device-src/device.h, device-src/s3-device.c,
1865           device-src/fd-device.c, device-src/tape-device.c,
1866           device-src/vfs-device.c, device-src/rait-device.c: Implement new,
1867           more nuanced device_read_label() interface.
1868         * server-src/amcheck.c, server-src/amtape.c, server-src/taperscan.c,
1869           server-src/amlabel.c, restore-src/amrestore.c,
1870           restore-src/restore.c: Use new interface.
1871         * common-src/glib-util.c, common-src/glib-util.h: New Flags->string
1872           interface.
1873         * server-src/amdevcheck.c: New tool to check device/volume status.
1874         * man/xml-source/amdevcheck.8.xml: Document it.
1875         * server-src/Makefile.am: Add amdevcheck
1876         * man/Makefile.am: Add amdevcheck.8
1877
1878 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1879         * device-src/s3-device.c: adjust glib logging calls to match debug.h's
1880           definitions.
1881         * common-src/debug.c: typo
1882         * common-src/debug.h: add definitions for g_info() and g_debug() if
1883           they are missing
1884
1885 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1886         Thanks to Pavel Pragin <ppragin@zmanda.com> for finding these issues.
1887         * server-src/amtape.c: Update the changer database in 'amtape update'.
1888           Thanks to Dustin J. Mitchell <dustin@zmanda.com> for this fix.
1889         * server-src/taperscan.c: Update the changer database during the
1890           taper scan algorithm.
1891
1892 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1893         Thanks to Jean-Louis Martineau <martineau@zmanda.com> for these fixes:
1894         * server-src/dumper.c: Log packet to debug file.
1895         * server-src/planner.c: Improve quoting.
1896         * server-src/driver.c: Don't call free_serial if we still need it.
1897         * server-src/driver.c: Wait for dumper result if taper fail.
1898         * server-src/amstatus.pl.in: Improve parsing of initial schedule.
1899
1900 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1901         * device-src/tape-device.c: Use the right default block size for
1902           reading.
1903
1904 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1905         * device-src/vfs-device.c: add forgotten device_add_property() call
1906
1907 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1908         * server-src/taper.c: Remove an erroneous assertion. Thanks to
1909           Jean-Louis Martineau <martineau@zmanda.com> for noticing this issue.
1910
1911 2007-09-25  Patch by Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1912         * server-src/driverio.h server-src/driver.c: Record
1913           information from first PARTDONE result.  Remove duplicate
1914           update_info_dumper.  Call update_info_taper as needed.
1915
1916 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1917         * restore-src/restore.c: Don't send text to prompt_out if amidxtaped.
1918
1919 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1920         * restore-src/amfetchdump.c: Fix a bug where amfetchdump will never
1921                                      try to use the changer.
1922
1923 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1924         * restore-src/amfetchdump.c: Fix a bug where amfetchdump will
1925           still try to use the changer even with the -d parameter.
1926
1927 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1928         * man/xml-source/amadmin.8.xml server-src/amadmin.c: add an
1929           'outd' column to 'amadmin CONF holding list -l', indicating
1930           an "outdated" dump, and a '-d' option to list only outdated
1931           holding disk files.  Outdated dumps are described in the
1932           amadmin documentation.
1933
1934 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1935         * client-src/sendsize.c configure.in server-src/getconf.c
1936           restore-src/amrestore.c restore-src/amfetchdump.c
1937           common-src/util.c common-src/genversion.c common-src/util.h
1938           common-src/debug.c common-src/error.c common-src/amanda.h
1939           common-src/Makefile.am:
1940           - support the glib logging infrastructure by feeding messages
1941             into debug logs
1942           - merge the error module into the debug module
1943           - document debug.h with verbose comments
1944           - call g_critical() for error() and g_error() for errordump()
1945           - remove double dgettext() call in debug_printf
1946           - remove --without-debugging (so debugging is always on)
1947           - remove mostly unused debug prefix support
1948           - remove onerror(), replacing its few uses with alternatives
1949
1950 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1951         * device-src/tests/device_test.c configure.in
1952           recover-src/extract_list.c recover-src/uparse.y
1953           server-src/amlogroll.c server-src/dumper.c server-src/reporter.c
1954           common-src/conffile.c common-src/amanda.h common-src/getcwd.c
1955           common-src/getcwd.h common-src/Makefile.am: Replace calls
1956           to safe_getcwd with calls to g_get_current_dir(), which
1957           has the same signature and semantics.
1958
1959 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1960         * restore-src/restore.c: Fix a bug where amfetchdump would not
1961           restore anything when given the -p option. Thanks to Jean-Louis
1962           Martineau <martineau@zmanda.com> for help in the development of
1963           this patch.
1964
1965 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1966         * man/xml-source/amanda.conf.5.xml: note that includefile can
1967           take relative paths
1968         * server-src/amcleanupdisk.c: fix local variable shadowing 
1969           config_dir
1970
1971 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1972         * server-src/holding.c (holding_walk_file): amfree(filename).
1973
1974 2007-09-25  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
1975         * man/Makefile.am: fixes for conditional compiles
1976
1977 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1978         * common-src/conffile.c: Clean up some bad warning suppression and
1979           obselete unused code.
1980
1981 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1982         * example/config.site man/xml-source/amanda.conf.5.xml
1983           device-src/device.c device-src/device.h device-src/property.c
1984           device-src/fd-device.c device-src/tape-device.c
1985           device-src/property.h device-src/tape-device.h
1986           device-src/tape-ops.h server-src/amcheck.c server-src/amtape.c
1987           server-src/taperscan.c server-src/taper.c server-src/amlabel.c
1988           restore-src/amrestore.c restore-src/restore.c:
1989           This patch adds a new property READ_BUFFER_SIZE which is used
1990           only by the tape device. The VFS device still uses BLOCK_SIZE
1991           for reading; other devices don't need the property.
1992
1993 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1994         * server-src/amcheck.c: remove debugging message
1995         * device-src/tape-posix.c: fix compilation
1996           errors when MTCOMPRESSION is not defined
1997
1998 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1999         * Makefile.am config/Makefile.am config/ax_create_stdint_h.m4i
2000           autogen configure.in: remove AX_CREATE_STDINT_H
2001         * configure.in: add system-specific glib configuration
2002         * changer-src/scsi-cam.c device-src/device.c
2003           device-src/device.h device-src/tests/device_test.c
2004           device-src/rait-device.c server-src/amcheck.c
2005           server-src/taper.c server-src/amlabel.c
2006           restore-src/amrestore.c restore-src/restore.c
2007           common-src/glib-util.c common-src/security-util.c
2008           common-src/amanda.h common-src/krb4-security.c:
2009           replace references to stdint types and defines with glib
2010           equivalents
2011
2012 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2013         * device-src/s3.c, device-src/tape-device.c,
2014           device-src/rait-device.c: Fix a number of compiler warnings, some
2015           legimate, others not. Thanks to Dustin J. Mitchell
2016           <dustin@zmanda.com> and Jean-Louis Martineau <martineau@zmanda.com>
2017           for help identifying warnings that need fixing.
2018
2019 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
2020         * man/xml-source/amcleanup.8.xml server-src/amcleanupdisk.c
2021           server-src/amcleanup.sh.in: add -v option for verbose output
2022         * server-src/holding.c server-src/holding.h: rewrite 
2023           implementation of the holding API to use functors
2024         * server-src/driver.c: modifications to holding API changes
2025
2026 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2027         * device-src/device.c: Suppress a compiler warning.
2028
2029 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2030         * device-src/device.h, device-src/device.c, device-src/fd-device.c,
2031           device-src/tape-device.c, device-src/vfs-device.c,
2032           device-src/rait-device.c: Update the seek_file API skip missing
2033           files. Thanks to Dustin J. Mitchell <dustin@zmanda.com> and
2034           Jean-Louis Martineau <martineau@zmanda.com> for help with this patch.
2035         * restore-src/restore.c: Use the new API.
2036
2037 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2038         * client-src/Makefile.am, device-src/tests/Makefile.am,
2039           device-src/Makefile.am, configure.in, common-src/Makefile.am,
2040           tape-src/Makefile.am: Use AM_CFLAGS and LDFLAGS when
2041           compiling. These changes by Dustin J. Mitchell <dustin@zmanda.com>.
2042         * device-src/device.c, device-src/null-device.c,
2043           device-src/device.c, device-src/queueing.c, device-src/property.c,
2044           device-src/fd-device.c, device-src/s3-device.c,
2045           device-src/semaphore.h, device-src/property.h,
2046           device-src/vfs-device.c: Fix compiler warnings revealed by above
2047           change. Thanks to Jean-Louis Martineau Jean-Louis Martineau
2048           <martineau@zmanda.com> for help with these fixes.
2049
2050 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
2051         * restore-src/restore.c restore-src/restore.h:
2052         Allow NULLs in arguments to dump_match(); make it a static
2053         function.
2054
2055 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
2056         * device-src/device.c device-src/vfs-device.h
2057           device-src/rait-device.h device-src/device.h
2058           device-src/null-device.c device-src/tape-aix.c
2059           device-src/tape-uware.c device-src/null-device.h
2060           device-src/tape-xenix.c device-src/queueing.c
2061           device-src/semaphore.c device-src/property.c
2062           device-src/fd-device.c device-src/tape-device.c 
2063           device-src/queueing.h device-src/semaphore.h
2064           device-src/property.h device-src/tape-posix.c
2065           device-src/fd-device.h device-src/tape-device.h
2066           device-src/vfs-device.c device-src/rait-device.c
2067           device-src/tape-ops.h common-src/glib-util.c
2068           common-src/glib-util.h: restrict to GPLv2
2069
2070 2007-09-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2071         * Correct Cygwin build errors:
2072           common-src/Makefile.am
2073           common-src/amanda.h
2074
2075 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
2076         * server-src/cmdline.c server-src/planner.c server-src/amadmin.c
2077           server-src/amcleanupdisk.c server-src/amflush.c
2078           server-src/holding.c server-src/holding.h server-src/driver.c
2079           server-src/find.c common-src/glib-util.c common-src/glib-util.h:
2080           remove 'verbose' flag, remove holding directories from API (they 
2081           will be gone soon anyway), and rework the holding module to use 
2082           glib data structures
2083
2084 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
2085         * gnulib/regenerate/regenerate gnulib/Makefile.am
2086           device-src/tests/Makefile.am device-src/Makefile.am
2087           server-src/taper-mem-port-source.c server-src/taper.c
2088           config/gnulib/gnulib-comp.m4 config/gnulib/gnulib-cache.m4
2089           config/gnulib.m4i common-src/physmem.c common-src/physmem.h
2090           common-src/amanda.h common-src/base64.c common-src/Makefile.am
2091           common-src/base64.h: move base64, physmem into gnulib and set
2092           device API to include libgnu.
2093
2094 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
2095         * common-src/Makefile.am: remove redundant use of EXTRA_DIST
2096
2097 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
2098         * device-src/device.c device-src/tests/device_test.c
2099           device-src/rait-device.c server-src/amcheck.c
2100           server-src/amtape.c server-src/taperscan.c server-src/taper.c
2101           server-src/amlabel.c restore-src/restore.c: device_open() no
2102           longer free()s the device name it is given.
2103
2104 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
2105         * restore-src/restore.c: fix uninitialized value error
2106
2107 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
2108         * server-src/changer.c server-src/amindexd.c
2109           restore-src/amidxtaped.c common-src/debug.c common-src/amanda.h
2110           common-src/alloc.c: fix support for builds without --with-debugging
2111
2112 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
2113         * device-src/tests/queue_test.c: simplify signal handling to
2114           be more portable
2115
2116 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
2117         * server-src/cmdline.c server-src/cmdline.h:
2118           Optionally parse datestamps and levels
2119         * server-src/amadmin.c: pass flags to cmdline functions
2120         * server-src/find.c restore-src/amidxtaped.c
2121           restore-src/amrestore.c restore-src/restore.c
2122           restore-src/restore.h restore-src/amfetchdump.c:
2123           Use cmdline module in amrestore, amidxtaped, and amfetchdump
2124
2125 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2126         * restore-src/amrestore.c: Fix a segmentation fault that occurs
2127           when the user specifies hostname, diskname, and date. Thanks to
2128           Jean-Louis Martineau <martineau@zmanda.com> for finding and 
2129           fixing this bug.
2130
2131 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2132         * device-src/device.c (device_set_startup_properties_from_config):
2133           Use tapetype parameters as well as device_property directives.
2134         * device-src/device.h: ditto.
2135         * common-src/conffile.c: Use a new macro DEFAULT_TAPE_LENGTH
2136           as default tapetype length.
2137         * common-src/conffile.h: ditto.
2138         * restore-src/amrestore.c: Use new interface to
2139           devic_set_startup_properties_from_config().
2140         * restore-src/restore.c: ditto.
2141         * server-src/amcheck.c: ditto.
2142         * server-src/amlabel.c: ditto.
2143         * server-src/amtape.c: ditto.
2144         * server-src/taper.c: ditto.
2145         * server-src/taperscan.c: ditto.
2146
2147 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2148         * server-src/amcheck.c: Return 0 if everything is good with the
2149           tape. Thanks to Dustin Mitchell <dustin@zmanda.com> for 
2150           reporting this issue, and to Jean-Louis Martineau 
2151           <martineau@zmanda.com> for suggesting the form of the fix.
2152
2153 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2154         * server-src/restore.c: Only restore files matching requested
2155           disknames. Report and patch by Jean-Louis Martineau
2156           <martineau@zmanda.com>.
2157
2158 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2159         * server-src/restore.c: Drop some globals, use data types
2160           responsibly.
2161         
2162 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2163         * server-src/taper.c: Be slightly more rigorous in sanity-checking
2164           the expected number of splits.
2165         * server-src/taper-file-source.c: Correctly predict the number
2166           of splits.
2167         
2168 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2169         * device-src/vfs-device.c: Accept device names without a
2170           terminating '/'.
2171         
2172 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2173         Merge in new Device API. Thanks to Jean-Louis and Dustin for their
2174         code contributions to this patch.
2175
2176 2007-09-20  Dustin J. Mitchell <dustin@zmanda.com>
2177         * oldrecover-src/extract_list.c recover-src/extract_list.c: 
2178           change stralloc2 to newstralloc2 to avoid possible memory
2179           leak (coverity bug #214)
2180
2181 2007-09-17  Jean-Louis Martineau <martineau@zmanda.com>
2182         * client-src/client_util.c: Parse kencrypt in option string.
2183         * client-src/sendbackup.c: Send KENCRYPT keyword in REP packet.
2184         * client-src/client_util.h: Add kencrypt field in option_t.
2185         * amandad-src/amandad.c: Enable kencrypt.
2186         * server-src/dumper.c: Enable kencrypt.
2187         * common-src/security.h (accept): New prototype, add conf_fn and datap.
2188         * common-src/bsdtcp-security.c (bsdtcp_accept): Use new param.
2189         * common-src/ssh-security.c (ssh_connect): Set rh->rc->conf_fn and
2190                                                    rh->rc->datap
2191         * common-src/security-util.c (sec_accept): Set rc->conf_fn and
2192                                                    rc->datap
2193         * common-src/amanda.h (kencrypt_type): New enum.
2194         * common-src/bsdudp-security.c (bsdudp_accept): Use new param.
2195         * common-src/security-util.h (sec_accept): New prototype.
2196         * common-src/krb5-security.c: encryption enabled based on kencrypt.
2197         * common-src/bsd-security.c (bsd_accept):  Use new param.
2198
2199 2007-09-14  Dustin J. Mitchell <dustin@zmanda.com>
2200         * common-src/util.c common-src/util.h: add euid checks to
2201           check_running_as
2202         * client-src/runstar.c client-src/noop.c client-src/runtar.c
2203           client-src/sendbackup.c client-src/killpgrp.c
2204           client-src/sendsize.c client-src/selfcheck.c
2205           client-src/rundump.c client-src/calcsize.c
2206           amandad-src/amandad.c configure.in server-src/amlogroll.c
2207           server-src/amindexd.c server-src/dumper.c server-src/planner.c
2208           server-src/chunker.c server-src/amadmin.c server-src/amtape.c
2209           server-src/amcleanupdisk.c server-src/amflush.c
2210           server-src/amtrmlog.c server-src/amdevcheck.c
2211           server-src/driver.c server-src/reporter.c server-src/taper.c
2212           server-src/amtrmidx.c server-src/amlabel.c
2213           restore-src/amidxtaped.c restore-src/amfetchdump.c: use them
2214         * common-src/krb5-security.c: remove unused variable
2215
2216 2007-09-14  Dustin J. Mitchell <dustin@zmanda.com>
2217         * server-src/getconf.c: Don't check running_as in amgetconf, as
2218           it may not have a configuration file (e.g., for build params)
2219
2220 2007-09-12  Dustin J. Mitchell <dustin@zmanda.com>
2221         Bug identified by Satya Ganga <gsat@zmanda.com>
2222         * common-src/util.c: handle bad call to check_running_as correctly
2223
2224 2007-09-11  Dustin J. Mitchell <dustin@zmanda.com>
2225         Bug reported by Bill Bartlett; patch by Jean-Louis Martineau
2226         <martineau@zmanda.com>
2227         * common-src/statfs.c: fix error in available-space calculations
2228
2229 2007-09-10  Dustin J. Mitchell <dustin@zmanda.com>
2230         * server-src/amcheck.c: quiet compiler warnings when SINGLE_USERID is
2231           defined
2232
2233 2007-09-10  Dustin J. Mitchell <dustin@zmanda.com>
2234         * configure.in: change FORCE_USERID to CHECK_USERID, add SINGLE_USERID
2235           (when all of Amanda runs as the same userid) and WANT_SETUID_CLIENT
2236           (clint binaries should be setuid-root), currently only used on
2237           Cygwin.
2238         * common-src/util.c common-src/util.h: utility functions for userid
2239           checks and manipulations
2240         * oldrecover-src/amrecover.c client-src/runstar.c
2241           client-src/noop.c client-src/runtar.c client-src/sendbackup.c
2242           client-src/killpgrp.c client-src/sendsize.c
2243           client-src/selfcheck.c client-src/rundump.c
2244           client-src/calcsize.c amandad-src/amandad.c
2245           recover-src/amrecover.c server-src/amlogroll.c
2246           server-src/amindexd.c server-src/amcheck.c server-src/dumper.c
2247           server-src/planner.c server-src/chunker.c server-src/amadmin.c
2248           server-src/amtape.c server-src/amcleanupdisk.c
2249           server-src/getconf.c server-src/amflush.c server-src/amtrmlog.c
2250           server-src/amdevcheck.c server-src/driver.c
2251           server-src/reporter.c server-src/taper.c server-src/amdump.sh.in
2252           server-src/amtrmidx.c server-src/amlabel.c common-src/genversion.c 
2253           restore-src/amidxtaped.c restore-src/amfetchdump.c
2254           common-src/bsdtcp-security.c common-src/bsdudp-security.c
2255           common-src/krb5-security.c common-src/krb4-security.c
2256           common-src/bsd-security.c: use utility functions to check userids.
2257
2258 2007-09-07  Dustin J. Mitchell <dustin@zmanda.com>
2259         Change by Paul Bijnens
2260         * man/xml-source/amanda.conf.5.xml: Clarify 'etimeout'
2261
2262 2007-09-07  Dustin J. Mitchell <dustin@zmanda.com>
2263         * gnulib/regenerate/no-error.patch gnulib/Makefile.am: remove
2264           spurious sign-compare warnings from gnulib
2265
2266 2007-09-05  Dustin J. Mitchell <dustin@zmanda.com>
2267         Bug identified downstream in Debian packaging
2268         * changer-src/chg-null.sh.in: fix typo
2269
2270 2007-08-29  Dustin J. Mitchell <dustin@zmanda.com>
2271         * common-src/genversion.c common-src/Makefile.am: add subversion revision 
2272           and branch info to 'amadmin x version'
2273
2274 2007-08-23  Dustin J. Mitchell <dustin@zmanda.com>
2275         sf bug #1775316 reported by joerg <altix@users.sourceforge.net>
2276         * configure.in: use 'sed' instead of shell substitutions to C-quote
2277           ssh arguments
2278
2279 2007-08-22  Dustin J. Mitchell <dustin@zmanda.com>
2280         * common-src/Makefile.am: adjust dependencies so that 'make dist' can
2281           run without a 'make all'
2282
2283 2007-08-20  Dustin J. Mitchell <dustin@zmanda.com>
2284         * client-src/sendbackup-gnutar.c client-src/sendsize.c: use
2285           sanitized, canonicalized, and quoted filenames where necessary
2286         * server-src/driver.c: quote diskname in logfile
2287         * common-src/amanda.h common-src/file.c: Add ':' to the list
2288           of characters sanitised when constructing filenames from
2289           disknames; add canonicalize_pathname()
2290
2291 2007-08-14  Dustin J. Mitchell <dustin@zmanda.com>
2292         * common-src/amanda.h common-src/util.h: move readline headers
2293           out of amanda.h and into util.h, since the corresponding
2294           functions are in util.c
2295         * common-src/util.c: comments
2296         * configure.in: check for both headers and libraries and define
2297           HAVE_READLINE if both are found; add new --with-readline
2298           to require readline and --without-readline to not search
2299           for it at all.
2300         * oldrecover-src/Makefile.am recover-src/Makefile.am: remove explicit
2301           use of READLINE_LIBS
2302
2303 2007-08-09  Dustin J. Mitchell <dustin@zmanda.com>
2304         Patch by C R Ritson <c.r.ritson@newcastle.ac.uk>
2305         * server-src/amverifyrun.sh.in: "lock" the logfile by creating a 
2306           symlink.
2307
2308 2007-08-06  Dustin J. Mitchell <dustin@zmanda.com>
2309         * example/DLT-A4.ps example/Makefile.am: add new template contributed
2310           by Terry Burton <tez@terryburton.co.uk>.
2311
2312 2007-08-01  Dustin J. Mitchell <dustin@zmanda.com>
2313         Patch by Satya Ganga <gsat@zmanda.com>
2314         * server-src/amcleanup.sh.in: shell-compatibility fixes for bash-2.03
2315           (Solaris 8)
2316
2317 2007-07-31  Dustin J. Mitchell <dustin@zmanda.com>
2318         * common-src/statfs-test.c common-src/statfs.c common-src/statfs.h
2319           common-src/Makefile.am: Add a statfs-test to make sure that
2320           statfs works on target systems.
2321
2322 2007-07-27  Ian Turner <ian@zmanda.com>
2323         * restore-src/amfetchdump.c: Check for required arguments in
2324           all cases.
2325
2326 2007-07-27  Dustin J. Mitchell <dustin@zmanda.com>
2327         * config/automake/check-perl.am: new automake fragment to check perl scripts
2328         * config/automake/check-shell.am: new automake fragment to check shell scripts
2329         * configure.in changer-src/Makefile.am client-src/Makefile.am dumper-src/Makefile.am
2330           server-src/Makefile.am common-src/Makefile.am: use new checks
2331         * changer-src/chg-lib.sh.in: add newline for Solaris's 'bash'
2332         * changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in: fix errors found by
2333           new checks
2334
2335 2007-07-26  Ian Turner <ian@zmanda.com>
2336         * restore-src/restore.c: If tpchanger is not defined, then (duh)
2337           don't use the changer. This patch by Jean-Louis Martineau 
2338           <martineau@zmanda.com>.
2339
2340 2007-07-24  Dustin J. Mitchell <dustin@zmanda.com>
2341         * changer-src/chg-lib.sh.in common-src/amanda-sh-lib.sh.in
2342           configure.in common-src/Makefile.am: new general-purpose
2343           shell-script library
2344         * configure.in: check for prog 'gettext'
2345         * changer-src/chg-null.sh.in
2346           changer-src/chg-manual.sh.in changer-src/chg-disk.sh.in
2347           changer-src/chg-juke.sh.in changer-src/chg-rait.sh.in
2348           changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in
2349           amplot/amplot.sh.in client-src/patch-system.sh.in
2350           server-src/amcheckdb.sh.in server-src/amverifyrun.sh.in
2351           server-src/amrmtape.sh.in server-src/amverify.sh.in
2352           server-src/amfreetapes.sh.in server-src/amcleanup.sh.in
2353           server-src/amdump.sh.in common-src/amcrypt-ossl-asym.sh.in
2354           common-src/amcrypt.sh.in common-src/amaespipe.sh.in
2355           common-src/amcrypt-ossl.sh.in: use new library to function
2356           correctly even when gettext is missing.
2357
2358 2007-07-23  Jean-Louis Martineau <martineau@zmanda.com>
2359         * common-src/conffile.c: Set MaxWidth for numerical value
2360         * server-src/reporter.c: Calculate the size if a numerical value.
2361
2362 2007-07-20  Jean-Louis Martineau <martineau@zmanda.com>
2363         Patch by Dimitri Gorokhovik
2364         * changer-src/chg-multi.sh.in: Typo.
2365
2366 2007-07-18  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2367         * changer-src/chg-lib.sh.in, changer-src/chg-zd-mtx.sh.in: Correctly
2368           accept the use of tape:/dev/nst0 notation in chg-zd-mtx.
2369
2370 2007-07-18  Dustin J. Mitchell <dustin@zmanda.com>
2371         * server-src/reporter.c: fix reporting of STRANGE messages
2372
2373 2007-07-16  Dustin J. Mitchell <dustin@zmanda.com>
2374         * changer-src/chg-zd-mtx.sh.in: check for validity of 'mt' and 'mtx'
2375           binaries early, and produce appropriate error messages
2376
2377 2007-07-13  Dustin J. Mitchell <dustin@zmanda.com>
2378         * configure.in: add /usr/sfw/bin to SYSPATH for Solaris 10
2379
2380 2007-07-13  Jean-Louis Martineau <martineau@zmanda.com>
2381         * changer-src/chg-lib.sh.in: Remoce duplicate amdd, add ammt.
2382
2383 2007-07-12  Dustin J. Mitchell <dustin@zmanda.com>
2384         * autogen config/Makefile.am config/ax_compare_version.m4i
2385           Makefile.am: new m4 file
2386         * config/docbook-xslt-min.m4i config/docbook-dtd.m4i
2387           config/docbook-xslt.m4i: major bug fixing
2388
2389 2007-07-11  Dustin J. Mitchell <dustin@zmanda.com>
2390         * recover-src/amrecover.c recover-src/extract_list.c: Add detailed
2391           logging of the amrecover user conversation.
2392
2393 2007-07-11  Jean-Louis Martineau <martineau@zmanda.com>
2394         Patch by Paul Bijnens
2395         * changer-src/chg-multi.sh.in: Typo.
2396
2397 2007-07-10  Dustin J. Mitchell <dustin@zmanda.com>
2398         * configure.in: an empty 'MAILER' is no longer an error, just a
2399           warning
2400         * changer-src/chg-manual.sh.in changer-src/chg-scsi-chio.c
2401           changer-src/chg-scsi.c server-src/amverify.sh.in
2402           server-src/getconf.c common-src/genversion.c: conditionalize
2403           references to MAILER, to handle the situation when it is not
2404           set.
2405
2406 2007-07-09  Dustin J. Mitchell <dustin@zmanda.com>
2407         Documentation patch as suggested by Chris Hoogendyk and Olivier
2408         Nicole.
2409         * man/xml-source/amanda.8.xml: add better documentation about the 
2410           -o command-line option for configuration override.
2411
2412 2007-07-09  Jean-Louis Martineau <martineau@zmanda.com>
2413         * restore-src/restore.c: Don't do superfluous fsf,
2414                                  improve error handling.
2415
2416 2007-07-05  Dustin J. Mitchell <dustin@zmanda.com>
2417         * server-src/amadmin.c: correct misalignment of 'amadmin x balance'
2418           output, as reported by Stefan G. Weichinger <sgw@amanda.org>.
2419
2420 2007-07-03  Dustin J. Mitchell <dustin@zmanda.com>
2421         * common-src/amanda.h common-src/amflock.c: remove unused 
2422           CONFIGURE_TEST conditionals
2423
2424 2007-06-28  Dustin J. Mitchell <dustin@zmanda.com>
2425         * common-src/security-util.c: Change authorization error message to
2426         "Please add the line "HOST USER SERVICE" to AMANDAHOSTS on the client"
2427         as suggested by Paddy Sreenivasan <paddy@zmanda.com>.
2428
2429 2007-06-28  Dustin J. Mitchell <dustin@zmanda.com>
2430         * configure.in common-src/amflock-flock.c
2431           common-src/amflock-posix.c common-src/amanda.h
2432           common-src/amflock-lockf.c common-src/amflock-test.c
2433           common-src/amflock-lnlock.c common-src/amflock.c
2434           common-src/amflock.h common-src/Makefile.am:
2435           refactor file locking support into multiple implementations,
2436           only test for availability (not functionality) at configure
2437           time, and add a 'make check' test script.  Fixes a bug reported
2438           by Paul Crittenden.  Chris Hoogendyk, Jon LaBadie, and Jean-Louis
2439           Martineau helped track it down.
2440
2441 2007-06-27  Dustin J. Mitchell <dustin@zmanda.com>
2442         * autogen config/ax_create_stdint_h.m4i config/acinclude.m4i
2443           Makefile.am: use updated version of ax_create_stdint_h.m4
2444           from http://autoconf-archive.cryp.to/ax_create_stdint_h.html.
2445           Original by Guido U. Draheim <guidod@gmx.de>, patched locally
2446           to avoid spurious "command not found" on Solaris 10.
2447         * config/Makefile.am: add ax_create_stdint_h.m4i
2448
2449 2007-06-25  Dustin J. Mitchell <dustin@zmanda.com>
2450         * server-src/cmdline.c server-src/cmdline.h server-src/taperscan.c
2451           server-src/taperscan.h config/docbook-dtd.m4i
2452           config/docbook-xslt-min.m4i config/docbook-xslt.m4i
2453           config/xsltproc.m4i common-src/sockaddr-util.c
2454           common-src/sockaddr-util.h common-src/amaespipe.sh.in:
2455           restrict to GPLv2
2456
2457 2007-06-25  Dustin J. Mitchell <dustin@zmanda.com>
2458         * client-src/sendbackup.c client-src/killpgrp.c
2459           client-src/sendsize.c client-src/selfcheck.c
2460           server-src/amcheck.c server-src/reporter.c common-src/util.c
2461           common-src/util.h common-src/security-util.c: add str_exit_status()
2462           to interpret the status resulting from wait(), use it throughout
2463           the codebase.
2464
2465 2007-06-20  Dustin J. Mitchell <dustin@zmanda.com>
2466         * server-src/planner.c common-src/bsdudp-security.c
2467           common-src/krb5-security.c common-src/bsd-security.c:
2468           remove dead/unused code
2469
2470 2007-06-20  Dustin J. Mitchell <dustin@zmanda.com>
2471         * client-src/sendsize.c: call dbfn(), not debug_fn()
2472         * common-src/amanda.h: make dbfn() return a meaningful string
2473           when debugging is disabled
2474
2475 2007-06-19  Dustin J. Mitchell <dustin@zmanda.com>
2476         * tape-src/tapetype.c: close and re-open tape after rewind
2477           (patch from Franz Fischer <amanda@franz-fischer.de>, modified
2478           by Jean-Louis Martineau <martineau@zmanda.com>)
2479
2480 2007-06-06  Jean-Louis Martineau <martineau@zmanda.com>
2481         * restore-src/restore.c: accept all header with size >= DISK_BLOCK_BYTES
2482
2483 2007-06-18  Jean-Louis Martineau <martineau@zmanda.com>
2484         * server-src/amstatus.pl.in: Set and use chunk_time.
2485
2486 2007-06-07  Dustin J. Mitchell <dustin@zmanda.com>
2487         * server-src/amcleanupdisk.c: don't try to clean up holding disks
2488           if they are empty.
2489
2490 2007-06-06  Dustin J. Mitchell <dustin@zmanda.com>
2491         * client-src/sendbackup.c: remove bogus check for unknown program
2492
2493 2007-06-07  Jean-Louis Martineau <martineau@zmanda.com>
2494         Christopher McCrory found the cause of the problem.
2495         * server-src/find.c: Send ouput to stderr.
2496
2497 2007-06-07  Jean-Louis Martineau <martineau@zmanda.com>
2498         * configure.in: detect GNU tar's 'backup' and ignore it.  Thanks
2499           to Jeanna Geier <jeanna@webteam.net> for spotting this.
2500
2501 2007-06-05  Jean-Louis Martineau <martineau@zmanda.com>
2502         * common-src/util.c: Don't use -w flags for od execution.
2503
2504 2007-06-05  Dustin J. Mitchell <dustin@zmanda.com>
2505         * client-src/selfcheck.c: fix formatting typo
2506         * common-src/security.h: fix prototypes in comments
2507         * common-src/security-util.c common-src/util.c: fix 
2508           vstralloc errors
2509         * common-src/debug.c common-src/amanda.h: remove 
2510           debug_prefix_time
2511         * changer-src/scsi-linux.c changer-src/chg-scsi-chio.c
2512           changer-src/scsi-cam.c client-src/calcsize.c
2513           recover-src/amrecover.c server-src/driver.c
2514           client-src/sendbackup-gnutar.c server-src/find.c
2515           server-src/diskfile.c : format string / i18n tweaks
2516         * common-src/amcrypt-ossl.sh.in: fix shell quoting
2517
2518 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
2519         * changer-src/sense.c server-src/driver.c server-src/reporter.c
2520           server-src/amadmin.c server-src/amtape.c common-src/amanda.h:
2521           use T_() instead of _T() as the macro flagging static strings
2522           in need of translation; fixes compilation error on Mac OS X, where
2523           _T is defined in the system headers.
2524
2525 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
2526         * changer-src/chg-zd-mtx.sh.in changer-src/chg-multi.sh.in:
2527           use chg-lib.sh fully, fix i18n problems.
2528
2529 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
2530         * common-src/krb5-security.c common-src/bsdtcp-security.c
2531           common-src/security-util.c: check results from getnameinfo()
2532           correctly
2533
2534 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
2535         * server-src/amstatus.pl.in: use perl flags -Tw
2536
2537 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
2538         * common-src/debug.c common-src/error.c: fix compilation errors
2539           on strict platforms.
2540
2541 2007-06-04  Jean-Louis Martineau <martineau@zmanda.com>
2542         * common-src/bsd-security.c common-src/bsdudp-security.c: 
2543           Make bsd, bsdudp open an IPv4 and an IPv6 socket; fixes bug reported
2544           by Marc Muehlfeld.
2545
2546 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
2547         * oldrecover-src/Makefile.am changer-src/Makefile.am
2548           amplot/Makefile.am client-src/Makefile.am
2549           amandad-src/Makefile.am dumper-src/Makefile.am
2550           recover-src/Makefile.am restore-src/Makefile.am
2551           tape-src/Makefile.am: add quotes to allow spaces in user
2552           and group names
2553
2554 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
2555         * changer-src/chg-scsi.c: use long int for tape sleep time
2556         * client-src/selfcheck.c: error out if no calcsize program is found
2557         * server-src/amindexd.c: run 'sort' in the C locale
2558         * server-src/amcheck.c: flag localhost not resolving as an error
2559         * server-src/diskfile.c: improve error handling
2560         * common-src/amcrypt.sh.in common-src/amcrypt-ossl-asym.sh.in
2561           common-src/amcrypt-ossl.sh.in: search /opt/csw/bin for openssl
2562           binaries; improve error handling
2563
2564 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
2565         * server-src/planner.c server-src/amcleanupdisk.c
2566           server-src/amflush.c server-src/holding.c server-src/holding.h:
2567           do not assume anything about the names of holding
2568           directories; use holding disk files themselves to discover
2569           dump time/datestamps
2570
2571 2007-06-04  Jean-Louis Martineau <martineau@zmanda.com>
2572         * common-src/krb5-security.c: Typo.
2573
2574 2007-06-01  Ian Turner <ian@zmanda.com>
2575         * restore-src/restore.c: Set flags->fsf = 0 by default.
2576
2577 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
2578         * server-src/driver.c: Check dumper->down.
2579         * server-src/dumper.c (sendbackup_response): Only call
2580           security_close_connection if pkt != NULL.
2581
2582 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
2583         * server-src/amstatus.pl.in: Use compressed size.
2584
2585 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
2586         * server-src/planner.c: Don't report overwrite if no label.
2587
2588 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
2589         * changer-src/chg-manual.sh.in: Don't reset the slot to 0 on eject.
2590
2591 2007-05-25  Kevin Till <ktill@zmanda.com>
2592         * example/amanda.conf.in: ditto
2593         * man/xml-source/amanda.conf.5.xml: ditto
2594         * common-src/conffile.c: ditto
2595
2596 2007-05-24  Dustin J. Mitchell <dustin@zmanda.com>
2597         * changer-src/scsi-changer-driver.c changer-src/scsi-cam.c
2598           client-src/sendbackup.c client-src/selfcheck.c
2599           recover-src/extract_list.c server-src/amindexd.c
2600           server-src/amcheck.c server-src/driver.c server-src/dumper.c
2601           server-src/planner.c server-src/amadmin.c server-src/diskfile.c
2602           contrib/set_prod_link.pl common-src/krb5-security.c
2603           common-src/bsd-security.c common-src/security-util.c
2604           common-src/conffile.c common-src/bsdudp-security.c:
2605           trivial changes to add _(), etc. -- harmonization of branch
2606           divergence caused by manual resolution of merge conflicts
2607
2608 2007-05-24  Satya Ganga <gsat@zmanda.com> (merged by dustin@zmanda.com)
2609         * server-src/amcleanup.sh.in: rewrite to find all the active
2610         process/children for a given configuration
2611
2612 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2613         * common-src/fileheader.c:
2614           Remove ".exe" extension from program name is tape header.
2615
2616 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2617         * config/gettext-macros/gettext.m4
2618         config/gettext-macros/inttypes-pri.m4:
2619           Change name gl_HEADER_INTTYPES_H to gl_AC_HEADER_INTTYPES_H
2620
2621 2007-05-24  Dustin J. Mitchell <dustin@zmanda.com>
2622         * configure.in: add configure.in recognition for Mac OS X
2623
2624 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2625         * configure.in: IPV6 on cygwin only partially works.
2626                 Force WORKING_IPV6 to false.
2627
2628 2007-05-24  Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
2629         * server-src/driver.c: use amanda text domain in driver
2630
2631 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2632         * config/libtool.m4i:
2633                 Fix to pass loader variables correctly on Solaris systems
2634                 with a gcc that does not use -static or -shared.
2635
2636 2007-05-24  Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
2637         * server-src/amstatus.pl.in: parse directory and holding_disk_dir with
2638           space correctly
2639
2640 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2641         * client-src/sendbackup.c client-src/sendsize.c client-src/sendbackup-star.c
2642           configure.in server-src/amindexd.c server-src/taper.c server-src/diskfile.c
2643           config/acinclude.m4i common-src/amanda.h common-src/util.c
2644           common-src/security-util.c:
2645                 Fix compilation problems using GCC on solaris.
2646
2647 2007-05-24  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
2648         * server-src/reporter.c: Split FAILED and STRANGE section.
2649
2650 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2651         * common-src/conffile.c: Fix windows compilation warning.
2652
2653 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2654         * po/Makefile.am changer-src/scsi-changer-driver.c changer-src/sense.c
2655           client-src/unctime.c server-src/amadmin.c server-src/amtape.c
2656           server-src/driver.c server-src/reporter.c common-src/amanda.h
2657           tape-src/tapeio.h tape-src/tapetype.c:
2658                 Change _() gettext macro to call gettext()
2659                 Create _T() to allow gettext translation of static strings.
2660         * common-src/security.c:  Create larger buffers for error messages.
2661
2662 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2663         * configure.in: Prevent annoying lint usage message from
2664           being displayed in configure console output.
2665
2666 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2667         * autogen:
2668                 Fix problem of not generating po/Makefile.in on fresh checkout.
2669         * server-src/logfile.c:
2670                 Always output to logfile in "C" locale.
2671         * amandad-src/amandad.c changer-src/chg-scsi-chio.c
2672           changer-src/chg-scsi.c client-src/calcsize.c client-src/getfsent.c
2673           client-src/killpgrp.c client-src/noop.c client-src/rundump.c
2674           client-src/runstar.c client-src/runtar.c client-src/selfcheck.c
2675           client-src/sendbackup.c client-src/sendsize.c
2676           client-src/versionsuffix.c common-src/amfeatures.c
2677           common-src/amflock.c common-src/file.c common-src/genversion.c
2678           common-src/statfs.c common-src/token.c oldrecover-src/amrecover.c
2679           recover-src/amrecover.c restore-src/amfetchdump.c
2680           restore-src/amidxtaped.c restore-src/amrestore.c server-src/amadmin.c
2681           server-src/amcheck.c server-src/amcleanupdisk.c server-src/amflush.c
2682           server-src/amindexd.c server-src/amlabel.c server-src/amlogroll.c
2683           server-src/amtape.c server-src/amtrmidx.c server-src/amtrmlog.c
2684           server-src/chunker.c server-src/diskfile.c server-src/driver.c
2685           server-src/dumper.c server-src/getconf.c server-src/infofile.c
2686           server-src/planner.c server-src/reporter.c server-src/taper.c
2687           tape-src/amdd.c tape-src/ammt.c tape-src/tapeio.c tape-src/tapetype.c:
2688                 Change back to always run in "C" locale.
2689
2690 2007-05-23  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
2691         * changer-src/chg-manual.sh.in: Fix quoting; fix gettext usage.
2692
2693 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2694         * configure.in:
2695                 New gettext routines.
2696         * server-src/amcheckdb.sh.in server-src/amcleanup.sh.in
2697           server-src/amverifyrun.sh.in server-src/amrmtape.sh.in
2698           server-src/amverify.sh.in server-src/amdump.sh.in
2699           server-src/amfreetapes.sh.in amplot/amplot.sh.in
2700           changer-src/chg-mtx.sh.in changer-src/chg-null.sh.in
2701           changer-src/chg-manual.sh.in changer-src/chg-zd-mtx.sh.in
2702           changer-src/chg-disk.sh.in changer-src/chg-juke.sh.in
2703           changer-src/chg-rait.sh.in changer-src/chg-scsi.c
2704           changer-src/chg-chs.sh.in changer-src/chg-multi.sh.in
2705           changer-src/chg-mcutil.sh.in client-src/patch-system.sh.in
2706           common-src/amcrypt.sh.in common-src/amaespipe.sh.in
2707           common-src/amcrypt-ossl-asym.sh.in common-src/amcrypt-ossl.sh.in:
2708                 Internationalize shell messages
2709         * autogen config/gettext-macros/nls.m4
2710           config/gettext-macros/lib-link.m4:
2711                 Update for autoconf version 2.6 autogen
2712         * oldrecover-src/amrecover.c recover-src/amrecover.c
2713           server-src/amflush.c server-src/logfile.c server-src/amtrmlog.c
2714           server-src/amlogroll.c server-src/amindexd.c server-src/amcheck.c
2715           server-src/driver.c server-src/dumper.c server-src/chunker.c
2716           server-src/planner.c server-src/reporter.c server-src/amadmin.c
2717           server-src/amtape.c server-src/taper.c server-src/server_util.c
2718           client-src/versionsuffix.c client-src/runtar.c
2719           server-src/amtrmidx.c server-src/amcleanupdisk.c
2720           server-src/getconf.c server-src/diskfile.c
2721           changer-src/chg-scsi-chio.c client-src/noop.c server-src/infofile.c
2722           server-src/amlabel.c client-src/sendbackup.c client-src/getfsent.c
2723           client-src/killpgrp.c client-src/sendsize.c client-src/selfcheck.c
2724           client-src/rundump.c client-src/calcsize.c restore-src/amidxtaped.c
2725           restore-src/amrestore.c restore-src/amfetchdump.c Makefile.am
2726           amandad-src/amandad.c common-src/genversion.c common-src/debug.c
2727           common-src/error.c common-src/statfs.c common-src/amflock.c
2728           common-src/file.c common-src/token.c common-src/security-util.c
2729           common-src/conffile.c common-src/amanda.h common-src/amfeatures.c
2730           tape-src/ammt.c tape-src/amdd.c tape-src/tapeio.c
2731           tape-src/tapetype.c:
2732                 Use amanda domain for LC_MESSAGES.
2733
2734 2007-05-22  Maitreyee Karmarkar <maitreyee@zmanda.com> (merged by dustin@zmanda.com)
2735         * server-src/amcheck.c : Changed some amcheck messages
2736         * common-src/conffile.c : Changed some amcheck messages
2737         
2738 2007-05-22  Maitreyee Karmarkar <maitreyee@zmanda.com> (merged by dustin@zmanda.com)
2739         * client-src/selfcheck.c, server-src/changer.c, server-src/amcheck.c,
2740           server-src/taperscan.c, server-src/diskfile.c,
2741           common-src/conffile.c:
2742           Change in some amcheck error messages
2743
2744 2007-05-22   John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2745         * common-src/krb5-security.c common-src/security-util.c
2746           server-src/taper.c server-src/taperscan.c:
2747                 Fix botched *vstrallocf conversions.
2748         * oldrecover-src/extract_list.c server-src/amlogroll.c
2749           server-src/chunker.c server-src/driver.c server-src/dumper.c
2750           server-src/getconf.c server-src/holding.c server-src/planner.c
2751           server-src/reporter.c server-src/taper.c:
2752                 Add errno text when printing getcwd() error message.
2753
2754 2007-05-22  Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
2755         * configure.in: move crypt scripts to common-src since they are needed
2756           by both server and client
2757         * common-src/Makefile.am: ditto
2758         * server-src/Makefile.am: ditto
2759
2760 2007-05-17   John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2761         * configure.in oldrecover-src/amrecover.c
2762           oldrecover-src/extract_list.c oldrecover-src/display_commands.c
2763           oldrecover-src/help.c oldrecover-src/set_commands.c
2764           recover-src/amrecover.c recover-src/extract_list.c
2765           recover-src/display_commands.c recover-src/help.c
2766           recover-src/set_commands.c server-src/amflush.c
2767           server-src/changer.c server-src/taperscan.c server-src/logfile.c
2768           server-src/amtrmlog.c server-src/driverio.c
2769           server-src/amlogroll.c server-src/tapefile.c
2770           server-src/amindexd.c server-src/driver.c server-src/amcheck.c
2771           server-src/dumper.c server-src/chunker.c server-src/planner.c
2772           server-src/reporter.c server-src/server_util.c
2773           server-src/amadmin.c server-src/amtape.c server-src/taper.c
2774           server-src/amcleanupdisk.c server-src/find.c
2775           server-src/amtrmidx.c server-src/getconf.c
2776           server-src/diskfile.c server-src/infofile.c
2777           server-src/amlabel.c changer-src/scsi-linux.c
2778           changer-src/chg-scsi-chio.c changer-src/scsi-chio.c
2779           changer-src/scsi-hpux.c changer-src/scsi-changer-driver.c
2780           changer-src/scsi-cam.c changer-src/chg-scsi.c
2781           changer-src/scsi-bsd.c changer-src/scsi-irix.c
2782           changer-src/scsi-solaris.c changer-src/sense.c
2783           changer-src/scsi-aix.c changer-src/scsi-hpux_new.c
2784           autogen client-src/unctime.c client-src/versionsuffix.c
2785           client-src/noop.c client-src/client_util.c client-src/runtar.c
2786           client-src/sendbackup-gnutar.c client-src/getfsent.c
2787           client-src/sendbackup.c client-src/sendbackup-dump.c
2788           client-src/killpgrp.c client-src/sendsize.c
2789           client-src/selfcheck.c client-src/rundump.c
2790           client-src/calcsize.c client-src/amandates.c
2791           restore-src/amidxtaped.c restore-src/amrestore.c
2792           restore-src/restore.c restore-src/amfetchdump.c Makefile.am
2793           amandad-src/amandad_util.c amandad-src/amandad.c
2794           common-src/rsh-security.c common-src/pipespawn.c
2795           common-src/security.c common-src/krb5-security.c
2796           common-src/util.c common-src/genversion.c
2797           common-src/bsdtcp-security.c common-src/debug.c
2798           common-src/fileheader.c common-src/dgram.c
2799           common-src/stream.c common-src/match.c
2800           common-src/protocol.c common-src/ssh-security.c
2801           common-src/statfs.c common-src/krb4-security.c
2802           common-src/amflock.c common-src/bsd-security.c
2803           common-src/file.c common-src/token.c common-src/event.c
2804           common-src/security-util.c common-src/conffile.c
2805           common-src/amanda.h common-src/bsdudp-security.c
2806           common-src/alloc.c common-src/clock.c common-src/amfeatures.c
2807           tape-src/ammt.c tape-src/amdd.c tape-src/output-file.c
2808           tape-src/tapeio.c tape-src/tapeio.h tape-src/output-tape.c
2809           tape-src/tapetype.c tape-src/output-rait.c:
2810           o First stage of internationalization.
2811             - Add GNU gettext to configuration.
2812             - Add _() macro to flag translatable strings and modify
2813               code to use it.  Macros like SSIZE_T_FMT are included in
2814               this call, even though xgettext will not parse them; this
2815               will be fixed later.
2816             - Add plural() function for selecting singular or plural form
2817               of string and modify code to use it.
2818             - Add amanda.po target to Makefile.
2819
2820 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
2821         * server-src/amcheck.c: Remove bogus amfree(newtapefile).
2822
2823 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
2824         * server-src/amcheck.c: Check all tapelist filename.
2825
2826 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
2827         * server-src/dumper.c (read_datafd): Reset timeout after the write.
2828
2829 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
2830         * amplot/amplot.sh.in: Remove function keyword.
2831         * changer-src/chg-lib.sh.in: Remove function keyword.
2832         * changer-src/chg-multi.sh.in: Remove function keyword.
2833         * changer-src/chg-zd-mtx.sh.in: Remove function keyword.
2834
2835 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
2836         * server-src/diskfile.c: Fix double free.
2837
2838 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
2839         * common-src/amanda.h: define sockaddr_storage and ss_family.
2840         * common-src/amanda.h: define INET_ADDRSTRLEN.
2841         * config/acinclude.m4i (AC_SOCKADDR_STORAGE): New macro.
2842         * configure.in: AC_SOCKADDR_STORAGE.
2843
2844 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
2845         * common-src/amanda.h: Define AI_V4MAPPED and AI_ALL.
2846
2847 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
2848         * util.c (cmp_sockaddr): un-map V4mapped address before comparison.
2849         * common-src/security-util.c: add debugging.
2850
2851 2007-05-17  Dustin J. Mitchell <dustin@zmanda.com> (merged by dustin@zmanda.com)
2852         * common-src/amanda.h: fix typo (missing 'extern') in erroutput_type
2853
2854 2007-05-16      John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2855         * oldrecover-src/amrecover.c oldrecover-src/extract_list.c
2856           oldrecover-src/display_commands.c oldrecover-src/set_commands.c
2857           recover-src/amrecover.c recover-src/extract_list.c
2858           recover-src/display_commands.c recover-src/set_commands.c
2859           server-src/changer.c server-src/taperscan.c
2860           server-src/amtrmlog.c server-src/amindexd.c server-src/driver.c
2861           server-src/amcheck.c server-src/dumper.c server-src/chunker.c
2862           server-src/planner.c server-src/reporter.c server-src/taper.c
2863           server-src/amtrmidx.c changer-src/scsi-linux.c
2864           changer-src/chg-scsi-chio.c changer-src/scsi-chio.c
2865           changer-src/scsi-hpux.c changer-src/scsi-cam.c
2866           changer-src/scsi-changer-driver.c changer-src/chg-scsi.c
2867           changer-src/scsi-bsd.c changer-src/scsi-irix.c
2868           changer-src/scsi-solaris.c changer-src/sense.c
2869           changer-src/scsi-aix.c changer-src/scsi-hpux_new.c
2870           client-src/client_util.c client-src/runtar.c
2871           client-src/sendbackup-gnutar.c client-src/sendbackup.c
2872           client-src/sendbackup-dump.c client-src/killpgrp.c
2873           client-src/sendsize.c client-src/selfcheck.c
2874           client-src/rundump.c client-src/calcsize.c
2875           client-src/amandates.c restore-src/amidxtaped.c
2876           restore-src/restore.c amandad-src/amandad_util.c
2877           amandad-src/amandad.c common-src/rsh-security.c
2878           common-src/sockaddr-util.c common-src/pipespawn.c
2879           common-src/security.c common-src/krb5-security.c
2880           common-src/util.c common-src/util.h common-src/bsdtcp-security.c
2881           common-src/tapelist.c common-src/debug.c common-src/fileheader.c
2882           common-src/error.c common-src/dgram.c common-src/stream.c
2883           common-src/protocol.c common-src/ssh-security.c
2884           common-src/krb4-security.c common-src/bsd-security.c
2885           common-src/event.c common-src/security-util.c
2886           common-src/conffile.c common-src/amanda.h
2887           common-src/bsdudp-security.c common-src/security-util.h
2888           common-src/alloc.c tape-src/output-file.c tape-src/tapeio.c
2889           tape-src/output-tape.c:
2890                 - Change dbprintf() to use __VA_ARGS__. (Remove extra parens)
2891                 - Prepend program name and nano second accuracy time stamp
2892                   to each line in debug file.
2893                 - Emove any resulting duplicate timestamps from functions that
2894                   inserted them in each dbprintf() line.
2895                 - Fix dballoc compilation.
2896                 - Fix dbmalloc compilation.
2897                 - Fix amfree() to report file and line # of amfree line during
2898                   errors.
2899                 - Add vstrallocf() and newvstrallocf() functions. These are
2900                   the same as vstralloc() and newvstralloc() except they use
2901                   printf style format strings.  (Required to eliminate
2902                   untranslateable string concatenations in messages.)
2903                 - Change files to use *allocf() functions where it seemed
2904                   appropriate..
2905                 - Fix kerberos 4 compilation.
2906                 - Fix kerberos 5 compilation.
2907
2908 2007-05-16  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
2909         * common-src/debug.c (debug_rename): Fix for cygwin: rename
2910           will not overwrite an existing file
2911
2912 2007-05-15   John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2913         * client-src/sendbackup.c common-src/dgram.c common-src/event.c
2914           server-src/changer.c server-src/driverio.c:
2915                 Cast FD_SETSIZE to int to avoid compilation problems.
2916
2917 2007-05-15   Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
2918         * common-src/debug.c: dbrename patch by Jean-Louis Martineau to
2919           unlink the target of the rename operation before renaming.
2920
2921 2007-05-15  Dustin J. Mitchell <dustin@zmanda.com>
2922         * client-src/sendsize.c: fix parsing of include/excludes for 
2923           old clients
2924
2925 2007-05-11  Jean-Louis Martineau <martineau@zmanda.com>
2926         * server-src/amcrypt-ossl-asym.sh.in: Use CLIENT_LOGIN.
2927         * server-src/amcrypt-ossl.sh.in: Use CLIENT_LOGIN.
2928
2929 2007-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2930         * common-src/krb5-security.c: Fix compilation.
2931
2932 2007-05-09      Dustin J. Mitchell <dustin@zmanda.com>
2933         * common-src/stream.c: add errno's to stream_client_internal
2934
2935 2007-05-09      Dustin J. Mitchell <dustin@zmanda.com>
2936         * server-src/amadmin.c server-src/infofile.c
2937           common-src/security-util.c common-src/krb5-security.c:
2938           fix type-punning warnings
2939
2940 2007-05-09      Dustin J. Mitchell <dustin@zmanda.com>
2941         * recover-src/set_commands.c server-src/amcheck.c
2942           server-src/dumper.c common-src/rsh-security.c
2943           common-src/krb5-security.c common-src/util.c common-src/util.h
2944           common-src/bsdtcp-security.c common-src/stream.c
2945           common-src/ssh-security.c common-src/bsd-security.c
2946           common-src/security-util.c common-src/bsdudp-security.c
2947           common-src/security-util.h: Add IPv6-savvy resolve_hostname() and use it
2948           everywhere
2949
2950 2007-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2951         * config/Makefile.am (EXTRA_DIST): Add docbook-dtd.m4i,
2952           docbook-xslt.m4i, docbook-xslt-min.m4i and xsltproc.m4i.
2953
2954 2007-05-07  Jean-Louis Martineau <martineau@zmanda.com>
2955         * common-src/stream.c: pass correct sockaddr size to bind()
2956
2957 2007-05-07  Pieter Bowman <bowman@math.utah.edu>
2958         * common-src/file.c: reverse the order of chown/chmod to correctly
2959           create temporary files.
2960
2961 2007-05-07  Jean-Louis Martineau <martineau@zmanda.com>
2962         * common-src/krb5-security.c: Fix compilation.
2963
2964 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
2965         * server-src/cmdline.c server-src/holding.c server-src/holding.h
2966           server-src/amadmin.c server-src/amcleanupdisk.c: remove 
2967           holding_file_read_header()
2968
2969 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
2970         * common-src/sockaddr-util.h common-src/bsdtcp-security.c common-src/security-util.c
2971           common-src/krb5-security.c common-src/stream.c: add and use a copy_sockaddr() macro
2972
2973 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
2974         * configure.in common-src/rsh-security.c common-src/bsdtcp-security.c
2975           common-src/ssh-security.c common-src/bsdudp-security.c
2976           common-src/krb5-security.c common-src/krb4-security.c common-src/bsd-security.c
2977           common-src/Makefile.am: use AM_CONDITIONAL to select security modules to compile
2978
2979 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
2980         * autogen man/Makefile.am configure.in config/acinclude.m4i
2981           config/docbook-xslt-min.m4i config/docbook-dtd.m4i config/docbook-xslt.m4i
2982           config/xsltproc.m4i Makefile.am: detect xsltproc, docbook xslt, and docbook
2983           dtd versions better, to ensure proper creation of manpages.
2984
2985 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
2986         * server-src/amindexd.c common-src/sockaddr-util.c common-src/sockaddr-util.h
2987           common-src/util.c common-src/security-util.c common-src/amanda.h
2988           common-src/dgram.c common-src/stream.c common-src/Makefile.am: add new
2989           sockaddr-util.[ch] containing sockaddr-related functions.
2990
2991 2007-05-04  Jean-Louis Martineau <martineau@zmanda.com>
2992         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.3alpha)
2993
2994 2007-05-03  Jean-Louis Martineau <martineau@zmanda.com>
2995         * docs/*.txt: Update from xml-docs.
2996
2997 2007-05-03  Jean-Louis Martineau <martineau@zmanda.com>
2998         * man/xml-source/amrecover.8.xml: Fix space.
2999
3000 2007-05-03  Jean-Louis Martineau <martineau@zmanda.com>
3001         * Amanda 2.5.2 released.
3002         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2).
3003
3004 2007-05-02  Jean-Louis Martineau <martineau@zmanda.com>
3005         * docs/*.txt, man/xml-source/*.xml: Change OVERWRITE bu OVERRIDE.
3006         * man/xml-source/amadmin.8.xml: Add notees on no-reuse command.
3007
3008 2007-05-02  Jean-Louis Martineau <martineau@zmanda.com>
3009         * amandad-src/amandad.c: Improve 'invalid service' message.
3010
3011 2007-05-01  Jean-Louis Martineau <martineau@zmanda.com>
3012         * recover-src/extract_list.c: Report the error message.
3013         * recover-src/extract_list.c: Don't call close_connection.
3014         * common-src/security-util.c: (tcpm_close_connection): Check for rh->rc
3015
3016 2007-04-27  Jean-Louis Martineau <martineau@zmanda.com>
3017         * common-src/security-util.c (tcp1_stream_client): Set rh->rc->driver.
3018
3019 2007-04-27  Jean-Louis Martineau <martineau@zmanda.com>
3020         * common-src/bsd-security.c, common-src/bsdudp-security.c,
3021           common-src/krb4-security.c: Fix ntohs for port number.
3022         * common-src/dgram.c: Add socket number in comment.
3023
3024 2007-04-27  Dustin J. Mitchell <dustin@zmanda.com>
3025         * server-src/holding.c server-src/holding.h server-src/find.c:
3026           use holding module in find.c:search_holding_disk()
3027
3028 2007-04-27  Jean-Louis Martineau <martineau@zmanda.com>
3029         * server-src/amcheck.c: Fix infobad setting.
3030
3031 2007-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3032         * server-src/amcheck.c: Set *bad on error.
3033
3034 2007-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3035         * server-src/amflush.c: Quote L_DISK and FLUSH line.
3036         * server-src/driver.c: Parse quoted FLUSH line.
3037         * server-src/planner.c:  Quote L_DISK and FLUSH line.
3038
3039 2007-04-25  Dustin J. Mitchell <dustin@zmanda.com>
3040         * configure.in common-src/ssh-security.c: allow build-time configuration of SSH options
3041
3042 2007-04-23  Paddy Sreenivasan <paddy@zmanda.com>
3043         * changer-src/scsi-solaris.c common-src/protocol.c: changes to build on Solaris
3044
3045 2007-04-20  Dustin J. Mitchell <dustin@zmanda.com>
3046         * configure.in: remove unused AMANDA_C_VOLATILE
3047         * config/acinclude.m4: remove unused AMANDA_C_VOLATILE
3048
3049 2007-04-20  Dustin J. Mitchell <dustin@zmanda.com>
3050         * autogen: silence unnecessary warnings about GNU make, return exit status
3051
3052 2007-04-20  Dustin J. Mitchell <dustin@zmanda.com>
3053         * common-src/stream.c: retry socket creation if OS does not support IPv6
3054           at runtime
3055
3056 2007-04-20  Jean-Louis Martineau <martineau@zmanda.com>
3057         * amplot/amplot.sh.in (test_awk,find_gnuplot): Imported from zmanda.
3058         * amplot/amplot.awk: Fix some parsing.
3059         * server-src/driver.c (free_kps): Return 0 instead of big value.
3060
3061 2007-04-18  Jean-Louis Martineau <martineau@zmanda.com>
3062         * oldrecover-src/Makefile.am, changer-src/Makefile.am,
3063           client-src/Makefile.am, amandad-src/Makefile.am,
3064           recover-src/Makefile.am, server-src/Makefile.am,
3065           restore-src/Makefile.am: Link libgnu after libamanda.
3066
3067 2007-04-18  Jean-Louis Martineau <martineau@zmanda.com>
3068         * client-src/sendbackup.c: Improve tar argument in amanda header for
3069                                    extraction.
3070
3071 2007-04-18  Dustin J. Mitchell <dustin@zmanda.com>
3072         * man/Makefile.am configure.in config/acinclude.m4i: add xsltproc- and docbook-
3073           related autoconf macros, use them to ensure the environment is appropriate for
3074           building manpages; manpage build is off by default.
3075
3076 2007-04-17  Jean-Louis Martineau <martineau@zmanda.com>
3077         * changer-src/chg-disk.sh.in: Send error message to stdout.
3078
3079 2007-04-17  Dustin J. Mitchell <dustin@zmanda.com>
3080         * changer-src/chg-zd-mtx.sh.in: fix more typos (thanks to
3081           "Stefan G. Weichinger" <sgw@amanda.org>)
3082
3083 2007-04-17  Jean-Louis Martineau <martineau@zmanda.com>
3084         * restore-src/restore.c: Fix restoration of split and encrypted backup.
3085
3086 2007-04-13  Dustin J. Mitchell <dustin@zmanda.com>
3087         * changer-src/chg-zd-mtx.sh.in: fix typo in error message
3088
3089 2007-04-13  Jean-Louis Martineau <martineau@zmanda.com>
3090         * Amanda 2.5.2b1 released.
3091         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2b1).
3092
3093 2007-04-13  Jean-Louis Martineau <martineau@zmanda.com>
3094         * client-src/sendbackup.c (first_num): Removed function.
3095         * client-src/sendbackup.c (the_num): return the nth number in a string.
3096         * client-src/sendbackup.h (AM_SIZE_RE): Need a field.
3097         * client-src/sendbackup-dump.c: Use new AM_SIZE_RE.
3098         * client-src/sendbackup-gnutar.c: Use new AM_SIZE_RE.
3099
3100 2007-04-13  Jean-Louis Martineau <martineau@zmanda.com>
3101         * NEWS: Change in amanda-2.5.2
3102         * ReleaseNotes: Releases Notes for 2.5.2
3103         * server-src/chunker.c (write_tapeheader): Set errno to ENOSPC.
3104
3105 2007-04-12  Dustin J. Mitchell <dustin@zmanda.com>
3106         * server-src/dumper.c: use fullwrite() instead of write()
3107
3108 2007-04-12  Jean-Louis Martineau <martineau@zmanda.com>
3109         * amandad-src/amandad.c: Remove duplicate setsockopt(,,SO_REUSEADDR).
3110         * common-src/bsd-security.c: Use int for setsockopt.
3111         * common-src/stream.c (try_socksize): Use int for setsockopt.
3112
3113 2007-04-12  Jean-Louis Martineau <martineau@zmanda.com>
3114         * server-src/amcheck.c: Remove duplicate test.
3115         * server-src/dumper.c: Use newvstralloc.
3116
3117 2007-04-12  Jean-Louis Martineau <martineau@zmanda.com>
3118         * server-src/reporter.c: Take value from chunker if it succeed and
3119                                  taper fail.
3120
3121 2007-04-10  Jean-Louis Martineau <martineau@zmanda.com>
3122         * configure.in: Use krb5 shared library.
3123
3124 2007-04-10  Dustin J. Mitchell <dustin@zmanda.com>
3125         * changer-src/chg-zd-mtx.sh.in: remove configurability of mt, mtx paths
3126
3127 2007-04-10  Jean-Louis Martineau <martineau@zmanda.com>
3128         * common-src/krb5-security.c: Initialize rc->gss_context.
3129
3130 2007-04-09  Dustin J. Mitchell <dustin@zmanda.com>
3131         * changer-src/chg-zd-mtx.sh.in: fix bugs in configuration for mt, mtx paths
3132
3133 2007-04-06  Dustin J. Mitchell <dustin@zmanda.com>
3134         * oldrecover-src/extract_list.c oldrecover-src/display_commands.c
3135           client-src/sendbackup.c client-src/getfsent.c client-src/sendsize.c
3136           client-src/selfcheck.c recover-src/amrecover.c recover-src/extract_list.c
3137           recover-src/display_commands.c server-src/amlogroll.c
3138           server-src/amindexd.c server-src/tapefile.c server-src/amcheck.c
3139           server-src/dumper.c server-src/planner.c server-src/reporter.c
3140           server-src/amadmin.c server-src/find.c server-src/infofile.c
3141           restore-src/amidxtaped.c common-src/security-util.c common-src/amanda.h:
3142           improve parsing with strcmp_const and strcmp_const_skip
3143
3144 2007-04-06  Jean-Louis Martineau <martineau@zmanda.com>
3145         * server-src/taper.c: Limit splitsize to 1G in PORT-WRITE.
3146
3147 2007-04-06  Jean-Louis Martineau <martineau@zmanda.com>
3148         * common-src/krb5-security.c: Report client hostname.
3149
3150 2007-04-06  Jean-Louis Martineau <martineau@zmanda.com>
3151         * common-src/tapelist.c (append_to_tape): Don't call dump_tapelist.
3152
3153 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com>
3154         * contrib/macosx/org.amanda.amandad.bsd*.plist: updated to use username
3155           'amandabackup'
3156
3157 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com>
3158         * amplot/amplot.sh.in configure.in config/acinclude.m4i:
3159           move checks for gnuplot, awk to runtime for easier packaging;
3160           add fake gettext functions to ease the transition to
3161           full gettext support
3162
3163 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com> 
3164         * server-src/amindex.c: fix bug where debug fd was closed by safe_fd,
3165           remove remote_hostname, rewrite to use getaddrinfo/getnameinfo
3166         * server-src/dumper.c server-src/amcheck.c recover-src/set_commands.c:
3167           use getaddrinfo/getnameinfo
3168         * common-src/security-util.[ch]: add try_resolving_hostname()
3169         * common-src/ssh-security.c common-src/rsh-security.c:
3170           use try_resolving_hostname, rewrite to avoid gethostbyname
3171         * common-src/krb5-security.c: use getaddrinfo instead of gethostbyname
3172
3173 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com>
3174         * changer-src/chg-lib.sh.in changer-src/chg-mtx.sh.in
3175           changer-src/chg-manual.sh.in changer-src/chg-zd-mtx.sh.in
3176           changer-src/chg-multi.sh.in changer-src/Makefile.am
3177           configure.in: make the path to MTX and other executables configurable
3178           in changer scripts; introduce new changer shell library to reduce
3179           code duplication; add fake gettext functions to ease the transition to
3180           full gettext support
3181
3182 2007-04-04  Dustin J. Mitchell <dustin@zmanda.com>
3183         * server-src/dumper.c server-src/chunker.c: remove assumed ENOSPC
3184           error in static write_tapeheader functions
3185
3186 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
3187         * common-src/security-util.c: Remove buggy &.
3188
3189 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
3190         * common-src/conffile.c: Add READBLOCKSIZE tapetype config option.
3191         * common-src/conffile.c(getconf_readblocksize): Function to retrieve
3192           the tapetype readblocksize or the configured maxtapeblocksize.
3193         * common-src/conffile.h: Add READBLOCKSIZE tapetype config option.
3194         * man/xml-source/amanda.conf.5.xml: Document it.
3195         * tape-src/output-tape.c: Use getconf_readblocksize.
3196         * tape-src/tapeio.c: Use getconf_readblocksize.
3197
3198 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
3199         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
3200           common-src/bsdudp-security.c,
3201           common-src/security-util.c: Fix auth_debug and dbprintf usage.
3202
3203 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
3204         Merge from zmanda ext.
3205         * man/xml-source/amadmin.8.xml man/xml-source/amanda.8.xml
3206           server-src/amflush.c server-src/cmdline.c server-src/cmdline.h
3207           server-src/holding.c server-src/holding.h server-src/driver.c
3208           server-src/planner.c server-src/amadmin.c server-src/taper.c
3209           server-src/amcleanupdisk.c server-src/find.c
3210           server-src/Makefile.am: revise holding-disk management, add new
3211           'amadmin' subcommand to list and delete dumps from the holding
3212           disk.
3213         * server-src/amadmin.c: Add 'amadmin XX holding list -l'
3214
3215 2007-04-02  Dustin J. Mitchell <dustin@zmanda.com>
3216         * common-src/bsdtcp-security.c common-src/bsd-security.c 
3217           common-src/security-util.c common-src/bsdudp-security.c:
3218           bugfixes, always check for NULL ai_canonname
3219         * common-src/util.c common-src/util.h common-src/krb4-security.c 
3220           common-src/security-util.c: bugfix for hosts with multiple addresses,
3221           improved cmp_sockaddr, remove redundant checks
3222         * server-src/taper.c: add log message when new tapes are auto-labeled
3223         * common-src/security-util.c: patch to avoid spurious compiler warnings
3224           noticed on FC3
3225
3226 2007-03-30  Dustin J. Mitchell <dustin@zmanda.com>
3227         * common-src/file.c: remove unused amanda_setup()
3228
3229 2007-03-30  Jean-Louis Martineau <martineau@zmanda.com>
3230         * common-src/amanda.h: Define a _() macro.
3231
3232 2007-03-28  Dustin J. Mitchell <dustin@zmanda.com>
3233         * common/amanda.h: fix typo in SS_SET_INADDR_ANY for non-IPv6 
3234           machines
3235         * gnulib/regenerate/regenerate: update to include visibility
3236           and lock modules (See 2007-03-14)
3237         * recover-src/extract_list.c common-src/krb4-security.c
3238           common-src/event.c common-src/security-util.c: use
3239           SELECT_ARG_TYPE instead of fd_set
3240
3241 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
3242         * common-src/krb5-security.c: Fix for krb5 and IPv6.
3243         * common-src/security-util.c: Fix for krb5 and IPv6.
3244
3245 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
3246         * common-src/krb5-security.c: Compile with heimdal kerberos.
3247
3248 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
3249         Fix solaris 9 problem:
3250         * common-src/krb5-security.c: Use putenv instead of setenv.
3251         * common-src/security-util.c: Set flags according to family.
3252
3253 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
3254         Merge from zmanda EXT.
3255
3256 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
3257         * Makefile.am (EXTRA_DIST): Remove contrib/gnulib-update-current.
3258
3259 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
3260         * server-src/reporter.c: Ouput quoted diskname in "DUMP SUMMARY"
3261           section.
3262
3263 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
3264         * changer-src/chg-zd-mtx.sh.in: Exit with a message if the
3265                                         configuration file doesn't exist.
3266
3267 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
3268         * common-src/conffile.c: Fix error message.
3269
3270 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
3271         * amandad-src/amandad.c: Fix segfault.
3272
3273 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
3274         * common-src/security-util.c: Use SS_LEN.
3275         * common-src/util.c: Use SS_LEN.
3276
3277 2007-03-21  Jean-Louis Martineau <martineau@zmanda.com>
3278         * common-src/security.h (security_driver): Add data_encrypt and
3279                                                    data_decrypt function.
3280         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
3281           common-src/bsdudp-security.c, common-src/krb4-security.c,
3282           common-src/rsh-security.c,
3283           common-src/ssh-security.c: Set data_encrypt and data_decrypt to NULL.
3284
3285         * common-src/conffile.c: Parse KRB5KEYTAB and KRB5PRINCIPAL on client.
3286         * common-src/krb5-security.c: Complete rewrite.
3287         * common-src/security-util.h: Change many prototype.
3288         * common-src/security-util.c: Change argument to function.
3289         * recover-src/amrecover.c: Use generic_client_get_security_conf.
3290         * recover-src/extract_list.c: Use generic_client_get_security_conf.
3291
3292 2007-03-21  Jean-Louis Martineau <martineau@zmanda.com>
3293         Merge from zmanda EXT.
3294         - Add SS_INIT, SS_SET_INADDR_ANY, SS_GET_PORT and SS_SET_PORT
3295           macros for IPv6 portability
3296         - add SS_LEN() macro for calculating length of a
3297           struct sockaddr, use it in a few locations where incorrect
3298           lengths were being passed.
3299         - New script for rebuilding gnulib from scratch; current
3300           gnulib is from "cvs update -D '2007-01-31 13:12:51 -0600'"
3301
3302 2007-03-12  Jean-Louis Martineau <martineau@zmanda.com>
3303         * recover-src/set_commands.c (set_tape): Don't amfree(tape).
3304         * oldrecover-src/set_commands.c (set_tape): Don't amfree(tape).
3305
3306 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
3307         * changer-src/scsi-linux.c, common-src/security-util.c,
3308           common-src/stream.c, oldrecover-src/amrecover.c,
3309           restore-src/restore.c, server-src/amcheck.c,
3310           server-src/taper.c: Use SIZE_T_FMT and SSIZE_T_FMT instead of %z.
3311
3312 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
3313         * common-src/bsd-security.c: Always retry getaddrinfo if INET6 failed.
3314         * common-src/bsdudp-security.c: Ditto.
3315
3316 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
3317         * common-src/debug.c: Remove old file in current directory.
3318
3319 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
3320         * changer-src/chg-chio.pl.in: Typo.
3321
3322 2007-02-21  Jean-Louis Martineau <martineau@zmanda.com>
3323         * recover-src/extract_list.c: Remove match for path_on_disk_slash.
3324
3325 2007-02-20  Jean-Louis Martineau <martineau@zmanda.com>
3326         * common-src/stream.c, common-src/util.c: Pass exact socklen_t to
3327                                                   bind and connect call.
3328
3329 2007-02-20  Jean-Louis Martineau <martineau@zmanda.com>
3330         * server-src/taper.c: Set splitsize to 0 if no data in file.
3331         * server-src/amflush.c: Don't send FLUSH request if no data in file.
3332         * server-src/planner.c: Don't send FLUSH request if no data in file.
3333         * server-src/driver.c: Don't send request to taper if no data in file.
3334
3335 2007-02-19  Jean-Louis Martineau <martineau@zmanda.com>
3336         * amandad-src/amandad.c: Fix compilation with --without-ipv6.
3337
3338 2007-02-19  Jean-Louis Martineau <martineau@zmanda.com>
3339         * server-src/amverify.sh.in: Remove bogus fi.
3340
3341 2007-02-16  Jean-Louis Martineau <martineau@zmanda.com>
3342         * server-src/amverify.sh.in: Add timeout on wait for device ready.
3343         * changer-src/chg-chio.pl.in: Wait (with timeout) for drive ready.
3344
3345 2007-02-15  Jean-Louis Martineau <martineau@zmanda.com>
3346         * server-src/taper.c: Don't call free_server_config.
3347
3348 2007-02-15  Jean-Louis Martineau <martineau@zmanda.com>
3349         * patching file oldrecover-src/amrecover.h (local_cd): Prototype.
3350         * oldrecover-src/set_commands.c: Works with quoted arguments.
3351         * oldrecover-src/uparse.y (LCD): Call local_cd.
3352         * recover-src/amrecover.h (local_cd): Prototype.
3353         * recover-src/set_commands.c: Works with quoted arguments.
3354         * recover-src/uparse.y (LCD): Call local_cd.
3355
3356 2007-02-14  Jean-Louis Martineau <martineau@zmanda.com>
3357         * common-src/security-util.c: Add "on the client" message.
3358
3359 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
3360         * server-src/amstatus.pl.in: fix for chunk and displayunit.
3361
3362 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
3363         * server-src/dumper.c: Fix if krb4 is compiled but another auth is
3364                                used.
3365
3366 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
3367         * common-src/alloc.c (safe_env): Remove LANG and LC_* only if we are
3368                                          priviledged process.
3369
3370 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
3371         * dumper-src/amgtar.pl.in: Replace -t options by -T.
3372         * dumper-src/Makefile.am: Remove perl -t options.
3373
3374 2007-02-12  Jean-Louis Martineau <martineau@zmanda.com>
3375         * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add sl.
3376         * common-src/statfs.c: Fix scale function.
3377
3378 2007-02-12  Jean-Louis Martineau <martineau@zmanda.com>
3379         * client-src/sendsize.c: Fix PARAM_HONOR_NODUMP.
3380
3381 2007-02-09  Jean-Louis Martineau <martineau@zmanda.com>
3382         * server-src/reporter.c: Fix postscript crash.
3383
3384 2007-02-09  Jean-Louis Martineau <martineau@zmanda.com>
3385         * changer-src/chg-manual.sh.in: Add tty, email, tty_email request mode.
3386
3387 2007-02-07  Jean-Louis Martineau <martineau@zmanda.com>
3388         * server-src/amindexd.c: Use dbfd.
3389
3390 2007-02-06  Jean-Louis Martineau <martineau@zmanda.com>
3391         * common-src/alloc.c (vstrallocf): New function.
3392         * common-src/amanda.h (vstrallocf): Prototype.
3393         * client-src/sendsize.c: Send error if fe_rep_sendsize_quoted_error.
3394         * common-src/amfeatures.c (am_init_feature_set): Set
3395                                                  fe_rep_sendsize_quoted_error.
3396         * common-src/amfeatures.h (fe_rep_sendsize_quoted_error): new features.
3397         * server-src/planner.c: Receive error message from sendsize.
3398
3399 2007-02-06  Jean-Louis Martineau <martineau@zmanda.com>
3400         * amandad-src/amandad.c, changer-src/scsi-linux.c,
3401           common-src/conffile.c, configure.in,
3402           man/Makefile.am, man/xml-source/amcheck.8.xml,
3403           server-src/amlabel.c, server-src/taper.c: Merge from zmanda.
3404
3405 2007-02-06  Jean-Louis Martineau <martineau@zmanda.com>
3406         * common-src/clock.c (timesub): The result must always be positive.
3407
3408 2007-02-05  Jean-Louis Martineau <martineau@zmanda.com>
3409         * changer-src/chg-zd-mtx.sh.in: Fix for sed and IMPORT/EXPORT.
3410
3411 2007-02-05  Jean-Louis Martineau <martineau@zmanda.com>
3412         * server-src/amcheck.c: Add parentheses.
3413
3414 2007-02-02  Jean-Louis Martineau <martineau@zmanda.com>
3415         * contrib/gnulib-update-current: New file.
3416         * Makefile.am (EXTRA_DIST): Add contrib/gnulib-update-current.
3417
3418 2007-02-02  Jean-Louis Martineau <martineau@zmanda.com>
3419         * man/Makefile.am: Use http://docbook.sourceforge.net
3420         * man/xml-source/amadmin.8.xml, man/xml-source/amaespipe.8.xml,
3421           man/xml-source/amanda.8.xml, man/xml-source/amanda-client.conf.5.xml,
3422           man/xml-source/amanda.conf.5.xml, man/xml-source/amcheck.8.xml,
3423           man/xml-source/amcrypt.8.xml, man/xml-source/amdump.8.xml,
3424           man/xml-source/amfetchdump.8.xml, man/xml-source/amflush.8.xml,
3425           man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml,
3426           man/xml-source/ammt.8.xml, man/xml-source/amrecover.8.xml,
3427           man/xml-source/amreport.8.xml,
3428           man/xml-source/amtape.8.xml: Fix for xmllint.
3429         * man/xslt/man.xsl: Remove bogus code.
3430
3431 2007-02-01  Jean-Louis Martineau <martineau@zmanda.com>
3432         * changer-src/chg-zd-mtx.sh.in: Support IMPORT/EXPORT slot.
3433
3434 2007-02-01  Jean-Louis Martineau <martineau@zmanda.com>
3435         * server-src/amdump.sh.in: Output a starttime line.
3436         * server-src/amflush.c: Output a starttime line.
3437         * server-src/amstatus.pl.in: parse the starttime line.
3438
3439 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
3440         * configure.in: Fix --with-ipv6 option.
3441
3442 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
3443         * server-src/amdump.sh.in: Exit with a status.
3444
3445 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
3446         * server-src/diskfile.c: Use hostnext pointer.
3447
3448 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
3449         * server-src/reporter.c: Exit with a status.
3450
3451 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
3452         * server-src/amstatus.pl.in: Exit with a status.
3453
3454 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
3455         * server-src/amstatus.pl.in: Detect failed dump to tape.
3456
3457 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
3458         * configure.in: Add --with-ipv6 option.
3459
3460 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
3461         * server-src/changer.c (changer_command): Send stderr to dbfd().
3462
3463 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
3464         * server-src/diskfile.c: Check hostname have same case.
3465
3466 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
3467         * changer-src/chg-zd-mtx.sh.in: Check if MT and MTX exists.
3468
3469 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
3470         * changer-src/chg-zd-mtx.sh.in: Set CHANGER environment variable.
3471
3472 2007-01-24  Jean-Louis Martineau <martineau@zmanda.com>
3473         * common-src/conffile.c: Cleanup conf_print function.
3474
3475 2007-01-24  Jean-Louis Martineau <martineau@zmanda.com>
3476         * common-src/conffile.c: Check for duplicate -o options.
3477         * recover-src/amrecover.c: Change precedence of option.
3478
3479 2007-01-24  Jean-Louis Martineau <martineau@zmanda.com>
3480         * server-src/diskfile.c: Fix compiler warning.
3481
3482 2007-01-23  Jean-Louis Martineau <martineau@zmanda.com>
3483         * common-src/security-util.c (tcpm_recv_token): Check size < 0.
3484
3485
3486 2007-01-23  Jean-Louis Martineau <martineau@zmanda.com>
3487         * server-src/diskfile.c: Check duplicate DLE with match_host and
3488                                  match_disk.
3489
3490 2007-01-18  Jean-Louis Martineau <martineau@zmanda.com>
3491         * client-src/selfcheck.c: Improve check if /etc/dumpdates in not there.
3492
3493 2007-01-18  Jean-Louis Martineau <martineau@zmanda.com>
3494         * restore-src/amfetchdump.c: Set arg_state to ARG_GET_HOST.
3495
3496 2007-01-18  Jean-Louis Martineau <martineau@zmanda.com>
3497         * server-src/amcheck.c: Check tape_access.
3498         * server-src/taper.c: Improve message.
3499
3500 2007-01-16  Jean-Louis Martineau <martineau@zmanda.com>
3501         * configure.in: Define GCC_COMPILER.
3502         * gnulib/Makefile.am: Add -Wno-error to AM_CFLAGS if GCC_COMPILER.
3503
3504 2007-01-16  Jean-Louis Martineau <martineau@zmanda.com>
3505         * server-src/getconf.c: Fix segfault in parameter parsing.
3506
3507 2007-01-15  Jean-Louis Martineau <martineau@zmanda.com>
3508         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
3509           common-src/bsdudp-security.c,
3510           common-src/stream.c: Don't call check_addrinfo_give_name.
3511         * common-src/security-util.c (check_addrinfo_give_name): Always log
3512                                                                  error message.
3513
3514 2007-01-11  Jean-Louis Martineau <martineau@zmanda.com>
3515         * common-src/conffile.c Set default length/filemark correctly.
3516         * man/xml-source/amanda.conf.5.xml: Document they are in kbytes.
3517
3518 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3519         * config/gnulib/gnulib-common.m4: New file.
3520         * config/gnulib.m4i: Load config/gnulib/gnulib-common.m4.
3521
3522 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3523         * amandad-src/amandad.c (do_sendpkt): Send packet if handle != NULL.
3524
3525 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3526         * common-src/conffile.c, common-src/conffile.h,
3527           server-src/diskfile.c: Keep different list for exclude file and list.
3528
3529 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3530         * server-src/taper.c (read_file): Don't count first header twice.
3531
3532 2007-01-05  Jean-Louis Martineau <martineau@zmanda.com>
3533         * server-src/amstatus.pl.in: Fix split-dump accounting.
3534
3535 2007-01-04  Jean-Louis Martineau <martineau@zmanda.com>
3536         * restore-src/restore.c: Use prompt_in.
3537
3538 2007-01-04  Jean-Louis Martineau <martineau@zmanda.com>
3539         * amandad-src/amandad.c, common-src/bsd-security.c,
3540           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
3541           common-src/dgram.c, common-src/security-util.c,
3542           common-src/stream.c,
3543           common-src/util.c: Replace HAVE_IPV6 by WORKING_IPV6.
3544         * configure.in: Define HAVE_IPV6 if IPv6 is working.
3545
3546 2007-01-04  Jean-Louis Martineau <martineau@zmanda.com>
3547         * changer-src/chg-chio.pl.in, changer-src/chg-iomega.pl.in,
3548           changer-src/chg-rth.pl.in, dumper-src/amgtar.pl.in,
3549           server-src/amoverview.pl.in, server-src/amstatus.pl.in,
3550           server-src/amtoc.pl.in: Clean ENV and set PATH.
3551
3552 2006-12-27  Jean-Louis Martineau <martineau@zmanda.com>
3553         * server-src/driver.c: Don't repport error for many run in a day if
3554                                it's amflush.
3555
3556 2006-12-27  Jean-Louis Martineau <martineau@zmanda.com>
3557         * common-src/util.c (quote_string): Escape '\' character.
3558
3559 2006-12-22  Jean-Louis Martineau <martineau@zmanda.com>
3560         * recover-src/display_commands.c: Send quoted text to amindexd.
3561         * recover-src/extract_list.c: Send quoted text to amindexd.
3562         * recover-src/set_commands.c: Send quoted text to amindexd.
3563
3564 2006-12-22  Jean-Louis Martineau <martineau@zmanda.com>
3565         * changer-src/chg-disk.sh.in: LASTSLOT in a changerfile for chg-disk.
3566
3567 2006-12-22  Jean-Louis Martineau <martineau@zmanda.com>
3568         * client-src/sendsize.c: Compilation fix.
3569
3570 2006-12-18  Jean-Louis Martineau <martineau@zmanda.com>
3571         * common-src/packet.c (pkt_init_empty): New function.
3572         * common-src/packet.h (pkt_init_empty): New prototype.
3573         * amandad-src/amandad.c, common-src/protocol.c,
3574           common-src/security-util.c: Use pkt_init_empty.
3575
3576 2006-12-18  Jean-Louis Martineau <martineau@zmanda.com>
3577         * common-src/conffile.c: Print nothing if the list is emtpy.
3578
3579 2006-12-14  Jean-Louis Martineau <martineau@zmanda.com>
3580         * restore-src/restore.c: Fix filename for output file.
3581
3582 2006-12-12  Jean-Louis Martineau <martineau@zmanda.com>
3583         * common-src/amanda.h: Define __attribute__ for gcc >= 3.
3584         * common-src/packet.c (pkt_init): Accept NULL for fmt.
3585         * amandad-src/amandad.c, common-src/protocol.c,
3586           common-src/security-util.c: Pass NULL to pkt_init.
3587         * amandad-src/amandad.c, changer-src/chg-scsi.c,
3588           changer-src/scsi-linux.c, client-src/sendbackup.c,
3589           common-src/amanda.h, common-src/conffile.c,
3590           common-src/event.c, common-src/packet.c,
3591           common-src/security-util.c, common-src/stream.c,
3592           common-src/util.c, oldrecover-src/amrecover.c,
3593           restore-src/restore.c, server-src/amcheck.c,
3594           server-src/driver.c, server-src/driverio.c,
3595           server-src/taper.c: Fix printf format error.
3596
3597 2006-12-12  Jean-Louis Martineau <martineau@zmanda.com>
3598         * server-src/amindexd.c: Use fgets to read index file because they
3599                                  are not quoted.
3600
3601 2006-12-12  Jean-Louis Martineau <martineau@zmanda.com>
3602         * configure.in: Find patch for sort program.
3603         * server-src/amindexd.c: Clean the indexd file between the uncompress
3604                                  and sort process.
3605
3606 2006-12-08  Jean-Louis Martineau <martineau@zmanda.com>
3607         * configure.in: Add ICE_CHECK_DECL(snprintf,stdio.h)
3608         * configure.in: Add ICE_CHECK_DECL(vsnprintf,stdio.h)
3609         * client-src/sendbackup.c: Fix ignoring return value of write.
3610
3611 2006-12-08  Jean-Louis Martineau <martineau@zmanda.com>
3612         * man/xml-source/amadmin.8.xml, man/xml-source/amanda.8.xml,
3613           man/xml-source/amanda.conf.5.xml, man/xml-source/amcheck.8.xml,
3614           man/xml-source/amfetchdump.8.xml, man/xml-source/ammt.8.xml,
3615           man/xml-source/amrecover.8.xml: Move </note> tag to beginning of line
3616
3617 2006-12-08  Jean-Louis Martineau <martineau@zmanda.com>
3618         * changer-src/chg-rait.sh.in: Fix typo for -reset.
3619
3620 2006-12-07  Jean-Louis Martineau <martineau@zmanda.com>
3621         * server-src/amindexd.c: Fix host case problem.
3622         * server-src/diskfile.c (add_disk, parse_diskline): Update hostname
3623                                                             field.
3624         * server-src/diskfile.h (disk_s): New hostname field.
3625         * server-src/disk_history.c (add_dump): New hostname parameter.
3626         * server-src/disk_history.h (DUMP_ITEM): New hostname field.
3627         * server-src/disk_history.h (add_dump): Protoype change.
3628
3629 2006-12-07  Jean-Louis Martineau <martineau@zmanda.com>
3630         * amandad-src/amandad.c: Add missing HAVE_IPV6.
3631         * common-src/security-util.c: Add missing HAVE_IPV6.
3632         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
3633           common-src/bsdudp-security.c, common-src/dgram.c,
3634           common-src/dgram.h, common-src/stream.c,
3635           common-src/util.c: Fix for broken getaddrinfo:not returning V4MAPPED
3636
3637 2006-12-07  Jean-Louis Martineau <martineau@zmanda.com>
3638         * common-src/conffile.c (lookup_keyword): Use strcasecmp.
3639         * common-src/conffile.c (get_conftoken): Don;t convert to uppercase.
3640         * server-src/getconf.c: Don;t print extra '\n' for --list.
3641
3642 2006-12-04  Jean-Louis Martineau <martineau@zmanda.com>
3643         * common-src/util.c (str_sockaddr): Use host byte order for port.
3644
3645 2006-12-04  Jean-Louis Martineau <martineau@zmanda.com>
3646         * server-src/amtape.h: Remove file.
3647
3648 2006-12-04  Jean-Louis Martineau <martineau@zmanda.com>
3649         Application API phase 1.
3650         * client-src/client_util.c, client-src/client_util.h,
3651           client-src/selfcheck.c, client-src/sendbackup.c,
3652           client-src/sendsize.c, common-src/amfeatures.c,
3653           common-src/amfeatures.h, common-src/fileheader.c,
3654           common-src/fileheader.h, recover-src/extract_list.c,
3655           server-src/amcheck.c, server-src/amstatus.pl.in,
3656           server-src/dumper.c, server-src/Makefile.am,
3657           server-src/planner.c: Fix for Application API.
3658         * configure.in: Fix for moved files.
3659         * dumper-src/generic-dumper.pl.in: Fix for Application API.
3660         * dumper-src/Makefile.am: Fix for renamed files.
3661         * dumper-src/gnutar.pl.in: Renamed to dumper-src/amgtar.pl.in.
3662         * dumper-src/amgtar.pl.in: Fix for Application API.
3663         * dumper-src/star.pl.in: Renamed to dumper-src/amstar.pl.in.
3664         * dumper-src/amstar.pl.in: Fix for Application API.
3665
3666 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
3667         * client-src/sendbackup.c: Kill dump process on error.
3668
3669 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
3670         * changer-src/chg-chio.pl.in: Check tapedev is set.
3671         * changer-src/chg-disk.sh.in: Check tapedev is set.
3672         * changer-src/chg-iomega.pl.in: Check tapedev is set.
3673         * changer-src/chg-manual.sh.in: Check tapedev is set.
3674         * changer-src/chg-mtx.sh.in: Check tapedev is set.
3675         * changer-src/chg-rth.pl.in: Check tapedev is set.
3676         * server-src/amcheck.c: Tapedev is needed only if tpchanger is not set.
3677         * server-src/amflush.c: Tapedev is needed only if tpchanger is not set.
3678         * server-src/amindexd.c: Tapedev is needed only if tpchanger is not set
3679         * server-src/taper.c: Tapedev is needed only if tpchanger is not set.
3680
3681 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
3682         * client-src/sendbackup.c: Ignore tar exit with status 1.
3683
3684 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
3685         * server-src/amindexd.c (clean_backslash): New function use to unescape
3686                                                  '\' characters in index files.
3687
3688 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
3689         * restore-src/restore.c (search_tapes): Fix prompt_out setting.
3690
3691 2006-11-28  Jean-Louis Martineau <martineau@zmanda.com>
3692         * common-src/amanda.h: Don't include gnulib header if CONFIGURE_TEST
3693                                is defined.
3694         * common-src/amflock.c (main): Remove unused fd variable.
3695
3696 2006-11-28  Jean-Louis Martineau <martineau@zmanda.com>
3697         * config/Makefile.am (EXTRA_DIST): Add gnulib.m4i.
3698
3699 2006-11-27  Jean-Louis Martineau <martineau@zmanda.com>
3700         * common-src/util.c (copy_file): Fix compilation error.
3701
3702 2006-11-27  Jean-Louis Martineau <martineau@zmanda.com>
3703         * common-src/stream.c: Fix compilation error.
3704
3705 2006-11-27  Jean-Louis Martineau <martineau@zmanda.com>
3706         * common-src/amanda.h (NI_MAXHOST): Define if not defined.
3707         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
3708           common-src/bsdudp-security.c, common-src/dgram.c,
3709           common-src/security-util.c, common-src/stream.c,
3710           common-src/util.c: HAVE_IPV6 conditional code
3711
3712 2006-11-26  Jean-Louis Martineau <martineau@zmanda.com>
3713         * config/gnulib/*: m4 files for gnulib.
3714         * config/gnulib.m4i: File to load all m4 files for gnulib.
3715         * gnulib/*: gnulib source.
3716         * */Makefile.am (INCLUDES): Add $(top_srcdir)/gnulib.
3717         * */Makefile.am (LDADD): Add ../gnulib/libgnu.$(LIB_EXTENSION).
3718         * Makefile.am (ACINCLUDE_M4_DEPS): Add $(srcdir)/config/gnulib.m4i.
3719         * Makefile.am (SUBDIRS): Add gnulib.
3720         * configure.in: AC_PREREQ(2.59), gl_EARLY, gl_INIT.
3721         * configure.in (AC_CONFIG_FILES): Add gnulib/Makefile.
3722         * autogen: Add config/gnulib.m4i to acinclude.m4.
3723
3724 2006-11-24  Jean-Louis Martineau <martineau@zmanda.com>
3725         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c,
3726           client-src/sendsize.c,
3727           server-src/amindexd.c: Patch for gcc-3.2.3 to compile the new
3728                                  vstralloc macro.
3729
3730 2006-11-24  Jean-Louis Martineau <martineau@zmanda.com>
3731         * common-src/file.c (old_sanitise_filename): New function.
3732         * common-src/amanda.h (old_sanitise_filename): Prototype.
3733         * common-src/util.c (copy_file): New function.
3734         * common-src/util.h (copy_file): Prototype.
3735         * server-src/diskfile.c: Check that two DLE doesn't get the same
3736                                  sanitized filename.
3737         * server-src/amindex.c (getoldindexfname): New function.
3738         * server-src/amindex.h (getoldindexfname): prototype.
3739         * server-src/amindexd.c: Use the old sanitized filename if the new
3740                                  file doesn't exist.
3741         * server-src/amcheck.c: Call check_infofile.
3742         * server-src/planner.c: Call check_infofile.
3743         * server-src/server_util.c (check_infofile): New function, will copy
3744                          the old sanitizes info file if the new doesn't exist.
3745         * server-src/server_util.h (check_infofile): Prototype.
3746
3747 2006-11-23  Jean-Louis Martineau <martineau@zmanda.com>
3748         * common-src/security-util.c (tcpm_recv_token): amanda protocol
3749           packet can be larger than NETWORK_BLOCK_BYTES
3750
3751 2006-11-21  Jean-Louis Martineau <martineau@zmanda.com>
3752         * common-src/stream.c: Fix compiler error.
3753
3754 2006-11-21  Jean-Louis Martineau <martineau@zmanda.com>
3755         * amandad-src/amandad.c, common-src/amanda.h,
3756           common-src/bsd-security.c, common-src/bsdtcp-security.c,
3757           common-src/bsdudp-security.c, common-src/dgram.c,
3758           common-src/dgram.h, common-src/krb4-security.c,
3759           common-src/krb5-security.c, common-src/security-util.c,
3760           common-src/security-util.h, common-src/stream.c,
3761           common-src/util.c, common-src/util.h,
3762           restore-src/amidxtaped.c, server-src/amindexd.c: IPV6.
3763
3764 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
3765         * client-src/sendsize.c, oldrecover-src/display_commands.c,
3766           oldrecover-src/extract_list.c, recover-src/display_commands.c,
3767           recover-src/extract_list.c,
3768           server-src/driver.c: Fix compiler error.
3769
3770 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
3771         * client-src/sendsize.c: Open the amandates file after the
3772                                  <config>/amanda-client.conf file is loaded.
3773
3774 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
3775         * client-src/sendsize.c: Fix compiler error on boris.
3776         * server-src/driver.c: Fix compiler error on rocky.
3777
3778 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
3779         * common-src/security-util.c, server-src/amcheck.c,
3780         * server-src/driver.c, server-src/dumper.c,
3781         * server-src/planner.c, tape-src/output-file.c: Lint cleanup.
3782
3783 2006-11-20  Ian Turner <ian@zmanda.com>
3784         * tape-src/output-file.c: Fix a compilation error related to
3785           improper type casts. Thanks to Satya Ganga for noticing this
3786           problem.
3787
3788 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
3789         * server-src/driver.c: Use temporary variable to scanf an OFF_T_FMT.
3790         * server-src/planner.c: Use temporary variable to scanf an OFF_T_FMT.
3791
3792 2006-11-13  Jean-Louis Martineau <martineau@zmanda.com>
3793         * client-src/selfcheck.c: Work for estimate calcsize and
3794                                   program "DUMP".
3795
3796 2006-11-13  Jean-Louis Martineau <martineau@zmanda.com>
3797         * server-src/amcheck.c: Don't ouput an warning if holdingdisk 'use'
3798                                 is set to 0.
3799
3800 2006-11-09  Jean-Louis Martineau <martineau@zmanda.com>
3801         * man/xml-source/amgetconf.8.xml: Document --list.
3802
3803 2006-11-09  Jean-Louis Martineau <martineau@zmanda.com>
3804         * changer-src/chg-scsi.c: Don't remove '_' from "generic_changer".
3805
3806 2006-11-08  Jean-Louis Martineau <martineau@zmanda.com>
3807         * common-src/amanda.h, common-src/conffile.c,
3808           common-src/conffile.h, common-src/security-util.c,
3809           configure.in, oldrecover-src/amrecover.c,
3810           oldrecover-src/extract_list.c, recover-src/amrecover.c,
3811           recover-src/extract_list.c, restore-src/amrestore.c,
3812           server-src/dumper.c: Fix compiler error on Tru64.
3813
3814 2006-11-08  Jean-Louis Martineau <martineau@zmanda.com>
3815         * common-src/conffile.c (getconf_byname):
3816                                 Parse "DEFINE:identifer:parameter" format.
3817         * common-src/conffile.c (getconf_list): New function to list a DEFINE.
3818         * common-src/conffile.c (lookup_holdingdisk): New function.
3819         * common-src/conffile.h (getconf_list,
3820                                  lookup_holdingdisk): New prototype.
3821         * server-src/getconf.c: accept --list argument and
3822                                 "DEFINE:identifer:parameter" format.
3823         * man/xml-source/amgetconf.8.xml: Document.
3824
3825 2006-11-08  Jean-Louis Martineau <martineau@zmanda.com>
3826         * server-src/driver.c: set off_t variable to 0 before sscanf.
3827         * server-src/planner.c: set off_t variable to 0 before sscanf.
3828
3829 2006-11-07  Jean-Louis Martineau <martineau@zmanda.com>
3830         * server-src/amstatus.pl.in: Improve error message.
3831
3832 2006-11-07  Jean-Louis Martineau <martineau@zmanda.com>
3833         * common-src/security-util.c: Fix coverity bug 170.
3834         * server-src/diskfile.c: Fix coverity bug 147.
3835
3836 2006-11-07  Jean-Louis Martineau <martineau@zmanda.com>
3837         * common-src/conffile.c (validate_chunksize): Check chunksize is >=
3838                                                       2*DISK_BLOCK_KB
3839
3840 2006-11-06  Jean-Louis Martineau <martineau@zmanda.com>
3841         * common-src/amanda.h: Define OFF_T_STRTOL.
3842         * configure.in: Check for strtol and strtoll.
3843
3844 2006-11-02  Ian Turner <ian@zmanda.com>
3845         * common-src/amanda.h: Use atol if atoll is missing.
3846
3847 2006-11-02  Jean-Louis Martineau <martineau@zmanda.com>
3848         * common-src/security-util.c: Better message on invalid size.
3849
3850 2006-11-02  Jean-Louis Martineau <martineau@zmanda.com>
3851         * configure.in: List bsdudp as a udp transport.
3852
3853 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
3854         * server-src/diskfile.c: Don't use 0 for NULL.
3855
3856 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
3857         Revert Ian patch of 2006-10-29.
3858         * common-src/conffile.c: Defile AMANDATES_FILE
3859         * client-src/amandates.h: Don't define AMANDATES_FILE
3860
3861 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
3862         * common-src/conffile.c: Rename DUMPTYPE_START_T to DUMPTYPE_STARTTIME.
3863         * common-src/conffile.h: Rename DUMPTYPE_START_T to DUMPTYPE_STARTTIME.
3864         * server-src/amadmin.c (disklist_one): Print correct starttime.
3865         * server-src/diskfile.c: Set start_t to starttime.
3866         * server-src/diskfile.h (disk_t): Add starttime.
3867
3868 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
3869         * changer-src/scsi-changer-driver.c: Add Tandberg SLR100,
3870                                              more debugging.
3871         * changer-src/sense.c: Add Tandberg SLR100 Tape Drive "SLR100".
3872
3873 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
3874         * common-src/amanda.h: Define dbrename if !DEBUG_CODE.
3875         * restore-src/amidxtaped.c: Declare i if !DEBUG_CODE.
3876
3877 2006-10-30  Jean-Louis Martineau <martineau@zmanda.com>
3878         * server-src/amadmin.c (disklist_one): Print ignore field.
3879         * server-src/amoverview.pl.in: Ignore 'ignore yes' and 'strategy skip'.
3880         * server-src/diskfile.c: Correct hostname allocation.
3881                                  Keep 'ignore yes' and 'strategy skip' DLE in
3882                                  memory, set there todo to 0.
3883         * server-src/diskfile.h: (struct disk_s): New ignore field.
3884
3885 2006-10-29  Ian Turner <ian@zmanda.com>
3886         This was reported as debian bug 394796. Thanks to Damyan Ivanov 
3887         <dam@modsoftsys.com> for reporting and to Bdale Garbee 
3888         <bdale@gag.com> for a preliminary patch.
3889         * common-src/conffile.c: Use AMANDATES_FILE as default for 
3890           location of amandates.
3891         * common-src/amandates.h: Move from client-src/
3892         * client-src/amandates.h: Move to common-src/
3893         * common-src/Makefile.am: Update to reflect new location of 
3894           amandates.h.
3895         * client-src/Makefile.am: ditto.
3896
3897 2006-10-25  Jean-Louis Martineau <martineau@zmanda.com>
3898         Patch by Jay Fenlason
3899         * common-src/rsh-security.c: Fix.
3900
3901 2006-10-24  Jean-Louis Martineau <martineau@zmanda.com>
3902         * common-src/conffile.c (get_config_options): Build and argv of the
3903                                                       -o arguments.
3904         * common-src/conffile.h (get_config_options): Prototype.
3905         * server-src/driverio.c: exec dumper/chunker/driver with the argv from
3906                                  get_config_options
3907         * server-src/amtape.c: Accept -o argument.
3908         * man/xml-source/amtape.8.xml: Document it.
3909
3910 2006-10-24  Jean-Louis Martineau <martineau@zmanda.com>
3911         * server-src/taper.c: Fix allocation problem on tapedev.
3912
3913 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
3914         * common-src/conffile.c (conf_print): Add a parameter if we want
3915                                               CONFTYPE_STRING enclosed in ".
3916         * server-src/planner.c: Use getconf_int to get etimeout value.
3917
3918 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
3919         * server-src/taper.c (free_split_buffer): Correct free.
3920
3921 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
3922         * client-src/sendbackup.c: Parse quote amdevice.
3923         * server-src/amcheck.c: Send quoted amdevice.
3924         * server-src/planner.c: Send quoted amdevice.
3925
3926 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
3927         * common-src/conffile.c (CNF_CTIMEOUT, CNF_DTIMEOUT, CNF_ETIMEOUT):
3928           They are of type CONFTYPE_INT
3929           (CONFTYPE_TIME are for value parsed as "hhmm"")
3930         * common-src/conffile.c (getconf_byname): Use conf_print().
3931         * common-src/conffile.h: Add comment.
3932         * server-src/amcheck.c, server-src/dumper.c, server-src/planner.c:
3933           Use getconf_int to get timeout value.
3934
3935 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
3936         * man/xml-source/amanda.conf.5.xml: Fix formating.
3937
3938 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
3939         * client-src/calcsize.c, client-src/sendsize.c: Remove bogus fseek.
3940
3941 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
3942         * client-src/calcsize.c: Quote amname.
3943
3944 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
3945         * server-src/driver.c: Print an L_STATS with the hostname
3946         * server-src/reporter.c: Print hostname, org, config and date at the
3947                                  beginning of the report
3948
3949 2006-10-16  Jean-Louis Martineau <martineau@zmanda.com>
3950         * common-src/dgram.c (dgram_cat),
3951           common-src/packet.c (pkt_init, pkt_cat): Works correctly with
3952                                                    vsnprintf returning -1.
3953
3954 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
3955         * common-src/Makefile.am (libamanda_la_LIBADD) Remove @LTLIBOBJS@.
3956
3957 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
3958         * server-src/taper.c: stralloc(tapedev).
3959         * configure.in (EXAMPLE_TAPEDEV): Set to /dev/null if no tape-device.
3960         * example/amanda-client.conf.in, example/amanda.conf.in
3961           example/chg-mcutil.conf.in: Use EXAMPLE_TAPEDEV.
3962
3963 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
3964         * common-src/alloca.c, common-src/getcwd.c, common-src/mktime.c,
3965           common-src/memmove.c, common-src/snprintf.c,
3966           common-src/strcasecmp.c, common-src/strerror.c,
3967           common-src/strftime.c, common-src/strncasecmp.c,
3968           common-src/strstr.c, common-src/waitpid.c,
3969           COPYRIGHT-APACHE: Removed files.
3970         * configure.in: Remove many AC_REPLACE_FUNCS.
3971         * Makefile.am (pkgdata_DATA): Remove COPYRIGHT-APACHE.
3972
3973 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
3974         * common-src/Makefile.am: Remove all reference to our regex
3975         * common-src/match.c: #include <regex.h>, the system regex
3976         * common-src/memmove.c: No more memmove in regex-src
3977         * Makefile.am (pkgdata_DATA): Remove COPYRIGHT-REGEX
3978         * Makefile.am (EXTRA_DIST): Remove regex-src/*
3979         * regex-src: Remove directory.
3980         * common-src/regcomp.c, common-src/regerror.c,
3981           common-src/regexec.c, common-src/regfree.c,
3982           common-src/amregex.h: Remove files.
3983
3984 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
3985         * server-src/planner.c: Improve message for dump larger than available
3986                                 tape space if runtapes > 1 and splitsize == 0.
3987
3988 2006-10-10  Jean-Louis Martineau <martineau@zmanda.com>
3989         * server-src/driver.c (wait_children): Don't crash if dumper->chunker
3990                                                is NULL
3991
3992 2006-10-04  Jean-Louis Martineau <martineau@zmanda.com>
3993         * amandad-src/amandad.c: Call security_recvpkt() on A_SENDNACK
3994                                  and dup P_REQ.
3995         * common-src/security-util.c: Improve message.
3996
3997 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
3998         * server-src/amcleanupdisk.c: Accept -o arguments.
3999         * server-src/amcleanup.sh.in: Add missing 'shift' for non-linux system.
4000                                       Accept -o arguments.
4001
4002 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
4003         * server-src/amoverview.pl.in: Fix parsing of time field from amadmin.
4004
4005 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
4006         * restore-src/amidxtaped.c, restore-src/restore.c,
4007           server-src/amcheck.c, server-src/amflush.c,
4008           server-src/amlabel.c, server-src/taper.c,
4009           server-src/taperscan.c: Check for CNF_TAPEDEV == NULL.
4010
4011 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
4012         * common-src/conffile.c: Don't set CNF_TAPEDEV to DEFAULT_TAPE_DEVICE.
4013         * configure.in: Don't set DEFAULT_TAPE_DEVICE.
4014
4015 2006-09-29  Jean-Louis Martineau <martineau@zmanda.com>
4016         * common-src/bsdtcp-security.c: Add logging on error.
4017
4018 2006-09-29  Jean-Louis Martineau <martineau@zmanda.com>
4019         * server-src/amoverview.pl.in: Use shellwords instead of quotewords,
4020           don't add date for disk not in the disklist.
4021
4022 2006-09-28  Jean-Louis Martineau <martineau@zmanda.com>
4023         * common-src/bsd-security.c: Fix %hd printf argument format.
4024         * common-src/security-util.c: Fix %hd printf argument format.
4025
4026 2006-09-28  Jean-Louis Martineau <martineau@zmanda.com>
4027         * common-src/conffile.c (client_keytab): Add DEBUG_*.
4028         * oldrecover-src/amrecover.c: Call read_clientconf.
4029
4030 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
4031         * restore-src/restore.c: Improve debugging.
4032         * server-src/changer.c: Make sure to dup the fd out of the 0..2 range.
4033
4034 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
4035         * restore-src/amfetchdump.c: Pass new prompt_in parameter to
4036                                      search_tapes.
4037         * restore-src/restore.c (search_tapes, load_manual_tape): New prompt_in
4038                                                                   parameter.
4039         * restore-src/restore.h (search_tapes): New prompt_in parameter.
4040         * restore-src/amidxtaped.c: Set new 'FILE *' instead of reusing stdin
4041                                     and stdout.
4042         * server-src/amindexd.c: Set new 'FILE *' instead of reusing stdin
4043                                  and stdout.
4044
4045 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
4046         Patch by Orion Poplawski <orion@cora.nwra.com>
4047         * server-src/planner.c: Add a skip_quoted_line() on error.
4048
4049 2006-09-23  Jean-Louis Martineau <martineau@zmanda.com>
4050         * server-src/amstatus.pl.in: Fix parsing of 'taper: wrote label' line.
4051         * server-src/amtoc.pl.in: Fix parsing of 'START taper' line.
4052
4053 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
4054         * common-src/conffile.h: New CONFTYPE_INTRANGE conftype_t.
4055         * common-src/conffile.c: New CNF_RESERVED_UDP_PORT,
4056                                  CNF_RESERVED_TCP_PORT,
4057                                  CNF_UNRESERVED_TCP_PORT config options.
4058         * common-src/dgram.c: Use the new CNF_RESERVED_UDP_PORT option.
4059         * common-src/stream.c: Use the new CNF_*RESERVED_PORT options.
4060         * man/xml-source/amanda-client.conf.5.xml: Document it.
4061         * man/xml-source/amanda.conf.5.xml: Document it.
4062
4063 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
4064         Patch by William Jojo
4065         * client-src/sendsize.c: Fix #endif for AIX.
4066
4067 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
4068         * common-src/packet.c: Fix use of arglist_start/arglist_end.
4069         * server-src/amindexd.c: Fix use of vsnprintf (for IRIX).
4070         * server-src/logfile.c: Fix use of arglist_start/arglist_end.
4071
4072 2006-09-21  Jean-Louis Martineau <martineau@zmanda.com>
4073         * server-src/amcheck.c: Don't assert if holding use is set to 0.
4074
4075 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
4076         * server-src/find.c (search_logfile): Count 'PARTIAL taper line'.
4077
4078 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
4079         Patch by Paul Bijens
4080         * server-src/amcheck.c: Print "tapelist" instead of "tapefile".
4081
4082 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
4083         * common-src/dgram.c (dgram_bind): Remove unused variables.
4084
4085 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
4086         * common-src/conffile.c, common-src/conffile.h: Add debug_amandad,
4087           debug_amidxtaped, debug_amindexd, debug_amrecover, debug_auth,
4088           debug_event, debug_holding, debug_protocol, debug_planner,
4089           debug_driver, debug_dumper, debug_chunker, debug_taper,
4090           debug_selfcheck, debug_sendsize, debug_sendbackup
4091           configurations options.
4092         * common-sc/debug.c: Use it's own clock function.
4093         * amandad-src/amandad.c, amandad-src/amandad_util.c,
4094           client-src/calcsize.c, client-src/client_util.c,
4095           client-src/killpgrp.c, client-src/rundump.c,
4096           client-src/runtar.c, client-src/selfcheck.c,
4097           client-src/sendbackup.c, client-src/sendsize.c,
4098           common-src/bsd-security.c, common-src/bsdtcp-security.c,
4099           common-src/bsdudp-security.c, common-src/debug.c,
4100           common-src/dgram.c, common-src/event.c,
4101           common-src/krb5-security.c, common-src/pipespawn.c,
4102           common-src/protocol.c, common-src/rsh-security.c,
4103           common-src/security.c, common-src/security-util.c,
4104           common-src/security-util.h, common-src/ssh-security.c,
4105           common-src/stream.c, common-src/util.c,
4106           recover-src/amrecover.c, restore-src/amidxtaped.c,
4107           server-src/amindexd.c, server-src/chunker.c,
4108           server-src/driver.c, server-src/dumper.c,
4109           server-src/planner.c,
4110           server-src/taper.c: Use the debug_* configuration options.
4111                               Use debug_prefix_time to print the time on
4112                               all debugging message.
4113
4114 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
4115         * amandad-src/amandad.c: Use CNF_REP_TRIES.
4116         * common-src/conffile.c: New CONNECT_TRIES, REQ_TRIES, REP_TRIES
4117                                  configuration options.
4118         * common-src/conffile.h: New CONNECT_TRIES, REQ_TRIES, REP_TRIES
4119                                  configuration options.
4120         * common-src/protocol.c: Use CNF_CONNECT_TRIES and CNF_REQ_TRIES.
4121         * common-src/protocol.c: Rename reqtries to resettries.
4122                                  Rename acktries to reqtries.
4123         * man/xml-source/amanda-client.conf.5.xml: Document new options.
4124         * man/xml-source/amanda.conf.5.xml: Document new options.
4125
4126 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
4127         * amandad-src/amandad.c: Read client configuratrion file.
4128         * client-src/client_util.c, client-src/selfcheck.c,
4129           client-src/sendbackup.c, client-src/sendbackup-dump.c,
4130           client-src/sendbackup-gnutar.c, client-src/sendsize.c,
4131           recover-src/amrecover.c, recover-src/extract_list.c,
4132           restore-src/amfetchdump.c, server-src/amadmin.c,
4133           server-src/amcheck.c, server-src/amflush.c,
4134           server-src/amflush.c, server-src/amlabel.c,
4135           server-src/amlogroll.c, server-src/amtrmidx.c,
4136           server-src/amtrmlog.c, server-src/chunker.c,
4137           server-src/diskfile.c, server-src/driver.c,
4138           server-src/dumper.c, server-src/getconf.c,
4139           server-src/planner.c, server-src/reporter.c,
4140           server-src/taper.c: Use generic macro/functions instead of
4141                               client/server functions.
4142         * client-src/client_util.h: Remove unuse macro.
4143         * client-src/Makefile.am: Remove clientconf.? files.
4144         * common-src/amanda.h: Define MAX_DUMPERS.
4145         * common-src/conffile.c: New file, merge of client-src/clientconf.c
4146                                                 and server-src/conffile.c
4147         * common-src/conffile.h: New file, merge of client-src/clientconf.c
4148                                                 and server-src/conffile.c
4149         * common-src/Makefile.am (libamanda_la_SOURCES): Add conffile.c
4150         * common-src/Makefile.am (noinst_HEADERS): Add conffile.h
4151         * common-src/util.c: Move many thing to common-src/conffile.c.
4152         * common-src/util.h: Move many thing to common-src/conffile.h.
4153         * server-src/driverio.h: Remove MAX_DUMPERS define.
4154         * server-src/Makefile.am: Remove conffile.[hc].
4155
4156 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
4157         * common-src/dgram.c (dgram_bind): Don't set SO_REUSEADDR on socket.
4158
4159 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
4160         * common-src/util.c (connect_port): Make EHOSTUNREACH and ENETUNREACH
4161                                             fatal error.
4162
4163 2006-09-18  Jean-Louis Martineau <martineau@zmanda.com>
4164         * common-src/util.c(dump_sockaddr): Convert from network to machine
4165                                             bytes order before printing.
4166         * common-src/dgram.c (dgram_recv): Print the fromaddr.
4167
4168 2006-09-15  Jean-Louis Martineau <martineau@zmanda.com>
4169         * amandad-src/amandad.c: Correct order of close/dup.
4170
4171 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
4172         * common-src/bsdtcp-security.c: Use AMANDA_SERVICE_NAME.
4173
4174 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
4175         * server-src/amstatus.pl.in: Check that $dumpers_active is defined.
4176
4177 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
4178         * common-src/util.c (conftoken_getc): Return an int.
4179
4180 2006-09-11  Jean-Louis Martineau <martineau@zmanda.com>
4181         * client-src/sendbackup-dump.c: Works if rundump is not used.
4182
4183 2006-09-05  Jean-Louis Martineau <martineau@zmanda.com>
4184         * Amanda 2.5.1 released.
4185         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1).
4186         * NEWS: Change in amanda-2.5.1
4187
4188 2006-08-30  Jean-Louis Martineau <martineau@zmanda.com>
4189         * server-src/dumper.c: Typo in error message.
4190
4191 2006-08-29  Jean-Louis Martineau <martineau@zmanda.com>
4192         * client-src/selfcheck.c: Print error message to stdout before
4193                                   calling error().
4194
4195 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
4196         * server-src/dumper.c (log_msgout): Seek to begining of file.
4197
4198 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
4199         * server-src/reporter.c: Report if a dump was successfully retried.
4200
4201 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
4202         * server-src/amstatus.pl.in: Correct size for retried dump.
4203
4204 2006-08-25  Jean-Louis Martineau <martineau@zmanda.com>
4205         * client-src/runtar.c: Check that strcmp(argv[3], "--create") == 0.
4206
4207 2006-08-24  Jean-Louis Martineau <martineau@zmanda.com>
4208         * common-src/statfs.c (scale): Macro replaced by a function.
4209
4210 2006-08-24  Jean-Louis Martineau <martineau@zmanda.com>
4211         * server-src/chunker.c: Use STREAM_BUFSIZE for stream_accept.
4212         * server-src/taper.c: Use STREAM_BUFSIZE for stream_accept.
4213
4214 2006-08-24  Maitreyee Karmarkar <maitreyee.zmanda.com>
4215         * man/xml-source/amcheck.8.xml: amcheck xml man page change 
4216
4217 2006-08-23  Kevin Till <ktill@zmanda.com>
4218         *  server-src/driver.c: fix typo
4219
4220 2006-08-23  Jean-Louis Martineau <martineau@zmanda.com>
4221         * server-src/driver.c (dumper_result): Decrement pendings_aborts.
4222         * server-src/driver.c (handle_dumper_result): Don't send duper result
4223           to chunker if we aborted it.
4224         * server-src/driverio.c (dumper_cmd, chunker_cmd): Don't close the fd
4225           on ABORT.
4226         * server-src/dumper.c: Accept ABORT command.
4227
4228 2006-08-23  Jean-Louis Martineau <martineau@zmanda.com>
4229         * restore-src/restore.c (restore): Set bytes_read to the return value
4230           of read_file_header.
4231
4232 2006-08-22  Jean-Louis Martineau <martineau@zmanda.com>
4233         * tape-src/output-tape.c: Works if EOVERFLOW is not defined.
4234
4235 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
4236         * amandad-src/amandad.c, common-src/rsh-security.c,
4237           common-src/ssh-security.c, restore-src/restore.c,
4238           server-src/changer.c, server-src/dumper.c: Fix sentinel warning.
4239
4240 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
4241         * example/amanda.conf.in: Typo.
4242
4243 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
4244         * server-src/driverio.c: Fix bogus "(unsigned long)-1".
4245
4246 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
4247         * server-src/driver.c (start_some_dumps): Remove bogus free_assignedhd.
4248
4249 2006-08-21  Maitreyee Karmarkar <maitreyee.zmanda.com>
4250         * server-src/amcheck.c: Check specific clients
4251         * man/amcheck.8: add the multiple client check format
4252
4253 2006-08-18  Ian Turner <ian@zmanda.com>
4254         * tape-src/amtapetype.c: Don't crash on exit
4255
4256 2006-08-17  Paddy Sreenivasan <paddy@zmanda.com>
4257         * server-src/driverio.c:
4258         * server-src/changer.c:
4259         * restore-src/amfetchdump.c:
4260         * recover-src/extract_list.c:
4261         * oldrecover-src/extract_list.c:
4262         * common-src/util.c:
4263         * common-src/stream.c:
4264         * common-src/file.c:
4265         * common-src/dgram.c: Fix warnings
4266
4267 2006-08-17  Kevin Till <ktill@zmanda.com>
4268         * common-src/stream.c: Loop 5 times (ntries > 5) on select error
4269
4270 2006-08-14  Paddy Sreenivasan <paddy@zmanda.com>
4271         * client-src/sendsize.c: Fix warning
4272         * server-src/reporter.c: Fix warnings
4273
4274 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
4275         * Amanda 2.5.1b2 released.
4276         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b2).
4277
4278 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
4279         * server-src/driver.c (find_diskspace): Make sure size > 0.
4280
4281 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
4282         * server-src/planner.c: Don't check new disk.
4283
4284 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
4285         * server-src/planner.c: Always log if full size estimate is larger
4286                                 than the available tape space.
4287
4288 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
4289         * server-src/planner.c: Always log if the latest full dump will be
4290                                 overwritten soon.
4291
4292 2006-07-27  Jean-Louis Martineau <martineau@zmanda.com>
4293         * common-src/clock.c (timesub): Don't make a negative time.
4294
4295 2006-07-27  Jean-Louis Martineau <martineau@zmanda.com>
4296         * man/xml-source/amanda.conf.5.xml: Tell which file are loaded.
4297         * man/xml-source/amanda-client.conf.5.xml: Ditto.
4298
4299 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
4300         * NEWS: for 2.5.1b2.
4301
4302 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
4303         * common-src/util.h (CONFTYPE_HOLDING): New conftype.
4304         * common-src/util.c (conf_init_holding, conf_set_holding,
4305                              get_conftype_hold): New fonction.
4306         * example/amanda.conf.in: Example of new holdingdisk value.
4307         * man/xml-source/amanda.8.xml: Example.
4308         * man/xml-source/amanda.conf.5.xml: Document it.
4309         * server-src/amadmin.c (disklist_one): Print holdingdisk value.
4310         * server-src/conffile.c: Parse new CONF_HOLDING type.
4311         * server-src/conffile.h (dumptype_get_to_holdingdisk): Change macro.
4312         * server-src/diskfile.c (parse_diskline): dumptype_get_to_holdingdisk.
4313         * server-src/driver.c: Use new CONFTYPE_HOLDING value.
4314
4315 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
4316         * client-src/selfcheck.c: Fix bug found by coverity.
4317         * common-src/debug.c: Fix bug found by coverity.
4318
4319 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4320         * server-src/amflush.c: Typo.
4321
4322 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4323         * server-src/amflush.c: Correct test for driver_stream.
4324
4325 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4326         * client-src/clientconf.c: Default CLN_AMANDATES to /etc/amandates.
4327         * common-src/util.c (conf_init_size): Type is CONFTYPE_SIZE.
4328         * server-src/conffile.c (getconf_taperalgo): New function.
4329         * server-src/conffile.h (getconf_taperalgo): Prototype.
4330         * server-src/driver.c: Use getconf_taperalgo.
4331
4332 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4333         * client-src/clientconf.c (client_getconf_boolean): New function.
4334         * client-src/clientconf.h (client_getconf_boolean): Prototype.
4335         * server-src/conffile.c (getconf_boolean): New function.
4336         * server-src/conffile.h (getconf_boolean): Prototype.
4337         * restore-src/amidxtaped.c: Use getconf_boolean.
4338         * server-src/amflush.c: Use getconf_boolean.
4339         * server-src/planner.c: Use getconf_boolean.
4340
4341 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4342         * server-src/getconf.c: Don't print BUGGY.
4343         * changer-src/chg-chio.pl.in: Don't parse BUGGY.
4344         * changer-src/chg-iomega.pl.in: Don't parse BUGGY.
4345         * changer-src/chg-zd-mtx.sh.in: Don't parse BUGGY.
4346         * man/xml-source/amgetconf.8.xml: Don't parse BUGGY.
4347         * server-src/amverifyrun.sh.in: Don't parse BUGGY.
4348         * server-src/amverify.sh.in: Don't parse BUGGY.
4349
4350 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4351         * restore-src/restore.c: Cleanup.
4352         * restore-src/amrestore.c: Don't fsf if the last read return 0.
4353
4354 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4355         * client-src/selfcheck.c: Fix bug found by klocwork.
4356         * common-src/rsh-security.c: Fix bug found by klocwork.
4357         * common-src/ssh-security.c: Fix bug found by klocwork.
4358         * server-src/planner.c: Fix bug found by klocwork.
4359
4360 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4361         * tape-src/output-tape.c (tape_tape_open): mt is declared inside #ifdef.
4362
4363 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4364         * server-src/amcheck.c: Fix quoting.
4365
4366 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4367         * client-src/clientconf.c: client_getconf* validate the type.
4368         * common-src/util.c (get_conftype_*): New function.
4369         * common-src/util.h (get_conftype_*): Prototype.
4370         * server-src/conffile.c: getconf* validate the type.
4371         * server-src/conffile.h: Use get_conftype_* function.
4372
4373 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4374         * client-src/clientconf.c: New AMANDATES client config option.
4375         * client-src/clientconf.h: New AMANDATES client config option.
4376         * client-src/amandates.c: Use AMANDATES.
4377         * client-src/amandates.h: Use AMANDATES.
4378         * client-src/selfcheck.c: Use AMANDATES.
4379         * client-src/sendbackup-gnutar.c: Use AMANDATES.
4380         * client-src/sendsize.c:: Use AMANDATES.
4381         * common-src/util.h : New CONF_AMANDATES.
4382         * man/xml-source/amanda-client.conf.5.xml: Document it.
4383
4384 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4385         * client-src/clientconf.c: New GNUTAR_LIST_DIR client config option.
4386         * client-src/clientconf.h: New GNUTAR_LIST_DIR client config option.
4387         * client-src/selfcheck.c: Use GNUTAR_LIST_DIR.
4388         * client-src/sendbackup-gnutar.c: Use GNUTAR_LIST_DIR.
4389         * client-src/sendsize.c: Use GNUTAR_LIST_DIR.
4390         * common-src/util.h: New CONF_GNUTAR_LIST_DIR.
4391         * man/xml-source/amanda-client.conf.5.xml: Document it.
4392
4393 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4394         * client-src/calcsize.c, client-src/killpgrp.c,
4395           client-src/rundump.c, client-src/runtar.c,
4396           client-src/selfcheck.c, client-src/sendbackup.c,
4397           client-src/sendsize.c, common-src/amanda.h,
4398           common-src/debug.c, oldrecover-src/amrecover.c,
4399           recover-src/amrecover.c, restore-src/amfetchdump.c,
4400           restore-src/amidxtaped.c, server-src/amadmin.c,
4401           server-src/amcheck.c, server-src/amcleanupdisk.c,
4402           server-src/amflush.c, server-src/amindexd.c,
4403           server-src/amlabel.c, server-src/amlogroll.c,
4404           server-src/amtape.c, server-src/amtrmidx.c,
4405           server-src/amtrmlog.c, server-src/chunker.c,
4406           server-src/driver.c, server-src/dumper.c,
4407           server-src/getconf.c, server-src/planner.c,
4408           server-src/reporter.c, server-src/taper.c: dbrename ot the config dir.
4409
4410 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4411         * common-src/amanda.h: Define DBG_SUBDIR_SERVER, DBG_SUBDIR_CLIENT
4412                                and DBG_SUBDIR_CLIENT.
4413         * amandad-src/amandad.c, changer-src/chg-scsi.c,
4414           changer-src/chg-scsi-chio.c, client-src/calcsize.c,
4415           client-src/killpgrp.c, client-src/rundump.c, client-src/runtar.c,
4416           client-src/selfcheck.c, client-src/sendbackup.c,
4417           client-src/sendsize.c,
4418           oldrecover-src/amrecover.c, recover-src/amrecover.c,
4419           restore-src/amfetchdump.c, restore-src/amidxtaped.c,
4420           restore-src/amrestore.c, server-src/amadmin.c,
4421           server-src/amcheck.c, server-src/amcleanupdisk.c,
4422           server-src/amflush.c, server-src/amindexd.c,
4423           server-src/amlabel.c, server-src/amlogroll.c,
4424           server-src/amtape.c, server-src/amtrmidx.c,
4425           server-src/amtrmlog.c, server-src/chunker.c,
4426           server-src/diskfile.c, server-src/driver.c,
4427           server-src/dumper.c, server-src/getconf.c,
4428           server-src/infofile.c, server-src/planner.c,
4429           server-src/reporter.c (dbopen): Use DBG_SUBDIR_SERVER,
4430                                          DBG_SUBDIR_CLIENT or DBG_SUBDIR_CLIENT.
4431
4432 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
4433         * client-src/calcsize.c: Get config on argument.
4434         * client-src/killpgrp.c: Get config on argument.
4435         * client-src/rundump.c: Get config on argument.
4436         * client-src/runtar.c: Get config on argument.
4437         * client-src/sendbackup.c: Call program with config as argument.
4438         * client-src/sendbackup-dump.c: Call program with config as argument.
4439         * client-src/sendbackup-gnutar.c: Call program with config as argument.
4440         * client-src/sendbackup.h: Add global g_options.
4441         * client-src/sendsize.c: Call program with config as argument.
4442
4443 2006-07-23  Jean-Louis Martineau <martineau@zmanda.com>
4444         * client-src/sendbackup-gnutar.c: Fix bug found by splint.
4445         * client-src/sendsize.c: Fix bug found by splint.
4446
4447 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
4448         * server-src/taper.c: Fix amfree(mem_splitbuf).
4449
4450 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
4451         * server-src/diskfile.c, server-src/taper.c: Fix memory leak found
4452                                                      by coverity.
4453
4454 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
4455         * server-src/taper.c: Fix split_buffer allocation problem.
4456
4457 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
4458         * client-src/selfcheck.c, common-src/security-util.c,
4459           restore-src/restore.c, server-src/diskfile.c: Fix memory leak found
4460                                                         by coverity.
4461
4462 2006-07-20  Jean-Louis Martineau <martineau@zmanda.com>
4463         * changer-src/chg-scsi.c, changer-src/scsi-changer-driver.c,
4464           client-src/amandates.c, client-src/calcsize.c,
4465           client-src/selfcheck.c, client-src/sendbackup.c,
4466           client-src/sendsize.c, common-src/security-util.c,
4467           recover-src/extract_list.c, restore-src/restore.c,
4468           server-src/amindexd.c, server-src/diskfile.c,
4469           server-src/driver.c, server-src/reporter.c,
4470           server-src/tapefile.c, server-src/taper.c: Fix memory leak found
4471                                                      by coverity.
4472
4473 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
4474         * client-src/selfcheck.c : Read client config file.
4475         * client-src/sendbackup.c: Read client config file.
4476         * client-src/sendsize.c  : Read client config file.
4477
4478 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
4479         * amandad-src/amandad.h (g_option_t): Add 'char *config';
4480         * amandad-src/amandad_util.c (parse_g_options): Parse 'config='.
4481         * common-src/amfeatures.h (fe_req_options_config): New amfeature.
4482         * common-src/amfeatures.c (am_init_feature_set):
4483                                                     set fe_req_options_config.
4484         * server-src/amcheck.c: Send 'config=' in global options.
4485         * server-src/dumper.c: Send 'config=' in global options.
4486         * server-src/planner.c: Send 'config=' in global options.
4487
4488 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
4489         * amandad-src/amandad.c: Call dbopen("amandad").
4490         * changer-src/chg-scsi.c: Call dbopen("server").
4491         * changer-src/chg-scsi-chio.c: Call dbopen("server").
4492         * client-src/calcsize.c: Call dbopen("client").
4493         * client-src/getfsent.c: Call dbopen(NULL).
4494         * client-src/killpgrp.c: Call dbopen("client").
4495         * client-src/rundump.c: Call dbopen("client").
4496         * client-src/runstar.c: Call dbopen("client").
4497         * client-src/runtar.c: Call dbopen("client").
4498         * client-src/selfcheck.c: Call dbopen("client").
4499         * client-src/sendbackup.c: Call dbopen("client").
4500         * client-src/sendsize.c: Call dbopen("client").
4501         * common-src/amanda.h (dbopen, debug_open): Take a 'char * subdir'
4502                                                     argument.
4503         * common-src/bsd-security.c: Call dbopen(NULL).
4504         * common-src/debug.c (debug_open): Call debug_setup_1(subdir)
4505         * common-src/debug.c (debug_setup_1): Take a subdir argument,
4506                                               add it to dbgdir.
4507         * common-src/file.c: Call dbopen(NULL).
4508         * common-src/statfs.c: Call dbopen(NULL).
4509         * common-src/token.c: Call dbopen(NULL).
4510         * oldrecover-src/amrecover.c: Call dbopen("client").
4511         * recover-src/amrecover.c: Call dbopen("client").
4512         * restore-src/amfetchdump.c: Call dbopen("server").
4513         * restore-src/amidxtaped.c: Call dbopen("server").
4514         * restore-src/amrestore.c: Call dbopen("server").
4515         * server-src/amadmin.c: Call dbopen("server").
4516         * server-src/amcheck.c: Call dbopen("server").
4517         * server-src/amcleanupdisk.c: Call dbopen("server").
4518         * server-src/amflush.c: Call dbopen("server").
4519         * server-src/amindexd.c: Call dbopen("server").
4520         * server-src/amlabel.c: Call dbopen("server").
4521         * server-src/amlogroll.c: Call dbopen("server").
4522         * server-src/amtape.c: Call dbopen("server").
4523         * server-src/amtrmidx.c: Call dbopen("server").
4524         * server-src/amtrmlog.c: Call dbopen("server").
4525         * server-src/chunker.c: Call dbopen("server").
4526         * server-src/diskfile.c: Call dbopen("server").
4527         * server-src/driver.c: Call dbopen("server").
4528         * server-src/dumper.c: Call dbopen("server").
4529         * server-src/getconf.c: Call dbopen("server").
4530         * server-src/infofile.c: Call dbopen("server").
4531         * server-src/planner.c: Call dbopen("server").
4532         * server-src/reporter.c: Call dbopen("server").
4533         * server-src/taper.c: Call dbopen("server").
4534
4535 2006-07-17  Jean-Louis Martineau <martineau@zmanda.com>
4536         * server-src/chunker.c: Fix rt computation.
4537         * server-src/dumper.c: Fix dumptime computation.
4538         * server-src/taper.c: Fix rt computation.
4539
4540 2006-07-17  Jean-Louis Martineau <martineau@zmanda.com>
4541         * NEWS: Klocwork defects fixed.
4542         * NEWS: Coverity defect fixed.
4543
4544 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
4545         * Makefile.am (pkgdata_DATA): add ReleaseNotes.
4546
4547 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
4548         * Amanda 2.5.1b1 released.
4549         * configure.in: Remove -Werror.
4550
4551 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
4552         * client-src/sendsize.c: Use read/write to copy tar snapshot file.
4553         * client-src/sendbackup-gnutar.c: Ditto.
4554
4555 2006-07-13  Jean-Louis Martineau <martineau@zmanda.com>
4556         * common-src/stream.c (stream_accept): Loop 5 times on select error.
4557
4558 2006-07-13  Jean-Louis Martineau <martineau@zmanda.com>
4559         * server-src/dumper.c: The datafd is not scheduled at start,
4560                                add test for it.
4561         * common-src/stream.c (tcpm_recv_token): Set error_msg.
4562         
4563 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
4564         * common-src/util.c (free_new_argv): Move out of
4565                                              #ifndef HAVE_LIBREADLINE.
4566
4567 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
4568         * server-src/amadmin.c (tape): Report the number of new tapes instead
4569                                        of "a new tape" for each tapes.
4570         * server-src/reporter.c (output_tapeinfo): Ditto.
4571
4572 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
4573         * server-src/taperscan.c (changer_taper_scan): Report error from
4574                                                        changer_find.
4575
4576 2006-07-11  John Franks jrfranks@zmanda.com
4577         * configure.in: Fix multiple definition of readline during cygwin
4578           compile.
4579
4580 2006-07-11  Paddy Sreenivasan <paddy@zmanda.com>
4581         * common-src/pipespawn.c : Fixed compiler warning
4582
4583 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
4584         * man/xml-source/amtapetype.8.xml: No default value for -e.
4585
4586 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
4587         * common-src/util.c: Don't conftoken_ungetc(ch) if ch == EOF.
4588         * server-src/reporter.c: Check tp == NULL.
4589
4590 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
4591         * tape-src/tapetype.c: Make -e an needed argument.
4592         * man/xml-source/amtapetype.8.xml: Update man page.
4593
4594 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
4595         * changer-src/chg-zd-mtx.sh.in: Remove .conf from changerfile.
4596
4597 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
4598         * recover-src/extract_list.c (check_file_overwrite): Renamed from
4599                                                           check_file_overwite.
4600         * recover-src/extract_list.c (check_file_overwrite): Do the path check
4601           in the correct order (from left ro right).
4602
4603 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
4604         * common-src/file.c (debug_agets): Remove call to dbprintf.
4605
4606 2006-07-10  Jean-Louis Martineau <martineau@zmanda.com>
4607         * recover-src/extract_list.c (add_to_unlink_list, do_unlink_list,
4608                       free_unlink_list): New function to manage unlink_list.
4609         * recover-src/extract_list.c (check_file_overwite): Check all
4610           component of an EXTRACT_LIST_ITEM, if a component is not a
4611           directory, add it to the unlink_list.
4612         * recover-src/extract_list.c (extract_files): Call do_unlink_list and
4613           free_unlink_list, rename buf to cwd.
4614
4615 2006-07-10  Jean-Louis Martineau <martineau@zmanda.com>
4616         * common-src/pipespawn.c (pipespawnv_passwd): Add prototype.
4617         * common-src/pipespawn.c (pipespawn, pipespawn): Remove 2 NULL
4618            parameters to the pipespawnv_passwd call.
4619         * common-src/pipespawn.c (pipespawnv_passwd): Remove passwdvar and
4620            passwdfd parameters, add passwdvar and local variable.
4621            Don't use memcpy to set passwdfd.
4622         * common-src/pipespawn.h (pipespawnv_passwd): Remove prototype.
4623
4624 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
4625         * common-src/security-util.c (stream_read_sync_callback): Remove bogus
4626           call of callback.
4627
4628 2006-07-07  Kevin Till  <ktill@zmanda.com>
4629         * common-src/bsd-security.c: use STREAM_BUFSIZE instead of -1
4630         * common-src/bsdtcp-security.c: ditto
4631         * common-src/krb4-security.c: ditto 
4632         * common-src/security-util.c: ditto
4633         * restore-src/amidxtaped.c: ditto
4634
4635 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
4636         * common-src/util.c (get_conftoken): Remove duplicate conftoken_ungetc.
4637
4638 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
4639         * common-src/security-util.c: Validate and report big packet size.
4640
4641 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
4642         * oldrecover-src/Makefile.am: Typo.
4643
4644 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
4645         * client-src/sendsize.c: Typo.
4646
4647 2006-07-06  John Franks <jrfranks@zmanda.com>
4648         * common-src/genversion.c:
4649                 Remove reference to error().  This causes a compile
4650                 error on cygwin.
4651
4652 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
4653         Klocwork bug 128, 170, 182, 470, 517
4654         * changer-src/chg-scsi.c: Validate drivenum, check count_file.
4655         * client-src/sendsize.c: Validate level.
4656         * oldrecover-src/amrecover.c: Use tm.
4657         * recover-src/amrecover.c: Use tm.
4658         * server-src/infofile.c (delete_txinfofile): Use local variable.
4659
4660 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
4661         * server-src/taper.c: Check for cur_filename.
4662         * tape-src/output-file.c: Use vstrextend.
4663         * tape-src/tapeio.c: Check for r.
4664
4665 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
4666         Fix splint warning
4667         * oldrecover-src/extract_list.c (clean_tape_list): Cleanup for splint.
4668         * recover-src/extract_list.c (clean_tape_list): Cleanup for splint.
4669         * server-src/amindexd.c: Add a /*@i@*/.
4670         * server-src/conffile.c: Cast to off_t for conf_init_am64.
4671         * server-src/driver.c: Cast to unsigned to print pid_t.
4672         * server-src/find.c (strip_failed_chunks): Cleanup for splint.
4673
4674 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
4675         Klocwork bug 114
4676         * server-src/amindexd.c: Free their_feature_string.
4677         Klocwork bug 130
4678         * restore-src/amrestore.c: Test maximum value for rst_flags->blocksize.
4679         Klocwork bug 294
4680         * common-src/genversion.c: Check NULL result of malloc.
4681         Klocwork bug 294
4682         * client-src/selfcheck.c: Check NULL result of fdopen.
4683         Klocwork bug 539, 542
4684         * oldrecover-src/extract_list.c: Fix pfn2->next = fn2.
4685         * recover-src/extract_list.c   : Ditto
4686         Klocwork bug 268, 272, 543, 544
4687         * oldrecover-src/extract_list.c: Check for cmd != NULL.
4688         * recover-src/extract_list.c   : Ditto
4689         Klocwork bug 510
4690         * restore-src/amidxtaped.c: Check for argv != NULL.
4691         Klocwork bug 435
4692         * changer-src/scsi-linux.c: Make buffer one larger.
4693         Klocwork bug 520
4694         * changer-src/scsi-changer-driver.c (OpenDevice): Validate parameters.
4695         Klocwork bug 182
4696         * changer-src/chg-scsi.c (clean_tape): Check usagetime != NULL.
4697
4698 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4699         Klocwork bug 551
4700         * regex-src/regcomp.c (allocset): Check for p->g->sets
4701                                                 and p->g->setbits
4702
4703 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4704         Klocwork bug 169, 170, 181
4705         * changer-src/chg-scsi.c: Validate input.
4706
4707 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4708         Klocwork bug 282
4709         * common-src/file.c (rmpdir): Check for p == NULL.
4710
4711 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4712         Klocwork bug 524
4713         * common-src/dgram.c (dgram_send_addr): Set addr_save earlier.
4714
4715 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4716         Klocwork bug 495
4717         * server-src/taper.c (file_reader_side): Maximum value for
4718                                                  fallback_splitsize.
4719
4720 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4721         Klocwork bug 532
4722         * recover-src/display_commands.c: Check for cmd != NULL.
4723         * oldrecover-src/display_commands.c: Ditto
4724
4725 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4726         Klocwork bug 410
4727         * restore-src/restore.c (restore): Check for tmp_filename.
4728
4729 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4730         Klocwork bug 234
4731         * server-src/driver.c: Check for h and activehd >= 0.
4732
4733 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4734         Klocwork bug 338 and 390
4735         * server-src/reporter.c (handle_partial, handle_strange): Check result
4736           of handle_success.
4737
4738 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4739         Klocwork bug 558
4740         * client-src/selfcheck.c (check_options, check_disk): Check for
4741                                                               calcprog == NULL
4742
4743 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4744         Klocwork bug 521
4745         * client-src/clientconf.c (add_client_conf): Check result of realloc.
4746
4747 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4748         Klocwork bug 447 and 449
4749         * restore-src/restore.c: Check for valid sendbackup request.
4750
4751 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4752         Klocwork bug 407
4753         * restore-src/restore.c (restore): Set statinfo.st_size.
4754
4755 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4756         Klocwork bug 189
4757         * common-src/file.c (sanitise_filename): Never return NULL.
4758
4759 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4760         * amandad-src/Makefile.am:    Remove tape-src and libamtape.
4761         * client-src/Makefile.am:     Remove tape-src and libamtape.
4762         * man/Makefile.am:            Cleanup.
4763         * oldrecover-src/Makefile.am: Remove tape-src and libamtape.
4764         * recover-src/Makefile.am:    Remove tape-src and libamtape.
4765         
4766 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4767         Klocwork bug 236
4768         * server-src/driver.c (handle_dumper_result): Check for
4769                                                       dumper->ev_read != NULL.
4770
4771 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4772         Klocwork bug 553
4773         * restore-src/restore.c (search_a_tape): Check for desired_tape == NULL.
4774
4775 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4776         Klocwork bug 556 and 557
4777         * common-src/security-util.c (bsd_recv_security_ok): Check result of
4778           strtok, check service == NULL.
4779
4780 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4781         Klocwork bug 161
4782         * client-src/calcsize.c (calc_load_file): Return NULL if fopen fail.
4783         * client-src/calcsize.c (main):  check NULL result from calc_load_file.
4784
4785 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4786         Klocwork bug 84
4787         * server-src/amflush.c (main): Check return of lookup_disk.
4788
4789 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4790         Klocwork bug 62, 85, 459, 463, 466, 469, 555, 559
4791         * common-src/security-util.c: Check result of fdopen.
4792         * client-src/sendsize.c     : Ditto.
4793         * server-src/amcheck.c      : Ditto.
4794         * server-src/amflush.c      : Ditto.
4795
4796 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4797         Klocwork bug 159, 375, 377, 379, 508, 509, 513, 519
4798         * common-src/bsd-security.c:    Replace malloc by alloc.
4799         * common-src/bsdudp-security.c: Ditto
4800         * common-src/genversion.c:      Ditto
4801         * recover-src/amrecover.c:      Ditto
4802         * restore-src/amidxtaped.c:     Ditto
4803         * server-src/reporter.c:        Ditto
4804
4805 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4806         Klocwork bug 562 and 475
4807         * recover-src/set_commands.c (cd_dir): Check result of rindex.
4808         * oldrecover-src/set_commands.c (cd_dir): ditto.
4809
4810 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4811         Klocwork bug 552
4812         * restore-src/restore.c (load_manual_tape): Alloc space for cur_tapedev.
4813
4814 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4815         Klocwork bug 406
4816         * restore-src/restore.c (restore): Check for final_filename.
4817
4818 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4819         Klocwork bug 318
4820         * server-src/list_dir.c (add_dir_list_item): Check for cur_list->next.
4821
4822 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4823         Klocwork bug 17, 32
4824         * server-src/amadmin.c (disklist_one): Check localtime return NULL.
4825         * server-src/amadmin.c (info_one)    : Ditto.
4826
4827 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4828         Klocwork bug 2, 83, 128, 384, 478, 504, 505, 506, 517, 566, 567
4829         * server-src/amadmin.c (seqdatestr): Check localtime return NULL.
4830         * common-src/util.c (construct_datestamp, construct_timestamp,
4831                              conf_print):         Ditto.
4832         * oldrecover-src/amrecover.c (main):      Ditto.
4833         * oldrecover-src/uscan.l (ll_parse_date): Ditto.
4834         * recover-src/amrecover.c (main):         Ditto.
4835         * recover-src/uscan.l (ll_parse_date):    Ditto.
4836         * server-src/amflush.c (main):            Ditto.
4837         * server-src/reporter.c (handle_success): Ditto.
4838
4839 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4840         Klocwork bug 470
4841         * client-src/sendsize.c (add_diskest): Check for level value.
4842
4843 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4844         Klocwork bug 372
4845         * server-src/reporter.c (nicedate): Check month value.
4846
4847 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4848         Klocwork bug 20
4849         * server-src/amadmin.c (tape): Limit nb_days to 10000.
4850
4851 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4852         Klocwork bug 21
4853         * server-src/amadmin.c (balance): Test 'later' after it is set.
4854
4855 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4856         * common-src/alloc.c (internal_vstralloc): Don't return NULL.
4857
4858 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
4859         * server-src/infofile.c (open_txinfofile): Use local variable.
4860
4861 2006-06-29  Jean-Louis Martineau <martineau@zmanda.com>
4862         * restore-src/restore.c (label_of_current_slot): Close the tapefd if
4863                                                          the label mismatch.
4864
4865 2006-06-29  Jean-Louis Martineau <martineau@zmanda.com>
4866         * server-src/find.c (strip_failed_chunks):
4867           - Get a **output_find as parameter.
4868           - Check the label before remove a valid chunk.
4869           - Memory management fix.
4870
4871 2006-06-28  Jean-Louis Martineau <martineau@zmanda.com>
4872         * common-src/security-util.c: Improve message for .amandahosts.
4873
4874 2006-06-27  Ian Turner <ian@zmanda.com>
4875         * common-src/fileheader.c: Fix a bug where spanned dumps would 
4876           always fail.
4877
4878 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
4879         * server-src/amcheck.c: Fix test for holdingdisk negative size.
4880
4881 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
4882         * configure.in: Don't set DEFAULT_TAPE_DEVICE if it is not set.
4883         * client-src/clientconf.c: Work DEFAULT_TAPE_DEVICE not set.
4884         * common-src/genversion.c: Work DEFAULT_TAPE_DEVICE not set.
4885         * recover-src/amrecover.c: Work DEFAULT_TAPE_DEVICE not set.
4886         * server-src/getconf.c:    Work DEFAULT_TAPE_DEVICE not set.
4887
4888 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
4889         Patch by Paul Bijnens
4890         * server-src/amcheck.c: Check for access(hdp->diskdir, X_OK).
4891
4892 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
4893         * server-src/conffile.c (getconf_byname): Check for kt->keyword != NULL.
4894         * client-src/clientconf.c (client_getconf_byname): Ditto
4895
4896 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4897         * recover-src/extract_list.c: check_file_overwite.
4898
4899 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4900         * recover-src/extract_list.c: Do the cleanup of the extract list
4901                                       at the extraction time
4902         * oldrecover-src/extract_list.c: Ditto.
4903
4904 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4905         * NEWS: Add new features.
4906         * ReleasesNotes: New files.
4907
4908 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4909         * docs/Makefile.am (pkgdata_DATA): Add amaespipe.8.txt amcrypt.8.txt
4910           amcrypt-asym-ossl.8.txt amcrypt-ossl.8.txt amfetchdump.8.txt
4911         * docs/amaespipe.8.txt: New file.
4912         * docs/amcrypt.8.txt: New file.
4913         * docs/amcrypt-asym-ossl.8.txt: New file.
4914         * docs/amcrypt-ossl.8.txt: New file.
4915         * docs/amfetchdump.8.txt: New file.
4916
4917 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4918         * docs/Makefile.am (pkgdata_DATA): Add howto-auth.txt.
4919         * docs/howto-auth: Documentation on auth.
4920         * docs/*.txt: Update from xml-docs
4921
4922 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4923         * man/xml-source/amanda.conf.5.xml: Add notes about bsdudp and bsdtcp.
4924         * man/xml-source/amanda-client.conf.5.xml: Ditto.
4925
4926 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4927         * recover-src/extract_list.c (is_empty_dir): New function.
4928         * recover-src/extract_list.c: Print a warning if cwd is not empty.
4929
4930 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4931         * server-src/amadmin.c: Allow 'p' and 'P' in --sort argument.
4932
4933 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4934         * server-src/amadmin.c: Print errstr returned by match_disklist.
4935         * server-src/amcheck.c: Print errstr returned by match_disklist.
4936         * server-src/amflush.c: Print errstr returned by match_disklist.
4937         * server-src/diskfile.c (match_disklist): Return an error str.
4938         * server-src/diskfile.h (match_disklist): New prototype.
4939         * server-src/planner.c: Print errstr returned by match_disklist.
4940         * server-src/reporter.c: Accept host/disk as arguments.
4941
4942 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4943         * server-src/amindexd.c (uncompress_file): Set LC_ALL=C before
4944                                                    executing sort.
4945
4946 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4947         * server-src/driver.c (wait_children, kill_children): New function.
4948         * server-src/driver.c (wait_for_children): Use wait_children and
4949                                                    kill_children.
4950         * server-src/driver.c (main): Use wait_children.
4951         * server-src/driverio.c (taper_cmd, chunker_cmd): Close socket on QUIT
4952                                                           or ABORT command.
4953
4954 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4955         * common-src/amfeatures.c (am_init_feature_set): Set
4956           fe_amrecover_feedme_tape.
4957         * common-src/amfeatures.h (fe_amrecover_feedme_tape): New amfeatures.
4958         * common-src/fileheader.c (print_header): Fix.
4959         * recover-src/extract_list.c: Use fe_amrecover_feedme_tape.
4960         * restore-src/amfetchdump.c: Print error if get_lock == 0.
4961         * restore-src/amidxtaped.c: Call send_message if get_lock == 0.
4962         * restore-src/restore.c: Split search_tapes in 5 functions.
4963         * restore-src/restore.h (send_message): prototype.
4964
4965 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4966         * man/xml-source/amfetchdump.8.xml: Document -O and new -o.
4967         * restore-src/amfetchdump.c: Replace -o by -O
4968
4969 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
4970         * client-src/clientconf.c (parse_client_conf): Fix segmentation fault.
4971         * server-src/conffile.c (parse_server_conf): Fix segmentation fault.
4972
4973 2006-06-21  Kevin Till <ktill@zmanda.com>
4974         * changer-src/chg-juke.sh.in
4975         * changer-src/chg-manual.sh.in
4976         * changer-src/chg-mcutil.sh.in
4977         * changer-src/chg-multi.sh.in
4978         * changer-src/chg-mtx.sh.in
4979         * changer-src/chg-rait.sh.in
4980         * changer-src/chg-disk.sh.in
4981         * changer-src/chg-zd-mtx.sh.in
4982         * changer-src/chg-null.sh.in
4983         * changer-src/chg-chs.sh.in
4984         * client-src/patch-system.sh.in
4985         * amplot/amplot.sh.in
4986         * server-src/amcrypt-ossl.sh.in
4987         * server-src/amrmtape.sh.in
4988         * server-src/amcleanup.sh.in
4989         * server-src/amverifyrun.sh.in
4990         * server-src/amaespipe.sh.in
4991         * server-src/amdump.sh.in
4992         * server-src/amcrypt.sh.in
4993         * server-src/amcrypt-ossl-asym.sh.in
4994         * server-src/amcheckdb.sh.in
4995         * server-src/amfreetapes.sh.in
4996         * server-src/amverify.sh.in
4997          change /bin/sh to @SHELL@ for configure to pick up the correct
4998          shell. Sourceforge bug 1466655
4999         * man/xml-source/amcrypt-ossl-asym.8.xml: it's backup-privkey.pem
5000
5001 2006-06-20  Kevin Till <ktill@zmanda.com>
5002         * common-src/security-util.c: ignore EINTR in net_writev
5003           patch by Jean-Louis Martineau.
5004
5005 2006-06-20  John Franks <jrfranks@zmanda.com>
5006         * server-src/conffile.c:
5007                 Remove Duplicate keyword table entries and alphabetize
5008                 to make future duplicates easier to spot...
5009
5010         * server-src/taper.c:
5011                 Fix compiler warnings when no mmap function is present.
5012
5013 2006-06-20  John Franks <jrfranks@zmanda.com>
5014         * server-src/diskfile.c:
5015                 Default boolean values without parameters to yes if
5016                 no value is present in configuration file.  This
5017                 maintains backward compatibility and is logical since
5018                 a value such as "index" reads as an assertion of fact.
5019
5020 2006-06-19  Jean-Louis Martineau <martineau@zmanda.com>
5021         * docs/wishlist.txt: Remove features done in 2.5.0/2.5.1
5022
5023 2006-06-19  Jean-Louis Martineau <martineau@zmanda.com>
5024         * man/xml-source/amanda.conf.5.xml: amrecover_check_label and
5025                                             amrecover_do_fsf default to yes.
5026         * server-src/conffile (init_dumptype_defaults): DUMPTYPE_INDEX set to 1.
5027         * server-src/diskfile.c (parse_diskline): index set from
5028                                                   dumptype_get_index.
5029
5030 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
5031         * server-src/amstatus.pl.in: Match quotes in DONE line.
5032
5033 2006-06-16  Kevin Till <ktill@zmanda.com>
5034         * example/amanda-client.conf.in:
5035          correct DEFAULT_TAPE_SERVER/DEFAULT_SERVER
5036         * server-src/amcrypt-ossl-asym.sh.in:
5037           set RANDFILE for openssl to place entropy file.
5038         * server-src/amcrypt-ossl.sh.in: ditto
5039
5040 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
5041         * amandad-src/amandad.c   : Use strcasecmp to compare auth.
5042         * client-src/selfcheck.c  : Ditto
5043         * client-src/sendbackup.c : Ditto
5044         * restore-src/amidxtaped.c: Ditto
5045         * server-src/amindexd.c   : Ditto
5046
5047 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
5048         * server-src/amindexd.c (reply, lreply, fast_lreply): Correct use
5049           of arglist_start and arglist_end..
5050         * server-src/amindexd.c (lreply_backend): Remove function.
5051
5052 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
5053         * common-src/bsd-security.c (stream_read_callback): Send error to the
5054                                                             callback.
5055
5056 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
5057         * recover-src/extract_list.c: Typo.
5058         * restore-src/restore.c: Typo.
5059
5060 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
5061         * client-src/clientconf.c: Allow include.
5062         * client-src/clientconf.c (read_confline): Don't crash.
5063         * server-src/conffile.c (read_confline): Don't crash.
5064         * recover-src/amrecover.c: Exit if error in conf file.
5065
5066 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
5067         * common-src/arglist.h: Typo.
5068         * recover-src/extract_list.c: handle MESSAGE from amidxtaped.
5069
5070 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
5071         * common-src/amfeatures.c (am_init_feature_set): Set
5072                                                          fe_amrecover_message.
5073         * common-src/amfeatures.h (am_feature_e): Add fe_amrecover_message.
5074         * common-src/arglist.h (printf_arglist_function3): Prototype.
5075
5076 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
5077         * restore-src/restore.c (send_message): New function that send message
5078                                                 to stderr and/or amrecover.
5079         * restore-src/restore.c: Call send_message on some error path.
5080
5081 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
5082         * common-src/event.c (event_loop_wait, event_wait): Take an
5083                                          event_handle_t * as parameter.
5084         * common-src/event.h: New prototype.
5085         * common-src/bsd-security.c: Call event_wait(bs->ev_read).
5086         * common-src/krb4-security.c: Call event_wait(ks->ev_read).
5087         * common-src/krb5-security.c: Call event_wait(ks->ev_read).
5088         * common-src/security-util.c: Call event_wait(ss->ev_read).
5089
5090 2006-06-15  Kevin Till <ktill@zmanda.com>
5091         * man/xml-source/amcrypt-ossl-asym.8.xml: it's .am_passphrase
5092         * server-src/amcrypt-ossl-asym.sh.in: export PATH
5093         * server-src/amcrypt-ossl.sh.in: export PATH
5094
5095
5096 2006-06-15  Jean-Louis Martineau <martineau@zmanda.com>
5097         * server-src/amcheck.c: -w doesn't change the test selection.
5098         * man/xml-source/amcheck.8.xml
5099
5100 2006-06-15  Jean-Louis Martineau <martineau@zmanda.com>
5101         * server-src/planner.c: Log empty disklist and no DLE selected.
5102
5103 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
5104         * common-src/bsd-security.c: Use %u to print in_port_t data.
5105         * common-src/bsdudp-security.c: Ditto.
5106
5107 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
5108         * changer-src/chg-disk.sh.in: Return the number of slot in output of
5109                                       the -info command.
5110         * changer-src/chg-zd-mtx.sh.in: Ditto.
5111
5112 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
5113         * changer-src/chg-zd-mtx.sh.in: Accept changerfile that already
5114                                         have the .conf suffix.
5115
5116 2006-06-13  Jean-Louis Martineau <martineau@zmanda.com>
5117         * amandad-src/amandad.c (s_ackwait): Resend the REP on receive of a
5118                                              duplicate REQ.
5119
5120 2006-06-13  Jean-Louis Martineau <martineau@zmanda.com>
5121         * common-src/security-util.c (bsd_recv_security_ok): Set error only
5122           if we get an error.
5123
5124 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
5125         * server-src/driver.c: usetimestamps is a warning.
5126
5127 2006-06-12  Kevin Till <ktill@zmanda.com>
5128         * common-src/security-util.c: if host is 127.0.0.1 and either
5129           localhost or localhost.domain is in .amandahost, hostmatch passes.
5130         * common-src/security-util.h: update check_user_amandahosts prototype
5131
5132 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
5133         * amandad-src/amandad.c (process_writenetfd): Close the pipe if the
5134                                                       security_stream is closed.
5135         * recover-src/extract_list.c: Improve message if we don't get thei
5136                                       FEATURE line from amidxtaped.
5137
5138 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
5139         * recover-src/amrecover.c: Read amanda-client.conf and
5140                                    <conf>/amanda-client.conf.
5141
5142 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
5143         * common-src/security-util.c, common-src/tapelist.c,
5144           restore-src/restore.c, server-src/amcheck.c, server-src/amindexd.c,
5145           server-src/amtape.c, server-src/changer.c, server-src/driver.c,
5146           server-src/planner.c, server-src/taper.c,
5147           server-src/taperscan.c: Fix memory leak.
5148
5149 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
5150         * restore-src/restore.c: Fix Adding at end of list.
5151
5152 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
5153         * server-src/taper.c (syncpipe_putstr): Don't crash if str is NULL.
5154
5155 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
5156         * server-src/holding.c (pick_datestamp): Fix reading user input.
5157
5158 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
5159         * recover-src/amrecover.c (sigint_handler): Call send_command only if
5160                                                     amindexd is alive.
5161
5162 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
5163         * common-src/util.c (connect_port): ETIMEDOUT is a fatal error.
5164
5165 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
5166         * common-src/stream.c (stream_client_internal): Get errno set
5167                                                         correctly.
5168         * server-src/driver.c (handle_chunker_result): Don't assert(0) on
5169                               receive of a TRYAGAIN from a chunker, but set
5170                               chunker->result.
5171         * server-src/dumper.c: Try gethostbyname("localhost") before calling
5172                                stream_client and log appropriate message.
5173
5174 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
5175         * server-src/amcheck.c: Report ERROR if gethostbyname("localhost")
5176                                 doesn't succeed.
5177
5178 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
5179         * client-src/clientconf.c (add_client_conf): New function to map
5180                                                      normal option to their
5181                                                      -o equivalent.
5182         * client-src/clientconf.h (add_client_conf): Prototype.
5183         * man/xml-source/amrecover.8.xml: Document -o.
5184         * recover-src/amrecover.c: Also read <config>/amanda-client.conf
5185
5186 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
5187         * server-src/diskfile.c (parse_diskline): Only return 0 or -1.
5188
5189 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
5190         * amandad-src/amandad.h (g_option_t): Add auth.
5191         * amandad-src/amandad_util.c (init_g_options): Set auth to NULL.
5192         * amandad-src/amandad_util.c (parse_g_options): Parse auth.
5193         * amandad-src/amandad_util.c (free_g_options): Free auth.
5194         * client-src/sendbackup.c: Get amandad_auth from command line and
5195                                    compare with REQ packet.
5196         * common-src/amfeatures.h (fe_amindexd_options_hostname,
5197                                    fe_amindexd_options_features,
5198                                    fe_amindexd_options_auth,
5199                                    fe_amidxtaped_options_hostname,
5200                                    fe_amidxtaped_options_features,
5201                                    fe_amidxtaped_options_auth): New amfeatures.
5202         * common-src/amfeatures.c (am_init_feature_set): Set new amfeatures.
5203         * recover-src/amrecover.c: Send auth in OPTIONS of req packet.
5204         * recover-src/extract_list.c: Send auth in OPTIONS of req packet.
5205         * restore-src/amidxtaped.c: Parse amandad_auth from command line.
5206                                     Get auth from OPTIONS line.
5207                                     Compare them.
5208         * server-src/amindexd.c: Parse amandad_auth from command line.
5209                                  Get auth from OPTIONS line.
5210                                  Compare them.
5211
5212 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
5213         * common-src/util.c(connect_port): Return -2 on ECONNREFUSED error
5214                                            from connect.
5215
5216 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
5217         * amandad-src/amandad.c: exec the service with the auth as parameter.
5218         * amandad-src/amandad.c(writebuf): Do no close fd.
5219         * client-src/selfcheck.c: Read the auth for the command line and
5220                                   compare with the option string.
5221         * client-src/selfcheck.c(main): Do no close 0,1,2 fd.
5222
5223 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
5224         * man/xml-source/amanda.8.xml(CONFIGURATION OVERWRITE): New section.
5225         * man/xml-source/amadmin.8.xml,   man/xml-source/amcheck.8.xml,
5226           man/xml-source/amdump.8.xml,    man/xml-source/amflush.8.xml,
5227           man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml,
5228           man/xml-source/amreport.8.xml,
5229           man/xml-source/amrestore.8.xml: Add -o option.
5230
5231 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
5232         * common-src/util.c(get_conftoken): Merge from zmanda.
5233
5234 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
5235         * common-src/util.c(get_conftoken): Remove a conftoken_ungetc.
5236
5237 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
5238         * common-src/bsd-security.c (stream_read_callback): Merge with zmanda.
5239
5240 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
5241         * amandad-src/amandad.c(process_writenetfd): Call security_stream_read
5242                                                      only if size > 0.
5243
5244 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
5245         * server-src/conffile.c (lookup_interface): Fix merge error.
5246
5247 2006-06-07  John Franks <jrfranks@zmanda.com>
5248         * common-src/amanda.h:
5249                 Fix isnormal() replacement macro to indirectly
5250                 check if a floating point value is != 0.0.
5251                 This prevents compiler warnings.
5252
5253 2006-06-07  John Franks <jrfranks@zmanda.com>
5254         * common-src/util.c
5255                 Put in "/* NOTREACHED */" comments after error() calls.
5256         * server-src/diskfile.c
5257                 Change disktype index default to yes for backward compatibility.
5258
5259 2006-06-06  John Franks <jrfranks@zmanda.com>
5260         * amandad-src/amandad.c common-src/bsd-security.c:
5261                 Correct fix for infinite amandad loop.
5262
5263 2006-06-06  John Franks <jrfranks@zmanda.com>
5264         * common-src/stream.c common-src/util.c:
5265                 Lint clean again.
5266         * server-src/conffile.c:
5267                 Remove replicated line
5268
5269 2006-06-06  Jean-Louis Martineau <martineau@zmanda.com>
5270         * common-src/util.c (conftoken_ungetc): Return the character.
5271         * common-src/util.c (get_conftoken): Merge to allow escape character.
5272         * common-src/util.c (read_block): Allow STRING as IDENT.
5273         * server-src/conffile.c (getconf_long, getconf_size): New function.
5274         * server-src/conffile.c: Cleanup after Merge.
5275
5276 2006-06-06  Jean-Louis Martineau <martineau@zmanda.com>
5277         * server-src/amadmin.c, server-src/amcheck.c, server-src/amflush.c,
5278           server-src/amlabel.c, server-src/amlogroll.c, server-src/amtrmidx.c,
5279           server-src/amtrmlog.c, server-src/getconf.c,
5280           server-src/reporter.c: Usage -o
5281         * server-src/amflush.c, server-src/amlogroll.c, server-src/amtrmidx.c,
5282           server-src/amtrmlog.c, server-src/chunker.c, server-src/driver.c,
5283           server-src/dumper.c, server-src/getconf.c, server-src/planner.c,
5284           server-src/reporter.c,
5285           server-src/taper.c: Add call to report_bad_conf_arg.
5286         * server-src/conffile.c(get_comprate, get_compress): Parse CONF_END.
5287
5288 2006-06-06  John Franks <jrfranks@zmanda.com>
5289         * configure.in:
5290                 Increase checking level from 1 to 2 for SUN lint.
5291         * client-src/amandates.c client-src/clientconf.c
5292           common-src/security-util.c recover-src/amrecover.c
5293           recover-src/extract_list.c regex-src/regcomp.c server-src/amcheck.c
5294           server-src/amlabel.c server-src/chunker.c server-src/conffile.c
5295           server-src/conffile.h server-src/diskfile.c server-src/diskfile.h
5296           server-src/driver.c server-src/holding.c server-src/reporter.c
5297           server-src/tapefile.c server-src/taper.c tape-src/amdd.c:
5298                 Lint clean again.
5299         * common-src/util.h common-src/util.c:
5300                 Lint clean again.
5301                 Add missing conftype size.
5302         * common-src/bsd-security.c
5303                 Fix infinte loop which consumes all /tmp space and 1/2
5304                 the CPU time when EOF is reached on socket.
5305
5306 2006-06-05  Paddy Sreenivasan <paddy@zmanda.com>
5307         * common-src/util.c: Fix warning
5308
5309 2006-06-05  Jean-Louis Martineau <martineau@zmanda.com>
5310         * restore-src/amfetchdump.c, server-src/amcheck.c,
5311           server-src/amcheckdb.sh.in, server-src/amcleanup.sh.in,
5312           server-src/amdump.sh.in, server-src/amflush.c,
5313           server-src/amlabel.c, server-src/amlogroll.c,
5314           server-src/amtrmidx.c, server-src/amtrmlog.c,
5315           server-src/chunker.c, server-src/conffile.c,
5316           server-src/diskfile.c, server-src/driver.c,
5317           server-src/driverio.c, server-src/dumper.c,
5318           server-src/getconf.c, server-src/planner.c,
5319           server-src/reporter.c, server-src/taper.c,
5320           server-src/taperscan.c: Allow -o options and some memory fix.
5321         * server-src/conffile.c(lookup_dumptype, lookup_tapetype,
5322           lookup_interface): Use strcasecmp.
5323
5324 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
5325         * common-src/stream.c (stream_client_internal): Use connect_portrange.
5326         * common-src/util.c (connect_portrange): First, try to connect with a
5327                                                  port already used.
5328         * common-src/util.c (connect_port): Try to connect with a specific port.
5329         * common-src/util.h: Cleanup.
5330
5331 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
5332         * server-src/reporter.c: Remove empty if.
5333
5334 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
5335         * common-src/util.c (read_block): Don't read CONF_NL aftre the '{'.
5336         * server-src/conffile.c(get_holdingdisk, get_tapetype, get_interface):
5337           Read a CONF_NL after the call to read_block.
5338         * server-src/conffile.c(read_dumptype): Read a CONF_NL if we are not
5339                                                 called from diskfile.
5340         * server-src/diskfile.c: Don't loop on empty line after read_dumptype.
5341
5342 2006-06-01  Kevin Till  <ktill@zmanda.com>
5343         * server-src/amcrypt-ossl.sh.in: symmetric encrypt script using openSSL.
5344           Thanks to Ben Slusky.
5345         * server-src/amcrypt-ossl-asym.sh.in: public-ley encrypt script using openSSL.
5346         * man/xml-source/amcrypt-ossl.8.xml: man page
5347         * man/xml-source/amcrypt-ossl-asym.8.xml: man page
5348         * configure.in: ditto
5349         * man/Makefile.am: ditto
5350         * man/entities/global.entities: ditto
5351         * server-src/Makefile.am: ditto
5352
5353 2006-06-01  John Franks <jfranks@zmanda.com>
5354         Eliminate Cygwin compile warnings.
5355         * client-src/getfsent.c:  Quiet unused parameter warnings.
5356         * client-src/selfcheck.c: Quiet unused parameter warnings.
5357         * common-src/security-util.h: Make hostname const char *.
5358
5359 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
5360         * server-src/amcheck.c: holdingdisk_get_disksize() return an off_t.
5361         * server-src/find.c: result should be ssize_t.
5362
5363 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
5364         * common-src/amanda.h: Remove am64_t.
5365         * client-src/clientconf.c, client-src/clientconf.h, common-src/util.c,
5366           common-src/util.h, server-src/conffile.c, server-src/conffile.h:
5367           Second pass of config cleanup, add function to parse -o argument.
5368         * recover-src/amrecover.c: -o command argument.
5369         * restore-src/restore.c: Use off_t instead of am64_t.
5370         * server-src/amadmin.c: New config subcommand. -o command argument.
5371         * server-src/amlabel.c: Fix memory leak.
5372         * server-src/diskfile.c: Fix memory leak.
5373         * server-src/diskfile.h: Rename no_hold to to_holdingdisk.
5374         * server-src/driver.c: Many.
5375         * server-src/planner.c: am64_t to off_t.
5376
5377 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
5378         This is the first pass of a general rewrite of configuration file
5379         parsing, It will now use array to store all options.
5380
5381         * client-src/clientconf.c:
5382         * client-src/clientconf.h:
5383         * server-src/conffile.c:
5384         * server-src/conffile.h:
5385         * common-src/util.c: Many new functions.
5386         * common-src/util.h:
5387
5388         * restore-src/amidxtaped.c, server-src/amcheck.c,
5389           server-src/amcleanupdisk.c, server-src/amlabel.c,
5390           server-src/diskfile.c, server-src/driver.c, server-src/driverio.c,
5391           server-src/find.c, server-src/holding.c, server-src/planner.c,
5392           server-src/reporter.c,
5393           server-src/taper.c: Use new macro to get configuration option.
5394
5395 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
5396         * amandad-src/amandad.c, client-src/amandates.c, client-src/noop.c,
5397           client-src/selfcheck.c, client-src/sendsize.c,
5398           common-src/bsd-security.c, common-src/bsdtcp-security.c,
5399           common-src/bsdudp-security.c, common-src/fileheader.c,
5400           common-src/rsh-security.c, common-src/security-util.c,
5401           common-src/security-util.h, common-src/ssh-security.c,
5402           recover-src/extract_list.c, server-src/amcheck.c,
5403           server-src/amindexd.c, server-src/amlogroll.c,
5404           server-src/diskfile.c, server-src/driver.c, server-src/dumper.c,
5405           server-src/find.c, server-src/logfile.c, server-src/planner.c,
5406           server-src/reporter.c,
5407           server-src/tapefile.c: Fix memory and fd leak.
5408
5409 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
5410         * server-src/find.c (search_holding_disk): Take the datestamp from the
5411           file, not the directory name, otherwise usetimestamps=no doesn't
5412           work.
5413
5414 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
5415         * common-src/stream.c (stream_server): New priv parameter if we want
5416                                                a reserved port. Don't try to
5417                                                get a reserved port if priv==0.
5418         * common-src/stream.h (stream_server): New prototype.
5419         * common-src/bsd-security.c: Call stream_server with priv==0.
5420         * common-src/krb4-security.c: Call stream_server with priv==1.
5421         * common-src/security-util.c: Call stream_server with priv==0.
5422         * restore-src/amidxtaped.c: Call stream_server with priv==0.
5423         * server-src/chunker.c: Call stream_server with priv==0.
5424         * server-src/taper.c: Call stream_server with priv==0.
5425
5426 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
5427         * server-src/diskfile.c: Return -1 if open of diskfile failed.
5428         * server-src/driver.c: Change message if didn't get a DATE line.
5429         * server-src/reporter.c: Ignore faillure in reading amanda.conf
5430                                  disklist and tapelist.
5431
5432 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
5433         * man/xml-source/amanda.8.xml: Documents service in .amandahosts.
5434
5435 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
5436         Previous patch doesn't work because 'make -j2' will use fd 3.
5437         * amandad-src/Makefile.am: Use a temporary file for output of
5438                                    'make listlibsrc'.
5439         * changer-src/Makefile.am: Ditto.
5440         * client-src/Makefile.am: Ditto.
5441         * common-src/Makefile.am: Ditto.
5442         * oldrecover-src/Makefile.am: Ditto.
5443         * recover-src/Makefile.am: Ditto.
5444         * restore-src/Makefile.am: Ditto.
5445         * server-src/Makefile.am: Ditto.
5446         * tape-src/Makefile.am: Ditto.
5447
5448 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
5449         * amandad-src/Makefile.am: 'make listlibsrc' send it's ouput to fd 3.
5450         * changer-src/Makefile.am: Ditto.
5451         * client-src/Makefile.am: Ditto.
5452         * common-src/Makefile.am: Ditto.
5453         * oldrecover-src/Makefile.am: Ditto.
5454         * recover-src/Makefile.am: Ditto.
5455         * restore-src/Makefile.am: Ditto.
5456         * server-src/Makefile.am: Ditto.
5457         * tape-src/Makefile.am: Ditto.
5458
5459 2006-05-28  Paddy Sreenivasan <paddy@zmanda.com>
5460         * tape-src/tapeio.c : Fixed warnings
5461         * tape-src/output-rait.c : Fixed warnings
5462         * tape-src/output-null.c : Fixed warnings
5463         * tape-src/output-file.c : Fiexed warnings
5464         * recover-src/amrecover.c: Fixed warnings
5465         * recover-src/extract_list.c : Fixed warnings
5466         * server-src/amadmin.c : Fixed warnings
5467         * server-src/driver.c : Fixed warnings
5468         * server-src/infofile.c : Fixed warnings
5469
5470 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
5471         * server-src/conffile.c (read_dumptype): Parse SSH_KEYS.
5472
5473 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
5474         * common-src/security-util.c (udp_inithandle): Remove bad merge.
5475         * server-src/amindexd.c: Improve error message.
5476         * server-src/planner.c: Add a space in output.
5477
5478 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
5479         * server-src/conffile.c: Set dpcur.no_hold correctly,
5480                                  Fix for conffile program.
5481
5482 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
5483         Allow many services to share the same tcp connection for
5484         bsdtcp/ssh/rsh.
5485         Add a security_close_connection to the security-api.
5486         * amandad-src/amandad.c (wait_30s, exit_on_qlength): New variable to
5487                                         control auth specific behaviour.
5488         * common-src/bsd-security.c: Add sec_close_connection_none.
5489         * common-src/bsdudp-security.c: Add sec_close_connection_none.
5490         * common-src/krb4-security.c: Add sec_close_connection_none.
5491         * common-src/krb5-security.c: Add sec_close_connection_none.
5492         * common-src/security.h (security_close_connection): Prototype.
5493         * common-src/security-util.h (sec_close_connection_none,
5494                                       tcpm_close_connection): Prototype.
5495         * common-src/security-util.h (struct tcp_conn): Add toclose.
5496         * common-src/security-util.h (struct sec_stream): Add closed_by_me and
5497                                                           closed_by_network.
5498         * common-src/security-util.c (sec_close_connection_none,
5499                                       tcpm_close_connection): New function.
5500         * common-src/security-util.c: Handle many services on one connection.
5501         * common-src/bsdtcp-security.c: Handle many services on one connection.
5502         * common-src/rsh-security.c: Handle many services on one connection.
5503         * common-src/ssh-security.c: Handle many services on one connection.
5504         * recover-src/amrecover.c: Add call security_close_connection.
5505         * recover-src/extract_list.c: Add call security_close_connection.
5506         * server-src/amcheck.c: Add call security_close_connection.
5507         * server-src/dumper.c: Add call security_close_connection.
5508
5509 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
5510         * common-src/security-util.c (bsd_prefix_packet): We need the username
5511           of the getuid() user.
5512
5513 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
5514         * common-src/fileheader.c: Parse datestamp on F_TAPEEND.
5515         * restore-src/amrestore.c: Set read_result to the result of
5516                                    read_file_header.
5517         * restore-src/restore.c (read_file_header): Return a ssize_t.
5518                         Rename bytes_read by read_result.
5519                         Set read_result to the result of read_file_header.
5520         * restore-src/restore.h (read_file_header): New prototype.
5521
5522 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
5523         * server-src/taperscan.c: Replace bogus newvstralloc by vstrextend.
5524
5525 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
5526         * client-src/getfsent.c (print_entry): Add prototype.
5527         * common-src/token.c (main): Shut up compiler warning.
5528         * server-src/infofile.c (dump_rec, dump_db): Add prototype.
5529
5530 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
5531         * amandad-src/amandad.c, common-src/bsd-security.c,
5532           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
5533           common-src/event.c, common-src/krb5-security.c,
5534           common-src/protocol.c, common-src/rsh-security.c,
5535           common-src/security-util.c, common-src/ssh-security.c,
5536           common-src/util.c, server-src/driver.c: comment debugging.
5537
5538 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
5539         * common-src/security-util.c: typo.
5540         * server-src/amcheck.c: Make sure all check are done.
5541
5542 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
5543         Fix for program not compiled by default.
5544         make bsdsecurity still not compile.
5545         * common-src/bsd-security.c(bind_portrange): prototype change.
5546         * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add match.o.
5547         * server-src/conffile.c: Many typo.
5548         * tape-src/tapeio.c: Use OFF_T_FMT and SSIZE_T_FMT when needed, typo.
5549         
5550 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
5551         * common-src/fileheader.c (validate_datestamp): Works for 8 characters
5552                                                         datestamp.
5553         * common-src/security-util.c (tcpm_send_token): netlength must be
5554                                                         uint32_t.
5555         * common-src/security-util.c (bsd_prefix_packet): Fix typo.
5556         * common-src/util.c (get_time): Don't do computation for starttime.
5557         * server-src/conffile.c (read_dumptype): Do computation for starttime.
5558
5559 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
5560         * common-src/krb5-security.c (krb5_sendpkt, krb5_stream_read_sync,
5561                                       recv_token): Return ssize_t.
5562         * common-src/krb5-security.c (krb5_accept, krb5_stream_accept,i
5563                                       krb5_stream_auth): Shut up compiler.
5564         * tape-src/output-file.c: Use SSIZE_MAX instead of SSIZE_T_MAX.
5565
5566 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
5567         * configure.in(AM_INIT_AUTOMAKE): Fix.
5568
5569 2006-05-25  John Franks <jrfranks@zmanda.com>
5570         Pass user CFLAGS correctly to machine generated code and do not
5571         enforce code quality checks on them.
5572         * configure.in:
5573           Put compiler code check flags into existing, but previously
5574           unused, AM_CFLAGS for Makefiles to pick up.  CFLAGS should
5575           now only contain mandatory flags.
5576
5577         * recover-src/Makefile.am  oldrecover-src/Makefile.am:
5578           Use CFLAGS for compiling C code generated from uparse.y and uscan.l
5579
5580 2006-05-24  John Franks <jrfranks@zmanda.com>
5581         Add support for binary path names on disk and in configuration files.
5582            (Allow spaces in filenames.)
5583
5584         Allow quoted strings for disklist entries.
5585
5586         Lint clean code using sun lint, splint and strict GCC warnings. 
5587         Type / size clean, dead code removal, portibility checks, etc.
5588         Many checks are still turned off.  See configure.in for lint flags used.
5589
5590         Increase debug output in /tmp/amanda/*debug files.
5591
5592         Set SO_REUSEADDR on sockets help avoid running out of ports.
5593
5594         * configure.in:
5595                 Added lint program discovery with specific targets for SUN lint and splint.
5596                 Check each compiler option to see if GCC supports it.
5597                 Enable more code quality warnings.
5598                 Change missing xsltproc to warning rather than error.
5599                 Define _GNU_SOURCES to build flags.
5600                 Make size_t and time_t printf format macros.
5601                 Check for isnormal() availability.
5602                 Don't install man pages if they are not built.
5603                 Fix man pages to not attempt build or install if
5604                         --without-built-manpages is set.
5605
5606         * Makefile.am amandad-src/Makefile.am changer-src/Makefile.am
5607           client-src/Makefile.am common-src/Makefile.am
5608           oldrecover-src/Makefile.am recover-src/Makefile.am
5609           restore-src/Makefile.am server-src/Makefile.am tape-src/Makefile.am:
5610                 Add lint target.
5611
5612         * common-src/amanda.h common-src/dgram.c common-src/stream.c
5613           common-src/util.c:
5614                 Keep checking for ports on all bind errors.
5615                 Delay and retry a few times if all ports are busy.
5616                 Retry bind failures after all methods fail.
5617                 increase bind checking timeout to 30 minutes.
5618
5619         * client-src/amandad.c
5620                 Issue wait when any child exits.  (Get rid of defunct processes)
5621                 Stat() index file before using system command.
5622                   (shell is not reporting failure if index is not present)
5623
5624         * recover-src/extract_list.c:
5625           Fix problem of 'add *' not adding directories.
5626           Fix problem of freeing pointer not obtained through malloc.
5627           Touch up file addition to actually use the file names
5628              retrieved when adding a directory and not the directory itself.
5629
5630         * server-src/taper.c
5631                 Strenghten error recovery for broken syncpipes and writer errors.
5632
5633         * changer-src/chg-scsi-chio.c client-src/amandates.c
5634           client-src/client_util.c client-src/findpass.c client-src/getfsent.c
5635           client-src/selfcheck.c client-src/sendbackup-gnutar.c
5636           client-src/sendbackup-star.c client-src/sendbackup.c
5637           client-src/sendsize.c common-src/bsd-security.c common-src/file.c
5638           common-src/krb5-security.c server-src/amcheck.c server-src/amindexd.c
5639           server-src/diskfile.c server-src/driver.c server-src/dumper.c
5640           server-src/holding.c server-src/infofile.c server-src/logfile.c
5641           server-src/tapefile.c:
5642                 allow empty lines in input streams.
5643
5644         * recover-src/uparse.y
5645                 print message when input is garbage.
5646
5647         * server-src/getconf.c:
5648                 Define HOSTNAME_INSTANCE if it was not already defined
5649                 for Kerberos.
5650
5651         * configure.in: Make readline warning less specific.  Readline is
5652           used by all input from terminal now.
5653
5654 2006-05-24  Kevin Till <ktill@@zmanda.com>
5655         * client-src/sendbackup.c: ignore SIGINT
5656         * common-src/ssh-security.c: add to total only when n > 0
5657         * common-src/ssh-security.c: add ssh to error,
5658           retry writev when EINTR, EAGAIN is seen
5659           to STDOUT. exit when options is chosen in template mode.
5660         * server-src/driver.c: make sure timestamp is not null
5661         * amanda/configure.in: remove template.d/amanda.conf which is a dup 
5662           of amanda-harddisk.conf
5663         * example/Makefile.am: add template.d/README
5664         * amanda-harddisk.conf.in: set tapedev
5665         * recover-src/amrecover.c: aclose socket before exit.
5666         * recover-src/extract_list.c: ditto
5667         * amanda_enterprise.spec: remove template.d/amanda.conf, add template.d/README
5668           in the failure cases. <> user input field.
5669         * server-src/amcheck.c: no quoted text is a warning
5670         * server-src/driver.c: no need to amfree qname
5671           argument. Search mtx in PATH too.
5672         * example/template.d/advanced.conf.in: fix comment for autoflush
5673         * example/template.d/advanced.conf.in: add usetimestamps
5674         * server-src/diskfile.c: to catch unsupported compress-encryption
5675           combination and abort amdump gracefully.
5676         * man/xml-source/amanda.conf.5.xml: fix syntax, add 
5677           dumptype references.  
5678         * man/xml-source/amanda.8.xml: fix syntax
5679         * configure.in:                 ditto
5680         * man/Makefile.am:              ditto
5681         * example/amanda.conf.in:       tidy up
5682         * man/xml-source/amaespipe.8.xml: add uuencode as requirement
5683         * man/xml-source/amcrypt.8.xml:   add uuencode as requirement
5684         * server-src/amcheck.c: catch dumptype misconfiguration
5685         * server-src/diskfile.c: ditto
5686         * server-src/driverio.c: ditto
5687         * server-src/planner.c:  ditto
5688         * server-src/conffile.c: check includefile before calling
5689           read_conffile_recursively
5690         * example/amanda.conf.in:       add public-key encryption dumptype example
5691         * man/xml-source/amanda.8.xml:  fix some formatting     
5692         * server-src/planner.c: adjust setuid() calling sequences so that ssh can work
5693         * server-src/dumper.c:  ditto
5694         * configure.in:              add LOW_TCPPORTRANGE for amrecover
5695         * common-src/stream.c:       use LOW_TCPPORTRANGE
5696         * server-src/amdump.sh.in:   check if config is supplied
5697         * man/xml-source/amrestore.8.xml: add notes on "-f" option
5698
5699 2006-05-24  Ian Turner <ian@zmanda.com>
5700         * configure.in: Properly document --without-xsltproc as itself, 
5701           and not the (nonexistant) option --without-built-manpages.
5702
5703 2006-05-16  John Franks <jrfranks@zmanda.com>
5704         * amandad-src/amandad.c client-src/clientconf.c common-src/bsd-security.c
5705           common-src/bsdudp-security.c common-src/dgram.c common-src/krb4-security.c
5706           common-src/krb5-security.c common-src/match.c common-src/packet.c
5707           common-src/security-util.c common-src/security-util.h
5708           common-src/security.h common-src/util.c oldrecover-src/Makefile.am
5709           oldrecover-src/set_commands.c recover-src/amrecover.c
5710           recover-src/extract_list.c server-src/conffile.c server-src/driver.c
5711           server-src/dumper.c server-src/planner.c server-src/reporter.c:
5712                 Minimal changes to get tree to compile along with some more
5713                 debugging output.
5714
5715 2006-05-15  Jean-Louis Martineau <martineau@zmanda.com>
5716         * server-src/amadmin.c (disklist_one): print spindle.
5717
5718 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
5719         * commmon-src/bsd-security.c: Typo.
5720
5721 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
5722         * common-src/Makefile.am (noinst_HEADERS): Add security-util.h.
5723
5724 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
5725         Build a big tok_t enum for server and client config.
5726         * client-src/clientconf.c: Move many things to util.c.
5727         * client-src/clientconf.h: Remove extern variable.
5728         * common-src/util.c: Add common part of clientconf.c and conffile.c
5729         * common-src/util.h: Prototype.
5730         * server-src/conffile.c: Move many things to util.c.
5731         * server-src/diskfile.c(disk_parserror): Rename from parserror.
5732         * server-src/taper.c: Make many variable static.
5733
5734 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
5735         * restore-src/restore.c: Fix use of possibly NULL input.
5736
5737 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
5738         * common-src/ssh-security.c (ssh_connect): Retrieve ssh_keys from
5739                                                    configuration.
5740         * server-src/amadmin.c(disklist_one): Print ssh_keys.
5741         * server-src/conffile.c(SSH_KEYS): Parse new dumptype option.
5742         * server-src/conffile.h(dumptype_t): Add ssh_keys.
5743         * server-src/diskfile.c(parse_diskline): Copy new field.
5744         * server-src/diskfile.h(disk_t) Add ssh_keys.
5745         * server-src/driverio.c(dumper_cmd): Send dp->ssh_keys in a PORT_DUMP
5746                                              command to the dumper.
5747         * server-src/dumper.c: Parse ssh_keys in a PORT_DUMP command.
5748         * server-src/dumper.c(dumper_get_security_conf): Return the ssh_keys.
5749         * server-src/server_util.c(amhost_get_security_conf): Return the
5750                                                               ssh_keys.
5751
5752 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
5753         * amandad-src/amandad.c: Set allow_many_services to 0 if auth=bsdtcp.
5754         * common-src/bsd-security.c: Use security-util.c.
5755         * common-src/bsdtcp-security.c: New security-api.
5756         * common-src/bsdudp-security.c: New secutity-api.
5757         * common-src/krb4-security.c: Use security-util.c.
5758         * common-src/krb5-security.c: Use security-util.c.
5759         * common-src/Makefile.am (libamanda_la_SOURCES): Add bsdtcp-security.c,
5760                                                              bsdtcp-security.c
5761                                                          and security-util.c.
5762         * common-src/protocol.c: Debuging cleanup.
5763         * common-src/rsh-security.c Use security-util.c.
5764         * common-src/security.c: Use bsdtcp_security_driver
5765                                  and bsdudp_security_driver.
5766         * common-src/security.h(accept): New prototype.
5767         * common-src/security-util.c: Many common function for security-api.
5768         * common-src/security-util.h: many prototype for security-api.
5769         * common-src/ssh-security.c Use security-util.c.
5770         * common-src/stream.c (stream_client_internal): Call connect_portrange.
5771         * common-src/util.c (make_socket): Make a socket.
5772         * common-src/util.c (connect_portrange): Make a socket, bind it and
5773                                                  connect.
5774         * common-src/util.h (connect_portrange): Prototype.
5775         * configure.in: new --with-bsdtcp-security and --with-bsdudp-security.
5776
5777 2006-05-10  Jean-Louis Martineau <martineau@zmanda.com>
5778         Patch by <amanda@inventivetechnology.at>
5779         * man/xml-source/amrecover.8.xml: Document listhost command.
5780
5781 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
5782         Patch by <amanda@inventivetechnology.at>
5783         * server-src/amindexd.c: new LISTHOST command.
5784         * recover-src/set_commands.c (list_host): New function.
5785         * recover-src/amrecover.h (list_host): Prototype.
5786         * recover-src/help.c (list_host): Print help.
5787         * recover-src/uscan.l: Parse listhost command.
5788         * recover-src/uparse.y: LISTHOST command.
5789         * oldrecover-src/set_commands.c (list_host): New function.
5790         * oldrecover-src/amrecover.h (list_host): Prototype.
5791         * oldrecover-src/help.c (list_host): Print help.
5792         * oldrecover-src/uscan.l: Parse listhost command.
5793         * oldrecover-src/uparse.y: LISTHOST command.
5794
5795 2006-05-08  Ian Turner <ian@zmanda.com>
5796         * server-src/amcheck.c: Make it an error when the expected new 
5797           tape cannot be found. Thanks to Paul Bijnens
5798           <paul.bijnens@xplanation.com> for the patch and to Jason L 
5799           Tibbitts III <tibbs@math.uh.edu> for noticing this problem.
5800
5801 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
5802         * driverio.h (shed_s): Add est_nsize, est_csize, degr_nsize, degr_csize
5803                                for nativa and compressed estimate size.
5804         * planner.c: Send the native and compressed estimate size to the driver.
5805         * driver.c: log with L_STATS the estimate of a successful dump.
5806         * reporter.c: Parse the L_STATS.
5807         * reporter.c(generate_bad_estimate): New function that will put in the
5808                                              NOTES section all bad estimate.
5809
5810 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
5811         * configure.in (AC_CONFIG_FILES): Add oldrecover-src/Makefile.
5812         * Makefile.am (RECOVER_SUBDIRS): Add oldrecover-src.
5813         * oldrecover-src/amrecover.c: Copy of old recover-src/amrecover.c
5814         * oldrecover-src/amrecover.h: Copy of old recover-src/amrecover.h
5815         * oldrecover-src/display_commands.c: Copy of old
5816                                              recover-src/display_commands.c
5817         * oldrecover-src/extract_list.c: Copy of old recover-src/extract_list.c
5818         * oldrecover-src/help.c: Copy of old recover-src/help.c
5819         * oldrecover-src/Makefile.am: Copy of old recover-src/Makefile.am
5820         * oldrecover-src/set_commands.c: Copy of old recover-src/set_commands.c
5821         * oldrecover-src/uparse.y: Copy of old recover-src/uparse.y
5822         * oldrecover-src/uscan.l: Copy of old recover-src/uscan.l
5823         * recover-src/amrecover.c: Works with security-api.
5824         * recover-src/amrecover.h: Works with security-api.
5825         * recover-src/extract_list.c: Works with security-api.
5826
5827 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
5828         * amandad-src/amandad.c: Fixup.
5829
5830 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
5831         * common-src/packet.h: pkt_t.body is now a char*.
5832         * common-src/packet.c (pkt_init): Return an alloced pkt.body.
5833         * common-src/packet.c (pkt_cat): Increade pkt.body size if needed.
5834         * common-src/protocol.c: Free allocated pkt.body.
5835         * common-src/dgram.c (dgram_cat): Return int.
5836         * common-src/dgram.h (dgram_cat): New prototype.
5837         * common-src/krb5-security.c: Work with dynamicaly allocated packet
5838                                       body.
5839         * common-src/rsh-security.c: Work with dynamicaly allocated packet
5840                                      body.
5841         * common-src/ssh-security.c: Work with dynamicaly allocated packet
5842                                      body.
5843         * amandad-src/amandad.c: Work with dynamicaly allocated packet body.
5844         * server-src/amcheck.c: Don't limit packet size.
5845         * server-src/planner.c: Don't limit packet size.
5846
5847 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
5848         * amandad-src/amandad.c (service_new): Apply the correct patch.
5849
5850 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
5851         * server-src/taper.c: Fix compiler warning.
5852         * common-src/match.c: Many function get const parameters.
5853         * common-src/amanda.h: Prototype change.
5854
5855 2006-05-07  Jean-Louis Martineau <martineau@zmanda.com>
5856         * amandad-src/amandad.c (service_new): Make sur that the 3 data_read[]
5857           and the 3 data_write[] fd are not in the range DATA_FD_OFFSET to
5858           DATA_FD_OFFSET+DATA_FD_COUNT-1.
5859
5860 2006-05-05  Jean-Louis Martineau <martineau@zmanda.com>
5861         * common-src/tapelist.c (append_to_tapelist): Remove bad amfree.
5862
5863 2006-05-05  Nikhil Bandiwadekar <nikhil@zmanda.com>
5864         * server-src/conffile.c: fix to correctly handle am64 datatype
5865
5866 2006-05-04  Jean-Louis Martineau <martineau@zmanda.com>
5867         * server-src/taper.c: Write the slot number in the
5868                               'taper: wrote label' line.
5869         * server-src/amverifyrun.sh.in: Parse that line.
5870
5871 2006-05-02  Jean-Louis Martineau <martineau@zmanda.com>
5872         * amstatus.pl.in: Limit characters for hostname in setup_estimate line.
5873
5874 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
5875         * common-src/rsh-security.c: Pass "amdump amindexd amidxtaped" option
5876                                      to amandad.
5877         * common-src/ssh-security.c: Ditto.
5878
5879 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
5880         * amandad-src/amandad.c: Accept a list of services on the command line.
5881
5882 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
5883         * common-src/tapelist.c (append_to_tapelist): Fix memory leak.
5884
5885 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
5886         * amandad-src/amandad.c: Fix memory leak.
5887         * amandad-src/amandad.h (free_g_options): Prototype.
5888         * amandad-src/amandad_util.c (free_g_options): New function to free a
5889                                                        g_option_t.
5890         * server-src/amcleanupdisk.c: Fix memory leak.
5891         * server-src/reporter.c: Fix memory leak.
5892         * server-src/tapefile.c: Fix memory leak.
5893         * server-src/taperscan.c: Put message in error_message.
5894
5895 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5896         * server-src/amcheck.c (start_server_check): Memory leak.
5897
5898 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5899         * amandad-src/Makefile.am (noinst_HEADERS): Add amandad.h.
5900         * client-src/Makefile.am (noinst_HEADERS): Add clientconf.h.
5901
5902 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5903         * man/xml-source/amanda-client.conf.5.xml: New file.
5904
5905 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5906         * common-src/amanda.h (check_user_ruserok, check_user_amandahosts):
5907           Remove prototype.
5908         * common-src/bsd-security.c: Pass the service name across check_user*
5909           function and validate it from the .amandahosts file.
5910
5911 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5912         * restore-src/amidxtaped.c: Can be launched by amandad.
5913         * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
5914         * server-src/Makefile.am (amidxtaped__LDADD): Link with libamandad.
5915         * restore-src/restore.c: Fix indentation.
5916
5917 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5918         * server-src/amindexd.c: Can be launched by amandad
5919         * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
5920         * server-src/Makefile.am (amindexd_LDADD): Link with libamandad.
5921
5922 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5923         * amandad-src/amandad.c: New file.
5924         * amandad-src/amandad.h: New file.
5925         * amandad-src/amandad_util.c: New file, add function init_g_options
5926                                       parse_g_options.
5927         * amandad-src/Makefile.am: New file.
5928         * client-src/amandad.c: Removed file.
5929         * client-src/amandad.h: Removed file.
5930         * client-src/client_util.c (init_g_options, parse_g_options): Remove.
5931         * client-src/client_util.h (init_g_options, parse_g_options): Remove.
5932         * client-src/Makefile.am (INCLUDES): -I$(top_srcdir)/amandad-src
5933         * client-src/Makefile.am (libexec_PROGRAMS): Remove amandad.
5934         * client-src/Makefile.am (LDADD): Add
5935                                   ../amandad-src/libamandad.$(LIB_EXTENSION).
5936         * client-src/selfcheck.c: #include "amandad.h".
5937         * client-src/sendsize.c: #include "amandad.h".
5938         * configure.in (AC_CONFIG_FILES): amandad-src/Makefile.
5939         * Makefile.am (SUBDIRS): amandad-src.
5940
5941 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5942         * docs/security-api.txt: Document security_read_sync.
5943         * common-src/security.h: Typo.
5944
5945 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5946         * client-src/amandad.c (service_new): Pass the "amandad" argument to
5947                                               the service.
5948
5949 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5950         * common-src/bsd-security.c: Allow to run many services on the same
5951                                      client. Cleanup.
5952         * common-src/rsh-security.c: Ditto.
5953         * common-src/ssh-security.c: Ditto.
5954
5955 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5956         * common-src/security.h (security_stream_read_sync): Prototype.
5957         * common-src/bsd-security.c (bsd_stream_read_sync): New function.
5958         * common-src/krb4-security.c (krb4_stream_read_sync): New function.
5959         * common-src/krb5-security.c (krb5_stream_read_sync): New function.
5960         * common-src/rsh-security.c (rsh_stream_read_sync): New function.
5961         * common-src/ssh-security.c (ssh_stream_read_sync): New function.
5962
5963 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5964         * client-src/amandad.c: Open pipe in both direction to the services.
5965         * client-src/sendbackup.c: Deal with the newer pipe.
5966
5967 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5968         * client-src/clientconf.c: New file to read the client configuration
5969                                    file.
5970         * client-src/clientconf.h: Header.
5971         * client-src/Makefile.am: Link clientconf into libamclient.
5972         * configure.in (AC_CONFIG_FILES): example/amanda-client.conf.
5973         * docs/amanda-client.conf.5.txt: New documentation.
5974         * docs/Makefile.am (pkgdata_DATA): amanda-client.conf.5.txt.
5975         * example/amanda-client.conf.in: exemple.
5976         * example/Makefile.am  (noinst_DATA): amanda-client.conf.
5977         * man/entities/global.entities: amclientconf.
5978         * man/Makefile.am (COMMON_MAN5_PAGES): amanda-client.conf.5.
5979         * man/xml-source/amanda.8.xml (SEE ALSO): amanda-client.conf(5).
5980         * man/xml-source/amanda.conf.5.xml (SEE ALSO): amanda-client.conf(5).
5981         * man/xml-source/amrecover.8.xml (SEE ALSO): amanda-client.conf(5).
5982
5983 2006-04-26  K. K. George<kkg@zmanda.com>
5984         * server-src/reporter.c: Fix to untaint the mailto parameter.
5985         * server-src/amcheck.c: Fix to untaint the mailto parameter
5986         * changer-src/chg-scsi.c: Fix to untaint the mailto parameter.
5987         * changer-src/chg-scsi-chio.c: Fix to untaint the mailto parameter.
5988         * common-src/util.h: Added function to check if the mailto 
5989           parameter is untainted
5990         * common-src/util.c: Added function to check if the mailto 
5991           parameter is untainted
5992
5993 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5994         * common-src/event.c(event_wait): New function.
5995         * common-src/event.h(event_wait): prototype.
5996         * docs/eventapi.txt: Document event_wait.
5997
5998 2006-04-24  Jean-Louis Martineau <martineau@zmanda.com>
5999         * server-src/planner.c: Fix divide by zero if runtapes==0.
6000
6001 2006-04-24  K. K. George<kkg@zmanda.com>
6002         * server-src/reporter.c: Fix to make the mailto parameter in
6003           amanda.conf optional. Added two more commandline options
6004           -i & -Maddress.
6005         * server-src/amcheck.c: Fix to make the mailto parameter in
6006           amanda.conf optional.
6007         * man/xml-source/amreport.8.xml: Modified to document the
6008           -i & -Maddress commandline parameters
6009         * docs/amreport.8.txt: Modified to document the
6010           -i & -Maddress commandline parameters
6011         * changer-src/chg-scsi.c: Fix to make the mailto parameter in
6012           amanda.conf optional.
6013         * changer-src/chg-scsi-chio.c: Fix to make the mailto parameter in
6014           amanda.conf optional.
6015
6016 2006-04-23  Jean-Louis Martineau <martineau@zmanda.com>
6017         * server-src/driver.c (handle_chunker_result): make sure that
6018                                                        est_size > act-size.
6019
6020 2006-04-21  Jean-Louis Martineau <martineau@zmanda.com>
6021         * server-src/changer.c (changer_command): Make sure fd[0] != 1.
6022
6023 2006-04-19  Jean-Louis Martineau <martineau@zmanda.com>
6024         * restore-src/amidxtaped.c: Cleanup.
6025
6026 2006-04-19  Ian Turner <ian@zmanda.com>
6027         * tape-src/output-tape.c: Do a more thourough check to ensure 
6028           that we actually got a tape device, before proceeding to use 
6029           it.
6030
6031 2006-04-18  Ian Turner <ian@zmanda.com>
6032         * changer-src/chg-disk.sh.in: Check that the virtual device is a 
6033           directory with proper permissions.
6034         * server-src/changer.c: Do the right thing (failure) if there is 
6035           a problem with the changer.
6036
6037 2006-04-18  Ian Turner <ian@zmanda.com>
6038         * recover-src/uscan.l: Accept setdate of the form
6039           yyyy-MM-dd-hh-mm in addition to yyyy-MM-dd-hh-mm-ss.
6040         * man/xml-source/amrecover.8.xml: Document this change.
6041
6042 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
6043         * recover-src/help.c: Document setdate YYYY-MM-DD-HH-MM-SS format.
6044         * man/xml-source/amrecover.8.xml: Ditto.
6045
6046 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
6047         * client-src/amandad.c: Use %p to printf pointer.
6048
6049 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
6050         * server-src/amtape.c: Add update command.
6051
6052 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
6053         * server-src/taper.c: log_add(L_WARNING) the output of taper_scan if
6054                                no valid tape are found.
6055
6056 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
6057         * server-src/amcheck.c: Call taper_scan with
6058                 (..., FILE_taperscan_output_callback,outf) arguments.
6059         * server-src/amtape.c:  Call taper_scan with
6060                 (..., FILE_taperscan_output_callback,stderr) arguments.
6061         * server-src/taper.c:   Call taper_scan with
6062                 (..., CHAR_taperscan_output_callback, &error_msg) arguments.
6063         * server-src/taperscan.h(FILE_taperscan_output_callback,
6064                                  CHAR_taperscan_output_callback): Protoype.
6065         * server-src/taperscan.h(taper_scan): New protoype, remove
6066           error_message arg, add taperscan_output_callback and data arg.
6067         * server-src/taperscan.c(FILE_taperscan_output_callback): Callback
6068           that print the msg to it's arg, which is FILE*.
6069         * server-src/taperscan.c(CHAR_taperscan_output_callback): Callback
6070           that append the msg to it's arg, which is char*.
6071         * server-src/taperscan.c(taper_scan): Fix for new arguments.
6072         * server-src/taperscan.c(changer_taper_scan): Fix for new arguments.
6073
6074 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
6075         * man/xml-source/amanda.conf.5.xml: Document amandad_path and
6076                                             client_username dumptype option.
6077
6078 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
6079         * common-src/krb4-security.c: Increase timeout to 60 seconds.
6080         * common-src/rsh-security.c: Increase timeout to 60 seconds.
6081         * common-src/ssh-security.c: Increase timeout to 60 seconds.
6082
6083 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
6084         * server-src/conffile.c: New configuration option usetimestamps.
6085         * server-src/conffile.h: New configuration option usetimestamps.
6086         * example/amanda.conf.in: Document new usetimestamps options.
6087         * man/xml-source/amanda.conf.5.xml: Document new usetimestamps options.
6088         * server-src/amflush.c: Use datestamp or timestamp depending of
6089                                 usetimesstamps.
6090         * server-src/planner.c: Use datestamp or timestamp depending of
6091                                 usetimesstamps.
6092         * server-src/driver.c: Log an ERROR if many run a day and
6093                                usetimestamps us set to no.
6094
6095 2006-04-07  Ian Turner <ian@zmanda.com>
6096         * server-src/changer.c: Don't crash if we go to taperscan "Plan 
6097           B".
6098
6099 2006-04-07  Ian Turner <ian@zmanda.com>
6100         * server-src/changer.c: Only print changer debug messages if 
6101           there was a problem.
6102
6103 2006-04-07  Ian Turner <ian@zmanda.com>
6104         * recover-src/amrecover.c: Print a more helpful command if mount
6105           point autodetection fails.
6106         * recover-src/display_commands.c: Print a more helpful message
6107           if the user tries to ls without having setdisk earlier.
6108
6109 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
6110         * server-src/amadmin.c: Fix use of datestamp as int.
6111         * server-src/find.c: Ditto.
6112         * server-src/reporter.c: Ditto.
6113         * server-src/tapefile.c: Ditto.
6114
6115 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
6116         * common-src/Makefile.am: Fix dependency between genversion and
6117                                   versuff.o.
6118
6119 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
6120         * recover-src/amrecover.c: Change initialization of server_name and
6121                                    tape_server_name.
6122
6123 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
6124         * restore-src/amrestore.c: reset count_error to 0 on a restore.
6125
6126 2006-04-06  Kevin Till <ktill@zmanda.com>
6127         * server-src/Makefile.am: always install planner/dumper setuid-root
6128         * server-src/amcheck.c:   check planner/dumper for setuid-root
6129         * server-src/dumper.c:    drop privilege asap. Switch between bsd 
6130           and ssh auth is now possible with the same installation.
6131         * server-src/planner.c:   ditto
6132
6133 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
6134         * server-src/taperscan.c (changer_taper_scan): Pass a pointer to the
6135           changer_loadslot call.
6136
6137 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
6138         * server-src/tapefile.c (lookup_last_reusable_tape): Fix a datestamp
6139           test with an int.
6140
6141 2006-04-06  Ian Turner <vectro@vectro.org>
6142         * recover-src/amrecover.c (main): Check AMANDA_SERVER and 
6143           AMANDA_TAPE_SERVER environment variables before falling back 
6144           to compiled-in defaults. Document this new behavior. Thanks to 
6145           Malcolm Locke <malc@hoodee.co.uk> for the idea and patch.
6146
6147 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
6148         * server-src/reporter.c (handle_chunk): CHUNK line always have the
6149           datestamp.
6150
6151 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
6152         * server-src/krb5-security.c: Fix for krb5_connect call in
6153            open_callback.
6154
6155 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
6156         * server-src/driver.c (start_some_dumps): Recover correctly if the
6157           chunker reply with something that is not a PORT command.
6158         * server-src/driver.c (dump_to_tape): remove duplicate free_serial.
6159         * server-src/driverio.c: Improve debugging.
6160
6161 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
6162         * common-src/tapelist.c(unmarshal_tapelist_str): Fix
6163           "value computed is not used" compiler warning.
6164
6165 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
6166         * common-src/bsd-security.c (bsd_connect): New datap argument.
6167         * common-src/krb4-security.c (krb4_connect): New datap argument.
6168         * common-src/krb5-security.c (krb5_connect): New datap argument.
6169         * common-src/rsh-security.c (rsh_connect): New datap argument,
6170                  retrieve amanda_path and client_username from configuration.
6171         * common-src/ssh-security.c (ssh_connect): New datap argument,
6172                 retrieve amanda_path and client_username from configuration.
6173         * common-src/protocol.c: Pass new datap argument to security_connect.
6174         * common-src/security.h(connect): New prototype.
6175         * common-src/security.h(security_connect): Add datap to macro.
6176         * server-src/amadmin.c(disklist_one): Print amandad_path and
6177                                               client_username.
6178         * server-src/conffile.c(AMANDAD_PATH, CLIENT_USERNAME): Parse new
6179                                 dumptype option.
6180         * server-src/conffile.h(dumptype_t): Add amandad_path and
6181                                              client_username.
6182         * server-src/diskfile.c(parse_diskline): Copy new field.
6183         * server-src/diskfile.h(disk_t) Add amandad_path and client_username.
6184         * server-src/driverio.c(dumper_cmd): Send dp->amandad_path and
6185           dp->client_username in a PORT_DUMP command to the dumper.
6186         * server-src/dumper.c: Parse amandad_path and client_username in a
6187                                PORT_DUMP command.
6188         * server-src/dumper.c(dumper_get_security_conf): New function to return
6189                                 configuration option to the security-api.
6190         * server-src/dumper.c: Use dumper_get_security_conf for the callback
6191                                to protocol_sendreq.
6192         * server-src/planner.c Use amhost_get_security_conf for the callback
6193                                to protocol_sendreq.
6194         * server-src/amcheck.c: Use amhost_get_security_conf for the callback
6195                                 to protocol_sendreq.
6196         * server-src/server_util.c(amhost_get_security_conf): New function to
6197                         return configuration option to the security-api,
6198                         it expect an am_host_t arg.
6199         * server-src/server_util.h(amhost_get_security_conf): Prototype.
6200
6201 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
6202         * server-src/amstatus.pl.in: Remove duplicate instruction.
6203
6204 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
6205         * server-src/amindexd.c: Remove all code that set str_buffer_size,
6206                                  rename str_buffer_size to reply_buffer_size,
6207                                  rename buf to reply_buffer,
6208         * server-src/amindexd.c(reply, lreply_backend): Increase reply_buffer
6209                                                         size if required.
6210
6211 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
6212         * common-src/amfeatures.h: Add fe_amrecover_timestamp amfeature.
6213         * common-src/amfeatures.c (am_init_feature_set):
6214                                                  Add fe_amrecover_timestamp.
6215         * server-src/amindexd.c(opaque_ls_one): New function.
6216         * server-src/amindexd.c(disk_history_list,opaque_ls_one): Send only a
6217           datestamp if client doesn't have fe_amrecover_timestamp.
6218
6219 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
6220         * recover-src/uscan.l: Parse "setdate YYYY-MM-DD-HH-MM-SS".
6221         * server-src/amindexd.c (cmp_date): New function to cmp datestamp with
6222                                             timestamp, use it where needed.
6223         * server-src/amindexd.c (amindexd_nicedate): Fix for timestamp.
6224         * server-src/amtrmidx.c: Fix for timestamp.
6225         * server-src/disk_history.h (DUMP_ITEM): Increase size of date.
6226
6227 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
6228         * server-src/amflush.c: Send DATE line to driver, use timestamp.
6229         * server-src/amindex.c (getindexfname): Increase datebuf size.
6230         * server-src/amtrmlog.c: Fix bug with date_keep computation if
6231                                  dumpcycle is INF.
6232         * server-src/amtrmlog.c: rotate timestamped log file.
6233         * server-src/chunker.c: Receive START cmd, use timestamp.
6234         * server-src/driver.c: Receive DATE line, send START cmd to chunker,
6235                                use timestamp.
6236         * server-src/driverio.c (startup_dump_processes): Send START cmd to
6237                                                           dumper.
6238         * server-src/driverio.c (dumper_cmd, chunker_cmd): Send START command.
6239         * server-src/driverio.h (startup_dump_processes): Prototype change,
6240                                                           need the timestamp.
6241         * server-src/dumper.c: Receive START cmd, use timestamp.
6242         * server-src/find.c (find_nicedate): Fix for timestamp.
6243         * server-src/planner.c: Send DATE line to driver, use timestamp.
6244         * server-src/server_util.c (cmdstr): Add START.
6245         * server-src/server_util.h (cmd_t): Add START.
6246         * server-src/taper.c: Get timestamp from TAPER_START command.
6247
6248 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
6249         * server-src/amindexd.c (amindexd_nicedate): New function.
6250         * server-src/find.h (struct find_result_s): Remove datestamp and
6251                  datestamp_aux field, only timestamp will be used.
6252         * restore-src/amfetchdump.c: Convert datestamp to 'char *'.
6253         * restore-src/restore.c: Convert datestamp to 'char *'.
6254         * server-src/amindexd.c: Convert datestamp to 'char *'.
6255         * server-src/amlabel.c: Convert datestamp to 'char *'.
6256         * server-src/amtrmidx.c: Convert datestamp to 'char *'.
6257         * server-src/find.c: Convert datestamp to 'char *'.
6258         * server-src/reporter.c: Convert datestamp to 'char *'.
6259         * server-src/tapefile.c: Convert datestamp to 'char *'.
6260         * server-src/tapefile.h: Convert datestamp to 'char *'.
6261         * server-src/taper.c: Convert datestamp to 'char *'.
6262
6263 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
6264         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b1).
6265
6266 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
6267         * server-src/driver.c: Change expression to remove overflow.
6268
6269 2006-03-29  Jean-Louis Martineau <martineau@zmanda.com>
6270         * client-src/calcsize.c: Don't use declaration after instruction,
6271           older compiler don't accept it.
6272
6273 2006-03-23  Jean-Louis Martineau <martineau@zmanda.com>
6274         * Amanda 2.5.0 released.
6275         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0).
6276         * NEWS: Update for 2.5.0
6277
6278 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
6279         * server-src/dumper.c: wait for compress/index/encryp subprocess.
6280
6281 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
6282         * server-src/amstatus.pl.in: Parse PARTIAL reply.
6283
6284 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
6285         * server-src/driver.c: Put '#define HOLD_DEBUG' in comment.
6286
6287 2006-03-21  Jean-Louis Martineau <martineau@zmanda.com>
6288         * server-src/chunker.c: Don't loop on startup_chunker.
6289         * server-src/dumper.c: Don't wait for all children, some process (ssh)
6290           might not terminate.
6291
6292 2006-03-17  Ian Turner <ian@zmanda.com>
6293         * server-src/taper.c (read_file): When finished flushing a 
6294           chunked dump, print information about the whole dump, not just 
6295           the last chunk. Also, fix some memory leaks.
6296
6297 2006-03-16  Kevin Till <ktill@zmanda.com>
6298         * server-src/amverify.sh.in: check for EOI. amrestore only 
6299           reports EOI for some tapetypes.
6300
6301 2006-03-15  Jean-Louis Martineau <martineau@zmanda.com>
6302         * server-src/conffile.c: Fix heritage of auth.
6303
6304 2006-03-14  Kevin Till <ktill@@zmanda.com>
6305         * example/amanda.conf.in: add dumptype custom-compress. 
6306           add ssh,krb5 as valid input for auth. 
6307         * man/xml-source/amanda.conf.5.xml: give reference to 
6308           custom-compress, encrypt-fast dumptypes.
6309
6310 2006-03-14  Jean-Louis Martineau <martineau@zmanda.com>
6311         * common-src/amfeatures.h: Rename fe_amidxtaped_FEEDME to
6312                                           fe_amrecover_FEEDME
6313         * common-src/amfeatures.c (am_init_feature_set): Set
6314                                                          fe_amrecover_FEEDME.
6315         * restore-src/restore.h (search_tapes): Add their_features parameter.
6316         * restore-src/amfetchdump.c: Add NULL pointer to search_tapes call.
6317         * restore-src/amidxtaped.c: Add their_features to search_tapes call.
6318         * restore-src/restore.c (search_tapes): Send FEEDME only if client
6319                                                 support it.
6320
6321 2006-03-11  Jean-Louis Martineau <martineau@zmanda.com>
6322         * server-src/driverio.c : Fix errors found using Coverity tools.
6323
6324 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
6325         * server-src/taperscan.c: Fix Coverity fix.
6326
6327 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
6328         * changer-src/scsi-changer-driver.c:
6329                                          Fix errors found using Coverity tools.
6330         * server-src/diskfile.c: Fix errors found using Coverity tools.
6331         * server-src/planner.c: Fix errors found using Coverity tools.
6332         * server-src/taperscan.c: Fix errors found using Coverity tools.
6333
6334 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
6335         * server-src/driverio.c: Undo my bad fix.
6336         * server-src/infofile.c: Fix errors found using Coverity tools.
6337         * tape-src/tapetype.c: Fix errors found using Coverity tools.
6338
6339 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
6340         * restore-src/restore.c: Fix errors found using Coverity tools.
6341
6342 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
6343         * server-src/holding.c: Fix errors found using Coverity tools.
6344
6345 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
6346         * server-src/driverio.c: Fix errors found using Coverity tools.
6347         * server-src/planner.c: Fix errors found using Coverity tools.
6348
6349 2006-03-09  John Franks <jrfranks@zmanda.com>
6350         * changer-src/chg-scsi.c:        Fix errors found using Coverity tools.
6351         * changer-src/scsi-changer-driver.c:
6352                                          Fix errors found using Coverity tools.
6353         * changer-src/sense.c:           Fix errors found using Coverity tools.
6354         * client-src/sendbackup-dump.c:  Fix errors found using Coverity tools.
6355         * client-src/sendbackup.c:       Fix errors found using Coverity tools.
6356         * recover-src/display_commands.c:Fix errors found using Coverity tools.
6357         * regex-src/regcomp.c:           Fix errors found using Coverity tools.
6358         * restore-src/restore.c:         Fix errors found using Coverity tools.
6359         * server-src/amindexd.c:         Fix errors found using Coverity tools.
6360         * server-src/diskfile.c:         Fix errors found using Coverity tools.
6361         * server-src/driver.c:           Fix errors found using Coverity tools.
6362         * server-src/driverio.c:         Fix errors found using Coverity tools.
6363         * server-src/infofile.c:         Fix errors found using Coverity tools.
6364         * server-src/planner.c:          Fix errors found using Coverity tools.
6365         * server-src/taper.c:            Fix errors found using Coverity tools.
6366         * server-src/taperscan.c:        Fix errors found using Coverity tools.
6367         * server-src/conffile.c:         Change report default to use at least
6368                                          one space between every column.
6369
6370 2006-03-08  Jean-Louis Martineau <martineau@zmanda.com>
6371         * client-src/amandad.c: Fix coverity bug.
6372         * client-src/calcsize.c: Fix coverity bug.
6373         * client-src/client_util.c: Fix coverity bug.
6374         * client-src/sendbackup.c: Fix coverity bug.
6375         * client-src/sendsize.c: Fix coverity bug.
6376         * common-src/bsd-security.c: Fix coverity bug.
6377         * common-src/file.c: Fix coverity bug.
6378         * common-src/fileheader.c: Fix coverity bug.
6379         * common-src/pipespawn.c: Fix coverity bug.
6380         * recover-src/extract_list.c: Fix coverity bug.
6381         * restore-src/restore.c: Fix coverity bug.
6382         * server-src/amindexd.c: Fix coverity bug.
6383         * server-src/conffile.c: Fix coverity bug.
6384         * server-src/diskfile.c: Fix coverity bug.
6385         * server-src/driverio.c: Fix coverity bug.
6386         * server-src/dumper.c: Fix coverity bug.
6387         * server-src/planner.c: Fix coverity bug.
6388         * server-src/reporter.c: Fix coverity bug.
6389
6390 2006-03-07  Paddy Sreenivasan <paddy@zmanda.com>
6391         * man/xml-source/amanda.8.xml: added amaespipe and amcrypt.
6392
6393 2006-03-07  Jean-Louis Martineau <martineau@zmanda.com>
6394         * server-src/taper.c: Don't log a multi-line message in no-tape case.
6395
6396 2006-03-06  John Franks <jrfranks@zmanda.com>
6397         * recover-src/extract_list.c:
6398           1) Don't add '.' directory twice to tar extract list.
6399           2) Don't prepend extra '/' to extract patterns starting with '/'.
6400           3) Convert "/" extract pattern to "*" equivalent.
6401
6402 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
6403         * server-src/taperscan.c (scan_slot): append slotstr to
6404           ct->error_message.
6405         * server-src/taperscan.c: Add a '\n' after each slot error message.
6406
6407 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
6408         * server-src/reporter.c (handle_error): Handle error from taper.
6409
6410 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
6411         * server-src/taper.c (label_tape): Set errstr and return 0 if no
6412           valid tape are available.
6413
6414 2006-03-03  Ian Turner <ian@zmanda.com>
6415         * common-src/amanda.h: New macros MAX_TAPE_LABEL_LEN and 
6416           MAX_TAPE_LABEL_BUF.
6417         * common-src/amfeatures.h: New amfeature fe_amidxtaped_FEEDME
6418         * recover-src/extract_list.c: Accept port number with CONNECT; 
6419           implement fe_amidxtaped_FEEDME.
6420         * restore-src/amidxtaped.c: Introduce port number with CONNECT. 
6421           (closes SF bug 1431623)
6422         * restore-src/restore.c: Implement fe_amidxtaped_FEEDME.
6423           (closes SF bug 1421433)
6424         * restore-src/restore.h: Properly name rst_flags.
6425
6426 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
6427         * common-src/bsd-security.c (bsd_connect, netfd_read_callback, main):
6428           Set bh->proto_handle to NULL after allocating bh.
6429         * common-src/bsd-security.c (bsd_close): Donothing if
6430           bh->proto_handle == NULL.
6431
6432 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
6433         * common-src/protocol.c (s_repwait): Decrease p->timeout on receive
6434                                              of a PREP.
6435
6436 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
6437         * server-src/driver.c: Print dumper TRY_AGAIN message.
6438
6439 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
6440         * server-src/planner.c: Don't print estimate size if estimate failed.
6441
6442 2006-02-25  Ian Turner <ian@zmanda.com>
6443         * man/Makefile.am: Don't use static patterns (as they are not 
6444           portable), use implicit rules instead.
6445
6446 2006-02-20  Kevin Till <ktill@zmanda.com>
6447         * common-src/krb4-security.c: changes needed for krb4/5 to compile. Thanks to
6448                                       Orion Poplawski.
6449         * common-src/krb5-security.c: ditto.
6450
6451 2006-02-16  Kevin Till <ktill@zmanda.com>
6452         * example/amanda.conf.in: dumptype option is "encrypt"
6453         * man/xml-source/amanda.conf.5.xml: ditto
6454         * server-src/holding.c: util.h is include'd twice
6455         * common-src/ssh-security.c: set correct debug print 
6456
6457 2006-02-10  Kevin Till <ktill@zmanda.com>
6458         * man/xml-source/amanda.8.xml: replace informaltable with literallayout 
6459
6460 2006-02-13  John Franks <jrfranks@zmanda.com>
6461         * server-src/driver.c: Pring a more precise message when taper
6462           returns an error.  Include error message from taper in log.
6463           Print out "protocol error" if taper returns a bogus command.
6464
6465 2006-02-10  Kevin Till <ktill@zmanda.com>
6466         * man/xml-source/amanda.conf.5.xml: add note about first character of a 
6467                         tapetype string must be alphabet
6468
6469 2006-02-10  John Franks <jrfranks@zmanda.com>
6470         * server-src/taper.c: Call error() if an invalid string is read
6471           by syncpipe_getstr().
6472  
6473 2006-02-09  John Franks <jrfranks@zmanda.com>
6474         * Makefile.am, */Makefile.am:  Corrections generated by David Braun
6475           dustybird@users.sourceforge.net to properly set source directories
6476           for remote (VPATH) builds.
6477         * man/Makefile.am:  Fixed man page builds to use proper source and
6478           build paths.
6479         * autogen: Force rebuilding everything and print only syntax errors.
6480           (Errors are seen occasionally in system autogen files...)
6481         * configure.in: Eliminate possibility of empty string in shell tests.
6482           fix quoting of '[' and ']' characters in help messages.
6483           Fix default value for DUMPER_DIR to pick up EPREFIX correctly.
6484  
6485 2006-02-08  Ian Turner <ian@zmanda.com>
6486         * server-src/driver.c (handle_taper_result): Properly handle 
6487           SPLIT_NEEDNEXT case. Thanks to Josef Wolf for finding this bug.
6488           Also reindent.
6489
6490 2006-02-06 Kevin Till <ktill@zmanda.com> 
6491         * restore-src/restore.c: fix comment formatting on version 1.2.1
6492
6493 2006-02-06 Kevin Till <ktill@zmanda.com>
6494         * configure.in: Bug 1423731, SSH_SECURITY set only when --with-ssh-security used
6495         * server-src/Makefile.am:: not to install planner/dumper setuid-root --with-ssh-security
6496         * server-src/amcheck.c:    ditto
6497         * server-src/dumper.c:     ditto
6498         * restore-src/restore.c:    add missing "}"
6499         
6500 2006-02-06  Ian Turner <ian@zmanda.com>
6501         * restore-src/amidxtaped.c: Properly handle changers, 
6502           tape-label checking, and tape prompting in amrecover, 
6503           amindexd, and amidextaped. Thanks to Paul Bijnens 
6504           <pbijnens@users.sourceforge.net> for the patch.
6505         * restore-src/restore.c: ditto.
6506         * server-src/amindexd.c: ditto.
6507
6508 2006-02-04  Paddy Sreenivasan <paddy@zmanda.com>
6509         * man/xml-source/amfetchdump.8.xml
6510         * man/xml-source/amcrypt.8.xml
6511         * man/xml-source/amanda.conf.5.xml
6512         * man/xml-source/amanda.8.xml
6513         * man/xml-source/amaespipe.8.xml
6514         * man/entities/global.entities: Merged changes from xml-docs tree
6515
6516 2006-02-03  John Franks <jrfranks@zmanda.com>
6517         * server-src/taper.c: Fix null string printout in CHUNKERSUCCESS log line.
6518
6519 2006-02-03  Ian Turner <ian@zmanda.com>
6520         * server-src/amadmin.c (main): Don't free conf_tapelist too 
6521           early. Thanks to Cédric Lucantis
6522           <cedric-lucantis@users.sourceforge.net> for the patch.
6523
6524 2006-02-02 Kevin Till <ktill@zmanda.com>
6525         * man/xml-source/amanda.8.xml: fix formatting. <informaltable> problem 
6526                                        to be fixed.
6527         * man/xml-source/amrecover.8.xml: add note on client-encrypted tapes.
6528
6529 2006-02-02  Ian Turner <ian@zmanda.com>
6530         * recover-src/extract_list.c (extract_files_child): Run tar with 
6531           --numeric-owner if we are extracting a non-sambafied tar file. 
6532           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for 
6533           the patch. Thanks also to Mark Schaefer for suggesting this 
6534           change.
6535
6536 2006-02-01  Jean-Louis Martineau <martineau@zmanda.com>
6537         * restore-src/restore.c: Use OFF_T_FMT to printf off_t variable,
6538           cast size_t to am64_t and use AM64_FMT to printf them.
6539
6540 2006-01-31  Jean-Louis Martineau <martineau@zmanda.com>
6541         * server-src/driver.c (dumper_result): Reset sched(dp)->attempted to 0
6542           before adding it to tapeq.
6543
6544 2006-01-27  Ian Turner <ian@zmanda.com>
6545         * configure.in: Add new option --without-xsltproc (and
6546           --with-xsltproc), which turns off (or forces) the use of xsltproc to
6547           build manpages. Thanks to Paul Bijnens
6548           <pbijnens@users.sourceforge.net> for suggesting this feature.
6549
6550 2006-01-27  Ian Turner <ian@zmanda.com>
6551         * restore-src/amfetchdump.c: Properly clean up logfiles. Also, 
6552           run as user amanda even if we are started as some other user.
6553           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for the 
6554           patch.
6555
6556 2006-01-25  Paddy Sreenivasan <paddy@zmanda.com>
6557         * common-src/amanda.h:     Removed unnecessary header include files.
6558
6559 2006-01-25  Kevin Till<ktill@zmanda.com>
6560         * server-src/amadmin.c: fix for sourceforge bug 1412698
6561                                 add missing parameters to "amadmin x disklist"
6562         * server-src/amstatus.pl.in: untaint user input, enforce known path.
6563         * server-src/amoverview.pl.in: untaint user input (bug 1353481)
6564
6565 2006-01-25  Kevin Till<ktill@zmanda.com>
6566         * man/xml-source/amanda.conf.5.xml: fix formatting (<para> is not compatible 
6567                                             with some tag) add supported auth types.
6568
6569 2006-01-25  Kevin Till<ktill@zmanda.com>
6570         * common-src/bsd-security.c: move check_security to bsd_security.c, 
6571                                      fix faulty return
6572                                      Thanks to Paul Bijnens
6573         * restore-src/amidxtaped.c:  ditto
6574         * server-src/amindexd.c:     ditto and no need to tell client 
6575                                      about reason for denial
6576         * common-src/amanda.h:       add proto of check_security
6577         * server-src/conffile.c:     don't list CRYPT in the summary report 
6578                                      for now
6579         * restore-src/restore.c:     set outfd correctly for amfetchdump cases
6580                                      Thanks to Paul Bijnens
6581
6582 2006-01-24  Ian Turner <ian@zmanda.com>
6583         * man/xml-source/amanda.conf.5.xml: Put documentation of 
6584           split-dump options in the right place. Thanks to Paul Bijnens 
6585           <pbijnens@users.sourceforge.net> for the fix.
6586         * man/xml-source/amanda.8.xml: ditto.
6587
6588 2006-01-23  Ian Turner <ian@zmanda.com>
6589         * server-src/taperscan.c (find_brand_new_tape_label): Start 
6590           brand new tape labels at 1 instead of 0. Thanks to Paul 
6591           Bijnens <pbijnens@users.sourceforge.net> for the fix.
6592
6593 2006-01-18  Jean-Louis Martineau <martineau@zmanda.com>
6594         * Amanda 2.5.0b2 released.
6595         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b2).
6596         * NEWS: Update for 2.5.0b2
6597         
6598 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
6599         * server-src/disk_history.c: Fix memory leak.
6600
6601 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
6602         * common-src/bsd-security.c: Fix memory leak.
6603         * common-src/tapelist.c: Fix memory leak.
6604         * restore-src/amidxtaped.c: Fix memory leak.
6605         * restore-src/restore.c: Fix memory leak.
6606         * server-src/amindexd.c: Fix memory leak.
6607         * server-src/conffile.c: Fix memory leak.
6608         * server-src/disk_history.c: Fix memory leak.
6609         * server-src/find.c: Fix memory leak.
6610
6611 2006-01-13  John Franks <jrfranks@zmanda.com>
6612         * client-src/amandad.c:      Remove SO_LINGER and TCP_NDELAY.
6613                                      Loop on I/O if EINTR or EAGAIN.
6614         * client-src/noop.c:         Loop on I/O if EINTR or EAGAIN.
6615         * client-src/sendbackup.c:   Remove SIGPIPE handler.
6616                                      Loop on I/O if EINTR or EAGAIN.
6617                                      Check for EPIPE on writes.
6618         * common-src/bsd-security.c: Loop on I/O if EINTR or EAGAIN.
6619         * common-src/stream.c:       Remove SO_LINGER and TCP_NDELAY.
6620         * common-src/util.c:         Loop on I/O if EINTR or EAGAIN.
6621         * recover-src/amrecover.c:   Write commanda atomically in sigint handler
6622         * recover-src/extract_list.c:Remove SIGPIPE handler.
6623                                      Loop on I/O if EINTR or EAGAIN.
6624                                      Check for EPIPE on writes.
6625                                      Remove shutdown functions.
6626         * restore-src/amfetchdump.c: Remove SIGPIPE handler.
6627         * restore-src/amidxtaped.c:  Remove SO_LINGER and TCP_NDELAY.
6628                                      Remove SIGPIPE handler.
6629                                      read_file_header does not return if it
6630                                      Fix infinite loop on EOF or error and
6631                                      fail if memory reallocation failure in
6632                                      get_client_line_fd.
6633         * restore-src/restore.c:     Remove SIGPIPE handler.
6634                                      Loop on I/O if EINTR or EAGAIN.
6635                                      Remove shutdown functions.
6636                                      Simplify read loop.
6637         * restore-src/restore.h:     Change read_file_header to return void
6638         * server-src/amcheck.c:      Use fullread() to handel EINTR etc.
6639                                      Remove unused variable.
6640         * server-src/changer.c:      Remove SO_LINGER and TCP_NDELAY.
6641                                      Use fullwrite on socket.
6642         * server-src/driverio.c:     Remove SO_LINGER and TCP_NDELAY.
6643         * server-src/taper.c:        Use fullwrite() to write data.
6644                                      Use fullread() to read data.
6645         * tape-src/output-file.c;    Use fullwrite() to write data.
6646
6647 2006-01-13  Jean-Louis Martineau <martineau@zmanda.com>
6648         * server-src/amcheck.c (start_server_check): Remove unused variable
6649           errstr.
6650         * restore-src/restore.c (restore): Remove unused variable s, l and
6651           dataeof.
6652
6653 2006-01-12  Jean-Louis Martineau <martineau@zmanda.com>
6654         * recover-src/extract_list.c (send_to_tape_server): Do only on write.
6655         * restore-src/amidxtaped.c (get_client_line_fd): New function to read
6656           one complete line from an fd.
6657
6658 2006-01-09  John Franks <jrfranks@zmanda.com>
6659         * common-src/amanda.h:  Include tcp.h
6660         * client-src/amandad.c: Set TCP_NODELAY and SO_LINGER on sockets.
6661         * common-src/dgram.c:   No linger on datagrams
6662         * common-src/stream.c:  Set TCP_NODELAY and SO_LINGER on sockets.
6663         * common-src/util.c:    Fix fullwrite to return # of bytes written
6664                                 before failure.
6665         * example/amanda.conf.in: Cleanup exclude list template.
6666                                 Use configure directlries instead of /usr/local
6667         * recover-src/extract_list.c: Cleanup read loops.
6668                                 Use real fullwrite instead of inline versions.
6669                                 Remove extra setting of LINGER on socket.
6670         * restore-src/amidxtaped.c: Set TCP_NODELAY and SO_LINGER on sockets.
6671         * restore-src/restore.c:Use real fullwrite instead of inline versions.
6672         * server-src/changer.c: Set TCP_NODELAY and SO_LINGER on sockets.
6673         * server-src/chunker.c: Use real fullwrite instead of inline versions.
6674         * server-src/driverio.c:Set TCP_NODELAY and SO_LINGER on sockets.
6675         * server-src/dumper.c:  Use real fullwrite instead of inline versions.
6676
6677 2006-01-09  Ian Turner <ian@zmanda.com>
6678         * changer-src/scsi-changer-driver.c: If there is a problem opening
6679           the device during GenericRewind, don't retry for 201 minutes; give
6680           up after only 200 seconds.
6681
6682 2006-01-09  Ian Turner <ian@zmanda.com>
6683         * server-src/taperscan.c: When doing taper-scan algorithm, properly
6684           accept new tapes.
6685
6686 2006-01-09  Ian Turner <ian@zmanda.com>
6687         * tape-src/tapeio.c: Generate a more reasonable message when
6688         reading an empty tape label on brand-new tapes.
6689
6690 2006-01-09  Ian Turner <ian@zmanda.com>
6691         * server-src/amcheck.c: Actually do what the documentation for 
6692           amcheck -w says; that is, overwrite labels on tapes.
6693
6694 2006-01-06  Kevin Till<ktill@zmanda.com>
6695         * server-src/amcheck.c: check if encrypt or compress program is 
6696           executable. Check encrypt/compress configuration.
6697         * server-src/dumper.c: kill encrypt child when dump is stopped
6698         * server-src/amcrypt.sh.in: check for aespipe
6699         * server-src/amaespipe.sh.in: adjust PATH
6700         * man/xml-source/amtapetype.8.xml: fix format problem.
6701
6702 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
6703         * recover-src/extract-list.c: Remove 'U' argument for gtar extraction.
6704
6705 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
6706         * restore-src/restore.c (flush_open_outputs): Another shutdown is
6707           required.
6708
6709 2006-01-05  John Franks <jrfranks@zmanda.com>
6710         * recover-src/extract_list.c: Extend linger timeouts to 60 seconds.
6711           Use shutdown() on sockets.
6712           Retry reads in case of EINTR or EAGAIN.
6713         * common-src/stream.c: set linger on correct socket.
6714           Extend linger timeouts to 60 seconds.
6715         * restore-src/restore.c: Fix compiler warnings.
6716         * Call shutdown in more cases.
6717
6718 2006-01-05  John Franks <jrfranks@zmanda.com>
6719         * client-src/amandad.c: Set SO_LINGER on sockets.
6720         * common-src/dgram.c:   Set SO_LINGER on sockets.
6721         * common-src/stream.c:  Set SO_LINGER on sockets.
6722         * common-src/util.c:    Return any bytes already read on error or EOF.
6723         * recover-src/extract_list.c: Set SO_LINGER on data socket.
6724           Fix printf of unterminated string data.
6725           Check return codes on socket header reads.
6726         * restore-src/amidxtaped.c: Set SO_LINGER on sockets.
6727           Check return codes on socket header reads.
6728         * restore-src/restore.c:
6729           Flush newline after operator prompt.
6730         * common-src/debug.c:
6731           Fix memory leak when debug file name already exists.
6732           Print error text upon hard open() error.
6733           Allow group members read only access to log files.
6734
6735 2006-01-05  Kevin Till<ktill@zmanda.com>
6736         * restore-src/restore.c: handle sigpipe. Some program (e.g. bzip2) closes reading pipe
6737           early when it sees trailing garbage after EOF.
6738
6739 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
6740         * common-src/amanda.h: Add a FD_COPY macro.
6741         * recover-src/extract_list.c (writer_intermediary): Don't use
6742           writer_intermediary, do the select locally.
6743
6744 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
6745         * restore-src/restore.c (flush_open_outputs): Call shutdown before
6746           close.
6747
6748 2005-12-30  John Franks <jrfranks@zmanda.com>
6749         * recover-src/extract_list.c:
6750           Fix double clearing of buffer during normal read path.
6751         * restore-src/amidxtaped.c
6752           Actually initialize changer if it is needed.  (Set use_changer
6753           before checking it...)
6754         * Fix control messages being sent down the data pipe when
6755           restoring to client that does not support split dumps.
6756         * Print error and exit if a split dump is needed during restore
6757           and client can not handle it. 
6758
6759 2005-12-30  Ian Turner <ian@zmanda.com>
6760         * common-src/fileheader.c: Remove xx/UNKNOWN split-dump header 
6761           syntax, in favor of xx/-1.
6762
6763 2005-12-29  John Franks <jrfranks@zmanda.com>
6764         * recover-src/display_commands.c
6765           Fix list deletion which did not update list root with NULL pointer.
6766           Make free_dir_item() a non-recursive function to prevent stack bloat.
6767           Fix list insertion code which inserts item in list initializes entry.
6768         * recover-src/extract_list.c
6769           Fix to initialize lditem before using it...
6770           Prevent multiple frees of cmd string.
6771           Do not free err which is only initialized with static string pointers.
6772           Fix typo which caused newstralloc() to free the wrong memory.
6773         * server-src/amindexd.c
6774           Fix Compiler warning of unused variable.
6775         * server-src/taperscan.c
6776           Fix Compiler warning of bogus format specifier.
6777   
6778 2005-12-29  Kevin Till<ktill@zmanda.com>
6779         * man/xml-source/amcrypt.8.xml: add new amcrypt man page
6780         * man/xml-source/amaespipe.8.xml: add new amaespipe man page
6781
6782 2005-12-29  Ian Turner <ian@zmanda.com>
6783         * man/xml-source/amanda.conf.5.xml: Document label_new_tapes 
6784           config option.
6785
6786 2005-12-28  Ian Turner <ian@zmanda.com>
6787         * recover-src/amrecover.h: Use dynamic strings in struct DIR_ITEM.
6788         * recover-src/display_commands.c: ditto
6789         * recover-src/extract_list.c: ditto. Also use dynamic strings in
6790           struct EXTRACT_LIST and struct EXTRACT_LIST_ITEM.
6791
6792 2005-12-28  Ian Turner <ian@zmanda.com>
6793         * common-src/amfeatures.h: Add three new amfeatures:
6794           fe_amindexd_marshall_in_OLSD, fe_amindexd_marshall_in_ORLD,
6795           fe_amindexd_marshall_in_DHST.
6796         * common-src/amfeatures.c: ditto.
6797         * server-src/amindexd.c: Talk well to older clients.
6798
6799 2005-12-23  Ian Turner <ian@zmanda.com>
6800         * server-src/taperscan.c: Don't crash if find_brand_new_tape_label
6801           returns NULL. Also, don't return NULL from
6802           find_brand_new_tape_label without a good excuse.
6803         
6804 2005-12-23  Kevin Till <ktill@zmanda.com>
6805         * client-src/client_util.c: change server_decrypt_option to
6806           server-decrypt-option
6807         * client-src/sendbackup.c:  change client_decrypt_option to
6808           client-decrypt-option
6809         * server-src/dumper.c:      ditto
6810         * common-src/amfeatures.c:  add crypt related amfeaturs
6811         * common-src/amfeatures.h:  ditto  
6812         * server-src/diskfile.c:    amfeatures checking and warns on
6813           mis-configuration
6814
6815 2005-12-23  Paddy Sreenivasan <paddy@zmanda.com>
6816          * restore-src/restore.c:
6817          * server-src/amtape.c:
6818          * server-src/taperscan.c : Make scan_init static function
6819
6820 2005-12-23  John Franks <jrfranks@zmanda.com>
6821         * server-src/taper.c: Reduce I/O's system call overhead by 30%
6822           in main read / write loop. 
6823
6824 2005-12-23  John Franks <jrfranks@zmanda.com>
6825         * recover-src/restore.c  Remove inapproriate aclose which caused
6826           broken restore pipe.
6827         * recover-src/extract_list.c  Fix and cleanup read_buffer()
6828           mainly to fix hole that drops parital buffer of data if end
6829           of file is reached or an error occured..  Touched up calling
6830           functions to make sure EOF/timeouts are handled correctly.
6831           Increased normal path read timeout value from on second to
6832           whatever READ_TIMEOUT is set to.
6833
6834 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
6835
6836         * restore-src/restore.c (restore): Remova an aclose.
6837
6838 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
6839
6840         * restore-src/amidxtaped.c (cleanup): Function registered with atexit
6841           to remove the log file.
6842
6843 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
6844
6845         * server-src/Makefile.am (noinst_HEADERS): Add taperscan.h.
6846
6847 2005-12-20  John Franks <jrfranks@zmanda.com>
6848
6849         * restore-src/restore.c: Remove unused variables.
6850                                  Fix uninitialize reference to bytes_read.
6851         * server-src/amcheck.c:  Remove unused variables.
6852                                  Include taperscan.h for missing prototype.
6853         * server-src/amtape.c:   Remove unused variables.
6854                                  Include taperscan.h for missing prototype.
6855         * server-src/taper.c:    Remove unused variables.
6856                                  Minor indenting changes.
6857         * server-src/taperscan.c:Remove unused variables.
6858                                  Fix typo which assigns NULL rather than
6859                                   checks for NULL.
6860                                  Commented out reference to auto_pos which
6861                                   is assigned but never used...
6862
6863 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
6864
6865         * common-src/fileheader.c (parse_file_header): Parse '/' in part.
6866         * common-src/fileheader.c (build_header): Add space ' ' before "part".
6867
6868 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
6869
6870         * server-src/reporter.c: Fix report of output size.
6871
6872 2005-12-19  Ian Turner <ian@zmanda.com>
6873         * server-src/taperscan.c: Check that automatic tape labels satisfy
6874         the labelstr.
6875
6876 2005-12-19  Ian Turner <ian@zmanda.com>
6877         * server-src/fileheader.c: Fix broken split-dump file headers.
6878
6879 2005-12-18  Jean-Louis Martineau <martineau@zmanda.com>
6880         Patch by Paul Bijnens
6881
6882         * server-src/amcheck.c: Tapelist file is regular file.
6883
6884 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
6885
6886         * restore-src/restore.c (get_block): Return a ssize_t.
6887         * restore-src/restore.c: convert ssize_t to long for printing.
6888         * restore-src/restore.c (restore>): Remove unused variable, outpipe,
6889            outpipe2, i.
6890
6891 2005-12-17  John R. Franks <jrfranks@zmanda.com>
6892
6893         * restore-src/restore.h (read_file_header, restore): Return a ssize_t
6894           instead of using a global variable bytes_read.
6895         * restore-src/restore.c: Use local variable instead of global
6896           bytes_read. Many memory management fixe. Fixe pipe handling,
6897         * restore-src/amrestore.c: Use new read_file_header and restore.
6898         * restore-src/amfetchdump.c: Use new read_file_header and restore.
6899
6900 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
6901         With Kevin Till <ktill@zmanda.com>
6902
6903         * common-src/fileheader.c (parse_file_header): Fix parsing of first
6904           line.
6905         * common-src/fileheader.c (build_header): Print crypt after programi
6906            and only if it is needed.
6907
6908 2005-12-14  Ian Turner <ian@zmanda.com>
6909
6910         * common-src/alloc.c: Add new function vstrextend, which extends an
6911           existing string.
6912         * common-src/amanda.h: Define vstrextend.
6913         * example/amanda.conf.in: Document new option
6914           label_new_tapes. Change default labelstr.
6915         * man/xml-source/amcheck.8.xml: Emphasize the destructiveness of
6916           amcheck -w.
6917         * restore-src/restore.c: Use the new changer_find interface.
6918         * server-src/Makefile.am: Add new file taperscan.c
6919         * server-src/amcheck.c: Use the taper-scan algorithm in taperscan.c,
6920           instead of the previous separate amcheck implementation.
6921         * server-src/amtape.c: Use the taper-scan algorithm in taperscan.c,
6922           instead of the previous separate amtape implementation. Also, use
6923           the new changer_find interface for other kinds of tape finding.
6924         * server-src/changer.c: Eliminate changer_scan. Change the API to
6925           changer_find, so that callers can pass a user-data object, instead
6926           of using globals.
6927         * server-src/changer.h: Declare and document new changer_find
6928           interface.
6929         * server-src/conffile.c: Add new config option label_new_tapes.
6930         * server-src/conffile.h: ditto.
6931         * server-src/taper.c: Use the taper-scan algorithm in taperscan.c,
6932           instead of the previous separate taper implementation. Also,
6933           combine tape-label-reading for ZFTAPE and non-ZFTAPE drives (the
6934           difference only matters on writing).
6935         * server-src/taperscan.c: Refactor the taper-scan algorithm from
6936           taper, amtape, and amcheck. Implement label_new_tapes feature.
6937         * server-src/taperscan.h: Declare and document new taperscan
6938           interface.
6939         * tape-src/tapeio.c: Notice the difference between a non-Amanda tape
6940           and some other tape-reading problem.
6941         * tape-src/tapeio.h: New declarations.
6942
6943 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
6944
6945         * server-src/reporter.c (handle_success): On a taper line, the outsize
6946           should only count dump to tape, not flush.
6947
6948 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
6949
6950         * server-src/amstatus.pl.in: Parse chunker DONE line to set output size.
6951
6952 2005-12-09  John Franks <jrfranks@zmanda.com>
6953
6954         * client-src/Makefile.am: Do not include tape library if
6955           configuring with --without-server option.
6956         * recover-src/Makefile.am: Do not include tape library if
6957           configuring with --without-server option.
6958
6959 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
6960
6961         * configure.in: Move the size detection after detection of large
6962           file support. That change the size of off_t.
6963
6964 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
6965
6966         * common-src/amanda.h: Set OFF_T_FMT to printf format of a off_t.
6967         * server-src/taper.c: Use OFF_T_FMT.
6968
6969 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
6970
6971         * configure.in: Set LL_FMT correctly.
6972         * server-src/conffile.c: Use LL_FMT.
6973
6974 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
6975
6976         * server-src/conffile.c: Maxdumpsize is a AM64.
6977         * server-src/planner.c: conf_maxdumpsize, total_size, tape_length and
6978           tape_mark are am64_t.
6979
6980 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
6981
6982         * configure.in: Check for sizeof of many type. Check printf format of
6983           a 64-bit integers.
6984         * common-src/amanda.h: Typedef am64_t to a 64 bits signed type,i
6985           set AM64_FMT to the printf format of a am64_t variable.
6986         * server-src/conffile.c: New AM64 type.
6987         * server-src/conffile.h(getconf_am64): Prototype.
6988
6989 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
6990
6991         * client-src/Makefile.am: Remove amqde.
6992         * client-src/sendsize.c: Remove code to call amqde.
6993         * client-src/amqde.c: Remove file.
6994         * configure.in: Remove '--with-qde' option.
6995
6996 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
6997
6998         * server-src/amindexd.c (reply, lreply, fast_lreply): Must use
6999           str_buffer_sizebuf instead of sizeof(bug).
7000
7001 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
7002
7003         * server-src/planner.c: Print the time in the FINISH line.
7004         * server-src/reporter.c: The estimate time is based on the planner
7005           FINISH line.
7006
7007 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
7008
7009         * common-src/Makefile.am (bsdsecurity_LDADD): Add ssh-security.
7010
7011 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
7012
7013         * server-src/holding.c (scan_holdingdisk): Static function.
7014         * server-src/taper.c (signal_handler, install_signal_handlers): Ditto.
7015         * server-src/reporter.c (output_strange,do_postscript_output): Ditto.
7016
7017 2005-12-04  Jean-Louis Martineau <martineau@zmanda.com>
7018
7019         * server-src/logfile.c (logtype_str): Add important ','.
7020
7021 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
7022
7023         * server-src/planner.c (setup_estimate): Fix wrong order for argument.
7024
7025 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
7026
7027         * server-src/driver.c (start_some_dumps): Don't test for
7028           cur_idle == NOT_IDLE.
7029
7030 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
7031
7032         * server-src/driverio.c (check_unfree_serial): New fonction to check
7033           unfreed serial number.
7034         * server-src/driverio.c (free_serial_dp): Set stable[s].dp to NULL.
7035         * server-src/driverio.h (check_unfree_serial): Prototype.
7036         * server-src/driver.c (main): Call check_unfree_serial.
7037
7038 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
7039         Patch by Franz Fischer
7040
7041         * config/acinclude.m4i: Fix for __alpha.
7042
7043 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
7044
7045         * common-src/util.c: Debug must end with '\n'.
7046
7047 2005-12-01  Jean-Louis Martineau <martineau@zmanda.com>
7048
7049         * configure.in: Amanda support x86_64-unknown-linux-gnu.
7050
7051 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
7052
7053         * common-src/rsh-security.c (rsh_sendpkt): buf is a char array.
7054         * common-src/ssh-security.c (rsh_sendpkt): buf is a char array.
7055         * config/acinclude.m4i (AX_CREATE_STDINT_H): Newer macro.
7056
7057 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
7058
7059         * client-src/rundump.c: undef USE_RUNDUMP before define.
7060
7061 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
7062         Patch by Franz Fischer
7063
7064         * client-src/amqde.c: Fix compiler warning.
7065
7066 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
7067         Patch by Franz Fischer
7068
7069         * common-src/event.h: Fix compiler warning.
7070         * server-src/conffile.h: Fix compiler warning.
7071
7072 2005-11-30  Kevin Till  <ktill@zmanda.com>
7073         
7074         * client-src/client_util.c add server-side, client-side encryption
7075           as well as custom compression. Custom compression patch is
7076           orginally created by Matthieu Lochegnies.
7077         * client-src/client_util.h Ditto
7078         * client-src/selfcheck.c Ditto
7079         * client-src/sendbackup-dump.c Ditto
7080         * client-src/sendbackup-gnutar.c Ditto
7081         * client-src/sendbackup.c Ditto
7082         * client-src/sendbackup.h Ditto
7083         * common-src/fileheader.c Ditto
7084         * common-src/fileheader.h Ditto
7085         * common-src/util.h Ditto
7086         * example/amanda.conf.in Ditto
7087         * man/xml-source/amanda.conf.5.xml Ditto
7088         * restore-src/amrestore.c Ditto
7089         * restore-src/restore.c Ditto
7090         * server-src/conffile.c Ditto
7091         * server-src/conffile.h Ditto
7092         * server-src/diskfile.c Ditto
7093         * server-src/diskfile.h Ditto
7094         * server-src/dumper.c Ditto
7095         
7096 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
7097
7098         * config/libtool.m4i: libtool 1.5.20
7099         * config/ltmain.sh: libtool 1.5.20
7100
7101 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
7102         Patch by Franz Fischer
7103
7104         * common-src/fileheader.c (build_header): Declation before instruction.
7105         * restore-src/amfetchdump.c: Don't use C++ style comment.
7106         * restore-src/restore.c: Don't use C++ style comment.
7107         * server-src/amindexd.c (reply, lreply, fast_lreply): buf must be
7108            dynamicaly allocated.
7109         * server-src/logfile.h: Don't use C++ style comment.
7110         * server-src/taper.c (free_split_buffer): Test splitbuf against NULL.
7111
7112 2005-11-22 Paddy Sreenivasan <paddy@zmanda.com>
7113         * common-src/rsh-security.c: Fix x86_64 compile warnings.
7114         * common-src/ssh-security.c: Fix x86_64 compile warnings.
7115         * man/Makefile.am: Added EXTRA_XML files.
7116         * man/xml-source/amanda.8.xml: Added spanning patch variables.
7117         * man/xml-source/amrecover.8.xml: Added amfetchdump to SEE ALSO.
7118         * xslt/global.entities: Removed file.
7119
7120 2005-11-20  Jean-Louis Martineau <martineau@zmanda.com>
7121         Patch by Jon H. LaBadie
7122
7123         * changer-src/chg-disk.sh.in: Check permission on file access.
7124
7125 2005-11-17  Paddy Sreenivasan <paddy@zmanda.com>
7126         * man/entities/global.entities: New file. Added man page entities.
7127         * man/entities/xinclude.dtd: New file.
7128         * man/xslt/man.xsl: Correct include path for settings.xsl.
7129
7130 2005-11-15  John R. Franks <jrfranks@zmanda.com>
7131         * changer-src/scsi-changer-driver.c: Fix IA-64 compile warnings.
7132         * common-src/rsh-security.c: Fix IA-64 compile warnings.
7133         * common-src/ssh-security.c: Fix IA-64 compile warnings.
7134         * regex-src/engine.c: Fix IA-64 compile warnings.
7135         * regex-src/regexec.c: Fix IA-64 compile warnings.
7136
7137 2005-11-15  Paddy Sreenivasan <paddy@zmanda.com>
7138
7139         * configure.in:  Changed defaults for tape_dev and nr_tape_dev.
7140         * example/amanda.conf.in: Leave only changerfile definition
7141           uncommented.
7142         * man/xml-source/amanda.conf.5.xml: Updated defaults for 
7143           tapedev and rawtapedev
7144
7145 2005-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7146
7147         * server-src/planner.c: Fix incronly.
7148
7149 2005-11-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7150
7151         * man/Makefile.am: Set man_MANS,
7152
7153 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7154
7155         * man/Makefile.am: Set man5_MANS and man8_MANS,
7156           install-data-hook use them.
7157
7158 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7159         Patch by Olivier Cherrier
7160
7161         * man/Makefile.am (install-data-hook): Set protection correclty
7162           for man5 and man8.
7163
7164 2005-10-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7165
7166         * common-src/util.c (bind_portrange): Increase port in all case.
7167
7168 2005-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7169
7170         * server-src/conffile.c: Allow runtapes==0.
7171         * server-src/driver.c: Use a global conf_runtapes. Don't start a
7172           taper if runtapes==0.
7173         * server-src/reporter.c: Don't print The next tapes if runtapes==0.
7174
7175
7176 2005-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7177
7178         * Amanda 2.5.0b1 released.
7179         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b1).
7180         * NEWS: Update for 2.5.0b1.
7181
7182 2005-10-25  Ian Turner <ian@zmanda.com>
7183         
7184         * man/Makefile.am: include amfetchdump.8.
7185         * man/xml-source/amadmin.8.xml: Add spanning-patch documentation.
7186         * man/xml-source/amanda.8.xml: ditto
7187         * man/xml-source/amrecover.8.xml: ditto
7188         * man/xml-source/amfetchdump.8.xml: ditto (new file)
7189         * man/xslt/global.entities: Add myself, Zmanda Inc.
7190         
7191 2005-10-24  Jean-Louis Martineau <martineau@zmanda.com>
7192
7193         * client-src/sendsize.c (getsize_wrapper): Add a NULL at the end of
7194           the argvchild array.
7195
7196 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
7197
7198         * server-src/server_util.c (getcmd): Print DEBUG to stderr.
7199
7200 2005-10-20  Ian Turner <ian@zmanda.com>
7201
7202         * configure.in: Check for xsltproc.
7203         * man/Makefile.am: Properly build, clean, and distribute generated
7204           manpages from XML source.
7205         * man/amadmin.8: Remove from CVS
7206         * man/amanda.8: Remove from CVS
7207         * man/amanda.conf.5: Remove from CVS
7208         * man/amcheck.8: Remove from CVS
7209         * man/amcheckdb.8: Remove from CVS
7210         * man/amcleanup.8: Remove from CVS
7211         * man/amdd.8: Remove from CVS
7212         * man/amdump.8: Remove from CVS
7213         * man/amflush.8: Remove from CVS
7214         * man/amgetconf.8: Remove from CVS
7215         * man/amlabel.8: Remove from CVS
7216         * man/ammt.8: Remove from CVS
7217         * man/amoverview.8: Remove from CVS
7218         * man/amplot.8: Remove from CVS
7219         * man/amrecover.8: Remove from CVS
7220         * man/amreport.8: Remove from CVS
7221         * man/amrestore.8: Remove from CVS
7222         * man/amrmtape.8: Remove from CVS
7223         * man/amstatus.8: Remove from CVS
7224         * man/amtape.8: Remove from CVS
7225         * man/amtapetype.8: Remove from CVS
7226         * man/amtoc.8: Remove from CVS
7227         * man/amverify.8: Remove from CVS
7228         * man/amverifyrun.8: Remove from CVS
7229         * man/xml-source/amadmin.8.xml: Add from xml-docs
7230         * man/xml-source/amanda.8.xml: Add from xml-docs
7231         * man/xml-source/amanda.conf.5.xml: Add from xml-docs
7232         * man/xml-source/amcheck.8.xml: Add from xml-docs
7233         * man/xml-source/amcheckdb.8.xml: Add from xml-docs
7234         * man/xml-source/amcleanup.8.xml: Add from xml-docs
7235         * man/xml-source/amdd.8.xml: Add from xml-docs
7236         * man/xml-source/amdump.8.xml: Add from xml-docs
7237         * man/xml-source/amflush.8.xml: Add from xml-docs
7238         * man/xml-source/amgetconf.8.xml: Add from xml-docs
7239         * man/xml-source/amlabel.8.xml: Add from xml-docs
7240         * man/xml-source/ammt.8.xml: Add from xml-docs
7241         * man/xml-source/amoverview.8.xml: Add from xml-docs
7242         * man/xml-source/amplot.8.xml: Add from xml-docs
7243         * man/xml-source/amrecover.8.xml: Add from xml-docs
7244         * man/xml-source/amreport.8.xml: Add from xml-docs
7245         * man/xml-source/amrestore.8.xml: Add from xml-docs
7246         * man/xml-source/amrmtape.8.xml: Add from xml-docs
7247         * man/xml-source/amstatus.8.xml: Add from xml-docs
7248         * man/xml-source/amtape.8.xml: Add from xml-docs
7249         * man/xml-source/amtapetype.8.xml: Add from xml-docs
7250         * man/xml-source/amtoc.8.xml: Add from xml-docs
7251         * man/xml-source/amverify.8.xml: Add from xml-docs
7252         * man/xml-source/amverifyrun.8.xml: Add from xml-docs
7253         * man/xslt/expand-sambadoc.xsl: Add from xml-docs
7254         * man/xslt/global.entities: Add from xml-docs
7255         * man/xslt/man.xsl: Add from xml-docs
7256         * man/xslt/settings.xsl: Add from xml-docs
7257
7258 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
7259
7260         * server-src/amstatus.pl.in: a FLUSH command can't be in an estimate
7261           phase.
7262         * server-src/driver.c: Start autoflush while waiting for estimate.
7263         * server-src/planner.c: Write FLUSH line before estimate.
7264
7265 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
7266         Patch by John R. Franks <jrfranks@zmanda.com>
7267
7268         * server-src/taper.c (create_split_buffer): Should not use sizeof().
7269
7270 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
7271
7272         * server-src/taper.c (read_file): Move the putresult(DONE) to the
7273           right place, some cleanup.
7274
7275 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
7276
7277         * server-src/planner.c: Increase DEFAULT_DUMPRATE to 1024 K/s.
7278
7279 2005-10-17  Ian Turner <ian@zmanda.com>
7280
7281         * Changelog: Fix line breaks.
7282         * restore-src/restore.c: Give more useful FSF error messages.
7283         * recover-src/extract_list.c: Do better error checking on passed port
7284           number.
7285         * common-src/tapelist.c: Do proper memory management of strings.
7286           Otherwise really bad stuff happens.
7287
7288 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
7289
7290         * server-src/taper.c: Set SIGPIPE to SIG_IGN, the code already
7291           handle it correctly.
7292
7293 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
7294
7295         * server-src/taper.c (signal_handler): Don't REMOVE_SHARED_MEMORY, it
7296           is done by exit.
7297
7298 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
7299
7300         * server-src/driverio.c (serial2disk): Print str if error.
7301
7302 2005-10-15  Paddy Sreenivasan <paddy@zmanda.com>
7303
7304         * server-src/taper.c: Shared memory need not be removed in normal paths.
7305           Done as part of atexit. 
7306
7307 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
7308         Patch by John R. Franks <jrfranks@zmanda.com>
7309
7310         * changer-src/scsi-aix.c: calls to open/openx guages success by
7311           checking for a file descriptor greater than 0.  0 is also a valid
7312           descriptor so the check should be >= 0.
7313           Calls to SCSI_OpenDevice does not check for error return.
7314           Calls to SCSI_OpenDevice does not check for error return.
7315           Calls to SCSI_OpenDevice does not check for error return.
7316           Call to opendir() does not check for error.
7317         * changer-src/scsi-hpux_new.c: Ditto.
7318         * changer-src/scsi-irix.c: Ditto.
7319         * changer-src/scsi-linux.c: Ditto.
7320         * changer-src/scsi-solaris.c: Ditto.
7321         * client-src/selfcheck.c: Call to open() does not check for error.
7322         * client-src/sendbackup.c: Call to freopen() does not check for error.
7323         * client-src/sendsize.c: Call to open() does not check for error.
7324         * common-src/bsd-security.c: Call to open() does not check for error.
7325         * common-src/file.c: Call to open() does not check for error.
7326         * restore-src/amrestore.c: Calls to tape_open() do not always check
7327           return code.  open() is called with open flags set to 0
7328           (Call always fails with an EINVAL)
7329         * restore-src/restore.c: fopen() return error check  is "fopen() < 0".
7330           fopen returns a pointer and the proper check should be
7331           "fopen() == NULL".
7332           Call to open() does not check for error.
7333         * tape-src/tapeio.c: tape_open() is called here and other places with a
7334           variable number of arguments, and yet is not defined as a varargs
7335           function...
7336         * tape-src/tapeio.h: Prototype for tape_open.
7337
7338 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
7339         Patch by Paddy Sreenivasan <paddy@zmanda.com>
7340
7341         * client-src/sendsize.c: Log message changes.
7342         * server-src/taper.c: And an atexit function to detach shared memory.
7343           Trap some signal and detach shared memory.
7344
7345 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
7346
7347         * regex-src/regcomp.c (findmust): Initialized start to NULL.
7348
7349 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
7350         Patch by John R. Franks <jrfranks@zmanda.com>
7351
7352         * regex-src/cclass.h: Fixed to add missing braces and reformat long
7353           strings to fix in 80 columns.
7354         * regex-src/cname.h: Fixed by adding braces and tidying up code a bit.
7355         * regex-src/regcomp.c (p_ere): Initialized prevback and prevfwd to 0.
7356           ifdef out unused mcsub, mcin and mcfind functions.
7357           (findmust) Initialized newstart to NULL.
7358         * regex-src/regerror.c: Adds missing braces.
7359         * regex-src/regexec.c (nope): Use only in assert, so it is not only
7360           defined if NDEBUG is not defined.
7361
7362 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
7363         Patch by John R. Franks <jrfranks@zmanda.com>
7364
7365         * common-src/krb4-security.c (krb4_security_dummy): Rename from dummy,
7366           it is not static int.
7367         * common-src/krb5-security.c (krb5_security_dummy): Rename from dummy,
7368           it is not static int.
7369
7370 2005-10-13  Jean-Louis Martineau <martineau@zmanda.com>
7371
7372         * common-src/util.c (bind_portrange): New argument proto.
7373           Check for reserved port.
7374         * common-src/util.h (bind_portrange): New prototype.
7375         * common-src/bsd-security.c (bind_portrange): New prototype.
7376         * common-src/dgram.c: Add "udp" as argument to bind_portrange.
7377         * common-src/stream.c: Add "tcp" as argument to bind_portrange.
7378
7379 2005-10-12  Jean-Louis Martineau <martineau@zmanda.com>
7380
7381         * restore-src/amidxtaped.c (check_security_buffer): i is a socklen_t.
7382         * restore-src/amidxtaped.c (main): Remove i, fd, amrestore_path, pid,
7383           isafile, stat_tape, tapename, s, fp, ch and errstr variable.
7384
7385 2005-10-11  Ian Turner <ian@zmanda.com>
7386         Patch by  Jean-Louis Martineau <martineau@zmanda.com>
7387         
7388         * restore-src/amfetchdump.c: Remove unused variable debug.
7389         * restore-src/amidxtaped.c: Remove lock_logfile(), which is also 
7390           in restore.c.
7391         * restore-src/Makefile.am: Include libamanda twice, to fix build 
7392           on some machines.
7393
7394 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7395
7396         * restore-src/Makefile (noinst_HEADERS): Add restore.h.
7397         * restore-src/restore.c (search_tapes): Add the fourth argument to
7398           read_file_header.
7399
7400 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7401
7402         * server-src/conffile.c: dpcur.s_split_diskbuffer must be initialize
7403           to 0.
7404         * server-src/reporter.c (handle_partial): Set repdata to the result
7405           of handle_success.
7406         * server-src/taper.c: Set the first-file.
7407
7408 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7409
7410         * client-src/client_util.c, server-src/amcheck.c,
7411           server-src/reporter.c: Add missing type for arguments.
7412
7413 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7414
7415         * server-src/taper.c (tape_writer_side): detach_buffers on normal exit.
7416
7417 2005-10-10  Ian Turner <ian@zmanda.com>
7418
7419         * server-src/amtape.h: Apply tape-spanning patch by John Stange
7420           <building@cs.umd.edu> as ported to 2.5.0 by Ian Turner, with
7421           contributions by Christopher Pascoe <c.pascoe@itee.uq.edu.au>.
7422         * configure.in: Ditto
7423         * amplot/Makefile.am: Ditto
7424         * changer-src/Makefile.am: Ditto
7425         * client-src/Makefile.am: Ditto
7426         * common-src/Makefile.am: Ditto
7427         * common-src/amanda.h: Ditto
7428         * common-src/amfeatures.c: Ditto
7429         * common-src/amfeatures.h: Ditto
7430         * common-src/fileheader.c: Ditto
7431         * common-src/fileheader.h: Ditto
7432         * common-src/match.c: Ditto
7433         * common-src/tapelist.c: Ditto
7434         * common-src/tapelist.h: Ditto
7435         * example/amanda.conf.in: Ditto
7436         * man/Makefile.am: Ditto
7437         * recover-src/amrecover.c: Ditto
7438         * recover-src/amrecover.h: Ditto
7439         * recover-src/display_commands.c: Ditto
7440         * recover-src/extract_list.c: Ditto
7441         * restore-src/Makefile.am: Ditto
7442         * restore-src/amfetchdump.c: Ditto
7443         * restore-src/amfetchdump.h: Ditto
7444         * restore-src/amidxtaped.c: Ditto
7445         * restore-src/amrestore.c: Ditto
7446         * restore-src/restore.c: Ditto
7447         * restore-src/restore.h: Ditto
7448         * server-src/Makefile.am: Ditto
7449         * server-src/amadmin.c: Ditto
7450         * server-src/amindexd.c: Ditto
7451         * server-src/amoverview.pl.in: Ditto
7452         * server-src/amtoc.pl.in: Ditto
7453         * server-src/amverify.sh.in: Ditto
7454         * server-src/changer.c: Ditto
7455         * server-src/conffile.c: Ditto
7456         * server-src/conffile.h: Ditto
7457         * server-src/disk_history.c: Ditto
7458         * server-src/disk_history.h: Ditto
7459         * server-src/diskfile.c: Ditto
7460         * server-src/diskfile.h: Ditto
7461         * server-src/driver.c: Ditto
7462         * server-src/driverio.c: Ditto
7463         * server-src/find.c: Ditto
7464         * server-src/find.h: Ditto
7465         * server-src/holding.c: Ditto
7466         * server-src/holding.h: Ditto
7467         * server-src/logfile.c: Ditto
7468         * server-src/logfile.h: Ditto
7469         * server-src/planner.c: Ditto
7470         * server-src/reporter.c: Ditto
7471         * server-src/server_util.c: Ditto
7472         * server-src/server_util.h: Ditto
7473         * server-src/taper.c: Ditto
7474
7475 2005-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7476
7477         * server-src/taper.c: Change message: on new tape due to
7478
7479 2005-10-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7480         Patch by John R. Franks 
7481
7482         * common-src/amflock.c (main): Don't call safe_fd, it's not needed
7483           during configure.
7484         * configure.in: '#include <sys/types.h>' in the check
7485           'for Linux like scsi support (sg)'
7486
7487 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7488
7489         * client-src/amandad.c (writebuf): Call waitpid in the parent.
7490
7491 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7492
7493         * client-src/amandad.c (service_delete): Remove call to sleep.
7494         * common-src/bsd-security.c: Add bsdprintf. Add more debug.
7495           The handle is used as a string, instead of 2 int.
7496
7497 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7498
7499         * common-src/rsh-security.c: rshprintf should call dbprint.
7500         * common-src/ssh-security.c: rshprintf should call dbprint, add many
7501           rshprintf.
7502         * common-src/event.c: Add eventprintf, use it. Add debug_prefix_time
7503           to the log. 
7504
7505 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7506
7507         * common-src/stream.c: len is a socklen_t.
7508         * server-src/amindexd.c: Add socklen as a socklen_t.
7509         * restore-src/amidxtaped.c: Add socklen as a socklen_t.
7510         * tape-src/tapetype.c: Change printf format.
7511         * server-src/amlabel.c: Add a variable isa_zftape. init fd to -1.
7512         * server-src/dumper.c: Init outfd to -1.
7513         * common-src/file.c (areads_getbuf): First argument is const.
7514
7515 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7516
7517         * server-src/reporter.c: Don't trunk hostname/diskname in
7518           'FAILURE AND STRANGE DUMP SUMMARY' section.
7519
7520 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7521
7522         * server-src/chunker.c (main): Remove outfd.
7523
7524 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7525
7526         * server-src/conffile.c, server-src/diskfile.c, server-src/infofile.c,
7527           client-src/getfsent.c, common-src/statfs.c, common-src/token.c
7528           (main): Remove fd declaration.
7529
7530 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7531
7532         * client-src/runtar.c: 'e' and 'bdf' are only needed if GNUTAR.
7533
7534 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7535
7536         * common-src/sl.c (insert_sort_sl). Typo.
7537
7538 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7539
7540         * config/config.guess: Update from automake 1.9.5.
7541         * config/config.sub: Update from automake 1.9.5.
7542         * config/depcomp: Update from automake 1.9.5.
7543         * config/install-sh: Update from automake 1.9.5.
7544         * config/missing: Update from automake 1.9.5.
7545         * config/mkinstalldirs: Update from automake 1.9.5.
7546         * config/ltmain.sh: Update from libtool-1.5.16.
7547         * config/libtool.m4i: Update from libtool-1.5.16.
7548
7549 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7550
7551         * common-src/bsd-security.c: Fix small bug.
7552
7553 2005-09-22  John R. Jackson <jrj@purdue.edu>
7554
7555         * configure.in: If --without-server is specified, either on the
7556           command line or via config.site, make sure --without-restore
7557           is also in effect.  Avoids compilation errors if mismatched.
7558         * example/config.site: Document above.
7559
7560 2005-09-21  John R. Jackson <jrj@purdue.edu>
7561
7562         * server-src/getconf.c: Allow CLIENT_LOGIN to be retrieved via
7563           "amgetconf build.CLIENT_LOGIN".
7564
7565 2005-09-21  John R. Jackson <jrj@purdue.edu>
7566
7567         * server-src/amlabel.c: 'int fd' is only needed if HAVE_LINUX_ZFTAPE_H
7568           is defined.
7569
7570 2005-09-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7571
7572         * server-src/amlabel.c: 'int fd' is needed.
7573
7574 2005-09-20  John R. Jackson <jrj@purdue.edu>
7575
7576         * server-src/reporter.c: Fix minor typo noticed by Scott R. Burns
7577           <Scott.Burns@Netcontech.Com>.
7578
7579 2005-09-20  John R. Jackson <jrj@purdue.edu>
7580
7581         * common-src/file.c: Create safe_fd() to do common file descriptor
7582           safety operations at the start of every program.  In addition
7583           to closing everything from three on up that used to be done
7584           with explicit code, make sure stdin, stdout and stderr are
7585           open per a potential (but unlikely) security report from Ben
7586           Schwarz <bschwarz@EECS.berkeley.EDU>.
7587         * common-src/amanda.h: Ditto.
7588         * client-src/amandad.c: Ditto.
7589         * client-src/calcsize.c: Ditto.
7590         * client-src/getfsent.c: Ditto.
7591         * client-src/killpgrp.c: Ditto.
7592         * client-src/rundump.c: Ditto.
7593         * client-src/runtar.c: Ditto.
7594         * client-src/selfcheck.c: Ditto.
7595         * client-src/sendbackup.c: Ditto.
7596         * client-src/sendsize.c: Ditto.
7597         * client-src/versionsuffix.c: Ditto.
7598         * common-src/amflock.c: Ditto.
7599         * common-src/rsh-security.c: Ditto.
7600         * common-src/ssh-security.c: Ditto.
7601         * common-src/statfs.c: Ditto.
7602         * common-src/token.c: Ditto.
7603         * recover-src/amrecover.c: Ditto.
7604         * restore-src/amidxtaped.c: Ditto.
7605         * restore-src/amrestore.c: Ditto.
7606         * server-src/amadmin.c: Ditto.
7607         * server-src/amcheck.c: Ditto.
7608         * server-src/amcleanupdisk.c: Ditto.
7609         * server-src/amflush.c: Ditto.
7610         * server-src/amindexd.c: Ditto.
7611         * server-src/amlabel.c: Ditto.
7612         * server-src/amlogroll.c: Ditto.
7613         * server-src/amtape.c: Ditto.
7614         * server-src/amtrmidx.c: Ditto.
7615         * server-src/amtrmlog.c: Ditto.
7616         * server-src/chunker.c: Ditto.
7617         * server-src/conffile.c: Ditto.
7618         * server-src/diskfile.c: Ditto.
7619         * server-src/driver.c: Ditto.
7620         * server-src/getconf.c: Ditto.
7621         * server-src/infofile.c: Ditto.
7622         * server-src/planner.c: Ditto.
7623         * server-src/reporter.c: Ditto.
7624         * server-src/taper.c: Ditto.
7625         * server-src/dumper.c: Ditto plus remove incorrect chdir to hard
7626           coded "/tmp/amanda".
7627
7628 2005-09-20  John R. Jackson <jrj@purdue.edu>
7629
7630         * client-src/calcsize.c: Fix format string.
7631         * server-src/diskfile.c: Fix compiler warnings.
7632         * server-src/planner.c: Fix compiler warnings.
7633
7634 2005-09-20  John R. Jackson <jrj@purdue.edu>
7635
7636         * common-src/amanda.h: Add dbreopen() so debug file can be closed
7637           and then reopened if needed.
7638         * common-src/debug.c: Ditto.
7639         * client-src/runtar.c: Close the debug file (fd 10) around the
7640           exec of GNU tar.  Newer versions complain about stray file
7641           descriptors.
7642         * server-src/getconf.c: Use dbreopen() to create the debug file.
7643           Do not try to open config file unless needed (allows clients to
7644           use build.XXX/dbopen.XXX/dbclose.XXX).
7645
7646 2005-09-20  John R. Jackson <jrj@purdue.edu>
7647
7648         * client-src/sendbackup-dump.c: Ignore a new message from Solaris
7649           vxdump.
7650
7651 2005-09-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7652
7653         * common-src/bsd-security.c: Generate a unique event_id, thei
7654           proto_handle is not always unique.
7655
7656 2005-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7657
7658         * server-src/amverify.sh.in: Don't check for EOI, it's buggy.
7659
7660 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7661
7662         * server-src/driverio.c: Don't save history with size < 0.
7663
7664 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7665         Patch by Geert Uytterhoeven <geert@linux-m68k.org>
7666
7667         * server-src/planner.c: Don't use history with size < 0.
7668
7669 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7670         Patch Paul Bijnens <paul.bijnens@xplanation.com>
7671
7672         * server-src/planner.c(delay_dumps): Delay incremental dump also
7673           larger than tape.
7674
7675 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7676         Patch by Orion Poplawski <orion@cora.nwra.com>
7677
7678         * server-src/amoverview.pl.in: Add options -last, -num0 and -togo0.
7679         * man/amoverview.8: Document -last, -num0 and -togo0.
7680
7681 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7682         Patch by Orion Poplawski <orion@cora.nwra.com>
7683
7684         * server-src/driver.c: Make tape_length and tape_left unsigned long.
7685
7686 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7687         Patch by Stefan G. Weichinger <monitor@oops.co.at>
7688
7689         * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases.
7690
7691 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7692
7693         Bug found by John E Hein <jhein@timing.com>.
7694         * server-src/amadmin.c: Fix of by one with NB_HISTORY.
7695         * server-src/infofile.c:x: Fix of by one with NB_HISTORY.
7696
7697 2005-06-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7698         Patch by Jay Fenlason <fenlason@redhat.com>
7699
7700         * client-src/sendsize.c: Fix dbprintf call.
7701
7702 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7703             Stefan G. Weichinger <monitor@oops.co.at>
7704
7705         * example/amanda.conf.in: edited the default-value for the
7706                                   holdingdisk-usage to "use -100 Mb".
7707                                   The old value "use 290 Mb" didn't make much
7708                                   sense anymore.
7709
7710 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7711
7712         * server-src/amverifyrun.sh.in: Remove buggy space.
7713
7714 2005-05-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7715
7716         * server-src/amadmin.c: Add [--days <num>] argument to tape subcommand.
7717
7718 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7719
7720         * example/amanda.conf.in: Update from 2.4.5.
7721
7722 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7723
7724         * docs/*: New documentation from xml-docs.
7725         * docs/Makefile.am (pkgdata_DATA): Update for new files.
7726
7727 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7728
7729         * man/Makefile.am (COMMON_MAN_PAGES): Add amanda.conf.5.
7730
7731 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7732
7733         * man/*: Use man pages form xml-docs.
7734         * configure.in (AC_CONFIG_FILES): Remove all man pages.
7735         * man/Makefile.am (EXTRA_DIST): Add amadmin.8 amanda.8 amanda.conf.5 
7736           amcheck.8 amcheckdb.8 amcleanup.8 amdump.8 amflush.8 amgetconf.8
7737           amlabel.8 amoverview.8 amreport.8 amrecover.8 amrmtape.8 amstatus.8
7738           amtapetype.8 amtoc.8 amverify.8 amverifyrun.8
7739
7740 2005-05-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7741
7742         * common-src/rsh-security.c (net_read_fillbuf): Read only a packet,
7743           nothing more.
7744         * common-src/ssh-security.c (net_read_fillbuf): Read only a packet,
7745           nothing more.
7746         * common-src/rsh-security.c (conn_put): Don't kill the process, only do
7747           a wait with WNOHANG.
7748         * common-src/ssh-security.c (conn_put): Don't kill the process, only do
7749           a wait with WNOHANG.
7750
7751 2005-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7752
7753         * changer-src/chg-zd-mtx.sh.in: Improve handling of
7754           "Unknown Storage Element Loaded".
7755
7756 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7757         - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052
7758
7759         * server-src/amverifyrun.sh.in: Filter changer log file.
7760
7761 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7762
7763         * server-src/amcheck.c: Improve messages.
7764
7765 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7766
7767         * client-src/sendsize.c (generic_calc_estimates): Use amname instead
7768           of dirname in message.
7769
7770 2005-03-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7771
7772         * server-src/conffile.h: Rename getcont_unit_divisor to
7773           getconf_unit_divisor.
7774         * server-src/amadmin.c: Use getconf_unit_divisor.
7775         * server-src/amcheck.c: Use getconf_unit_divisor.
7776         * server-src/conffile.c: Use getconf_unit_divisor.
7777         * server-src/conffile.c (unit_divisor): Init to 1.
7778         * server-src/reporter.c: Use getconf_unit_divisor. The mb macro always
7779           divide by 1024. Add the du macro. Use mb or du where appropriate.
7780
7781 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7782
7783         * server-src/infofile.h (history_t): Add secs field.
7784         * server-src/infofile.c (read_txinfofile): Parse info file with secs
7785           in history.
7786         * server-src/infofile.c (write_txinfofile): Write secs in history.
7787         * server-src/driverio.c (update_info_dumper): Update secs in history.
7788
7789 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7790
7791         * server-src/planner.c: Improve server estimate.
7792         * server-src/planner.c: Write server estimate like others estimate.
7793
7794 2005-02-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7795
7796         * server-src/amstatus.pl.in: last_level is negative, on new disk.
7797
7798 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7799
7800         * server-src/amstatus.pl.in: Use '-?' to match negative values
7801           instead of '-*'.
7802
7803 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7804         Patch by Orion Poplawski <orion@cora.nwra.com>
7805
7806         * server-src/amoverview.pl.in: Print the total number of level 0
7807           dumps for each disk and the number of runs until the last level 0
7808           dump will be overwritten.
7809
7810 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7811         Patch by Phil Homewood <pdh@snapgear.com>
7812
7813         * server-src/amoverview.pl.in: Add -skipmissed option.
7814
7815 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7816
7817         * server-src/driver.c: Print the chunksize to the log.
7818
7819 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7820
7821         * client-src/calcsize.c: Print estimate to STDERR.
7822         * client-src/sendsize.c (generic_calc_estimates): Read calcsize result,
7823           and send it to amandad. Write debuging message.
7824
7825 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7826         Patch by Franz G. Fischer
7827
7828         * server-src/conffile.c: Adds a value type LONG and a val_t.l long
7829           union member and changes get_number() to return long and
7830           get_simple() to fill val_t.l if called for a long value.  The
7831           get_simple() calls have been changed to LONG for typetype_t.blocksize
7832           typetype_t.length, typetype_t.filemark, holdingdisk_t.disksize and
7833           holdingdisk_t.chunksize.
7834
7835 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7836
7837         * server-src/amdump.sh.in: Redirect in append mode.
7838         * server-src/driver.c: Set stdout and stderr to not buffered.
7839         * server-src/planner.c: Set stderr to not buffered.
7840           Print 'setup_estimate:' on one line.
7841         * server-src/amstatus.pl.in: Parse new 'setup_estimate:' line.
7842
7843 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7844
7845         * client-src/calcsize.c: Improve estimate for sparse file and count
7846           space for filenames.
7847
7848 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7849
7850         * server-src/planner.c: Improve message if no incremental estimate.
7851
7852 2004-12-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7853         Patch by Christopher Pascoe <c.pascoe@itee.uq.edu.au>
7854
7855         * common-src/match.c (match_glob, match_tar): Don't amfree(regex)
7856           before calling error().
7857
7858 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7859
7860         * server-src/driver.c (startaflush): Use ALGO_SMALLEST if nothing fit.
7861
7862 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7863
7864         * server-src/driver.c: Typo.
7865
7866 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7867
7868         * restore-src/amrestore.c: Should now work correctly with empty file.
7869         * server-src/amverify.sh.in: Parse "End-of-Information detected."
7870           message from amrestore.
7871
7872 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7873
7874         * server-src/driver.c: tape_left should not become negative.
7875
7876 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7877         Patch by Orion Poplawski <orion@cora.nwra.com>
7878
7879         * server-src/diskfile.c: Parse negative spindle (-1).
7880
7881 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7882
7883         * server-src/amadmin.c: Balance subcommand use displayunit.
7884         * server-src/amcheck.c: Small cleanup.
7885
7886 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7887
7888         * restore-src/amrestore.c: Undo patch from 2004-11-11, it break
7889           the file: dirver.
7890
7891 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7892
7893         * server-src/amstatus.pl.in: Remove trace.
7894
7895 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7896
7897         * server-src/diskfile.c: Compilation fix.
7898
7899 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7900
7901         * server-src/conffile.c: Parse displayunit,
7902           new fonction getcont_unit_divisor().
7903         * server-src/conffile.h: Prototype of getcont_unit_divisor().
7904         * server-src/amcheck.c: Use displayunit to display holding disk size.
7905         * server-src/amstatus.pl.in: Use displayunit to display dump size.
7906         * server-src/reporter.c: use displayunit to display dump size.
7907         * Document displayunit.
7908
7909 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7910
7911         * server-src/reporter.c: Change 'Daily' for 'Incr.'.
7912
7913 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7914
7915         * server-src/amstatus.pl.in Fix for level -1.
7916
7917 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7918         Patch by Daniel Widyono <widyono@seas.upenn.edu>
7919
7920         * changer-src/chg-zd-mtx.sh.in: Fix for library with barcode.
7921
7922 2004-11-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7923
7924         * restore-src/amrestore.c: Read empty file.
7925
7926 2004-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7927
7928         * tape-src/tapetype.c: Use new tape.
7929
7930 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7931
7932         * server-src/amstatus.pl.in: Display partial estimate.
7933
7934 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7935
7936         * server-src/diskfile.c (read_diskline): A spindle must be numerical.
7937
7938 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7939
7940         * server-src/holding.c (rename_tmp_holding): Always rename files.
7941
7942 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7943
7944         * server-src/driver.c: Print message when too many retry.
7945         * server-src/amstatus.pl.in: Detect a failed dump after too many retry.
7946         * amplot/amplot.awk: Parse these message.
7947
7948 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7949
7950         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
7951           if dumper returns DONE and taper returns TRYAGAIN.
7952
7953 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7954
7955         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
7956           if dumper returns TRYAGAIN and taper returns DONE.
7957
7958 2004-10-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7959
7960         * server-src/amflush.c: Don't start a driver if nothing to flush.
7961
7962 2004-10-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7963         Patch by Eric Siegerman <erics@telepres.com>
7964
7965         * example/3hole.ps: Fix for multiple tape.
7966
7967 2004-10-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7968
7969         * server-src/amverify.sh.in: Terminate if no tape online.
7970
7971 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7972
7973         * server-src/amadmin.c (main): Call check_dumpuser() as soon as posible.
7974
7975 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7976
7977         * server-src/conffile.c (getconf_byname): Special case for typ == BOOL.
7978
7979 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7980
7981         * server-src/planner.c (promote_hills): Use dumpcycle instead of
7982           tapecycle.
7983         * example/amanda.conf.in: Remove warning for tapecyle set to inf.
7984
7985 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7986
7987         * server-src/amadmin.c (balance): Don't core dump if DUMPCYLE is too
7988           big.
7989
7990 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7991
7992         * tape-src/tapetype.c: New -o option, doesn't overwrite amanda
7993           tape without -o.
7994         * man/amtapetype.8.in: Document new -o option.
7995
7996 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
7997
7998         * server-src/amstatus.pl.in: Works with failed dump to tape.
7999
8000 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8001
8002         * client-src/sendbackup-gnutar.c (end_backup): Write warning message
8003           in not fatal error.
8004         * server-src/dumper.c (process_dumpline): Parse warning message.
8005         * server-src/reporter.c (handle_strange): Print warning message in
8006           the STRANGE summary.
8007
8008 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8009
8010         * server-src/driverio.c (free_serial): Set stable[s].dp to NULL.
8011         * server-src/driverio.c (disk2serial): Check that stable[s].dp == NULL.
8012
8013 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8014         Patch by Joe Rhett <jrhett@isite.net>
8015
8016         * common-src/alloc.c (safe_env): Keep SYSTEMROOT if __CYGWIN__.
8017
8018 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8019         Patch by Orion Poplawski <orion@cora.nwra.com>
8020
8021         * server-src/conffile.c (copy_dumptype): Copy maxpromoteday.
8022
8023 2004-08-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8024
8025         * client-src/selfcheck.c (check_disk): More check for CALCSIZE.
8026
8027 2004-08-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8028
8029         * common-src/amfeatures.h (fe_selfcheck_calcsize): New feature.
8030         * common-src/amfeatures.c (am_init_feature_set): Set
8031           fe_selfcheck_calcsize.
8032         * client-src/selfcheck.c: Check if calcsize binary is available if
8033           it is needed.
8034         * server-src/amcheck.c (start_host): Call selfcheck with CALCSIZE
8035           if it support fe_selfcheck_calcsize.
8036
8037 2004-08-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8038
8039         * man/amanda.8.in: Document 'estimate' dumptype option.
8040
8041 2004-08-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8042
8043         * server-src/amrmtape.sh.in: Understand history info.
8044
8045 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8046
8047         * server-src/driver.c: Typo.
8048
8049 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8050
8051         * server-src/amstatus.pl.in: Parse CONTINUE and RQ-MORE-DISK line,
8052           print if a dump is waiting for holding disk space (roomq).
8053
8054 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8055
8056         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
8057           Don't call free_serial().
8058         * server-src/driver.c (dumper_result): Call free_serial_dp(dp).
8059         * server-src/driverio.c (dumper_cmd): Remove CONTINUE cmd.
8060         * server-src/driverio.c (chunker_cmd): Print serial number for CONTINUE
8061           command.
8062         * server-src/driverio.c (disk2serial): Try to find a 'dp' before
8063           allocating a new serial.
8064         * server-src/driverio.c (free_serial_dp): New function to remove the
8065           serial for a dp.
8066         * server-src/driverio.h (free_serial_dp): Prototype.
8067         * server-src/chunker.c (databuf_flush): Read serial number for CONTINUE
8068           command.
8069
8070 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8071
8072         * server-src/planner.c (getsize): Do SERVER estimate, call sendsize with
8073           CALCSIZE estimate.
8074
8075 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8076
8077         * client-src/calcsize.c: Support exclude and include like gnutar,
8078           change in program argument.
8079         * client-src/sendsize.c: Execute calcsize as requested.
8080         * common-src/amfeatures.h (fe_calcsize_estimate): New feature.
8081         * common-src/amfeatures.c (am_init_feature_set): set
8082           fe_calcsize_estimate.
8083         * server-src/amcheck.c (start_host): Check if client support CALCSIZE
8084           estimate.
8085
8086 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8087
8088         * server-src/conffile.h (ES_CLIENT, ES_SERVER, ES_CALCSIZE): New define
8089           for estimate type.
8090         * server-src/conffile.h (dumptype_t): Add 'estimate' and 's_estimate'
8091         * server-src/conffile.c (get_estimate): New function to parse estimate
8092           type, ....
8093         * server-src/diskfile.c (read_diskline): Copy 'estimate'.
8094         * server-src/diskfile.h (disk_t): Add 'estimate'.
8095         * server-src/amadmin.c (disklist_one): Print estimate type.
8096
8097 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8098
8099         * common-src/match.c (match_tar, tar_to_regex): New fonction similar
8100           to the exclude option of tar.
8101         * common-src/amanda.h (match_tar, tar_to_regex): Prototype.
8102
8103 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8104
8105         * server-src/infofile.h (history_t): new struct.
8106         * server-src/infofile.h (info_t): Add a history_t.
8107         * server-src/infofile.c (read_txinfofile): Parse history data.
8108         * server-src/infofile.c (write_txinfofile): Print history data.
8109         * server-src/amadmin.c (export_one): export history data.
8110         * server-src/amadmin.c (import_one): import history data.
8111         * server-src/driverio.c (update_info_dumper): update history data.
8112
8113 2004-05-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8114         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8115
8116         * server-src/planner.c: Log L_DISK for autoflush disk.
8117
8118 2004-05-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8119
8120         * server-src/planner.c (handle_result): Add dp to pestq at the
8121           correct place.
8122
8123 2004-04-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8124
8125         * common-src/amanda.h: #include "amanda-int.h" only if !CONFIGURE_TEST.
8126
8127 2004-04-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8128
8129         * config/acinclude.m4i (AX_CREATE_STDINT_H) : New macro.
8130         * configure.in: Use AX_CREATE_STDINT_H(common-src/amanda-int.h).
8131         * common-src/amanda.h: include "common-src/amanda-int.h".
8132         * changer-src/scsi-cam.c: Change u_int32_t for uint32_t.
8133
8134 2004-04-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8135
8136         * configure.in: Fix for automake 1.8.4.
8137         * config/acinclude.m4i: Fix for automake 1.8.4.
8138
8139 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8140
8141         * configure.in: Result of autoupdate.
8142
8143 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8144
8145         * config/config.guess: Update from automake 1.8.
8146         * config/config.sub: Update from automake 1.8.
8147         * config/depcomp: Update from automake 1.8.
8148         * config/install-sh: Update from automake 1.8.
8149         * config/missing: Update from automake 1.8.
8150         * config/mkinstalldirs: Update from automake 1.8.
8151         * config/ltmain.sh: Update from libtool-1.5.6.
8152         * config/libtool.m4i: Update from libtool-1.5.6.
8153
8154 2004-04-26  Marc Mengel <mengel@fnal.gov>
8155
8156         * tape-src/output-rait.c: Verify reads correctly.
8157
8158 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8159
8160         * server-src/driver.c (continue_dumps): Fix deadlock if holding disk
8161         fill up when in degraded mode.
8162
8163 2004-04-23  Eric Siegerman <eric_97@pobox.com>
8164
8165         Bug fix: amflush would run, and consume a tape, even if there
8166         were no Amanda directories waiting to be flushed:
8167         * common-src/sl.c (is_empty_sl): New function to test
8168           whether a list is empty.
8169         * common-src/sl.h (is_empty_sl): Prototype.
8170         * server-src/amflush.sh (main): Use is_empty_sl(),
8171           rather than ==NULL, to test emptiness of datestamp_list.
8172
8173 2004-04-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8174
8175         * server-src/planner.c (setup_estimate): Typo.
8176
8177 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8178
8179         Allow bumpsize, bumppercent, bumpdays and bumpmult to be in a dumptype.
8180         * server-src/conffile.c: Parse.
8181         * server-src/conffile.h: Define.
8182         * server-src/amadmin.c (disklist_one): Use.
8183         * server-src/diskfile.c (read_diskline): Initialize.
8184         * server-src/diskfile.h: Define.
8185         * server-src/planner.c: Use.
8186         * man/amanda.8.in: Document.
8187
8188 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8189         Fix by Paul Bijnens <paul.bijnens@xplanation.com>
8190
8191         * server-src/planner.c (setup_estimate): Only ask for level 0 estimate
8192           if strategy is noinc.
8193
8194 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8195         Documentation from Paul Bijnens <paul.bijnens@xplanation.com>
8196
8197         * man/amoverview.8.in: Document results.
8198
8199 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8200         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8201
8202         * server-src/amoverview.pl.in: Print last two characters.
8203
8204 2004-04-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8205
8206         * changer-src/chg-disk.sh.in: Fix for sh compatibility.
8207
8208 2004-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8209         Fix by John Koyle <jkoyle@rfpdepot.com>
8210
8211         * common-src/dgram.c: Fix EAGAIN on Linux.
8212
8213 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8214
8215         * server-src/amadmin.c (bumpsize): Typo.
8216
8217 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8218
8219         New bumppercent global option.
8220         * example/amanda.conf.in: Document it.
8221         * man/amanda.8.in: Document it.
8222         * server-src/amadmin.c (bumpsize): Write it.
8223         * server-src/conffile.c: Parse it.
8224         * server-src/conffile.h: Define It.
8225         * server-src/planner.c (bump_thresh): New size_level_0 parameter,
8226           use the new bumppercent option.
8227
8228 2004-04-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8229
8230         * server-src/amadmin.c: Rename host_t to amhost_t.
8231         * server-src/amcheck.c: Ditto.
8232         * server-src/amindexd.c: Ditto.
8233         * server-src/diskfile.c: Ditto.
8234         * server-src/diskfile.h: Ditto.
8235         * server-src/driver.c: Ditto.
8236         * server-src/planner.c: Ditto.
8237
8238 2004-03-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8239
8240         * amplot/amplot.awk: Parse "driver: tape size" line.
8241
8242 2004-03-22  Stefan G. Weichinger <monitor@oops.co.at>
8243
8244         * server-src/amcheck.c (start_host): Added warning for hostname
8245           localhost.
8246         * docs/TOP-TEN-QUESTIONS: added note about localhost-warning.
8247
8248 2004-03-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8249
8250         * docs/Makefile.am (pkgdata_DATA): Add TOP-TEN-QUESTIONS.
8251
8252 2004-03-18  Stefan G. Weichinger <monitor@oops.co.at>
8253
8254         * docs/TOP-TEN-QUESTIONS: New file.
8255
8256 2004-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8257
8258         * server-src/reporter.c (handle_success): Set stats[i].coutsize
8259           correctly.
8260         * server-src/taper.c: Do not subtract tt_blocksize_kb from filesize.
8261
8262 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8263
8264         * common-src/ssh-security.c: New ssh security driver.
8265         * common-src/Makefile.am (libamanda_la_SOURCES): Add ssh-security.c.
8266         * common-src/security.c: Add ssh security driver.
8267         * configure.in: Add --with-ssh-security. Define SSH_SECURITY.
8268
8269 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8270
8271         * server-src/amcheck.c: Do labelstr check in correct order.
8272
8273 2004-03-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8274
8275         Use only one time event for all dumpers, no wait event.
8276         start_some_dumps is called everytime a dumper or taper finish.
8277         * server-src/driver.c (dumpers_ev_time): New global event.
8278         * server-src/driver.c (start_some_dumps): Remove dumper argument,
8279           can start many dump.
8280         * server-src/driver.c (dumper_result): Call start_some_dumps instead
8281           of event_wakeup.
8282         * server-src/driver.c (handle_idle_wait): Remove function.
8283         * server-src/driver.c (handle_dumpers_time): new handle for
8284           dumpers_ev_time, it call start_some_dumps.
8285         * server-src/driverio.h (dumper_t): Remove ev_wait.
8286         * server-src/driverio.c (startup_dump_process): Don't set ev_wait.
8287
8288 2004-03-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8289
8290         * common-src/fileheader.c (print_header): Fix fprintf use.
8291         * client-src/amqde.c (parse_exclude_path): Fix = by ==.
8292         * common-src/protocol.c (s_repwait): Fix compiler warning.
8293         * common-src/rsh-security.c (runrsh): Fix compiler warning.
8294
8295 2004-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8296
8297         * common-src/pipespawn.c (pipespawn): Remove passwdvar and passwdfd.
8298
8299 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8300         Reported by Allen Liu <allen@bellglobal.com>
8301
8302         * server-src/amverifyrun.sh.in: Replace '-e' test by '-f'.
8303
8304 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8305
8306         * server-src/amcheck.c: Verify the tape is listed in the tapelist file.
8307         * server-src/taper.c: Ditto
8308
8309 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8310
8311         * server-src/driver.c (dump_schedule): Print complete name.
8312
8313 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8314
8315         The estimate send a PREP (partial REP) packet after each estimate.
8316         * client-src/amandad.c: Send PREP packet if sendsize.
8317         * common-src/amfeatures.c (am_init_feature_set): Add
8318           fe_partial_estimate.
8319         * common-src/amfeatures.h (am_feature_e): Add fe_partial_estimate.
8320         * common-src/packet.c (pktypes[]): Add PREP.
8321         * common-src/packet.h (pktype_t): Add P_PREP.
8322         * common-src/protocol.c (action_t): Add A_CONTPEND.
8323         * common-src/protocol.c: Handle P_PREP packet.
8324         * server-src/amstatus.pl.in: Parse "got partial result" line.
8325         * server-src/planner.c: Handle P_PREP packet.
8326
8327 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8328         Reported by Jason Brooks <jason.brooks@windriver.com>
8329
8330         * server-src/reporter.c: Remove duplicate setting of cd to
8331           &ColumnData[Level].
8332
8333 2004-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8334         Patch by Philippe Charnier <charnier@xp11.frmug.org>
8335
8336         * server-src/amtrmidx.c: Add '\n'.
8337
8338 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8339
8340         * recover-src/set_commands.c (cd_glob): Fix memory leak.
8341
8342 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8343
8344         * recover-src/set_commands.c (cd_dir, set_directory): Fix memory leak.
8345         * recover-src/uscan.l: Fix double amfree.
8346
8347 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8348
8349         * server-src/driver.c: Build holding disk name with timestamp.
8350         * server-src/holding.c (is_datestr): Check also for timestamp.
8351         * server-src/planner.c: Flush today's dump with autoflush.
8352         * server-src/find.c: Find holding disk with timestamp.
8353         * server-src/find.h (find_result_t): Add timestamp field.
8354
8355 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8356
8357         * changer-src/chg-zd-mtx.sh.in: Works if all slot and tape are full.
8358
8359 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8360
8361         * server-src/amverifyrun.sh.in: Do not execute amverify if no tape
8362           to verify.
8363
8364 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8365
8366         * server-src/amdump.sh.in: Do not redirect to /dev/null.
8367
8368 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8369
8370         * config/acinclude.m4i: Define CF_WAIT_INT.
8371         * configure.in: Call CF_WAIT_INT.
8372         * common-src/amanda.h: Try to make waitpid doesn't warn.
8373
8374 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8375
8376         * Makefile.am (EXTRA_DIST): Add contrib/mkamandisk.
8377
8378 2004-01-29  Christoph Pospiech <pospiech@de.ibm.com>
8379
8380         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-iomega.pl.
8381         * changer-src/Makefile.am (libexec_SCRIPTS) Add chg-iomega.
8382         * changer-src/chg-iomega.pl.in: New changer script.
8383         * docs/TAPE.CHANGERS: Document chg-iomega.
8384         * contrib/mkamandisk: Script to format iomega disk.
8385
8386 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8387
8388         * restore-src/amidxtaped.c (scan_init): Remove the log file if it exit.
8389
8390 2004-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8391
8392         * configure.in: Set GNUTAR_LISTED_INCREMENTAL_DIRX.
8393         * example/amanda.conf.in: Update record documentation.
8394         * man/amanda.8.in: Update record documentation.
8395
8396 2004-01-14  Stefan G. Weichinger <monitor@oops.co.at>
8397
8398         * docs/INSTALL: Add config for xinetd.
8399
8400 2004-01-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8401
8402         * server-src/planner.c (handle_result): Detect bad estimate (-1).
8403         * server-src/planner.c (analyze_estimate): Don't schedule level
8404           if the estimate is bad.
8405
8406 2003-12-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8407
8408         * docs/HOWTO-FILE-DRIVER: New file.
8409         * docs/TAPE.CHANGERS: Explain chg-disk.
8410         * docs/Makefile.am (pkgdata_DATA): add HOWTO-FILE-DRIVER.
8411
8412 2003-12-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8413
8414         * docs/SYSTEM.NOTES: Add a note about sendsize coredump on AIX.
8415
8416 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8417         Patch by Jean-Christian SIMONETTI <simonetti@echo.fr>
8418
8419         * changer-src/chg-disk.sh.in: New changer script.
8420         * changer-src/Makefile.am (libexec_SCRIPTS): Add chg-disk.
8421         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-disk.sh.
8422
8423 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8424
8425         * tape-src/tapetype.c: extern int optind.
8426         * tape-src/tapeio.c: extern int optind.
8427
8428 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8429         Patch by C.Scheeder <christoph.scheeder@scheeder.de>
8430
8431         * changer-src/sense.c (SenseType): Add "DAT AutoChanger" and "C1537A".
8432
8433 2003-11-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8434
8435         * server-src/driver.c: Print the tape size.
8436         * server-src/amstatus.pl.in: print % of tape use.
8437
8438 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8439
8440         * server-src/conffile.c (copy_dumptype): Copy in/exclude only if seen.
8441
8442 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8443
8444         * server-src/reporter.c (output_tapeinfo): Fix printing of new tape.
8445
8446 2003-11-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8447
8448         * server-src/amcheck.c (taperscan_slot): Deal with label not in
8449           tapelist case.
8450         * server-src/amtape.c (taperscan_slot): Ditto.
8451         * server-src/taper.c (taperscan_slot): Ditto.
8452
8453 2003-11-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8454
8455         * server-src/driver.c (handle_taper_result): Always call
8456           continue_dumps() in TRYAGAIN case.
8457
8458 2003-11-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8459
8460         * changer-src/chg-chio.pl.in (getTapeStatus): Set $drives[$num] to 0
8461         if no tape in drive.
8462
8463 2003-11-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8464
8465         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-AFS.
8466
8467 2003-11-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8468         Patch by Mitch Collinsworth <mitch@ccmr.cornell.edu>
8469
8470         * client-src/selfcheck.c: Skip accessibility check for AFS entries.
8471         * docs/HOWTO-AFS: New file.
8472
8473 2003-11-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8474
8475         * server-src/amadmin.c (tape): Display the next new tapes.
8476         * server-src/reporter.c (output_tapeinfo): Ditto.
8477
8478 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8479
8480         * docs/Makefile.am (pkgdata_DATA): Add chg-scsi.notes.
8481
8482 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8483
8484         * server-src/amcheck.c (taperscan_slot): Set found=3 if new tape.
8485         * server-src/amcheck.c (taper_scan): Handle found==3.
8486         * server-src/amtape.c (taperscan_slot): Set found=3 if new tape.
8487         * server-src/amtape.c (taper_scan): Handle found==3.
8488         * server-src/taper.c (taperscan_slot): Set found=3 if new tape.
8489         * server-src/taper.c (taper_scan): Handle found==3.
8490
8491 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8492
8493         * server-src/amcheck.c: Use stralloc(optarg).
8494         * tape-src/ammt.c: Use stralloc(optarg).
8495         * tape-src/tapetype.c: Use stralloc(optarg).
8496
8497 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8498         Patch by Jay Fenlason <fenlason@redhat.com>
8499
8500         * server-src/dumper.c: Don't set SIGCHLD to SIG_IGN.
8501
8502 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8503         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
8504
8505         * client-src/sendbackup-gnutar.c (AM_SIZE_RE): Fix regex for samba3.
8506
8507 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8508
8509         * server-src/amadmin.c (find): Call find_dump to allow dynamic disklist.
8510         * server-src/amindexd.c: Call find_dump to allow dynamic disklist.
8511         * server-src/amtrmidx.c:  Call find_dump to allow dynamic disklist.
8512         * server-src/diskfile.c (add_disk): Set device and todo.
8513         * server-src/find.c: Build disklist dynamicaly from log files.
8514         * server-src/find.h (find_dump): New prototype.
8515
8516 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8517
8518         * server-src/amlogroll.c: set_pname("amlogroll").
8519
8520 2003-10-24  Todd M. Kover <kovert@omniscient.com>
8521
8522         * add amqde for "quick and dirty estimates" under gnutar (program
8523           that will traverse the filesystem rather than invoke gnutar).
8524           controlled via configure option --with-qde.  This really wants to
8525           be configured in the server.
8526
8527 2003-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8528
8529         * server-src/amverify.sh.in: Fix usage message.
8530         * common-src/fileheader.c (print_header): fprintf to outf.
8531         * server-src/tapefile.c (lookup_last_reusable_tape): Check for
8532           tp->datestamp > 0.
8533         * server-src/amadmin.c (disklist_one): Don't print ':' on device line.
8534
8535 2003-10-23  Todd Kover <kovert@omniscient.com>
8536
8537         * make amrecover link against readline rather than libamanda so
8538           only amrecover would require the shared library (if it's found)
8539
8540 2003-10-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8541         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8542
8543         * client-src/amandates.c (finish_amandates): Call error() if the
8544           close of amdf fail.
8545         * common-src/amflock.c (create_lock): Return -1 if the close of f fail.
8546         * common-src/amflock.c (read_lock): Don't set f to NULL if the close
8547           fail.
8548         * server-src/tapefile.c (write_tapelist): Return 1 if the close of
8549           tapef fail.
8550
8551 2003-10-14  John R. Jackson (jrj@purdue.edu)
8552
8553         * docs/SYSTEM.NOTES: Add FreeBSD 5.1 note about setting the UDP packet
8554           size, compliments of Nicolas Ecarnot <nicolas.ecarnot@accim.com>.
8555
8556 2003-10-14  John R. Jackson (jrj@purdue.edu)
8557
8558         * client-src/sendsize.c: Handle case where PID's get re-used.
8559
8560 2003-10-14  John R. Jackson (jrj@purdue.edu)
8561
8562         * configure.in: Need to check for sys/gscdds.h on AIX to enable
8563           SCSI changer.
8564
8565 2003-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8566
8567         * common-src/genversion.c (prundefvar): New function to print an
8568           undefined variable.
8569         * common-src/genversion.c: Print undefined variable.
8570         * server-src/amcheck.c: Improve message for no LPRCMD defined.
8571
8572 2003-07-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8573
8574         * restore-src/amidxtaped.c: Don't clea re_label before checking
8575           for the changer.
8576
8577 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8578         Patch by Scott Mcdermott <smcdermott@questra.com>
8579
8580         * changer-src/chg-zd-mtx.sh.in (initial_poll_delay): New config
8581           variable to add a pause after a tape loading.
8582
8583 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8584         Fix by John E. Hein <jhein@timing.com>
8585
8586         * changer-src/chg-manual.sh.in: Quote @EGREP@.
8587         * changer-src/chg-null.sh.in: Quote @EGREP@.
8588
8589 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8590
8591         * amplot/amplot.sh.in: Remove files before runnig amplot.awk.
8592         * amplot/amplot.awk: Parse 'flush line', fix tape_wait line.
8593         * server-src/driver.c (read_flush): Write a 'flush size' to the
8594           debug file.
8595
8596 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8597
8598         * changer-src/chg-chio.pl.in: Fix next/prev command.
8599
8600 2003-07-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8601         patch by Paul Bijnens <paul.bijnens@xplanation.com>
8602
8603         * client-src/client_util.c (add_include): Count include with 2 /,
8604           Fix descriptor leak.
8605
8606 2003-06-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8607
8608         * server-src/amstatus.pl.in: Fix print spacing for idle dumpers.
8609
8610 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8611
8612         * server-src/holding.c: Fix compiler error.
8613         * server-src/planner.c: Use snprintf.
8614
8615 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8616         patch by Paul Bijnens <paul.bijnens@xplanation.com>
8617
8618         * tape-src/tapetype.c: Avoid a numerical overflow for large tape
8619           capacities.
8620
8621 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8622
8623         * server-src/amstatus.pl.in: Fix to failed tape.
8624
8625 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8626
8627         * server-src/planner.c (delay_dumps): Delay not delay forced full
8628           before forced full.
8629
8630 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8631
8632         * changer-src/chg-zd-mtx.sh.in: Log the changer file used.
8633
8634 2003-06-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8635
8636         * server-src/amverify.sh.in: Do not advance to next tape.
8637
8638 2003-06-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8639         patch by Eric Siegerman <eric_97@pobox.com>
8640
8641         * server-src/planner.c: Make promote_hills() honour maxpromotedays.
8642
8643 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8644
8645         * changer-src/scsi-bsd.c: Use pDev[DeviceFD].fd instead of DeviceFD.
8646         * changer-src/scsi-hpux_new.c:Use pDev[DeviceFD].fd instead of DeviceFD.
8647         * changer-src/scsi-linux.c: Use pDev[ip].fd instead of DeviceFD.
8648
8649 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8650
8651         * client-src/noop.c: #include "util.h".
8652
8653 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8654
8655         * server-src/amflush.c: Implement new -b and -s options.
8656         * man/amflush.8.in: Document it.
8657
8658 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8659
8660         * server-src/driver.c (dump_to_tape): Don't go in degraded mode if
8661           taper reply DONE.
8662
8663 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8664
8665         * tape-src/output-rait.c: Don't call waitpid if we didn't fork.
8666
8667 2003-06-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8668
8669         * server-src/amverify.sh.in: Use @MAXTAPEBLOCKSIZE@ instead of 32.
8670
8671 2003-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8672         Bug reported by Sven Rudolph <rudsve@drewag.de>
8673
8674         * server-src/holding.c (mkholdingdir): New function to create a holding
8675           directory.
8676         * server-src/holding.h (mkholdingdir): Prototype.
8677         * server-src/driver.c: Use mkholdingdir;
8678         * server-src/chunker.c: Call mkholdingdir before opening a file for
8679           writing.
8680
8681 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8682         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8683
8684         * server-src/amstatus.pl.in: Fix for missing amdump.1 or amflush.1.
8685
8686 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8687         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8688
8689         * server-src/amstatus.pl.in: If nothing is active, it now gives the
8690           status of the last run (amdump or amflush).
8691         * man/amstatus.8.in: Document it.
8692
8693 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8694
8695         * tape-src/output-file.c (check_online): Write error if opendir failed.
8696
8697 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8698         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8699
8700         * server-src/amoverview.pl.in: Use 'amadmin <conf> disklist' instead
8701           of parsing the disklist file.
8702
8703 2003-05-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8704
8705         * server-src/tapefile.c (read_tapelist,parse_tapeline): Fix for
8706           previous patch.
8707
8708 2003-05-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8709
8710         * common-src/versuff.c.in: Use @VERSION_SUFFIX@.
8711
8712 2003-05-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8713
8714         * example/amanda.conf.in: Add more amrecover_changer doc.
8715         * man/amanda.8.in: Add more amrecover_changer doc.
8716         * man/amrecover.8.in: Add more amrecover_changer doc.
8717
8718 2003-05-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8719
8720         * server-src/tapefile.c (read_tapelist): Ignore blank line.
8721         * server-src/tapefile.c (parse_tapeline): Newer status parameter, set
8722           it to '1' when reading blank line.
8723
8724 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8725
8726         * configure.in (AC_CHECK_HEADERS): Enleve linux/ftape-header-segment.h,
8727           linux/ftape-vendors.h et linux/ftape.h.
8728
8729 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8730         Patch by Darin Dugan <dddugan@iastate.edu>
8731
8732         * server-src/amcheck.c: Change subject in email if no error.
8733
8734 2003-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8735
8736         * common-src/error.c (output_error_message): Always prepend program
8737           name.
8738
8739 2003-04-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8740
8741         * server-src/amstatus.pl.in: Fix for estimate disk.
8742
8743 2003-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8744
8745         * server-src/taper.c: Read holding file correctly if blocksize != 32k.
8746
8747 2003-04-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8748         New file by Robert C Dege <RDege@northropgrumman.com>
8749
8750         * configure.in: Find mcutil binary.
8751         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-mcutil.sh and
8752           example/chg-mcutil.conf.
8753         * changer-src/Makefile (libexec_SCRIPTS): Add chg-mcutil.
8754         * changer-src/chg-mcutil.sh.in: New file.
8755         * example/Makefile (EXTRA_DIST): Add chg-mcutil.conf
8756         * example/chg-mcutil.conf.in: New file.
8757
8758 2003-04-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8759
8760         * man/amanda.8.in (blocksize): Document the --with-maxtapeblocksize
8761           configure option.
8762
8763 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8764
8765         * server-src/amverifyrun.sh.in: Run the amverify command.
8766
8767 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8768         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8769
8770         * server-src/reporter.c: Get the filenumber correct.
8771
8772 2003-04-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8773         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8774
8775         * server-src/reporter.c: Print a postscript label for each tape used.
8776
8777 2003-03-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8778
8779         * configure.in (*-sco3.2v4*): It is not like *-sco3.2v5*,
8780           define DEV_PREFIX and RDEV_PREFIX.
8781
8782 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8783
8784         * configure.in: Typo.
8785
8786 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8787         Patch by Gert Doering <gert@greenie.muc.de>
8788
8789         * client-src/getfsent.c (get_fstab_nextentry): Compile on *-sco3.2v4*.
8790
8791 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8792
8793         * configure.in: Compile on *-sco3.2v4*
8794
8795 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8796
8797         * configure.in: Use '=' instead of '=='.
8798
8799 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8800
8801         * recover-src/set_commands.c (set_tape): Recognize null:, rait:,
8802           file: and tape: as driver, not host name.
8803
8804 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8805
8806         * server-src/amrmtape.sh.in: Print better output.
8807
8808 2003-03-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8809
8810         * changer-src/Makefile.am (libexec_SCRIPTS): Missing \.
8811
8812 2003-03-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8813
8814         * client-src/client_util.c (add_include): If include contain 2 '/' then
8815           use at asis, don't try to match it.
8816
8817 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8818
8819         * server-src/changer.h (changer_label): Return an int.
8820         * server-src/changer.h (changer_label): First parameter is char *.
8821
8822 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8823
8824         * file tape-src/output-rait.c (rait_open): Call tapefd_set_master_fd();
8825         * file tape-src/tapeio.c (struct tape_info): Add master_fd field.
8826         * file tape-src/tapeio.c (tape_info_init): Set master_fd to -1;
8827         * file tape-src/tapeio.c (tapefd_getinfo_host, tapefd_getinfo_disk,
8828           tapefd_getinfo_level): Return info of master_fd.
8829         * file tape-src/tapeio.c (tapefd_set_master_fd): New function to set
8830           master_fd.
8831         * file tape-src/tapeio.h (tapefd_set_master_fd): Prototype.
8832
8833 2003-03-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8834
8835         * tape-src/output-file.c (file_tapefd_can_fork): New function that
8836           return 1 if the file: can be run under a forked process.
8837         * tape-src/output-file.h (file_tapefd_can_fork): Prototype.
8838         * tape-src/output-null.c (null_tapefd_can_fork): New function that
8839           return 1 if the null: can be run under a forked process.
8840         * tape-src/output-null.h (null_tapefd_can_fork): Prototype.
8841         * tape-src/output-rait.c (rait_close, rait_tapefd_ioctl): Fork only if
8842         * tapefd_can_fork() return 1.
8843         * tape-src/output-rait.c (rait_tapefd_can_fork): New function that
8844           return 1 if the rait: can be run under a forked process.
8845         * tape-src/output-rait.h (rait_tapefd_can_fork): Prototype.
8846         * tape-src/output-tape.c (tape_tapefd_can_fork): New function that
8847           return 1 if the tape: can be run under a forked process.
8848         * tape-src/output-tape.h (tape_tapefd_can_fork): Prototype.
8849         * tape-src/tapeio.c (struct virtualtape): Add xxx_tapefd_can_fork and
8850           initialize vtable[];
8851         * tape-src/tapeio.c (tapefd_can_fork): New function to can the driver
8852           xxx_tapefd_can_fork function.
8853         * tape-src/tapeio.h (tapefd_can_fork): Prototype.
8854
8855 2003-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8856
8857         * tape-src/output-file.c (file_tapefd_write): Call file_release(fd)
8858           before opening the file for writing.
8859
8860 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8861
8862         * changer-src/chg-zd-mtx.sh.in: Default for driveslot is 0.
8863
8864 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8865
8866         * amplot/amplot.sh.in: New -b option for b/w postscript.
8867         * amplot/amplot.awk: Add 'color' to command if bw is set.
8868         * amplot/amplot.g: Change line 6 to line 8.
8869         * man/amplot.8: Document -b option.
8870
8871 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8872
8873         * recover-src/extract_list.c: Fix the name of the
8874           amidxtaped.<timestamp>.debug file.
8875
8876 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8877         Patch by Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
8878         
8879         * restore-src/amidxtaped.c: Use the device sent by the changer.
8880
8881 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8882
8883         * restore-src/amidxtaped.c: Remove lock 'unlink(conf_logfile)' on
8884           all failure path.
8885
8886 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8887
8888         * server-src/changer.c: Sync with 2.4.4.
8889
8890 2003-02-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8891
8892         * client-src/client_util.c: Print error except ENOENT for
8893           exclude/include files.
8894
8895 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8896
8897         * tape-src/tapetype.c: Use %ld to print some variable.
8898
8899 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8900
8901         * server-src/conffile.c (init_defaults): conf_printer.s must be set
8902           with stralloc("").
8903
8904 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8905         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8906
8907         * tape-src/tapetype.c: Document -c option.
8908
8909 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8910
8911         * changer-src/chg-zd-mtx.sh.in:Print "are you sure your drive slot is n"
8912
8913 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8914
8915         * server-src/tapefile.c (read_tapelist): return 1 if can't open the
8916           tapelist file.
8917
8918 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8919
8920         * man/amtapetype.8.in: Add doc from a mail by John R. Jackson.
8921
8922 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8923
8924         * server-src/amcheck.c: New -a option.
8925         * man/amcheck.8.in: Document it.
8926
8927 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8928
8929         * server-src/amindexd.c (build_disk_table): Compare the level.
8930
8931 2003-02-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8932         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8933
8934         * tape-src/tapetype.c: New -c argument to do only the compression test.
8935           Better detection of compression.
8936         * man/amtapetype.8.in: Document -c argument.
8937
8938 2003-02-09  John R. Jackson (jrj@purdue.edu)
8939
8940         * tape-src/tapetype.c: Allocate the I/O buffers on page boundaries.
8941           This helps performance on some OS's.
8942
8943 2003-02-08  John R. Jackson (jrj@purdue.edu)
8944
8945         * restore-src/amrestore.c: Clean up strtol() argument processing.
8946
8947 2003-02-08  John R. Jackson (jrj@purdue.edu)
8948
8949         * docs/INSTALL: Clean up supporting package versions and URL's.
8950
8951 2003-02-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8952
8953         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-CYGWIN.html.
8954
8955 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8956         Patch by Christophe Kalt <kalt@taranis.org>
8957
8958         * client-src/sendbackup-dump.c: New AM_SIZE_RE for NetApp.
8959         * client-src/sendsize.c: New re_size for NetApp.
8960
8961 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8962         Fix by Colin Henein <cmh@>
8963
8964         * common-src/amanda.h: Fix for the where S_ISDIR is not defined.
8965
8966 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8967         Patch by Doug Kingston <dpk@randomnotes.org>
8968
8969         * configure.in (NEED_SETUID_CLIENT): Set to false on *-pc-cygwin.
8970         * configure.in (WANT_SETUID_CLIENT): Set if NEED_SETUID_CLIENT != false.
8971         * client-src/Makefile.am: Don't chmod u+s if WANT_SETUID_CLIENT.
8972
8973 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8974         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
8975
8976         * man/amtapetype.8.in: Fix example.
8977
8978 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8979
8980         * common-src/amanda.h: #define S_ISDIR if not already defined.
8981
8982 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8983         File from Doug Kingston <dpk@randomnotes.org>
8984
8985         * docs/HOWTO-CYGWIN.html: New file.
8986
8987 2003-01-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8988
8989         * configure.in: Define WANT_RUNTIME_PSEUDO_RELOC on cygwin
8990         * client-src/Makefile.am: AM_LDFLAGS="-Wl,-enable-runtime-pseudo-reloc"
8991           if WANT_RUNTIME_PSEUDO_RELOC.
8992         * recover-src/Makefile.am: Ditto.
8993
8994 2003-01-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
8995
8996         * tape-src/output-rait.h: #define stralloc strdup
8997         * tape-src/output-rait.c: Revert patch of 2003-01-26, we don't have
8998           vstralloc in standalone.
8999
9000 2003-01-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9001         Reported by Doug Kingston <dpk@randomnotes.org>
9002
9003         * recover-src/Makefile.am: Set AM_YFLAGS instead of YFLAGS.
9004
9005 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9006
9007         * tape-src/output-rait.c (tapeio_next_devname): Use vstralloc.
9008
9009 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9010
9011         * changer-src/chg-scsi-chio.c: Change strdup to stralloc.
9012         * changer-src/chg-scsi.c: Ditto.
9013         * changer-src/scsi-aix.c: Ditto.
9014         * changer-src/scsi-bsd.c: Ditto.
9015         * changer-src/scsi-cam.c: Ditto.
9016         * changer-src/scsi-changer-driver.c: Ditto.
9017         * changer-src/scsi-hpux_new.c: Ditto.
9018         * changer-src/scsi-irix.c: Ditto.
9019         * changer-src/scsi-linux.c: Ditto.
9020         * changer-src/scsi-solaris.c: Ditto.
9021         * changer-src/sense.c: Ditto.
9022         * tape-src/output-rait.c: Ditto.
9023
9024 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9025
9026         * server-src/taper.c (read_file): Don't count header in filesize.
9027
9028 2003-01-25  John R. Jackson (jrj@purdue.edu)
9029
9030         * tape-src/tapeio.c: Fix tape_access() and tape_stat() problem caused
9031           by indeterminate compiler order of evaluation.
9032
9033 2003-01-25  John R. Jackson (jrj@purdue.edu)
9034
9035         * restore-src/amidxtaped.c: Log errno when tape_stat fails.
9036         * restore-src/amrestore.c: Ditto.
9037         * tape-src/output-rait.c: Ditto.
9038
9039 2003-01-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9040
9041         * server-src/amstatus.pl.in: print an usage by tape.
9042
9043 2003-01-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9044
9045         * recover-src/extract_list.c (add_extract_item, delete_extract_item):
9046           Check also for level when comparing label.
9047
9048 2003-01-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9049
9050         Do not build chg-scsi-chio, it is buggy.
9051         * changer-src/Makefile.am (libexec_PROGRAMS): remove $(CHIO_SCSI).
9052         * changer-src/Makefile.am (EXTRA_PROGRAMS): add $(CHIO_SCSI).
9053
9054 2003-01-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9055
9056         * configure.in: disable amrestore if --without-server is set.
9057
9058 2003-01-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9059
9060         * client-src/amandad.c: Use the dbfd macro instead of the external
9061           variable db_fd.
9062         * client-src/selfcheck.c: Ditto.
9063         * client-src/sendbackup.c: Ditto.
9064         * client-src/sendsize.c: Ditto.
9065         * client-src/sendbackup-gnutar.c: Use save_errno instead of errno.
9066         * common-src/debug.c: Move most declaration inside #ifdef DEBUG_CODE.
9067         * server-src/amindexd.c: dup db_fd() to stderr.
9068         * server-src/conffile.c: Don't call error() if the config file does not
9069           exist, just write to stderr and set got_parserror.
9070
9071 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9072
9073         * recover-src/amrecover.c: Fix memory leak.
9074
9075 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9076
9077         Add new maxpromoteday option in a dumptype.
9078         * example/amanda.conf.in: Give an example
9079         * man/amanda.8.in: Document it.
9080         * server-src/amadmin.c: Print it in the disklist subcommand.
9081         * server-src/conffile.c: read it.
9082         * server-src/conffile.h (dumptype_t): Add maxpromoteday and
9083           s_maxpromoteday.
9084         * server-src/diskfile.c (read_diskline): Copy maxpromoteday from
9085           dumptype_t to disk_t.
9086         * server-src/diskfile.h (disk_t):  Add maxpromoteday.
9087         * server-src/planner.c (promote_highest_priority_incr): Don't promote
9088           a disk if est(dp)->next_level0 > dp->maxpromoteday.
9089
9090 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9091         Reported by Josh More <jmore@remote-print.com>
9092
9093         * client-src/client_util.c (add_exclude, add_include): Remove the
9094           need for MAXPATHLEN.
9095
9096 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9097         Fix by Josh More <jmore@remote-print.com>
9098
9099         * tape-src/output-tape.c: Add a ; after f = MT_UNLOAD
9100
9101 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9102         Undo patch of 2002-11-27. That doesn't work well for the planner.
9103
9104         * common-src/amanda.h (days_diff): Revert to old macro.
9105         * server-src/amadmin.c: Undo Fix for newer days_diff.
9106         * server-src/planner.c: Undo Fix for newer days_diff.
9107
9108 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9109
9110         * client-src/client_util.c: Fix memory leak reported by valgrind.
9111         * client-src/selfcheck.c: Ditto.
9112         * client-src/sendbackup.c: Ditto.
9113         * client-src/sendsize.c: Ditto.
9114         * common-src/amfeatures.c: Ditto.
9115         * common-src/debug.c: Ditto.
9116         * recover-src/amrecover.c: Ditto.
9117         * recover-src/extract_list.c: Ditto.
9118         * recover-src/set_commands.c: Ditto.
9119         * recover-src/uparse.y: Ditto.
9120         * recover-src/uscan.l: Ditto.
9121         * server-src/amindexd.c: Ditto.
9122         * server-src/amlabel.c: Ditto.
9123         * server-src/amtape.c: Ditto.
9124         * server-src/amtrmidx.c: Ditto.
9125         * server-src/amtrmlog.c: Ditto.
9126         * server-src/changer.c: Ditto.
9127         * server-src/conffile.c: Ditto.
9128         * server-src/driver.c: Ditto.
9129         * server-src/driverio.c: Ditto.
9130         * server-src/dumper.c: Ditto.
9131         * server-src/find.c: Ditto.
9132         * server-src/holding.c: Ditto.
9133         * server-src/logfile.c: Ditto.
9134         * server-src/planner.c: Ditto.
9135         * server-src/reporter.c: Ditto.
9136         * server-src/tapefile.c: Ditto.
9137         * server-src/taper.c: Ditto.
9138
9139 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9140
9141         * amplot/amplot.awk: Many fix.
9142
9143 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9144
9145         * server-src/planner.c (promote_highest_priority_incremental): Promote
9146           a disk > balanced size if no full today. Do not promote a disk it's
9147           the only disk due that day and no full today.
9148
9149 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9150         Patch by Brad Roberts <braddr@puremagic.com>
9151
9152         * server-src/amflush.c: Remove 2 redundant amfree call after remove_sl.
9153         * server-src/holding.c (get_flush): Ditto.
9154
9155 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9156
9157         * server-src/conffile.c: New taperalgo configuration keyword.
9158         * server-src/conffile.h: Ditto.
9159         * man/amanda.8.in: Document it.
9160         * server-src/driver.c (startaflush): New function to start a flush to
9161           tape.
9162
9163 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9164
9165         * server-src/diskfile.c (parse_diskline): Allow skip in dumptype.
9166
9167 2002-12-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9168
9169         * server-src/amstatus.pl.in: Parse features from PORT-WRITE line.
9170
9171 2002-12-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9172
9173         Don't use the G flag for samba backup restore by tar.
9174         * recover-src/extract_list.c (enum dumptypes): Add IS_SAMBA_TAR.
9175         * recover-src/extract_list.c (extract_files_child): Set dumptype to
9176           IS_SAMBA_TAR if it's a SAMBA backup. Don't pass the G flag to tar
9177           if it's IS_SAMBA_TAR.
9178
9179 2002-12-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9180
9181         * amplot/amplot.awk: Parse line with features, parse ENDFLUSH line.
9182
9183 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9184
9185         * server-src/planner.c (promote_highest_priority_incremental): Newer
9186           algorithm that reduce the number of level 0 by hosts on a single day.
9187
9188 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9189
9190         * amplot/amplot.awk: Parse newer log lines.
9191
9192 2002-12-11  Jean-Louis Martineau <martineau@iro.umontreal.ca> 
9193         * server-src/reporter.c (output_stats): Typo.
9194
9195 2002-12-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9196
9197         * server-src/reporter.c: Print an usage by tape.
9198
9199 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9200
9201         * tape-src/tapeio.c (do_read): Init count to 0.
9202
9203 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9204
9205         * tape-src/Makefile.am: Install tapetype program as amtapetype.
9206         * docs/TAPETYPES: Change for amtapetype.
9207         * man/amtapetype.8.in: New man page
9208         * man/Makefile.am: Install it.
9209         * configure.in (AC_CONFIG_FILES): Add man/amtapetype.8.
9210
9211 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9212
9213         * tape-src/ammt.c (optind): Add prototype.
9214         * tape-src/amdd.c (optind): Add prototype.
9215
9216 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9217
9218         * common-src/arglist.h (printf_arglist_function,
9219           printf_arglist_function1, printf_arglist_function2): Define if
9220           STDC_HEADERS is not defined.
9221
9222 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9223
9224         * server-src/amstatus.pl.in: New --date option to display datestamp.
9225         * server-src/amstatus.pl.in: Increase some field size.
9226         * server-src/amstatus.pl.in: The host field adjust it's length to the
9227          largest.
9228
9229 2002-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9230
9231         * common-src/amanda.h (days_diff): Don't add a half day.
9232         * server-src/amadmin.c: Fix for newer days_diff.
9233         * server-src/planner.c: Fix for newer days_diff.
9234
9235 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9236
9237         * client-src/amandad.c: Fix compiler warning.
9238         * common-src/Makefile.am (bsdsecurity): Link with file.o.
9239         * common-src/bsd-security.c: Fix compiler warning.
9240         * common-src/bsd-security.c (construct_datestamp, construct_timestamp):
9241           Add function if TEST.
9242         * server-src/chunker.c: Fix compiler warning.
9243         * server-src/dumper.c: Fix compiler warning.
9244
9245 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9246
9247         * tape-src/tapetype.c: Cast time_t to long for printing.
9248
9249 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9250
9251         * server-src/amflush.c: Write a "amflush: start at ???" line.
9252         * server-src/amstatus.pl.in: parse the "amflush: start at ???" line.
9253
9254 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9255
9256         * server-src/planner.c (delay_dumps): Use snprintf.
9257
9258 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9259
9260         * common-src/debug.c: Most of the code must in #ifdef DEBUG_CODE.
9261         * client-src/client_util.c: Use AMANDA_TMPDIR instead of AMANDA_DBGDIR.
9262
9263 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9264
9265         * docs/TAPE.CHANGERS: Sync with 2.4.3.
9266
9267 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9268
9269         * server-src/amadmin.c: Cleanup.
9270
9271 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9272
9273         * man/amadmin.8.in: Document new --days option of balance subcommand.
9274
9275 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9276
9277         * server-src/amadmin.c (days_diff): Make next_level0 more acurate.
9278         * server-src/amadmin.c (balance): Improve output.
9279
9280 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9281
9282         * recover-src/extract_list.c: Add Retry and Skip command to amrecover.
9283
9284 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9285
9286         * tape-src/output-tape.c (tape_tapefd_fsf): Must not be static.
9287
9288 2002-11-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9289
9290         * server-src/reporter.c: Fix for LPRCMD not defined.
9291
9292 2002-11-14  Marc Mengel <mengel@fnal.gov>
9293
9294         New changer scripts for use with rait: code, run several other
9295         changers in tandem and return a rait: tape device.  Makes fake
9296         amanda.conf files under AMANDA_DEBUGDIR for each changer used,
9297         then cleans up.
9298
9299         * changer-src/chg-rait.sh.in:   New file. Multi-changer script.
9300         * changer-src/chg-null.sh.in:   New File. Null-device changer script.
9301         * docs/TAPE.CHANGERS:  Descriptions of above.
9302         * configure.in: added above files.
9303         * changer-src/Makefile.am: Likewise.
9304
9305 2002-11-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9306         Patch by Orion Poplawski <orion@colorado-research.com>
9307
9308         * server-src/planner.c (delay_dumps): Add the estimate size to all call
9309           of delay_one_dump.
9310
9311 2002-11-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9312
9313         * server-src/reporter.c: Increase width of some field.
9314
9315 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9316
9317         * changer-src/scsi-solaris.c (SCSI_ExecuteCommand): Init ret to 0.
9318
9319 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9320
9321         * recover-src/extract_list.c (delete_file): j is int.
9322         * changer-src/scsi-defs.h (B, B1): Check if already defined.
9323         * server-src/taper.c: Some cast to int.
9324         * tape-src/amdd.c (read_func, write_func): Complete prototype.
9325         * tape-src/tapeio.h (tapefd_read, tapefd_write): return ssize_t,
9326           third argument is size_t.
9327         * tape-src/tapeio.c: Ditto.
9328         * tape-src/output-file.h (file_tapefd_read, file_tapefd_write): return
9329           ssize_t, third argument is size_t.
9330         * tape-src/output-file.c: Ditto.
9331         * tape-src/output-null.h (null_tapefd_read, null_tapefd_write): return
9332           ssize_t, third argument is size_t.
9333         * tape-src/output-null.c: Ditto.
9334         * tape-src/output-rait.h (rait_read, rait__write): return ssize_t,
9335           third argument is size_t.
9336         * tape-src/output-rait.c: Ditto.
9337         * tape-src/output-tape.h (tape_tapefd_read, tape_tapefd_write): return
9338           ssize_t, third argument is size_t.
9339         * tape-src/output-tape.c: Ditto.
9340
9341 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9342
9343         * configure.in: socklen_t default to int.
9344         * common-src/dgram.c (dgram_recv): addrlen is socklen_t.
9345         * common-src/stream.c (stream_server): len is socklen_t.
9346         * recover-src/extract_list.c (add_file): j is int.
9347
9348 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9349
9350         * client-src/client_util.c (test_name_len) Remove variable.
9351         * common-src/match.c (len_prefix): Change type to int.
9352         * server-src/taper.c: Use %p to print pointer.
9353         * tape-src/amdd.c (read_func, write_func):Change return type to ssize_t.
9354         * tape-src/amdd.c (debug): Renamed to debug_amdd.
9355         * tape-src/ammt.c (debug): Renamed to debug_ammt.
9356
9357 2002-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9358
9359         * restore-src/amidxtaped.c: Fix restore from file.
9360
9361 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9362
9363         * restore-src/amidxtaped.c: Fix newline in string literal.
9364
9365 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9366
9367         * server-src/conffile.c (maxdumpsize): New option.
9368         * server-src/conffile.h: Ditto.
9369         * server-src/planner.c: Use maxdumpsize if set.
9370         * example/amanda.conf.in: Document it.
9371         * man/amanda.8.in: Document it.
9372
9373 2002-11-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9374
9375         * common-src/amfeatures.h (fe_amidxtaped_fsf, fe_amidxtaped_label,
9376           fe_amidxtaped_device, fe_amidxtaped_host, fe_amidxtaped_disk,
9377           fe_amidxtaped_datestamp, fe_amidxtaped_header, fe_amidxtaped_nargs,
9378           fe_amidxtaped_config): New features.
9379         * common-src/amfeatures.c (am_init_feature_set): Set new features.
9380         * recover-src/extract_list.c: Send new protocol data to amidxtaped.
9381         * restore-src/Makefile.am: amidxtaped.c need libamserver.
9382         * restore-src/amidxtaped.c: Read new protocol data from amrecover.
9383         * restore-src/amidxtaped.c: Use new configuration options.
9384         * server-src/conffile.c (conf_amrecover_do_fsf,
9385           conf_amrecover_check_label, conf_amrecover_changer): New config.
9386         * server-src/conffile.h: New config options.
9387         * example/amanda.conf.in: Document them.
9388         * man/amanda.8.in: Document them.
9389
9390 2002-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9391
9392         * autogen: touch config/config.h.in
9393         * configure.in: Patch from autoupdate-2.53 and LIBOBJS.
9394         * common-src/Makefile.am: Build versuff.o before version.o
9395         * recover-src/Makefile.am: Remove work around for automake-1.2
9396
9397 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9398
9399         * configure.in: Remove --disable-libtool.
9400         * */Makefile.am: Remove WANT_LIBTOOL.
9401
9402 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9403
9404         * changer-src/chg-scsi.c (config_name, config_dir): Remove declaration.
9405         * server-src/amadmin.c: Ditto.
9406         * server-src/amcheck.c: Ditto.
9407         * server-src/amcleanupdisk.c: Ditto.
9408         * server-src/amflush.c: Ditto.
9409         * server-src/amindexd.c: Ditto.
9410         * server-src/amlabel.c: Ditto.
9411         * server-src/amlogroll.c: Ditto.
9412         * server-src/amtape.c: Ditto.
9413         * server-src/amtrmidx.c: Ditto.
9414         * server-src/amtrmlog.c: Ditto.
9415         * server-src/chunker.c: Ditto.
9416         * server-src/diskfile.c: Ditto.
9417         * server-src/driver.c: Ditto.
9418         * server-src/dumper.c: Ditto.
9419         * server-src/getconf.c: Ditto.
9420         * server-src/planner.c: Ditto.
9421         * server-src/reporter.c: Ditto.
9422         * server-src/taper.c: Ditto.
9423         * server-src/conffile.c (config_name, config_dir): Add declaration.
9424
9425 2002-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9426
9427         * man/amrestore.8: Amrestore doesn't use a changer.
9428
9429 2002-11-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9430
9431         * configure.in (SHELL): Don't set it, libtool do it.
9432
9433 2002-10-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9434
9435         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.3.
9436
9437 2002-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9438
9439         * restore-src/amrestore.c: New '-l <label>' flag, Do a rewind and
9440           check the label before restoring.
9441         * man/amrestore.8: Document -l flag.
9442
9443 2002-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9444
9445         * configure.in (AM_HAVE_MT_FLAGS, AM_HAVE_MT_FILENO, AM_HAVE_MT_BLKNO,
9446           AM_HAVE_MT_DSREG,AM_HAVE_MT_ERREG): Rename to HAVE_MT_FLAGS,
9447           HAVE_MT_FILENO, HAVE_MT_BLKNO, HAVE_MT_DSREG and HAVE_MT_ERREG.
9448         * tape-src/output-tape.c: Ditto.
9449
9450 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9451         Undo patch of 2002-10-24. They are needed by amrecover.
9452
9453         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
9454           is_local_fstype): Add Prototype.
9455         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
9456           is_local_fstype): remove Prototype.
9457
9458 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9459         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
9460
9461         * tape-src/tapetype.c: Detects and warns the user if the tape drive
9462           has hardware compression enabled.
9463
9464 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9465
9466         * restore-src/amrestore.c: New '-f <fileno>' flag, Do a rewind and
9467           'fsf <fileno>' if -f is set.
9468         * man/amrestore.8: Document -f flag.
9469         
9470 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9471
9472         * common-src/amfeatures.h (fe_amindexd_fileno_in_OLSD, 
9473           fe_amindexd_fileno_in_ORLD): New amfeatures.
9474         * common-src/amfeatures.c (am_init_feature_set): Set
9475           fe_amindexd_fileno_in_OLSD and fe_amindexd_fileno_in_ORLD.
9476         * recover-src/amrecover.h (struct DIR_ITEM): Add fileno.
9477         * recover-src/display_commands.c (add_dir_list_item): Set fileno
9478           in struct DIR_ITEM.
9479         * recover-src/display_commands.c (suck_dir_list_from_server): Read
9480           fileno if fe_amindexd_fileno_in_OLSD is set.
9481         * recover-src/extract_list.c (struct EXTRACT_LIST): Add fileno.
9482         * recover-src/extract_list.c (add_file): Read fileno if
9483           fe_amindexd_fileno_in_ORLD is set.
9484         * recover-src/extract_list.c (delete_file): Read fileno if
9485           fe_amindexd_fileno_in_ORLD is set.
9486         * server-src/amindexd.c (opaque_ls): Write fileno if
9487           fe_amindexd_fileno_in_OLSD or fe_amindexd_fileno_in_ORLD are set.
9488
9489 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9490         patch by Doug Kingston <dpk@pobox.com>
9491
9492         * configure.in (NEED_PATH_ENV, IGNORE_UID_CHECK, IGNORE_FSTAB,
9493           DONT_SUID_ROOT): Defined if on *-pc-cygwin.
9494         * client-src/Makefile.am: Fix for cygwin.
9495         * client-src/getfsent.c: Don't use fstab if IGNORE_FSTAB.
9496         * client-src/killpgrp.c: Don't suid(0) if DONT_SUID_ROOT.
9497         * client-src/rundump.c: Don't suid(0) if DONT_SUID_ROOT.
9498         * client-src/runtar.c: Don't suid(0) if DONT_SUID_ROOT.
9499         * client-src/selfcheck.c (check_suid): Don't check uid if
9500           IGNORE_UID_CHECK.
9501         * common-src/alloc.c (safe_env): Add PATH to ENV if NEED_PATH_ENV.
9502         * recover-src/amrecover.c: Don't check uid if IGNORE_UID_CHECK.
9503
9504 2002-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9505
9506         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
9507           is_local_fstype): Remove Prototype.
9508         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
9509           is_local_fstype): Add Prototype.
9510
9511 2002-10-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9512
9513         * server-src/amindexd.c: New FEATURES command that read the features
9514           set from the client and reply the features set of the server.
9515         * recover-src/amrecover.h: include "amfeatures.h"
9516         * recover-src/amrecover.c: Send the FEATURES command to the server
9517           and read it's features set.
9518
9519 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9520
9521         * client-src/Makefile.am: Work around for CYGWIN.
9522         * server-src/Makefile.am: Ditto.
9523
9524 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9525
9526         * configure.in: Remove empty command from $program_transform_name.
9527
9528 2002-10-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9529
9530         * recover-src/extract_list.c (READ_TIMEOUT): Increased to 240*60.
9531
9532 2002-09-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9533
9534         * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined.
9535
9536 2002-09-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9537
9538         * server-src/amverifyrun.sh.in: New program.
9539         * man/amverifyrun.8.in: Man page for amverifyrun.
9540         * configure.in (AC_OUTPUT): add man/amverifyrun.8 and
9541           server-src/amverifyrun.sh.
9542         * man/Makefile.am (SERVER_MAN_PAGES): Add amverifyrun.8.
9543         * man/amanda.8.in: Add amdd, ammt and amverifyrun in SEE ALSO.
9544         * man/amverify.8.in: Add amverifyrun(8) in SEE ALSO.
9545         * server-src/Makefile.am (sbin_SCRIPTS): Add amverifyrun.
9546
9547 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9548
9549         * server-src/amverify.sh.in: Accept runtapes as a third argument.
9550         * man/amverify.8.in: Document it.
9551
9552 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9553
9554         * config/missing: Updated from automake-1.5.
9555
9556 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9557
9558         * config/config.guess: Updated from ftp://ftp.gnu.org/gnu/config/
9559         * config/config.sub: Updated from ftp://ftp.gnu.org/gnu/config/
9560
9561 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9562
9563         * client-src/sendsize.c (getsize_dump): Print the fstype.
9564         * client-src/sendbackup-dump.c (start_backup): Print the fstype.
9565
9566 2002-09-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9567         Patch by  Florian Hars <hars@bik-gmbh.de>
9568
9569         * changer-src/chg-zd-mtx.sh.in: Fix default value for cleancycle.
9570
9571 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9572
9573         * recover-src/extract_list.c (extract_files): print tape drive
9574           and host before asking to load tape.
9575
9576 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9577
9578         * server-src/taper.c (read_file): Initialize file, 
9579           stat(file.cont_filename) before opening it.
9580           
9581 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9582
9583         * server-src/amverify.sh.in: Don't check that the device is
9584           a character device, it could be a file: or rait:
9585
9586 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9587
9588         * common-src/amfeatures.c (am_set_default_feature_set):
9589           fe_rep_options_sendbackup_options is a default feature.
9590
9591 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9592
9593         * server-src/amstatus.pl.in: Sort a disk in datestamp order.
9594
9595 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9596         Text by Jean-Francois Malouin <Jean-Francois.Malouin@bic.mni.mcgill.ca>
9597
9598         * docs/EXCLUDE: Improve documentation.
9599
9600 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9601
9602         * server-src/reporter.c: Fix compilation error if LPRCMD is not defined.
9603
9604 2002-08-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9605         Patch by Jason Brooks <jason0@mail.wrs.com>
9606
9607         * docs/chg-scsi.notes: New document.
9608         * changer-src/chg-scsi.c: Adding printout of "emubarcode" values 
9609           in the debug file.
9610         * changer-src/scsi-changer-driver.c: Added dlt8000 and L500 to 
9611           ChangerIO[].
9612         * changer-src/sense.c: Added dlt8000 and L500 to SenseType[].
9613
9614 2002-08-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9615
9616         * tape-src/output-null.c (null_tape_stat, null_tape_access): Use
9617           "/dev/null" instead of filename.
9618
9619 2002-08-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9620
9621         * changer-src/chg-mtx.sh.in: Sync with 2.4.3 branch.
9622         * changer-src/chg-scsi-chio.c: Ditto.
9623         * changer-src/chg-scsi.c: Ditto.
9624         * changer-src/scsi-aix.c: Ditto.
9625         * changer-src/scsi-bsd.c: Ditto.
9626         * changer-src/scsi-cam.c: Ditto.
9627         * changer-src/scsi-changer-driver.c: Ditto.
9628         * changer-src/scsi-defs.h: Ditto.
9629         * changer-src/scsi-hpux_new.c: Ditto.
9630         * changer-src/scsi-irix.c: Ditto.
9631         * changer-src/scsi-linux.c: Ditto.
9632         * changer-src/scsi-solaris.c: Ditto.
9633         * tape-src/tapeio.c: Ditto.
9634
9635 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9636
9637         * recover-src/uparse.y: Fix compiler warning.
9638
9639 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9640
9641         * server-src/amtrmidx.c: Continue if a directory doesn't exist.
9642
9643 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9644
9645         * man/amanda.8.in (tapecycle): Improve documentation.
9646
9647 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9648
9649         * server-src/amstatus.pl.in: Works with features.
9650
9651 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9652
9653         * common-src/amfeatures.c (am_feature_to_string): Return the string
9654           "UNKNOWNFEATURE" if no features.
9655         * common-src/amfeatures.c (am_string_to_feature): Return NULL if the
9656           string is "UNKNOWNFEATURE".
9657
9658 2002-08-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9659
9660         * common-src/file.c (debug_agets): line_free was badly set when
9661         the buffer size in increased.
9662
9663 2002-07-19  John R. Jackson (jrj@purdue.edu)
9664
9665         * common-src/amanda.h: Fix bad #define.
9666
9667 2002-07-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9668         Patch by
9669           David Munro <D.Munro@surrey.ac.uk>
9670
9671         * common-src/sl.c (new_sl): Alloc (sl_t) instead of (sl_t *).
9672           
9673 2002-06-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9674         Bug reported by 
9675           Jonathan R. Johnson <Jonathan.Johnson@MinnetonkaSoftware.com>
9676
9677         * server-src/reporter.c: Fix psfname filename.
9678
9679 2002-05-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9680
9681         * client-src/sendbackup.c: Don't do compression if it is server side.
9682         * client-src/sendbackup-dump.c: Ditto.
9683         * client-src/sendbackup-gnutar.c: Ditto.
9684
9685 2002-05-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9686         Patch by Manuel Bouyer <bouyer@antioche.lip6.fr>
9687
9688         * server-src/taper.c (detach_buffers): Fix compilation with mmap.
9689
9690 2002-04-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9691
9692         * recover-src/extract_list.c (extract_files): Set dump_device_name
9693           after the call of okay_to_continue.
9694
9695 2002-04-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9696
9697         New features to describe the OPTIONS line of a REP packet.
9698         * common-src/amfeatures.h: Add fetures fe_rep_options_maxdumps,
9699           fe_rep_options_hostname, fe_rep_options_features and
9700           fe_rep_options_sendbackup_options.
9701         * common-src/amfeatures.c (am_init_feature_set): Add
9702           fe_rep_options_features.
9703         * client-src/selfcheck.c: Write REP packet according to server features.        * client-src/sendbackup.c: Ditto.
9704         * client-src/sendsize.c: Ditto.
9705
9706 2002-04-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9707
9708         * common-src/amfeatures.h:
9709              Rename fe_g_options_maxdump  to fe_req_options_maxdumps
9710              Rename fe_g_options_hostname to fe_req_options_hostname
9711              Rename fe_g_options_features to fe_req_options_features
9712         * common-src/amfeatures.c: Ditto
9713         * server-src/amcheck.c: Ditto
9714         * server-src/dumper.c: Ditto
9715         * server-src/planner.c: Ditto
9716
9717 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9718
9719         * server-src/amcheck.c: Check if it can send features, hostname or
9720           maxdumps on the global options line. Don't send hostname and
9721           maxdumps for a noop service.
9722         * server-src/dumper.c: Ditto.
9723         * server-src/planner.c: Ditto.
9724
9725 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9726
9727         * client-src/sendbackup.c: (optionstr): Add srvcomp-best and
9728           srvcomp-fast options.
9729
9730 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9731
9732         * server-src/amcheck.c (start_host): Check the todo bit before 
9733           sending noop REQ.
9734
9735 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9736
9737         * client-src/client_util.c (parse_options, parse_g_options): Check
9738           for duplication options.
9739         * client-src/client_util.h (COMPR_SERVER_FAST, COMPR_SERVER_BEST):
9740           Declare.
9741         * client-src/selfcheck.c: Check for COMPR_FAST or COMPR_BEST.
9742
9743 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9744
9745         * client-src/selfcheck.c (host):Remove variable,use g_options->hostname.
9746         * client-src/sendbackup.c: Ditto.
9747         * client-src/sendsize.c: Ditto.
9748
9749 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9750
9751         * client-src/client_util.c (parse_g_options) New function to parse
9752           the global options string.
9753         * client-src/client_util.h (parse_g_options): Prototype.
9754         * client-src/selfcheck.c: use parse_g_options.
9755         * client-src/sendbackup.c: use parse_g_options.
9756         * client-src/sendsize.c: use parse_g_options.
9757
9758 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9759
9760         * server-src/diskfile.c: Improve message for missing features.
9761
9762 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9763
9764         Add many features.
9765         * common-src/amfeatures.c (am_set_default_feature_set): New function 
9766           to set the default features set.
9767         * common-src/amfeatures.h (am_set_default_feature_set): Prototype.
9768         * common-src/amfeatures.h: Rename amanda_feature_auth_keyword to 
9769           fe_options_auth.
9770         * client-src/client_util.c: Check features.
9771         * server-src/amcheck.c: Ditto.
9772         * server-src/diskfile.c: Ditto.
9773         * server-src/driverio.c: Ditto.
9774         * server-src/planner.c: Ditto.
9775         * server-src/diskfile.h (optionstr): Change prototype.
9776         * client-src/sendsize.c: Fix compiler warning.
9777
9778 2002-04-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9779
9780         * common-src/amfeatures.c: Include "amfeatures.h"
9781         * common-src/rsh-security.c: Don't assert on undefined variable.
9782
9783 2002-04-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9784
9785         * common-src/amfeatures.c: Renamed from features.c
9786         * common-src/amfeatures.h: Renamed from features.h
9787         * common-src/Makefile.am: Rename features to amfeatures.
9788         * client-src/amandad.c: Ditto.
9789         * client-src/client_util.h: Ditto.
9790         * client-src/selfcheck.c: Ditto.
9791         * client-src/sendbackup.c: Ditto.
9792         * client-src/sendsize.c: Ditto.
9793         * server-src/amcheck.c: Ditto.
9794         * server-src/chunker.h: Ditto.
9795         * server-src/diskfile.h: Ditto.
9796         * server-src/dumper.c: Ditto.
9797         * server-src/planner.c: Ditto.
9798         * server-src/taper.c: Ditto.
9799
9800 2002-04-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9801
9802         * server-src/conffile.c: Default dumporder set to "ttt".
9803         * server-src/driver.c: If dumporder is too short, use t and T.
9804         * man/amanda.8.in: Default dumporder set to "ttt".
9805
9806 2002-04-13  John R. Jackson (jrj@purdue.edu)
9807
9808         * common-src/features.c: Add amanda_feature_auth_keyword feature so
9809           authorization in the OPTIONS string is backward compatible.
9810         * common-src/features.h: Ditto.
9811         * client-src/client_util.c: Ditto.
9812         * client-src/client_util.h: Ditto.
9813         * client-src/selfcheck.c: Ditto.
9814         * client-src/sendbackup.c: Ditto.
9815         * client-src/sendsize.c: Ditto.
9816         * server-src/diskfile.c: Ditto.
9817         * server-src/planner.c: Fix compiler warning.
9818
9819 2002-04-13  John R. Jackson (jrj@purdue.edu)
9820
9821         * server-src/diskfile.c: Fix memory leak.
9822
9823 2002-04-13  John R. Jackson (jrj@purdue.edu)
9824
9825         * server-src/amcheck.c: Fix error parsing in packet.
9826
9827 2002-04-13  John R. Jackson (jrj@purdue.edu)
9828
9829         * common-src/features.c: New file.  Add support for feature sets so
9830           different Amanda versions can work together.
9831         * common-src/features.h: Ditto.
9832         * common-src/Makefile.am: Ditto.  Add "features" test program.
9833         * client-src/amandad.c: Add "noop" service to return the feature set.
9834         * client-src/selfcheck.c: Accept and return a feature set in OPTIONS.
9835           Improve parsing.
9836         * client-src/sendbackup.c: Ditto.
9837         * client-src/sendsize.c: Ditto.
9838         * common-src/bsd-security.c: Minor message change.
9839         * common-src/error.c: Use strcasecmp.
9840         * common-src/protocol.c: Use dbprintf for PROTO_DEBUG and improve
9841           messages.
9842         * restore-src/amidxtaped.c: Improve parsing.
9843         * server-src/amcheck.c: Ask for client features via "noop" before
9844           doing the real "selfcheck" service requests.  Improve parsing.
9845         * server-src/amflush.c: Minor coding format cleanup.
9846         * restore-src/amindexd.c: Improve parsing.
9847         * server-src/chunker.c: Deal with features string in commands.  Improve
9848           parsing.
9849         * server-src/diskfile.c: Initialize the features hosttype field.
9850         * server-src/diskfile.h: Add the features hosttype field.
9851         * server-src/driver.c: Save the features from the schedule.  Clean
9852           up some error messages.
9853         * server-src/driverio.c: Add features string to several commands.
9854         * server-src/dumper.c: Deal with features string in commands.  Improve
9855           parsing.
9856         * server-src/planner.c: Ask for client features via "noop" before
9857           doing the real "sendsize" service requests.  Improve parsing.
9858         * server-src/server_util.c: Minor coding cleanup.
9859         * server-src/server_util.h: Increase the number of args allowed on
9860           commands.
9861         * server-src/taper.c: Deal with features string in commands.  Improve
9862           parsing.
9863
9864 2002-04-12  John R. Jackson (jrj@purdue.edu)
9865
9866         * server-src/driver.c: Fix crash when only processing a tape queue
9867           (e.g. amflush).
9868
9869 2002-04-11  John R. Jackson (jrj@purdue.edu)
9870
9871         * server-src/driver.c: Protect against crash when taper has died.
9872
9873 2002-04-11  John R. Jackson (jrj@purdue.edu)
9874
9875         * common-src/stream.c: Clean up an error message.
9876
9877 2002-04-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9878
9879         * docs/DUMPER-API: Remove the section about USER and GROUP.
9880
9881 2002-04-09  John R. Jackson (jrj@purdue.edu)
9882
9883         * server-src/driver.c: Fix send of QUIT to taper when it is down.
9884
9885 2002-04-07  John R. Jackson (jrj@purdue.edu)
9886
9887         * server-src/dumper.c: Change sendbackup response parsing to handle
9888           2.4 changes.  Improve packet parse error processing.  Make packet
9889           logging conditional on an #ifdef instead of commented out.
9890
9891 2002-04-07  John R. Jackson (jrj@purdue.edu)
9892
9893         * client-src/amandad.c: Fix FORCE_USERID to run the service as the
9894           client user if amandad was started as root.
9895
9896 2002-04-07  John R. Jackson (jrj@purdue.edu)
9897
9898         * common-src/clock.c: Move definition of amanda_gettimeofday() macro
9899           to the header file so it could be used other places.  Use new
9900           amanda_timezone macro to avoid some #ifdef's.
9901         * common-src/clock.h: Ditto.
9902         * common-src/bsd-security.c: Fix compatibility problems with pre-2.5
9903           servers trying to talk to 2.5 clients.  The HANDLE value was not
9904           being properly handled, and the sequence number was being ignored.
9905
9906 2002-04-07  John R. Jackson (jrj@purdue.edu)
9907
9908         * server-src/reporter.c: Move column routines to conffile.c so amcheck
9909           can use them in its tests.  Do not abort on several failures, but
9910           generate messages in the FAILURE AND STRANGE DUMP SUMMARY section.
9911         * server-src/conffile.c: Move column routines to here.
9912         * server-src/conffile.h: Ditto.
9913         * server-src/amcheck.c: Add several config file tests.
9914         * server-src/logfile.c: Change "reporter" to "amreport".
9915
9916 2002-04-07  John R. Jackson (jrj@purdue.edu)
9917
9918         * configure.in: Add /usr/local/sbin to LOCPATH.
9919
9920 2002-03-31  John R. Jackson (jrj@purdue.edu)
9921
9922         * server-src/amcheck.c: Send maxdumps and hostname in packet OPTIONS.
9923
9924 2002-03-31  John R. Jackson (jrj@purdue.edu)
9925
9926         * changer-src/scsi-defs.h: Fix compiler warning and bug it was hiding.
9927         * changer-src/scsi-solaris.c: Ditto.
9928
9929 2002-03-31  John R. Jackson (jrj@purdue.edu)
9930
9931         * client-src/amandad.c: Fix arguments to pkt_cat.
9932         * common-src/bsd-security.c: Ditto.
9933
9934 2002-03-31  John R. Jackson (jrj@purdue.edu)
9935
9936         * client-src/amandad.c: Add relative timestamps to a lot of debug
9937           file messages, and add more messages, to better track what is
9938           going on.  Various general cleanup.
9939         * client-src/calcsize.c: Ditto.
9940         * client-src/client_util.c: Ditto.
9941         * client-src/selfcheck.c: Ditto.
9942         * client-src/sendbackup-dump.c: Ditto.
9943         * client-src/sendbackup-gnutar.c: Ditto.
9944         * client-src/sendbackup.c: Ditto.
9945         * client-src/sendbackup.h: Ditto.
9946         * client-src/sendsize.c: Ditto.
9947         * common-src/amanda.h: Ditto.
9948         * common-src/bsd-security.c: Ditto.
9949         * common-src/clock.c: Ditto.
9950         * common-src/clock.h: Ditto.
9951         * common-src/debug.c: Ditto.
9952         * common-src/dgram.c: Ditto.
9953         * common-src/error.c: Ditto.
9954         * common-src/file.c: Ditto.
9955         * common-src/pipespawn.c: Ditto.
9956         * common-src/stream.c: Ditto.
9957         * common-src/util.c: Ditto.
9958         * man/amanda.8.in: Ditto.
9959         * restore-src/amidxtaped.c: Ditto.
9960         * restore-src/amrestore.c: Ditto.
9961         * server-src/amindexd.c: Ditto.
9962         * server-src/getconf.c: Ditto.
9963         * server-src/planner.c: Ditto.
9964
9965 2002-03-31  John R. Jackson (jrj@purdue.edu)
9966
9967         * client-src/sendsize.c: Pay attention to the spindle number.
9968
9969 2002-03-30  John R. Jackson (jrj@purdue.edu)
9970
9971         * server-src/planner.c: General delay_dumps code cleanup.
9972
9973 2002-03-30  John R. Jackson (jrj@purdue.edu)
9974
9975         * server-src/planner.c: Make sure individual dumps larger than a tape
9976           are not added back into the schedule.  Found by Uncle George
9977           <gatgul@voicenet.com>.
9978
9979 2002-03-29  John R. Jackson (jrj@purdue.edu)
9980
9981         * man/amanda.8.in: Move "comment" in tapetype after inclusion of
9982           previous definition.  Found by Uncle George <gatgul@voicenet.com>.
9983
9984 2002-03-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9985
9986         * client-src/client_util.c (fixup_relative): New function to prepend
9987           the dirname if relative.
9988         * client-src/client_util.c (build_exclude, build_include): Use
9989           fixup_relative.
9990         * client-src/client_util.c (parse_options): Do not prepend the dirname.
9991         * client-src/selfcheck.c (check_options): Don't generate ERROR for samba
9992           if optional is set.
9993
9994 2002-03-24  John R. Jackson (jrj@purdue.edu)
9995
9996         * common-src/debug.c: Change dbopen() message slightly to match what
9997           amdump generates, making it easier to parse.
9998
9999 2002-03-24  John R. Jackson (jrj@purdue.edu)
10000
10001         * common-src/Makefile.am: Move clock routines to common-src so
10002           everyone may use them.
10003         * server-src/Makefile.am: Ditto.
10004
10005 2002-03-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10006
10007         * client-src/sendbackup-gnutar.c: Fix use of no_record.
10008
10009 2002-03-24  John R. Jackson (jrj@purdue.edu)
10010
10011         * client-src/amandad.c: Make sure argv[0] is valid before using it.
10012         * restore-src/amidxtaped.c: Ditto.
10013         * server-src/amindexd.c: Ditto.
10014
10015 2002-03-24  John R. Jackson (jrj@purdue.edu)
10016
10017         * client-src/client_util.c: Use the Amanda memory allocation code.
10018         * client-src/sendbackup-gnutar.c: Ditto.
10019         * client-src/sendsize.c: Ditto.
10020         * common-src/match.c: Ditto.
10021         * recover-src/amrecover.c: Ditto.
10022         * recover-src/display_commands.c: Ditto.
10023         * recover-src/extract_list.c: Ditto.
10024         * restore-src/amidxtaped.c: Ditto.
10025         * server-src/amflush.c: Ditto.
10026         * server-src/disk_history.c: Ditto.
10027         * server-src/driver.c: Ditto.
10028         * server-src/dumper.c: Ditto.
10029         * common-src/amanda.h: Always pass the source file and line number
10030           to the memory routines to make it easier to debug.
10031         * common-src/alloc.c: Ditto.
10032         * common-src/file.c: Ditto.
10033
10034 2002-03-23  John R. Jackson (jrj@purdue.edu)
10035
10036         * changer-src/chg-scsi-chio.c: Use agets instead of fgets.
10037         * changer-src/chg-scsi.c: Use agets instead of fgets.
10038         * client-src/client_util.c: Use agets instead of fgets.
10039         * recover-src/amrecover.c: Clean up output on EOF.
10040         * recover-src/extract_list.c: Use agets instead of direct stdio.
10041           Clean up output on EOF.  Add '?' help.
10042         * recover-src/set_commands.c: Quote the new device in the verify
10043           output to make it stand out.
10044         * server-src/amflush.c: Clean up output on EOF.  Clean up output
10045           when multiple holding disk areas selected.  Clean up parsing.
10046           Loop until valid user response.
10047         * server-src/find.c: Do not complain if log file is missing for
10048           a new (datestamp == 0) tape.
10049         * server-src/holding.c: Use agets instead of fgets. Clean up
10050           interactive input and output.
10051
10052 2002-03-23  John R. Jackson (jrj@purdue.edu)
10053
10054         * client-src/selfcheck.c: Fix a compiler warning.
10055         * client-src/sendbackup.c: Ditto.
10056         * client-src/sendsize.c: Ditto.
10057
10058 2002-03-23  John R. Jackson (jrj@purdue.edu)
10059
10060         * client-src/getfsent.c (close_fstab()): Call endfsent() instead
10061           of fclose(), if available.
10062
10063 2002-03-23  John R. Jackson (jrj@purdue.edu)
10064
10065         * common-src/dbprintf (debug_printf): Make sure errno is preserved
10066           across dbprint() calls.
10067
10068 2002-03-23  John R. Jackson (jrj@purdue.edu)
10069
10070         * configure.in: Add -R$dir as well as -L$dir on Solaris when processing
10071           --with-libraries to support shared libraries of support products.
10072
10073 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10074
10075         * server-src/chunker.c: Get result from dumper.
10076         * server-src/driver.c: Send dumper result to chunker.
10077         * server-src/driverio.c (chunker_cmd): Send DONE and FAILED command.
10078         * server-src/driverio.h (chunker_t): New down field.
10079         * server-src/dumper.c: Cleanup.
10080         * server-src/logfile.c (logtype_str): Add "PARTIAL".
10081         * server-src/logfile.h (logtype_e): Add L_PARTIAL log.
10082         * server-src/reporter.c: Handle PARTIAL log.
10083         * server-src/server_util.c (cmdstr): Add "PARTIAL".
10084         * server-src/server_util.h (cmd_t): Add PARTIAL command.
10085         * server-src/taper.c (read_file): Result is PARTIAL if dumper
10086           result is not DONE.
10087
10088 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10089
10090         * server-src/tapefile.c (write_tapelist): Write to a temp file and
10091           rename it.
10092         * server-src/amlabel.c: Do not rename the tapelist file.
10093         * server-src/taper.c (label_tape): Do not rename the tapelist file.
10094
10095 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10096
10097         * client-src/client_util.c (parse_options): Do not check if the
10098           exclude file exist, it's done later.
10099
10100 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10101
10102         * client-src/client_util.c (parse_options): Parse exclude-optional and
10103           include-optional.
10104         * client-src/client_util.h (option_t): New exclude_optional and
10105           include_optional field.
10106         * man/amanda.8.in: Document optional.
10107         * server-src/amadmin.c (disklist_one): Display optional.
10108         * server-src/conffile.c: Parse optional keyword.
10109         * server-src/conffile.h (dumptype_t): New exclude_optional and
10110           include_optional field.
10111         * server-src/diskfile.c (read_diskline): Copy optional bits.
10112         * server-src/diskfile.c (optionstr): Print optional bits.
10113         * server-src/diskfile.h (disk_t): New exclude_optional and
10114           include_optional field.
10115         * server-src/planner.c (getsize): Use new sendsize format if optional
10116           bits are used.
10117
10118 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10119
10120         * server-src/driver.c (dump_to_tape): Call start_degraded_mode() if
10121           taper failed.
10122
10123 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10124
10125         * recover-src/extract_list.c (extract_files_setup): Add ^$ to host.
10126
10127 2002-03-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10128         Patch from Michael Frankowski <mfrankow@winternet.com>
10129
10130         * client-src/sendbackup-gnutar.c: Test for subdir before dbprintf.
10131
10132 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10133
10134         * client-src/client_util.c (init_options): New function.
10135         * client-src/client_util.h (init_options): Prototype.
10136         * client-src/sendsize.c (main): Use init_options.
10137
10138 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10139
10140         * client-src/client-util.c: Check for include and exclude files.
10141
10142 2002-03-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10143
10144         * server-src/amstatus.pl.in: Fix.
10145         * server-src/conffile.c(get-compress): Change message for bad 
10146           compress argument.
10147
10148 2002-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10149
10150         * server-src/amstatus.pl.in: Fix.
10151         * client-src/client_util.c (parse_options): Parse auth= option.
10152         * client-src/client_util.h (option_t): Add auth field.
10153         * client-src/sendbackup.c: Use auth instead of bsd-auth.
10154         * client-src/sendsize.c: Init auth.
10155
10156 2002-03-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10157
10158         * client-src/sendbackup-dump.c: use amdevice as argument to
10159           amname_to_fstype.
10160         * client-src/sendsize.c: Use amdevice as argument to amname_to_dirname.
10161         * server-src/dumper.c: clear device if it is set to NODEVICE.
10162
10163 2002-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10164
10165         * server-src/amindexd.c: Compilation fix.
10166
10167 2002-03-07 John R. Jackson (jrj@purdue.edu)
10168
10169         * changer-src/chg-zd-mtx.sh.in: Allow whitespace on a VolumeTag line.
10170           Compliments of Christopher McCrory <chrismcc@pricegrabber.com>.
10171
10172 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10173
10174         * recover-src/amrecover.h (list_disk): Prototype.
10175         * recover-src/set_commands.c (list_disk): New function.
10176         * recover-src/uparse.y: parse LISTDISK.
10177         * recover-src/uscan.l: listdisk keyword.
10178         * recover-src/help.c: help for listdisk.
10179         * man/amrecover.8.in: Doc for listdisk.
10180         * server-src/amindexd.c: New LISTDISK command.
10181         * docs/INDEXING: Document LISTDISK command.
10182
10183 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10184
10185         * server-src/amstatus.pl.in: Better output for autoflush.
10186
10187 2002-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10188
10189         * server-src/amstatus.pl.in: Fix.
10190
10191 2002-03-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10192
10193         * server-src/amadmin.c (disklist_one): Print dp->device.
10194         * server-src/amcheck.c (start_host): Send device if specified.
10195         * server-src/amstatus.pl.in: Parse line with device.
10196         * server-src/diskfile.c (parse_diskline): Parse device.
10197         * server-src/diskfile.c (match_disklist): Match on device.
10198         * server-src/diskfile.h (disk_t): New field device.
10199         * server-src/driverio.c: (dumper_cmd): Send device.
10200         * server-src/dumper.c (main): Parse device in request.
10201         * server-src/dumper.c (start_dump): New device argument, send
10202           device to client.
10203         * server-src/planner.c (getsize): Send device to client.
10204         * server-src/server_util.h (MAX_ARGS): Set it to 12.
10205         * client-src/client_util.c (add_include, build_exclude, build_include,
10206           parse_options): New device argument.
10207         * client-src/client_util.h (build_exclude,build_include,parse_options):
10208           New prototype.
10209         * client-src/selfcheck.c: Use device.
10210         * client-src/sendbackup-dump.c: Use device.
10211         * client-src/sendbackup-gnutar.c: Use device.
10212         * client-src/sendbackup.c: Use device.
10213         * client-src/sendbackup.h (start_backup): New device argument.
10214         * client-src/sendsize.c: Use device.
10215         * man/amanda.8.in: Document new disklist syntax.
10216         * example/disklist: Give example.
10217
10218 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10219
10220         * server-src/amstatus.pl.in: Write "wait to flush" only if waittaper
10221           is requested.
10222
10223 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10224
10225         * server-src/amstatus.pl.in: Fix for failed tape.
10226
10227 2002-02-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10228
10229         * man/amanda.8.in: Document multiple exclude.
10230         * man/amanda.8.in: Document include.
10231
10232 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10233
10234         * client-src/client-util.c (add_include): Include are glob expression.
10235
10236 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10237
10238         * common-src/debug.c (debug_open); Don't try to renmae an already 
10239           renamed file.
10240
10241 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10242
10243         * server-src/conffile.c (dump_configuration): Print multiple 
10244           exclude and include.
10245
10246 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10247
10248         * client-src/client_util.c (add_exclude, add_include): Typo.
10249
10250 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10251
10252         * client-src/client_util.c (build_include, build_exclude): Fix for 
10253           bad eof detection.
10254
10255 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10256
10257         * client-src/client_util.c (get_name): Create a file name.
10258         * client-src/client_util.c (build_name): Remove old files,
10259           build an unused file name.
10260         * client-src/client_util.c (add_exclude): Add an exclude pattern to
10261           the exclude file.
10262         * client-src/client_util.c (add_include): Add an include to the
10263           include file.
10264         * client-src/client_util.c (build_exclude): Concat all excludes in 
10265           one file.
10266         * client-src/client_util.c (build_include): Concat all includes in 
10267           one file.
10268         * client-src/client_util.h (build_exclude, build_include): Prototype.
10269         * client-src/selfcheck.c.diff (check_options): Call build_exclude 
10270           and build_include.
10271         * client-src/sendsize.c.diff: Call gtar with one 
10272           exclude file/include file.
10273         * client-src/sendbackup-gnutar.c.diff: Call gtar with one 
10274           exclude file/include file.
10275
10276 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10277
10278         * common-src/amanda.h (amfree): Change e local variable to e__errno.
10279         * common-src/amanda.h (strappend): Change t local variable to t_t_t.
10280
10281 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10282
10283         * client-src/sendsize.c: Set include_file and include_list to NULL
10284           when using old protocol.
10285         * client-src/sendbackup-gnutar.c: Include "." when using old protocol.
10286
10287 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10288
10289         * server-src/conffile.h (dumptype_t): Add include_file and include_list.
10290         * server-src/conffile.c: Read include.
10291         * server-src/diskfile.h (disk_t): Add include_file and include_list.
10292         * server-src/diskfile.c (optionstr): Add include to the optionstr.
10293         * server-src/amadmin.c (disklist_one): Print include.
10294         * server-src/planner.c: Use new protocol if include is used.
10295         * client-src/client_util.h (option_t): Add include_file and include_list
10296         * client-src/client_util.c (parse_options): Parse include.
10297         * client-src/selfcheck.c (check_options): Print ERROR if include are 
10298           used for SAMBA or DUMP.
10299         * client-src/sendsize.c: Send include to gnutar.
10300         * client-src/sendbackup-gnutar.c: Send include to gnutar.
10301
10302 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10303
10304         * client-src/client_util.c (parse_options): Check that files from
10305           'exclude list' exist'.
10306         * client-src/selfcheck.c (check_options): Give ERROR if multiple
10307           exclude are used with samba or if exclude are used with DUMP.
10308
10309 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10310
10311         * client-src/sendbackup.h: Remove bad stuff introduced in previous
10312           patch.
10313         * client-src/sendbackup-gnutar.c: Ditto.
10314
10315 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10316
10317         * client_src/client_util.c (parse_options): Function to parse 
10318           the option string. 
10319         * client_src/client_util.h (parse_options): Prototype.
10320         * client_src/client_util.h (option_t): Struct for options.
10321         * client_src/Makefile.am: Compile client_util.
10322         * client_src/selfcheck.c: Use new option_t and multiple exclude.
10323         * client_src/sendbackup.h: Use new option_t and multiple exclude.
10324         * client_src/sendbackup.c: Use new option_t and multiple exclude.
10325         * client_src/sendbackup-dump.c: Use new option_t and multiple exclude.
10326         * client_src/sendbackup-gnutar.c: Use new option_t and multiple exclude.
10327         * client_src/sendsize.c: Use new option_t and multiple exclude.
10328         * server-src/conffile.h: Use sl_t for exclude_file and exclude_list.
10329         * server-src/conffile.c: Multiple exclude.
10330         * server-src/diskfile.h: Use sl_t for exclude_file and exclude_list.
10331         * server-src/diskfile.c: Multiple exclude.
10332         * server-src/planner.c: Multiple exclude.
10333
10334 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10335
10336         * common-src/pipespawn.c (pipespawnv): Typo, ap_snprintf -> snprintf.
10337
10338 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10339
10340         * common-src/pipespawn.c (pipespawnv): New funtion taking an 
10341           argv argument.
10342         * common-src/pipespawn.h (pipespawnv): Prototype.
10343
10344 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10345
10346         * server-src/holding.h: Use sl_t instead of holding_t
10347         * server-src/holding.c: Ditto.
10348         * server-src/amcleanupdisk.c: Ditto.
10349         * server-src/amflush.c: Ditto.
10350         * server-src/find.c: Ditto.
10351         * server-src/planner.c: Ditto.
10352
10353 2002-02-11 John R. Jackson (jrj@purdue.edu)
10354
10355         * configure.in: AIX needs the "other" getconf argument to find out
10356           about large file support (XBS5_ILP32_OFFBIG instead of LFS).
10357
10358 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10359
10360         * common-src/sl.h: New header file
10361         * common-src/sl.c: New file for list of string struct.
10362         * common-src/Makefile.am: Compile sl.c
10363
10364 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10365
10366         * changer-src/chg-zd-mtx.sh.in: Don't use '^' in expr match argument.
10367
10368 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10369
10370         * common-src/fileheader.c (build_header): Typo.
10371
10372 2002-02-10 John R. Jackson (jrj@purdue.edu)
10373
10374         * configure.in: Add new file-pad tapetype option to take the place
10375           of a positive/negative blocksize.  Blocksize may now only be
10376           positive.  File-pad defaults to "true" which pads the last tape
10377           record like it always has.
10378         * man/amanda.8.in: Ditto.
10379         * server-src/amlabel.c: Ditto.
10380         * server-src/conffile.c: Ditto.  Fix typo in conffile test program.
10381         * server-src/conffile.h: Ditto.
10382         * server-src/planner.c: Ditto.
10383         * server-src/taper.c: Ditto.
10384
10385 2002-02-10 John R. Jackson (jrj@purdue.edu)
10386
10387         * configure.in: Save the ./configure args and display them in the
10388           version string (e.g. amandad*debug and "amadmin xx version").
10389         * common-src/genversion.c: Ditto.
10390
10391 2002-02-10 John R. Jackson (jrj@purdue.edu)
10392
10393         * common-src/alloc.c: Fix type mismatch issues discovered by splint
10394           (www.splint.org).  Compliments of jens persson <jens@persson.cx>.
10395         * common-src/bsd-security.c: Ditto.
10396         * common-src/debug.c: Ditto.
10397         * common-src/dgram.c: Ditto.
10398         * common-src/file.c: Ditto.
10399         * common-src/fileheader.c: Ditto.
10400         * common-src/fileheader.h: Ditto.
10401         * common-src/genversion.c: Ditto.
10402         * common-src/getcwd.c: Ditto.
10403         * common-src/match.c: Ditto.
10404         * common-src/stream.c: Ditto.
10405         * common-src/strstr.c: Ditto.
10406         * common-src/token.c: Ditto.
10407         * recover-src/amrecover.c: Ditto.
10408         * recover-src/display_commands.c: Ditto.
10409         * recover-src/extract_list.c: Ditto.
10410         * recover-src/set_commands.c: Ditto.
10411         * server-src/reporter.c: Ditto.
10412
10413 2002-02-10 John R. Jackson (jrj@purdue.edu)
10414
10415         * changer-src/chg-zd-mtx.sh.in: Major cleanup and general overhaul.
10416         * docs/TAPE.CHANGERS: Cleanup.
10417
10418 2002-02-09 John R. Jackson (jrj@purdue.edu)
10419
10420         * common-src/arglist.h: Clean up gcc detection of printf style variable
10421           argument list functions.
10422         * changer-src/scsi-changer-driver.c: Ditto.
10423         * common-src/debug.c: Ditto.
10424         * common-src/dgram.c: Ditto.
10425         * common-src/error.c: Ditto.
10426         * common-src/packet.c: Ditto.
10427         * common-src/packet.h: Ditto.
10428         * common-src/security.c: Ditto.
10429         * common-src/snprintf.c: Ditto.
10430         * common-src/token.c: Ditto.
10431         * common-src/token.h: Ditto.
10432         * server-src/amindexd.c: Ditto.
10433         * server-src/conffile.c: Ditto.
10434         * server-src/diskfile.c: Ditto.
10435         * server-src/logfile.c: Ditto.
10436         * server-src/logfile.h: Ditto.
10437         * server-src/server_util.c: Ditto.
10438
10439 2002-02-09 John R. Jackson (jrj@purdue.edu)
10440
10441         * configure.in: Must look in both strings.h and string.h when trying
10442           to find function declarations (strncasecmp was not found on AIX
10443           but is really there and our override caused a mismatch error).
10444
10445 2002-02-09 John R. Jackson (jrj@purdue.edu)
10446
10447         * configure.in: Add code to test for a type defined in other than the
10448           autoconf expected locations.  Use it to look for socklen_t.
10449
10450 2002-02-08 John R. Jackson (jrj@purdue.edu)
10451
10452         * server-src/amadmin.c (check_dumpuser): Make it fatal to attempt to
10453           do an operation that would alter any files when run as someone other
10454           than the dump user from amanda.conf.  This should prevent files from
10455           ending up with incorrect ownership.
10456
10457 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10458
10459         * man/amrecover.8.in (settape): Document that the hostname is required
10460           if the protocol (tape:, file:, rait:, null:) is specified.
10461         * man/amrecover.8.in (settape): Document that it is posible to
10462           change the tape device when asked to load tape.
10463
10464 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10465
10466         * server-src/holding.c (scan_holdingdir): Create the list in 
10467           datestamp order.
10468
10469 2002-02-02 John R. Jackson (jrj@purdue.edu)
10470
10471         * configure.in: Add unistd.h to list of places to look for ruserok()
10472           declaration.  Reported by John Koenig <jfkoenig@vipb.com> on ALPHA
10473           running OSF1 v5.1
10474
10475 2002-02-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10476         Reported by Roland E. Lipovits <rel@lipo.at0.net>
10477
10478         * server-src/amstatus.pl.in: Don't double-counts the failed 
10479           estimate partitions.
10480
10481 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10482
10483         * configure.in: New --with-maxtapeblocksize with a default of 32.
10484         * common-src/amanda.h: MAX_TAPE_BLOCK_KB is defined in amanda.h
10485
10486 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10487
10488         * common-src/fileheader.c (build_header): Never write the
10489           BLOCKSIZE= line.
10490         * common-src/fileheader.c (parse_file_header): Do not parse the
10491           BLOCKSIZE= line.
10492
10493 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10494
10495         * common-src/fileheader.c (build_header): Write the BLOCKSIZE= line
10496           after the dd if=... line.
10497
10498 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10499
10500         * server-src/driver.c: Init code to 0.
10501
10502 2002-01-29 John R. Jackson (jrj@purdue.edu)
10503
10504         * tape-src/output-tape.c (tape_tapefd_fsf): Some systems cannot deal
10505           with large stack variables, so allocate tape I/O buffers dynamically.
10506         * tape-src/tapeio.c (tapefd_rdlabel): Ditto.
10507
10508 2002-01-25 John R. Jackson (jrj@purdue.edu)
10509
10510         * server-src/driver.c: Log non-zero exit codes and signals from all
10511           the dumpers and taper.
10512
10513 2002-01-25 John R. Jackson (jrj@purdue.edu)
10514
10515         * server-src/amindexd.c: Clean up reporting of errors by gethostby*()
10516           functions.  Make sure they always report what they were trying to
10517           look up, and don't bother reporting errno (it would be h_errno).
10518
10519 2002-01-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10520
10521         * common-src/fileheader.h (dumpfile_t): Add blocksize field.
10522         * common-src/fileheader.h (build_header): Change prototype.
10523         * common-src/fileheader.c (fh_init): blocksize default to 
10524           DISK_BLOCK_BYTES.
10525         * common-src/fileheader.c (parse_file_header): Parse BLOCKSIZE= line.
10526         * common-src/fileheader.c (build_header): Remove blocksize parameter, 
10527           write the BLOCKSIZE= line.
10528         * tape-src/tapeio.c: set file.blocksize, Change call to build_header.
10529         * restore-src/amrestore.c: Ditto.
10530         * server-src/dumper.c: Ditto.
10531         * server-src/taper.c: Ditto.
10532         * server-src/holding.c: Ditto.
10533         * server-src/chunker.c: Ditto.
10534
10535 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10536
10537         * changer-src/scsi-changer-driver.c (SCSI_ReadElementStatus):
10538           set ret to -1.
10539
10540 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10541
10542         * server-src/planner.c: Check for dp->todo.
10543
10544 2002-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10545         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
10546
10547         * changer-src/chg-scsi.c: Typo.
10548
10549 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10550
10551         * changer-src/Makefile.am: Run `perl -c' on perl script.
10552         * client-src/Makefile.am: Ditto.
10553         * dumper-src/Makefile.am: Ditto.
10554         * server-src/Makefile.am: Ditto.
10555
10556 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10557         Reported by Geert Uytterhoeven <geert@linux-m68k.org>
10558
10559         * README: Amanda compile on Linux/m68k.
10560
10561 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10562
10563         * changer-src/chg-rth.pl.in: Typo. fi -> }.
10564
10565 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10566         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
10567
10568         * changer-src/chg-chio.pl.in: Typo. fi -> }.
10569         * changer-src/chg-chio.pl.in (prefix, exec_prefix): Set correctly.
10570         * changer-src/chg-chio.pl.in (max_picker): Init to -1.
10571
10572 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10573
10574         * recover-src/extract_list.c (okay_to_continue_tape): Ignore \n
10575           at end of string.
10576
10577 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10578
10579         * server-src/amoverview.pl.in: Ignore some line from amadmin.
10580
10581 2002-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10582
10583         * common-src/event.c: Use ASSERTIONS not ASSERT.
10584
10585 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10586
10587         * tape-src/output-tape.c (tape_tapefd_rewind, tape_tapefd_unload):
10588           Init rc to -1.
10589         * changer-src/scsi-irix.c (SCSI_OpenDevice): Cast to int.
10590         * common-src/match.c (clean_regex): Cast to int.
10591
10592 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10593         Reported by <ian.willis@sge.net>
10594
10595         * common-src/rsh-security.c: Fix for RSH_DEBUG.
10596
10597 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10598
10599         * config/ltconfig: Remove
10600         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.2.
10601         * config/config.guess: Update from
10602           ftp://ftp.gnu.org/gnu/config/config.guess
10603         * config/config.sub: Update from 
10604           ftp://ftp.gnu.org/gnu/config/config.sub
10605         * config/depcomp, config/install-sh, config/missing, 
10606           config/mkinstalldirs: Update from automake 1.5
10607         * config/Makefile.am (EXTRA_DIST): Remove ltconfig.
10608
10609 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10610         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
10611
10612         * configure.in: Add missing [.
10613
10614 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10615         Patch by Jason Thomas <jason@topic.com.au>
10616              and Eric Siegerman <erics@telepres.com>
10617
10618         * common-src/bsd-security.c (check_user_amandahosts): improve message.
10619
10620 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10621
10622         * server-src/driver.c: Do not go in degraded mode in nodump mode.
10623         * server-src/conffile.c:Check many options to be sure they are positive.
10624
10625 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10626
10627         * changer-src/chg-scsi.c (get_relative_target): return -1;
10628         * changer-src/scsi-irix.c (SCSI_ExecuteCommand): Remove Zero variable.
10629         * common-src/amanda.h: include strings.h if HAVE_STRINGS_H is defined.
10630         * server-src/amadmin.c (info_one): Remove lev0date variable.
10631         * server-src/amadmin.c (import_db): Remove vers_comment variable.
10632         * server-src/amindexd.c (main): Remove arg_len variable.
10633         * server-src/amtrmidx.c (main): Remove level_position and
10634           datestamp_position variables.
10635         * server-src/changer.c (changer_current): Remove checked variable.
10636         * server-src/conffile.c (read_confline): Check value of RESERVE.
10637         * server-src/conffile.c (get_tapetype): Check value of LENGTH and
10638           FILEMARK.
10639         * server-src/diskfile.h: bit field of 1 bit must be unsigned.
10640         * server-src/driver.c (main): Don't check the value of RESERVE.
10641         * server-src/driver.c (find_diskspace): Remove as_pref variable.
10642         * server-src/driverio.c (getresult): cast cmd_t.
10643         * server-src/chunker.c (databuf_flush): save_type is a filetype_t.
10644         * server-src/find.c (search_logfile): Remove host_undo_ch and
10645           disk_undo_ch variables.
10646         * server-src/holding.c (pick_datestamp): Remove result variable.
10647         * server-src/server_util.c (getcmd): Loop on a cmd_t variable.
10648         * server-src/taper.c (tape_writer_side): Remove out_open variable.
10649         * tape-src/tapeio.c (tapefd_close): Cast to (void *).
10650
10651 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10652
10653         * client-src/selfcheck.c: Fix compiler warning.
10654         * changer-src/chg-scsi.c: Ditto.
10655         * changer-src/scsi-changer-driver.c: Ditto.
10656         * changer-src/scsi-defs.h: Ditto.
10657         * server-src/server_util.c: Ditto.
10658         * common-src/fileheader.c: Ditto.
10659
10660 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10661
10662         * configure.in: Set MAX_TAPE_BLOCK_KB on linux
10663
10664 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10665         Patch by Blaz Zupan <blaz@amis.net>
10666
10667         * changer-src/chg-zd-mtx.sh.in: typo.
10668
10669 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10670
10671         * client-src/selfcheck.c (check_access): New function (old check_file
10672           function).
10673         * client-src/selfcheck.c (check_file): Check that the filename is a
10674           file.
10675         * client-src/selfcheck.c (check_dir): Check that dirname is a directory.
10676
10677 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10678         Patch by Henning Schmiedehausen <henning@forge.intermeta.de>
10679
10680         * common-src/file.c (safe_cd): Create the AMANDA_DBGDIR and
10681           AMANDA_TMPDIR directory.
10682
10683 2001-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10684
10685         * server-src/amverify.sh.in: Check that @AMANDA_TMPDIR@ exist.
10686         * server-src/amrmtape.sh.in: Ditto.
10687
10688 2001-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10689
10690         * changer-src/Makefile.am: fix setting of libexec_PROGRAMS.
10691
10692 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10693
10694         * server-src/amstatus.pl.in: Work with amflush log.
10695
10696 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10697
10698         * server-src/driver.c (nodump): new argument, Don't start the dumpers
10699           if set.
10700         * server-src/holding.c (get_flush): chdir to original cwd.
10701         * server-src/reporter.c: accept driver and amflush line in log.
10702         * server-src/amflush.c: exec driver to do the flushing.
10703
10704 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10705
10706         * server-src/amstatus.pl.in: Fixup for estimate, write flush line.
10707
10708 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10709
10710         * recover-src/extract_list.c: You can change the tape device
10711           between each tape.
10712
10713 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10714
10715         * restore-src/amrestore.c (restore): try to find the next chunk 
10716           in the current directory.
10717
10718 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10719
10720         * example/amanda.conf.in: typo.
10721
10722 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10723
10724         Patch by Roland E. Lipovits <rel@lipo.at0.net>
10725         * example/amanda.conf.in: typo.
10726
10727 2001-12-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10728
10729         * server-src/dumper.c, server-src/taper.c, server-src/chunker.c:
10730         Replace TRY_AGAIN by TRYAGAIN.
10731
10732 2001-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10733         Patch by Michael D. Beynon <beynon@ll.mit.edu>
10734
10735         * server-src/driver.c (main): Take care of empty tapeq.
10736
10737 2001-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10738
10739         * server-src/diskfile.c (lookup_host): Match must be exact.
10740
10741 2001-11-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10742
10743         * server-src/planner.c: Add host, disk, datestamp and level on 
10744         FLUSH line. Add datestamp on DUMP line.
10745         * server-src/driver.c (read_flush): Read new format of FLUSH line.
10746         * server-src/driver.c (read_schedule): Read new format of DUMP line.
10747         * server-src/amflush.c: Write a datestamp on stderr.
10748         * server-src/amdump.sh.in: Write a datestamp on stderr.
10749         * server-src/amstatus.pl.in: Works with autoflush.
10750
10751 2001-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA> 
10752         * server-src/conffile.c (autoflush): New configuration options.
10753         * server-src/conffile.h (autoflush): New configuration options.
10754         * man/amanda.8.in: Document it.
10755         * example/amanda.conf.in: Document it.
10756         * server-src/holding.h (get_flush, pick_datestamp, pick_all_datestamp,
10757         cleanup_holdingdisk): New prototype.
10758         * server-src/holding.c (scan_holdingdir, cleanup_holdingdisk,
10759         get_flush): New function.
10760         * server-src/holding.c (pick_datestamp, pick_all_datestamp): New
10761         verbose argument.
10762         * server-src/amcleanupdisk.c: Change call to pick_all_datestamp.
10763         * server-src/amflush.c: Change call to pick_all_datestamp.
10764         * server-src/find.c: Change call to pick_all_datestamp.
10765         * server-src/planner.c: Write FLUSH line to driver, the schedule
10766         line contain the keyword DUMP.
10767         * server-src/planner.c: Add datestamp to SUCCESS and FAIL line.
10768         * server-src/amstatus.pl.in: New parsing of DUMP line.
10769         * server-src/driverio.h: New datestamp field in sched_t;
10770         * server-src/driver.c (build_diskspace): New function to build a
10771         assignedhd_t from an holding file.
10772         * server-src/driver.c (read_flush): New function to read the list
10773         of files to flush.
10774         * server-src/driver.c (read_schedule): Parse the keyword DUMP.
10775         * server-src/driver.c: Add datestamp to FAIL line.
10776         * server-src/dumper.c: Add datestamp to FAIL line.
10777         * server-src/reporter.c (timedata_t, repdata_t) : Major change of
10778         structure.
10779         * server-src/taper.c: Add datestamp to FAIL line.
10780
10781 2001-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10782
10783         * server-src/conffile.c: New dumporder configuration.
10784         * server-src/conffile.h: Likewise.
10785         * server-src/driver.c (start_some_dumps): Use dumporder to
10786         select the next disk to dump.
10787         * example/amanda.conf.in: Give an example of dumporder.
10788         * man/amanda.8.in: Document it.
10789
10790 2001-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10791
10792         * recover-src/amrecover.h (cd_glob, cd_regex, cd_dir): New prototypes.
10793         * recover-src/set_commands.c (cd_glob, cd_regex, cd_dir): New functions.
10794         * recover-src/uparse.y: Add new token CDX, call cd_glob instead 
10795         of set_directory for cd command, call cd_regex for cdx command.
10796         * recover-src/uscan.l: On cdx string return CDX token.
10797         * recover-src/help.c: Document it.
10798         * man/amrecover.8.in: Document it.
10799
10800 2001-09-26 John R. Jackson (jrj@purdue.edu)
10801
10802         * server-src/reporter.c: Fix problem when column sizes are negative.
10803
10804 2001-09-21 John R. Jackson (jrj@purdue.edu)
10805
10806         * server-src/Makefile.am: Add -I../common-src so genversion.h can be
10807           found (since it is built on the fly).  Only fails when build is done
10808           in a different directory than the sources.
10809
10810 2001-09-17 John R. Jackson (jrj@purdue.edu)
10811
10812         * server-src/getconf.c: Add capabilities to amgetconf to return
10813           build environment values and also to open and close a debug file
10814           (e.g. for scripts).
10815         * man/amgetconf.8.in: Ditto.
10816         * changer-src/chg-scsi.c: Ditto.
10817         * common-src/amanda.h: Ditto.
10818         * common-src/debug.c: Ditto.
10819         * common-src/error.c: Ditto.
10820         * server-src/dumper.c: Ditto.
10821
10822 2001-09-17 John R. Jackson (jrj@purdue.edu)
10823
10824         * server-src/planner.c: Make sure we do not attempt to bump beyond
10825           level 9.
10826
10827 2001-09-16 Thomas Hepper (th@ant.han.de)
10828         * changer-src/chg-scsi.c: Added new config option autoinv, 
10829         if not set no auto inventory will be done if the label db is out of 
10830         sync. Reworked MapBarCode, now the parameters are passed as a struct 
10831         and the result is returned in this struct (MBC_T), 
10832         also removed some duplicate/nonsens code from MapBarCode
10833         Changed the definitions for slot_file. It was used duplicate, 
10834         1. as the config file set by amanda.conf, and second set by the
10835         config option in the chg-scsi config file. Now the file from
10836         amanda.conf is called chg_scsi_conf. and changer_file is renamed 
10837         to slot_file.
10838         Added check if cleanfile is not set, if true clean_file is set to NULL
10839         Now return if tape_device is not in the range 0-9.
10840         Added some checks if we have all informations like slot_file, 
10841         devices etc. Fixed and error in the search function, 
10842         if the searched vol is already loaded return the correct info 
10843         and not 'label not found'. Fixed error in the parameter passing 
10844         to get_relative_slot. If the option was -slot last we where 
10845         1 above the end parameter..
10846
10847         * changer-src/scsi-bsd.c: Fix compile problems.
10848         * changer-src/scsi-changer-driver.c: Fixed the last problems :-) 
10849         for the label/barcode handling...
10850         * changer-src/scsi-defs.h: Added new struct MBC_T
10851         * changer-src/sense.c: Added some more messages for Exabyte 210 lib
10852
10853 2001-09-01 John R. Jackson (jrj@purdue.edu)
10854
10855         * client-src/sendsize.c: Fix memory allocation problem.
10856
10857 2001-08-31 John R. Jackson (jrj@purdue.edu)
10858
10859         * server-src/amindex.c: Fix memory leak.  Compliments of Robert Minsk
10860           <egbert@centropolisfx.com>.
10861         * server-src/logfile.c: Fix memory leak.  Compliments of Robert Minsk
10862           <egbert@centropolisfx.com>.
10863
10864 2001-08-30 John R. Jackson (jrj@purdue.edu)
10865
10866         * server-src/planner.c: Fix problem with maintenance of total level
10867           0 size when disk being brought back into the schedule was not doing
10868           a level 0.  Compliments of Robert Minsk <egbert@centropolisfx.com>.
10869
10870 2001-08-24 John R. Jackson (jrj@purdue.edu)
10871
10872         * server-src/amverify.sh.in: Fix missing backtick error.
10873
10874 2001-08-24 John R. Jackson (jrj@purdue.edu)
10875
10876         * server-src/taper.c: Allocate buffers on page boundaries.
10877
10878 2001-08-22 John R. Jackson (jrj@purdue.edu)
10879
10880         * tape-src/Makefile.am: Add chown/chgrp rules for ammt/amdd install
10881           so they end up like all the other Amanda programs.
10882
10883 2001-08-15 Thomas Hepper (th@ant.han.de)
10884         * changer-src/chg-scsi.c. Removed version 1 DB support from mapBarCode. Changed the way parameter
10885         are given to MapBarCode and returned from there. No a struct is passed where all infos
10886         will be returned to the calling function.
10887         If eject is set we will not call LogSense in chg-scsi because it is also called in the
10888         eject function.
10889         * changer-src/scsi-defs.h: Added struct MBC_T used by MapBarCode.
10890         * changer-src/scsi-changer-driver.c: Changed all calls to MapBarCode to the new way
10891
10892 2001-08-14 John R. Jackson (jrj@purdue.edu)
10893
10894         * docs/EXCLUDE: New document from Andrew Hall <ahall@secureworks.net>
10895           describing how to set up and use GNU tar exclusions.
10896         * docs/Makefile.am: Added EXCLUDE and PORT.USAGE.
10897
10898 2001-08-14 John R. Jackson (jrj@purdue.edu)
10899
10900         * docs/PORT.USAGE: New document about how Amanda ports are used.
10901
10902 2001-08-14 John R. Jackson (jrj@purdue.edu)
10903
10904         * client-src/sendsize.c: Fix patch merge goof (ap_snprintf -> snprintf).
10905
10906 2001-08-14 John R. Jackson (jrj@purdue.edu)
10907
10908         * common-src/stream.c: Add stream_client_privileged() function to
10909           get a privileged port and fail if one is not available.  The older
10910           stream_client() function gets a (non-privileged) port in the
10911           configured portrange, if set and possible, else anything available.
10912         * common-src/stream.h: Prototypes.
10913         * recover-src/amrecover.c: Use stream_client_privileged() instead of
10914           stream_client().
10915         * recover-src/extract_list.c: Ditto.
10916         * configure.in: Added several more port range sanity checks.  Added
10917           --with-tcpportrange as an alias for --with-portrange.
10918
10919 2001-08-09 Thomas Hepper (th@ant.han.de)
10920         * changer-src/chg-scsi.c: Added check in MapBarCode if the labelfile
10921         parameter is empty, and if yes return. 
10922         Added global variable do_inventory, and if set do an inventory before
10923         exit.
10924         In MapBarCode changed the way the UPDATE_SLOT is done, now it uses
10925         the slot number passed to MapBarCode to find and update the record.
10926         * changer-src/scsi-changer-driver.c: Added def. for BreeceHill Q7
10927         Added global variables which are set by the tape_rdlabel function
10928         in eject/unload.
10929         Reworked the way how the updates of the labelfile are done.
10930
10931 2001-08-01 John R. Jackson (jrj@purdue.edu)
10932
10933         * client-src/selfcheck.c: Fix typos I introduced into the PC subdir
10934           patch.
10935         * client-src/sendbackup-gnutar.c: Ditto.
10936         * client-src/sendsize.c: Ditto.
10937
10938 2001-08-01 Marko Injac <marko.injac@mail.insert.si> via John R. Jackson (jrj@purdue.edu)
10939
10940         * client-src/findpass.c: Allow backup of subdirs of PC shares for
10941           amanda-2.4.1beta1 by Greg Shebert amanda-hackers list Tue Feb 1,
10942           2000.  Ported to amanda-2.4.2p2 on debian potato by Marko Injac.
10943         * client-src/findpass.h: Ditto.
10944         * client-src/selfcheck.c: Ditto.
10945         * client-src/sendbackup-gnutar.c: Ditto.
10946         * client-src/sendsize.c: Ditto.
10947         * docs/SAMBA: Ditto.
10948
10949 2001-08-01 John R. Jackson (jrj@purdue.edu)
10950
10951         * client-src/sendsize.c: Prefix each debug line with sendsize process
10952           information to make picking out the output from a particular estimate
10953           run easier when maxdumps > 1.
10954
10955 2001-08-01 John R. Jackson (jrj@purdue.edu)
10956
10957         * server-src/amcheck.c: Unlink the temp files as soon as they are
10958           created so they always go away when amcheck terminates.  Use
10959           pipespawn() instead of system() to call the MAILER program.  Call
10960           dbopen()/dbclose() in main() to write to a debug file instead of
10961           stderr.
10962
10963 2001-08-01 John R. Jackson (jrj@purdue.edu)
10964
10965         * common-src/debug.c: Only rename files that end in ".debug".
10966
10967 2001-08-01 John R. Jackson (jrj@purdue.edu)
10968
10969         * common-src/pipespawn.c: Show empty pipespawn() args as "".
10970
10971 2001-07-31 John R. Jackson (jrj@purdue.edu)
10972
10973         * server-src/conffile.h: Add support for tapetype "blocksize" keyword.
10974         * server-src/conffile.c: Add tapetype "blocksize" keyword.  Use
10975           DISK_BLOCK_KB where appropriate instead of TAPE_BLOCK_SIZE.  Disallow
10976           negative tape length and tapemark size.
10977         * common-src/alloc.c: Add new amtable_free() function.  Adjust args
10978           to amtable_alloc() to be consistent with amtable_free().
10979         * common-src/amanda.h: Add new am_round() and am_floor() macros.
10980           Define new DISK_BLOCK_KB, DISK_BLOCK_BYTES, MAX_TAPE_BLOCK_KB,
10981           MAX_TAPE_BLOCK_BYTES constants.  Remove TAPE_BLOCK_SIZE and
10982           TAPE_BLOCK_BYTES.
10983         * common-src/bsd-security.c: TAPE_BLOCK_BYTES -> NETWORK_BLOCK_BYTES.
10984           Use -1 instead of DEFAULT_SIZE.
10985         * common-src/rsh-security.c: Ditto.
10986         * common-src/fileheader.c: Change write_header() to build_header().
10987           Add blocksize arg.  Get rid of unused fill_buffer() function.
10988         * common-src/fileheader.h: Ditto.
10989         * common-src/stream.c: Use negative value to indicate default buffer
10990           size.
10991         * common-src/stream.h: Add NETWORK_BLOCK_BYTES and STREAM_BUFSIZE
10992           constants.  Remove DATABUF_SIZE and DEFAULT_SIZE.
10993         * man/amanda.8.in: Document the new "blocksize" tapetype keyword.
10994           Document that "length" in tapetype has meaning to some output
10995           drivers.  Fix "bumpdays" and "speed" defaults.  Document new "file:"
10996           output driver record length data file.
10997         * man/amrestore.8: Add new "-b blocksize" arg.  Add description of
10998           how to catalogue the images on a tape.
10999         * recover-src/amrecover.c: DEFAULT_SIZE -> -1.
11000         * recover-src/extract_list.c: DEFAULT_SIZE -> -1.  Use DISK_BLOCK_BYTES
11001           instead of TAPE_BLOCK_BYTES for the header size.
11002         * restore-src/amrestore.c: Add new "-b blocksize" arg.  Document how
11003           the header is handled.  Deal with arbritrary tape record sizes.
11004         * server-src/amlabel.c: Use the tapetype blocksize.
11005         * server-src/chunker.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
11006           appropropriate instead of older constants.  Rewrite disk I/O buffer
11007           management.  Never pad output stream (e.g. to holding disk).  Use
11008           -1 for default stream buffer size.
11009         * server-src/driver.c: Use DISK_BLOCK_KB where appropriate instead of
11010           TAPE_BLOCK_SIZE.
11011         * server-src/driverio.c: Set chunker argv[0] to name based on which
11012           dumper it is working with.
11013         * server-src/dumper.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
11014           appropropriate instead of older constants.  Rewrite disk I/O buffer
11015           management.  Never pad output stream (e.g. to holding disk).  Use
11016           -1 for default stream buffer size.
11017         * server-src/holding.c: Change TAPE_BLOCK_BYTES to DISK_BLOCK_BYTES.
11018           Use fullread() instead of fill_buffer().
11019         * server-src/planner.c: Use tapetype blocksize instead of constant
11020           for tape length calculations.
11021         * server-src/taper.c: Support tapetype blocksize.  Only pad writes if
11022           blocksize is negative.  Reorganize shared memory buffers to put
11023           data on page boundaries.  Try reducing tapebuf count if allocation
11024           fails.
11025         * tape-src/output-file.c: Maintain record size information.  Use mask
11026           and flags from caller.
11027         * tape-src/output-null.c: Use new amtable_alloc() arg order.
11028         * tape-src/output-rait.c: Use new amtable_alloc() arg order.  Add
11029           private version of amtable_free() for standalone build.  Fix off
11030           by one and other table allocation problems.
11031         * tape-src/output-rait.h: Maintain file descriptor count in the
11032           structure.
11033         * tape-src/tapeio.c: Support tapetype blocksize.  Use new
11034           amtable_alloc() arg order.  Fix some error message text.  
11035         * tape-src/tapeio.h: New prototypes with blocksize arg.
11036         * tape-src/tapetype.c: Add "-b blocksize" arg.  Fix some end case
11037           aborts.
11038
11039 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
11040
11041         * recover-src/amrecover.c: Improve the "Unexpected server end of file"
11042           message.
11043
11044 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
11045
11046         * man/amanda.8.in: Document includefile.
11047         * man/amdump.8.in: Add note that local crontab documention should be
11048           checked for proper syntax.
11049         * man/amrecover.8.in: Document use of PAGER environment variable.
11050         * man/amrestore.8: Document that GNU tar must be used as some vendor
11051           tar programs cannot read GNU tar format.
11052         * docs/FAQ: Update location of online FAQ.
11053
11054 2001-07-25 John R. Jackson <jrj@purdue.edu>
11055
11056         * docs/TAPE.CHANGER: Changes from Ben Lewis (bhlewis@purdue.edu) to
11057           document the new (but optional) searchable features.
11058
11059 2001-07-19 John R. Jackson <jrj@purdue.edu>
11060
11061         * common-src/error.c: Fix function prototype error.
11062
11063 2001-07-19 John R. Jackson <jrj@purdue.edu>
11064
11065         * common-src/error.c: Add new function errordump() that acts like
11066           error() but calls abort() to (try to) drop core.
11067         * common-src/amanda.h: Prototype.
11068         * common-src/alloc.c: Call errordump() instead of error() for some
11069           memory allocation failures to aid traceback.
11070
11071 2001-07-19 John R. Jackson <jrj@purdue.edu>
11072
11073         * server-src/amadmin.c: Improve the error message when read_conffile()
11074           fails.
11075         * server-src/amcheck.c: Ditto.
11076         * server-src/amcleanupdisk.c: Ditto.
11077         * server-src/amflush.c: Ditto.
11078         * server-src/amlabel.c: Ditto.
11079         * server-src/amlogroll.c: Ditto.
11080         * server-src/amtape.c: Ditto.
11081         * server-src/amtrmidx.c: Ditto.
11082         * server-src/amtrmlog.c: Ditto.
11083         * server-src/driver.c: Ditto.
11084         * server-src/dumper.c: Ditto.
11085         * server-src/getconf.c: Ditto.
11086         * server-src/planner.c: Ditto.
11087         * server-src/reporter.c: Ditto.
11088         * server-src/taper.c: Ditto.
11089
11090 2001-07-19 John R. Jackson <jrj@purdue.edu>
11091
11092         * server-src/driverio.c: Make the name "ps" reports match the dumper
11093           name (e.g. "dumper3").
11094
11095 2001-07-18 John R. Jackson <jrj@purdue.edu>
11096
11097         * changer-src/chg-chio.pl.in: Try to unload the drive before moving
11098           a tape back to a slot.  Fixes a problem on Ecrix AutoPAK devices.
11099           Patch compliments of Sam Leffler <sam@errno.com>.
11100
11101 2001-07-18 John R. Jackson <jrj@purdue.edu>
11102
11103         * server-src/amverify.sh.in: Change to the Amanda temp directory
11104           instead of the config directory.  In addition to making amverify
11105           act like most other Amanda programs, this gets around an
11106           xfsrestore bug.
11107
11108 2001-07-18 John R. Jackson <jrj@purdue.edu>
11109
11110         * man/amanda.8.in: Describe the .amandahosts format better.  Clean up
11111           a couple of minor typos.
11112
11113 2001-07-13 John R. Jackson <jrj@purdue.edu>
11114
11115         * common-src/dgram.h: Improve UDP datagram size calculation.
11116         * server-src/amcheck.c: Break up large requests into pieces.
11117         * server-src/planner.c: Break up large requests into pieces.
11118
11119 2001-07-12 John R. Jackson <jrj@purdue.edu>
11120
11121         * tape-src/amdd.c: Use tapefd_close() in amdd if the file was
11122           opened with tape_open().  This does any necessary output driver
11123           cleanup (such as moving the current file position for "file:").
11124
11125 2001-07-12 John R. Jackson <jrj@purdue.edu>
11126
11127         * Makefile.am: Fix automake warning.
11128
11129 2001-07-11 John R. Jackson <jrj@purdue.edu>
11130
11131         * tape-src/tapetype.c: Use tapefd_write() instead of write().
11132
11133 2001-07-11 John R. Jackson <jrj@purdue.edu>
11134
11135         * common-src/file.c: Fix a memory leak.  Grab exponentially larger
11136           chunks of memory up to a point, then level out.
11137
11138 2001-07-11 John R. Jackson <jrj@purdue.edu>
11139
11140         * tape-src/tapetype.c: Only report a pass summary when stderr is not
11141           a tty.  Deal with some obscure end cases.
11142
11143 2001-07-10 John R. Jackson <jrj@purdue.edu>
11144
11145         * changer-src/scsi-aix.c: Convert Tape_Eject to Tape_Ioctl.
11146         * changer-src/scsi-solaris.c: Ditto.
11147
11148 2001-07-10 John R. Jackson <jrj@purdue.edu>
11149
11150         * server-src/amcheck.c: Move user name check before attempt to create
11151           temp files so more appropriate error message is generated.
11152
11153 2001-07-09 John R. Jackson <jrj@purdue.edu>
11154
11155         * common-src/dgram.c: Fix error end case unitialized variable.
11156
11157 2001-07-05 John R. Jackson <jrj@purdue.edu>
11158
11159         * docs/TAPE.CHANGERS: Minor docs/TAPE.CHANGERS update to clarify
11160           that -slot and -eject unload and put the current tape away.
11161
11162 2001-07-02 John R. Jackson <jrj@purdue.edu>
11163
11164         * changer-src/chg-manual.sh.in: Add yet another ONLINEREGEX, this one
11165           compliments of Nick (n_hibma@qubesoft.com) for some FreeBSD variant.
11166
11167 2001-06-29 John R. Jackson <jrj@purdue.edu>
11168
11169         * tape-src/tapeio.c: Move the device name parsing routines from the
11170           RAIT module to tapeio and make them generic.  This allows one
11171           module to open another, e.g. rait:{null:,z1,z2,z3}.  Maintain
11172           both the original open flags and mask and use them on the real open.
11173         * tape-src/amdd.c: Make sure this compiles "stand-alone".  To do so,
11174           use: gcc -Wall -DNO_AMANDA amdd.c output-rait.c output-tape.c.
11175           Abort as soon as one of the open calls fails instead of waiting
11176           for read/write to report a bad file descriptor.
11177           Pass a mask to the open function in case the output is created.
11178         * tape-src/ammt.c: Make sure this compiles "stand-alone".  To do so,
11179           use: gcc -Wall -DNO_AMANDA ammt.c output-rait.c output-tape.c.
11180         * tape-src/output-file.c: Maintain both the original open flags and
11181           mask and use them on the real open.
11182         * tape-src/output-null.c: Ditto.
11183         * tape-src/output-file.h: Change to non-prototype declaration of
11184           file_tape_open() to deal with the optional mask parameter.
11185         * tape-src/output-null.h: Ditto.
11186         * tape-src/output-tape.h: Ditto.
11187         * tape-src/tapeio.h: Ditto.  Add device name parsing prototypes.
11188         * tape-src/output-rait.c: Make sure this compiles "stand-alone".
11189           Maintain both the original open flags and mask and use them on the
11190           real open.
11191         * tape-src/output-rait.h: Make sure this compiles "stand-alone".
11192         * tape-src/output-tape.c: Make this part of the "stand-alone" compile
11193           of ammt and amdd since it knows all the proper ioctl operations.
11194           Maintain both the original open flags and mask and use them on the
11195           real open.
11196
11197 2001-06-27 John R. Jackson <jrj@purdue.edu>
11198
11199         * changer-src/chg-manual.sh.in: Add "bs=32k" to the dd command so
11200           some kernels would not complain about the tape block being larger
11201           than the buffer.
11202         * changer-src/chg-mtx.sh.in: Ditto.
11203
11204 2001-06-21 John R. Jackson <jrj@purdue.edu>
11205
11206         * server-src/planner.c: If the compression rate is very small (such
11207           as zero after some types of errors) and FORCE_FULL is set, a path
11208           is taken that (among other bad things) generates a schedule that
11209           driver cannot read (syntax errors).
11210         * server-src/conffile.c: Do not allow negative comprate values.
11211
11212 2001-06-19 John R. Jackson <jrj@purdue.edu>
11213
11214         * server-src/holding.c: Use fullread() instead of read() to read the
11215           holding disk file.
11216
11217 2001-06-19 John R. Jackson <jrj@purdue.edu>
11218
11219         * server-src/amtape.c: Document "slot advance" in the help output.
11220
11221 2001-06-19 John R. Jackson <jrj@purdue.edu>
11222
11223         * server-src/amindexd.c: Minor gethostbyaddr() argument change to be
11224           consistent with other Amanda usage.
11225
11226 2001-06-19 John R. Jackson <jrj@purdue.edu>
11227
11228         * server-src/amverify.sh.in: Better cross platform tar detection.
11229
11230 2001-06-19 John R. Jackson <jrj@purdue.edu>
11231
11232         * server-src/amverify.sh.in: More of the vrestore vs. 'b' flag change.
11233
11234 2001-06-19 John R. Jackson <jrj@purdue.edu>
11235
11236         * recover-src/amrecover.c: Add more debugging to guess_disk()
11237           function to better track how the disk is determined from the
11238           current working directory.  Report current working directory in
11239           error message.  Change "Trying" to "Trying disk" to distinguish
11240           this from host attempts.
11241         * recover-src/set_commands.c: Remove redundant amfree() call.  Remove
11242           redundant "OISD /" exchange.  Change "Trying" to "Trying host" to
11243           distinguish this from disk attempts.
11244
11245 2001-06-19 Thomas Hepper <th@ant.han.de>
11246         * changer-src/chg-scsi.c: Made clean_slot a global var. Removed
11247         the label db update stuff from the COM_SLOT part (moved to unload
11248         in scsi-changer-driver.c)
11249         * changer-src/scsi-changer-driver.c: Do an unload if the tape is
11250         loaded in the Inventory function. Added an marker to avoid recursion
11251         in Inventroy function. Added label db check in unload function and
11252         call Inventroy if it indicates an out of sync db
11253         
11254 2001-06-18 John R. Jackson <jrj@purdue.edu>
11255
11256         * recover-src/extract_list.c: Do not pass a 'b' (blocking) factor
11257           flag to vrestore.  Some versions do not like it.
11258
11259 2001-06-18 John R. Jackson <jrj@purdue.edu>
11260
11261         * common-src/dgram.c: Use a sin_addr arg to inet_ntoa() like all the
11262           other Amanda code.
11263         * common-src/stream.c: Ditto.
11264
11265 2001-06-18 John R. Jackson <jrj@purdue.edu>
11266
11267         * changer-src/chg-manual.sh.in: Add yet another online regex.  Found
11268           by George Herson <gherson@snet.net>.
11269
11270 2001-06-12 Thomas Hepper <th@ant.han.de>
11271         * changer-src/scsi-changer-driver.c (Inventory): Call Tape_Ready and let this function
11272         decide how to get the tape drive status.
11273         * changer-src/scsi-changer-driver.c (Tape_Ready): Now this function looks how to get
11274         the tape drive status.
11275         * changer-src/scsi-linux.c: changed some dbprintf to DebugPrint
11276         
11277 2001-06-10 Thomas Hepper <th@ant.han.de>
11278         * changer-src/chg-scsi.c: If get_current_slot gets an error from the fscanf function
11279         return also an error (-1) to the calling fucntion. (Fixes an error if the slot file
11280         is created with an touch)
11281         * changer-src/scsi-changer-driver.c: Fixed some NULL pointer errors in PrintConf
11282         Fixed an error in the unload function if the destination slot for the unload is not empty.
11283         (cut and paste error !!)
11284         
11285 2001-06-07 Thomas Hepper <th@ant.han.de>
11286         * changer-src/scsi-changer-driver.c: Change the type of TapeStatus from void to int.
11287         In PrintConf changed the loop variable for scan of pDev from 3 to CHG_MAXDEV.
11288         In PrintConf check if pDev[count].inquiry is a NULL pointer, and if yes skip.
11289         * changer-src/scsi-irix.c: Changed a lot, now it should work.
11290         * client-src/sendbackup-dump.c: Removed a { in the vxfsdump part. 
11291         * tape-src/output-tape.c: Fixed the tape status checks, the structure elelemt
11292         is called buf.mt_dposn not buf.mt.dposn.
11293         
11294 2001-06-04 Thomas Hepper <th@ant.han.de>
11295         * changer-src/scsi-changer-driver.c: Renamed Tape_Eject to Tape_Ioctl
11296         incl. change of passwd parameter.
11297
11298 2001-06-04 Thomas Hepper <th@ant.han.de>
11299         * changer-src/chg-scsi.c: include dmalloc.h for debugging of mem problems
11300         * changer-src/scsi-cam.c: Replaced Tape_Eject with a more generic 
11301         function to send different ioctls (Tape_Ioctl)
11302         * changer-src/scsi-bsd.c: see above
11303         * changer-src/scsi-hpux_new.c: see above
11304         * changer-src/scsi-irix.c: If the device can be opened in SCSI_OpenDevice
11305         set pDev[ip].avail to 1.
11306         * changer-src/scsi-linux.c: include dmalloc.h for debugging of mem problems.
11307         Fixed an invalid free in SCSI_OpenDevice. Replaced Tape_Eject with Tape_Ioctl.  
11308         * changer-src/scsi-changer-driver.c: include dmalloc.h for debugging of mem problems
11309         Eject the tape in the inventory function before the scan to get all
11310         barcode labels. Check in GenericEject if the device is able to receive
11311         SCSI commands, if not use the ioctl interface to eject the tape.
11312         Same for the GenericRewind function.
11313         Added the LogSense in the GenericEject function.
11314         * changer-src/scsi-defs.h: Added define for Tape_Ioctl commands, IOCTL_EJECT.
11315         
11316 2001-06-01 John R. Jackson <jrj@purdue.edu>
11317
11318         * server-src/amindexd.c (build_disk_table): Make sure a holding disk
11319           image is used rather than a copy also on tape, if both exist.
11320
11321 2001-06-01 Thomas Hepper <th@ant.han.de>
11322         * changer-src/scsi-changer-driver.c: Added an range check in the load
11323         function and abort if the requested slot is out of range.
11324         Fixed in incorrect pointer in the eject function if the ioctl
11325         interface is used
11326
11327 2001-05-29 John R. Jackson <jrj@purdue.edu>
11328
11329         * server-src/reporter.c: Fix PostScript output to only show what went
11330           on the tape, not what the total amount dumped.  Compliments of
11331           Joshua Baker-LePain <jlb17@duke.edu>.
11332
11333 2001-05-28 Thomas Hepper <th@ant.han.de>
11334         * changer-scsi/chg-scsi.c: Made the array for pDev configurable, #define CHG_MAXDEV
11335         * changer-scsi/scsi-defs.h: Added the define for CHG_MAXDEV
11336         * changer-src/scsi-cam.c: Set the flag pDev[x].avail to 1 if the device can be openend.
11337         Added debug message if the open fails. Implemented the function Tape_Status (not tested)
11338         * changer-src/scsi-changer-driver.c: Added the function DLT448ElementStatus, was lost
11339         during merge from 2.4.2. The difference to GenericElementStatus is that the DecodeModeSense
11340         needs an offset of 12, not 0 as in GenericElementStatus.
11341         Added an unload/GenericResetStatus in the Inventory function if an bar code reader is 
11342         available. This is to get the label from the loaded tape.
11343         The function TapeStatus sets now the status regardless of the status of the tape.
11344         If the device is capable for sending SCSI commands use the SCSI interface to get
11345         the status of the tape.
11346         * docs/TAPE.CHANGERS: Added some notes about the debuglevel keyword and a short
11347         description on how to use the sgen interface on solaris 2.8
11348         
11349 2001-05-18 John R. Jackson <jrj@purdue.edu>
11350
11351         * client-src/patch-system.sh.in: Missed a reference to kamanda in the
11352           last patch.  Compliments of Tom Schutter <t.schutter@att.net>.
11353
11354 2001-05-16 John R. Jackson <jrj@purdue.edu>
11355
11356         * client-src/patch-system.sh.in: Go ahead and update /etc/services
11357           on a client even if the services themselves are not turned on to
11358           inetd.  Compliments of Tom Schutter <t.schutter@att.net>.  Add
11359           the TCP port for amandad for future use.
11360
11361 2001-05-14 John R. Jackson <jrj@purdue.edu>
11362
11363         * client-src/amandad.c: Fix hang when the incoming packet size is
11364           larger than the pipe buffer.  Also, report back when too much
11365           data for a packet is returned by the service (this is not properly
11366           diagnosed back to, e.g., amcheck, but that's for another day).
11367         * common-src/bsd-security.c: Fix minor comment error.
11368
11369 2001-05-11 John R. Jackson <jrj@purdue.edu>
11370
11371         * common-src/util.c (bind_portrange): Log a debug message stating
11372           explicitly that all ports in the requested range were busy, or
11373           that a specific port failed bind() for an unexpected reason.
11374
11375 2001-05-07 John R. Jackson <jrj@purdue.edu>
11376
11377         * client-src/sendbackup-dump.c: Do not use full path to sed.  Found by
11378           Roland E. Lipovits (rel@lipo.at0.net).
11379
11380 2001-05-07 Thomas Hepper <th@ant.han.de>
11381         * changer-src/chg-scsi.c : Fixed NULL pointer in debug print of the config.
11382         * changer-src/scsi-canger-driver.c : Try to get and set the status of the tape drive in
11383         GenericElementStatus if there is an error condition. Move from tape to tape to get the
11384         tape loaded if it is only ejected.
11385         * changer-src/scsi-defs.h : New define for the Tape_Status fucntion, TAPE_NOT_LOADED
11386         * changer-src/scsi-linux.c : Added return type for tape not loaded
11387         * changer-src/scsi-solaris.c : In SCSI_ExecuteCommand force the direction to write if the
11388         databuffersize is 0, if the direction is input the ioctl returns with errno 22, invalid argument.
11389         The function Tape_Status will now return either tape loaded or not.
11390         * example/chg-scsi-solaris.conf.in : Added pointer to doc/TAPE.CHANGERS on how to configure
11391         the sgen driver.
11392         * doc/TAPE.CHANGERS : Updated the description of the chg-scsi.conf options, short description on
11393         how to confgure the sgen driver on solaris 2.8
11394         
11395 2001-05-04 John R. Jackson <jrj@purdue.edu>
11396
11397         * config/depcomp: Fix problem with argument*  processing and update to
11398           latest version.
11399
11400 2001-05-01 Thomas Hepper <th@ant.han.de>
11401         * changer-src/chg-scsi.c : Added patch for the slot advance command from John R. Jackson
11402         * changer-src/scsi-changer-driver.c : Renamed EXB120BarCode to EXB_BarCode. The currently
11403         known Exabyte libs handles the reader in the same way.
11404         
11405 2001-04-28 Thomas Hepper <th@ant.han.de>
11406         * changer-scsi/chg-scsi.c : Added missing break in MapBarCode
11407         Changed the way an tape label is read, use tape_open to open the
11408         device, not own open.
11409         * changer-src/scsi-changer-driver.c : Changed the way an tape label 
11410         is read, use tape_open to open the device, not own open.
11411         * changer-src/scsi-linux.c : Fixed error on reopen of non SCSI devices
11412         (/dev/nst0 for example)
11413         
11414 2001-04-26 Thomas Hepper <th@ant.han.de>
11415
11416         * changer-src/scsi-aix.c : Added more different ret values depending on the SCSI
11417         error condition. 
11418         * changer-src/scsi-changer-driver.c: Split GenericElementStatus in GetElementStatus which
11419         reads the element Status, and GenericElementStatus which handles the errors.
11420         Removed DLT448ElementStatus. Rework the handling of some SCSI error conditions...
11421         * changer-src/scsi-defs.h: Added more defs for the debug SECTION types.
11422         * changer-src/scsi-linux.c: Fixed an bug in the non SCSI device handling in SCSI_OpenDevice
11423         * changer-src/sense.c: Added EXB-210 defs, added defs for READ_ELEMENT_STATUS error conditions.
11424         
11425 2001-04-25 John R. Jackson <jrj@purdue.edu>
11426
11427         * changer-src/chg-rth.pl.in: Add exec_prefix back since it is usually
11428           used to define sbindir.  Sigh.  Include X=X assignments to get rid
11429           of the Perl warnings.
11430         * server-src/amoverview.pl.in: Ditto.
11431
11432 2001-04-24 John R. Jackson <jrj@purdue.edu>
11433
11434         * changer-src/chg-chio.pl.in: Remove unused exec_prefix to get rid of
11435           warning message.  Patch from Nick Hibma <n_hibma@qubesoft.com>.
11436
11437 2001-04-23 John R. Jackson <jrj@purdue.edu>
11438
11439         * client-src/selfcheck.c: Allow Samba shares with no password.
11440         * client-src/sendbackup-gnutar.c: Ditto.
11441         * client-src/sendsize.c: Ditto.
11442
11443 2001-04-15 Thomas Hepper <th@ant.han.de>
11444         * Makefile.am: Added contrib/gsc files to EXTRA_DIST
11445         
11446 2001-04-15 Thomas Hepper <th@ant.han.de>
11447         * changer-src/scsi-aix.c: Rework of the SCSI interface, support
11448         to talk to an device handled by the gsc driver (not tested yet)
11449         * changer-src/scsi-bsd.c (SCSI_ExecuteCommand): Fix error in
11450         device handling, Changed the return codes in case of an error
11451         * changer-src/scsi-cam.c (SCSI_ExecuteCommand): Fix error in 
11452         device handling, Changed the return codes in case of an error
11453         * changer-src/scsi-changer-driver.c: Changed the way 
11454         SCSI_ExecuteCommand passes error conditions back, error handling
11455         should now be done by the calling function, SCSI_Run for example.
11456         * changer-src/scsi-changer-driver.c (CheckMove): If the 
11457         DeviceCapabilitiesPage is not set do not return an error, print
11458         an warning to the debug file.
11459         * changer-src/scsi-defs.h: New define for AIX_USE_GSC
11460         New defines for the return codes of SCSI_ExecuteCommand
11461         * changer-src/scsi-hpux_new.c: Fix error in device handling.
11462         Changed the return codes in case of an error
11463         * changer-src/scsi-irix.c: Fix error in device handling.
11464         Changed the return codes in case of an error
11465         * changer-src/scsi-solaris.c: Fix error in device handling.
11466         Changed the return codes in case of an error
11467         
11468 2001-04-15 Thomas Hepper <th@ant.han.de>
11469         *contrib/gsc: Generic SCSI interface for AIX, used by chg-scsi
11470
11471 2001-04-13 John R. Jackson <jrj@purdue.edu>
11472
11473         * example/amanda.conf.in: Fix multiple holding disks comment.
11474
11475 2001-04-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11476
11477         * client-src/getfsent.h (search_fstab): New prototype.
11478         * client-src/getfsent.c (search_fstab): New arg check_dev, skip
11479         entry if check_dev==1 and device stats failed.
11480         * client-src/getfsent.c (open_fstab for linux): Open MOUNTED.
11481         * client-src/getfsent.c (close_fstab for linux): close MOUNTED.
11482         * client-src/getfsent.c (get_fstab_nextentry for linux): parse MOUNTED.
11483         * client-src/getfsent.c (amname_to_devname, amname_to_dirname, 
11484         amname_to_fstype): Call search_fstab sequentialy with 1 and 0 
11485         for check_dev.
11486
11487 2001-04-10 John R. Jackson <jrj@purdue.edu>
11488
11489         * docs/INSTALL: Update location to GNUPLOT per Lars Hecking
11490           <lhecking@nmrc.ie>.
11491
11492 2001-04-09 Thomas Hepper <th@ant.han.de>
11493         * changer-src/scsi-changer-driver.c: More rework on the debug output.
11494         changed definition SENSE_NO_TAPE to SENSE_TAPE_NOT_ONLINE
11495         In function GenericRewind do an check before the rewind to see
11496         if the tape is loaded.
11497         * changer-src/scsi-defs.h: New #define for the debug, SECTION_TAPE
11498         * changer-src/sense.c: New definition for SENSE_RETRY, ASC=4, ASCQ=1
11499         
11500 2001-04-08  Alexandre Oliva  <aoliva@redhat.com>
11501
11502         * client-src/getfsent.c (search_fstab): Don't skip entry just
11503         because device stats failed.
11504
11505 2001-04-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11506
11507         * config/config.guess: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
11508         * config/config.sub: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
11509         * config/mkinstalldirs: Upgrade from automake CVS.
11510
11511 2001-04-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11512
11513         * config/depcomp: new file for automake.
11514
11515 2001-04-03 John R. Jackson <jrj@purdue.edu>
11516
11517         * Makefile.am: Remove *.test.c from the distribution.
11518
11519 2001-04-02 John R. Jackson <jrj@purdue.edu>
11520
11521         * NEWS: Update some of the 2.4.2 items.
11522
11523 2001-03-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11524
11525         * client-src/getfsent.c (search_fstab): If the device doesn't 
11526         exist, it will take the entry from /etc/mtab.
11527
11528 2001-03-26 John R. Jackson <jrj@purdue.edu>
11529
11530         * server-src/amtape.c: Do not rewind for slot "advance".  Do not report
11531           device name (which is bogus) for slot "advance".
11532
11533 2001-03-23 John R. Jackson <jrj@purdue.edu>
11534
11535         * example/amanda.conf.in: Add warning that the sample amanda.conf
11536           will not work as is and must be edited to match the installation.
11537
11538 2001-03-21 John R. Jackson <jrj@purdue.edu>
11539
11540         * recover-src/extract_list.c (extract_files_child): Fix problem that
11541           caused xfsrestore arg list to not be NULL terminated.
11542
11543 2001-03-19 John R. Jackson <jrj@purdue.edu>
11544
11545         * configure.in: Add --with-debug-days (default is 4) and remove
11546           --with-pid-debug-files.
11547         * common-src/Makefile.am: Clean up test program dependencies.
11548         * common-src/debug.c: Create timestamped debug file names and remove
11549           files older (based on file name) than --with-debug-days.  Rename old
11550           style names to new style (based on modification time) the first time
11551           they are seen.
11552         * common-src/file.c: Use construct_datestamp() instead of private code.
11553         * common-src/genversion.c: Display AMANDA_DEBUG_DAYS and remove
11554           DEBUG_FILE_WITH_PID.
11555         * common-src/util.c: Move construct_datestamp to here and add new
11556           function construct_timestamp.  Change time used to build string to
11557           be an optional parameter instead of always getting it in the routine.
11558         * common-src/util.h: Add prototypes.
11559         * server-src/amcleanupdisk.c: Change construct_datestamp call to pass
11560           indication that it should get the current time.
11561         * server-src/amflush.c: Ditto.
11562         * server-src/chunker.c: Ditto.
11563         * server-src/driver.c: Ditto.
11564         * server-src/dumper.c: Ditto.
11565         * server-src/planner.c: Ditto.
11566         * server-src/server_util.c: Remove construct_datestamp (now in util.c).
11567         * server-src/server_util.h: Remove prototype.
11568
11569 2001-03-15 John R. Jackson <jrj@purdue.edu>
11570
11571         * server-src/planner.c (analyze_estimate): Do not do an incremental
11572           if FORCE_NO_BUMP is set and the last dump was a level 0.
11573
11574 2001-03-14 John R. Jackson <jrj@purdue.edu>
11575
11576         * server-src/amcheck.c: Change message from NOTE to WARNING when
11577           the hold file exists.
11578         * man/amcheck.8.in: Ditto.
11579
11580 2001-03-14 John R. Jackson <jrj@purdue.edu>
11581
11582         * client-src/selfcheck.c: Send smbclient via pipe instead of command
11583           line arg.  Various minor cleanups.  Use pipespawn instead of system()
11584           to clean up quoting problems and be consistent with sendsize and
11585           sendbackup.
11586         * client-src/sendbackup-dump.c: Send smbclient via pipe instead of
11587           line arg.  Various minor cleanups.
11588         * client-src/sendbackup-gnutar.c: Send smbclient via pipe instead of
11589           line arg.  Various minor cleanups.  Clean up listed incremental file
11590           handling.
11591         * client-src/sendbackup.c: Various minor cleanups.
11592         * client-src/sendsize.c: Send smbclient via pipe instead of command
11593           line arg.  Various minor cleanups.  Clean up listed incremental file
11594           handling.
11595         * docs/SAMBA: Update and cleanup.
11596         * common-src/pipespawn.c: Import from 2.4.2 branch.
11597         * common-src/pipespawn.h: Import from 2.4.2 branch.
11598         * common-src/Makefile.am: Add pipespawn.[ch] references.
11599
11600 2001-03-13 John R. Jackson <jrj@purdue.edu>
11601
11602         * recover-src/extract_list.c (extract_files_child): Fix xfsrestore
11603           argument list processing.
11604
11605 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11606
11607         * server-src/dumper.c (read_datafd): set errstr and return on
11608         databuf_write error.
11609
11610 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11611
11612         * server-src/dumper.c (read_indexfd): Ignore error while writing
11613         to the index file. Log an L_INFO message.
11614
11615 2001-03-09 John R. Jackson <jrj@purdue.edu>
11616
11617         * server-src/taper.c: Initialize tape_fd to -1 and test in a couple
11618           more places.  Run normal protocol after a tape startup error (e.g.
11619           "cannot overwrite") instead of just exiting to keep driver from
11620           reporting a broken pipe.
11621
11622 2001-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11623         Reported by Eric Schnoebelen <eric@cirr.com>
11624
11625         * server-src/changer.c (changer_command): Fix fd leak.
11626
11627 2001-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11628
11629         * server-src/server_util.c (cmdstr, getcmd, putresult): New.
11630         * server-src/server_util.h (cmdstr, getcmd, putresult): Prototype.
11631         * server-src/server_util.h (cmd_t): New.
11632         * server-src/driverio.c (cmdstr): Remove.
11633         * server-src/driverio.c: Use new cmdstr and cmd_t.
11634         * server-src/driverio.h: (tok_t): Remove.
11635         * server-src/amflush.c: Use new cmd_t.
11636         * server-src/driver.c: Use new cmd_t.
11637         * server-src/chunker.c (cmd_t, getcmd, putresult): Remove.
11638         * server-src/chunker.c: Use new cmd_t, getcmd and putresult.
11639         * server-src/dumper.c (cmd_t, getcmd, putresult): Remove.
11640         * server-src/dumper.c: Use new cmd_t, getcmd and putresult.
11641         * server-src/taper.c (cmd_t, getcmd, putresult): Remove.
11642         * server-src/taper.c: Use new cmd_t, getcmd and putresult.
11643
11644 2001-03-05 John R. Jackson <jrj@purdue.edu>
11645
11646         * common-src/util.c: The fullread() and fullwrite() functions should
11647           call read() and write(), not tapefd_read() and tapefd_write().
11648
11649 2001-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11650
11651         * server-src/planner.c (setup_estimate): Don't re-ask for level 0
11652         if last_level is 0 and FORCE_NO_BUMP is set.
11653
11654 2001-02-27 John R. Jackson <jrj@purdue.edu>
11655
11656         * common-src/stream.h: Move DATABUF_SIZE to stream.h.
11657         * client-src/sendbackup.c: Do not ask for a big receive buffer.
11658         * server-src/dumper.c: Ask for a bigger send buffer.  Minor typos.
11659         * server-src/taper.c: Ask for a bigger receive buffer.
11660         * recover-src/amrecover.c: Use stream_client instead of specific
11661           (and incorrect) bind() code.
11662         * recover-src/extract_list.c: Ditto.
11663
11664 2001-02-27 John R. Jackson <jrj@purdue.edu>
11665
11666         * common-src/dgram.c: Add lots more error logging to help track down
11667           problems.
11668
11669 2001-02-27 John R. Jackson <jrj@purdue.edu>
11670
11671         * common-src/stream.c: Add lots more error logging to help track down
11672           problems.
11673
11674 2001-02-27 John R. Jackson <jrj@purdue.edu>
11675
11676         * server-src/amtape.c: Rewind after loading a slot either by slot
11677           or by label.
11678
11679 2001-02-27 John R. Jackson <jrj@purdue.edu>
11680
11681         * configure.in: Add some commentary about why pushdef/popdef are
11682           needed around AC_CHECK_TYPE.
11683
11684 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11685         Patch by Alex Pilosov <alex@pilosoft.com>
11686
11687         * changer-src/scsi-cam.c: Clean up some SCSI CAM code,
11688         and permit use of both bus:target:lun(btl) and a full
11689         device name (/dev/ch0) as changerdev.
11690         
11691 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11692         Patch by Joe Rhett <jrhett@isite.net>
11693         and Jason Hollinden <jhollind@sammg.com>
11694
11695         * changer-src/chg-zd-mtx.sh.in:  Added barcode reader support,
11696         >9 tape slot support, variable for 'offline' or 'ONLINE'
11697         return value of tape device, and multi-config support.  Moved
11698         all user settable variables to 'changerfile'.conf in the
11699         amanda config directory.  Added commented out example of .conf
11700         file into script.
11701
11702 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11703
11704         * server-src/amindexd.c (uncompress_file): remove uncompressed
11705         index file if the command failed.
11706
11707 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11708
11709         * restore-src/amrestore.c (main): init r to 0.
11710
11711 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11712
11713         * changer-src/scsi-defs.h (PrintConf): Add prototype.
11714         * changer-src/scsi-changer-driver.c (SCSI_Run): Add prototype.
11715         * changer-src/scsi-linux.c (ScanBus): remove btl variable, return 0.
11716
11717 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11718
11719         * man/Makefile.am (EXTRA_DIST): add amdd.8 and ammt.8.
11720
11721 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11722
11723         * server-src/planner.c (setup_estimate): ask for level 0 for 
11724         a new disk if force-bump is set, 
11725         log force-bump and force-nobump command.
11726
11727 2001-02-17 Thomas Hepper <th@ant.han.de>
11728
11729         * changer-scsi/chg-scsi.c: New Option -genconf to create an example config file
11730          based on the information found on the system, works for Linux and BSD with cam
11731          support. New config option debuglevel
11732         * changer-src/scsi-changer-deriver.c: Reworked the debug output, it is now possible
11733          to control the amount of information by the config option debuglevel in the config
11734          file (docs follow), not complete yet.
11735         * changer-src/scsi-changer-driver.c: New function PrintConf to create an example
11736           config file.
11737           New function DebugPrint to print debug information based on the variable debuglevel.
11738           Replaced a lot of dbprintf with new Function DebugPrint
11739         * changer-src/scsi-aix.c: changed parameter for ScanBus
11740         * changer-src/scsi-irix.c: changed parameter for ScanBus
11741         * changer-src/scsi-solaris.c: changed parameter for ScanBus
11742         * changer-src/scsi-bsd.c: changed parameter for ScanBus
11743         * changer-src/scsi-cam.c: Implemented function ScanBus
11744         * changer-src/scsi-linux.c: Implemented function ScanBus
11745         
11746 2001-02-09 John R. Jackson <jrj@purdue.edu>
11747
11748         * server-src/diskfile.c: Fix core dump in test program.
11749
11750 2001-02-09 John R. Jackson <jrj@purdue.edu>
11751
11752         * tape-src/output-file.c: Use a "data" subdirectory of the main
11753           file driver device directory to hold the tape "files".  This
11754           allows the status file to be moved to the main directory.
11755         * man/amanda.8.in: Document these changes.
11756
11757 2001-02-08 Thomas Hepper <th@ant.han.de>
11758
11759         * changer-src/scsi-aix.c: Added dummy ScanBus function
11760         * changer-src/scsi-bsd.c: Added dummy ScanBus function
11761         * changer-src/scsi-cam.c: Added dummy ScanBus function
11762         * changer-src/scsi-hpux_new.c: Added dummy ScanBus function
11763         * changer-src/scsi-irix.c: Added dummy ScanBus function
11764         * changer-src/scsi-defs.h: Added prototype for ScanBus function
11765
11766 2001-02-04 John R. Jackson <jrj@purdue.edu>
11767
11768         * man/amanda.8.in: Fix mailto to space separated, not comma.
11769
11770 2001-02-03 John R. Jackson <jrj@purdue.edu>
11771
11772         * .cvsignore: Add entries to keep CVS quiet.
11773         * */.cvsignore: Ditto.
11774
11775 2001-02-03 John R. Jackson <jrj@purdue.edu>
11776
11777         * client-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
11778         * common-src/Makefile.am: Add more sources as needed to the test
11779           programs so they would compile.
11780         * server-src/Makefile.am: Create TEST_PROGS make variable ala the
11781           other Makefile.am files.
11782         * tape-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
11783
11784 2001-02-03 John R. Jackson <jrj@purdue.edu>
11785
11786         * server-src/diskfile.c: Fix test program compilation error and bug
11787           when just a config name was given on the command line.
11788
11789 2001-02-02 John R. Jackson <jrj@purdue.edu>
11790
11791         * server-src/reporter.c: Fix problem with enum being unsigned on
11792           some systems.
11793
11794 2001-01-29 John R. Jackson <jrj@purdue.edu>
11795
11796         * tape-src/tapeio.c (tape_fsf): Go back to using snprintf as this
11797           is now "the way".
11798
11799 2001-01-29 John R. Jackson <jrj@purdue.edu>
11800
11801         * tape-src/output-tape.c (tape_tapefd_status): Convert flag values
11802           to booleans (compliments of Marc W. Mengel <mengel@fnal.gov>).
11803         * tape-src/tapeio.c (tape_fsf): Use ap_snprintf instead of snprintf
11804           (also compliments of Marc).
11805
11806 2001-01-26 John R. Jackson <jrj@purdue.edu>
11807
11808         * changer-src/Makefile.am: Double up the references to libamanda to
11809           handle systems that put regex in strange places.
11810         * client-src/Makefile.am: Ditto.
11811         * recover-src/Makefile.am: Ditto.
11812         * restore-src/Makefile.am: Ditto.
11813         * server-src/Makefile.am: Ditto.
11814         * tape-src/Makefile.am: Ditto.
11815
11816 2001-01-23 John R. Jackson <jrj@purdue.edu>
11817
11818         * configure.in: Add tapeio switch from Marc Mengel <mengel@fnal.gov>,
11819           enhance and add "null" and "file" output drivers.  Change all
11820           tape changers (except chg-scsi) to use amdd and ammt.  Change all
11821           tape changers (except chg-scsi) to log and use a consistent
11822           error reporting scheme.  Fix various bugs along the way.  Add new
11823           chg-multi config option, posteject, which is an optional script
11824           to call after each "tape" is ejected (e.g. to use to start a
11825           CDROM writer).  Remove special code for tapedev of /dev/null
11826           (now handled by the "null" output driver).  Changed the taper
11827           protocol to pass the host/disk/level so the write can send that
11828           along to the output driver.  Fairly major rework of amrestore
11829           to clean up tape/non-tape and other oddities.
11830         * changer-src/chg-chio.pl.in: Ditto.
11831         * changer-src/chg-chs.sh.in: Ditto.
11832         * changer-src/chg-manual.sh.in: Ditto.
11833         * changer-src/chg-mtx.sh.in: Ditto.
11834         * changer-src/chg-multi.sh.in: Ditto.
11835         * changer-src/chg-rth.pl.in: Ditto.
11836         * changer-src/chg-zd-mtx.sh.in: Ditto.
11837         * client-src/sendbackup.c: Ditto.
11838         * common-src/alloc.c: Ditto.
11839         * common-src/amanda.h: Ditto.
11840         * docs/INTERNALS: Ditto.
11841         * man/Makefile.am: Ditto.
11842         * man/amanda.8.in: Ditto.
11843         * man/amdd.8: Ditto.
11844         * man/ammt.8: Ditto.
11845         * restore-src/amrestore.c: Ditto.
11846         * server-src/amcheck.c: Ditto.
11847         * server-src/amlabel.c: Ditto.
11848         * server-src/amtape.c: Ditto.
11849         * server-src/amverify.sh.in: Ditto.
11850         * server-src/conffile.c: Ditto.
11851         * server-src/conffile.h: Ditto.
11852         * server-src/taper.c: Ditto.
11853         * tape-src/Makefile.am: Ditto.
11854         * tape-src/amdd.c: Ditto.
11855         * tape-src/ammt.c: Ditto.
11856         * tape-src/output-file.c: Ditto.
11857         * tape-src/output-file.h: Ditto.
11858         * tape-src/output-null.c: Ditto.
11859         * tape-src/output-null.h: Ditto.
11860         * tape-src/output-rait.c: Ditto.
11861         * tape-src/output-rait.h: Ditto.
11862         * tape-src/output-tape.c: Ditto.
11863         * tape-src/output-tape.h: Ditto.
11864         * tape-src/tapeio.c: Ditto.
11865         * tape-src/tapeio.h: Ditto.
11866         * tape-src/tests/amtapeio.test.000: Ditto.
11867         * tape-src/tests/amtapeio.test.001: Ditto.
11868         * tape-src/tests/amtapeio.test.002: Ditto.
11869         * tape-src/tests/amtapeio.test.003: Ditto.
11870         * tape-src/tests/amtapeio.test.004: Ditto.
11871         * tape-src/tests/amtapeio.test.005: Ditto.
11872         * tape-src/tests/amtapeio.test.006: Ditto.
11873         * tape-src/tests/amtapeio.test.007: Ditto.
11874         * tape-src/tests/amtapeio.test.008: Ditto.
11875         * tape-src/tests/amtapeio.test.009: Ditto.
11876         * tape-src/tests/amtapeio.test.010: Ditto.
11877         * tape-src/tests/amtapeio.test.011: Ditto.
11878         * tape-src/tests/amtapeio.test.012: Ditto.
11879         * tape-src/tests/amtapeio.test.013: Ditto.
11880         * tape-src/tests/amtapeio.test.014: Ditto.
11881         * tape-src/tests/amtapeio.test.015: Ditto.
11882         * tape-src/tests/amtapeio.test.016: Ditto.
11883         * tape-src/tests/amtapeio.test.017: Ditto.
11884         * tape-src/tests/amtapeio.test.018: Ditto.
11885         * tape-src/tests/cleartape: Ditto.
11886         * tape-src/tests/newtest: Ditto.
11887         * tape-src/tests/rerun: Ditto.
11888         * tape-src/tests/runtest: Ditto.
11889         * tape-src/tests/testdist: Ditto.
11890         * tape-src/tests/torture: Ditto.
11891
11892 2001-01-24 John R. Jackson <jrj@purdue.edu>
11893
11894         * client-src/amandad.c: Improve packet logging.
11895
11896 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11897
11898         * server-src/driver.c (start_some_dumps): typo.
11899
11900 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11901
11902         * server-src/driverio.h (sched_t): new field no_space.
11903         * server-src/driver.c (start_some_dumps): don't start a disk if
11904           no_space is set.
11905         * server-src/driver.c (continue_dumps): set no_space if it's the
11906           only active dumpers, case c.
11907         * server-src/driver.c (read_schedule): set no_space to 0.
11908
11909 2001-01-23 John R. Jackson <jrj@purdue.edu>
11910
11911         * configure.in: Test for setmntent.
11912         * client-src/getfsent.c: Add some support for Redhat 7 /etc/fstab
11913           changes that indirectly reference the device for a file system.
11914
11915 2001-01-22  Marc W. Mengel <mengel@fnal.gov>
11916
11917         * recover-src/extract_list.c: Added -U to tar recover options
11918         to reduce errors recovering shared libs and/or binaries on
11919         active filesystems.
11920
11921 2001-01-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11922
11923         * docs/INSTALL: Notes about tar-1.13.19
11924
11925 2001-01-17  Thomas Hepper <th@ant.han.de>
11926
11927         * changer-src/chg-scsi.c: Moved definitions for config_t and
11928         changer_t into scsi-defs.h
11929         * changer-src/chg-scsi.c: New config option havebarcode
11930         * changer-src/scsi-changer-driver.c: Changed GenericBarCode do handle
11931         the option havebarcode. Replaced NoBarCode with GenericBarCode.
11932         Fixed compile warnings from -Wshadow
11933         * changer-src/scsi-linux.c: New function ScanBus to scan the SCSI Bus.
11934         not used yet.
11935         * changer-src/scsi-solaris.c: Changed the return value to
11936         Command.uscsi_status in SCSI_ExecuteCommand if the return from the
11937         ioctl is not 0;
11938         
11939 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11940
11941         * man/amanda.8.in: New section "HOST & DISK EXPRESSION" and 
11942           "DATESTAMP EXPRESSION".
11943         * man/amadmin.8.in: Document new usage.
11944         * man/amflush.8.in: Document new usage.
11945         * man/amcheck.8.in: Document new usage.
11946         * man/amdump.8.in: Document new usage.
11947         * man/amrestore.8: Document new usage.
11948         * server-src/amadmin.c: Fix usage.
11949         * server-src/amflush.c: Fix usage.
11950         * server-src/amcheck.c: Fix usage.
11951
11952 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11953
11954         * server-src/diskfile.c (match_disklist): Return if no args.
11955
11956 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11957
11958         * server-src/diskfile.c (match_disklist): Fix.
11959
11960 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11961
11962         * server-src/diskfile.c (match_disklist): Updated for
11963           [host [disk]*]* syntax.
11964
11965 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11966
11967         * common-src/match.c (match_datestamp): New function.
11968         * common-src/amanda.h (match_datestamp): Prototype.
11969         * server-src/amflush.c: Use match_datestamp.
11970         * restore-src/amrestore.c: Use match_datestamp.
11971
11972 2001-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11973
11974         * common-src/match.c (match_word): Support for leading ^ and
11975           trailing $.
11976
11977 2001-01-04 John R. Jackson <jrj@purdue.edu>
11978
11979         * common-src/error.c (error): If the debug file pointer is set, log
11980           any fatal error message to it and close the file so it has a good
11981           trace of what happened and when.
11982
11983 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11984
11985         * taper-src/am-dd.c: include "tapeio.h", fix debug warning.
11986         * taper-src/am-mt.c: include "tapeio.h", fix debug warning.
11987         * taper-src/output-rait.c: include "tapeio.h", new define for
11988            rait_debug
11989         * taper-src/tapeio.c(many): Remove unused tfd variable.
11990         * taper-src/tapeio.h (tape_unload,tape_status): Prototype.
11991
11992 2001-01-04 John R. Jackson <jrj@purdue.edu>
11993
11994         * client-src/killpgrp.c: Calls to error() do not need a newline.
11995
11996 2001-01-04 John R. Jackson <jrj@purdue.edu>
11997
11998         * man/amanda.8.in: Try to make it clearer that dumpcycle and maxdumps
11999           changes in the main part of the config file must appear before any
12000           dumptype definitions, and also that inherited dumptypes must appear
12001           before their reference.
12002
12003 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12004
12005         * server-src/driver.c (continue_dumps): Don't reduce est_size if
12006           it is already larger than holding space allocated.
12007         * server-src/dumper.c: Remove all code for FILE_DUMP command.
12008         * server-src/chunker.c: Better handling of ENOSPC from
12009           write_tapeheader().
12010
12011 2001-01-04 John R. Jackson <jrj@purdue.edu>
12012
12013         * server-src/conffile.c (main): Fix conffile test program so it builds
12014           and works again.
12015
12016 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12017
12018         * changer-src/scsi-defs.h (ChangerCMD_T): replace array function
12019           pointer by enumerated pointers.
12020         * changer-src/scsi-changer-driver.c: Use new calling convention.
12021
12022 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12023
12024         * server-src/amstatus.pl.in: Better support for TRY-AGAIN and
12025           ABORT-FINISHED result.
12026
12027 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12028
12029         * server-src/amflush.c: Use getopt to parse argument.
12030         * server-src/amflush.c: New [-D date]* argument.
12031         * man/amflush.8.in: Document it.
12032
12033 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12034         Patch by Andreas F Mueller <afm@othello.ch>
12035
12036         * server-src/amadmin.c (force_no_bump_one): Fix message.
12037
12038 2001-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12039
12040         * tape-src/am-dd.c: include "amanda.h"
12041         * tape-src/am-mt.c: include "amanda.h"
12042         * tape-src/am-mt.c (main): res is int.
12043         * tape-src/output-rait.c: include "amanda.h", do not define stderr.
12044         * tape-src/tapeio.c (xxx_tapefd_read, plain_tapefd_read): second
12045           argument should be "char *"
12046         * tape-src/tapeio.c (xxx_tapefd_write, plain_tapefd_write): second
12047           argument should be "const char *"
12048
12049 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12050
12051         * server-src/find.c (find_match): Use todo bit.
12052         * server-src/find.c (find_dump): No arguments.
12053         * server-src/find.h (find_dump): Change prototype.
12054         * server-src/amadmin.c (find): New [host disk]* pair arguments.
12055         * server-src/amindexd.c: Change call to find_dump().
12056         * server-src/amtrmidx.c: Change call to find_dump().
12057
12058 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12059
12060         * configure.in: Don't check krb5 include if krb5 is not selected.
12061
12062 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12063
12064         * tape-src/Makefile.am (noinst_HEADERS): Add output-rait.h
12065
12066 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12067
12068         * server-src/amadmin.c (diskloop): typo.
12069
12070 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12071
12072         * server-src/amadmin.c (diskloop): New [host disk]* pair arguments.
12073         * server-src/amadmin.c (diskloop, reuse, noreuse): use get_pname()
12074         instead of argv[0].
12075
12076 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12077
12078         * server-src/amflush.c (main):log DISK after checking if logfile exist.
12079
12080 2000-12-30 John R. Jackson <jrj@purdue.edu>
12081
12082         * common-src/bsd-security.c: Improve the .rhosts/.amandahosts messages
12083           when things go wrong.  Add support for "bsdsecurity" test program
12084           in common-src.
12085         * common-src/Makefile.am: Ditto.
12086         * common-src/amanda.h: Ditto.
12087         * restore-src/amidxtaped.c: Ditto.
12088         * server-src/amindexd.c: Ditto.
12089
12090 2000-12-30 John R. Jackson <jrj@purdue.edu>
12091
12092         * ChangeLog: Bring Jean-Louis into the right month :-).
12093         * changer-src/scsi-changer-driver.c: Untested changes to at least
12094           get the code to compile on Solaris and to remove some warnings.
12095         * changer-src/scsi-defs.h: Ditto.
12096         * changer-src/scsi-solaris.c: Ditto.
12097
12098 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12099
12100         * server-src/diskfile.c (add_disk): New function.
12101         * server-src/diskfile.h (add_disk): Prototype.
12102         * server-src/logfile.h (logtype_e): add L_DISK.
12103         * server-src/logfile.c (logtype_str): add "DISK".
12104         * server-src/amflush.c (main): log DISK.
12105         * server-src/planner.c (main): log DISK.
12106         * server-src/reporter.c: use DISK if available.
12107
12108 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12109
12110         * server-src/amcheck.c: New [host disk]* pair arguments.
12111         * server-src/amflush.c: Ditto.
12112         * server-src/planner.c: Ditto.
12113         * server-src/amdump.sh.in: Ditto.
12114         * server-src/amrestore.c: Use new host/disk matcher.
12115         * man/amcheck.8.in: Document new [host disk]* pair arguments.
12116         * man/amflush.8.in: Ditto.
12117         * man/amdump.8.in: Ditto.
12118
12119 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12120
12121         * server-src/diskfile.c (match_disklist): new function.
12122         * server-src/diskfile.h (struct disk_s): new field todo.
12123         * server-src/diskfile.h (match_disklist): prototype.
12124
12125 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12126
12127         * common-src/match.c (match_word, match_host, match_disk): 
12128         new functions.
12129         * common-src/amanda.h (match_host, match_disk): prototype.
12130
12131 2000-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12132
12133         * server-src/planner.c (analyze_estimate): pick incremental level
12134         if no estimate of level 0.
12135
12136 2000-12-28 Marc W. Mengel <mengel@fnal.gov>
12137         * changer-src/chg-juke.sh.in: New File
12138         * changer-src/Makefile.am: Added support for chg-juke.
12139         * docs/TAPE.CHANGERS: Likewise.
12140         * configure.in: Likewise.
12141
12142 2000-12-24 John R. Jackson <jrj@purdue.edu>
12143
12144         * server-src/getconf.c: Fix free() of static text string (BUGGY) when
12145           the parameter being looked up is bad.
12146
12147 2000-12-23 David Wolfskill  <dhw@whistle.com>
12148
12149         * server-src/amcheck.c (start_server_check): Change directory
12150           writable check to be for the tapelist directory instead of
12151           the config file directory.  Remove config file directory test.
12152         * man/amcheck.8.in: Add mention of tapelist directory and do
12153           some other directory writable cleanup.
12154
12155 2000-12-12 John R. Jackson <jrj@purdue.edu>
12156
12157         * client-src/sendbackup-gnutar.c: Fix regex pattern to accept blanks
12158           or tabs.
12159
12160 2000-12-12 John R. Jackson <jrj@purdue.edu>
12161
12162         * Makefile.am: Work around problem with automake 1.4 not including
12163           pkgdata_DATA.
12164         * docs/Makefile.am: Include RAIT and VTAPE-API in distribution.
12165           Work around problem with automake 1.4 not including pkgdata_DATA.
12166         * tape-src/rait.h: Renamed to rait.h.
12167         * tape-src/rait.c: Renamed to rait.c.
12168         * tape-src/output-rait.h: Renamed from rait.h.
12169         * tape-src/output-rait.c: Renamed from rait.c.
12170         * tape-src/Makefile.am: Reflect the new rait.[ch] names.
12171         * tape-src/tapeio.c: Use output-rait.h name.  Minor typo changes.
12172
12173 2000-12-08 Marc Mengel <mengel@fnal.gov>
12174
12175         * docs/RAIT: New file.
12176         * docs/VTAPE-API: New file.
12177         * tape-src/rait.c: New File providing RAIT virtual tape type.
12178         * tape-src/tapeio.c: Major Surgery.
12179           (vtable): New static table of virtual tape types.
12180           (fdtable): New static table mapping file descriptors.
12181           (tapefd_fsf_ioctl): Renamed tapefd_fsf, with added ioctl argument.
12182           (tapefd_rewind_ioctl): Likewise.
12183           (tapefd_unload_ioctl): Likewise.
12184           (tapefd_weof_ioctl): Likewise.
12185           (tapefd_status_ioctl): Likewise.
12186           (tape_open): Now is a virtual tape table lookup and call.
12187           (tape_access): Now is a switch through virtual tape table.
12188           (tape_stat): Likewise.
12189           (tapefd_close): Likewise.
12190           (tapefd_fsf): Likewise.
12191           (tapefd_read): Likewise.
12192           (tapefd_rewind): Likewise.
12193           (tapefd_resetofs): Likewise.
12194           (tapefd_unload): Likewise.
12195           (tapefd_status): Likewise.
12196           (tapefd_weof): Likewise.
12197           (tapefd_write): Likewise.
12198           (plain_tape_access): Rename of tape_access.
12199           (plain_tape_open): Likewise.
12200           (plain_tapefd_read): Likewise.
12201           (plain_tape_stat): Likewise.
12202           (plain_tapefd_write): Likewise.
12203           (plain_tapefd_close): Likewise.
12204           (plain_tapefd_fsf): Now calls tapefd_fsf_ioctl with &ioctl().
12205           (plain_tapefd_rewind): Likewise.
12206           (plain_tapefd_resetofs): Likewise.
12207           (plain_tapefd_unload): Likewise.
12208           (plain_tapefd_status): Likewise.
12209           (plain_tapefd_weof): Likewise.
12210
12211 2000-12-04 John R. Jackson  <jrj@purdue.edu>
12212
12213         * server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami
12214           problem.
12215
12216 2000-12-04 John R. Jackson  <jrj@purdue.edu>
12217
12218         * server-src/conffile.c (read_conffile_recursively): If the file name
12219           for the includefile directive is not absolute, make it relative to
12220           the configuration directory.
12221
12222 2000-12-03 John R. Jackson  <jrj@purdue.edu>
12223
12224         * restore-src/amrestore.c: Fix header when compression is included.
12225           Use "fast" option for -c and add new -C option to get "best".
12226         * man/amrestore.8: Document the new option, the compression level,
12227           and clean up some nroff issues.
12228
12229 2000-11-30 Marc Mengel <mengel@fnal.gov>
12230
12231         * changer-src/chg-chio.pl.in: Use am-mt and am-dd versus mt and dd.
12232         * changer-src/chg-chs.sh.in: Likewise.
12233         * changer-src/chg-manual.sh.in: Likewise.
12234         * changer-src/chg-mtx.sh.in: Likewise.
12235         * changer-src/chg-multi.sh.in: Likewise.
12236         * changer-src/chg-rth.pl.in: Likewise.
12237         * changer-src/chg-zd-mtx.sh.in:  Likewise.
12238         * tape-src/am-dd.c: New file. Replacement for dd.
12239         * tape-src/am-mt.c: New file. replacement for mt.
12240         * tape-src/Makefile.am: Add build for am-mt and am-dd.
12241         * tape-src/tapeio.c (tape_unload, tapefd_unload, tape_status, 
12242           tapefd_status): New functions.
12243           (tape_rewind, tape_fsf, tape_rdlabel): Change error message 
12244                 for tape being offline so it matches online/offline regex 
12245                 in changer scripts.
12246           (tape_open): Ifdef-out mode flag clearing, so you can pass 
12247                 O_TRUNC, etc.  in for am-dd.
12248
12249 2000-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12250
12251         * common-src/util.c: #include "../tape-src/tapeio.h"
12252         * tape-src/tapeio.c(tapefd_write): second arg is const.
12253         * tape-src/tapeio.h(tapefd_write): Likewise.
12254         * common-src/event.c(event_loop): declare entry if ASSERT is defined.
12255         * changer-src/chg-scsi.c: Fix compiler warning.
12256         * changer-src/scsi-aix.c: Likewise.
12257         * changer-src/scsi-bsd.c: Likewise.
12258         * changer-src/scsi-cam.c: Likewise.
12259         * changer-src/scsi-changer-driver.c: Likewise.
12260         * changer-src/scsi-defs.h: Likewise.
12261         * changer-src/scsi-hpux.c: Likewise.
12262         * changer-src/scsi-hpux_new.c: Likewise.
12263         * changer-src/scsi-irix.c: Likewise.
12264         * changer-src/scsi-linux.c: Likewise.
12265         * changer-src/scsi-solaris.c: Likewise.
12266         * changer-src/sense.c: Likewise.
12267
12268 2000-11-22 John R. Jackson  <jrj@purdue.edu>
12269
12270         * contrib/dbbackup.ksh: Deal with adm being a symlink.
12271         * contrib/dbbackup.tcl: Update for Tcl 8.3 and newer Oratcl versions.
12272
12273 2000-11-22 John R. Jackson  <jrj@purdue.edu>
12274
12275         * Makefile.am: Forgot to add contrib/sst/README.Amanda to the list
12276           of files to put in a distribution.
12277
12278 2000-11-21 John R. Jackson  <jrj@purdue.edu>
12279
12280         * recover-src/extract_list.c (extract_files_child): Add support for
12281           XFSRESTORE.
12282
12283 2000-11-21 John R. Jackson  <jrj@purdue.edu>
12284
12285         * server-src/amcheck.c: Minor message wording changes.
12286
12287 2000-11-21 John R. Jackson  <jrj@purdue.edu>
12288
12289         * configure.in: Forgot to check in this part of new amgetconf.8.in.
12290
12291 2000-11-21 John R. Jackson  <jrj@purdue.edu>
12292
12293         * contrib/sst/README.Amanda: New file of Amanda specific sst notes.
12294         * contrib/sst/sst.c: Attempt at letting gcc compile sst.
12295
12296 2000-11-21 John R. Jackson  <jrj@purdue.edu>
12297
12298         * man/amgetconf.8.in: New man page.
12299         * man/Makefile.am: Add support for amgetconf.8.in.
12300         * man/amadmin.8.in: Update for 2.4.2 and do general cleanup.
12301         * man/amanda.8.in: Ditto.
12302         * man/amcheck.8.in: Ditto.
12303         * man/amcheckdb.8.in: Ditto.
12304         * man/amcleanup.8.in: Ditto.
12305         * man/amdump.8.in: Ditto.
12306         * man/amflush.8.in: Ditto.
12307         * man/amlabel.8.in: Ditto.
12308         * man/amrecover.8.in: Ditto.
12309         * man/amreport.8.in: Ditto.
12310         * man/amrestore.8: Ditto.
12311         * man/amrmtape.8.in: Ditto.
12312         * man/amstatus.8.in: Ditto.
12313         * man/amtape.8: Ditto.
12314         * man/amtoc.8.in: Ditto.
12315         * man/amverify.8.in: Ditto.
12316
12317 2000-11-21 John R. Jackson  <jrj@purdue.edu>
12318
12319         * contrib/sst/sst.c (sst_ioctl): Allow non-root users to use sst.
12320
12321 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12322
12323         * server-src/amdump.sh.in: exit if amgetconf exit with status != 0.
12324         * server-src/amcleanup.sh.in: ditto
12325         * server-src/amstatus.pl.in: ditto
12326
12327 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12328
12329         * server-src/driver.c (start_some_dumps): don't check free_kps if
12330         curusage == 0.
12331         * server-src/driver.c (free_kps): remove the kludge.
12332
12333 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12334
12335         * server-src/conffile.c: It's an error to have a negative chunksize.
12336         * man/amanda.8.in: remove documentation of negative chunksize.
12337         * example/amanda.conf.in: ditto
12338         * example/amanda.conf.chg-scsi.in:ditto
12339         * NEWS: negative chunksize is no longer supported.
12340
12341 2000-11-03 John R. Jackson  <jrj@purdue.edu>
12342
12343         * server-src/driver.c (handle_taper_result): the holding disk entry
12344         should not be removed just because taper could not write it out in
12345         the "too many taper retries" case.  It should be left for amflush.
12346
12347 2000-11-01 John R. Jackson  <jrj@purdue.edu>
12348
12349         * server-src/amverify.sh.in: use common form for getting the first
12350         line of a file/pipe.  Sed is more portable than head.
12351
12352 2000-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12353
12354         * client-src/selfcheck.c (check_disk): Write an appropriate
12355         message if the disk name start with '//' and the program is DUMP
12356         or SAMBA is not compiled in.
12357
12358 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12359
12360         * server-src/driver.c (handle_chunker_result): The dumpsize is
12361         the third argument, not the fourth.
12362
12363 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12364
12365         * server-src/driver.c (handle_chunker_result): don't check
12366         pending_aborts, call event_release() ob ABORT-FINISHED.
12367
12368 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12369
12370         * server-src/chunker.c (databuf_flush): workaround to prevent a
12371         hang on a ABORT command.
12372
12373 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12374
12375         * server-src/driver.c (continue_dumps): set estimate to more than 
12376         what is already use instead of setting no_hold=1 when a disk
12377         don't fit on holding disk.
12378
12379 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12380
12381         * server-src/chunker.c: chunker was broken after RQ-MORE-DISK.
12382
12383 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12384
12385         * server-src/amstatus.pl.in: add '&' when calling &usage() 
12386         or &dump_size().
12387
12388 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12389         reported by The Hermit Hacker <scrappy@hub.org>
12390
12391         * changer-src/chg-chio.pl.in: remove unused $libexecdir.
12392
12393 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12394         reported by The Hermit Hacker <scrappy@hub.org>
12395
12396         * changer-src/chg-chio.pl.in: remove comma after LOG, 
12397         typo: r should be 0.
12398
12399 2000-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12400
12401         * docs/INDEXING: doc updated.
12402
12403 2000-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12404
12405         * AUTHORS: add Thomas Hepper.
12406
12407 2000-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12408
12409         * server-src/driverio.c (chunker_cmd): send ABORT command.
12410
12411 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12412
12413         * server-src/amverify.sh.in: grep only the first line of the header.
12414
12415 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12416
12417         * server-src/amverify.sh.in: verify with tar even if the
12418         server and the client are not configured with the same path.
12419
12420 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12421
12422         * NEWS: A new `ctimeout' keyword in amanda.conf to replace 
12423         the CHECK_TIMEOUT constant in amcheck.c.
12424
12425 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12426
12427         * server-src/amlabel.c: Don't set tape_ok to 0 if 
12428         tape_wrlabel is successful.
12429
12430 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12431
12432         * server-src/taper.c: amfree(strclosing).
12433
12434 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12435
12436         * server-src/driver.c: typo.
12437
12438 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12439
12440         * configure.in: --with-samba-user is deprecated.
12441         * docs/SAMBA: the username is now on the amandapass file.
12442         * NEWS: the username is now on the amandapass file.
12443         * client-src/findpass.c (findpass): accept "*" as diskname.
12444         * client-src/selfcheck.c (check_disk): call to samba changed.
12445         * client-src/sendsize.c (getsize_smbtar): ditto.
12446         * client-src/sendbackup-gnutar.c (start_backup): ditto.
12447         * recover-src/extract_list.c (extract_files_child): ditto.
12448
12449 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12450
12451         * server-src/taper.c: give better message when failing 
12452         to open a chunk.
12453
12454 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12455
12456         * server-src/diskfile.c (headqueue_disk): new function to
12457         insert at the head of the queue.
12458         * server-src/diskfile.h (headqueue_disk): prototype.
12459         * server-src/driver.c (taper_queuedisk): insert with
12460         headqueue_disk() if disk already attempted.
12461
12462 2000-10-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12463
12464         * AUTHORS: fix my email address.
12465
12466 2000-09-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12467
12468         * server-src/amcheck.c: Don't accept -m or -M option if MAILER
12469         is not defined.
12470         * server-src/reporter.c: Need a -f optionn if MAILER is not defined.
12471
12472 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12473         patch by <jeg@time.ucsc.edu>
12474
12475         * server-src/reporter.c (output_summary): check for tape_labels.
12476
12477 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12478
12479         * server-src/amindexd.c: use strcasecmp to compare hostname.
12480
12481 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12482
12483         * server-src/amstatus.pl.in: fix plural misuse.
12484
12485 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12486
12487         * man/amanda.8.in: add all pages in the SEE ALSO section.
12488
12489 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12490
12491         * man/amreport.8.in: amreport does not rotate the log.
12492         * man/amrestore.8: note on holdingdisk.
12493         * restore-src/amrestore.c: update usage.
12494         * server-src/amrmtape.sh.in: update usage.
12495         * server-src/amverify.sh.in.usage: update usage.
12496
12497 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12498
12499         * server-src/amoverview.pl.in: update usage information,
12500         -config is no longer needed for ccompatibility with other program.
12501         * man/amoverview.8.in: -config is no longer needed.
12502
12503 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12504
12505         * example/amanda.conf.in: chunk should not be larger than
12506         MAX_FILE_SIZE - 1Mb.
12507
12508 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12509
12510         * client-src/sendsize.c (getsize_smbtar): remove unused debug_level
12511         variable.
12512         * server-src/amlabel.c (main): init errstr to NULL, 
12513         fix compiler warning.
12514
12515 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12516         patch by jason Thomas <jet@users.sourceforge.net>
12517
12518         * tape-src/tapetype.c: fix help message.
12519
12520 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12521         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
12522
12523         * common-src/file.c (mkpdir): check p != NULL
12524         * man/amstatus.8.in: typo
12525
12526 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12527         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
12528
12529         * client-src/calcsize.c:sets correct program name,
12530         prevent coredumps and some improrer command line error mesages
12531
12532 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12533
12534         * common-src/amanda.h: prototype clean_regex().
12535         * common-src/match.c: new function clean_regex() that escape
12536         all non-alphanumeric character.
12537         * recover-src/extract_list.c (add_file, delete_file): use clean_regex().
12538
12539 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12540
12541         * server-src/amcheck.c: (start_server_check): check for the oldlog
12542         directory.
12543
12544 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12545
12546         * server-src/amtrmlog.c: better check of the oldlog directory.
12547
12548 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12549
12550         * server-src/amcheck.c: (start_server_check): don't check the tape
12551         if tapedev is /dev/null.
12552
12553 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12554
12555         * server-src/reporter.c (output_tapeinfo): test reversed for run_tapes.
12556
12557 2000-07-31 Thomas Hepper <th@ant.han.de>
12558         * changer-src/chg-scsi.c: Rework of the device handling.
12559         Every device is opend for an operation and than closed.
12560         This will hopefully fix the problems with openening the tape device
12561         and the SCSI control device for the tape
12562         new option emubarcode (see docs/TAPE.CHANGERS)
12563         * changer-src/scsi-cam.c: Changed to work with the new device handling.
12564         * changer-src/scsi-hpux_new.c: Changed to work with the new device handling.
12565         * changer-src/scsi-irix.c: Changed to work with the new device handling. (Not tested)
12566         * changer-src/scsi-solaris.c: Changed to work with the new device handling. (Not tested)
12567         * changer-src/scsi-linux.c: Changed to work with the new device handling.
12568         * changer-src/scsi-changer-driver.c: Changed to work with the new device handling
12569         * changer-src/scsi-defs.h: Changed to work with the new device handling
12570 2000-07-18 John R. Jackson  <jrj@purdue.edu>
12571
12572         * changer-src/chg-chio.pl.in (do_time): fix chg-chio.pl timestamp
12573         function to return a string instead of writing to stdout.
12574
12575 2000-07-18 John R. Jackson  <jrj@purdue.edu>
12576
12577         * server-src/taper.c (file_reader_side): detach and destroy shared
12578         memory areas on an error condition.  Found by Patrik Andersin
12579         <cat@iki.fi>.
12580
12581 2000-07-17 Thomas Hepper <th@ant.han.de>
12582         * docs/TAPE.CHANGERS: Added some notes for the cam driver
12583         * changer-src/scsi-cam.c: New syntax for telling scsi ids
12584         (bus:target:lun)
12585         SCSI_ExecuteCommand now returns the correct sense buffer.
12586
12587 2000-07-17 Thomas Hepper <th@ant.han.de>
12588         * configure.in: Added check for BSD SCSI CAM Support
12589         * changer-src/scsi-cam.c: New, functions for SCSI CAM Support
12590         ( at the moment for FreeBSD 4.0)
12591         * changer-src/Makefile.am: added scsi-cam.s to the list of sources
12592         * changer-src/chg-scsi.c: The structs for the OpenFiles_T is now
12593         allocated in chg-scsi and passed to OpenDevice.
12594         * changer-src/scsi-changer-driver.c: New Parameter for OpenDevice
12595         (OpenFiles_T)
12596
12597 2000-07-10 Marc Mengel <mengel@fnal.gov>
12598         * tape-src/tapeio.c -- add tape_{stat,access}, allow "plain:" prefix
12599                 on tape device names
12600         * tape-src/tapeio.h -- add tape_{stat,access} prototypes
12601         * common-src/util.c -- call tape_{read,write}() in full{read,write}()
12602         * restore-src/amidxtaped.c -- use tape_stat() on tapename
12603         * restore-src/amrestore.c -- use tape_stat() on tapename
12604         * server-src/amcheck.c -- use tape_access() on tapename
12605         * client-src/Makefile.am -- now needs libamtape.a twice
12606         * server-src/Makefile.am -- now needs libamtape.a twice
12607         * recover-src/Makefile.am -- now needs libamtape.a twice
12608         * Makefile.am -- tape-src before client-src
12609
12610 2000-07-05 Thomas Hepper <th@ant.han.de>
12611         * changer-src/chg-scsi.c: fixed an core dump if tapeident was set
12612         * changer-src/scsi-changer-driver.c (OpenFile):
12613          if the ident ist set in the config set this in the internal device 
12614          struct too.
12615         * changer-src/scsi-changer-driver.c (GenerciSenseHandler):
12616          changed the type for the info text from char * to char ** which
12617          is passwd to Sense2Action
12618         * changer-src/scsi-changer-driver.c (ChangerStatus):
12619          fixed the bug which causes an core dump for chg-scsi -status robot
12620          if an bar code reader is detected. Fixed also the bug that the
12621          mapping Label -> Barcode was not displayed.
12622         * changer-src/scsi-defs.h: Changed the prototype for Sense2Action
12623         * changer-src/sense.c: Added the defs for the Spectra TreeFrog lib
12624         * changer-src/sense.c (Sense2Action); Fixed the handling if no match
12625          was found (fall back to the generic description)
12626
12627 2000-06-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12628
12629         * server-src/list_dir.c (add_dir_list_item): add at head of list.
12630
12631 2000-06-24 Thomas Hepper <th@ant.han.de>
12632         * changer-src/chg-scsi-chio.c: Merged changes from 2.4.2 
12633         * changer-src/chg-scsi.c: Merged changes from 2.4.2
12634         * changer-src/sense.c: New file. Contains an table and function for the 
12635           mapping of sense/ASC/ASCQ conditions from the SCSI sense.
12636         * changer-src/scsi-changer-driver.c: Merged changes from 2.4.2
12637           Changed handling for the sense keys. Now there is only one function
12638           to decide what to do with an sense/ASC/ASCQ conditon (abort,retry ..)
12639         * changer-src/Makefile.am: Added sense.c to the source list.
12640         * changer-src/scsi-solaris.c: Merged changes from 2.4.2 
12641         * changer-src/scsi-linux.c: Merged changes from 2.4.2 
12642         * changer-src/scsi-irix.c: Merged changes from 2.4.2 
12643         * changer-src/scsi-hpux_new.c: Merged changes from 2.4.2 
12644         * changer-src/scsi-defs.h: Merged changes from 2.4.2 
12645         
12646 2000-06-12  Jeroen Ruigrok van der Werven  <asmodai@wxs.nl>
12647
12648         * server-src/amlabel.c (main): Do not amfree(config_name).
12649
12650 2000-06-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12651
12652         * server-src/holding.c (pick_datestamp): convert ch to upper.
12653
12654 2000-05-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12655
12656         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
12657           delay call to dumper_result().
12658
12659 2000-05-28  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12660
12661         * client-src/sendbackup-gnutar.c: Ignore `socket ignored' GNU tar
12662         messages.
12663
12664 2000-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12665
12666         * chunker.c: allow chunk to be written on different holding disk.
12667         * server-src/driver.c: allow chunk to be written on different
12668           holding disk.
12669         * server-src/conffile.c: make sure that disksize and chunksize
12670           are multiple of TAPE_BLOCK_SIZE.
12671         * server-src/conffile.h: disksize and chunksize are long.
12672         * server-src/diskfile.c (find_disk): new function to see if a
12673           given disk is contained in a list structure.
12674         * server-src/diskfile.h (find_disk): prototype.
12675         * server-src/driverio.h (RQ_MORE_DISK): Added message.
12676         * server-src/driverio.h (free_assignedhd): prototype.
12677         * server-src/driverio.h (assignedhd_t): new data structure.
12678         * server-src/driverio.c (cmdstr): added comamnd RQ-MORE-DISK.
12679         * server-src/driverio.c (free_assignedhd): new function to free an
12680           array of assignedhd_t.
12681         
12682 2000-05-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12683
12684         * server-src/driver.c (chunker_program): new variable.
12685
12686 2000-04-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12687
12688         * server-src/amstatus.pl.in: handle chunker line.
12689
12690 2000-04-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12691
12692         * recover-src/Makefile.am (LDADD): Removed libamtape.
12693         Reported by Paul Yeatman <pyeatman@ucsd.edu>
12694
12695 2000-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12696
12697         * server-src/chunker.c: new file for the chunker program.
12698         * server-src/Makefile.am: compile it.
12699         * server-src/driver.c: many modification.
12700         * server-src/driverio.c: many modification.
12701         * server-src/driverio.c (startup_chunk_process, chunker_cmd):
12702         new functions.
12703         * server-src/driverio.h: prototype them.
12704         * server-src/driverio.h (struct chunker_s): new structure.
12705         * server-src/logfile.c: handle chunker log.
12706         * server-src/logfile.h: ditto.
12707         * server-src/reporter.c: ditto.
12708         * server-src/taper.c: size reduced by TAPE_BLOCK_SIZE.
12709
12710 2000-04-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12711
12712         * server-src/taper.c: don't crash if the tapelist file
12713         doesn't exist.
12714
12715 2000-04-09  Frank Wojcik  <fwojcik@lucent.com>
12716
12717         * server-src/taper.c (detach_buffers): Fixed typo in error message.
12718
12719         * server-src/amrmtape.sh.in: Fix occurrence of `Infofile', that
12720         should have been `InfoFile'.
12721
12722 2000-04-09  Davide Marchignoli  <marchign@di.unipi.it>
12723   
12724         * server-src/conffile.h (confparm_t): Added CTIMEOUT.
12725         * server-src/conffile.c: Added ctimeout support.  Default to 30.
12726         * example/amanda.conf.in: Likewise.
12727         * man/amanda.8.in: Documented it.
12728         * server-src/amcheck.c: Use ctimeout from configuration file instead
12729         of CHECK_TIMEOUT.
12730
12731 2000-04-09  Stan Brown  <stanb@awod.com>
12732
12733         * recover-src/amrecover.c (guess_disk): Omit DEV_PREFIX only if
12734         it is actually a prefix of fsname.
12735
12736 2000-04-09  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12737
12738         * server-src/amlabel.c (main): Check label *after* writing end mark.
12739
12740 2000-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12741
12742         * server-src/amlabel.c: don't crash if the tapelist file 
12743         doesn't exist.
12744
12745 2000-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12746
12747         * server-src/amstatus.pl.in: "0 dumpers busy" should be "0 dumper busy".
12748
12749 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12750
12751         * server-src/amadmin.c (force_one, force_bump_one): FORCE_FULL
12752         and FORCE_BUMP are mutually exclusive.
12753
12754 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12755
12756         * server-src/driver.c (main): use the holding disk even if the
12757         datestamped directory already exist.
12758
12759 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12760
12761         * server-src/amstatus.pl.in (prefix, exec_prefix): Refer to them
12762         twice to avoid warnings of possible typo.
12763
12764         * amplot/amplot.awk: Ignore dumper's RQ-MORE-DISK.
12765         Reported by David Wolfskill <dhw@whistle.com>
12766         * amplot/amplot.awk: Handle taper's TRY-AGAIN like TAPE-ERROR.
12767
12768         * server-src/amstatus.pl.in: Compute and display TRY-AGAIN tape
12769         errors.
12770         Reported by David Wolfskill <dhw@whistle.com>
12771
12772         * man/amtoc.8.in: Document -w.
12773
12774 2000-01-21  David Wolfskill  <dhw@whistle.com>
12775
12776         * server-src/amtoc.pl.in: Add `-w' to add new lines and form feeds.
12777
12778 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12779
12780         * man/amlabel.8.in: Tapes are no longer requested in reverse order
12781         of amlabeling.
12782         Reported by Brad Guillory <round@baileylink.net>
12783
12784         * server-src/amstatus.pl.in: New option --stats, to display
12785         statistics about dumpers and taper.
12786         * man/amstatus.8.in: Document it.
12787
12788 2000-01-21  David Wolfskill  <dhw@whistle.com>
12789
12790         * server-src/amstatus.pl.in: Sort dumpers by number.
12791
12792 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12793
12794         * server-src/amstatus.pl.in: Remove bogus (?) line `$$host=1'.
12795
12796         * configure.in (MAILER): Warn or print an error if not found,
12797         depending on whether server code is disabled or not.
12798
12799         * server-src/reporter.c (output_tapeinfo): Report used tapes
12800         regardless of tape errors.
12801
12802         * config/acinclude.m4i (CF_WAIT): Simplify the test.  Declare wait()
12803         in the global scope.
12804
12805 2000-01-21  Garrett Wollman  <wollman@khavrinen.lcs.mit.edu>
12806
12807         * config/acinclude.m4i (CF_WAIT): Avoid warnings on systems
12808         where `union wait' works but is deprecated.
12809
12810 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12811
12812         * recover-src/uscan.l (settape): Recognize it.
12813         * recover-src/uparse.y: Parse it.
12814         * recover-src/amrecover.h (set_tape): Declare it.
12815         * recover-src/set_commands.c (set_tape): Implement it.
12816         * recover-src/help.c (help_list): Document it.
12817         * man/amrecover.8.in: Likewise.
12818         * recover-src/extract_list.c (extract_files): Warn if tape device is
12819         /dev/null.
12820         * recover-src/amrecover.c (tape_device_name): Default to
12821         server-determined default.
12822
12823 2000-01-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12824
12825         * configure.in: Recognize alpha*-*-linux-* and sparc*-*-linux-*.
12826
12827         * tape-src/Makefile.am (../common-src/libamanda.$(LIB_EXTENSION)):
12828         Allow for `make tapetype' before libamanda is built.
12829
12830         * server-src/amoverview.pl.in: Year doesn't take just 2 bytes.
12831
12832 2000-01-06  David Wolfskill  <dhw@whistle.com>
12833
12834         * docs/TAPETYPES: Typo.
12835         
12836 2000-01-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12837
12838         * docs/TAPETYPES: Removed all tapetype entries.  Pointed to
12839         example/amanda.conf, to the mailing list archives and to the on-line
12840         tapetype list.  Explained the meaning of length, filemark and speed,
12841         and how to build and use the tapetype utility.
12842
12843 1999-12-12 John R. Jackson  <jrj@purdue.edu>
12844
12845         * configure.in: egrep was having trouble with quoting on some systems.
12846         Broke it apart into multiple unquoted statements.  Also, changed the
12847         script to run the steps on all dump tests and added "Label" as another
12848         line to ignore.
12849
12850 1999-12-12 John R. Jackson  <jrj@purdue.edu>
12851
12852         * tape-src/tapetype.c: tweak the algorithm to write files in both
12853         passes and compute the tape mark size as the difference.  Never
12854         report a negative tape mark size.  Various other minor cleanup.
12855
12856 1999-11-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12857
12858         * client-src/sendbackup-gnutar.c (re_table): #if out the debugging
12859         Samba messages unless SAMBA_VERSION < 2.
12860
12861 1999-11-29  John E.P.Hynes  <john@hytronix.ne.mediaone.net>
12862
12863         * client-src/sendbackup-gnutar.c (re_table): Update for Samba 2.0.6.
12864
12865 1999-11-25 John R. Jackson  <jrj@purdue.edu>
12866
12867         * server-src/amflush.c (main): conf_logdir should not be free'd
12868           (found by Espen H Wiborg <espenhw@infotek.no>).
12869
12870 1999-11-10 John R. Jackson  <jrj@purdue.edu>
12871
12872         * recover-src/extract_list.c: report the tape server host in the
12873           message to check the amidxtaped.debug file.   If extract_list_child
12874           fails (such as when amidxtaped fails to read the tape), ask if
12875           things should continue instead of aborting.
12876
12877 1999-11-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12878
12879         * server-src/driverio.c (update_info_dumper): Discard information on
12880         older same- or higher-level dumps.
12881         * server-src/driver.c (dump_to_tape): Add comment that _dumper must
12882         be called before _taper.
12883
12884         * docs/FAQ: Sometimes FQDNs are wrong for amandahosts.
12885
12886 1999-11-10 John R. Jackson  <jrj@purdue.edu>
12887
12888         * server-src/amindexd.c (build_disk_table): need to clear the old
12889           disk history list before building a new one.
12890
12891 1999-11-10 John R. Jackson  <jrj@purdue.edu>
12892
12893         * server-src/taper.c (label_tape): issue a warning when tapedev is
12894           set to /dev/null.
12895         * server-src/amcheck.c (start_server_check): make warning message
12896           text the same for amcheck and taper when tapedev is /dev/null.
12897
12898 1999-11-10 John R. Jackson  <jrj@purdue.edu>
12899
12900         * server-src/amcleanupdisk.c (main): try to remove empty holding disk
12901           areas.
12902         * server-src/holding.c (scan_holdingdisk): do not automatically remove
12903           empty holding disk areas since this function is called by various
12904           utilities and a dump might be in progress.
12905
12906 1999-11-10  James FitzGibbon  <james@targetnet.com>
12907
12908         * server-src/infofile.c (put_info): d.size should have been
12909         d.dsize.
12910
12911 1999-11-09 John R. Jackson  <jrj@purdue.edu>
12912
12913         * server-src/amcheck.c (start_server_check): test tapedev for
12914           "/dev/null" and issue warning that dumps will be thrown away.
12915
12916 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
12917
12918         * server-src/amadmin.c (main): Second occurrence of CNF_TAPELIST
12919         should have been CNF_INFOFILE; fixed.
12920
12921 1999-11-02  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12922
12923         * common-src/amflock.c (struct flock): Do not assume the fields are
12924         declared in any particular order.
12925         Reported by Sean Kelly <kelly@plutotech.com>
12926
12927         * Makefile.am (EXTRA_DIST): Added contrib/set_prod_link.pl.
12928         * docs/INSTALL: Likewise.
12929
12930 1999-11-02  Ricardo Malta  <rmalta@bigfoot.com>
12931         
12932         * contrib/set_prod_link.pl: Create the links for a configuration
12933         with --with-suffix.
12934
12935 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
12936
12937         * common-src/rsh-security.c (net_writev): The result of a cast is
12938         not an lvalue; fixed.
12939
12940 1999-10-26  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
12941
12942         * server-src/amtoc.pl.in: Correct a bug for total report.
12943
12944 1999-11-01 John R. Jackson  <jrj@purdue.edu>
12945
12946         * server-src/amcleanupdisk.c (main): do not free the config name (it
12947           was never alloc-d).
12948
12949 1999-10-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12950
12951         * common-src/debug.c: Do not assume stderr is a compile-time
12952         constant.  On glibc 2.2 (RedHat Linux 6.1), it is not.
12953
12954 1999-10-11  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
12955
12956         * server-src/amtoc.pl.in: Add new options -i and -t.  Print original
12957         size, instead of size on tape.
12958
12959 1999-10-07 John R. Jackson  <jrj@purdue.edu>
12960
12961         * common-src/stream.c (stream_server): remove reference to portrange
12962           variable.  Compliments of Randy Dees <rrd@amherst.com>.
12963
12964 1999-10-03 John R. Jackson  <jrj@purdue.edu>
12965
12966         * server-src/driver.c (main): now that multiple results can come back
12967           from taper and dumper without a handshake (e.g. NO-ROOM), we need to
12968           process them all rather than just the first one.  Call the new
12969           areads_dataready() function to peek and see if more data is ready.
12970         * common-src/amanda.h: declare areads_dataready().
12971         * common-src/file.c: define areads_dataready().  Fix some variable
12972           types.  Fix a buffer expansion problem.  Add code to the test
12973           program to force buffer expansion to be checked out.
12974
12975 1999-10-03 John R. Jackson  <jrj@purdue.edu>
12976
12977         * common-src/file.c (areads_getbuf): fix a buffer allocation problem.
12978
12979 1999-10-03 John R. Jackson  <jrj@purdue.edu>
12980
12981         * common-src/amflock.c (main): do not use aclose() in the configure
12982           test case.  During configure we do not have areads_relbuf()
12983           available and it makes configure think all the tests have failed.
12984
12985 1999-10-03 John R. Jackson  <jrj@purdue.edu>
12986
12987         * common-src/amanda.h: protect the close macros and areads* from
12988           out of range file descriptors.
12989         * common-src/file.c: ditto.
12990
12991 1999-10-02 John R. Jackson  <jrj@purdue.edu>
12992
12993         * server-src/amindexd.c (build_disk_table): only "OK" results from
12994           find_dump should be considered.
12995
12996 1999-10-02 John R. Jackson  <jrj@purdue.edu>
12997
12998         * common-src/file.c (areads): when NO-ROOM became advisory and didn't
12999           participate in a full handshake, it exposed a problem in areads()
13000           where a static buffer was shared among all I/O.  Changed it to use
13001           a separate buffer for each file descriptor.  Enhanced the test
13002           program to check out the code.
13003         * common-src/amanda.h: ditto
13004         * restore-src/amidxtaped.c: minor areads/agets comment typo.
13005         * server-src/amindexd.c: ditto
13006
13007 1999-10-02 John R. Jackson  <jrj@purdue.edu>
13008
13009         * server-src/amlogroll.c: fix minor memory leak.
13010
13011 1999-09-29 John R. Jackson  <jrj@purdue.edu>
13012
13013         * server-src/dumper.c (do_dump): closed the dump messages file too
13014           soon.
13015
13016 1999-09-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13017
13018         * recover-src/extract_list.c (samba_extract_method): Default to
13019         SAMBA_TAR, for similarity with other restore programs.
13020         (extract_files_child): If restore with SMBCLIENT is enabled, explain
13021         that Samba shares will be restored to the SMB share.
13022
13023 1999-09-22 John R. Jackson  <jrj@purdue.edu>
13024
13025         * configure.in: wrong variable when processing LIBRARY_DIRS.  Fix
13026           compliments of John M. Vogtle <jmvogtle@kodak.com>.
13027
13028 1999-09-20 John R. Jackson  <jrj@purdue.edu>
13029
13030         * server-src/Makefile.am: use new amlogroll utility to rename the log
13031           file to the datestamped name.
13032         * server-src/amcheck.c: ditto.
13033         * server-src/amcleanup.sh.in: ditto and call all utilities with the
13034           config file name as an argument.
13035         * server-src/amdump.sh.in: ditto and call all utilities with the
13036           config file name as an argument.
13037         * server-src/amflush.c: ditto.
13038         * server-src/amlogroll.c: new utility.
13039         * server-src/driverio.c: ditto and call all utilities with the
13040           config file name as an argument.
13041         * server-src/reporter.c: ditto.
13042
13043 1999-09-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13044
13045         * amlogroll.c: It was missing; copied from the 2.4.2 branch.
13046
13047         * configure.in (AMANDA_TMPDIR): Added comment for config.h.in.
13048
13049 1999-09-19 John R. Jackson  <jrj@purdue.edu>
13050
13051         * server-src/amverify.sh.in: this script is important enough it should
13052           not depend on having perl installed.  Clean up the AIX "mt status"
13053           code.  Test for presense of other restore programs and check that
13054           they are executable during processing.
13055
13056 1999-09-19 John R. Jackson  <jrj@purdue.edu>
13057
13058         * server-src/amverify.sh.in: put back an "mt status" wait loop I
13059           erroneously removed, but protect it from AIX.
13060
13061 1999-09-19 John R. Jackson  <jrj@purdue.edu>
13062
13063         * common-src/util.c: fix math in bind_portrange so ports requested
13064           are between those the caller passed and make sure port 0 does not
13065           accidentally get requested, which returns a non-privileged port.
13066         * common-src/dgram.c: bind_portrange last port argument is inclusive.
13067         * common-src/stream.c: ditto.
13068         * recover-src/amrecover.c: ditto.
13069         * recover-src/extract_list.c: ditto.
13070
13071 1999-09-19 John R. Jackson  <jrj@purdue.edu>
13072
13073         * server-src/driver.c: do not send a FILE_WRITE to the taper when the
13074           tape queue is empty during a TRYAGAIN (driver core dumped).
13075
13076 1999-09-19 John R. Jackson  <jrj@purdue.edu>
13077
13078         * server-src/taper.c: fix protocol problems when out of tape.  Add
13079           FAKE_TAPE_ERROR debugging code to simulate tape errors.  Fix problem
13080           with command line argument processing.
13081
13082 1999-09-18 John R. Jackson  <jrj@purdue.edu>
13083
13084         * configure.in: several compress/uncompress variables were not being
13085           set properly.
13086
13087 1999-09-18 John R. Jackson  <jrj@purdue.edu>
13088
13089         * client-src/sendbackup.c: pclose returns a child exit status of the
13090           pipe, not an errno, so do not try to strerror it.
13091           Have the index child process exit with the pclose exit code.
13092           Treat index failures as strange rather than fatal so the dump gets
13093           fully processed.  It's more important to have the dump image than
13094           to skip it just because indexing had a (possibly unrelated) problem.
13095
13096 1999-09-15 John R. Jackson  <jrj@purdue.edu>
13097
13098         * server-src/amtoc.pl.in: handle an image failing on one tape and
13099           succeeding on the next.
13100
13101 1999-09-15 John R. Jackson  <jrj@purdue.edu>
13102
13103         * server-src/amstatus.pl.in: generalize the "driver: state" parsing
13104           so it can handle current and future information.
13105
13106 1999-09-15 John R. Jackson  <jrj@purdue.edu>
13107
13108         * common-src/bsd-security.c: if the user field is not present in the
13109           .amandahosts file, it should default to the local user, not the
13110           remote user.  For our purposes, that is CLIENT_USER, not the user
13111           we are running as (although they should be the same).
13112
13113 1999-09-14 John R. Jackson  <jrj@purdue.edu>
13114
13115         * configure.in: Add --with-tmpdir to ./configure and use it for
13116           all Amanda temporary files.  Default --with-dbgdir to --with-tmpdir.
13117           Move libexec/getconf to sbin/amgetconf and add an optional
13118           config parameter.  Add optional config parameter to several
13119           other programs.
13120           Add debugging to chg-chio.
13121           Call new safe_cd() function in most programs to cd to --with-tmpdir
13122           so if they drop core, it goes to a known spot.  Rename existing
13123           core files so more than one failure may be tracked.  Remove most
13124           chdir() and umask() calls (umask is set in safe_cd).
13125         * amplot/amplot.sh.in: ditto.
13126         * changer-src/chg-chio.pl.in: ditto.
13127         * changer-src/chg-chs.sh.in: ditto.
13128         * changer-src/chg-manual.sh.in: ditto.
13129         * changer-src/chg-mtx.sh.in: ditto.
13130         * changer-src/chg-multi.sh.in: ditto.
13131         * changer-src/chg-rth.pl.in: ditto.
13132         * changer-src/chg-scsi-chio.c: ditto.
13133         * changer-src/chg-scsi.c: ditto.
13134         * changer-src/chg-zd-mtx.sh.in: ditto.
13135         * client-src/amandad.c: ditto.
13136         * client-src/calcsize.c: ditto.
13137         * client-src/killpgrp.c: ditto.
13138         * client-src/rundump.c: ditto.
13139         * client-src/runtar.c: ditto.
13140         * client-src/selfcheck.c: ditto.
13141         * client-src/sendbackup-gnutar.c: ditto.
13142         * client-src/sendbackup.c: ditto.
13143         * client-src/sendsize.c: ditto.
13144         * common-src/alloc.c: ditto.
13145         * common-src/amanda.h: ditto.
13146         * common-src/amflock.c: ditto.
13147         * common-src/bsd-security.c: ditto.
13148         * common-src/debug.c: ditto.
13149         * common-src/file.c: ditto.
13150         * common-src/genversion.c: ditto.
13151         * restore-src/amidxtaped.c: ditto.
13152         * server-src/Makefile.am: ditto.
13153         * server-src/amadmin.c: ditto.
13154         * server-src/amcheck.c: ditto.
13155         * server-src/amcheckdb.sh.in: ditto.
13156         * server-src/amcleanup.sh.in: ditto.
13157         * server-src/amcleanupdisk.c: ditto.
13158         * server-src/amdump.sh.in: ditto.
13159         * server-src/amflush.c: ditto.
13160         * server-src/amfreetapes.sh.in: ditto.
13161         * server-src/amindex.c: ditto.
13162         * server-src/amindex.h: ditto.
13163         * server-src/amindexd.c: ditto.
13164         * server-src/amlabel.c: ditto.
13165         * server-src/amrmtape.sh.in: ditto.
13166         * server-src/amstatus.pl.in: ditto.
13167         * server-src/amtape.c: ditto.
13168         * server-src/amtrmidx.c: ditto.
13169         * server-src/amtrmlog.c: ditto.
13170         * server-src/amverify.sh.in: ditto.
13171         * server-src/changer.c: ditto.
13172         * server-src/changer.h: ditto.
13173         * server-src/conffile.c: ditto.
13174         * server-src/conffile.h: ditto.
13175         * server-src/diskfile.c: ditto.
13176         * server-src/driver.c: ditto.
13177         * server-src/driverio.c: ditto.
13178         * server-src/dumper.c: ditto.
13179         * server-src/find.c: ditto.
13180         * server-src/getconf.c: ditto.
13181         * server-src/holding.c: ditto.
13182         * server-src/infofile.c: ditto.
13183         * server-src/logfile.c: ditto.
13184         * server-src/planner.c: ditto.
13185         * server-src/reporter.c: ditto.
13186         * server-src/tapefile.c: ditto.
13187         * server-src/taper.c: ditto.
13188
13189 1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13190
13191         * common-src/bsd-security.c (bsd_stream): fn should take an ssize_t.
13192         (bsd_stream_read): Likewise, declaration.
13193         * common-src/rsh-security.c (rsh_stream): Likewise.
13194         (rsh_stream_read): Likewise, declaration and definition.
13195         * common-src/krb4-security.c (dummy): Compile when disabled.
13196         * common-src/krb5-security.c (dummy): Likewise.
13197
13198         * server-src/reporter.c (sDivZero): Change from float to double, to
13199         build with DEC cc.
13200
13201         * configure.in: Get snapshot date from SNAPSHOT file, if it exists.
13202         (VERSION): Add the date to it.
13203         (SNAPSHOT_STAMP): AC_SUBST to the SNAPSHOT file, if it exists.
13204         * Makefile.am (EXTRA_DIST): Added $(SNAPSHOT_STAMP).
13205         (config.status): Depend on $(SNAPSHOT_STAMP).
13206         (SNAPSHOT): Dummy rule to allow reconfigure if it's removed.
13207
13208         * config/Makefile.am: Remove all traces of acconfig.h.
13209
13210         * server-src/changer.c (changer_command): Fix for amwait_t != int.
13211
13212 1999-09-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13213
13214         * config/acinclude.m4i: Added comments for config/config.h.in to all
13215         AC_DEFINEs.
13216         * configure.in: Likewise.
13217         * config/acconfig.h: Deleted.
13218         * autogen: Updated.
13219
13220 1999-09-05 John R. Jackson  <jrj@purdue.edu>
13221
13222         * changer-src/chg-chio.pl.in: add -w to #! line to catch more errors.
13223         * recover-src/display_commands.c: fix some compiler warnings.
13224         * recover-src/extract_list.c: fix some compiler warnings.
13225         * restore-src/amrestore.c: fix some compiler warnings.
13226         * server-src/planner.c: fix some compiler warnings.
13227
13228 1999-09-05 John R. Jackson  <jrj@purdue.edu>
13229
13230         * recover-src/extract_list.c: add VRESTORE and VXRESTORE support.
13231
13232 1999-09-05 John R. Jackson  <jrj@purdue.edu>
13233
13234         * common-src/stream.c: make sure errno is returned properly from
13235           stream_client() and stream_server().
13236         * server-src/taper.c: report errors from stream_server() and
13237           abort.
13238         * recover-src/extract_list.c: make sure errno is preserved.
13239
13240 1999-09-05 John R. Jackson  <jrj@purdue.edu>
13241
13242         * configure.in: make sure the dump and restore programs are defined
13243           in pairs, do not allow just the dump program without restore.
13244         * client-src/sendbackup-dump.c: assume restore program is present
13245           if dump program is.
13246         * common-src/genversion.c: assume restore program is present if
13247           dump program is.
13248
13249 1999-09-05 John R. Jackson  <jrj@purdue.edu>
13250
13251         * common-src/genversion.c: CLIENT_LOGIN has to be defined so there
13252           is no point testing for it.
13253         * server-src/conffile.c: ditto.
13254
13255 1999-09-05 John R. Jackson  <jrj@purdue.edu>
13256
13257         * server-src/amverify.sh.in: add SMBCLIENT, VRESTORE, VXRESTORE
13258           and XFSRESTORE support.
13259
13260 1999-09-05 John R. Jackson  <jrj@purdue.edu>
13261
13262         * server-src/conffile.c: add several common abbreviations to config
13263           file processing.
13264
13265 1999-09-01 John R. Jackson  <jrj@purdue.edu>
13266
13267         * server-src/amtoc.pl.in: allow multiple -s entries.
13268
13269 1999-09-01 John R. Jackson  <jrj@purdue.edu>
13270
13271         * server-src/reporter.c: handle/report a common columnspec syntax
13272           error instead of dumping core.
13273
13274 1999-09-01 John R. Jackson  <jrj@purdue.edu>
13275
13276         * man/amanda.8.in: typo in columnspec description.
13277
13278 1999-09-01 John R. Jackson  <jrj@purdue.edu>
13279
13280         * common-src/dgram.h: expressions in #define should be protected by
13281           parenthesis.
13282
13283 1999-08-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
13284
13285         * changer-src/chg-chs.sh.in (changerdev): Pass it as -f flag to CHS.
13286         * docs/TAPE.CHANGERS: Document it.
13287         Reported by Mike Horansky <moho@stanford.EDU>
13288
13289         * server-src/conffile.c (read_dumptype): Renamed from get_dumptype.
13290         Extended to support reading a named dumptype from a specified FILE.
13291         (get_dumptype): Use read_dumptype.
13292         (main): Read disklist, so that custom dumptypes are shown.
13293         * server-src/conffile.h (read_dumptype): Declare.
13294         * server-src/diskfile.c (parse_diskline): Get line_num and line by
13295         reference.  New argument diskf.  Use read_dumptype if dumptype
13296         starts with `{'.
13297         (main): Update.
13298         * man/amanda.8.in (disklist): Document it.
13299         * NEWS: Likewise.
13300         * example/disklist: Exemplify it.
13301
13302 1999-08-23 John R. Jackson  <jrj@purdue.edu>
13303
13304         * recover-src/amrecover.c (main): fix test for IPPORT_RESERVED.
13305         * recover-src/extract_list.c (extract_files_setup): ditto.
13306
13307 1999-08-23 John R. Jackson  <jrj@purdue.edu>
13308
13309         * server-src/reporter.c (copy_template_file): make sure all data is
13310           written to label template pipeline.
13311
13312 1999-08-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
13313
13314         * common-src/Makefile.am: Replace .o with OBJEXT.  List sources
13315         explicitly, instead of LDADDing the corresponding objects.
13316         (OBJ_EXTENSION): Wipe out, use OBJEXT.
13317
13318         * configure.in: Call AC_OBJEXT.
13319         (LTLIBOBJS, LTALLOCA): Define, according to ac_objext.
13320         * common-src/Makefile.am (libamanda_la_LIBADD): Use them.
13321         (libamanda_a_LIBADD): Use LIBOBJS and ALLOCA.
13322
13323         * common-src/Makefile.am (genversion.o): Revert last change, it was
13324         just a bug in automake's --disable-dependency-tracking.
13325
13326 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
13327
13328         * README (platforms): Added OpenBSD.
13329         Reported by Ian Darwin <ian@sq.com>
13330         (platforms): Added SunOS 5.7.
13331
13332 1999-08-15  Derek Ney <derek@hipgraphics.com>, Alexandre Oliva  <oliva@dcc.unicamp.br>
13333
13334         * client-src/sendsize.c (SAMBA_DEBUG_LEVEL): New macro, "0" for
13335         Samba >= 2, "3" for older ones.
13336         (getsize_smbtar): Use `du' if SAMBA_VERSION >= 2, and the
13337         appropriate SAMBA_DEBUG_LEVEL.
13338
13339 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
13340
13341         * common-src/Makefile.am (genversion.o): Depend on genversion.c
13342         too.  It seems that IRIX's make doesn't work without it.
13343         Reported by Brian Cuttler <brian@wadsworth.org>
13344
13345 1999-08-15  Jon LaBadie  <jon@jgcomp.com>
13346         
13347         * tape-src/tapetype.c: Speed it up by using larger sections in the
13348         second pass.
13349
13350 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
13351
13352         * man/amanda.8.in (skip-full, incronly): Document existing bugs.
13353
13354         * server-src/conffile.c (init_defaults): Default disksize to 0.
13355         * man/amanda.8.in (holdingdisk use): Document it.
13356         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
13357
13358         * server-src/planner.c (setup_estimate): Typo.
13359         (next_level0): Typo.
13360
13361         * config/ltconfig, config/ltmain.sh: Update from libtool 1.3.3.
13362
13363         * example/amanda.conf.in: Clarify holdingdisk::use 0.
13364
13365         * config/missing: Update from automake 1.4a.
13366
13367 1999-07-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13368
13369         * man/amanda.8.in: typo.
13370
13371 1999-06-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
13372
13373         * man/amrestore.8: Document holding-file usage.
13374
13375 1999-06-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
13376
13377         * Makefile.am (pkgdata_DATA): Install COPYRIGHTs.
13378         (EXTRA_DIST): Remove docs/*.
13379         * docs/Makefile.am: New file.
13380         (pkgdata_DATA): Install all docs.
13381         * configure.in: Output docs/Makefile.
13382         Suggested by Paul L. Lussier <plussier@baynetworks.com>
13383
13384         * docs/FAQ (selfcheck time-out): NIS services, inetd rebooting,
13385         keyboard time-out, lsof.
13386
13387         * server-src/amverify.sh.in (HEADER): Use `sed 1q'  instead of the
13388         not-that-portable `head -1'.
13389         Reported by Andrew Lare <lare@eos913c.gsfc.nasa.gov>
13390
13391 1999-06-19  Alexander Zangerl  <az@Austria.EU.net>
13392
13393         * client-src/sendbackup-dump.c (re_table): Match Solaris vxdump
13394         output.
13395
13396 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13397
13398         * server-src/dumper.c (read_indexfd): typo
13399
13400 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13401
13402         * server-src/dumper.c (do_dump): Close the indexout fh and wait
13403         for the completion of the index compress process.
13404         * server-src/dumper.c (read_mesgfd,read_datafd): Call stop_dump only
13405         if the index fd is already shut down.
13406         * server-src/dumper.c (read_indexfd): On EOF, call stop_dump() if both
13407         the mesg and data fd are shut down.
13408
13409 1999-06-15  Adam Hammer  <hammer@math.purdue.edu>
13410
13411         * server-src/amverify.sh.in: Wait until device becomes ready after
13412         rewinding.
13413
13414 1999-06-15  Björn Brezger <Bjoern.Brezger@uni-konstanz.de>, Alexandre Oliva  <oliva@dcc.unicamp.br>
13415
13416         * client-src/calcsize.c (ROUND): Rewrite, it was broken.
13417         Reported by Erik Lindahl <erik@theophys.kth.se>
13418
13419 1999-06-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
13420
13421         * server-src/conffile.h: Changed all `long's to `int's, as they
13422         broke get_number et al on 64bit platforms.
13423         Reported by Erik Lindahl <erik@theophys.kth.se>
13424
13425         * configure.in (bcopy, bzero): Oops, ICE_CHECK_DECL already checks
13426         for availability.
13427
13428         * configure.in (bcopy, bzero): Check whether they're available.
13429         * common-src/amanda.h (bcopy, bzero): If not, use memmove and
13430         memset.
13431         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
13432
13433         * server-src/amcheck.c (start_server_check): If info file does not
13434         exist, explain that it is supposed to be created on the next run.
13435
13436 1999-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
13437
13438         * server-src/tapefile.c (lookup_last_reusable_tape): Fix order of
13439         arguments in match() invocation.
13440         From Anthony Worrall <Anthony.Worrall@reading.ac.uk>
13441
13442 1999-06-08  Mike Grupenhoff <kashmir@munge.com>
13443
13444         * restore-src/amrestore.c: second arg to restore() is a char *, not
13445         a string_t.  Adjust prototype accordingly.
13446
13447 1999-06-07  Mike Grupenhoff <kashmir@munge.com>
13448
13449         * common-src/util.c (bind_portrange): function that attempts
13450         to bind a network connection to a port in a given range.
13451         * common-src/util.h: prototype bind_portrange().
13452         * common-src/dgram.c (bind_reserved): remove, superceeded by
13453         bind_portrange().
13454         (dgram_bind): use bind_portrange() instead of bind_reserved(), and
13455         try user specified ports first, then reserved ports, then regular
13456         ports.
13457         * common-src/dgram.h: remove prototype for bind_reserved().
13458         * common-src/stream.c (stream_server, stream_client): use
13459         bind_portrange() instead of bind_reserved(), and try user
13460         specified ports first, then reserved ports, then regular
13461         ports.
13462         * recover-src/amrecover.c (main): use bind_portrange() instead
13463         of bind_reserved(), and verify that the port it gives us is
13464         a reserved one.
13465         * recover-src/extract_list.c (extract_files_setup): use
13466         bind_portrange() instead of bind_reserved(), and verify that
13467         the port it gives us is a reserved one.
13468
13469 1999-06-07  Mark F. Vlems  <mvlems@vbox.xs4all.nl>
13470
13471         * server-src/amindexd.c (reply, lreply, fast_lreply): Return code 0
13472         of printf does not imply an error on some systems (Openstep) even if
13473         the number of written characters is more than 0.  The weakened error 
13474         check has no implication for the correct implementations of printf.
13475
13476 1999-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
13477
13478         * server-src/driver.c (dump_to_tape): Tell hard from soft
13479         (retryable) failures in both dumper and taper results, and behave
13480         accordingly.
13481
13482         * docs/SYSTEM.NOTES: On Trusted Solaris, the format of inetd.conf is 
13483         slightly different.
13484         Reported by Julian Stevens <julian.stevens@baedsl.co.uk>
13485
13486 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
13487
13488         * common-src/util.c (fullread, fullwrite): versions of
13489         read()/write() that keep looping until the buffer is
13490         completely read/written, or an error occurs.
13491         * common-src/Makefile.am: build util.c/util.h
13492         * common-src/fileheader.c, common-src/fileheader.h
13493         (fill_buffer): remove, replaced with fullread()
13494         * server-src/holding.c: use fullread() instead of fill_buffer().
13495         * common-src/bsd-security.c, restore-src/amrestore.c,
13496         server-src/amcheck.c, server-src/driverio.c, server-src/dumper.c,
13497         server-src/logfile.c, server-src/taper.c: use fullread/fullwrite
13498         instead of doing the retry loops manually.
13499
13500 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
13501
13502         * server-src/dumper.c (read_mesgfd, read_datafd): upon EOF,
13503         close the stream.  If the other stream is also closed, shut
13504         down.
13505
13506 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
13507
13508         * client-src/amandad.c (REP_TIMEOUT): bump up to six hours, for slow
13509         machines.
13510         (exit_check): remove waitpid(), let the service reap its own
13511         children.
13512         (s_repwait): rename 'err' to 'errstr' to avoid conflict with
13513         function in some libcs.
13514         (s_ackwait): if no pipes were opened by this service, then shut
13515         it down here.
13516         (process_netfd): on EOF, be sure to also close the network
13517         stream.  Also, if this is the last stream to be closed, shut
13518         down the service.
13519         (allocstream): correct a comment
13520         (service_delete): only close the security handle if it is still
13521         open.  Reap our children here instead of in exit_check().
13522
13523 1999-06-01  Mike Grupenhoff <kashmir@munge.com>
13524
13525         * server-src/taper.c (write_buffer): assert properly
13526
13527 1999-06-01  John Williams  <williams@morinda.com>
13528
13529         * changer-src/scsi-hpux.c (eject_tape): Enable it, it works.
13530
13531 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
13532
13533         * docs/INSTALL: Point to the patches page.  Update version numbers.
13534
13535         * example/config.site: Document UDPPORTRANGE.
13536
13537 1999-06-01  Jens Persson  <jens.persson@btj.se>
13538
13539         * configure.in (UDPPORTRANGE): Set from --with-udpportrange.
13540         * config/acconfig.h: Add UDPPORTRANGE.
13541         * common-src/dgram.c: Implement it.
13542
13543 1999-05-27  Mike Grupenhoff <kashmir@munge.com>
13544
13545         * common-src/alloc.c (alloc, debug_alloc, newalloc, debug_newalloc):
13546         make the size argument a size_t.
13547         (alloc): if an allocation fails, in the error message print how
13548         many bytes we tried to alloc.  This helps us determine if the
13549         alloc call was errant, or we really were out of memory.
13550         * common-src/amanda.h: update alloc/newalloc prototypes for
13551         size_t changes.
13552
13553 1999-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
13554
13555         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
13556         to libtool 1.3.2 plus a few patches.
13557         * config/config.guess, config/config.sub: Ditto.
13558
13559 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
13560
13561         * common-src/protocol.c: retry connection failures three times,
13562         waiting five seconds between each attempt.  Also, fix a lot
13563         of untrue comments.
13564
13565 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
13566
13567         * client-src/amandad.c: add a lot more dbprintfs so we know what's
13568         going on.
13569         (service_new): use error() instead of dbprintf(); exit()
13570
13571
13572 1999-05-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
13573
13574         * docs/FAQ (tar-patch): Mention sparse file problem.
13575
13576         * recover-src/uscan.l: #undef `ECHO' after #include amanda.h; some
13577         system header files may define it.
13578         Reported by Dan Lipofsky <danlip@cyc.com>
13579
13580         * */Makefile.am: Do not define ACLOCAL_M4, COMPILE or
13581         AMANDA_CFLAGS.
13582         * Makefile.am: Create acinclude.m4 in the top-level directory.
13583         * config/Makefile.am: Create link to acconfig.h in the top-level
13584         directory.
13585         * configure.in: Add AMANDA_CFLAGS to CFLAGS.  Set DUMPER_DIR without 
13586         trying to run it.
13587         * common-src/Makefile.am: Create genversion.h with #defines, to
13588         avoid genversion-specific CPPFLAGS.
13589         * common-src/genversion.c: #include genversion.h
13590
13591 1999-05-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13592
13593         * server-src/amandad.c (state2str): string "s_processrep" is 13
13594         caracters.
13595
13596 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
13597
13598         * server-src/amcheck.c (main): if we reap a bogus pid, print
13599         out the error message we generate, instead of whatever junk
13600         happens to be in the buffer.
13601
13602 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
13603
13604         * common-src/bsd-security.c (bsd_stream_read): remove old
13605         code that was part of something that ended up not happening.
13606         (stream_read_callback): use ssize_t.
13607
13608 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
13609
13610         * common-src/event.c (event_register): restructure asserts, and
13611         for EV_READFD/EV_WRITEFD, assert that the fd is < FD_SETSIZE.
13612
13613 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
13614
13615         * common-src/queue.h: move the multiple-inclusion #defines
13616         into application namespace.  #undef each macro before defining
13617         it, in case the OS has an identical macro.
13618
13619 1999-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
13620
13621         * server-src/amindex.h: Keep P macro expression in a single line.
13622         Reported by Patrick Harrold <patrickh@nasco-inc.com>
13623
13624         * common-src/Makefile.am (statfs_LDADD): Added alloc.obj.
13625
13626         * common-src/statfs.c (STATFS_SCALE, sys/statvfs.h): If f_frsize is
13627         zero, use f_bsize.  It now works with GNU libc 2.1.
13628         Reported by Heikki Vatiainen <hessu@cs.tut.fi>
13629
13630 1999-05-22 Alex Pilosov <alex@pilosoft.com>
13631
13632         * server-src/amindexd.c (is_dump_host_valid): sanitize_name(host)
13633         before doing a stat.
13634         * server-src/tapefile.c (lookup_nb_tape): init pos to 0.
13635
13636 1999-05-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13637
13638         * server-src/reporter.c: take the orig size from the SUCCESS line.
13639         use value from the infofile only the datestamp are equal.
13640         Write all available value.
13641
13642 1999-05-18  Mike Grupenhoff <kashmir@munge.com>
13643
13644         * common-src/strerror.c (strerror): restructure so that it doesn't
13645         need to malloc.
13646
13647 1999-05-17  Mike Grupenhoff <kashmir@munge.com>
13648
13649         * common-src/genversion.c (prvar): prototype declared it static,
13650         but actual function was still extern.
13651
13652 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13653
13654         * server-src/planner.c (pick_inclevel): check for base_level+1 if
13655         we don't have estimate for base_level. Needed for FORCE_BUMP.
13656         * server-src/planner.c (promote_highest_priority_incremental):
13657         Don't promote if we don't have level 0 estimate. No more need
13658         to check for skip_full, DS_NOFULL, DS_INCRONLY or FORCE_BUMP.
13659
13660 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13661
13662         * server-src/amflush.c: ignore SIGPIPE
13663         * server-src/driver.c: ignore SIGPIPE
13664         * server-src/driverio.c (taper_cmd, dumper_cmd): return 0 on error, 
13665         1 on success.
13666         * server-src/driverio.h (taper_cmd, dumper_cmd): prototype.
13667
13668 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
13669
13670         * server-src/dumper.c: make prototypes consistent, (putresult):
13671         make first arg const.
13672
13673 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
13674
13675         * server-src/conffile.c (getconf_byname): islower takes an int
13676         for an arg.
13677         * server-src/diskfile.c (upcase): islower takes an int for an
13678         arg.
13679         * server-src/driver.c (update_failed_dump_to_tape): prototype.
13680         * server-src/holding.c (insert_dirname, scan_holdingdisk):
13681         prototype and make static, (is_datestr): isdigit takes an int
13682         for an arg.
13683
13684 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
13685
13686         * client-src/calcsize.c (basename): make static, prototype, and
13687         only include if BUILTIN_EXCLUDE_SUPPORT is defined and
13688         HAVE_BASENAME is not defined.
13689         * client-src/getfsent.c (dev2rde, samefile): prototype and
13690         make static.
13691         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c
13692         (start_backup, end_backup): prototype.
13693         * client-src/sendbackup.c (index_closed, save_fd): prototype
13694         and make static.
13695         * client-src/versionsuffix.c (main): prototype.
13696         * common-src/alloc.c (internal_vstralloc): prototype.
13697         * common-src/file.c (mk1dir): prototype, make static, and make
13698         first arg const.
13699         * server-src/amadmin.c (check_dumpuser): prototype.
13700         * server-src/amflush.c (get_letter_from_user): prototype and make
13701         static.
13702         * server-src/amindexd.c: prototype and make static numerous local
13703         functions.
13704         * server-src/amlabel.c (main): prototype.
13705         * server-src/amtrmidx.c (main): prototype.
13706         * server-src/changer.c (report_bad_resultstr, run_changer_command):
13707         prototype.
13708         * server-src/conffile.h: properly prototype getconf_holdingdisks()
13709         * server-src/driverio.h: properly prototype init_driverio().
13710         * server-src/find.c (find_compare, parse_taper_datestamp_log):
13711         prototype.
13712         * server-src/infofile.c (zero_info, open_txinfofile,
13713         close_txinfofile, read_txinfofile, write_txinfofile,
13714         delete_txinfofile): prototype and make static.
13715         * server-src/planner.c (main, askfor): prototype.
13716
13717 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
13718
13719         * server-src/server_util.c: include server_util.h for prototypes
13720         * server-src/tapefile.h: properly prototype lookup_nb_tape()
13721         * server-src/driverio.c (childstr): make static, make return
13722         val const.
13723
13724 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
13725
13726         * server-src/find.h: properly prototype find_log()
13727         * server-src/amtrmlog.c (main): prototype.  find_log() takes
13728         no arguments.
13729
13730 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
13731
13732         * server-src/reporter.c: make all functions and globals
13733         static.  Prototype all functions, and make them consistent wrt
13734         K&R.  Place all prototypes together.  Place data type
13735         declarations before the prototypes that use them.  Remove
13736         unused sort_by_time().
13737
13738 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
13739
13740         * server-src/dumper.c (process_dumpline): clean up the error
13741         return code
13742         * server-src/dumper.c (log_msgout): no need to reuse errf global,
13743         it makes me nervous.  Also, use amfree instead of free.
13744
13745 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
13746
13747         * common-src/packet.c (pkt_cat): remove a bogus assert - len is
13748         a size_t, which is unsigned, so it will always be >= 0.
13749
13750 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
13751
13752         * client-src/amandad.c (action_t): consolidate A_PKTTIMEOUT and
13753         A_REPTIMEOUT into just A_TIMEOUT.
13754
13755 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
13756
13757         * common-src/amanda.h, common-src/alloc.c, common-src/event.c,
13758         common-src/rsh-security.c, server-src/driver.c,
13759         server-src/dumper.c: (min, max): consolidate all min/max
13760         definitions into amanda.h
13761
13762 1999-05-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
13763
13764         * docs/TAPE.CHANGERS (chg-rth): URL for chs is no longer valid.
13765
13766 1999-05-12  Mike Grupenhoff <kashmir@munge.com>
13767
13768         * common-src/amanda.h, common-src/alloc.c, common-src/file.c:
13769         const the filename arg to all of the dbmalloc versions of
13770         alloc and io functions
13771
13772 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
13773
13774         * common-src/protocol.c (proto_t): don't need prev and next ptrs
13775         anymore
13776
13777 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
13778
13779         * common-src/amanda.h, common-src/alloc.c: remove the static
13780         buffer manager - nothing uses it.  It can be resurrected in
13781         the future if needed.
13782
13783 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
13784
13785         * common-src/amanda.h: define stringconcat() macros that
13786         concatenate two const strings together
13787         * common-src/versuff.c.in (versionsuffix, version): generate
13788         data at compile time using stringconcat().
13789         * common-src/genversion.c: simplify, don't need to alloc anything
13790         * common-src/Makefile.am (genversion_LDADD): this doesn't need
13791         alloc.o or error.o anymore
13792
13793 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
13794
13795         * common-src/security.c (security_handleinit, security_streaminit):
13796         change default error message "unknown error" to "unknown protocol
13797         error" or "unknown stream error" to help identify where an
13798         messageless error was triggered.
13799
13800 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
13801
13802         * client-src/amandad.c (main): call initgroups(), and also set
13803         the real gid.
13804
13805 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
13806
13807         * server-src/driver.c (start_some_dumps): if a dumper is
13808         constrained, and some dumpers or the taper are active, register
13809         a EV_WAIT event.
13810         * server-src/driver.c (handle_taper_result,
13811         handle_dumper_result):  wakeup constrained dumpers after we
13812         have freed some resources.
13813
13814 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
13815
13816         * common-src/fileheader.c, common-src/fileheader.h: rework the
13817         fileheader parse and format code to remove a lot of duplicated
13818         code (in the F_DUMPFILE and F_CONT_DUMPFILE cases), consting
13819         arguments, and simplifying parse code.
13820
13821 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
13822
13823         * client-src/sendsize.c (getsize_dump): print out the strerror
13824         if we can't exec killpgrp.
13825
13826 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
13827
13828         * server-src/dumper.c (add_msg_data): first two arguments
13829         to memmove() were backwards.
13830
13831 1999-05-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13832
13833         * example/amanda.conf.in: typo
13834
13835 1999-05-07  Mike Grupenhoff <kashmir@munge.com>
13836
13837         * common-src/alloc.c (safe_env): allow DISPLAY into the
13838         environment for purify.
13839         * server-src/holding.c (rename_tmp_holding): if fill_buffer
13840         returns 0, don't try to parse a nonexistant header.
13841         * server-src/taper.c (file_reader_side): init datestamp to
13842         NULL, and don't try to free it if it's still NULL on exit.
13843
13844 1999-05-06  Mike Grupenhoff <kashmir@munge.com>
13845
13846         * server-src/driver.c (start_some_dumps): sleep_time is an
13847         offset, not an absolute.  Leave it that way when we return from
13848         this function.
13849
13850 1999-05-05  Mike Grupenhoff <kashmir@munge.com>
13851
13852         * server-src/amverify.sh.in (pecho): new function.  Like echo
13853         but doesn't append newline, and supports \r, etc.  Implemented
13854         using perl.
13855         * server-src/amverify.sh.in: use pecho where we used to use echo -n,
13856         etc.  It's nearly impossible to figure out which echo needs what
13857         flags and also know if it supports \r.  So we just punt and use
13858         perl.
13859
13860 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
13861
13862         * server-src/driver.c: convert to use event handler.
13863         (some_dumps_in_progress, lookup_dumper): nuke.
13864         (sleep_time): make a time_t and static.
13865         (IDLE_NO_DUMPERS): give a lower precedence than IDLE_START_WAIT.
13866         (start_some_dumps): make this work on one dumper instead of all.
13867         Call when a dumper is finished and needs more work.
13868         (handle_idle_wait): callback for dumpers waiting for delayed
13869         disks to start up.
13870         * server-src/driverio.c: initialize event handles for dumpers
13871         and the taper.  Nuke addfd().
13872         * server-src/driverio.h: add event handles for each dumper, and
13873         one global one for the taper.  Nuke maxfd and readset globals.
13874
13875 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
13876
13877         * server-src/driver.c (taper_queuedisk): new function that takes
13878         a disk_t, and, if the taper is not busy, tells it to write it out,
13879         or else adds it to the tapeq.  Make use_lffo global static.
13880         * server-src/driver.c (handle_taper_result, handle_dumper_result):
13881         call taper_queuedisk() instead of queueing ourself.
13882
13883 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
13884
13885         * server-src/driver.c: make all local functions static.
13886         Exposed two prototypes for nonexistant functions
13887         (diskname2filename, driver_main), and one function (dump_state)
13888         that was never called.  #if 0 out dump_state.
13889         Nuke inside_dump_to_tape global - it's value was never used.
13890         Make pending_aborts global a static local in handle_dumper_result.
13891
13892 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
13893
13894         * server-src/driverio.h (dumper_t): merge infd and outfd into
13895         just 'fd'.  Comment the other members of the struct.
13896         * server-src/driverio.c: infd/outfd -> fd
13897         * server-src/driver.c (handle_dumper_result): merge some common
13898         code between the FAILED and TRYAGAIN cases.  Comment the
13899         ABORT_FINISHED case.  Also infd/outfd -> fd.
13900
13901 1999-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13902
13903         * server-src/planner.c (when_overwrite): return a big number (1024)
13904         if the tape is not reusable.
13905
13906 1999-04-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
13907
13908         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
13909         from libtool 1.3.
13910
13911 1999-04-29  Mike Grupenhoff <kashmir@munge.com>
13912
13913         * server-src/driver.c (handle_dumper_result): remove FATAL_TRYAGAIN
13914         case, nothing uses it.
13915         * server-src/driverio.c, server-src/driverio.h: garbage collect
13916         FATAL_TRYAGAIN.  static & const cmdstr.
13917
13918 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
13919
13920         * server-src/diskfile.c (read_diskfile): rework to take a
13921         disklist_t * as an argument, and return -1 on error, or 0 on
13922         success.  const the filename argument.  Kill a few globals.
13923         * server-src/diskfile.c (lookup_host, lookup_disk): const
13924         arguments
13925         * server-src/diskfile.h: adjust prototypes for above changes
13926         * server-src/amadmin.c, server-src/amcheck.c,
13927         server-src/amcleanupdisk.c, server-src/amflush.c,
13928         server-src/amindexd.c, server-src/amtrmidx.c,
13929         server-src/amtrmlog.c, server-src/driver.c,
13930         server-src/planner.c, server-src/reporter.c: adjust calls to
13931         read_diskfile() to deal with convention
13932
13933 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
13934
13935         * server-src/dumper.c (read_mesgfd, read_indexfd): on EOF, just
13936         stop reading these streams.  We let EOF on the data stream cause
13937         the entire dump to be stopped.
13938
13939 1999-04-27  Mike Grupenhoff <kashmir@munge.com>
13940
13941         * common-src/rsh-security.c (conn_read_callback): cast
13942         event_wakeup() arg to event_id_t.
13943
13944 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
13945
13946         * common-src/versuff.c.in: Adjust constness to match version.h.
13947
13948         * docs/SYSTEM.NOTES: Recommend GNU tar for Linux.
13949
13950 1999-04-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13951
13952         * server-src/amdump.sh.in: execute amtrmlog.
13953
13954 1999-04-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13955
13956         * client-src/sendbackup.c: rename write_tapeheader to info_taperheader
13957         we already have a write_tapeheader function in dumper.c
13958         * client-src/sendbackup.h: ditto
13959         * client-src/sendbackup-dump.c: ditto
13960         * client-src/sendbackup-gnutar.c: ditto
13961
13962 1999-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13963
13964         * dumper-src/gnutar.pl.in: add debuging code.
13965         * server-src/planner.c (getsize): send optionstr() for estimate 
13966         with a wrapper.
13967         * client-src/selfcheck.c: init program_is_wrapper to 0.
13968         * client-src/sendsize.c: implement DUMPER-API, support only
13969          estimate-direct.
13970
13971 1999-04-22 John R. Jackson  <jrj@purdue.edu>
13972
13973         * configure.in: add --with-broken-fsf to use a read() loop instead
13974         of the fsf ioctl on some broken systems.
13975         * config/acconfig.h: ditto
13976         * tape-src/tapeio.c (tapefd_fsf): ditto
13977
13978 1999-04-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
13979
13980         * docs/SYSTEM.NOTES: Typo
13981         * docs/SAMBA: Update on samba-largefs patch.
13982         * docs/FAQ: New FAQ about promotion of full dumps.
13983
13984 1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
13985
13986         * tape-src/tapeio.c (tape_open): Retry after EBUSY and EINTR too.
13987         Comment out test that would set filename to /dev/null.
13988
13989 1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
13990
13991         * docs/WISHLIST: Global reformat.  Removed fixed issues.  Added
13992         auto-flush mode.
13993
13994 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13995
13996         * server-src/server_util.c: use snprintf instead of ap_snprintf.
13997
13998 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13999
14000         * server-src/server_util.c: new file for utility function.
14001         New function construct_datestamp.
14002         * server-src/server_util.h: ditto
14003         * server-src/Makefile.am: link server_util.c with libamserver.
14004         * amcleanupdisk.c (construct_datestamp): remove function.
14005         * server-src/driver.c: ditto
14006         * server-src/dumper.c: ditto
14007         * server-src/amflush.c: ditto
14008         * server-src/planner.c: ditto
14009
14010 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
14011
14012         * common-src/bsd-security.c: this doesn't need queue.h
14013
14014 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
14015
14016         * common-src/event.c: Insert new events at the head of the eventq,
14017         not the tail, so we don't loop forever if a newly registered
14018         event has the same type as the one currently firing.  Noticed
14019         and diagnosed by Jean-Louis Martineau.
14020         Use a LIST for the eventq, instead of a TAILQ, since we don't need
14021         to do tail insertions anymore.
14022         Make the eventq_* functions take a queue name so we can also use
14023         them for the handle cache.  Rename eventq_append() to eventq_add().
14024
14025 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14026
14027         * dumper-src/gnutar.pl.in: add DUMPER_DIR to INC.
14028
14029 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14030
14031         * client-src/selfcheck.c: Implement DUMPER-API.
14032         * dumper-src/gnutar.pl.in (command_selfcheck): print OK, the function
14033         is not implemented.
14034         * dumper-src/generic-dumper.pl.in (parse_options): option are
14035         separated by ;
14036
14037 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
14038
14039         * server-src/dumper.c: make dumpsize and headersize static.  Rename
14040         nb_header_block to headersize and also make it static.  headersize
14041         now counts bytes instead of blocks, just like the other two.
14042         Use SEEK_SET in an lseek instead of hardcoding 0.
14043
14044 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
14045
14046         * configure.in: implement --with-cflags to allow turning on
14047         compiler warnings and optimizations
14048
14049 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
14050
14051         * common-src/event.c (gethandle, puthandle): new functions that
14052         keep a cache of handles to reduce calls to malloc/free.
14053
14054 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
14055
14056         * common-src/alloc.c (dbmalloc_caller_loc): const the file
14057         arg, use the queue macros to maintain the list.
14058
14059 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
14060
14061         * common-src/versuff.c.in: const the return str of version()
14062         and versionsuffix.  Bump copyright to 1999.
14063
14064 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
14065
14066         * client-src/amandad.c, client-src/amandad.h,
14067         client-src/sendbackup-dump,c, client-src/sendbackup-gnutar.c,
14068         client-src/sendbackup.c, common-src/bsd-security.c,
14069         common-src/dgram,c, common-src/dgram.h, common-src/event.c,
14070         common-src/event.h, common-src/krb4-security.c,
14071         common-src/krb5-security.c, common-src/packet.c,
14072         common-src/packet.h, common-src/protocol.c, common-src/security.c,
14073         common-src/security.h, server-src/amcheck.c, server-src/conffile.c,
14074         server-src/conffile.h, server-src/dumper.c:
14075         update copyright to 1999 on things I've touched this year.
14076
14077 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
14078
14079         * common-src/amanda.h: remove version_info extern.  Bump
14080         copyright to 1999
14081         * common-src/genversion.c: constify version_info.  Emit
14082         {KRB4,KRB5,RSH}_SECURITY.  Bump copyright.
14083         * common-src/version.h: const VERSION_COMMENT and version_info.
14084         const return str and fully prototype versionsuffix() and version()
14085         prototypes.  Bump copyright.
14086         * server-src/planner.c (main): iterate through version_info using
14087         an index instead of a pointer.
14088
14089 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
14090
14091         * server-src/conffile.c: explicitly give the seen_columnspec global
14092         an int type instead of letting the compiler default to it.
14093
14094 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
14095
14096         * common-src/event.h (event_id_t): a new typedef for the
14097         first arg to event_register.  Should be wide enough to
14098         reasonably hold an int or a pointer (but it is ok to trunc
14099         the pointer if necessary).  Update proto for event_register()
14100         and event_wakeup().
14101         * common-src/event.c: struct event_handle->data is now an
14102         event_id_t.
14103         (event_register, event_wakeup): adjust args for event_id_t)
14104         (event_register): event_id_t is unsigned, no need to assert
14105         positivity anymore.
14106         * common-src/rsh-security.c (rsh_stream_read): cast first arg to
14107         event_register() to event_id_t.
14108
14109
14110 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
14111
14112         * common-src/event.c (release): nuke, and inline into event_loop.
14113         * common-src/event.c (event_loop): flesh out the timeout comment.
14114         Combone the EV_WAIT and EV_DEAD empty cases in the post-select loop.
14115         * common-src/event.h: flesh out the event_type_t comment.
14116
14117 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
14118
14119         * common-src/event.c (fire): inline this with a macro.  Remove
14120         timestamp arg.  eh->lastfired is now only valid for EV_TIME
14121         events.  Removes several time() systems from the critical path.
14122         * common-src/event.c (event_wakeup): have this fire EV_WAIT events
14123         directly instead of deferring back to the event loop.  Removes the
14124         sequencing restriction for event_wakeup.
14125
14126 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
14127
14128         * server-src/planner.c (getsize): put the hosts disks on the waitq
14129         before sending the request, not after.
14130
14131 1999-04-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
14132
14133         * docs/UPGRADE: Update URL for archived message.
14134
14135 1999-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14136
14137         * server-src/amcheck.c (main): should not set real uid to 0.
14138
14139 1999-04-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14140
14141         * common-src/bsd-security.c (bsd_connect): dgram_bind return the port
14142         number, we don't need ntohs().
14143
14144 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
14145
14146         * common-src/dgram.c,common-src/dgram.h: nothing uses dgram_alloc()
14147         anymore, gc them.
14148
14149 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
14150
14151         * server-src/amindexd.c: dgram.h not needed
14152
14153 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
14154
14155         * common-src/event.c: fix a bunch of inaccurate comments.
14156         * common-src/event.c (event_loop): prune dead events in the
14157         pre-select pass instead of in the EV_WAIT pass.
14158         * common-src/event.c (fire): factor out all code that fires
14159         events into a 'fire' function.
14160         * common-src/event.c (signal_handler): bounds check the signal
14161         number against the size of sigtable instead of assuming sigtable
14162         is NSIG big.
14163
14164 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
14165
14166         * client-src/amandad.c (allocstream): if security_stream_server()
14167         fails, dbprintf the error.
14168
14169 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
14170
14171         * configure.in: implement --with-rsh-security
14172         * common-src/rsh-security.c: first attempt at using rsh or a rsh-like
14173         command for dump transport and authentication.  Still has lots
14174         of "issues"
14175         * common-src/Makefile.am: build rsh-security.c
14176         * common-src/security.c: add rsh_security_driver to the drivers array
14177         * config/acconfig.h: define RSH_SECURITY
14178
14179 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
14180
14181         * server-src/dumper.c (runcompress): use the proper end of the pipe
14182         for writing and reading.  Also, grab errno early on fork error
14183         before calling close.
14184         * server-src/dumper.c (sendbackup_response): make sure the client
14185         at least send us a mesgfd and datafd.
14186
14187 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
14188
14189         * client-src/amandad.c (main): don't dup stdout to db_fd - it might
14190         be needed by the security driver
14191         * client-src/amandad.c (s_ackwait, allocstream,): on error, don't
14192         attempt to event_release a handle we haven't attached yet.
14193
14194 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
14195
14196         * ap_snprintf -> snprintf, ap_vsnprintf -> vsnprintf
14197
14198 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14199
14200         * client-src/Makefile.am (noinst_HEADERS): add amandad.h
14201
14202 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14203
14204         * common-src/Makefile.am (libamanda_la_SOURCES): build
14205         krb4-security.c
14206
14207 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14208
14209         * configure.in: implement --with-dbmalloc=[dir], where dir is
14210         where the dist is unpacked and built.  This could be improved on,
14211         because it doesn't handle the case where it's installed.
14212
14213 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14214
14215         * client-src/sendbackup.c: security changes:
14216         remove krb4 code and NAUGHTY_BITS macros.
14217         (parse_options): don't look for krb4 options
14218         (main): don't close pipes that were handed to us from amandad.
14219         Don't open stream directly - just use the pipes given to us.
14220         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c:
14221         Remove krb4 code and NAUGHTY_BITS macros.
14222
14223 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14224
14225         * client-src/amandad.h: new file describing the pipes between
14226         amandad and children.
14227         * client-src/amandad.c: rewrite for security changes.  Can
14228         now handle multiple requests simultaneously, and has a state
14229         machine to deal with each active request.
14230         This handles all network transmissions and authentication.
14231         Each child process (sendbackup, selfcheck) gets three general
14232         purpose pipes to amandad which it may allocate for anything.
14233         amandad relays these pipes to equivalent security_streams.
14234         Lots of other stuff.
14235         Finally, NEED_KEYPIPE stuff removed.
14236
14237 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14238
14239         * server-src/dumper.c: security changes:
14240         Remove krb4 includes and NAUGHTY_BITS macros.
14241         Remove no-longer-true comment about DATABUF_SIZE ==
14242         TAPE_BLOCK_BYTES for krb4
14243         Remove file descriptor and event handle from streams array.  Add
14244         a security_stream_t.
14245         Remove global read buffer.
14246         (check_options): remove krb4 code.
14247         (service_ports_init): remove, now handled by individual security
14248         drivers.
14249         (main): remove dgram usage.
14250         (do_dump): remove DUMPER_SOCKET_BUFFERING - now handled in the
14251         bsd driver.  schedule reads on the streams using
14252         security_stream_read.
14253         (read_mesgfd,read_datafd,read_indexfd): adapt to
14254         security_stream_read callback interface.
14255         (stop_dump): just call security_stream_close on all non-null
14256         streams.
14257         (sendbackup_response): adapt to new protocol layer error return.
14258         Remove krb4 code.
14259         (startup_dump): stinky hack to parse the security driver string out of
14260         the options passed to us from driver.
14261         Lookup the security driver with said string.
14262         Remove krb4 code.
14263         Free request after calling protocol_sendreq().
14264
14265 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14266
14267         * server-src/planner.c: security changes:
14268         (main): Remove dgram usage.  Call protocol_init().  Remove
14269         krb4 code.
14270         (getsize): remove krb4 code.  Handle protocol layer api changes.
14271         Lookup security driver/complain if not found.  Free request
14272         after calling sendreq.  All hosts get put on the waitq since
14273         sendreq never returns an error.
14274         (handle_result): deal with new protocol layer error semantics.
14275         Remove krb4 code.
14276
14277 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14278
14279         * server-src/conffile.c: remove INTERFACE undef hack.  Our
14280         namespace isn't polluted by krb4 headers anymore, so it's
14281         unneeded.
14282
14283 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14284
14285         * server-src/amcheck.c: security changes:
14286         (main): ignore SIGPIPE - some security drivers might get it.
14287         Remove all usages of dgram.
14288         Make our real uid root and our effective uid amanda so we can
14289         get back to root later (on most os's :()
14290         (start_client_checks): remove krb4 bits.
14291         The dump user check should check the effective uid.
14292         Get the name of the security driver for this host out of
14293         host->diskp->security_driver.
14294         Free req after calling protocol_sendreq() because it will internalize
14295         it.
14296         protocol_sendreq doesn't return any errors - they're all returned
14297         via handle_response.
14298         (handle_result): renamed from handle_response for consistency.
14299         The protocol layer doesn't pass us a proto_t anymore, so detect
14300         errors based on pkt being NULL.
14301         Remove krb4 bits - security violations will be indicated by a 
14302         NULL pkt.
14303
14304 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14305
14306         * common-src/protocol.[ch]: rewrite for security api.  The entry
14307         points now have the 'protocol' prefix.  See protocol.h for more
14308         info.
14309         * common-src/security.c: rewrite for security api.  This now contains
14310         the functions for the 'base class' or some approximation of it.
14311         See security.h for the entry points, or docs/SECURITY-API.
14312
14313 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14314
14315         * common-src/amanda.h: rip out krb4 defines, headers, and
14316         prototypes.  Also, make assert() abort() after calling error().
14317         * common-src/krb4-security.c: stub file that pulls in the real
14318         krb4-security out of amanda-krb-2 if KRB4_SECURITY is defined.
14319
14320 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14321
14322         * server-src/conffile.h: aggregate all of the compress defines
14323         (COMP_{NONE,FAST,BEST,...}) into an enum and typedef it to comp_t.
14324         Make dumptype_t->compress a comp_t.
14325         * server-src/dumper.c: make srvcompress global a comp_t.
14326         * server-src/dumper.c (runcompress): add a comp_t third arg
14327         that specifies the level of compression for this fd.
14328         * server-src/dumper.c (do_dump): always compress index files
14329         with COMP_BEST compression, as pointed out by Jean-Louis Martineau.
14330         * server-src/dumper.c (read_indexfd): read the indexfd, not the
14331         datafd.  Also noted by Jean-Louis Martineau.
14332
14333 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
14334
14335         * server-src/planner.c (main): ignore SIGPIPE.  tcp based
14336         security drivers may get this while getting estimates.
14337         Set the real uid to root, and the effective uid to the amanda
14338         user, so we can get back to root later if needed.
14339         * server-src/planner.c (handle_result): rework error logic
14340         so we don't need to use p->state, which will eventually go
14341         away.
14342
14343 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
14344
14345         * server-src/dumper.c: rewrite to use the event handler instead
14346         of a select loop.  Also, compress the index output using
14347         runcompress() instead of forking a compress ourselves.
14348
14349 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
14350
14351         * server-src/dumper.c (sendbackup_response): don't krb4 authenticate
14352         streams if krb4_auth if false.
14353
14354 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
14355
14356         * server-src/dumper.c (do_dump): some formatting cleanups.  Nuke
14357         'killerr' - we can do without it.
14358
14359 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
14360
14361         * server-src/dumper.c (do_dump): store compresspid inside of
14362         the databuf
14363
14364 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
14365
14366         * server-src/dumper.c (parse_info_line): parse info lines
14367         from sendbackup directly into the 'file' global.  Eliminate
14368         the backup_name, recover_cmd, and compress_suffix globals.
14369         * server-src/dumper.c (finish_tapeheader): nuke usage
14370         of above globals.  Nuke unneeded explicit nul terminations (we
14371         memset the whole thing in fn_init).
14372
14373 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
14374
14375         * server-src/dumper.c (process_dumpline): rewrite to use strtok
14376         and const the argument.
14377         * server-src/dumper.c (make_tapeheader): rename to finish_tapeheader
14378         and prototype it.  Remove the 'type' arg, since it's always
14379         F_DUMPFILE.  Remove call to fn_init().
14380         * server-src/dumper.c (do_dump): call fh_init on 'file' while
14381         initializing globals.  Call finish_tapeheader after getting info
14382         endline.
14383
14384 1999-04-07 John R. Jackson  <jrj@purdue.edu>
14385
14386         * tape-src/tapeio.c: allow tapedev to be /dev/null.
14387         * server-src/taper.c: allow tapedev to be /dev/null.
14388         * man/amanda.8.in: allow tapedev to be /dev/null.
14389
14390 1999-04-07  Mike Grupenhoff <kashmir@munge.com>
14391
14392         * server-src/dumper.c: collect got_info_endline, got_sizeline,
14393         got_endline, and header_done into one bitmask global, and make it
14394         static.  Also, make 'file' static.
14395
14396 1999-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14397
14398         * server-src/reporter.c (TextRule): Fix to write the full string.
14399
14400 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
14401
14402         * configure.in: MIT krb5 has libk5crypto, Cygnus kerbnet 1.2
14403         calls it libcrypto.  Check for both.
14404
14405 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
14406
14407         * common-src/bsd-security.c (check_user): if an .amandahosts
14408         file is missing or unreadable, log this fact to the debug file
14409         instead of claiming that a user doesn't have permission.
14410         * common-src/bsd-security.c (bsd_stream_client): if
14411         DUMPER_SOCKET_BUFFERING is defined, set the socket read buffer to
14412         be twice the size of our read buffer.
14413
14414 1999-04-06  David Mankins <dm@k12-nis-2.bbn.com>
14415
14416         * common-src/security.c (bsd_security_ok): if an .amandahosts
14417         file is missing or unreadable, log this fact to the debug file
14418         instead of claiming that a user doesn't have permission.
14419
14420 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
14421
14422         * server-src/dumper.c: put all of the streams (data,mesg,index)
14423         into an array with a name tag.
14424         * server-src/dumper.c (stop_dump): new function that cleans up
14425         and shuts down all of the streams.
14426         * server-src/dumper.c (sendbackup_response): make static, pass
14427         response_error through p->datap instead of making it global.
14428         Rewrite the parsing to use strtok() and take advantage of the
14429         streams array instead of repeading code for all three streams.
14430
14431 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
14432
14433         * server-src/dumper.c (main): keep our real uid as 0, and make
14434         our effective uid nonprivlidged, so we can get back to root
14435         later.  Don't print what port we bound to.  This info won't
14436         always be available or even applicable.
14437         * server-src/dumper.c (do_dump): create the stats line with one
14438         snprintf instead of a huge amount of code.
14439
14440 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
14441
14442         * server-src/dumper.c (startup_dump): make static, and const all
14443         of the string args
14444         * server-src/dumper.c (do_dump): make static
14445
14446 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
14447
14448         * server-src/dumper.c (do_dump): no need to have a separate buffer
14449         to read the mesgfd - just reuse the one we used for data reads.
14450         Gets rid of one more global.  Also, we don't need to leave
14451         space for a NUL anymore.
14452         * server-src/dumper.c (main): wait for children after closing
14453         our fds.  Some children may be blocked waiting for EOF on outfd,
14454         effectively causing deadlock between dumper and child.
14455
14456 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
14457
14458         * server-src/dumper.c (add_msg_data): now takes a 'len' arg, and
14459         doesn't expect the data to be nul terminated.  Also, move
14460         the buffer from global scope into the function, and have a NULL
14461         arg flush it out if there is leftover data at the end.  Finally,
14462         resize the buffer in 256 byte chunks.
14463
14464 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
14465
14466         * common-src/stream.c, common-src/stream.h (stream_client): add
14467         yet another arg - if nonzero, do a nonblocking connect
14468         * server-src/dumper.c: catch up with extra arg to stream_client()
14469
14470 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
14471
14472         * common-src/bsd-security.c, common-src/security.h: attempt
14473         to decouple security streams from security handles.  Lots of
14474         other restructuring.
14475
14476 1999-04-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14477
14478         * server-src/amcheck.c: -t should read the tapelist to validate
14479         the label.
14480
14481 1999-03-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
14482
14483         * patches/samba-largefs.patch: updated to patch that ended up
14484         installed in the Samba CVS tree
14485
14486         * patches/tar-1.12.patch: patch the configure script so that it
14487         requires autoconf and autoheader to be run; improve the
14488         printf_long_long test so that it doesn't get false positives because 
14489         of endianness
14490
14491         * changer-src/scsi-chio.c: since we do not support FreeBSD 3's
14492         camlib.h interface, #ifdef out all the code
14493         Reported by Francis Lam <Francis.Lam@Leitch.com>
14494
14495         * configure.in (VXSYSLOCPATH): apparently a complex path expression
14496         gets AC_PATH_PROGS confused; set the path beforehand
14497         Reported by Francis Lam <Francis.Lam@Leitch.com>
14498
14499 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14500
14501         * server-src/reporter.c: compiler warning.
14502
14503 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14504
14505         * server-src/amtrmlog.c: new program to move unused log 
14506         to logdir/oldlog.
14507         * server-src/Makefile.am: install amtrmlog.
14508         * server-src/find.h: declare find_log().
14509         * server-src/find.c(find_log): new function to return an array of
14510         all the logfile name that are still needed.
14511         * server-src/find.c(search_logfile): special case if output_find==NULL,
14512         return 1 if it the logfile fir the label.
14513
14514 1999-03-25  Neil Crellin  <neil@wallaby.cc>
14515
14516         * docs/TAPE.CHANGERS (chg-chs): URL for chs
14517
14518 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>, Tom Schutter  <tom@platte.com>, Cloyce D. Spradling  <cloyce@headgear.org>
14519
14520         * patches/samba-largefs.patch: updated for Samba 2.0.*
14521
14522 1999-03-25  Charles Owens  <owensc@enc.edu>
14523
14524         * changer-src/chg-chio.pl.in (changeTape): do not print status to
14525         both stdout and stderr; this causes failures on FreeBSD
14526
14527 1999-03-23  Mike Grupenhoff <kashmir@munge.com>
14528
14529         * common-src/stream.c, common-src/stream.h (stream_client):
14530         const the hostname arg
14531
14532 1999-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14533
14534         * configure.in: AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
14535         * dumper-src/gnutar.pl.in: use @GNUTAR_LISTED_INCREMENTAL_DIR@
14536
14537 1999-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14538
14539         * configure.in: default for DUMPER_DIR is $exec_prefix/dumper.
14540         * Makefile.am: make dumper-src directory
14541         * dumper-src: directory for program that implement the DUMPER-API.
14542         * dumper-src/Makefile.am:
14543         * dumper-src/generic-dumper.pl.in: first draft of a generic wrapper.
14544         * dumper-src/gnutar.pl.in: first draft of a gnutar wrapper.
14545
14546 1999-03-21  Elmar Bartel  <bartel@Informatik.TU-Muenchen.DE>
14547
14548         * conffile.h, conffile.c: new columnspec option
14549         * reporter.c: use it
14550         * man/amanda.8.in: description and example
14551         * example/amanda.conf.in: ditto
14552
14553 1999-03-20  Dahn Nilsson <dahn.nilsson@maxlab.lu.se>
14554
14555         * configure.in: SAMBA_VERSION is not set correctly.
14556
14557 1999-03-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
14558
14559         * client-src/sendbackup-dump.c (re_table): generalize a bit some of
14560         the regular expressions, so as to make us more adaptable to future
14561         minor changes and bugfixes the the output format of some dumps
14562
14563 1999-03-16 Thomas Hepper <th@ant.han.de>
14564         * changer-src/chg-scsi.c: If the open of the TapeDevice fails
14565         the programm is not terminated.
14566         * changer-src/scsi-aix.c: The wrong ident string was checked
14567         for 0 termination.
14568         * changer-src/scsi-bsd.c: see scsi-aix.c
14569         * changer-src/scsi-linux.c: see scsi-aix.c
14570         * changer-src/scsi-solaris.c: see scsi-aix.c
14571         * changer-src/scsi-changer-driver.c: Added some more debug prints.
14572         Wrong fd passwd to LogSense.
14573         * docs/TAPE.CHANGERS: added note about linux and aha1542
14574
14575 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
14576
14577         * common-src/packet.h: explicitly list the numeric values for
14578         the pktype_t enum, so we can use them on the wire
14579
14580 1999-03-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
14581
14582         * config/ltconfig, config/ltmain.sh: updated from libtool 1.2f
14583         * config/libtool.m4i, config/config.guess, config/config.sub: ditto
14584         * configure.in: dropped AC_PROG_RANLIB, as suggested by libtoolize
14585
14586 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
14587
14588         * common-src/bsd-security.c (recv_security_ok): bring over
14589         increased verbosity change from common-src/security.c
14590
14591 1999-03-14  Mathias Herberts  <Mathias.Herberts@ago.fr>
14592
14593         * man/amrecover.8.in: document mode and setmode
14594
14595 1999-03-14  Jon Stevens  <jon@clearink.com>
14596
14597         * common-src/security.c (bsd_security_ok): increase the verbosity of 
14598         failed authentication messages
14599
14600 1999-03-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
14601
14602         * configure.in (powerpc-*-linux-*): supported platform
14603         * README: ditto
14604         Reported by Jon Stevens <jon@clearink.com>
14605
14606 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14607
14608         * configure.in: new option --with-dumperdir=DIR to specify the 
14609         directory for the dumpers (dumper api).
14610         * config/acconfig.h: add def of DUMPER_DIR
14611
14612 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14613
14614         * server-src/conffile.c: accept any string for the program.
14615         * server-src/amcheck.c: add the keyword DUMPER to the request if 
14616         the program is not DUMP or GNUTAR.
14617         * server-src/planner.c: ditto
14618         * server-src/dumper.c: ditto
14619
14620 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14621
14622         * server-src/dumper.c (startup_dump): rename dumpname to progname.
14623         the function will use the parameter progname instead of the
14624         global variable.
14625
14626 1999-03-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
14627
14628         * configure.in (openbsd): according to Ralf Gebhart
14629         <rgebhart@cybernet-ag.net>, sparc-unknown-openbsd2.3 is supported;
14630         I assume other openbsd platforms work too.
14631
14632 1999-03-06 Thomas Hepper <th@ant.han.de>
14633
14634         * client-src/sendbackup-gnutar.c: Replaced #fi with #endif
14635         * changer-src/: Get in sync with 2.4.2 Version
14636
14637 1999-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14638
14639         * configure.in: set SAMBA_VERSION
14640         * client-src/sendbackup-gnutar.c (start_backup): use -q flag
14641         if SAMBA_VERSION >= 2
14642
14643 1999-03-05 Mathias Herberts <Mathias.Herberts@ago.fr>
14644
14645         * recover-src/amrecover.h (set_mode, show_mode) declare new functions.
14646         * recover-src/amrecover.h (SAMBA_SMBCLIENT, SAMBA_TAR) define new 
14647         constant.
14648         * recover-src/extract_list.c: declare variable samba_extract_method.
14649         * recover-src/extract_list.c (extract_files_child): set dumptype
14650         according to samba_extract_method.
14651         * recover-src/help.c (help_list): print help for new command mode
14652         and showmode.
14653         * recover-src/set_commands.c (set_mode, show_mode): new functions.
14654         * recover-src/uscan.l:
14655         * recover-src/uparse.y:
14656
14657 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
14658
14659         * common-src/amanda.h: use ssize_t in writev return value
14660         * common-src/bsd-security.c (bsd_stream_write,bsd_stream_read):
14661         use ssize_t over int
14662         * common-src/file.c (areads): use ssize_t to hold read() return val
14663         * common-src/fileheader.c (fill_buffer): usse ssize_t to hold read()
14664         return val
14665         * common-src/security.h: stream_read's callback now takes a ssize_t
14666         as the third argument.
14667         * common-src/writev.c (writev): return a ssize_t
14668
14669 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
14670
14671         * configure.in: check for ssize_t, make it int if not present
14672         * config/acconfig.h: add def for ssize_t
14673
14674 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
14675
14676         * common-src/base64.c (base64encode): don't cast away a const
14677         needlessly.
14678
14679 1999-03-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14680
14681         * common-src/bsd-security.c (stream_read_callback): change n to int
14682         since ssize_t doesn't exist on all OS.
14683
14684 1999-03-03  Ralf Fassel <ralf@akutech.de>
14685
14686         * common-src/conffile.h: bit field of length 1 should be unsigned int,
14687         not int.
14688
14689 1999-03-03  Ralf Fassel <ralf@akutech.de>
14690
14691         * common-src/bsd-security.c (stream_read_callback): n should be ssize_t.
14692
14693 1999-03-03  Ralf Fassel <ralf@akutech.de>
14694
14695         * changer-src/scsi-changer-driver.c (CloseDevice): wrong assignment.
14696
14697 1999-03-03  Ralf Fassel <ralf@akutech.de>
14698
14699         * common-src/base64.c (base64encode): remove warning from sgi cc
14700         compiler.
14701
14702 1999-03-03  Mike Grupenhoff <kashmir@munge.com>
14703
14704         * common-src/bsd-security.c: use EV_WAIT events instead of
14705         maintaining a queue of listeners.  Refcnt the dgram read event
14706         handle.
14707
14708 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14709
14710         * server-src/driverio.h: new parameter level to update_info_taper().
14711         * server-src/driverio.c (update_info_taper): use parameter instead
14712         of sched(dp)->level.
14713         * server-src/driver.c: call update_info_taper with level parameter.
14714         * server-src/amflush.c: call update_info_taper with level parameter.
14715         no longer need to create a sched_t struct.
14716
14717 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14718
14719         * server-src/driverio.h: remove declaration of inparallel, cmdstr()
14720         and childstr(), declare init_driverio(), add inparallel parameter
14721         to startup_dump_processes().
14722         * server-src/driverio.c (init_driverio): new function to initialize
14723         dmptable and taper.
14724         * server-src/driverio.c (childstr): scan for all dumpers (MAX_DUMPERS)
14725         instead of only inparallel
14726         * server-src/driverio.c (startup_dump_processes): new parameter
14727         inparallel is used instead of global variable.
14728         * server-src/driver.c (main): call init_driverio.
14729         * server-src/driver.c (main): call startup_dump_processes with 
14730         inparallel parameter.
14731         * server-src/amflush.c (main): call init_driverio.
14732
14733 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14734
14735         * server-src/amrmtape.sh.in: work with "last_level" and
14736         "consecutive_runs" in the ouput of "amadmin export".
14737
14738 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
14739
14740         * common-src/security.h: implement security_connect callback and
14741         security_status_t changes
14742
14743 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
14744
14745         * common-src/bsd-security.c (bsd_connect): properly munge the uids
14746         to get a reserved port
14747         * common-src/bsd-security.c: adapt to the security_connect
14748         callback changes
14749         * common-src/bsd-security.c (bsd_sendpkt): dgram_cat is varargs now,
14750         so skip the vstralloc
14751
14752 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
14753
14754         * common-src/event.c: implement EV_WAIT events.  Implement macros
14755         for adding/removing/traversing the event queue
14756         * common-src/event.h: define EV_WAIT, and prototype event_wakeup()
14757
14758 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14759
14760         * docs/WISHLIST: protocol between the driver and dumpers.
14761
14762 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14763
14764         * server-src/amtoc.pl.in: output the datestamp of each dump, because
14765         amflush can flush the same disk multiple date.
14766
14767 1999-02-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14768
14769         * server-src/holding.h: declare struct holding_t.  Remove 
14770         declaration of insert_dirname, scan_holdingdisk.  Declare 
14771         new function free_holding_list.  pick_datestamp and 
14772         pick_all_datestamp now return (holding_t *).
14773         * server-src/holding.c (insert_dirname): new parameter holding_list
14774         where we add the name. Can add more than MAX_DIRS name.
14775         * server-src/holding.c (free_holding_list): new function to free
14776         a holding list.
14777         * server-src/holding.c (scan_holdingdisk): new parameter holding_list.
14778         * server-src/holding.c (pick_all_datestamp, pick_datestamp): return
14779         a list instead of a (char **).
14780         * server-src/find.c (search_holding_disk): use the list return by
14781         pick_all_datestamp.
14782         * server-src/amflush.c: use the list return by pick_datestamp.
14783         * server-src/amcleanupdisk.c (check_disks): use the list return by
14784         pick_all_datestamp.
14785
14786 1999-02-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14787
14788         * server-src/driverio.c (addfd): bug fixe.
14789
14790 1999-02-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
14791
14792         * client-src/sendbackup-gnutar.c: new regexp for SAMBA
14793         Reported by Grzegorz Mucha <grzegorz.mucha@solidex.com.pl>
14794
14795 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
14796
14797         * server-src/amtoc.pl.in: minor fixes for multi-tape runs
14798
14799 1999-02-17  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
14800
14801         * server-src/amtoc.pl.in: complete, backward-incompatible rewrite;
14802         command-line arguments changed
14803         * man/amtoc.8.in: ditto
14804
14805 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
14806
14807         * changer-src/chg-multi.sh.in: minor portability changes
14808         * docs/TAPE.CHANGERS: originally by James da Silva
14809
14810 1999-02-17  Jean-Francois Dockes <dockes@cdkit.remcomp.fr>
14811
14812         * changer-src/chg-multi.sh.in: various portability changes and
14813         general fixes, particularly for multieject; new cycle mode
14814         * docs/TAPE.CHANGERS: detailed description of chg-multi
14815         * example/chg-multi.conf: updated; added reference to
14816         docs/TAPE.CHANGERS for details
14817
14818 1999-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14819
14820         * server-src/driverio.h: remove declaration of addfd.
14821         * server-src/driverio.c (addfd): 2 new arguments, readset and maxfd,
14822         don't use global variable.
14823         * server-src/driverio.c (startup_tape_process, startup_dump_process):
14824         call addfd with new argument.
14825
14826 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14827
14828         * server-src/driverio.c (startup_tape_process): new taper_program
14829         argument.
14830         * server-src/driverio.h: remove declaration of taper_program.
14831         * server-src/driver.c (main): declare taper_program.
14832         * server-src/driver.c: call startup_tape_process with the new 
14833         taper_program argument.
14834         * server-src/amflush.c (run_dumps): declare taper_program.
14835         * server-src/amflush.c (run_dumps): call startup_tape_process with 
14836         the new taper_program argument.
14837
14838 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14839
14840         * server-src/driverio.c (startup_dump_process, startup_dump_processes):
14841         new dumper_program argument.
14842         * server-src/driverio.h: remove declaration of dumper_program.
14843         * server-src/driver.c: declare dumper_program.
14844         * server-src/driver.c: call startup_dump_process and
14845         startup_dump_processes with the new dumper_program argument.
14846
14847 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14848
14849         * server-src/list_dir.h: remove global variable dir_list, declare
14850         new function get_dir_list.
14851         * server-src/list_dir.c (get_dir_list): new function to return dir_list.
14852         * server-src/amindexd.c (opaque_ls): use get_dir_list.
14853
14854 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14855
14856         * server-src/holding.h: remove declaration of get_letter_from_user()
14857         and select_dir().
14858         * server-src/holding.c: remove function get_letter_from_user() and
14859         select_dir().
14860         * server-src/holding.c (pick_datestamp): return empty array instead
14861         of calling exit if no directory are found.
14862         * server-src/amflush.c (get_letter_from_user): new function copied
14863         from holding.c.
14864         * server-src/amflush.c (confirm): write a message and exit if no
14865         directory were found.
14866
14867 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14868
14869         * server-src/amflush.c (flush_holdingdisk): don't update the database
14870         when flushing a partial dump.
14871
14872 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14873
14874         * server-src/holding.h (get_dumpfile): new function
14875         * server-src/holding.c (get_dumpfile): new function to fill a 
14876         dumpfile_t struct from a holding file.
14877
14878 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14879
14880         * server-src/amlabel.c: compiler warning: too many arguments for format
14881
14882 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14883
14884         * server-src/amlabel.c: remove the label from the tapefile in
14885         case it was already there (-f).
14886
14887 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14888
14889         * server-src/dumper.c: make sure holding files are not larger
14890         that chunksize.
14891
14892 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14893
14894         * server-src/amcleanupdisk.c: new program to scan and find temporary
14895         file on holding disks.
14896         * server-src/Makefile.am (libexec_PROGRAMS): add amcleanupdisk.
14897         * server-src/amcleanup.sh.in: call amcleanupdisk.
14898
14899 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14900
14901         * server-src/holding.c (pick_all_datestamp): new function to return
14902         all datestamp in the holding disks.
14903         * server-src/holding.h: declare pick_all_datestamp.
14904
14905 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14906
14907         * server-src/diskfile.h (host_t): new start_t field.
14908         * server-src/diskfile.c (read_diskline): set start_t to 0.
14909         * server-src/driver.c (start_some_dumps): Don't start a dump if
14910         the host->start_t > now.
14911         * server-src/driver.c (start_some_dumps): set host->start_t to 15 sec
14912         in the future when starting a FILE_DUMP.
14913         * server-src/driver.c (dump_to_tape): set host->start_t to 15 sec in
14914         the future when starting a PORT_DUMP.
14915
14916 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
14917
14918         * server-src/amlabel.c (main): try to read just-written tape label
14919         back; if wrendmark overwrote the label, suggest using a
14920         non-rewinding device
14921         * tape-src/tapeio.c (tape_wrendmark): would not close tape device if 
14922         wrendmark failed
14923
14924 1999-02-10  Paul Bijnens  <Paul.Bijnens@lant.be>
14925
14926         * server-src/amoverview.pl.in: Y2K fix in output to user
14927         * server-src/amtoc.pl.in (print_info): ditto
14928
14929 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
14930
14931         * client-src/sendsize.c (getsize_dump): do not redirect standard
14932         output of estimator to /dev/null if we HAVE_DUMP_ESTIMATE
14933
14934 1999-02-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
14935
14936         * NEWS: fix description of incronly: it won't really perform full
14937         backups
14938
14939         * NEWS: support for ufsdump -S, incronly strategy and new chunksize
14940         default
14941
14942         * server-src/conffile.c (init_holdingdisk_defaults, chunksize):
14943         default to 1Gb
14944         * example/amanda.conf.in: ditto
14945         * man/amanda.8.in: ditto
14946
14947         * configure.in (amanda_cv_dump_estimate): check for support for -S
14948         too, and define HAVE_DUMP_ESTIMATE as the estimate switch, if any
14949         * client-src/sendsize.c (re_size): new regexps for Solaris ufsdump
14950         -S and Samba `du'.  Restrict regexp that matched Digital Unix'
14951         dump -E so that it doesn't match smbclient's output any more.
14952         Move some regexps around, and only define them if the corresponding
14953         dump program is available
14954
14955 1999-02-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
14956
14957         * example/amanda.conf.in: document the behavior of relative
14958         exclude-list files
14959         * man/amanda.8.in: ditto
14960
14961         * man/amanda.8.in (exclude list): the GNU tar flag is
14962         --exclude-from, not --exclude-list
14963         Reported by Tom Schutter <tom@platte.com>
14964
14965         * client-src/sendbackup-gnutar.c (re_table): ignore `session request 
14966         to' message printed by Samba 2.0.0
14967
14968 1999-01-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
14969
14970         * man/amanda.8.in (comprate): it is not used when there is history
14971         information; useful for large disks that compress little
14972         Reported by job bogan <job@piquin.uchicago.edu>
14973
14974         * Makefile.am: select which SUBDIRS to descend to here
14975         * client-src/Makefile.am: removed if WANT_CLIENT
14976         * tape-src/Makefile.am: removed if WANT_TAPE
14977         * server-src/Makefile.am: removed if WANT_SERVER
14978         * changer-src/Makefile.am: ditto
14979         * restore-src/Makefile.am: removed if WANT_RESTORE
14980         * recover-src/Makefile.am: removed if WANT_RECOVER
14981         * amplot/Makefile.am: removed if WANT_AMPLOT
14982
14983 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
14984
14985         * NEWS: chg-scsi ports, Samba 2.0.0 support and SECURITY API
14986
14987         * configure.in (USE_AMANDAHOSTS): enable by default
14988         * example/config.site: ditto
14989         * docs/INSTALL: ditto
14990         * NEWS: ditto
14991
14992         * docs/INSTALL: updated URLs for GNU packages and Samba
14993         * docs/SAMBA: note that Samba 2.0.0 is supported
14994
14995         * docs/SYSTEM.NOTES (HP/UX): what does `Link severed' mean?
14996
14997 1999-01-27  Thomas Hepper <th@ant.han.de>
14998         * changer-src/scsi-changer-driver.c SCSI_ReadElementStatus
14999         A while loop has to start with while, not if .....
15000
15001 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
15002
15003         * Makefile.am (EXTRA_DIST): sst was added within contrib
15004
15005         * ltmain.sh, ltconfig, libtool.m4i: updated from libtool CVS
15006         * configure.in: AC_SUBST LIBTOOL_DEPS
15007         * Makefile.am: regen libtool if neded
15008
15009         * Makefile.am: declare that we want automake 1.4 and we're a foreign 
15010         package
15011
15012         * configure.in: require autoconf 2.13, and use
15013         AC_VALIDATE_CACHED_SYSTEM_TUPLE instead of
15014         AC_VALIDATE_CACHE_SYSTEM_TYPE
15015         * config/acinclude.m4i: removed AC_VALIDATE_CACHE_SYSTEM_TYPE
15016
15017         * configure.in (SAMBA_CLIENT): updated check for smbclient to
15018         support Samba 2.0.0
15019
15020 1999-01-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
15021
15022         * server-src/amdump.sh.in (runuser): set to LOGNAME if defined, and
15023         to the output of whoami otherwise
15024         Reported by Tom Schutter <tom@platte.com>
15025
15026 1999-01-26  Thomas Hepper <th@ant.han.de>
15027         * Makefile.am Added sst driver files to EXTRA_DIST
15028
15029 1999-01-26      Thomas Hepper <th@ant.han.de>   
15030         * changer-src/Makefile.am added to LDADD 
15031         ../tape-src/libamtape.$(LIB_EXTENSION)
15032         * changer-src/chg-scsi.c If statfile is not set try to get the info
15033         about the current loaded tape direct from the changer.
15034         Fixed debug output for the eject value if > 1
15035         * changer-src/libscsi.h Prototype for GetCurrentSlot
15036         * changer-src/scsi-aix.c If the Device we open is not a changer or tape
15037         return NULL, so that the above function can abort. New eject per mtio ioctl.
15038         * changer-src/scsi-bsd.c see scsi-aix.c
15039         * changer-src/scsi-linux.c see scsi-aix.c
15040         * changer-src/scsi-hpux_new.c see scsi-aix.c
15041         * changer-src/scsi-irix.c see scsi-aix.c
15042         * changer-src/scsi-solaris.c see scsi-aix.c and added a retry loop for
15043         the execution of SCSI commands.
15044         * changer-src/scsi-changer-driver.c New Function SCSI_ReadElementStatus
15045         split ReadElementStatus in device and device independed part
15046         New EXB120ElementStatus, renamed ReadElementStatus in GenericElementStatus
15047         added EXB 120 and DLT7000 to the devices list.
15048         Removed the linked list for the element status. Now every element
15049         type has its own array allocated in the *ElementStatus functions.
15050         Check in the functions which sends SCSI commands if the fd is able to
15051         receive SCSI commands.
15052         In GenericEject check which type of eject to use (ioctl/SCSI)
15053         New GetCurrentSlot, try to get the info about the loaded tape direct from
15054         the changer.
15055         * changer-src/scsi-chio.c Add function GetCurrentSlot (not well tested yet)
15056         * changer-src/scsi-defs.h Added missing decl. in MediumTransportElementDescriptor_T
15057         for LITTLE_ENDIAN_BITFIELDS
15058         new field from in ElementInfo_T
15059         * changer-src/sci-hpux.c EMpty function GetCurrentSlot, do we still need scsi-hpux.c ?
15060         * docs/TAPE.CHANGERS added some notes for HP-UX, expanded list of tested devices
15061         
15062 1999-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15063
15064         * server-src/conffile.c (init_defaults): default value of runspercycle
15065         is 0.
15066         * server-src/amadmin.c (balance): use default value of runspercycle.
15067         * server-src/planner.c (main): use default value of runspercycle.
15068
15069 1999-01-22  Martin Apel <apel@tecmath.de>
15070
15071         * example/amanda.conf.in: explanation of incronly strategy.
15072         * man/amanda.8.in: explanation of incronly strategy.
15073         * server-src/amadmin.c: recognize incronly strategy
15074         * server-src/conffile.c: read the incronly strategy in the
15075         configuration file.
15076         * server-src/conffile.h: definition of DS_INCRONLY
15077         * server-src/planner.c: Do planning for incronly strategy:
15078         If the force flag is set perform a full dump, otherwise do
15079         normal incremental processing but avoid full dumps.
15080         * server-src/tapefile.c: Bugfix so only tapes which match
15081         the regular expression for tape labels in the current 
15082         configuration are considered for writing.
15083
15084 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
15085
15086         * common-src/bsd-security.c (check_user): there was no uid variable
15087         here; replace with getuid()
15088
15089 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
15090
15091         * server-src/planner.c (output_scheduleline): removed `or historical
15092         data' from `no estimate' message; historical data doesn't matter any 
15093         more
15094         Reported by Giorgos Vlachos <Giorgos.Vlachos@eurodyn.com>
15095
15096 1999-01-20  Todd Pfaff  <pfaff@mcmaster.ca>
15097         
15098         * client-src/sendbackup-gnutar.c: more Samba 2.0.0 messages
15099
15100         * client-src/sendbackup-gnutar.c: new Samba 2.0.0 message 
15101
15102 1999-01-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15103
15104         * server-src/amflush.c: use ap_snprintf instead of snprintf.
15105         * server-src/amflush.c: rotation of new amflush log was broken.
15106
15107 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15108
15109         * server-src/reporter.c: always call output_stats(), the problem is
15110         that degraded_mode is set if amflush fills the tape.
15111
15112 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15113
15114         * server-src/amflush.c: write debuging info to $logdir/amflush
15115         instead of /dev/null if we run in background.
15116         * server-src/amcleanup.sh.in: rename $logdir/amflush.
15117
15118 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
15119
15120         * server-src/dumper.c (make_tapeheader): explicitly compare
15121         srvcompress against srvcomp_none instead of assuming that
15122         srvcomp_none's value is 0.
15123
15124 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
15125
15126         * server-src/dumper.c: move max() macro to top of file.  Add min()
15127         * server-src/dumper.c (databuf_write): use min() to determine the
15128         copy size
15129         * server-src/dumper.c (databuf_flush): more clearly calculate the
15130         buffer offset in the write loop
15131
15132 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
15133
15134         * server-src/dumper.c (databuf_write): Egads!  Also increment the
15135         source pointer doing a partial buf copy
15136
15137 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
15138
15139         * common-src/bsd-security.c (check_user): use getpwnam(CLIENT_LOGIN)
15140         instead of getpwuid(getuid()), in case our caller has not done
15141         the setuid().
15142
15143 1999-01-12  Mike Grupenhoff <kashmir@munge.com>
15144
15145         * server-src/dumper.c (add_msg_data): properly check for half-sent
15146         msg lines.
15147
15148 1999-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15149
15150         * server-src/amstatus.pl.in: fix a divide by zero error.
15151
15152 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
15153
15154         * server-src/dumper.c (add_msg_data): clarify and comment.  Remove
15155         'len' arg.  Const 'str' arg.
15156         * server-src/dumper.c (do_dump): compresspid and indexpid should
15157         be pid_t's.  Also, remove len from add_msg_data call.
15158
15159 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
15160
15161         * server-src/fileheader.c (parse_file_header): const the buffer
15162         argument
15163         * server-src/fileheader.h: update parse_file_header proto for const
15164         change
15165
15166 1999-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15167
15168         * server-src/amstatus.pl.in: report the current dump when reporting
15169         the busy time of each dumper.
15170
15171 1998-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15172
15173         * server-src/dumper.c: open temporary holding file with O_TRUNC flags
15174         and with mode 0600.
15175
15176 1998-12-28  John R. Jackson  <jrj@purdue.edu>
15177
15178         * server-src/reporter.c: do not drop core generating labels if the
15179         tape label is not defined, e.g. in degraded mode (compliments of
15180         Jan L. Peterson <jlp@Part.NET>).
15181
15182 1998-12-28  John R. Jackson  <jrj@purdue.edu>
15183
15184         * server-src/amtape.c: initialize two strings to NULL to avoid a
15185         core dump, compliments of G. Allen Morris III <gam3@acm.org>.
15186
15187 1998-12-27  John R. Jackson  <jrj@purdue.edu>
15188
15189         * man/amreport.8.in: remove reference to 8.5x11 paper size for the
15190         3-hole binder.
15191
15192 1998-12-27  John R. Jackson  <jrj@purdue.edu>
15193
15194         * example/3hole.ps: new lbl-templ file for 3 hole punch reports
15195         * example/Makefile.am: add 3hole.ps
15196
15197 1998-12-22  Thomas Hepper <th@icem.de>
15198
15199         * docs/TAPE.CHANGERS Update notes about chg-scsi
15200         * changer-src/chg-scsi.c Added new config option tapestatus,
15201         if set the tape log pages are written to this file.
15202         changed parameter list for get_clean_state/ask_clean,
15203         * changer-src/libscsi.h changed parameter list for get_clean_state
15204         * changer-src/scsi-changer-driver.c Added new functions OpenDevice
15205         CloseDevice LookupDevice. 
15206         Added new functions to read and decode the Tape LOG Pages.
15207         Tape Eject and ready check is now done by SCSI calls
15208
15209         * changer-src/scsi-aix.c
15210         * changer-src/scsi-bsd.c
15211         * changer-src/scsi-hpux_new.c
15212         * changer-src/scsi-hpux.c
15213         * changer-src/scsi-irix.c
15214         * changer-src/scsi-solaris.c
15215         Changed all SCSI_OpenDevice/SCSI_CloseDevice functions so that they
15216         fit to the new OpenDevice/CloseDevice calls. Removed mtio.h from 
15217         includes, remove Tape_Ready and Tape_Eject
15218         * changer-src/scsi-chio.c
15219         * changer-src/scsi-defs.h
15220
15221         For all changer-src files, removed tabs, run indent (from xemacs)
15222         Added emacs variables to the end (no tab, gnu style)
15223
15224 1998-12-21  John R. Jackson  <jrj@purdue.edu>
15225
15226         * man/amanda.8.in: document the lbl-templ tapetype option.
15227
15228 1998-12-21  John R. Jackson  <jrj@purdue.edu>
15229
15230         * man/amreport.8.in: fix formatting problem.
15231
15232 1998-12-20  John R. Jackson  <jrj@purdue.edu>
15233
15234         * configure.in: define NEED_RESETOFS unless LFS (large file system
15235         support) is available.
15236         * config/acconfig.h: add NEED_RESETOFS tag.
15237         * server-src/taper.c: only reset the tape offset if NEED_RESETOFS
15238         is defined and only once per 2 GBytes.
15239
15240 1998-12-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
15241
15242         * server-src/amlabel.c (main): datestamp for new tapes is now 0
15243         * server-src/tapefile.c (reusable_tape): recognize datestamp 0 as
15244         reusable
15245         * man/amlabel.8.in: document that tapes are added to tapelist
15246
15247 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
15248
15249         * server-src/dumper.c (runcompress): new function.  Given an output
15250         file descriptor, inserts a gzip/compress in front of that descriptor.
15251         * server-src/dumper.c (do_dump): if srvcompress is true, insert
15252         the gzip (using runcompress) in front of the output fd instead
15253         of the input fd.  Only do this after the tapeheader has been written.
15254
15255 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
15256
15257         * server-src/dumper.c (startup_chunker): new function.  When doing
15258         chunking, fork a piped subprocess that reads in a fileheader and
15259         a data stream, and writes out the headered, chunked files.  This
15260         allows us to treat unchunked, chunked, and port-dump dumps exactly
15261         the same.
15262         * server-src/dumper.c (main): file-dump: if chunksize > 0,
15263         call startup_chunker for our outfd.  Otherwise, open the
15264         holding file directly.
15265
15266 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
15267
15268         * server-src/dumper.c (struct databuf): add a chunk_size member,
15269         the size of each chunk.  Remove chunksize global.
15270         * server-src/dumper.c (main): add a chunksize local var
15271         * server-src/dumper.c (databuf_init): init the chunk_size member
15272         with the same value as split_size
15273         * server-src/dumper.c (databuf_flush): increment db->split_size
15274         by the amount in db->chunk_size instead of the global chunksize
15275
15276 1998-12-19  John R. Jackson  <jrj@purdue.edu>
15277
15278         * server-src/amstatus.pl.in: instead of just displaying why no
15279         dumpers were busy, display reason(s) why N+1 were not busy.
15280
15281 1998-12-18  John R. Jackson  <jrj@purdue.edu>
15282
15283         * server-src/amstatus.pl.in: add statistics about how much time
15284         taper and each dumper is busy, how much time N dumpers are busy
15285         and why no dumpers were busy.
15286
15287 1998-12-18  Mike Grupenhoff <kashmir@munge.com>
15288
15289         * server-src/dumper.c (struct databuf): add 'filename', 'filename_seq',
15290         and 'split_size' members to replace the equivalent globals.  Nuke
15291         those globals.
15292         * server-src/dumper.c (databuf_init): add 'filename' and 'split_size'
15293         args to init those members.  Init filename_seq to 0.
15294         * server-src/dumper.c (main): declare and init the databuf here
15295         * server-src/dumper.c (databuf_flush): refer to split_size, filename,
15296         and filename_seq in the databuf instead of the globals.
15297         * server-src/dumper.c (do_dump): now takes a databuf instead of an
15298         output file descriptor.
15299
15300 1998-12-18  John R. Jackson  <jrj@purdue.edu>
15301
15302         * server-src/amstatus.pl.in: fix two perl warnings.
15303
15304 1998-12-18  John R. Jackson  <jrj@purdue.edu>
15305
15306         * server-src/amstatus.pl.in: fix two minor typos.  Add percentage
15307         display to the summary comparing real and estimated size and real
15308         versus total estimate (showing how well the estimates are doing and
15309         a rough guess at how far along the run is).  Also the percentage of
15310         total holding disk space in use.
15311
15312 1998-12-18  John R. Jackson  <jrj@purdue.edu>
15313
15314         * server-src/amstatus.pl.in: take the --file argument as is if it
15315         is an absolute path.
15316
15317 1998-12-18  John R. Jackson  <jrj@purdue.edu>
15318
15319         * server-src/driver.c: call short_dump_state() one last time before
15320         quitting so amstatus gets a last good status.  Tell taper to quit
15321         after the dumpers since it writes more information to the amdump
15322         file (helps prevent mixed messages).
15323
15324 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
15325
15326         * server-src/dumper.c (databuf_flush): return 0 on success
15327
15328 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
15329
15330         * server-src/dumper.c (databuf_flush): new function.  Writes
15331         the contents of the databuf out to its backing file, doing splitting
15332         if necessary
15333         * server-src/dumper.c (databuf_write): call databuf_flush when the
15334         databuf fills up.  Fully complete all writes (no short writes)
15335         * server-src/dumper.c (do_dump): databuf_write now guarantees complete
15336         writes, so remove retry loop.  Call databuf_flush() when eof is hit.
15337         Do not close datafd on eof, because our caller (main) passed it to
15338         us and therefore owns it (and main does close it again).
15339
15340 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
15341
15342         * server-src/dumper.c (databuf_init): new function, initializes
15343         a struct databuf.
15344         * server-src/dumper.c (update_dataptr): rename to databuf_write,
15345         and have it take a buffer and a size, and return how many bytes
15346         of the buffer were written
15347         * server-src/dumper.c (do_dump): use databuf_init to initialize db.
15348         Use databuf_write to add incomign data to the databuf.
15349         Make size1 and size2 local to the blocks they are used in.
15350
15351 1998-12-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
15352
15353         * common-src/Makefile.am (noinst_DATA): removed; bogus
15354         * config/config.guess, config/config.sub: config/install-sh,
15355         config/mkinstalldirs: updated to current pre-2.13 autoconf CVS tree
15356         * patches/autoreconf.patch: removed
15357         * config/libtool/libtool.m4: renamed to config/libtool.m4i
15358         * config/acinclude.m4: renamed to config/acinclude.m4i
15359         * config/Makefile.am (EXTRA_DIST): updated to reflect changes
15360         * autogen: build config/acinclude.m4  by concatenating acinclude.m4i
15361         and libtool.m4i
15362         * configure.in: no longer test whether libtool is installed; require 
15363         newer autoconf
15364         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: updated to
15365         libtool 1.2d
15366         * amplot/Makefile.am (EXTRA_DIST): no longer needed
15367         * changer-src/Makefile.am (chg_scsi_SOURCE): move scsi-defs.h closer 
15368         to the beginning of the list
15369         * docs/INSTALL: fixed URL to gnuplot; recommend autoconf and
15370         automake from CVS
15371
15372 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
15373
15374         * common-src/genversion.c (main): rip out krb4 defines.  If we
15375         need this info, each driver will have to do it individually.
15376
15377 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
15378
15379         * server-src/conffile.c: remove KRB4_AUTH, BSD_AUTH tokens, auth
15380         element from dumptype_t, and get_auth() lookup func.  Add
15381         security_driver to dumptype_t and parse value of AUTH keyword
15382         as a string.
15383         * server-src/conffile.h: nuke auth_t.  Remove auth_t auth, int s_auth
15384         from typetype_t; add char *security_driver, int s_security_driver.
15385         * server-src/diskfile.c: nuke auth_t auth from disk_t, add
15386         char *security_driver.  Inherit security_driver from the dumptype_t
15387         for this disk.
15388         * server-src/diskfile.h: ditto
15389         * server-src/amadmin.c (disklist_one): output the security-driver
15390         string in place of the auth type
15391         * server-src/amcheck.c (start_client_checks, handle_response):
15392         enum type hostp->disks->auth is gone.  check the string in the
15393         security_driver for this disk for krb4 auth.
15394         * server-src/planner.c (getsize, handle_result): check the string
15395         in hostp->disks->security_driver for the auth type.
15396
15397 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
15398
15399         * server-src/amindexd.c: no need to include protocol.h
15400
15401 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
15402
15403         * server-src/amindexd.c: remove duplication inclusion of version.h.
15404         Include tapefile.h to get read_tapelist() prototype
15405         * server-src/amindexd.c (build_disk_table): remove a plethora of
15406         unused local vars
15407         * server-src/amindexd.c (main): rename security_ok() call to
15408         check_security(), and define check_security() locally.  security_ok
15409         will disappear when the new security api goes in
15410
15411 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
15412
15413         * server-src/changer.c (changer_label): make it return void
15414         to keep gcc warning about control reaching the end of a nonvoid
15415         function.
15416         * server-src/changer.c: update changer_label's proto for previous
15417
15418 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
15419
15420         * common-src/amanda.h: define SET, CLR, ISSET macros for dealing
15421         with bitmasks
15422         * server-src/amadmin.c: use the bitmask macros for setting
15423         and clearing the bits in the infofile command word
15424         * server-src/planner.c: ditto.  This fixes a bug in the code that
15425         tried to clear FORCE_FULL with an xor expression that was
15426         never assigned (x ^ FORCE_FULL)
15427
15428 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
15429
15430         * common-src/bsd-security.c (bsd_sendpkt): cast uid's to long and
15431         use %ld to print them.
15432
15433 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
15434
15435         * common-src/dgram.h: mark dgram_cat with gcc's printf attribute
15436         * common-src/packet.h: ditto for pkt_cat
15437         * common-src/security.h: likewise for security_seterror
15438
15439 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
15440
15441         * common-src/error.c (error): const the format arg
15442         * common-src/amanda.h: mark error with gcc's noreturn attribute, and
15443         const its format arg
15444
15445 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
15446
15447         * common-src/debug.c (debug_printf): const the format arg
15448         * common-src/amanda.h: const debug_printf's format arg
15449
15450 1998-12-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
15451
15452         * configure.in (BSD SCSI): test ... -a ... is not portable, and less 
15453         so when written test ... -a test ... :-)
15454
15455 1998-12-14  Thomas Hepper <th@icem.de>
15456
15457         * changer-src/Makefile.am Added scsi-bsd.c
15458         * changer-src/chg-scsi.c Initialize *scsitapedevice
15459         * changer-src/scsi-changer-driver.c remove LITTLE_ENDIAN_BITFILEDS
15460         defenition
15461         changed RequestSense to pRequestSense (there is a function 
15462         called RequestSense)
15463         changed error handling in ResetStatus (fix for IRIX)
15464         FIxed length handling for the pages in ReadElemtStatus
15465         * changer-src/scsi-chio.c get_clean_state only returns 0, the
15466         ioctl to get the clean flag is not portable ;-(
15467         changed all (f)printf to dbprintf
15468
15469         * changer-src/scsi-defs.h ElementStatusData_T is for BIG and
15470         LITTLE endian the same ...
15471
15472         * changer-src/scsi-bsd.c New file for FreeBSD
15473
15474         * changer-src/scsi-irix.c Clean up in the return handling
15475         changed RequestSense to pRequestSense
15476         Removed unused function TapeStatus
15477
15478         * changer-src/scsi-linux.c changed RequestSense to pRequestSense
15479         Removed unused function TapeStatus
15480
15481         * changer-src/scsi-solaris.c changed RequestSense to pRequestSense
15482         Removed unused function TapeStatus
15483
15484         * config/acconfig.h added def for BSD_LIKE_SCSI
15485
15486         * configure.in Added check for ENDIAN type AC_C_BIGENDIAN
15487         added sys/scsiio.h and check for BSD SCSI interface
15488
15489 1998-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15490
15491         * server-src/driver.c (handle_dumper_result): rename .tmp files
15492         when receiving ABORT_FINISHED.
15493
15494 1998-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15495
15496         * server-src/driver.c (start_some_dumps): Use the holdp returned
15497         by find_diskspace for a big_dumper in degraded mode.
15498
15499 1998-12-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
15500
15501         * docs/SYSTEM.NOTES (Ultrix): recommend gcc or egcs
15502         (IRIX): patch for xfsdump estimates
15503
15504 1998-12-10  John R. Jackson  <jrj@purdue.edu>
15505
15506         * common-src/amflock.c (main): remove call set_pname() for
15507         CONFIGURE_TEST since error.o is not linked in.
15508
15509 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
15510
15511         * server-src/dumper.c (struct databuf): add a fd member - the file
15512         descriptor that we are buffering
15513         * server-src/dumper.c (update_dataptr): remove
15514         outf arguments, use the fd in the passed databuf.  Return 0 on
15515         success, and -1 on error.
15516         * server-src/dumper.c (update_dataptr): rework and comment the
15517         chunk code a bit.  Get rid of the cont_filename global.
15518         * server-src/dumper.c (do_dump): init the fd member of the databuf
15519         * server-src/dumper.c (write_dataptr): fold back into update_dataptr
15520
15521 1998-12-10  John R. Jackson  <jrj@purdue.edu>
15522
15523         * common-src/amflock.c (main): report CONFIGURE_TEST error messages to
15524         stderr.
15525
15526 1998-12-10  John R. Jackson  <jrj@purdue.edu>
15527
15528         * common-src/amflock.c (main): call set_pname() for CONFIGURE_TEST.
15529         * configure.in: do not set up pname global for lnlock CONFIGURE_TEST.
15530
15531 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
15532
15533         * server-src/dumper.c (update_dataptr): remove pointless backups
15534         of the databuf and associated vars when creating next chunk.
15535         Remove duplicate setting of file.cont_filename.
15536
15537 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
15538
15539         * server-src/dumper.c (main): reuse outfd to clear the open files
15540         passed to us.  Nuke the fd var.
15541         * server-src/dumper.c (update_dataptr): nuke 'split' argument - it
15542         was always set to 1
15543
15544 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
15545
15546         * server-src/dumper.c (write_tapeheader): kill dead code
15547         * server-src/dumper.c (main): remove useless amfree of datestamp.
15548         Add missing break to 'default' case in command loop.
15549         * server-src/dumper.c: kill databuf, spaceleft, and dataptr globals.
15550         Create a 'struct databuf' that holds all three.
15551         * server-src/dumper.c (write_dataptr, update_dataptr): make
15552         these take a 'struct databuf *' as an argument, and have them
15553         operate on its contents instead of the aforementioned globals
15554         * server-src/dumper.c (do_dump): declare a 'struct databuf' here.
15555         Make it static, because it's large.  Use it instead of the
15556         globals.
15557
15558 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
15559
15560         * server-src/dumper.c (main): rework the command loop a bit.
15561         Consolidate all duplicated error cleanup into one place at the
15562         end of the loop after each command has been processed.  Exit
15563         with exit(), not return.
15564
15565 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
15566
15567         * server-src/dumper.c (main, getcmd, write_dataptr): kill argc and
15568         argv globals, pass them as arguments to getcmd() via struct cmdargs.
15569         * server-src/dumper.c (getcmd): make the command lookup table driven.
15570         * server-src/dumper.c (write_dataptr): restructure the command
15571         logic a bit to hopefully clarify things.
15572
15573 1998-12-09  Henning P. Schmiedehausen  <henning@tanstaafl.de>
15574
15575         * client-src/sendbackup.c (parse_options): Added check whether the
15576         pathname of the exclude file is relative and if yes, use the
15577         mountpoint of the filesystem as anchor.  So you can put your exclude
15578         file in the root of the filesystem to backup.
15579         * client-src/sendsize.c (getsize_gnutar): added the same check as
15580         above so sendsize uses the same exclude file.
15581
15582 1998-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15583
15584         * server-src/holding.c (size_holding_files): return size in KB.
15585         * server-src/driver.c (adjust_diskspace): use KB returned by
15586         size_holding_files.
15587         * server-src/driver.c: rename .tmp file
15588         * server-src/dumper.c: do not rename .tmp file. let the driver do it.
15589
15590 1998-12-09  John R. Jackson  <jrj@purdue.edu>
15591
15592         * common-src/stream.c (stream_server): do not request a reserved port
15593         if we are root but PORTRANGE is defined.  Also, clean up the code
15594         and make sure *portp is -1 on all error returns.
15595
15596 1998-12-08  John R. Jackson  <jrj@purdue.edu>
15597
15598         * Makefile.am: add the user-contributed area.
15599         * contrib/README: describe the user-contributed area.
15600         * contrib/dbbackup.README: README for Oracle database backup system.
15601         * contrib/dbbackup.ksh: Oracle database backup system wrapper.
15602         * contrib/dbbackup.sql: Oracle database backup system setup commands.
15603         * contrib/dbbackup.tcl: Oracle database backup system main body.
15604
15605 1998-12-08  John R. Jackson  <jrj@purdue.edu>
15606
15607         * amplot/Makefile.am: fix install rule when DESTDIR is non-null,
15608         compliments of Henning P. Schmiedehausen <hps@tanstaafl.de>.
15609
15610 1998-12-08  John R. Jackson  <jrj@purdue.edu>
15611
15612         * configure.in: fix reversed code for --with-amrecover, compliments
15613         of Yar Tikhiy <yar@radio-msu.net>.
15614
15615 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15616
15617         * common-src/fileheader.h (dumpfile_t): new is_partial field.
15618         * common-src/fileheader.c: add codee for new is_partial field.
15619         * server-src/holding.h (rename_tmp_holding): declare new function.
15620         * server-src/holding.c (rename_tmp_holding): new function.
15621         * server-src/dumper.c (do_dump): return 1 if succeded, otherwise 0.
15622         * server-src/dumper.c (main): open .tmp when dumping to disk, 
15623         rename .tmp if do_dump return 1.
15624         * server-src/dumper.c (update_dataptr): open .tmp for new chunk.
15625         * server-src/amstatus.pl.in (dump_size): return size of .tmp file.
15626
15627 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
15628
15629         * server-src/amtape.c (main, usage): make command lookup and usage
15630         table-driven
15631
15632 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
15633
15634         * server-src/amadmin.c: make command lookup and usage table-driven
15635         * server-src/amadmin.c (balance, tape, bumpsize): add
15636         argc/argv arguments to make them like the rest
15637         * server-src/amadmin.c (show_version): new function, implements
15638         the version command, so it is done like the other commands
15639         * server-src/amadmin.c (main): iterate through cmdtab[] when
15640         looking up the command, instead of a huge if/then/else
15641         * server-src/amadmin.c (usage): iterate through cmdtab[] when
15642         displaying usage strings.  Display the "disklist" usage string.
15643
15644 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15645
15646         * config/acconfig.h: add "#undef HAVE_WRITEV_DECL".
15647
15648 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15649
15650         * NEWS: document new force-bump, force-no-bump and unforce-bump
15651         command in amadmin.
15652
15653 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15654
15655         * server-src/holding.c (size_holding_files): new function to
15656         return the sum of the size of all chunk of an image.
15657         * server-src/holding.h (size_holding_files): declare.
15658         * server-src/driver.c (adjust_diskspace): use size_holding_files
15659         instead of doing a stat of only the first chunk.
15660
15661 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15662
15663         * server-src/amadmin.c: new force-bump, force-no-bump and unforce-bump
15664         command.
15665         * man/amadmin.8.in: document them.
15666
15667 1998-12-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
15668
15669         * docs/FAQ (large filesystems): fixed reference to results missing
15670         (results missing): updated to 64Kb UDP packets
15671
15672 1998-12-04  Mike Grupenhoff <kashmir@munge.com>
15673
15674         * common-src/amanda.h: implement WIFSIGNALED() if not already
15675         defined
15676         * server-src/amcheck.c: ream out compat definitions of WEXITSTATUS(),
15677         WTERMSIG(), and WIFSIGNALED().  These are already handled in amanda.h
15678         * server-src/changer.c: ditto
15679
15680 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
15681
15682         * common-src/bsd-security.c (recv_security_ok): only check for
15683         a reserved port for REQ packets
15684
15685 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
15686
15687         * common-src/bsd-security.c (recvpkt_callback): only compare
15688         the sin_addr and sin_port fields in the sockaddr when determining
15689         what handle an incoming packet belongs to.
15690         * common-src/bsd-security.c (pkthdr2str): use %s for the handle,
15691         since it's a string.
15692
15693 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
15694
15695         * common-src/bsd-security.c (bsd_sendpkt): newline-terminate
15696         the 'SECURITY USER' line in the packet
15697         * common-src/bsd-security.c (check_user): fix many bugs
15698         in the USE_AMANDAHOSTS case
15699
15700 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
15701
15702         * configure.in: AC_REPLACE_FUNCS(writev)
15703
15704 1998-12-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15705
15706         * server-src/infofile.h: rename PLANNER_FORCE to FORCE_FULL
15707         * server-src/planner.c: rename PLANNER_FORCE to FORCE_FULL
15708         * server-src/amadmin.c: rename PLANNER_FORCE to FORCE_FULL
15709
15710 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
15711
15712         * config/acconfig.h: add KRB5_SECURITY.  Update comment above
15713         krb4 define to make clear that they are for krb4
15714
15715 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
15716
15717         * configure.in: if we're doing krb4 and -lcom_err is there, pull
15718         it in
15719         * configure.in: implement --with-krb5-security.
15720
15721 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
15722
15723         * common-src/dgram.c (dgram_cat): now can take printf-style
15724         arguments
15725         * common-src/dgram.g (dgram_cat): update prototype
15726
15727 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
15728
15729         * common-src/bsd-security.c: wrap entire file in #ifdef BSD_SECURITY
15730         * common-src/bsd-security.c (bsd_connect): catch up with
15731         security interface changes - upper layer now allocates our handle
15732         Also, pass up useful error message about why connects failed
15733         via the handle we are given
15734         * common-src/bsd-security.c (gethandle): rename to inithandle,
15735         since we are now passed the handle's memory.  No need to allocate
15736         memory or initialize the error msg pointer
15737         * common-src/bsd-security.c (bsd_close): now an empty function - no
15738         memory to free
15739         * common-src/bsd-security.c (recvpkt_callback): allocate the handle
15740         before calling inithandle() (nee gethandle()).
15741         * common-src/bsd-security.c (stream_read_callback): put
15742         strerror(errno) in the handle's error buffer before passing a
15743         read error up to the caller
15744
15745 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
15746
15747         * common-src/krb5-security.c: new stub file that pulls in the
15748         krb5 bits from the amanda-krb-2 tree if KRB5_SECURITY is
15749         defined
15750
15751 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
15752
15753         * common-src/base64.{c,h}: new files, implement base64 encoding
15754         and decoding.  Implementation based on routines in bind, and so
15755         copyright is held by ISC and IBM (but is BSD-like).
15756
15757 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
15758
15759         * common-src/security.h: add 'handlesize' to the driver struct, also
15760         make the connect function pointer return int and take a handle
15761         argument
15762         * common-src/security.h (security_connect): addd a 'const char **'
15763         errmsg argument for returning connect errors
15764
15765 1998-12-01  John R. Jackson  <jrj@purdue.edu>
15766
15767         * server-src/amcheck.c: make -t mean do the tape checks, add new -l
15768         option for doing just the local server (non-tape) checks.  Have -w
15769         turn on -t.  Have -cs (or -sc) do both server and client checks.
15770         * man/amcheck.8.in: document above changes and clean up some minor
15771         formatting issues.
15772
15773 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
15774
15775         * common-src/event.c (release): nuke bogus comment about signal
15776         handler release
15777         * common-src/event.c (event_loop): move the reentrancy assert
15778         after the empty queue check.  Otherwise, calling event_loop()
15779         with an empty event queue would cause the entry count to get
15780         out of sync.  Also, on exit, assert that the entry count has
15781         gone to 0
15782         * common-src/event.c (event_loop): fix bogus comment about event
15783         removal
15784
15785 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
15786
15787         * common-src/arglist.h: implement arglist_function3()
15788
15789 1998-11-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15790
15791         * server-src/driver.c (start_some_dumps): In degraded mode,
15792         a big dumper should do high priority dump before low priority.
15793         * server-src/driver.c (sort_by_priority_reversed): sort by
15794         time if priority is equal.
15795
15796 1998-11-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15797
15798         * server-src/infofile.h: declare FORCE_BUMP and FORCE_NO_BUMP
15799         as command.
15800         * server-src/amadmin.c (force_one,unforce_one,info_one): work
15801         with info.command with bit operator.
15802         * server-src/planner.c (setup_estimate): work with info.command
15803         with bit operator, support for FORCE_BUMP and FORCE_NO_BUMP command.
15804
15805 1998-11-27  Thomas Hepper    <th@icem.de>
15806
15807         * changer-src/scsi-aix.c Some changes in the error handling in
15808         scsi command execution
15809         * changer-src/scsi-changer-driver.c More debug prints.
15810         removed Endian16/Endian24 (replaced with macros)
15811         * changer-src/scsi-chio.c make get_clean_state work on linux
15812         * changer-src/scsi-defs.h  added macros for converting from/to
15813         SCSI CDB MSB type
15814         * docs/TAPE.CHANGERS add note about AIX and chg-scsi
15815
15816 1998-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15817
15818         * server-src/amadmin.c(export_one): export the last_level and
15819         consecutive_runs field.
15820         * server-src/amadmin.c(import_one): import the last_level and
15821         consecutive_runs field.
15822
15823 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
15824
15825         * common-src/amanda.h: uhh, every other decl has a leading
15826         'extern' so writev() should as well
15827
15828 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
15829
15830         * common-src/amanda.h: if no writev() decl exists, declare one
15831
15832 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
15833
15834         * configure.in: check for <sys/uio.h>, check for a writev() decl
15835         in <unistd.h> and/or <sys/uio.h>
15836
15837 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
15838
15839         * common-src/writev.c (writev): new file, implements writev for
15840         systems that lack it
15841
15842 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
15843
15844         * common-src/amanda.h: include <sys/uio.h> if it exists.  Otherwise,
15845         define struct iovec
15846
15847 1998-11-24  John R. Jackson  <jrj@purdue.edu>
15848
15849         * server-src/amlabel.c: insist on being run as the dump user (ala
15850         amlabel) to keep permissions straight.
15851
15852 1998-11-24  John R. Jackson  <jrj@purdue.edu>
15853
15854         * server-src/amadmin.c: fix minor message format problem.
15855
15856 1998-11-24  John R. Jackson  <jrj@purdue.edu>
15857
15858         * server-src/amlabel.c: insist on being run as the dump user (ala
15859         amflush) to keep permissions straight.
15860
15861 1998-11-24  John R. Jackson  <jrj@purdue.edu>
15862
15863         * server-src/amrmtape.sh.in: insist on being run as the dump user (ala
15864         amdump) to keep permissions straight.
15865
15866 1998-11-24  John R. Jackson  <jrj@purdue.edu>
15867
15868         * server-src/amadmin.c: issue a warning for update commands that might
15869         leave ownership incorrect.
15870
15871 1998-11-24  John R. Jackson  <jrj@purdue.edu>
15872
15873         * server-src/amcheck.c: add a "-t" option to disable tape tests in the
15874         server checks.  This lets server checks be done without mounting a
15875         tape.  Add lots more sanity checks, in particular, ownership and
15876         permissions of the index area and text format database.  Warn if
15877         amcheck is not run as the dump user listed in amanda.conf.  Minor
15878         consistency cleanup in the messages.
15879         * man/amcheck.8.in: document the changes.
15880
15881 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
15882
15883         * common-src/dgram.c (dgram_bind): always try to get a reserved
15884         port, even if KRB4_SECURITY is defined
15885
15886 1998-11-23  Mike Grupenhoff <kashmir@munge.com>
15887
15888         * common-src/bsd-security.c (struct bsd_handle): change 'int handle'
15889         to 'char proto_handle[32]' because the remote client might generate
15890         handles that aren't completely numerical
15891         * common-src/bsd-security.c (gethandle, str2pkthdr): the 'handle' arg
15892         is now a string
15893         * common-src/bsd-security.c (bsd_connect): convert our generated
15894         handle into a string to pass to gethandle()
15895         * common-src/bsd-security.c (str2pkthdr): rewrite to parse with
15896         strtok().  Parse the handle as a string instead of trying to
15897         convert it into a number
15898
15899 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
15900
15901         * server-src/amcleanup.sh.in (logdir/amdump): arrange that it is
15902         renamed if it exists, even if no log file could be found.
15903
15904 1998-11-20  Mike Grupenhoff <kashmir@munge.com>
15905
15906         * common-src/bsd-security.c: define STREAM_BUFSIZE to be
15907         the size of the tcp socket buffers
15908         * common-src/bsd-security.c (bsd_stream_server, bsd_stream_client):
15909         adapt to the stream_server() interface changes.  Set socket
15910         buffers to STREAM_BUFSIZE.
15911
15912 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
15913
15914         * config/ltmain.sh, config/ltconfig, config/libtool/libtool.m4:
15915         updated to current CVS libtool
15916
15917 1998-11-19  John R. Jackson  <jrj@purdue.edu>
15918
15919         * server-src/conffile.c (get_holdingdisk, init_holdingdisk_defaults):
15920         set the default chunksize and the "0" and "-1" special chunksizes
15921         to 64 KBytes less than the maximum to allow the final read at EOF.
15922         * server-src/dumper.c (main): leave the chunksize as it is when it
15923         comes in except to truncate it to a 32 KByte boundary.
15924         * man/amanda.8.in: add some chunksize comments and clean up a few
15925         minor odds and ends.
15926
15927 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
15928
15929         Give amrecover its own security bits.  It has different needs
15930         and a different protocol than the rest of amanda, so it shouldn't
15931         try to reuse the security bits
15932         * recover-src/amrecover.c (get_security): new function, implements
15933         bsd security
15934         * recover-src/amrecover.c (main): call get_security()
15935         * recover-src/amrecover.h: get_security() prototype
15936         * recover-src/extract_list.c (extract_files_setup): call
15937         get_security()
15938         * restore-src/amidxtaped.c (check_security): new function, implements
15939         * restore-src/amidxtaped.c (main): call check_security()
15940
15941 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
15942
15943         * common-src/stream.c (stream_server, stream_client): cast 4th
15944         arg of setsockopt() to (void *) to quash a compiler warning
15945         under solaris.
15946
15947 1998-11-19  John R. Jackson  <jrj@purdue.edu>
15948
15949         * recover-src/amrecover.c (main): use set_host to find the initial
15950         host name so we get the same alias resolution at startup as the
15951         sethost command.
15952         * recover-src/set_commands.c (set_host): report alternate names being
15953         attempted and only clear the directory list if a host is found.
15954
15955 1998-11-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
15956
15957         * server-src/driverio.c (update_info_dumper): do not update
15958         compression or dump rates when called from
15959         update_failed_dump_to_date
15960         Reported by Michael Schmitz <mschmitz@sema.de>
15961
15962 1998-11-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15963
15964         * server-src/dumper.c (main): reduce the size of the chunksize by
15965         2 blocks.
15966
15967 1998-11-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
15968
15969         * configure.in: hack for paxutils was not working; fixed
15970
15971 1998-11-18  Michael Povel  <mcp@ladyada.han.de>
15972
15973         * server-src/changer.h added new functions:changer_query
15974         ,changer_search,changer_find, changer_label
15975         * server-src/changer.c added changer_query, changer_search,
15976         changer_find, changer_label
15977         * server-src/amcheck.c (taper_scan) now uses changer_find 
15978         * server-src/amtape.c (load_label and taper_scan) now use changer_find
15979         * server-src/taper.c (taper_scan) now uses changer_find
15980         * server-src/amlabel.c (main) added call to changer_label
15981         which is only an empty dummy at the moment
15982
15983 1998-11-18  Thomas Hepper <th@icem.de>
15984
15985         * changer-src/chg-scsi.c Added debug print option
15986         * changer-src/chg-scsi.c If the load fails do not continue
15987         * changer-src/scsi-aix.c changed #include <config.h> to <amanda.h>
15988         * changer-src/scsi-aix.c Added debug prints to SCSI_ExecuteCommand
15989         * changer-src/scsi-changer-driver.c changed #include <config.h> to 
15990         #include <amanda.h>
15991         * changer-src/scsi-changer-driver.c Added debugging prints
15992         * changer-src/scsi-changer-driver.c Remove unused funktion TestUnitReady
15993         * changer-src/scsi-chio.c added missing funktion Tape_Ready
15994         * changer-src/scsi-hpux.c removed #include "config.h", is already done
15995         in amanda.h
15996         * changer-src/scsi-hpux_new.c  changed #include <config.h> to 
15997         #include <amanda.h>
15998         * changer-src/scsi-irix.c changed #include <config.h> to 
15999         #include <amanda.h>
16000         * changer-src/scsi-linux.c changed #include <config.h> to 
16001         #include <amanda.h>
16002         * changer-src/scsi-solaris.c changed #include <config.h> to 
16003         #include <amanda.h>
16004
16005 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
16006
16007         * client-src/sendsize.c: disable HAVE_DUMP_ESTIMATE if SAMBA_CLIENT
16008         is defined
16009
16010 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16011
16012         * server-src/tapefile.c (lookup_last_reusable_tape): Wrong order
16013         to shift the tpsave array.
16014
16015 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
16016
16017         * example/amanda.conf.in: document that infofile is supposed to be a
16018         directory with the default database format
16019         * docs/FAQ: New questions: `infofile update failed' and `using the
16020         same host in different configurations'
16021
16022 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16023
16024         changer-src/scsi-linux.c (Tape_Ready): typo, the argument Device
16025         to the SCSI_CloseDevice() is not defined, I changed it to tapedev.
16026
16027 1998-11-17  Brendan M Coffey <bcoffey@connix.com>
16028
16029         * common-src/stream.c (stream_server): add requested send and receive
16030         socket size parameters.
16031         * common-src/stream.h (stream_server): ditto
16032         * server-src/taper.c (file_reader_side): set a large receive socket
16033         buffer size.
16034         * client-src/sendbackup.c (main): set a large send and receive socket
16035         buffer size for the data path, use defaults for the message and index
16036         paths.
16037
16038 1998-11-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
16039
16040         * changer-src/scsi-solaris.c (Tape_Ready): typo in Thomas' patch
16041
16042 1998-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16043
16044         * server-src/infofile.h (get_dumpdate): rename record parameter to info.
16045         * server-src/infofile.h (get_info): rename record parameter to info.
16046         * server-src/infofile.h (put_info): rename record parameter to info.
16047         * server-src/infofile.c (get_dumpdate): rename rec parameter to info.
16048         * server-src/infofile.c (zero_info): rename ip parameter to info.
16049         * server-src/infofile.c (get_info): rename record parameter to info.
16050         * server-src/infofile.c (put_info): rename record parameter to info.
16051         * server-src/infofile.c (dump_rec): rename r parameter to info.
16052         * server-src/infofile.c (dump_db): rename record variable to info.
16053         * server-src/planner.c (last_level): rename ip parameter to info.
16054         * server-src/planner.c (next_level0): rename ip parameter to info.
16055         * server-src/planner.c (runs_at): rename ip parameter to info.
16056         * server-src/planner.c (askfor): rename inf parameter to info.
16057         * server-src/planner.c (setup_estimate): rename inf variable to info.
16058         * server-src/driverio.c (update_info_dumper): rename inf parameter 
16059         to info.
16060         * server-src/driverio.c (update_info_taper): rename inf parameter 
16061         to info.
16062         * server-src/amadmin.c (next_level0): rename ip parameter to info.
16063         * server-src/amadmin.c (force_one): rename inf variable to info.
16064         * server-src/amadmin.c (unforce_one): rename inf variable to info.
16065         * server-src/amadmin.c (delete_one): rename inf variable to info.
16066         * server-src/amadmin.c (info_one): rename inf variable to info.
16067         * server-src/amadmin.c (due_one): rename inf variable to info.
16068         * server-src/amadmin.c (balance): rename inf variable to info.
16069
16070 1998-11-11  Thomas Hepper <th@icem.de>
16071
16072         * configure.in: amanda_cv_hpux_scsi was double defined.
16073         Replaced it in the chio check with amanda_cv_hpux_scsi_chio
16074         * docs/TAPE.CHANGERS: update the notes about chg-scsi
16075         * changer-src/chg-scsi.c: Unload the cleaning tape only
16076         if it is loaded
16077         Pass the changerdev and tapedev Tape_Ready, so we can check
16078         if changerdev=tapedev. In this case the fd is already open.
16079         * changer-src/scsi-aix.c: cleanup and first parts are running :-)
16080         * changer-src/scsi-changer-driver.c: Pass back the scsi status
16081         field to the calling function, not the result from the ioctl
16082         if the return form the ioctl is >= 0
16083         * changer-src/scsi-hpux.c: Add additional param to Tape_Ready
16084         fill Tape_Ready with live 
16085         * changer-src/scsi-hpux_new.c: Return the scsi status if 
16086         the ioctl result is >=0. Add new Parameter to Tape_Ready
16087         * changer-src/scsi-irix.c: same as scsi-hpux_new.c
16088         * changer-src/scis-linux.c: Add additional param to Tape_Ready
16089         * changer-src/scsi-solaris.c: same as scsi-hpux_new.c
16090
16091 1998-11-11  Mike Grupenhoff <kashmir@munge.com>
16092
16093         * server-src/security.h: add driver entry points and macros
16094         for security_stream_accept() and security_stream_auth()
16095         * server-src/bsd-security.c: implement security_stream_accept()
16096         and security_stream_auth() for bsd security
16097
16098 1998-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16099
16100         * server-src/driver.c (main): redo my patch about total_disksize that
16101         Alexendre has undone, only the 2.4.1 branch was broken.
16102
16103 1998-11-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
16104
16105         * server-src/driver.c (main): total_disksize was only added after
16106         the loop terminated, i.e., when hdp was NULL -> crash.  fixed.
16107
16108 1998-11-09  John R. Jackson  <jrj@purdue.edu>
16109
16110         * server-src/reporter.c (main): ignore SIGPIPE so if a child process
16111         dies we do not also go away.  Also fix a core dump if amanda.conf
16112         cannot be processed, and clean up a few error messages.
16113
16114 1998-11-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16115
16116         * server-src/infofile.h (struct info_s): add last_level and 
16117         consecutive_runs.
16118         * server-src/infofile.c: support new last_level and consecutive_runs
16119         * server-src/planner.c (last_level): return ip->last_level.
16120         * server-src/planner.c (runs_at): return ip->consecutive_runs.
16121         * server-src/driverio.c (update_info_dumper): update inf.last_level
16122         and inf.consecutive_runs.
16123         
16124 1998-11-09  Mike Grupenhoff <kashmir@munge.com>
16125
16126         * client-src/sendbackup-dump.c (start_backup): don't close indexf
16127         if it was never open
16128         * client-src/sendbackup-gnutar.c (start_backup): ditto
16129
16130 1998-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16131
16132         * server-src/driver.c (main): add hdp->disksize to total_disksize
16133         even when we create the datestamp dir. (reserve was unusable).
16134
16135 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
16136
16137         * Makefile.am (EXTRA_DIST): added EVENT-API, SECURITY-API and
16138         STRATEGY-API
16139         * docs/STRATEGY-API: new file
16140
16141         * configure.in (GNUTAR): accept tar from Free paxutils, the new name
16142         of GNU tar
16143
16144 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
16145
16146         * changer-src/scsi-solaris.c: added missing #endif
16147
16148         * configure.in: merge with camlib.h patch from Oct 31
16149         remove all uses of test ... -a ...; this is not portable.
16150         (AC_CHECK_HEADERS) added header files for Linux and Solaris
16151
16152 1998-11-07  Thomas Hepper  <th@icem.de>
16153
16154         * changer-src/chg-scsi: Add config option scsidev
16155         * changer-src/chg-scsi: Remove function tape_ready
16156         * changer-src/chg-scsi: Add new parameter tapedev to function
16157         ask_clean
16158         * changer_src/scsi-hpux.c: changed HAVE_HPUX_SCSI to 
16159         HAVE_HPUX_SCSI_CHIO, changed in configure.in too
16160         * changer-src/libscsi.h: Expand definition for get_clean_state
16161         * new files in /changer-src:
16162         scsi-aix.c, scsi-changer-driver.c, scsi-defs.h
16163         scsi-hpux_new.c, scsi-irix.c, scsi-linux.c, scsi-solaris.c
16164         * configure.in checks for scsi ioctl added, check for header files
16165         for the scsi suport added
16166         * config/acconfig.h new:
16167         HAVE_HPUX_LIKE_SCSI, HAVE_HPUX_SCSI_CHIO, HAVE_LINUX_LIKE_SCSI
16168         HAVE_IRIX_LIKE_SCSI, HAVE_SOLARIS_LIKE_SCSI, HAVE_AIX_LIKE_SCSI
16169                removed: HAVE_HPUX_SCSI
16170         * changer-src/Makefile.am: New conditional for building chg-scsi-chio
16171         and chg-scsi. chg-scsi-chio is the old chg-scsi
16172
16173 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
16174
16175         * common-src/bsd-security.c (bsd_stream_write): callback's third
16176         arg should now be an int.
16177         * common-src/bsd-security.c: quash some gcc -Wall warnings
16178
16179 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
16180
16181         * common-src/security.h: the callback to stream_read should
16182         take signed type as its 'length' argument so errors can be
16183         expressed as a negative number.
16184
16185 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
16186
16187         * common-src/bsd-security.c (stream_read_callback): do reads into
16188         a buffer of size TAPE_BLOCK_BYTES, instead of 256, and place the
16189         buffer in the stream handle instead of on the stack, since it's
16190         huge
16191
16192 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
16193
16194         * common-src/event.c (event_loop): Consider error conditions on
16195         file descriptors as read or write events.  The caller will be
16196         able to differentiate when they call read or write and it
16197         fails.
16198
16199 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
16200
16201         * common-src/event.c (event_loop): print out WHY select failed
16202
16203 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
16204
16205         * common-src/bsd-security.c: adjust for the recvpkt timeout
16206         interface changes
16207         * common-src/bsd-security.c (handleq_remove): add a missing ; after
16208         an assertion
16209         * common-src/bsd-security.c (gethandle): initialize the error buffer
16210         in the security handle, since errors may be set before the handle
16211         is passed up to the general security layer
16212         * common-src/bsd-security.c (bsd_recvpkt_cancel): allow it to be
16213         called several times, or when no recvpkt was scheduled
16214
16215 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
16216
16217         * common-src/security.h: define security_recvpkt_status_t
16218         * common-src/security.h: security_driver_t->recvpkt() now
16219         takes a timeout argument, and its callback takes a
16220         security_recvpkt_status_t
16221         * common-src/security.h: adjust the security_recvpkt() macro
16222         for the above changes
16223
16224 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
16225
16226         * common-src/event.c (event_loop): assert that we are not firing
16227         a dead event
16228
16229 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16230
16231         * recover-src/amrecover.c: remove declaration of errstr.
16232
16233 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16234
16235         * server-src/amindexd.c (build_disk_table): call find_dump() instead
16236         of popen("amadmin <conf> find ...")
16237
16238 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16239
16240         * server-src/holding.h: rename dir_list to holding_list because
16241         dir_list is also declared in amflush.c
16242         * server-src/holding.c: ditto
16243         * server-src/find.c: ditto
16244
16245 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16246
16247         * server-src/amstatus.pl.in: remove warning.
16248
16249 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
16250
16251         * common-src/event.c (event_register): delete some improper debug
16252         code that shouldn't have made it in
16253
16254 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
16255
16256         * common-src/bsd-security.c: new file: security driver that
16257         implements "BSD" security.
16258
16259 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
16260
16261         * common-src/security.h: new file: the security api header
16262
16263 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
16264
16265         * common-src/event.c: new file: the event handler.  Handles file
16266         descriptor io, signals, and timed events.
16267         * common-src/event.h: new file: interface for the event handler.
16268
16269 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
16270
16271         * common-src/packet.c: new file: description of pkt_t's and routines
16272         for formatting
16273         * common-src/packet.h: new file: header for common-src/packet.c
16274
16275 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
16276
16277         * common-src/queue.h: new file: the 4.4BSD queue macros, with
16278         additions from NetBSD
16279
16280 1998-11-04  John R. Jackson  <jrj@purdue.edu>
16281
16282         * server-src/amverify.sh.in: tolerate extra amtape output.
16283
16284 1998-11-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
16285
16286         * configure.in: bumped to 2.5.0
16287
16288         * server-src/taper.c (read_file): if a new tape cannot be found,
16289         report a no-tape error to the log file and exit, just like it does
16290         for the first tape
16291
16292 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16293
16294         * server-src/planner.c (pick_inclevel): return base_level even
16295         when the estimate failed.
16296         * server-src/planner.c (output_scheduleline): test for degr_size
16297         instead of degr_level.
16298
16299 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16300
16301         * server-src/planner.c (last_level): update last_date otherwise only
16302         level 0 or the highest is returned.
16303
16304 1998-11-03  Mike Grupenhoff  <kashmir@munge.com>
16305
16306         * common-src/alloc.c: const arguments to the stralloc functions
16307         * common-src/amanda.h: update stralloc prototypes for const
16308         poisoning
16309
16310 1998-11-03  John R. Jackson  <jrj@purdue.edu>
16311
16312         * server-src/dumper.c (do_dump): do not report FAILED back to driver
16313         when it sent us ABORT.  Clean up and send back ABORT-FINISHED.
16314
16315 1998-11-03  John R. Jackson  <jrj@purdue.edu>
16316
16317         * server-src/driver.c (handle_dumper_result): do not abort a dumper
16318         that reports NO-ROOM if taper is busy since some holding disk space
16319         will eventually be released (this code it not used when PORT-DUMP is
16320         in progress).
16321
16322 1998-11-03  John R. Jackson  <jrj@purdue.edu>
16323
16324         * server-src/taper.c (write_buffer): calling lseek after every tape
16325         write is wasteful and makes utilities like lsof less useful.  Only
16326         reset the offset when the amount written is about to go over 2 GBytes.
16327
16328 1998-11-02  John R. Jackson  <jrj@purdue.edu>
16329
16330         * server-src/driver.c (main, start_degraded_mode): fix rounding problem
16331         that made the code think there was a little room for full dumps in
16332         degraded mode, and fix the code that decides whether to do a full dump
16333         in degraded mode.
16334
16335 1998-11-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16336
16337         * server-src/amstatus.pl.in: initialize variable to remove warning.
16338
16339 1998-11-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
16340
16341         * client-src/Makefile.am (CLIENT_SCRIPTS): rename to
16342         CLIENT_SCRIPTS_OPT, because *_SCRIPTS is interpreted by automake
16343         * configure.in (CLIENT_SCRIPTS): ditto
16344         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
16345
16346         * configure.in (LIBTOOL_M4): no longer defined
16347         (LIBTOOL_M4_MACRO_DIR): defined assuming CWD is top_srcdir
16348         * Makefile.am (ACLOCAL_M4_FROM_SRCDIR): relative to srcdir
16349         (ACLOCAL_M4): defined and created using ACLOCAL_M4_FROM_SRCDIR
16350         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
16351         
16352         * client-src/sendbackup.c (backup_program): rename to
16353         gnutar_program, that's the name it should have had from the
16354         beginning
16355         * client-src/sendbackup-gnutar.c (backup_program): ditto
16356
16357 1998-10-31  Michael Schmitz <mschmitz@iname.com>
16358
16359         * configure.in: let configure check whether strcasecmp is
16360         present
16361         * common-src/strcasecmp.c: new file which contains a definition
16362         of strcasecmp
16363         * common-src/amanda.h: added code to declare strcasecmp in
16364         case it's not declared in a standard header
16365
16366 1998-10-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
16367
16368         * configure.in (snprintf): arrange that it is included in the
16369         distribution automatically
16370         * common-src/Makefile.am (EXTRA_DIST): removed, not needed
16371
16372         * changer-src/Makefile.am (libexec_SCRIPTS): would only be enabled
16373         if WANT_CHG_SCSI
16374
16375         * configure.in (NO_SCSI_CHANGER_MODE): chg-scsi does not support the
16376         new FreeBSD 3.0 chio.h, so disable it if camlib.h is found.
16377         * docs/SYSTEM.NOTES (FreeBSD 3.0): add a note about this
16378         (SunOS 4.x): libtool will no longer find incorrect library versions
16379
16380 1998-10-30  John R. Jackson  <jrj@purdue.edu>
16381
16382         * common-src/security.c (bsd_security_ok): change error message to
16383         reflect that it is a host name we were looking up rather than an
16384         address (also makes the two similar messages unique).
16385
16386 1998-10-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
16387
16388         * docs/SYSTEM.NOTES: Debian 2's dump uses /var/lib/dumpdates 
16389
16390 1998-10-28  John R. Jackson  <jrj@purdue.edu>
16391
16392         * recover-src/set_commands.c (set_host): if the host given by the user
16393         does not work, try the canonical name and aliases returned by
16394         gethostbyname.
16395
16396 1998-10-28  John R. Jackson  <jrj@purdue.edu>
16397
16398         * configure.in: use "df /" instead of just "df" when trying to find
16399         the device that has the root file system to avoid things like NFS
16400         hangs that df sometimes suffers from.
16401
16402 1998-10-27  Mike Grupenhoff <kashmir@munge.com>
16403
16404         * common-src/stream.c (stream-client): add a 'localport' argument
16405         in which we can get the port this stream is bound to locally
16406         * common-src/stream.h (stream-client): update prototype
16407         * server-src/dumper.c: update stream-client calls
16408
16409 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16410
16411         * client-src/amandad.c (main): better logging of received packet,
16412         do not send a P_ACK when the received packet is not a P_REQ.
16413
16414 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16415
16416         * client-src/amandad.c (main): terminate immediately if started
16417         by a P_ACK packet without sending a P_NAK packet.
16418
16419 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16420
16421         * server-src/conffile.h (dtimeout): new keyword 
16422         * server-src/conffile.c (dtimeout): ditto
16423         * server-src/dumper.c: use dtimeout instead of READ_TIMEOUT
16424         * example/amanda.conf.in: document it
16425         * man/amanda.8.in: ditto
16426         * NEWS: ditto
16427
16428 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16429
16430         * server-src/dumper.c (sendbackup_response): a nak error will
16431         be a TRY-AGAIN instead of a FAILED.
16432
16433 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16434
16435         * server-src/amlabel.c: move declaration of vtbl_no, datestr
16436         and slotcommand to the main function.
16437
16438 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16439
16440         * server-src/amlabel.c: remove declaration of pname.
16441
16442 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16443
16444         * server-src/amcheckdb.sh.in: modify to match new tapelist file
16445         format (keyword reuse and no-reuse). Probably no-one use this
16446         program.
16447
16448 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16449
16450         * server-src/driver.c (handle_dumper_result): Add sleep time
16451         when a dumper failed, it could be a temporary network problem,
16452         such as NIS or NFS, better wait a few seconds before retrying.
16453
16454 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16455
16456         * server-src/driverio.h: remove declaration of argc et argv.
16457         * server-src/driverio.h (getresult): add parameters result_argc, 
16458         result_argv and max_arg.
16459         * server-src/driverio.c (getresult): use new parameters.
16460         * server-src/amflush.c (flush_holdingdisk, run_dumps): declare
16461         and use result_argc and result_argv instead of global variables
16462         argc and argv.
16463         * server-src/driver.c (main, handle_taper_result, 
16464         handle_dumper_result, dump_to_tape): ditto
16465
16466 1998-10-24  John R. Jackson  <jrj@purdue.edu>
16467
16468         * server-src/amstatus.pl.in: do not be quite so accurate in matching
16469         the log file lines since messages may be intermixed.  Turn on perl
16470         -w switch and make first cut at cleaning up warnings.
16471
16472 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16473
16474         * server-src/driverio.h: remove datestamp declaration.
16475         * server-src/amcheck.c: remove 'extern' to datestamp declaration.
16476         * server-src/amflush.c: declare datestamp.
16477         * server-src/amtape.c: remove 'extern' to datestamp declaration.
16478         * server-src/driver.c: declare datestamp.
16479         * server-src/dumper.c: remove 'extern' to datestamp declaration.
16480         * server-src/reporter.c: remove 'extern' to datestamp declaration.
16481
16482 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16483
16484         * server-src/driverio.h: remove declaration of tok.
16485         * server-src/amflush.c (flush_holdingdisk,run_dumps): declare
16486         tok locally.
16487         * server-src/driver.c (main, handle_taper_result, handle_dumper_result,
16488         dump_to_tape): declare tok locally.
16489
16490 1998-10-23  John R. Jackson  <jrj@purdue.edu>
16491
16492         * configure.in: disable the -E and -h dump estimate checks if $DUMP
16493         is not executable.
16494
16495 1998-10-19  John R. Jackson  <jrj@purdue.edu>
16496
16497         * server-src/amindexd.c (is_config_valid): fix core dump by moving
16498         amfree of conf_dir later in case it is needed in an error message.
16499
16500 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16501
16502         * server-src/reporter.c: remove declaration of curlinenum,
16503         curlog, curprog and curstr.
16504
16505 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16506
16507         * server-src/amflush.c (main): move declaration of diskqp from
16508         global to local.
16509
16510 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16511
16512         * server-src/amcheck.c (main): move declaration of mailout and 
16513         tempfname from global to local.
16514
16515 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16516
16517         * server-src/amadmin.c (search_logfile): remove declaration
16518
16519 1998-10-15  Mike Grupenhoff <kashmir@munge.com>
16520
16521         * server-src/amadmin.c (reuse, no-reuse): don't core dump if tape
16522         label not found
16523
16524 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16525
16526         * server-src/conffile.h: remove declaration of holdingdisks and 
16527         num_holdingdisks, declare getconf_holdingdisks().
16528         * server-src/conffile.c: define getconf_holdingdisks(),
16529         * server-src/holding.c: use getconf_holdingdisks
16530         * server-src/find.c: ditto
16531         * server-src/amcheck.c: ditto
16532         * server-src/amflush.c: ditto
16533         * server-src/driver.c ditto
16534
16535 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16536
16537         * server-src/driver.c: remove verbose and force_parameters
16538         variables.
16539
16540 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16541
16542         * server-src/dumper.c: remove declaration of pid.
16543         * server-src/dumper.c(do_dump): move declaration of runtime, 
16544         dumptime, compresspid, indexpid and killerr from global to local.
16545
16546 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16547
16548         * server-src/planner.c: remove declaration of total_waiting and
16549         result_socket.
16550         * server-src/planner.c(main): move declaration of initial_size from
16551         global to local.
16552
16553 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16554
16555         * server-src/driverio.h,server-src/driver.c: move declaration
16556         of big_dumpers, degraded_mode and reserved_space from 
16557         driverio.h to driver.c
16558
16559 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16560
16561         * server-src/driverio.h (optionstr): remove declaration
16562
16563 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16564
16565         * configure.in (SAMBA_CLIENT): fix typo
16566
16567 1998-10-14  John R. Jackson  <jrj@purdue.edu>
16568
16569         * restore-src/amrestore.c (read_file_header): make a couple of error
16570         messages clearer that they refer to problems with a header rather
16571         than the image data.
16572
16573 1998-10-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
16574
16575         * client-src/Makefile.am (libamclient_a_SOURCES): missing since
16576         clean-up; re-added
16577
16578 1998-10-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16579
16580         * docs/INTERNALS (driver and dumper): document <dumpdate> in 
16581         FILE-DUMP and PORT-DUMP request, document <chunksize> in 
16582         FILE-DUMP request.
16583
16584 1998-10-12  John R. Jackson  <jrj@purdue.edu>
16585
16586         * server-src/amtape.c (usage, main, show_device): apply patch from
16587         Chris Jones <cjones@clydesdale.math.montana.edu> to support "device"
16588         as an option to return the drive device name as reported by the
16589         changer.
16590         * man/amtape.8: document the new "device" option.
16591         * server-src/amverify.sh.in: use the new amtape "device" option to
16592         better handle tape changers.  Overhaul for general cleanup and some
16593         security issues, plus amverify now tries to support non-tar images.
16594         * man/amverify.8.in: document non-tar image issues.
16595
16596 1998-10-08  John R. Jackson  <jrj@purdue.edu>
16597
16598         * example/amanda.conf.in: fix runspercycle example and comments
16599
16600 1998-10-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
16601
16602         * configure.in (SAMBA_CLIENT): try to find it by default; minimal
16603         checking
16604         * client-src/Makefile.am (WANT_SAMBA): use automake conditionals to
16605         enable findpass.o
16606         * docs/SAMBA: document that --with-smbclient is no longer required
16607         to enable SAMBA support
16608         
16609         * docs/FAQ: about inconsistencies in active filesystems
16610
16611 1998-10-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16612
16613         * docs/DUMPER-API: add `no-record' option to the `backup' command.
16614
16615 1998-10-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16616
16617         * docs/DUMPER-API: subdivise section 3.1.
16618
16619 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16620
16621         * docs/DUMPER-API: New `index-<mode>' options.
16622         define `support parse-estimate' and `support parse-backup' subcommand.
16623         New 'estimate-direct', `estimate-parse', `backup-direct' and
16624         `backup-parse' options.
16625         Remove PARSE keyword from estimate and backup command.
16626
16627 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16628
16629         * docs/DUMPER-API: define PARSE keyword in stderr of the backup
16630         command
16631
16632 1998-10-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
16633
16634         * man/Makefile.am (EXTRA_DIST): make sure the man-pages that are not 
16635         generated by autoconf get into the distribution
16636
16637 1998-10-02  Josef Karthauser  <joe@pavilion.net>
16638
16639         * changer-src/chg-chio.pl.in (getTapeParams): fix regular expression 
16640         for $line; the trailing `s' of slots was missing
16641
16642 1998-10-02  John R. Jackson  <jrj@purdue.edu>
16643
16644         * server-src/amstatus.pl.in: fix error message.
16645
16646 1998-10-02  John R. Jackson  <jrj@purdue.edu>
16647
16648         * server-src/taper.c (write_file): fix a problem with tha taper
16649         stats where the times were all the same.  The wallclock_str function
16650         returns a pointer to a static area so it cannot be called more
16651         than once as an argument to a function.
16652
16653 1998-10-01  John R. Jackson  <jrj@purdue.edu>
16654
16655         * common-src/protocol.c (parse_integer): allow negative numbers.
16656
16657 1998-10-01  John R. Jackson  <jrj@purdue.edu>
16658
16659         * server-src/amstatus.pl.in: add timestamps.
16660
16661 1998-10-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
16662
16663         * docs/DUMPER-API: define `support index', to be used instead of the
16664         previous `index-*' sub-commands
16665
16666 1998-09-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
16667
16668         * server-src/Makefile.am (libexec_PROGRAMS, sbin_SCRIPTS): don't use 
16669         backslashes for continuation; this seems to break automake :-(
16670
16671 1998-09-30  John R. Jackson  <jrj@purdue.edu>
16672
16673         * man/amanda.8.in: minor typo in "reserve" description.
16674
16675 1998-09-29  John R. Jackson  <jrj@purdue.edu>
16676
16677         * server-src/taper.c (end_tape): do not rewind the tape when done.
16678
16679 1998-09-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
16680
16681         * configure.in (WANT_CLIENT, WANT_RESTORE, WANT_SERVER, 
16682         WANT_RECOVER, WANT_TAPE, WANT_AMPLOT, WANT_CHG_SCSI): automake
16683         conditionals
16684         * amplot/Makefile.am: use them
16685         * changer-src/Makefile.am: ditto
16686         * client-src/Makefile.am: ditto
16687         * common-src/Makefile.am: ditto
16688         * man/Makefile.am: ditto
16689         * recover-src/Makefile.am: ditto
16690         * restore-src/Makefile.am: ditto
16691         * server-src/Makefile.am: ditto
16692         * tape-src/Makefile.am: ditto
16693
16694         * Makefile.am: don't print commands that work around old aclocal bug
16695
16696         * docs/DUMPER-API: remove environment variables, and mention a
16697         program that will help translating disklist entries to device names, 
16698         mount points and filesystem types
16699
16700         * recover-src/extract_list.c (extract_files_child): do not crash
16701         after failing to read the dump file header
16702         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
16703
16704 1998-09-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
16705
16706         * server-src/taper.c (taperscan_slot): initialize scan_datestamp, to
16707         avoid amfree of uninitialized pointer
16708         Reported by Lance A. Brown <brown9@niehs.nih.gov>
16709
16710 1998-09-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
16711
16712         * docs/DUMPER-API (USER, GROUP): detailed security mechanisms
16713         (estimate, estimate-parse): can print `KILL' after the estimate
16714         
16715         * docs/DUMPER-API: various suggestions from Eric Siegerman
16716         <erics@now.com> and some explanations added
16717         
16718 1998-09-27  Andy Farkas  <andyf@speednet.com.au>
16719
16720         * man/amlabel.8.in (labelstr): fix typo
16721
16722 1998-09-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
16723
16724         * recover-src/extract_list.c (extract_files_child): fix-up
16725         no_initial_params if password or domain information is not found
16726         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
16727
16728         * docs/DUMPER-API: extended `index' to `index-from-output' or
16729         `index-from-image', as suggested by Dale Hagglund <rdh@best.com>.
16730         Explained that the dumptype option `program' is the name of the
16731         wrapper program
16732
16733 1998-09-25  John R. Jackson  <jrj@purdue.edu>
16734
16735         * configure.in: fix --with-dump-honor-nodump test.  Patch by
16736         Jonas Oberg <jonas@coyote.org>.
16737
16738 1998-09-24  John R. Jackson  <jrj@purdue.edu>
16739
16740         * example/disklist: document the "spindle" and "interface" fields.
16741         Reported by Brendan M Coffey <bcoffey@connix.com>.
16742
16743 1998-09-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
16744
16745         * docs/DUMPER-API: added draft description of the DUMPER API
16746         * Makefile.am (EXTRA_DIST): add it to the distribution
16747
16748         * config/acinclude.m4 (AC_VALIDATE_CACHE_SYSTEM_TYPE): make sure
16749         cached values for host, build and target system types match with the
16750         guessed ones
16751         * configure.in: use it
16752
16753 1998-09-23  John R. Jackson  <jrj@purdue.edu>
16754
16755         * server-src/amstatus.pl.in: sort the host and partition names.
16756         From David Wolfskill <dhw@whistle.com>.
16757
16758 1998-09-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
16759
16760         * server-src/taper.c (getcmd): typo in last DEBUGging patch
16761
16762 1998-09-22  Tim Perkins  <Tim.Perkins@ddg.phar.cam.ac.uk>,  Alexandre Oliva <oliva@dcc.unicamp.br>
16763
16764         * client-src/selfcheck.c (check_disk): fix VDUMP auto-detection
16765
16766 1998-09-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
16767
16768         * changer-src/chg-mtx.sh.in: replace rew with rewind
16769         * changer-src/chg-zd-mtx.sh.in: ditto
16770         Reported by Henning Holtschneider <hh@loca.net>
16771
16772         * client-src/sendsize.c: remove usage of #error
16773         Reported by Jay Orr <orr@vss.fsi.com>
16774
16775 1998-09-21  John R. Jackson  <jrj@purdue.edu>
16776
16777         * man/amanda.8.in: document the new "tapebufs" parameter.
16778
16779 1998-09-21  Kelly Setzer  <setzer@telalink.net>
16780
16781         * server-src/taper.c (NBUFS): replaced with conf_tapebufs
16782         (THRESHOLD): now means `empty bufs' instead of `full bufs'
16783         * server-src/conffile.c: add support for the "tapebufs" option
16784         * server-src/planner.c: ditto
16785         * examples/amanda.conf.in: add sample "tapebufs" entry
16786
16787         * server-src/amlabel.c (main): adds entry to tapelist with date
16788         19700101
16789
16790 1998-09-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
16791
16792         * server-src/taper.c (getcmd): print DEBUGging output to stderr
16793         Reported by Henning Holtschneider <hh@loca.net>
16794
16795 1998-09-19  Eric Doutreleau <Eric.doutreleau@int-evry.fr>
16796
16797         * server-src/driverio.h (MAX_DUMPERS): increased from 15 to 63 in
16798         order to launch more dumper in parallel
16799         * example/amanda.conf.in (inparallel): Add the fact that it is
16800         limited by MAX_DUMPERS
16801
16802 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
16803
16804         * common-src/Makefile.am (libamanda_la_LDFLAGS): use libtool
16805         -release instead of -version_info, so as to encode the Amanda
16806         release number in the library name.  Problems related with
16807         pre-installed libraries should disappear, and separate releases can
16808         now be installed into the same directory without the risk of one
16809         using libraries from the other.
16810
16811 1998-09-18  Michael C. Povel  <Michael.Povel@hub.de>
16812
16813         * changer-src/chg-scsi.c (wait_ready): new function; keeps retrying
16814         until success or timeout
16815         (ask_clean, main): use it
16816
16817 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
16818
16819         * client-src/selfcheck.c (check_options): don't require runtar for
16820         SAMBA backups
16821         
16822         * client-src/rundump.c: fix support for VDUMP-only installation
16823         * client-src/selfcheck.c (check_options): fix detection of advfs
16824         * client-src/sendsize.c (getsize_dump): ditto
16825         * client-src/sendbackup-dump.c (start_backup): ditto
16826         Reported by Tim Perkins <Tim.Perkins@ddg.phar.cam.ac.uk>
16827
16828 1998-09-16  John R. Jackson  <jrj@purdue.edu>
16829
16830         * man/amadmin.8.in: document that "hostname" is optional for "info".
16831         Reported by David Wolfskill <dhw@whistle.com>.
16832
16833 1998-09-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
16834
16835         * docs/FAQ: common compile-time and link-time errors
16836
16837 1998-09-11  John R. Jackson  <jrj@purdue.edu>
16838
16839         * server-src/tapefile.c (lookup_last_reusable_tape): use new
16840         calling sequence that passes how old a tape to return.  Remove
16841         lookup_previous_reusable_tape().
16842         * server-src/tapefile.h (lookup_last_reusable_tape): use new
16843         calling sequence that passes how old a tape to return.  Remove
16844         lookup_previous_reusable_tape().
16845         * server-src/amadmin.c (tape): use new lookup_last_reusable_tape
16846         calling sequence.
16847         * server-src/amcheck.c (taper_scan, start_server_check): use new
16848         lookup_last_reusable_tape calling sequence.
16849         * server-src/amflush.c (confirm): use new lookup_last_reusable_tape
16850         calling sequence.
16851         * server-src/amtape.c (taper_scan): use new lookup_last_reusable_tape
16852         calling sequence.
16853         * server-src/reporter.c (output_tapeinfo): use new
16854         lookup_last_reusable_tape calling sequence.
16855         * server-src/taper.c (taper_scan): use new lookup_last_reusable_tape
16856         calling sequence.
16857
16858 1998-09-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
16859
16860         * client-src/sendbackup-gnutar.c (re_table): ignore
16861         `load_client_codepage' message from SAMBA
16862
16863 1998-09-11  John R. Jackson  <jrj@purdue.edu>
16864
16865         * server-src/amstatus.pl.in (all): fix USE_VERSION_SUFFIXES=yes
16866         problems.  Reported by David Eckelkamp <davide@locutus.tradewave.com>.
16867
16868         * man/amstatus.8.in (all): fix minor typos.
16869
16870 1998-09-10  John R. Jackson  <jrj@purdue.edu>
16871
16872         * configure.in (LFS): add code that might support configuring large
16873         files on HP-UX.
16874
16875 1998-09-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
16876
16877         * server-src/conffile.c (dump_configuration): runspercycle is not a
16878         member of dumptype_t
16879         (init_holdingdisk_defaults): init chunksize with documented default,
16880         not -1, because it wouldn't be recalculated
16881
16882         * docs/INSTALL: URL for SAMBA was broken; note about 1.9.18p10 bug
16883
16884 1998-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16885
16886         * docs/SAMBA: 1.9.18p10 has a bug
16887
16888 1998-09-09  Terje Malmedal  <tm@funcom.com>
16889
16890         * common-src/stream.c (stream_server, stream_client): added
16891         SO_KEEPALIVE option so we get an error if the other side crashes
16892
16893 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
16894
16895         * configure.in (CHIO): look for chio and AC_SUBST it
16896         (MT, CHS): if not found, use just the program name
16897         
16898 1998-09-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16899
16900         * server-src/planner.c (last_level): return the last level
16901         even it is still on holding disk if reserve < 100.
16902
16903 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
16904
16905         * server-src/reporter.c (divzero, divzero_wide): print `#'s on
16906         overflow
16907
16908         * server-src/amtape.c (show_init): no longer print `scanning'
16909         message
16910         (show_init_show, current_init_all): call show_init, then print the
16911         appropriate `scanning' message
16912         Reported by David Wolfskill <dhw@whistle.com>
16913
16914         * changer-src/chg-scsi.c (main): use new multi-configuration
16915         mechanism only if tape_device contains only a single digit
16916
16917 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16918
16919         * server-src/planner.c (setup_estimate): Don't write a
16920         "mismatch: no tapelist record, but curinfo next_level0" message
16921         and force a level 0 when reserve < 100.
16922
16923 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16924
16925         * server-src/holding.h (get_amanda_names): return a filetype_t
16926         instead of an int.
16927         * server-src/holding.c (get_amanda_names): return the filetype_t
16928         of the file or F_UNKNOWN if it's not an amanda file.
16929         * server-src/find.c (search_holding_disk): Use the new return 
16930         type of get_amanda_names.
16931         * server-src/amflush.c (flush_holdingdisk): Don't write a
16932         "ignoring cruft file" message for chunk files,
16933         filetype is F_CONT_DUMPFILE.
16934
16935 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16936
16937         * recover-src/extract_list.c (extract_files_child): don't write
16938         the samba password to the debug file.
16939
16940 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16941
16942         * server-src/driverio.c (update_info_dumper): set inf.command to
16943         NO_COMMAND if reserve< 100 because if you force a level 0 with
16944         'amadmin force', it will do level 0 every days until you flush them
16945         to tape.
16946
16947 1998-09-03  Matthias Urlichs    <smurf@noris.net>
16948
16949         * recover-src/uscan.l: recognize "?" as alias for "help"
16950
16951         * configure.in (MAILER): recognize "mail" as well as "Mail" and
16952         "mailx"
16953
16954         * client-src/calcsize.c (add_file_dump, add_file_unknown): only get
16955         sizes of directories and files
16956
16957         * client-src/amandates.c (start_amandates): create amandates if
16958         error is either EINTR or ENOENT
16959
16960         * common-src/dgram.c (dgram_send_addr): handle ECONNREFUSED by not
16961         dying when receiving, and retrying when sending, a packet.  The
16962         server may get this error when a client reboots and hasn't started
16963         inetd yet.
16964         * common-src/protocol.c (handle_incoming_packet): ditto
16965
16966         * server-src/driver.c (read_schedule): catch cases when the time
16967         goes negative.  Some operators have the bad habit of syncing clocks
16968         late at night. ;-)
16969
16970         * common-src/dgram.h (MAX_DGRAM): increased to 64Kb
16971         * NEWS: ditto
16972         * client-src/amandad.c (main): read the pipe from the child
16973         incrementally: the pipe buffer of many OSes is shorter than
16974         MAX_DGRAM.  Instead of SIGCHLD, note end-of-data by way of
16975         end-of-file
16976         (sigchild_jump, sigchild_flag): removed
16977         * client-src/sendbackup.c (main): instead of fork-and-exit, tell
16978         amandad to process our data by closing our end of the pipe
16979         
16980 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
16981
16982         * NEWS: another typo (too late :-(
16983
16984 1998-09-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16985
16986         * server-src/driver.c: amanda will not use an holding disk
16987         if the directory with the datestamp already exist.
16988
16989 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
16990
16991         * Amanda 2.4.1 released
16992         
16993 1998-08-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16994
16995         * NEWS: typo
16996
16997 1998-08-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
16998
16999         * docs/INSTALL: update some version numbers; SAMBA 1.9.18p10 has
17000         fixed the bug in p8; using p8 is not recommended any more
17001         * docs/SAMBA: ditto
17002
17003         * config/config.guess: updated to libtool 1.2b's, in order to
17004         auto-detect some recent architectures
17005         * config/config.sub: ditto
17006
17007         * server-src/amcleanup.sh.in (sbindir): amreport now lives in
17008         sbindir; added it to PATH and removed full pathnames to binaries
17009
17010 1998-08-27  Blair Zajac  <blair@gps.caltech.edu>
17011
17012         * configure.in: Add the directory /usr/lib/fs/vxfs to the search
17013         path where configure looks for vxdump and vxrestore.  This is for
17014         Solaris so it can automatically handle vxfs filesystems.
17015         * client-src/sendbackup-dump.c: add missing last NULL argument to
17016         newvstralloc().
17017         * server-src/dumper.c: add missing last NULL argument to
17018         newvstralloc().
17019         * NEWS: reorder 2.4.1 items into most to least important for most
17020         users.
17021         * config/acconfig.h: update comment for VXDUMP and VXRESTORE to
17022         include systems where the Veritas filesystem is used.
17023
17024 1998-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
17025
17026         * man/amanda.8.in (nofull): only level 1 incrementals
17027
17028 1998-08-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
17029
17030         * changer-src/chg-mtx.sh.in (PATH): added /usr/local/bin
17031
17032         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): added chg-zd-mtx
17033         (AC_OUTPUT): ditto
17034         * changer-src/Makefile.am (EXTRA_SCRIPTS): ditto
17035         * docs/TAPE.CHANGERS (chg-zd-mtx): documented it
17036         (chg-mtx): mentioned chg-zd-mtx
17037
17038 1998-08-20  Eric Doutreleau  <Eric.Doutreleau@int-evry.fr>
17039
17040         * changer-src/chg-zd-mtx.sh.in: new changer script for
17041         Zubkoff/Dandelion version of mtx.
17042
17043 1998-08-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
17044
17045         * docs/SAMBA: updated; documented new patch (sambatar.diff,
17046         available in the patches page) and requirements about backup user.
17047         * docs/INSTALL: documented new patch
17048
17049 1998-08-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
17050
17051         * client-src/sendsize.c (regex_s): refuse to compile if SAMBA_CLIENT
17052         and HAVE_DUMP_ESTIMATE are both defined: the regexp that matches the
17053         estimate from DU 4.0's dump also matches an output line from
17054         smbclient, that provides an incorrect estimate.
17055         * docs/SYSTEM.NOTES: document the problem
17056
17057 1998-08-14  John R. Jackson  <jrj@purdue.edu>
17058
17059         * docs/TAPE.CHANGERS: describe "advance" and clean up some spelling.
17060
17061 1998-08-13  Alexandre Oliva  <oliva@dcc.unicamp.br>, Marcel Hild  <hild@id-pro.de>
17062
17063         * configure.in (--with-portrange): validate and define PORTRANGE
17064         * example/config.site: document it
17065         * config/acconfig.h (PORTRANGE): prepare for configure define
17066         * common-src/stream.c (stream_server): use PORTRANGE to limit TCP
17067         unreserved server sockets
17068
17069 1998-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
17070
17071         * docs/FAQ: working around `dumps way too big'
17072
17073 1998-08-11  Alexandre Oliva  <oliva@dcc.unicamp.br>, Gunnar Gunnarsson  <gunnar@ki.ericsson.se>
17074
17075         * common-src/token.h (rxquote, shquote): new functions
17076         * common-src/token.c (rxquote) quotes a string into an equivalent
17077         regular expression
17078         (shquote): quotes all shell special meta-characters, so that a
17079         string can be safely passed down for shell interpretation in
17080         system() or popen()-like calls
17081         * server-src/amindexd.c (build_disk_table): quote the disk_name with 
17082         both rxquote and shquote
17083
17084 1998-08-11  John R. Jackson  <jrj@purdue.edu>
17085
17086         * changer-src/chg-manual.sh.in: put the debug file in DEBUG_DIR for
17087         security.  Clean up and enhance logging.  Fix locations of the
17088         changer files.  Source the changerfile into the script so it can
17089         override the request() function and allow alternatives to /dev/tty
17090         (e.g. E-mail, syslog).  Issue rewind before status (Solaris does
17091         not give a good status report right after a tape is loaded).
17092
17093 1998-08-10  Nick Hibma  <nick.hibma@jrc.it>
17094
17095         * changer-src/chg-chio.pl.in: move to first slot if last is unused
17096
17097 1998-08-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
17098
17099         * example/Makefile.am (EXTRA_DIST): add DIN-A4.ps
17100
17101 1998-08-07  Günter Felkel  <G.Felkel@edelmann.de>
17102
17103         * example/DIN-A4.ps: new file
17104
17105 1998-08-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
17106
17107         * tape-src/tapetype.c (initrandombytes): use random() instead of
17108         rand(), its low-order bits are more random
17109         (main): call srandom(seed) instead of srand(seed)
17110         (USE_RAND): if defined, reverts to using rand() and srand(seed)
17111
17112         * docs/FAQ: some notes about driving real tape changers
17113
17114 1998-08-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
17115
17116         * man/amreport.8.in (SYNOPSIS): replace `amtoc' with `amreport'
17117
17118 1998-08-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
17119
17120         * client-src/sendsize.c: revert 1998-08-01's change, it wouldn't
17121         even compile, as amfree() expands to a statement, not an expression, 
17122         so it cannot be used as the `increment' part of a for loop.
17123
17124         * server-src/planner.c (main): if runs_per_cycle is set to zero or
17125         negative, set it to 1, in order to avoid division by zero.
17126         * server-src/amadmin.c (balance): ditto
17127
17128 1998-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
17129
17130         * client-src/sendsize.c: replace free(line) with amfree(line),
17131         because line is not ensured to be non-NULL
17132         
17133         * docs/FAQ: amandad: error receiving message
17134         
17135         * docs/FAQ: difference between skip-full and strategy nofull
17136
17137 1998-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
17138
17139         * docs/FAQ: software or hardware compression?
17140
17141         * server-src/driver.c (adjust_diskspace): do not abort just because
17142         a holding disk file is missing
17143         (main): report warning if holding disk directory could not be
17144         created, and do not use it
17145         Reported by Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
17146
17147         * example/Makefile.am (EXTRA_DIST): add 8.5x11.ps to the
17148         distribution
17149         Reported by Jason L Tibbitts III <tibbs@hpc.uh.edu>
17150
17151         * server-src/conffile.c (get_holdingdisk): define chunksize 0 as
17152         INT_MAX/1024, and chunksize -1 as -INT_MAX/1024
17153         * server-src/driver.c (find_diskspace): accept negative chunksizes
17154         as the maximum size (in modulus) for using the holding disk
17155         * man/amanda.8.in (chunksize): document the usage of negative
17156         values, and improve the explanation of chunking
17157         * example/amanda.conf.in: ditto
17158
17159 1998-07-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
17160
17161         * docs/FAQ: disk offline
17162
17163 1998-07-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
17164
17165         * restore-src/amidxtaped.c (main): use tape_rewind() instead of
17166         running `mt'
17167
17168         * server-src/amcleanup.sh.in (reporter): update to call amreport.
17169         (amdump.<n>) update to use the same renaming technique introduced in
17170         June 30's change to amdump.
17171
17172 1998-07-25  Michael Graff  <explorer@vix.com>
17173
17174         * changer-src/Makefile.am (install-exec-hook): support $(DESTDIR)
17175         * client-src/Makefile.am (install-exec-hook): ditto
17176         * man/Makefile.am (install-data-hook): ditto
17177         * recover-src/Makefile.am (install-exec-hook): ditto
17178         * restore-src/Makefile.am (install-exec-hook): ditto
17179         * server-src/Makefile.am (install-exec-hook): ditto
17180
17181         * configure.in: link krb5 and com_err in for Kerberos support, if
17182         they exist
17183
17184 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17185
17186         * server-src/reporter.c (copy_template_file): add braces to 
17187         remove warning
17188         * tape-src/tapeio.h: declare is_zftape to remove warning in
17189         amlabel.c and taper.c
17190
17191 1998-07-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
17192
17193         * server-src/driver.c (any_delayed_disk): new variable, to ensure
17194         that we do not leave the main driver loop if there are delayed disks 
17195         but there are no active dumpers
17196         (main): instead of checking whether idle_reason is IDLE_START_WAIT,
17197         check whether there is any_delayed_disk for remaining in the loop
17198         (start_degraded_mode): set any_delayed_disk when needed
17199         Reported by Peter Walker <peter@talarian.com>
17200
17201 1998-07-23  John R. Jackson  <jrj@purdue.edu>
17202
17203         * server-src/reporter.c (main): handle LPRCMD being undefined.
17204
17205 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17206
17207         * client-src/selfcheck.c (check_suid): new function to check if a
17208         program is SUID root.
17209         * client-src/selfcheck.c (check_overall): check that runtar and
17210         rundump are SUID root.
17211
17212 1998-07-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
17213
17214         * configure.in: version number set to 2.4.1
17215
17216         * recover-src/Makefile.am (LDADD): libamtape imports symbols from
17217         libamanda, so it must be listed first
17218
17219         * changer-src/Makefile.am (LDADD): remove duplication of libamserver
17220         and libamanda, as they no longer provide symbols for each other
17221         * server-src/Makefile.am (LDADD): ditto
17222         
17223 1998-07-21  Blair Zajac  <blair@gps.caltech.edu>
17224
17225         * server-src/amrmtape.sh.in: now use amanda.conf's tapelist variable
17226         * server-src/amcheckdb.sh.in:  now use amanda.conf's tapelist variable
17227         * server-src/amfreetapes.sh.in: now use amanda.conf's tapelist variable
17228         * server-src/amtoc.pl.in: now use amanda.conf's tapelist variable,
17229         make perl4 compatible
17230
17231 1998-07-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
17232
17233         * docs/FAQ (results missing): suggestions to work around the UDP
17234         packet size limit
17235
17236 1998-07-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
17237
17238         * docs/FAQ (amrecover): a config name may have to be specified
17239         Reported by digital messiah <dmessiah@silcon.com>
17240
17241 1998-07-15  Blair Zajac  <blair@gps.caltech.edu>
17242
17243         * server-src/reporter.c (main): declare optind
17244
17245 1998-07-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
17246
17247         * configure.in: created Amanda 2.4.1 branch
17248
17249         * example/amanda.conf.in: strategy noinc is not implemented yet
17250
17251 1998-07-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17252
17253         * NEWS: new runspercycle keyword
17254         * server-src/conffile.h: new runspercycle keyword
17255         * server-src/conffile.c: new runspercycle keyword
17256         * server-src/amadmin.c (balance): new runspercycle keyword
17257         * server-src/planner.c (main): new runspercycle keyword
17258         * man/amanda.8.in: document new runspercycle keyword
17259         * example/amanda.conf.in: example for new runspercycle keyword
17260
17261 1998-07-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
17262
17263         * docs/FAQ: What to do if DUMP program is not available.
17264         * client-src/selfcheck.c (check_overall): if a needed program is
17265         missing, print an error message.
17266         Reported by Klaus Hoffmann <handatalog@csi.com>
17267
17268         * */Makefile.am: checked library version numbers, no need for update
17269         
17270         * configure.in: version number set to 2.4.1b1
17271
17272 1998-07-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
17273
17274         * docs/FAQ: new entries: how to label tapes, (not) spanning large
17275         filesystems across tapes, how to enable index generation,
17276         overwriting selected tapes, cleaning up databases, selecting tape
17277         changer.
17278         
17279 1998-07-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
17280
17281         * man/Makefile.am (EXTRA_DIST): amreport.8 is built from .8.in
17282
17283         * configure.in (AC_OUTPUT): generate chg-chio.pl
17284         * changer-src/Makefile.am (EXTRA_DIST): removed chg-chio.c
17285         * changer-src/chg-chio.c: removed, as it was confusing make
17286         
17287 1998-07-10  Nick Hibma  <nick.hibma@jrc.it>, Alexandre Oliva <oliva@dcc.unicamp.br>
17288
17289         * changer-src/chg-chio.pl.in: new script, created to replace old
17290         chg-chio written in C
17291         * docs/TAPE.CHANGERS (chg-chio): document it
17292         * changer-src/Makefile.am (EXTRA_SCRIPTS): add chg-chio
17293         (EXTRA_DIST): still include chg-chio.c, just in case it is useful
17294         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): add chg-chio
17295         
17296 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
17297
17298         * server-src/reporter.c (main): if no arguments are given, preserve
17299         original behavior; require config name otherwise.  Perform better
17300         argument checking.
17301         * example/DLT.ps (DrawHost): discard additional argument introduced
17302         in Steven Freed's modification
17303         * example/EXB-8500.ps (DrawHost): ditto
17304         * example/HP-DAT.ps (DrawHost): ditto
17305
17306         * server-src/Makefile.am (amreport_SOURCES): build from reporter.c
17307         (driver_SOURCES) removed, no longer needed
17308         * man/Makefile.am (EXTRA_DIST): added amreport.8
17309
17310 1998-07-08  Steven Freed  <sfreed@gilasoft.com>
17311
17312         * server-src/reporter.c (usage): new function
17313         (main): accept command-line arguments for selecting config name,
17314         output file, log file name to read from, postscript file to write
17315         to.
17316         (output_summary): print tape labels list, tape section numbers and
17317         dump sizes.
17318         * server-src/amdump.sh.in: run amreport
17319         * server-src/amflush.c (main): ditto
17320         (run_dumps): ditto
17321         * configure.in (BUILD_SERVER_PROGS_SBIN): add amreport
17322         (BUILD_SERVER_PROGS_LIBEXEC): remove reporter
17323         * man/amreport.8.in: new file
17324         * man/Makefile.am (man_MANS): added amreport.8
17325         * example/8.5x11.ps: new file
17326
17327 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
17328
17329         * Makefile.am (ACLOCAL_M4): fix ||/&& precedence problem
17330
17331 1998-07-07  John R. Jackson  <jrj@purdue.edu>
17332
17333         * changer-src/scsi-chio.c: move #include's so this will compile on
17334         systems without <sys/mtio.h> (e.g. AIX).
17335
17336 1998-07-06  John R. Jackson  <jrj@purdue.edu>
17337
17338         * client-src/sendsize.c (handle_dumpline): allow the dump block
17339         count estimate to be negative.  Found by Lance A. Brown
17340         <brown9@niehs.nih.gov> on NeXT.
17341
17342         * common-src/Makefile.am, common-src/security.c: add TEST code to
17343         security.c so people can do "make security" and have a test program
17344         to track down why they are getting "access as XXX not allowed from
17345         YYY@ZZZ".
17346
17347         * common-src/security.c (bsd_security_ok): allow the remote user
17348         field in .amandahosts to be empty ala .rhosts.
17349
17350 1998-07-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17351
17352         * server-src/amcheck.c (start_server_check): report space use for
17353         holding disk if a negative value is given in the use parameter.
17354
17355         * server-src/driver.c (main): compute holding disk space if 
17356         a negative value is given in the use parameter..
17357
17358         * man/amanda.8.in (use) : document negative use paramater for 
17359         holding disk.
17360
17361         * example/amanda.conf.in (use): document negative use paramater for
17362         holding disk..
17363
17364 1998-07-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
17365
17366         * man/amanda.8.in (reserve): document it
17367         * example/amanda.conf.in (reserve, gigabytes): ditto
17368         (etimeout) negative number stands for total estimate time
17369
17370         * NEWS: documented major changes since amanda 2.3.0.4
17371
17372         * docs/INSTALL: refer to patch-system for editing services and
17373         inetd.conf
17374
17375         * docs/FAQ: added entries for common amdump and amcheck errors
17376
17377         * COPYRIGHT: updated to 1998, refer to Amanda Development Team
17378         * AUTHORS: who is the Amanda Development Team
17379
17380 1998-07-03  John R. Jackson  <jrj@purdue.edu>
17381
17382         * docs/SYSTEM.NOTES: add comment about using the variable device name
17383         on IRIX.  Otherwise, IRIX will write 4KByte physical blocks, which
17384         it appears to read OK, but not if you take the tape to some other
17385         system that does what you tell it.  Discovered by Steve E. Khoo
17386         (steve@gordian.com).
17387
17388 1998-07-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
17389
17390         * server-src/planner.c (setup_estimate): handle new disks with
17391         skip-full correctly.
17392
17393         * Makefile.am (aclocal.m4): must depend on libtool.m4, so as to
17394         force it to be newer on distributions.
17395
17396 1998-07-01  John R. Jackson  <jrj@purdue.edu>
17397
17398         * server-src/driverio.h: change reserved_space to unsigned long to
17399         match free_space() and avoid a compiler warning.
17400
17401 1998-06-30  John R. Jackson  <jrj@purdue.edu>
17402
17403         * man/amanda.8.in: fix amrecover synopsis and add a short description.
17404         Noted by Brendan M Coffey <bcoffey@connix.com>.
17405
17406         * example/amanda.conf.in: make tapecycle example fit dumpcycle value
17407         better.  Noted by Tom.Croll@radisys.com and suggested comments from
17408         Alexandre Oliva <oliva@dcc.unicamp.br>.
17409
17410 1998-06-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
17411
17412         * server-src/amdump.sh.in (maxdays): set up with tapecycle+2
17413         (days): loops from 1 to $maxdays, but stops if amdump.$days does not 
17414         exist, so that we only rename amdump log files that exist.  This
17415         prevents too long loops in case of an infinite tapecycle.
17416         Reported by Nick Hibma <nick.hibma@jrc.it>
17417
17418 1998-06-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
17419
17420         * common-src/security.c (bsd_security_ok): accept case mismatches
17421         when comparing hostnames and usernames from amandahosts, and assume
17422         localuser if username is missing.
17423         * docs/INSTALL: clarify BSD security and amandahosts, WRT to
17424         non-FQDNs.
17425         Reported by Chris Shenton <chris@absinthe.shenton.org>
17426
17427         * server-src/reporter.c (output_tapeinfo): degraded mode no longer
17428         implies incremental dumps only.
17429         Reported by Randy Dees <rrd@amherst.com>
17430
17431 1998-06-26  John R. Jackson  <jrj@purdue.edu>
17432
17433         * configure.in: fix BSD/OS Kerberos include file location.
17434
17435 1998-06-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
17436
17437         * config/ltmain.sh: install official patch to libtool 1.2a
17438
17439         * configure.in: do not set max file size for Solaris 2.6, it is no
17440         longer used.
17441
17442 1998-06-26  Tim McNerney  <mumbly@netcom.com>
17443
17444         * common-src/fileheader.c (parse_file_header): accept missing
17445         PROGRAM in tape section header, for backward compatibility.
17446
17447 1998-06-25  Blair Zajac  <blair@gps.caltech.edu>
17448
17449         * server-src/amflush.c: fix mismatch arguments to error()
17450
17451 1998-06-24  Steven Freed  <sfreed@gilasoft.com>
17452
17453         * configure.in (dump-honor-nodump): fix test for `-h' support
17454
17455 1998-06-24  Scott Mesches  <mesches@allison.Colorado.EDU>
17456
17457         * example/DLT.ps: new file
17458         * example/Makefile.am (EXTRA_DIST): add DLT.ps
17459
17460 1998-06-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
17461
17462         * Makefile.am (EXTRA_DIST): moved CHANGES into ChangeLog
17463
17464         * recover-src/extract_list.c (extract_files_child): handle
17465         IS_UNKNOWN dumptype as IS_DUMP
17466
17467         * client-src/sendsize.c (getsize_dump): always create pipe for
17468         killpgrp.
17469
17470         * client-src/amandad.c (sendnak): report `UNKNOWN' error if str is
17471         NULL.
17472
17473         * amplot/amplot.awk: ignore `interface-state'
17474         Reported by Peter Walker <peter.walker@talarian.com>
17475
17476 1998-06-24 Alexandre Oliva <oliva@dcc.unicamp.br>
17477
17478         * server-src/amrmtape.sh.in: enable verbose by default; implement -q 
17479         for quiet.
17480         * man/amrmtape.8.in: ditto
17481         Suggested by Nick Hibma  <nick.hibma@jrc.it>
17482         
17483 1998-06-24  Nick Hibma  <nick.hibma@jrc.it>
17484
17485         * server-src/amrmtape.sh.in: better error reporting for incorrect
17486         database entries
17487
17488 1998-06-24  Dan Swartzendruber <dswartz@druber.com>
17489         
17490         * server-src/conffile.h (RESERVE): new keyword.
17491         * server-src/conffile.c (RESERVE): ditto.
17492         (getconf_seen): recognize "reserve" keyword.
17493         (getconf_int): return value of "reserve" keyword.
17494         (read_confline): parse "reserve" line.
17495         * server-src/driverio.h (reserved_space): new global
17496         * server-src/driver.c (main): compute holding disk space to reserve
17497         for degraded dumps.
17498         (start_degraded_mode): if we haven't hit degraded mode reservation
17499         limit, allow full dump.
17500         
17501 1998-06-18  Blair Zajac <blair@gps.caltech.edu>
17502
17503         * config/ltconfig: update to 1.2a
17504         * config/ltmain.sh: update to 1.2a
17505         * config/libtool/libtool.m4: update to 1.2a
17506
17507 1998-06-17  John R. Jackson  <jrj@purdue.edu>
17508
17509         * server-src/dumper.c (write_tapeheader): comment out some variables
17510         to get rid of a compiler warning.
17511
17512 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17513
17514         * server-src/amadmin.c (bumpsize): write wrong equation for bump
17515         threshold.
17516
17517 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17518
17519         * man/amanda.8.in: add info about the chunksize parameter
17520         of the holdingdisk.
17521         * man/amanda.8.in: add info about amstatus command
17522
17523 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
17524
17525         * common-src/Makefile.am (libamanda_version): updated
17526         * tape-src/Makefile.am (libtape_version): updated
17527         * client-src/Makefile.am (libclient_version): updated
17528         * server-src/Makefile.am (libserver_version): updated
17529
17530         * server-src/taper.c (read_file): if switching to the next file
17531         fails or there's no next file, do not send a `W' to taper writer.
17532
17533         * server-src/changer.h (changer_clean): new function
17534         * server-src/changer.c (changer_clean): ditto
17535
17536 1998-06-13  Michael C. Povel  <mcp@ladyada.han.de>
17537
17538         * changer-src/chg-scsi.c: added ejetct_tape and sleep for external
17539         tape devices, and changed some code to allow multiple drives to use
17540         their own slots. Also added support for reserverd slots.
17541         * changer-src/libscsi.h (get_clean_state, eject_tape): new functions 
17542         * changer-src/scsi-chio.c (get_clean_state, eject_tape): implemented 
17543         using Linux ioctls
17544         * changer-src/scsi-hpux.c (get_clean_state, eject_tape): do nothing, 
17545         until someone implements them
17546         * changer-src/scsi-proto.c (get_clean_state, eject_tape): new
17547         functions
17548         * docs/TAPE.CHANGERS: document new configuration file format
17549         * example/chg-scsi.conf: sample configuration file
17550         * example/Makefile.am: add chg-scsi.conf to the distribution
17551         * server-src/amtape.c: add support for `clean' command
17552
17553 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
17554
17555         * docs/SYSTEM.NOTES: clean-up
17556
17557         * docs/FAQ: new file
17558         * docs/SUNOS4.BUG: removed
17559         * Makefile.am: remove docs/SUNOS4.BUG and add docs/FAQ
17560         
17561         * example/amanda.conf.in (bumpmult): fixed equation for threshold
17562         * man/amanda.8.in (bumpsize): fix threshold example.
17563         problem reported by Brian McEntire <brianm@fsg1.nws.noaa.gov>
17564
17565         * server-src/logfile.c (open_log): open log file with mode 0600.
17566
17567         * server-src/amdump.sh.in: refuse to run if either amdump or log
17568         exist in logdir.
17569         * server-src/amflush.c (main): refuse to run if log exists.
17570         * server-src/amcheck.c (start_server_check): do not perform tape
17571         testing if amdump and/or log exist in logdir.
17572
17573 1998-06-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17574
17575         * restore-src/amrestore.c (restore): fixed -p flag (and amrecover)
17576         should not dup2( A, B ); aclose(A) when A == B
17577
17578 1998-06-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
17579
17580         * client-src/sendsize.c (getsize_dump): use killpgrp
17581         unconditionally, so we're not bitten by setuid dump programs.
17582         * client-src/killpgrp.c: enable unconditionally.
17583
17584         * tape-src/tapetype.c: new program: calculates tapetype parameters.
17585         * tape-src/Makefile.am (EXTRA_PROGRAMS): added tapetype.
17586         * example/amanda.conf.in: point to tapetype program.
17587
17588 1998-06-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
17589
17590         * docs/SAMBA: added notes about (not) backing up registry files and
17591         ACLs with SAMBA.
17592         * docs/INSTALL: point to docs/SAMBA for usage and limitations
17593
17594 1998-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
17595
17596         * configure.in (amanda_cv_print_command): removed; using PRINT
17597         instead.
17598
17599 1998-06-07  Todd Kover <kovert@omniscient.com>
17600
17601         * add --with-owner option to allow installed binaries to be owned
17602         by someone other than the amanda user
17603
17604         * add GB as valid holding disk size.
17605
17606 1998-06-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17607
17608         * server-src/amadmin.c (info): don't need to specify an host.
17609
17610         * server-src/amadmin.c (due): new due command to write when a
17611         filesystem is due ffor next level 0 or how much days it is
17612         overdue.
17613
17614         * server-src/amstatus.pl.in (dump_size): new function to report
17615         the size of a dump split on multiple files.
17616
17617 1998-06-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17618
17619         * recover-src/extract_list.c (read_buffer): write a message
17620         when amrecover timeout waiting for amrestore to send the dump.
17621
17622 1998-06-04  John R. Jackson  <jrj@purdue.edu>
17623
17624         * client-src/getfsent.c (main): use a dynamically allocated string
17625         for the lookups since dev2rdev alters it on the fly and some systems
17626         drop core for trying to write into read only memory.  Also add the
17627         capability of passing additional lookups on the command line.
17628
17629         * common-src/Makefile.am, common-src/file.c (main),
17630         common-src/token.c (main), server-src/conffile.c (dump_configuration,
17631         main), server-src/diskfile.c (main), server-src/infofile.c (main):
17632         Clean up compiler warnings in the test programs and make them all
17633         work again.
17634
17635 1998-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
17636
17637         * amplot/amplot.sh.in: modified command line argument parsing
17638         mechanism, so as to prevent shell quoting problems and unportable
17639         constructs.
17640         Reported by Chris Jones <cjones@clydesdale.math.montana.edu>
17641
17642 1998-06-02  John R. Jackson  <jrj@purdue.edu>
17643
17644         * server-src/amcheck.c (main), server-src/reporter.c (main): make
17645         sure internal errors, such as the mail command failing, get
17646         reported.  In the case of amcheck, they go to stderr even if -m is
17647         set since there didn't seem to be anyplace better to do so and if
17648         this is running from a cron job it might get back to a real user.
17649         For reporter, the errors go to .../amdump along with everything
17650         else from the amdump script, and they should also go to .../log,
17651         except since it's reporter that's having the trouble, they probably
17652         will not make it into the mail report.
17653
17654 1998-06-01  John R. Jackson  <jrj@purdue.edu>
17655
17656         * client-src/killpgrp.c: clean up minor compiler warnings by not
17657         building term_kill_{soft,hard} unless they are needed.
17658
17659         * server-src/driverio.c (dumper_cmd): clean up compiler warning
17660         in printf format by forcing argument to always be long and using %ld.
17661
17662         * server-src/driver.c: include <holding.h> to get declaration for
17663         unlink_holding_files and avoid a compiler warning.
17664
17665         * common-src/amanda.h, common-src/match.c (validate_glob, match_glob,
17666         glob_to_regex), recover-src/amrecover.h, recover-src/extract_list.c
17667         (add_glob, add_regex, add_file, delete_glob, delete_regex,
17668         delete_file), recover-src/help.c (help_list), recover-src/uparse.y,
17669         recover-src/uscan.l, man/amrecover.8.in: add shell wildcard support
17670         for the add/delete amrecover commands.  Add addx/deletex commands
17671         that use regular expressions.  Support more characters in path names.
17672
17673 1998-06-01  Dan Swartzendruber  <dswartz@druber.com> via John R. Jackson
17674
17675         * server-src/amlabel.c (main): check argc before referencing too
17676         far into argv for "-f".
17677
17678 1998-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
17679
17680         * docs/SYSTEM.NOTES: advise Linux users to use dump without
17681         setuid/setgid
17682
17683         * docs/INDEXING: update dumptype syntax
17684
17685 1998-05-29  John R. Jackson  <jrj@purdue.edu>
17686
17687         * server-src/amindexd.c (uncompress_file, process_ls_dump,
17688         build_disk_table, is_dir_valid_opaque, opaque_ls): fix file
17689         descriptor leak, log the amadmin find command, fix error reporting
17690         from routines that do not generate system errors.
17691         * common-src/amanda.h: make sure errno is saved through amfree().
17692
17693 1998-05-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
17694
17695         * docs/SYSTEM.NOTES: GNU tar must be patched on HP/UX.
17696         * patches/tar-1.12.patch: ditto.
17697
17698         * server-src/taper.c (endtape): do not log amount of used tape after 
17699         entering degraded mode.
17700
17701         * client-src/sendsize.c (getsize_dump): pass at least argv[0] to
17702         killpgrp.
17703
17704 1998-05-28  Paul R. Johnson  <prj@mit.edu>
17705
17706         * client-src/sendbackup.c (check_status): when checking whether
17707         return status 1 is valid for dump, make sure it was *not* tar that
17708         was running.
17709
17710 1998-05-28  Tom Lear <toml@accesscom.com>, John R. Jackson  <jrj@purdue.edu>
17711
17712         * man/amcheck.8.in: document new -Maddress command line flag.
17713         * server-src/amcheck.c (usage, main): add -Maddress command line
17714         flag to send mail to a specific address instead of mailto from
17715         amanda.conf.
17716
17717 1998-05-27  John R. Jackson  <jrj@purdue.edu>
17718
17719         * man/amrestore.8: update for host/disk/date triplets.
17720         * recover-src/extract_list.c (extract_files_setup): pass datestamp
17721         argument in new position and without -d.
17722         * restore-src/amidxtaped.c (main): remove -d checks.
17723         * restore-src/amrestore.c (restore, usage, main): fix file descriptor
17724         leak, move datestamp to host/disk triplet and allow all to be repeated.
17725
17726 1998-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
17727
17728         * client-src/killpgrp.c (main): wait for either SIGTERM or EOF on
17729         stdin.
17730
17731         * client-src/sendsize.c (getsize_dump): close the other end of
17732         killpgrp's stdin pipe before trying to kill it, because we just
17733         can't kill it.
17734
17735         * configure.in (HAVE_HPUX_SCSI): check whether sys/scsi.h actually
17736         supports HP/UX-like changer commands.
17737
17738         * config/acconfig.h (HAVE_HPUX_SCSI): indicates HP/UX-like changer
17739         interface is supported.
17740
17741         * changer-src/scsi-hpux.c: check for HAVE_HPUX_SCSI instead of
17742         HAVE_SYS_SCSI_H.
17743
17744 1998-05-25  Allen Briggs  <briggs@canolog.ninthwonder.com>
17745
17746         * changer-src/chg-manual.sh.in (ONLINEREGEX): add `^er=0$' for
17747         NetBSD's mt
17748
17749 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
17750
17751         * client-src/sendsize.c (getsize_dump): killpgrp must be direct
17752         child of sendsize, otherwise sendsize won't be able to kill it.
17753
17754 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
17755
17756         * configure.in (bcopy, bzero, fread, fwrite, vfprintf, vprintf,
17757         vsprintf): check for these in stdlib.h
17758         (memmove): check for it in strings.h
17759         
17760         * common-src/amanda.h (memmove): fix declaration of memmove, so as
17761         to be compatible with the ones in common-src/memmove.c and
17762         regex-src/fake/memmove.c
17763         
17764         reported by Tim Potter <tpot@acsys.anu.edu.au>
17765
17766 1998-05-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
17767
17768         * client-src/sendbackup.c (check_status): when checking whether dump 
17769         returned 1, make sure it was not tar; #ifdef'ed out the code that
17770         ignores exit status 2 from gnutar (will be compiled in only if
17771         IGNORE_TAR_ERRORS is defined)
17772         * client-src/sendbackup-gnutar.c (GNUTAR active filesystem errors): 
17773         updated comment; compile in GNUTAR error messages as DMP_NORMAL if
17774         IGNORE_TAR_ERRORS is defined; compile in SMBCLIENT error messages as 
17775         DMP_NORMAL if IGNORE_SMBCLIENT_ERRORS is defined.
17776         
17777 1998-05-20  Tom Lear  <toml@accesscom.com>
17778
17779         * client-src/sendbackup.h (tarpid): new variable, used to check
17780         whether it is gnutar that is running
17781         * client-src/sendbackup-gnutar.c (start_backup): set tarpid when
17782         starting gnutar
17783         * client-src/sendbackup.c (check_status): if gnutar returns 2,
17784         ignore the error
17785
17786 1998-05-19  Jean-Louis Martineau <martineau@IRO.UMontrealCA>
17787
17788         * client-src/amandad.c: set parse_errmsg when unexpected packet
17789         * recover-src/amrecover.c: overflow in clean_pathname()
17790         * recover-src/extract_list.c: add log in delete_file().
17791         small bug when call clean_pathname()
17792         * server-src/amindexd.c: ORLD command is not working
17793         * server-src/dumper.c: fixe overflow
17794
17795 1998-05-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
17796
17797         * configure.in: do not check for MAXFILESIZE
17798         * config/acconfig.h: do not define MAXFILESIZE
17799         * server-src/conffile.c: use INT_MAX instead of MAXFILESIZE
17800         * example/amanda.conf.in: ditto
17801
17802         * server-src/driver.c (interface_state): new function; print the
17803         free bandwidth for each interface.
17804         (short_dump_state): call interface_state before holdingdisk_state
17805
17806         * ChangeLog: renamed from CHANGES.  Original entries follow.
17807
17808         fix skip-incr handling so that reporter reports SKIPPED
17809         instead of missing result.
17810         -Jim Simmons <s4i@sws6.ctd.ornl.gov>
17811
17812         split big dumps ( > MAXFILESIZE ) in multiple files on holding disk. 
17813         new chunksize parameter in holdingdisk description of 
17814         the amanda.conf file.
17815         -J-L Martineau <martineau@IRO.UMontreal.CA>
17816
17817         an amstatus command that give the current state of a run.
17818         -J-L Martineau <martineau@IRO.UMontreal.CA>
17819
17820         possibility to amflush multiple runs on one tape.
17821         possibility to select dump by datestamp in amrestore (-d datestamp).
17822         -J-L Martineau <martineau@IRO.UMontreal.CA>
17823
17824         amidxtrm keep index of all active tapes as listed in tapelist file.
17825         -J-L Martineau <martineau@IRO.UMontreal.CA>
17826
17827         the tapelist file keep every active tapes.
17828         "amadmin reuse" and "amadmin no-reuse" to mark tapes you want
17829         to keep for a long time.
17830         -J-L Martineau <martineau@IRO.UMontreal.CA>
17831
17832         amlabel will not overwrite an amanda tape.
17833         The -f flag allow to overwriting an amanda tape.
17834         -J-L Martineau <martineau@IRO.UMontreal.CA>
17835
17836         be consistent and use 1048576 as a dump size everyplace instead of
17837         100000 in some places (mostly cosmetic).  -JJ
17838
17839         negative numbers are now accepted in the configuration file
17840         parser.  -oliva
17841
17842         allow a total estimate time-out to be specified.  -oliva
17843         Suggested by Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
17844
17845         fix amtoc behavior in case of failed reads.
17846         -Niek Rijnbout <niek@knoware.nl>
17847
17848         index files are now stored in a directory tree ala curinfo instead
17849         of a flat namespace. -JJ
17850
17851         amrecover will now restore files using SAMBA.
17852         -Rob Riggs <rob@devilsthumb.com>
17853
17854         VXDUMP needs not be run as root, so it no longer enables
17855         rundump automatically.  -oliva
17856
17857         new `killpgrp' setuid-root program.  It is used to kill
17858         VDUMP, VXDUMP and XFSDUMP or with-rundump DUMP estimates in a
17859         safe manner.
17860         -Joerg Behrens <jbehren@umpa06.gwdg.de> & oliva
17861
17862         fixed amrmtape so that it will delete from tapelist only the
17863         entry that corresponds to the specified tape, not others that
17864         contain the tape name as a substring.
17865         -Nick Hibma <nick.hibma@jrc.it> & oliva
17866
17867         Added support for FreeBSD dump -h flag (honor nodump).
17868         -James E. Housley <housley@pr-comm.com>
17869
17870         Added support for ZFTAPE on Linux.
17871         -Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
17872
17873         Added support for printing tape labels.
17874         -Scott Mesches <mesches@allison.Colorado.EDU>
17875
17876         Do not let amrecover die because of SIGPIPE if the pager terminates
17877         early during a long listing.  Use the PAGER environment variable if
17878         available, else "more".  -JJ
17879
17880         Change log() calls to log_add() so it does not conflict with the math
17881         function of the same name.  Replace pname global variable with two
17882         functions to set/get.  Get rid of libamnolog.  -JJ
17883
17884         chg-chio was renamed to chg-scsi, and now it will support not
17885         only chio.h, but also tape changer interfaces available on
17886         HPUX, Solaris 2.5, IRIX and possibly others.  Currently, only
17887         chio and HPUX are implemented.
17888         -Eric Schnoebelen <eric@cirr.com>
17889
17890         Numerous bugs/errors were fixed in chg-chio/chg-scsi.  it now
17891         properly responds to -eject requests, among other things.
17892         -Eric Schnoebelen <eric@cirr.com>
17893
17894 Version 2.4.0p1
17895
17896         updated to libtool 1.2a.  -oliva
17897
17898         fix kerberos encryption to work.  -Chris Ross <cross@uu.net>
17899
17900         add --with-owner option to optionally not have things owned by
17901         the amanda user.  (meant to be in 2.4.0) -kovert
17902
17903         only call initgroups() if it is available.  -oliva
17904
17905         check whether GNUTAR_LISTED_INCREMENTAL_DIR is a directory.
17906         -oliva, reported by J.A. Gutierrez <spd@gtc1.cps.unizar.es>
17907
17908         amindexd no longer considers prefixes of hostnames as valid
17909         hostnames. -oliva
17910
17911         fix strappend2 so that it accepts a NULL first argument.
17912         -Rob Riggs <rob@devilsthumb.com>
17913
17914         pass kerberos encryption switch to client.
17915         -Fredrik Jönsson <fjo@nada.kth.se>
17916
17917         rename afree to amfree, to work around IRIX 6.4's afree.
17918         -oliva, reported Stephan P. Martin <smartin@schlund.de>
17919
17920         implement `strategy skip' just like `ignore'.
17921         -oliva,
17922         reported by Michael O'Shaughnessy <mikeo@emg.sms.siemens.com>
17923
17924         amcheck now checks whether COMPRESS_PATH is executable, which
17925         would prevent server-compression and indexing from working.
17926         -oliva, reported by Peter Schultze <peter@mbi.ucla.edu>
17927
17928         fixed dump estimate regular expression for DU 4.0.
17929         -Andreas Schmitz <schmitz@theorie.physik.uni-wuppertal.de>
17930
17931 Version 2.4.0
17932
17933         fixed memory corruption error in amtape.
17934         -oliva
17935
17936         fixed VXDUMP support.
17937         -Andrew Ivanov <ivanov@mics.msu.su> & oliva
17938
17939         typos fixed in chg-chs.
17940         -David Barr <dbarr@simplex.com>
17941
17942         chg-mtx now prints error message if tapedev or changerdev must
17943         be defined.
17944         -Adrian T. Filipi-Martin <atf3r@cs.virginia.edu>
17945
17946         fixed amflush problem, reported by Dietmar Goldbeck
17947         <dietmar@telemedia.de>  -oliva
17948
17949 Version 2.4.0-980319
17950
17951         chg-mtx should use changer-dev if specified.
17952         -Steve Khoo <steve@gordian.com>
17953
17954         flex-related backward-compatibility problem fixed.
17955         -Norman K Scherer <nsche@seros-48.hac.com>
17956
17957         ported to RISCOS 4BSD.  -Harlan Stenn <Harlan.Stenn@pfcs.com>
17958
17959         when amrecover starts up, it will warn you $CWD is not the root
17960         of the selected filesystem.  -oliva
17961
17962         removed all uses of #elif, because some C compilers won't
17963         handle it correctly. -Gunther Felkel <G.Felkel@edelmann.de>
17964
17965         fixed VDUMP-only (no DUMP defined) estimates.
17966         -Joern Behrens <jbehren@umpa05.gwdg.de>
17967
17968         ported to UnixWare.  -Jeff Moscow <jeff@rtr.com>
17969
17970         improved vxdump support so that rundump will be used for vxfs
17971         filesystems only, and it will be enabled automatically.  -oliva
17972
17973         various portability problems fixed.
17974
17975         taper will now log reason for tape error to log.<DATE> file,
17976         in addition to amdump.<n>.
17977         -Liudvikas Bukys <bukys@cs.rochester.edu>
17978
17979         amflush now correctly updates the info database.  -oliva
17980         reported by Liudvikas Bukys <bukys@cs.rochester.edu>
17981
17982         sendsize now wait()s for tar and samba child processes.  -oliva
17983         reported by Brian Morris <brian@mvhs.fuhsd.org>
17984
17985         ensure that `amadmin find' reports multiple backups performed on
17986         the same day in the correct sequence.
17987         -Liudvikas Bukys <bukys@cs.rochester.edu>
17988
17989         if backup server has multiple IP addresses, security code
17990         might reject it.  -Gunnar Gunnarsson <gunnar@ki.ericsson.se>
17991
17992         vdump would not work.  -oliva
17993
17994         kerberos support was broken.  -mike
17995
17996 Version 2.4.0-980222
17997
17998         retry tape open on AIX if it fails with EAGAIN errno.
17999         -Francois Morris <Francois.Morris@lmcp.jussieu.fr>
18000
18001         fix amrmtape so that it behaves well when files to amflush
18002         remain.  Reported by Dietmar Goldbeck <dietmar@telemedia.de>
18003
18004         retry tape rewind on FreeBSD.  -Bob Willcox <bob@prm.com>
18005
18006         read all output from amrestore otherwise, instead of the
18007         beginning of the next tape section, it would read garbage.
18008         -Terje Malmedal <tm@odin.funcom.com> & oliva
18009
18010         formatting error in amoverview fixed.
18011         -Terje Malmedal <tm@odin.funcom.com>
18012
18013 Version 2.4.0b6p4
18014
18015         use vdump to dump advfs filesystems only.  add support for vdump
18016         indexes.
18017         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk> & oliva
18018
18019         change index generation commands so that they are less prone
18020         to be fooled by blanks or strange characters in filenames.
18021         -oliva
18022
18023         check whether exclude-list file exists before calling gnutar.
18024         If it does not, log a message to debugging file and discard it.
18025         selfcheck should check for that too, and print a warning message,
18026         but this is left for a future version.  -oliva
18027
18028         fix sendbackup-gnutar crashing problem.  -oliva
18029
18030         ensure that, in case of tape failure when dumping to tape, no
18031         incremental relative to the failed backup is performed.
18032         -oliva & Liudvikas Bukys <bukys@cs.rochester.edu>
18033
18034         Fix buffer use and write() error handling in the index pipeline.
18035         -Dietmar Goldbeck <dietmar@telemedia.de>
18036         & Lars Fenneberg <lf@elemental.net>
18037
18038         new index generation commands.  -oliva
18039
18040 Version 2.4.0b6p3
18041
18042         accept curses and ncurses in addition to termcap for readline
18043         support, just as readline itself does.  -oliva
18044
18045         fix NO-ROOM handling when Kerberos encryption is enabled.
18046         -oliva & Eric Siegerman <erics@now.com>
18047
18048         patch file for automake 1.2d provided. -oliva
18049
18050         sendbackup.debug now contains the argument list of child
18051         processes. -oliva
18052
18053         wait() for child processes, such as server compressor, before
18054         accepting other commands.
18055         -Liudvikas Bukys <bukys@cs.rochester.edu>
18056
18057         amrecover will print an error message if it is not run by root.
18058         It will not crash if you `pwd' before selecting a disk.  -oliva
18059
18060         updated to libtool 1.0i. -oliva
18061
18062         fixed tape block size of vxdump on HPUX 10.20.
18063         -Andrew Ivanov <ivanov@mics.msu.su>
18064
18065         Use "a" mode instead of "w" for the fdopen of the debug file.
18066         -David Lamkin <drl@net-tel.co.uk>
18067
18068         allow multiple concurrent gnutar backups, by fixing amandates
18069         locking mechanism.
18070         -Liudvikas Bukys <bukys@cs.rochester.edu>
18071
18072         amdump should check for a hold file, as says the man-page.
18073         -oliva
18074
18075         fix automatic enabling of USE_RUNDUMP for systems that require
18076         this.  xfsdump support no longer requires USE_RUNDUMP to be
18077         defined, rundump will be enabled and used for xfs filesystems
18078         even if USE_RUNDUMP is not defined, unless XFSDUMP is not defined.
18079         This seems to have completely solved the xfsdump problems.
18080         -oliva
18081
18082         when USE_RUNDUMP is enabled, instead of checking for read or write
18083         access in selfcheck, just test for the existence of disk devices.
18084         -oliva
18085
18086         fixed code that computed the dump size when incomplete
18087         writes occurred in dumper.  -Eric Siegerman <erics@now.com>
18088
18089         amplot no longer crashes if there's no holding disk. -oliva
18090
18091 Version 2.4.0b6p2
18092
18093         fix xfsdump index generation command.
18094         -Robert Tarrall <tarrall@bamboo.colorado.edu>
18095
18096         tape device wouldn't rewind if opened O_WRONLY.
18097         -Palle Girgensohn <girgen@partitur.se> & oliva
18098
18099         use setpgid instead of setpgrp if available
18100         -Mark Woodford <woodford@uniprise.com> & oliva
18101
18102         chg-mtx will check whether slot 6 is a cleaning tape or not.
18103         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
18104
18105         amrmtape updated to text database.  -oliva
18106
18107         incorrect NO-ROOM error when dumping directly to tape fixed.
18108         -oliva
18109
18110         --with-user and --with-group become are now required.  -oliva
18111
18112         patch-system script much more configurable.  -oliva
18113
18114         amindexd must get an exact match for diskname.
18115         -Richard Kail <e8903122@student.tuwien.ac.at> & oliva 
18116
18117         fix serial number message in amflush
18118         -Liudvikas Bukys <bukys@cs.rochester.edu>
18119
18120         removed backslashes from inside macro calls.
18121         un-indented # directives.
18122         -Gregory Neil Shapiro <gshapiro@WPI.EDU>
18123
18124         bsd-security is now enabled by default.  -oliva
18125
18126         fixed estimate command for XFSDUMP.
18127         -Mark Radleigh <radleigh@image.ucr.edu>
18128         & Jeff Moskow <jeff@rtr.com>
18129
18130 Version 2.4.0b6p1
18131
18132         documented etimeout configuration option.  -oliva&jrj
18133
18134         prevent a few crashes in dumper and reporter.  -jrj
18135
18136         reporter would report the same host and disk for RESULTS MISSING.
18137         -martineau
18138
18139         fix a few file-locking configure bugs.  -oliva
18140
18141         chg-multi updates and bugfixes.
18142         -Liudvikas Bukys <bukys@cs.rochester.edu>
18143
18144 Version 2.4.0b6
18145
18146         amindexd bugfix -Jos Alsters <Jos.Alsters@sci.kun.nl>
18147
18148         New --disable-libtool configure option, for those who really don't
18149         want libraries to be installed.  Shared libraries won't be
18150         built, of course.  -oliva
18151
18152         samba-related bugfixes.
18153         -Klaus Thiele <kth@becker-software.com>
18154
18155         xfsdump, DNS and amidxtaped bugfixes. -martineau
18156
18157         exclude-list support was broken, the filename was not copied
18158         to the gnutar argument list.
18159         -Stefan Bohm <Stefan.Bohm@rp-online.de>
18160
18161         chg-chio still thought it was seagate-changer, and contained a
18162         few bugs.  -Tim Tsai <tim@futuresouth.com>
18163
18164         New file docs/RESTORE, by Daniel Moore <dmoore@jeffco.k12.co.us>
18165
18166 Version 2.4.0b5
18167
18168         Make sure amverify waits for the tape device to be ready before it
18169         starts reading each section. -oliva
18170
18171         Fix amrecover so that it accepts filenames with blanks.
18172         -J. Shirk <jshirt@ksu.edu> & oliva
18173
18174         Add a TIMEOUT config file parameter to replace the hard coded value
18175         in planner.  -Daniel David Benson <bensond@ucdavis.edu>
18176
18177         Change amrecover/amindexd/amidxtaped to require a SECURITY
18178         exchange if --with-bsd-security is enabled.  It is done on a
18179         reserved port, which means amrecover must be run as root and that
18180         amindexd/amidxtaped need an entry for the incoming amrecover in
18181         either .rhosts or .amandahosts (Kerberos is not yet supported).  --JJ
18182
18183         Make our internal TEXTDB the default database style for the infofile.
18184         If you wish to keep using a dbm style database use the configure
18185         option "--with-db={db,dbm,gdbm,ndbm}".
18186         -scott
18187
18188         Sanitise the disk name in the TEXTDB code.
18189         **NOTE** if your infofile database uses TEXTDB (which has only been
18190                  available since Amanda-2.4.0b1) and you have '/'s in the
18191                  first field in disklist you will need to 'amadmin export'
18192                  the data using the old version of Amanda, 'mv' the old
18193                  database out of the way and 'amadmin import' it back again
18194                  using the new version.  When you are happy with the new
18195                  version you may delete the old database.
18196         -scott
18197
18198         Get rid of DEV_ROOT/DEV_RROOT and figure out the raw name on the
18199         fly by trying a leading 'r' before each path element one at a time
18200         until we find a character device.  This should handle all the current
18201         cases plus things like Solaris DiskSuite that have /dev/md/rdsk/xxx
18202         names.  -JJ
18203
18204         Change kill logic in sendsize to try TERM first, then KILL if that
18205         does not get dump's attention.  This fixes a problem on AIX 4.x
18206         where dump was always getting a KILL and leaving orphaned message
18207         queues, which would eventually run the system out of resources.  -JJ
18208
18209         Extensive buffer management, bug and defensive coding overhaul
18210         including:
18211             * Use proper fgets/fread/read buffer size.
18212             * Wrote agets and areads to get a line without buffer overflow
18213               and changed most gets/fgets and some read calls to use it.
18214             * Replaced all *scanf("...%s...") with explicit pointer work.
18215             * Replaced most fixed size buffers with dynamic ones.  This has
18216               no doubt introduced some memory leaks.
18217             * Replaced most sprintf calls with vstralloc (new routine).
18218             * Added overflow checks to some remaining explicit buffer
18219               management.
18220             * Made almost all read() and write() calls into loops to handle
18221               short and broken up transfers.
18222             * Fixed potentially uninitialized fstype field.
18223             * Added more sanity checks when parsing various things, including
18224               converting some assert() calls to real code.
18225             * The pattern amtrmidx used to find old index files to delete
18226               thought the date field was YYYY-MM-DD, but it is YYYYMMDD,
18227               so no files were being deleted.
18228             * Limited the number of directories listed by amflush to 26 to
18229               avoid funny characters in the user prompt.
18230             * Changed some of the amrecover routines to soak up the rest of
18231               the continuation lines after an error.
18232             * If a dumper dies, driver still tries to send a QUIT command
18233               which fails because the file descriptor has been closed.
18234             * Wrote afree macro that calls free and then sets the pointer
18235               to NULL.  Changed most free calls to afree.
18236             * Wrote aclose/afclose/apclose macros to do the associated close
18237               and then set the argument to something invalid (-1 or NULL).
18238             * Check the file descriptor before calling FD_ISSET in dumper.
18239               Otherwise it goes to -1 on EOF and FD_* doesn't like that.
18240             * Call aclose() after FD_CLR (so the descriptor is not -1).
18241         Odds and ends:
18242             * Added some TEXTDB support code to the infofile test program.
18243             * Set it up so -DPROTO_DEBUG could come from the compiler command
18244               line instead of having to modify the source.
18245             * Added -t command line flag code to sendbackup.c to support some
18246               limited debugging.
18247             * Added a test to amcheck to see if the log file is writable
18248               (if it already exists).  During debugging, I keep leaving one
18249               around owned by root :-).
18250             * Changed upper limit on close loops from 255 to FD_SETSIZE.
18251               This probably needs some more study.
18252         -JJ
18253
18254         If krb4 auth was compiled in but not enabled, clients would hang
18255         forever.  -Aidan Cully <aidan@panix.com>
18256
18257         Make sure SAMBA will not clear archive bits when performing an
18258         incremental backup, so any incremental will be a level 1.
18259         -martineau
18260
18261         Add a LOGDIR option to amanda.conf and use it to replace the
18262         --with-logdir option to configure (this was only used for the
18263         amdump files) and the logfile option in amanda.conf.  Log
18264         files are now LOGDIR/log and amdump files are LOGDIR/amdump.
18265         Note: if there is a LOGFILE option in amanda.conf it has its
18266         filename removed and is used as the LOGDIR (eg, if you have
18267         "logfile /usr/adm/amanda/log" in amanda.conf it is translated to
18268         "logdir /usr/adm/amanda" instead).  This should not cause a
18269         problem for most sites.
18270         -scott
18271
18272         Remove --with-dbdir option from configure.  This was only used
18273         to setup things for the man pages and example files.  Oh.. and
18274         amrmtape.  Fix this as well.
18275         -scott
18276
18277         Remove --with-indexdir option from configure.  This is obtained
18278         from amanda.conf at run time.  Also fix things so that it *is*
18279         obtained from amanda.conf in all cases.
18280         -scott
18281
18282         This is no longer tested on configure.in, since it is
18283         expressly forbidden to include kernel headers under glibc,
18284         according to Matthias Urlichs <smurf@noris.de>.  However, Eric
18285         Doutreleau <ed@cti.ecp.fr> said he needed to include this
18286         header file in order to build amanda on
18287         sparc-unknown-linux-gnu.  -oliva
18288
18289         It is now possible to specify a username to be used to backup
18290         up with samba.
18291         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
18292
18293         Make sure dumper replies with ABORT_FINISHED when a PORT-DUMP
18294         is aborted because of tape error.
18295         -Michael C. Povel <Michael.Povel@hub.de>
18296
18297         Amcheck checks only for the needed features.
18298         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
18299
18300         Performance and memory-usage improvements to amrecover.
18301         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
18302
18303         Use extended regular expressions.
18304         -Noel Hunt <noel@jpmorgan.com>
18305
18306         Fixed regular expressions for samba support.
18307         -Brian Fernald <fernald@nsi.edu>
18308
18309         Fixed a few bugs that caused arithmetic exceptions in planner.
18310         -Bob Willcox <bob@luke.pmr.com>, Evan Champion
18311         <evanc@synapse.net>, scott and oliva
18312
18313         amrecover should now be able to handle GNUtar restores.
18314         -Jean-Louis Martineau <martinea@iro.umontreal.ca>, plus
18315         incremental (-G) patch by Lars Fenneberg <lf@elemental.net>
18316
18317         Ported to SINIX (Reliant Unix V5.43).
18318         -Michael Schmitz <mschmitz@iname.com>
18319
18320         Configure now looks for large file support and will use it under
18321         Solaris 2.6 and above.
18322         -Blair Zajac <blair@gps.caltech.edu>
18323
18324         Compatibility problems fixed for:
18325                 SCO OpenServer 5.0.2: Paul Gampe <paulg@twics.com>
18326
18327 Version 2.4.0b4
18328
18329         New changerfile and changerdev configuration keywords, that
18330         allow changer scripts to be configured in the main amanda
18331         configuration file.  Each changer script has been adapted, so
18332         that it uses those flags whenever possible.  Also,
18333         documentation about built-in scripts has been added to
18334         docs/TAPE.CHANGERS.  -oliva & Eric Schnoebelen
18335         <eric@egsner.cirr.com>
18336
18337         --with-debugging now accepts a directory name, where debugging
18338         files should be stored.  -John R. Jackson <jrj@cc.purdue.edu>
18339
18340         Compatibility problems fixed for:
18341                 NextStep 3.3: Fabrice GAILLARD <gaillard@ina.fr>
18342                 SCO OpenServer V5: Christopher B. Olsen <colsen@compus.com>
18343                 AIX: Georg Rehfeld <georg@wmd.de>
18344
18345         Planner would core dump if it had to delay dumps.  -Georg
18346         Rehfeld <georg@wmd.de>
18347
18348         Added patch for samba to support very long filenames.  -Todd
18349         Pfaff <todd@edge.cis.mcmaster.ca>
18350
18351         Added VXDUMP support to estimate program.  -oliva & John
18352         R. Jackson <jrj@cc.purdue.edu>
18353
18354         Fixed amflush so that it cd's to the configuration directory
18355         before invoking reporter.  -oliva
18356
18357         driver no longer opens the infofile, so a deadlock is
18358         prevented.  -oliva & John R. Jackson <jrj@cc.purdue.edu>
18359
18360         Fixed typo in sendbackup-dump that would prevent compilation
18361         if either xfsdump or vxdump were enabled.  -oliva
18362
18363         Debugging messages produced by sendbackup are no longer
18364         included in the dump stream.  -oliva
18365
18366         amrestore should wait for the child process to die before
18367         re-opening the tape device.  -Dietmar Braun
18368         <dietmar@tin-lizzy.hig>
18369
18370 Version 2.4.0b3 
18371
18372         fixed race condition in debug file open operation.  -oliva and
18373         Thomas Schmeidl
18374
18375         exclude-list and exclude-file are correctly handled by
18376         sendsize.  -oliva and Johann Klasek <jk@auto.tuwien.ac.at>
18377
18378         fix some kerberos4 problems; no longer require low ports for
18379         kerberized connections; now use amanda@REALM instead of
18380         amanda.amanda@REALM in .klogin's.  -kovert
18381
18382         amrecover no longer depends on GNU flex library.  -oliva
18383
18384         Ensure that malloc(0) is not called.  -Wolfram Schmidt
18385         <Wolfram.Schmidt@iao.fhg.de>
18386
18387         Compression is now performed where specified, and server
18388         compress best specifications are obeyed. -oliva
18389
18390         genversion now correctly recognizes the selected locking scheme.
18391         -Thomas Schmeidl <schmeidl@nwp.kwu.siemens.de>
18392
18393 Version 2.4.0b2
18394
18395         Several bugfixes by John R. Jackson <jrj@cc.purdue.edu>
18396
18397         AIX's restore support added to amrecover.  -David B. Anderson
18398         <dbanders@mail.physics.utah.edu>
18399
18400         Dump process would not be killed unless it supported the -E
18401         flag (flipped #ifdef): fixed.  -Steve Bower <sbower@raytheon.com>
18402
18403         --with-testing now supports a trailing argument, that
18404         specifies the a string to be appended to service names.  -oliva
18405
18406         Recent versions of Samba require additional arguments so that
18407         estimates and total sizes are logged to stdout, not to syslog.
18408         -Ernie Oporto <ernie_oporto@MENTORG.COM> & Norbert Holzknecht
18409         <Holzknecht@fs31.vdeh-bfi.de>
18410
18411 Version 2.4.0b1
18412
18413         Improved planner backup-delaying mechanism.  -scott
18414
18415         Concurrent estimates are now supported.  -oliva
18416
18417         Shared library support included with GNU libtool.  -oliva
18418
18419         New hard-link-based locking mechanism for operating systems
18420         that do not support standard locking system calls.  -scott
18421
18422         New configuration file format, simpler and easier to
18423         extend.  -scott
18424
18425         New curinfo database format that uses only text files.  The
18426         old dbm format is used by default, though.  -scott
18427
18428         DGUX support. -Brian Harvey <bharvey@raven.phs.com>
18429
18430         Tentative HPUX vxdump support.  -oliva
18431
18432         Integrated amgetidx into dumper/sendbackup protocol.  This
18433         ***breaks backward compatibility***!  -oliva
18434
18435         Have sendbackup-dump and sendbackup-gnutar list the actual
18436         program that should be used to restore a file from a backup
18437         instead of just listing restore or gtar. -blair&oliva
18438
18439         Have configure check for the initgroups() declaration in
18440         unistd.h in addition to grp.h and sys/types.h, which is where
18441         some OSes have the declaration. -blair
18442
18443         SAMBA backups wouldn't succeed if GNUTAR listed incrementals
18444         were enabled.  SAMBA password file can now specify workgroup
18445         and may contain comments.  -oliva
18446
18447         Fixed xfsdump support. -oliva
18448
18449         Fixed srvcompress option. -oliva
18450
18451         Fixed exclude/exclude-list support. -oliva
18452
18453         Change umask to 066 before creating index file in /tmp. -oliva
18454
18455         Fixed autoconf for gdbm on linux. -oliva
18456
18457         configure now seeks out a few possible locations for
18458         kerberos4 includes and tries to find the correct path if
18459         the kerberos bits have been installed.  It's possible for
18460         someone to just specify the root of a kerberos tree for
18461         where the bits live, as well. -kovert
18462
18463 Version 2.3.0.4
18464
18465         Have bsd_security_ok() in amandad return 1 when BSD security is
18466         not turned on.  Patch from Michael C. Grant
18467         <mcgrant@rascals.Stanford.EDU>.
18468
18469         Add a configure option, --with-db, which lets the user specify
18470         the database library to use.  The available codes to look for
18471         are db,dbm,gdbm,ndbm.  The new configure code goes to a lot
18472         more length to find pairs of header files and libraries.  If a
18473         header file exists and the library does not, but dbm_open() is
18474         found by linking against -lc, then that header file is used.
18475         Patch from Blair Zajac <blair@gps.caltech.edu>.
18476
18477         Fixed bug at line 158 where selfcheck was testing that the
18478         result returned by open() was nonzero.  The correct thing to do
18479         is check for non-negative values returned by open().  Changed
18480         the "ERROR" in line 169 to "OK" to prevent selfcheck from
18481         flagging the non-existence of /etc/amandapass as an error.
18482         Using "OK" in this line flags this condition as an informative
18483         statement rather than an error - which is to say this will be
18484         reported along with other errors but it isn't enough in itself
18485         to generate an error report.  The reason that I think this is
18486         the right fix is because although every Amanda client is
18487         capable of backing up PCs using smbclient it isn't the case
18488         that we will back up PCs with every Amanda client.  This also
18489         implies that we don't want to have /etc/amandapass files on all
18490         these machines either.  If an Amanda client does have a samba
18491         "//host/share" entry in its disklist file then selfcheck will
18492         flag the non-existence of the /etc/amandapass file on line 105
18493         when it attempts to check that partition, so I believe that
18494         this is a safe fix.  Patch from Michael Brantley
18495         <Michael-Brantley@deshaw.com>.
18496
18497         Have all calls to gethostname() leave the result in character
18498         arrays of length 1025.  This will make sure that gethostname
18499         behaves correctly.  Patch from  blair Zajac
18500         <blair@gps.caltech.edu>.
18501
18502         Have amrecover.c include history.h or readline/history.h if
18503         configure finds it.  Patch from blair Zajac
18504         <blair@gps.caltech.edu>.
18505
18506         Have Amanda use cat if gzip and compress cannot be found.  In
18507         this case, do not #define COMPRESS_FAST_OPT, COMPRESS_BEST_OPT,
18508         or UNCOMPRESS_OPT as "" since cat will look look for a file by
18509         the name of "".  Place #ifdef's around code that uses any of
18510         the _OPT defines.  Patch from Blair Zajac
18511         <blair@gps.caltech.edu>.
18512
18513         Rewrite amgetidx to use amandad instead of rsh/rcp.  amgetidx
18514         now only gets the index files from a given day.  It now takes
18515         two optionally arguments <on day> or <ago days>.  <on day> lets
18516         the user specify the day in one of the forms YYYYMMDD MMDD DD
18517         YYYY-MM-DD --MM-DD ---DD.  <ago days> gets the files from days
18518         days ago.  Have configure look for an appropriate directory to
18519         use for the temporary files on the clients.  Use /var/tmp, then
18520         /usr/tmp, and if neither of those exist, then use /tmp.  Have
18521         selfcheck check if the index holding directory has enough space
18522         in it.  Add a new program called sendindex which sends the
18523         index files.  Add the file docs/INDEXING which describes the
18524         index code.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
18525
18526         Have configure set up mt to use either the -f or the -t option
18527         depending upon the operating system.  Patch from Blair Zajac
18528         <blair@gps.caltech.edu>.
18529
18530         Include the amanda_tapetypes.txt file as docs/TAPETYPES.  File
18531         composed by Chris Stacey <chris@snrc.uow.edu.au>.
18532
18533         Allow certain dumptypes to be kicked off at specific times.
18534         Add a new, optional, parameter to the dumptype description in
18535         the config file.  The parameter is called "starttime" and takes
18536         one argument which is a time of day (local timezone) formated
18537         as either hhmm or hmm (no `.'s, no `:'s, just an integer).
18538                 define dumptype comp-user-2am {
18539                         comment "Non-root partitions on fast machines"
18540                         options compress-fast
18541                         priority medium
18542                         starttime 0200
18543                 }
18544         Any partitions listed in disklist with this dumptype will be
18545         fired off no earlier than 2am.  If 2am today is less than 43200
18546         seconds past (12 hours ago) it will assume you meant 2am today
18547         and fire the dumps off right away.  But if 2am today is more
18548         than 12 hours in the past, it will wait till 2am tomorrow.
18549         Patch from Brad Huntting <huntting@misc.glarp.com>.
18550
18551         Totally rewrite the socket buffering code for dumper.
18552         Eliminate SO_SNDTIMEO and SO_RCVTIMEO setsockopt calls.  Remove
18553         the check for HAVE_SO_SNDTIMEO from configure.  Add a new
18554         option to configure named --enable-buffered-dump to enable this
18555         code.  Patch from Brad Huntting <huntting@misc.glarp.com>.
18556
18557         Have amflush call setsid() to detach amflush from the
18558         controlling terminal.  Patch from Ken Laprade
18559         <klaprade@harris.com>.
18560
18561         Have configure correctly work on systems where dbm_open is in
18562         libc.  Patch from Farzad Farid <farzy@sgip.fr>.
18563
18564         Patches to amrmtape which remove C style comments and let the
18565         script remove a tape if there is only one tape in the tapelist
18566         file.  Patch from Andrew A. Ivanov <IVANOV@mics.msu.su>.
18567
18568         Sprintf formatting error in amgetidx fixed.  Patch from Yossi
18569         Gottlieb <yogo@xpert.com>.
18570
18571         I'm using a Sony SDT/STL-7000 4mm DAT changer.  I could not
18572         find any method of directly controlling the device, except for
18573         simply using the 'offline' mt command for advancing to the next
18574         tape.  Using this method, however, I could not go beyond the
18575         last cassette (that is, to roll back to the first one).  This
18576         means the device is currently being used as a simple gravity
18577         changer, only able to change forward.  The chg-generic.conf
18578         should list the default tape device for all slots, disable
18579         'needeject', enable 'gravity' and enable the new option named
18580         'multieject'.  Patch from Yossi Gottlieb <yogo@xpert.com>.
18581
18582         Update the example chg-generic.conf file to include comments
18583         that describe how to use the multieject feature of the script.
18584         Patch from Yossi Gottlieb <yogo@xpert.com>.
18585
18586         Protocol seems to loop when a A_TIMEOUT occurs because
18587         p->reqtries was not being decremented.  Problem noted by Neal
18588         Becker <neal@ctd.comsat.com>.
18589
18590         About half the calls to gethostname() in Amanda fail to
18591         null-terminate properly.  This patch makes them all
18592         consistent.  In addition it updates sendbackup-dump and
18593         sendbackup-gnutar so they handle USE_FQDN is a way consistent
18594         with the amindex stuff.  In particular when USE_FQDN is set,
18595         the dump clients will not truncate their hostname before
18596         putting it in the dump headers.  My patches to amflush are
18597         already in the Amanda betas so amflush should be able to match
18598         up both FQDN and non-FQDN clients against FQDN and non-FQDN
18599         disklist files.  I also fixed an error message that was
18600         attributed to gethostname when it actually came from
18601         getpeername.  Patches from James Mathiesen
18602         <james@nyc.deshaw.com>.
18603
18604         I have run into the problem, on a Linux system, where the first
18605         time I run configure it generates valid Makefiles and Amanda
18606         compiles without problem.  If I run configure again, or I alter
18607         a Makefile.in or something which causes autoconf to be called,
18608         the resulting Makefiles are no good - the programs in
18609         server-src don't finish linking because there is no dbm
18610         library.  That is, the first time through configure -lgdbm is
18611         added to LIBS but the second, and any subsequent times, it is
18612         not.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
18613
18614         I've just found a bug that has prevented Amanda from running on
18615         my site for almost one week.  Just after a dumper replied that
18616         it timed-out, the driver would send it another dump request.
18617         Then the driver would log to amdump an event of receiving a
18618         message from the dumper, but that message would be empty, the
18619         holding file for the requested filesystem would not exist, and
18620         driver would quit.  It turned out that the problem was that
18621         dumper started to close its sockets (datafd, mesgfd and outfd)
18622         since release 2.3.0.4b3.  outfd is initialized before invoking
18623         startup_dump, but it is sendbackup_response, intended to be
18624         invoked by the amandad protocol driver, that opens sockets and
18625         initializes datafd and mesgfd.  If sendbackup_response is never
18626         run (because the amandad request times out), datafd and mesgfd
18627         will not be initialized, so they may contain already closed
18628         (and possibly already reopened) file descriptor numbers or
18629         still be uninitialized, containing any garbage, but usually 0
18630         --- but 0 is stdin, used for reading commands from the driver,
18631         it should not be closed!  I've solved the problem by
18632         initializing them to -1 in startup_dump.  Patch from Alexandre
18633         Oliva <oliva@dcc.unicamp.br>.
18634
18635         Include declarations for select(), bind(), connect(), fread(),
18636         fwrite(), getopt(), getpeername(), getsockname(), getsockopt(),
18637         initgroups(), listen(), lstat(), mktemp(), mktime(), puts(),
18638         recvfrom(), select(), sendto(), setpgrp(), setsockopt(),
18639         shmat(), shmctl(), shmdt(), shmget(), socketpair(), sscanf(),
18640         strftime(), strncasecmp(), system() if the system does not
18641         declare these in any header files.  Patch from Blair Zajac
18642         <blair@gps.caltech.edu>.
18643
18644         Have configure correctly substitute for DB_DIR and LOG_DIR in
18645         example/amanda.conf when --prefix was not used.  Problem noted
18646         by Philippe Charnier <charnier@xp11.frmug.org>.
18647
18648         Include seagate-changer.c from Larry D. Pyeatt
18649         <pyeatt@cs.colostate.edu>.  This program was written to control
18650         the Seagate/Conner/Archive autoloading DAT drive.  This drive
18651         normally has 4 tape capacity but can be expanded to 12 tapes
18652         with an optional tape cartridge.  This program may also work on
18653         other drives.  This program works for me under Linux with Gerd
18654         Knorr's <kraxel@cs.tu-berlin.de> SCSI media changer driver
18655         installed as a kernel module.  The kernel module is available
18656         at
18657         http://sunsite.unc.edu/pub/Linux/kernel/patches/scsi/scsi-changer*
18658         Since the Linux media changer is based on NetBSD, this program
18659         should also work for NetBSD, although I have not tried it.  It
18660         may be necessary to change the IOCTL calls to work on other
18661         OS's.
18662
18663         Add a new configure option, --with-group, which tells Amanda
18664         the group to install all files as.  Patch from Alexandre Oliva
18665         <oliva@dcc.unicamp.br>.
18666
18667         If --with-bsd-security was not set, then dumper would not find
18668         the amanda/udp port to use to connect to clients.  Patch from
18669         Alan McIvor <alan@auck.irl.cri.nz>.
18670
18671         The order of dump programs to search for (ufsdump, vdump, dump,
18672         backup) didn't work on AIX systems, where backup should be used
18673         but a program named dump exists on the system.  Patch by Blair
18674         Zajac <blair@gps.caltech.edu>.
18675
18676         The configure --with-mmap was not working properly since
18677         configure was using the wrong variable to see if the system had
18678         a working mmap().  Problem noted by Keith Mitchell
18679         <kmitch@weenix.guru.org>.
18680
18681 Version 2.3.0.4b3
18682
18683         Save the results of getchar() into int's instead of char's in
18684         amidxtaped.c.  Patch by Blair Zajac <blair@gps.caltech.edu>.
18685
18686         Fix sendbackup-gnutar so that it can be compiled with a K&R
18687         compiler.  Patch by Blair Zajac <blair@gps.caltech.edu>.
18688
18689         Since I installed Amanda 2.3.0.4b3, I noticed some annoying
18690         messages in amdump:
18691                 dumper: pid 8696 setsockopt(SO_SNDTIMEO): Invalid argument
18692         This is because Solaris 2.5 does declare SO_SNDTIMEO in
18693         sys/socket.h, but fails to setsockopt with the given
18694         arguments.  Unfortunately, it is not documented, so I could not
18695         find out the correct way to do this, so I just added a test in
18696         configure to check whether SO_SNDTIMEO works as expected or
18697         not.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
18698
18699         Include amplot-2.2.6 written by Olafur Gudmundsson
18700         <ogud@tis.com> into Amanda.  Have amplot be configured using
18701         configure instead of amplot.conf.  It will be installed if
18702         gnuplot and the version of awk configure finds can handle
18703         variable assignment from the command line.  I also changed some
18704         of the command line options so that the amdump files will not
18705         be compressed unless amplot is told to do so on the command
18706         line.  It also takes a new command line option, -t, which lets
18707         the user set the time of the right side of the plot.  Work done
18708         by Blair Zajac <blair@gps.caltech.edu>.
18709
18710         Made rth-changer check all system calls for valid returns.
18711         Patch by Blair Zajac <blair@gps.caltech.edu>.
18712
18713         amrestore.c and sendbackup-common.c would do an ifdef on
18714         HAVE_GZIP, which was no longer being defined if Amanda was
18715         using gzip.  Now, define HAVE_GZIP if gzip is being used.
18716         Patch by Blair Zajac <blair@gps.caltech.edu>.
18717
18718         Include a script, amoverview, that outputs an overview of all
18719         of the backups done on all of the disks.  Script written by
18720         Dave Disser <disser@sdd.hp.com>.
18721
18722         The prototype for amname_to_fstype() is missing in
18723         createindex-dump.c when xfsdump is available.  Patch from Ken
18724         Laprade <klaprade@harris.com>.
18725
18726         Apparently SGI provides a dummy libsun.a that does not really
18727         have anything in it.  I guess this tricks configure into adding
18728         it to the Makefile.  Have configure not check for libsun.a on
18729         SGI systems.  Patch from Ken Laprade <klaprade@harris.com>.
18730
18731         The global variable overwrite in amcheck.c apparently is seen
18732         as a potential conflict with the overwrite() curses function
18733         which is apparently in SGI's libtermcap.a.  Declaring the
18734         variable static eliminates the warning.  Patch from Ken Laprade
18735         <klaprade@harris.com>.
18736
18737         Add a new configure option, --with-fqdn, which allows Amanda to
18738         back up systems in different domains.  This requires that the
18739         disklist file have the fully qualified domain names (FQDNs)
18740         listed.  Patch from Joe Ammond <Joe.Ammond@ee.gatech.edu>.
18741
18742         Include rundump, a setuid program that runs dump as root.  This
18743         is used under OSF1 systems.  Patch from Alexandre Oliva
18744         <oliva@dcc.unicamp.br>.
18745
18746         Install setuid files executable only by the owner and group of
18747         the files.  This stops other users from running these programs,
18748         making security tighter.  Patch from Alexandre Oliva
18749         <oliva@dcc.unicamp.br>.
18750
18751         On FreeBSD 3.0, amanda.h needs to include <sys/types.h> before
18752         <dirent.h>.  Problem noted by Keith Mitchell
18753         <kmitch@weenix.guru.org>.
18754
18755         Amanda had a bug regarding the recent addition of support for
18756         excluding files in GNUTAR.  planner and sendsize did not
18757         understand each other about empty exclusion lists, so there
18758         were failures using gnutar, as dump does not support excludes.
18759         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
18760
18761         Fixed a problem in configure where DUMP was being set to
18762         /no/restore/available when no restore program could be found
18763         instead of setting RESTORE to this.  Patch from Alexandre Oliva
18764         <oliva@dcc.unicamp.br>.
18765
18766         Have no-changer and hp-changer check for the existence of the
18767         logging directory before trying to use it.  Patch by Blair
18768         Zajac <blair@gps.caltech.edu>.
18769
18770         Patches to have nicer looking Samba support code.  Patch from
18771         Michael Zucchi <cismpz@cis.unisa.edu.au>.
18772
18773         Got Amanda to compile fine on a m88k-motorola-sysv4 system.
18774         Patches from Blair Zajac <blair@gps.caltech.edu>.
18775
18776         In amandad.c, pk_t dupmsg was conflicting with dupmsg in
18777         /usr/include/sys/stream.h on an m88k-motorola-sysv4 system.
18778         Rename dupmsg to dup_msg.  To keep things consistent, rename
18779         inmsg to in_msg and outmsg to out_msg.  Patch by Blair Zajac
18780         <blair@gps.caltech.edu>.
18781
18782         Check for the dbm_open declaration in any header file that may
18783         contain it.  If it doesn't exist, then declare it and all of
18784         the other dbm_ functions.  Check if struct datum is declared in
18785         any header files and if it isn't then declare it.  Patch from
18786         Blair Zajac <blair@gps.caltech.edu>.
18787
18788         Have runtar make sure that it is being invoked by the
18789         CLIENT_LOGIN user, since it is a suid executable.  Patch from
18790         Alexandre Oliva <oliva@dcc.unicamp.br>.
18791
18792         Have selfcheck check for /etc/vdumpdates if vdump is being
18793         used.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
18794
18795         If we're on an Ultrix system, then define STATFS_ULTRIX.  Patch
18796         by Blair Zajac <blair@gps.caltech.edu>.
18797
18798         amadmin export produces a full version number (2.3.0.4b2, for
18799         instance), while amadmin import expects three integers
18800         separated by dots, so it fails to import an exported file by
18801         itself.  Patch by Alexandre Oliva <oliva@dcc.unicamp.br>.
18802
18803         Sendsize.c would loop forever if debugging was not turned on.
18804         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
18805
18806         Define STATFS_OSF1 if we are on a *-dec-osf-* system.  Change
18807         ifdef OSF1_HANG_BUG to ifdef OSF1_VDUMP, since I'd rather not
18808         have too many defines floating around.  Patch by Blair Zajac
18809         <blair@gps.caltech.edu>.
18810
18811         There was a bug in selfcheck.c when Blair installed the Samba
18812         support.  I deleted an extra space that was added after
18813         SAMBA_CLIENT when the command was being put together.  Fix by
18814         Michael Zucchi <cismpz@cis.unisa.edu.au>.
18815
18816         Add a needed ; to client-src/Makefile.am and
18817         server-src/Makefile.am.  Patch from Alexandre Oliva
18818         <oliva@dcc.unicamp.br>.
18819
18820         Have planner.c and amcheck.c always get the amanda port number
18821         even if BSD security is turned off.  Patch by Blair Zajac
18822         <blair@gps.caltech.edu>.
18823
18824         Change the way amgetidx caches host up/down information.  It
18825         used to stralloc() a string depending on if the host was up or
18826         down.  Now, create two static character arrays, one holding
18827         "down" and the other holding "up" and simply point the
18828         hostinfo->up pointer to one of the two arrays.  This should
18829         save a little memory.  Patch by Blair Zajac
18830         <blair@gps.caltech.edu>.
18831
18832         The Bourne shell in FreeBSD can't handle setting IFS to : and
18833         expanding $LOCPATH:$SYSPATH.  Create two new variables before
18834         their use called $LOCSYSPATH and $SYSLOCPATH.  Patch by Blair
18835         Zajac <blair@gps.caltech.edu>.
18836
18837         Have open_fstab for BSD systems return the value of setfsent.
18838         Patch by Blair Zajac <blair@gps.caltech.edu>.
18839
18840         Configure was searching for the dump program in the following
18841         order: ufsdump, vdump, backup, dump.  On HP-UX systems,
18842         configure would find backup, which is a valid program but does
18843         not do what dump does.  So switch the order of the programs to
18844         ufsdump, vdump, dump, backup.  Patch by Blair Zajac
18845         <blair@gps.caltech.edu>.
18846
18847         Fixed some dbprintf(()) bugs in amgetidx.c.  Patch by Blair
18848         Zajac <blair@gps.caltech.edu>.
18849
18850         Have amrecover.c always declare
18851             extern char *optarg;
18852             extern int optind;
18853         This makes amrecover.c compile on Ultrix systems.  Problem
18854         noted by Scott Gasch <scott@cray-ymp.acm.stuorg.vt.edu>.
18855
18856         Patch to configure to have it recognize gnutar version 1.11.2.
18857         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
18858
18859 Version 2.3.0.4b2
18860
18861         Have amcleanup, no-changer, and hp-changer find out where the
18862         logging directory, or amdump error file is from getconf instead
18863         of using @LOG_DIR@ or @DB_DIR@ from configure.  Problem noted
18864         by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
18865
18866         Remove VarDir=@DB_DIR@ from amrmtape.sh.in, since amrmtape
18867         figures out where the curinfo files are from the amanda.conf
18868         file.  Problem noted by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
18869
18870         Include rth-changer, a tape changer script for the Robotic Tape
18871         Handling system OEM'd by Andataco (RTH-406).  Script written by
18872         Erik Frederick <edf@tyrell.mc.duke.edu>.
18873
18874         Add a new configure option called --with-pid-debug-files which
18875         has Amanda append the process ID to the debugging files placed
18876         in /tmp.  The PID will not be appended unless this option is
18877         used.  Suggestion by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
18878
18879         Add a new #define UNCOMPRESS_OPT to pass to UNCOMPRESS_PATH to
18880         get compressed standard input decompressed and pass it to
18881         standard output.  The configure script only recognized gzip and
18882         compress right now, so it will set UNCOMPRESS_OPT to -dc and
18883         set UNCOMPRESS_PATH to the same value as COMPRESS_PATH.  Edit
18884         all of the files that make use of UNCOMPRESS_PATH to also make
18885         use of UNCOMPRESS_OPT now.  Patch by Blair Zajac
18886         <blair@gps.caltech.edu>.
18887
18888         The readline() substitute in amrecover.c when the real
18889         readline() code is not available did not return to the caller
18890         what the user typed in.  It now does so.  Patch from Blair
18891         Zajac <blair@gps.caltech.edu>.
18892
18893         Avoid -lnsl on Irix.  On IRIX 5.x and 6.x systems that have the
18894         svr4net module installed, there will be a /usr/lib/libnsl.so
18895         present on the system. The configure script looks for this and
18896         tosses into the library list if it's there.  It is not
18897         advisable to link against libnsl on IRIX unless you really need
18898         it for SVR4 networking (TLI/STREAMS). If you _do_ link against
18899         it, you should use include '-lc' _before_ '-lnsl'. The reason
18900         for this is that libnsl.so also contains the SysV TI-RPC code,
18901         which is RPC based on STREAMS/TLI rather than sockets. (Solaris
18902         2.x now uses this by default.) TI-RPC has some compatibility
18903         functions with the same names as older RPC functions, such as
18904         clnt_call(), clnt_create(), clnt_destroy(), and these conflict
18905         with the functions in libc.so. The main place this will hose
18906         you is NIS: NIS v2 expects the underlying RPC code to use
18907         sockets, not STREAMS, and it fails if the TI-RPC symbols in
18908         libnsl.so override the RPC symbols in libc.so.  Again, you
18909         don't need libnsl.so unless you're actually using STREAMS/TLI
18910         or TI-RPC, so in Amanda's case it's safe to just ignore it. If
18911         you _do_ need it, you must do 'cc -o foo foo.c -lc -lnsl' in
18912         order to make sure the linker resolves the RPC symbol
18913         references correctly. The primary symptom of this problem is
18914         that things like getpwent(), getgrent() and getnetgrent() stop
18915         working in an NIS environment.  To make a long story short: on
18916         IRIX, avoid using libnsl. Amanda doesn't need it anyway. So far
18917         I haven't encountered a problem with this, but you never know.
18918         Note from Bill Paul <wpaul@ctr.columbia.edu>.
18919
18920         Include patches to have Amanda do incrementals of gnutar based
18921         backups.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
18922
18923         Delete the GNUTAR_BROKEN_PIPE from configure and acconfig.h
18924         since no code was testing for it.  Patch by Blair Zajac
18925         <blair@gps.caltech.edu>.
18926
18927         Have configure check for the number of arguments that
18928         gettimeofday takes and have clock.c use the appropriate number
18929         of arguments.  Patch by Blair Zajac <blair@gps.caltech.edu>.
18930
18931         Have sendbackup-common.c include tapeio.h instead of defining
18932         BUFFER_SIZE.  Fix by Philip Guenther <guenther@gac.edu>.
18933
18934         Put in more support for AIX by defining AIX_BACKUP if the
18935         system is an AIX system.  Fix createindex-dump.c to pass the -B
18936         flag to restore to have it read from standard input.  Problem
18937         noted by Bill Paul <wpaul@ctr.columbia.edu>.  Patch by Blair
18938         Zajac <blair@gps.caltech.edu>.
18939
18940         Add a regexp for AIX 4's backup in sendbackup-dump.c and
18941         sendsize.c.  Patch from Bill Paul <wpaul@ctr.columbia.edu>.
18942
18943         Add a comment to tapeio.h about BUFFER_SIZE and what it is used
18944         for and how people should not change it.  Noted by Bill Paul
18945         <wpaul@ctr.columbia.edu>.
18946
18947         Added a --with-mmap option to force the use of mmap() instead
18948         of shared memory support.  Requested by wpaul@ctr.columbia.edu
18949         <Bill Paul>.  Patch by Blair Zajac <blair@gps.caltech.edu>.
18950
18951         On FreeBSD 2.x and 3.x, the SO_SNDTIMEOUT value is too large in
18952         dumper.c.  Looking at the kernel source, the maximum value for
18953         tv_sec is about 227.  The value used is READ_TIMEOUT/4, or
18954         (30*60)/4 == 450 seconds.  This causes setsockopt() to return
18955         EDOM (Numerical argument out of domain), and again everything
18956         grinds to a halt.  I changed the value from READ_TIMEOUT/4 to
18957         READ_TIMEOUT/8, which reduces the SO_SNDTIMEO value to 225.  I
18958         haven't extensively tested this yet, but based on eyeballing
18959         the kernel source it should work.  Patch from Bill Paul
18960         <wpaul@ctr.columbia.edu>.
18961
18962         In dumper.c:do_dump(), there is code to set the transmission
18963         timeout, receive buffer size and receive low water mark on the
18964         data socket using setsockopt().  For SO_RECVBUF, the receive
18965         buffer size (recbuf) is set to DATABUF_SIZE * 4, which is
18966         32*1024*4, or 131072.  On SunOS 4.1.x, this value is too
18967         large:  dumper generates a 'no buffer space available' error
18968         and everything grinds to a halt.  I took away the '*4', which
18969         reduces the size to 32767 bytes, which seems to work.  I'm
18970         surprised nobody else has noticed this since it breaks SunOS
18971         Amanda servers.  I can only surmise that people aren't using
18972         SunOS machines as servers these days. :)   Patch from Bill Paul
18973         <wpaul@ctr.columbia.edu>.
18974
18975         Have Amanda include either readline.h or readline/readline.h
18976         Fix suggested by Neal Becker <neal@ctd.comsat.com>.
18977
18978         Have --with-includes put the -I flags into $CPPFLAGS and
18979         $CFLAGS so that AC_CHECK_HEADERS will find other include
18980         files.  Problem noted by Neal Becker <neal@ctd.comsat.com>.
18981
18982         Fixed common-src/Makefile.am to put the extra libamanda.a
18983         sources into the EXTRA_libamanda_a_SOURCES variable instead of
18984         EXTRA_DIST.  Fix from Tom Tromey <tromey@drip.Colorado.EDU>.
18985
18986         When compiling amgetidx.c with some compilers, trigraph
18987         substitutions were being made when they should not have been.
18988         Protect the code from this.  Patch from Blair Zajac
18989         <blair@gps.caltech.edu>.
18990
18991         Test for flock support in the following order:
18992                 1) POSIX fcntl file locking
18993                 2) flock locking
18994                 3) lockf locking
18995         The common-src/flock.c file will only be used if the lockf type
18996         locking is needed on this system.  Patch from Blair Zajac
18997         <blair@gps.caltech.edu>.
18998
18999         Have Samba support compile in only if requested by the user.
19000         Patch from Blair Zajac <blair@gps.caltech.edu>.
19001
19002         Configure was not using $CFLAGS and $CPPFLAGS when trying to
19003         calculate the select argument type.  Patch from Blair Zajac
19004         <blair@gps.caltech.edu>.
19005
19006         Updated amanda.h to include alloca.h if the system has it and
19007         if it's ok to include.  Also protect more include files with
19008         #ifdefs found by configure.  Patch from Blair Zajac
19009         <blair@gps.caltech.edu>.
19010
19011         Linux does not use the raw device names to do backups.
19012         configure now checks to see if it can find a raw disk device
19013         file whose name is built from root's mount point.  If it can't,
19014         then set RDEV_PREFIX to use /dev/ instead of /dev/r.  Fix
19015         suggested by Brian <brian.s.mogged@uwrf.edu> and Ken Latta
19016         <latta@parc.xerox.com>.
19017
19018         Fixed const cast message from regex.c.  Problem noted by Ken
19019         Laprade <klaprade@harris.com>.  Patch from Blair Zajac
19020         <blair@gps.caltech.edu>.
19021
19022         Configure was not checking for the OSF1_VDUMP #ifdef used in
19023         Amanda.  It now will set OSF1_VDUMP if vdump is found on the
19024         system.  However, it does not check if the system is really a
19025         OSF system.  Patch from Blair Zajac <blair@gps.caltech.edu>.
19026
19027         Have configure check for asm/byteorder.h for
19028         sparc-unknown-linux-gnu.  Problem noted by Eric Doutreleau
19029         <ed@cti.ecp.fr>.
19030
19031         Remove the check for libintl.h from configure.  It was only
19032         being used for regex.c, which really didn't need it.  Patch
19033         from Blair Zajac <blair@gps.caltech.edu>.
19034
19035         Convert all code to K&R C by trying to compile Amanda using
19036         /usr/bin/cc on a SunOS 4.1.1 machine.  Have configure check if
19037         the compiler can handle the volatile keyword and if it can't,
19038         #define it to empty in the config.h file.  Patch from Blair
19039         Zajac <blair@gps.caltech.edu>.
19040
19041         Move the contents of versuff.h into version.h and remove
19042         versuff.h.  Add a new function called version() which returns
19043         the version string.  Use version() in some of the programs.
19044         Patch from Blair Zajac <blair@gps.caltech.edu>.
19045
19046         m88k-motorola-sysv4 systems define L_FAIL, which is used by
19047         logfile.h.  Undefine it in logfile.h.  Patch from Blair Zajac
19048         <blair@gps.caltech.edu>.
19049
19050         Include amindex-1.0 from Alan McIvor.  It includes these
19051         improvements over 0.3:
19052                 Amrecover now provides the ability to restore files
19053                 from the tapes, via the "extract" command.
19054
19055                 Support for gnutar based index generation (but not file
19056                 restoration yet).
19057
19058                 Numerous bug fixes.
19059
19060         Have amgetidx try to open a socket to the shell/tcp port on the
19061         remote machine and cache if it succeeds.  If it connection
19062         attempt succeeds, then attempt to get the index files over from
19063         the client.  Patch from Blair Zajac <blair@gps.caltech.edu>.
19064
19065         Update patch-system to include the amidxtape service at
19066         10083/tcp.  Patch from Blair Zajac <blair@gps.caltech.edu>.
19067
19068         Configure said that the server configuration was OK and then
19069         next said it wasn't.  Remove these checks.  Patch from Blair
19070         Zajac <blair@gps.caltech.edu>.
19071
19072         Fixed building Amanda for multiple architectures in
19073         subdirectories of Amanda.  Problem noted by Thomas Hepper
19074         <Thomas.Hepper@icem.de>.
19075
19076 Version 2.3.0.4b1
19077
19078         Fix a problem with `amadmin <conf> balance' dumping core.  If
19079         some disks are overdue, they are stored in the sequence array
19080         with a negative index.  This has the potential to cause memory
19081         corruption, and it makes the reported balance figures not add up
19082         to the same as the total.  Since overdue disks are really going
19083         to be candidated for today's backups, they are thrown in the
19084         bin for those.  Patch from Ken Laprade <klaprade@harris.com>.
19085
19086         Add Samba client support using smbclient to Amanda.  Samba must
19087         be patched with the file patches/samba-1.9.16p2.1.patch - this
19088         is a patch for 1.9.16p2 of Samba, and modifies the way the
19089         'dir' command works, and adds totals to both the dir command
19090         and the tar command, via stderr.  These are used by amanda to
19091         estimate and count backup sizes.  This should be installed on
19092         an amanda 'client' host, that will act as the 'samba server'
19093         host.  This will most likely be the same machine as the Amanda
19094         master server.  Patches from Michael Zucchi
19095         <zucchi@cis.unisa.edu.au>.
19096
19097         Amrmtape converted from Bash to Bourne shell.  Patch from Blair
19098         Zajac <blair@gps.caltech.edu>.
19099
19100         Fix the indexing code to use "arglist.h" instead of <stdarg.h>
19101         Patch from Blair Zajac <blair@gps.caltech.edu>.
19102
19103         Have amdump call amgetidx and amtrmidx.  Put amgetidx and
19104         amtrmidx into the libexec directory instead of the bin
19105         directory, since Amanda users will not use these by hand.
19106         Patch from Blair Zajac <blair@gps.caltech.edu>.
19107
19108         Modified diskfile.c to match hostname in the backup header
19109         against the fully qualified domain name in disklist file,
19110         because amflush fails in a multidomain backup environment, as
19111         backup headers have only the hostname.  Patch from Karl
19112         Lehenbauer <karl@neosoft.com>.
19113
19114         Have autoconf figure out if some functions are not declared and
19115         if they are not, then declare them.  Patch from Blair Zajac
19116         <blair@gps.caltech.edu>.
19117
19118         Add security fixes to amandad.c.  It now checks the forward and
19119         reverse DNS names for consistency.  Added a configure option
19120         --amandahosts to use Michael's code to use .amandahosts instead
19121         of .rhosts.  Patch from Michael Douglass <mikedoug@texas.net>.
19122
19123         Add amverify, a simple shell script to check Amanda tapes -
19124         gnutar driven backups only.  Patch from Thomas Hepper
19125         <Thomas.Hepper@icem.de>.
19126
19127         Add the version option to amadmin (eg amadmin <conf> version).
19128         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
19129
19130         Add the current option to amtape (eg amtape <conf> current).
19131         This let's you the label of the current tape only without using
19132         dd.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
19133
19134         Gnutar support for amindex added.  Patch from Thomas Hepper
19135         <Thomas.Hepper@icem.de>.
19136
19137         Calcsize supports exclude-list (gtar).  The source was
19138         extracted from gnutar itself to be 100% compatible.  Patch from
19139         Thomas Hepper <Thomas.Hepper@icem.de>.
19140
19141         Calcsize checks the file type and ignores special files and
19142         pipes.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
19143
19144         Calcsizes calculation for gnu tar archives had a bug (gtar file
19145         blocks always are a multiple of 2k).  Patch from Thomas Hepper
19146         <Thomas.Hepper@icem.de>.
19147
19148         `amandates.c': amdandad suffered by missing AMANDATES_FILE.
19149         Now it creates this file before missing it.  Patch from Thomas
19150         Hepper <Thomas.Hepper@icem.de>.
19151
19152         `createindex-gnutar.c' added.  Patch from Thomas Hepper
19153         <Thomas.Hepper@icem.de>.
19154
19155         alloca(), strdup.c and getcwd added for those system who don't
19156         have them.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
19157
19158         A dirty hack for BSD based systems without sigaction(), see
19159         amanda.h.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
19160  
19161         Add two scripts, hp-changer and no-changer. hp-changer is a
19162         tape changer script for a HP DAT changer. Every 10th tape a
19163         taper clean runs.  no-changer is a changer-like script for
19164         single tape streamer.  It makes Amanda see a tape changer unit
19165         with an infinite count of tapes (and requires an operator to
19166         change the tapes :-)). Every 10 tapes the operator is
19167         recommended to insert a cleaning tape.  Patch from Thomas
19168         Hepper <Thomas.Hepper@icem.de>.
19169
19170         The version suffix adding is done with a seperate function
19171         versionsuffix() also available as standalone program.  Patch
19172         from Thomas Hepper <Thomas.Hepper@icem.de>.
19173
19174         Several files got debug support. Patch from Thomas Hepper
19175         <Thomas.Hepper@icem.de>.
19176
19177         Added an idle type file-too-large to driver.c to avoid dumping
19178         files to the holding disk(s) which exceed the maximum file size
19179         (2 GB on the most 32-bit machines).  Patch from Thomas Hepper
19180         <Thomas.Hepper@icem.de>.
19181
19182         Some minor bug fixes, mostly regarding missing or wrong casts
19183         confusing c compilers (shmat()/shmdt(), select()).  Patch from
19184         Thomas Hepper <Thomas.Hepper@icem.de>.
19185
19186         Genversion gives some more information.  Patch from Thomas
19187         Hepper <Thomas.Hepper@icem.de>.
19188
19189         getfsent.c and statfs.c have been cleaned up. The have to be
19190         checked on non-Irix/Solaris/NextStep/HPUX/AIX/Linux-systems.
19191         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
19192
19193         Simple support if readline.a is missing.  NEVER TESTED!  Patch
19194         from Thomas Hepper <Thomas.Hepper@icem.de>.
19195
19196         Linux requires libdb.a and ndbm.h to handle database files. Not
19197         really what I expected.  Patch from Thomas Hepper
19198         <Thomas.Hepper@icem.de>.
19199  
19200         Here's a simple patch which fixes a problem that causes amflush
19201         to erroneously complain "ignoring cruft file" about good dump
19202         files on the holding disk, and fail to flush them to tape.
19203         This happens if your holding disk directory has a long name,
19204         and the dump file also has a long name (i.e. if you use
19205         filesystem mount points in disklist).  The problem occurs if
19206         the holding directory + filename exceeds 80 bytes.  The patch
19207         still leaves a length limitation, but at least it matches the
19208         size limit imposed by driver (and thus dumper & taper) of 128
19209         bytes.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
19210
19211         Use regex.h and regex.c from
19212         ftp://prep.ai.mit.edu/sh-utils-1.15.tar.gz instead of the regex
19213         checking code in the system.  This code includes re_comp and
19214         re_exec calls, so it will work on any system.  Patch by Blair
19215         Zajac <blair@gps.caltech.edu>.
19216
19217         Amadmin find reports the wrong tape file numbers after when a
19218         dump is amflush'ed to tape.  Patch by Ralf Fassel
19219         <ralf@atg.venture.de>.
19220
19221         Fix a bug where dumps of disks on the Amanda server are counted
19222         against the available network bandwidth.  Patch from Marion
19223         Hakanson <hakanson@cse.ogi.edu>.
19224
19225         Tell gnutar to not exit with a nonzero value if a read failed.
19226         This prevents backups from aborting if a file disappeared
19227         before gnutar could save it.  Patch from Hal Snyder
19228         <hal@vailsys.com>.
19229
19230         Fix dumper which can cause the entire amdump run to hang after
19231         dumper issues a "TRY-AGAIN" message to driver while dumping
19232         directly to tape.  Patch from Marion Hakanson's
19233         <hakanson@cse.ogi.edu>.
19234
19235         Added Marion Hakanson's <hakanson@cse.ogi.edu> patches to fix
19236         problems when amanda dumps directly to tape (i.e. when holding
19237         space is full, or you're backing up a huge filesystem, etc.).
19238         The bug occurs in the way taper determines it has succeeded
19239         when doing a PORT-WRITE operation (i.e. dumping directly to
19240         tape).  It used to assume that an EOF meant no more data --
19241         true if it's reading from a file, but when reading from a port
19242         (i.e. directly from a dump process), an EOF could signal
19243         abnormal exit as well as a normal one.  So, I extended the
19244         protocol between driver and taper when dumping directly to tape
19245         (see dump_to_tape() in driver.c) so the taper will wait for the
19246         driver to pass PORT-WRITE-SUCCESS or PORT-WRITE-FAILURE to the
19247         taper (since driver gets OK/not-OK from the dumper) before the
19248         taper records success or failure.  Note that this change
19249         affects only the PORT-WRITE case in taper.  FYI, the bug
19250         resulted in the curinfo database for a failed port-dump to have
19251         the tape-label & file-number fields updated with the location
19252         of the failed dump, even though the timestamp & dump statistics
19253         still have the values of the last successful dump (the latter
19254         fields are updated by dumper itself).
19255
19256         Patches from George Scott <George.Scott@cc.monash.edu.au> to
19257         fix the following problems in planner.c.
19258         1) Initialise total_size, total_lev0 and balanced_size.  They
19259         are updated in analyze_estimates() but never initialised.  Zero
19260         them before the first call.
19261         2) Remove oversize dumps.   If there is a dump whose estimated
19262         size is larger than the tape the planner would tend to throw
19263         away all the other dumps and then probably generate an
19264         unworkable plan anyway.  (The standard 2.2.6 planner probably
19265         tossed these dumps fairly quickly for other reasons, but my
19266         next fix made this one almost mandatory!)  The fix is to drop
19267         these enormous dumps right at the begining.  This shouldn't be
19268         triggered for anyone with a sane configuration.
19269         3) Promote hills.  There are two ways to create a balanced
19270         cycle.  The first is to fill in any holes and the second is to
19271         remove any hills.  The original planner is good at doing the
19272         first but doesn't even attempt the second.  A quick look at
19273         "amadmin balance" would show big hills quite clearly.  This fix
19274         effectively does an "amadmin balance" and promotes a dump from
19275         one of the "hills".  This type of promotion is quite
19276         restricted:
19277           - don't bother if we already plan to do any level 0 dumps
19278           - don't promote a dump if it was going to be the only level 0
19279             to be done on that run (ie, ignore hills that are only one
19280             dump high)
19281           - only promote one level 0 by this method
19282           - don't exceed tape_length
19283         The key to it is the first restriction.  Large sites (with
19284         large numbers of disks and a large balanced_size) will have at
19285         least one level 0 scheduled for each day in the dump cycle and
19286         will already have a balanced cycle.  This code will not
19287         activate for them.  Small sites will probably not have a level
19288         0 scheduled and will benefit.  The second restriction will stop
19289         Amanda from constantly promoting dumps when the schedule is as
19290         balanced as it will go.  The third restriction will stop Amanda
19291         over reacting.  Promoting one dump by this method would take
19292         total_lev0 larger that balanced_size.  If it wouldn't then the
19293         first stage promotion didn't work like it should.
19294         4) Initialise got_estimate for all cases.  This fix was from
19295         der Mouse <mouse@collatz.mcrcim.mcgill.edu>.  "got_estimate"
19296         wasn't being initialised for skipped disks.  Later in the code
19297         it was being used in all cases.  The fix is to move its
19298         initialisation up a few lines.
19299         5) Explicitly ignore off-line disks.  If a disk is off-line
19300         when the planner is run it gets -1 for all dump sizes.  These
19301         were ignored at a later stage.  This fix explicitly ignores
19302         them up front.
19303         6) Ignore down machines.  If a machine is down when the planner
19304         is run it guesses from historical data what the size of
19305         tonights dump is likely to be and schedules a dump anyway.  The
19306         dumper then usually discovers that the machine is still down
19307         and ends up with a half full tape.  Unfortunately the planner
19308         had to delay another dump because it thought that the tape was
19309         full.  The fix here is for the planner to discard unavailable
19310         machines totally rather than just ignore the fact that they are
19311         unavailable.
19312         7) Keep at least one total.  Amanda moves level 0 dumps back to
19313         incrementals to try and fit everything onto the tape.
19314         Unfortunately if all your incrementals are too big (or your
19315         tape too small) it can move all of your level 0 dumps.  This
19316         ends up being a kind of deadlock since, unless a level 0 gets
19317         done, the incrementals will not reduce in size and until the
19318         incrementals reduce in size there will not be enough room to
19319         fit in a level 0.  (This is not quite accurate since a level 4
19320         dump can get bumped to a level 5 which reduces its size.
19321         However, this deadlock has happened to me and for many days in
19322         a row.)  The fix is to pick on the highest priority level 0 and
19323         not let it be moved.  This change will not affect users with
19324         reasonably sized tapes since Amanda would not have moved all
19325         their disks to incrementals.
19326         8) Make usage of total_lev0 consistent.  "total_lev0" is a
19327         double and doesn't include tape_mark's.  Make it so.
19328
19329         Add a fflush(outf) to amcheck.c.  Patch from Mike Russell
19330         <Michael_Russell@Brown.EDU>.
19331
19332         Fix problems with amhpfixdevs.  Patch from Michael Schmitz
19333         <mschmitz@iname.com>.
19334
19335         Have DEC OSF1 use installbsd instead of install.  Patch from
19336         Rainer Landes <rlandes@fphws01.physik.uni-karlsruhe.de>.
19337
19338         Have amcontrol take the first command line argument as the
19339         configuration to use.  If there are no command line arguments,
19340         then use daily.  Patch from Thomas Schmeidl
19341         <schmeidl@nwp.kwu.siemens.de>.
19342
19343         Removed --atime-preserve from sendbackup-gnutar.c so that
19344         incremental backups of filesystems will work.  Patch from
19345         Alexandre Oliva <oliva@dcc.unicamp.br>.
19346
19347         Change all #if __STDC__ to #ifdef __STDC__ for those systems
19348         that define __STDC__ to 0, such as Solaris using cc -Xt, cc
19349         -Xa.  Patch from Blair Zajac <blair@gps.caltech.edu>.
19350
19351         Increase the socket buffer size, and set a low watter mark at
19352         32k.  This cut the number of syscalls done to process one 32k
19353         block from dozens down to 4 (select, read, lseek, write).
19354         Patch from Brad Huntting <huntting@glarp.com>.
19355
19356         Include amindex-0.3 from Alan McIvor <alan@salan.auck.irl.cri.nz>.
19357
19358         Add the "srvcompress" option to compress dumps on the tape host
19359         instead of on the client machines.  This may be useful when a
19360         fast tape host is backing up slow clients.  The patches add a
19361         dump-type option, analogous to "compress-fast" or
19362         "compress-best" - the way to use it is to create a new dumptype
19363         in your amanda.conf that includes "srvcompress" and use the new
19364         dumptype for those filesystems you wish to have compressed on
19365         the tape server. For example, in amanda.conf:
19366             define dumptype srvcomp-user {
19367             comment "Partitions on slow machines, compressed on tapehost"
19368             options srvcompress
19369             priority medium
19370         }
19371         Patches from Eric Volpe <epv@panix.com>.
19372
19373         Increase the planner timeout for one estimate from 30 seconds
19374         to 120 seconds.  Patch from Michael Schmitz
19375         <mschmitz@iname.com>.
19376
19377         The select(2) prototype on HPUX specifies 'int' as argument
19378         type of the filedescriptor arguments. All other systems I know
19379         of use 'fd_set'. This has been fixed by having configure check
19380         the argument type to select and adding casts to the select(2)
19381         calls.  Patch from Michael Schmitz  <mschmitz@iname.com>.
19382
19383         Improve the diagnostic output and increase the robustness of
19384         the system by adding better error checking on communication
19385         between taper & driver, and among the two taper processes.
19386         Patches from Marion Hakanson <hakanson@cse.ogi.edu>.
19387
19388         Convert all flock() calls to use POSIX-style locks via the
19389         fcntl(2) call.  This operation was prompted by the fact that
19390         the flock() emulation in the Amanda-provided common-src/flock.c
19391         was broken for read-only file descriptors, and the fcntl(2)
19392         locks are widely available.  This patch makes it possible to
19393         have a read-only lock on the /etc/amandates file on systems
19394         which want to use it.  I've built and tested the patched code
19395         on Amanda servers running on Digital Unix v3.2B (on Alpha
19396         hardware) and on SPARC Solaris-2.5.1.  It's also been compiled
19397         here on SPARC's running SunOS-4.1.3u1b, HP-UX 9.0[345], and
19398         NeXTstep-3.3 (NeXT hardware).  Note that the patches also
19399         remove all trace of the NEED_FLOCK define, and I have removed
19400         the file common-src/flock.c from our source tree here.  Patch
19401         from Marion Hakanson <hakanson@cse.ogi.edu>.
19402
19403         For disk/filesystem names which are wider than 14 characters,
19404         have reporter print out the rightmost characters of the disk
19405         name, which is usually more meaningful in a daily backup
19406         summary.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
19407
19408         Lets amflush work in a wider variety of cases than was
19409         previously true (it used to work if the disklist contains only
19410         the first token of each hostname).  sendbackup-dump.c and
19411         sendbackup-gnutar.c now do not trim the domain name from the
19412         host name that is sent back to the server.  amflush now looks
19413         for an exact match, in the database.  If it can't find one it
19414         strips the last token off the dump header hostname and keeps
19415         trying until it finds a match in the disklist or runs out of
19416         tokens.  This also has the advantage that if gethostname()
19417         returns FQDNs and you specify the same FQDNs in the disklist,
19418         then amflush will always work.  It will also work as long as
19419         the disklist and gethostname() on the clients return enough
19420         information to be unambiguous.  Patch from James Mathiesen
19421         <james@deshaw.com>.
19422
19423         Increase the READ_TIMEOUT in dumper.c to 30 minutes.  This
19424         needs to be longer than the longest amount of time dump will
19425         not produce output.  People have observed dumps taking more
19426         than 10 minutes to finish mapping some of the passes
19427         sometimes.  Patch from James Mathiesen <james@deshaw.com>.
19428         
19429         Added Adrian T. Filipi-Martin's <atf3r@cs.virginia.edu>
19430         amrmtape script, which allows you to invalidate the contents of
19431         an existing backup tape within the Amanda current tape
19432         database.  This is meant as a recovery mecanism for when a good
19433         backup is damaged either by faulty hardware or user error,
19434         i.e.  the tape is eaten by the tape drive, or the tape has been
19435         overwritten.  Blair Zajac wrote a quick little manual page for
19436         this script.
19437
19438         amrmtape was using the return value from amadmin and amadmin
19439         was exiting with a non-zero value, causing amrmtape to quit.
19440         Added a return 0 statement to amadmin.c.  Patch from Blair
19441         Zajac <blair@gps.caltech.edu>.
19442
19443         Went through all of the files and changed void main()'s to int
19444         main()'s.  Patch from Blair Zajac <blair@gps.caltech.edu>.
19445
19446         Removed the 50 tape file limit in amcleanup and amdump.
19447
19448         createindex-dump and sendbackup-dump did not always take into
19449         account the version suffix.  This is now handled.  Patch from
19450         Philippe Charnier <charnier@lirmm.fr>
19451
19452         Compile and install amrecover and amrestore as client programs,
19453         not a server program.  The motovation for this is that
19454         amrecover is truly a program for all of the users on the
19455         system, while the remaining amanda programs could be used by
19456         only the system administrator.  Patch from Alexandre Oliva
19457         <oliva@dcc.unicamp.br>.
19458
19459         The program amtrmidx fails to close some of the pipes it uses,
19460         and this can lead to failure on systems with large numbers of
19461         disks with incomplete database sets, and file descriptor
19462         ulimits set.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
19463
19464 Version 2.3.0.3
19465
19466         Expanded the width of the DISK column from the reporter
19467         output.  I like to use mount points like /export/home?? instead
19468         of device names to back up.  Since the width of the disk name
19469         field from reporter's output is pretty small, I couldn't easily
19470         figure out the statistics for a particular partition.  Patch
19471         from Blair Zajac <blair@gps.caltech.edu>.
19472
19473         Included Eric Doutreleau <ed@cti.ecp.fr> patch's for amadmin to
19474         handle multiple tapes better.  The patch that he posted on used
19475         a hardwired value of 6 for runtapes, which I changed.
19476
19477         Included Marion Hakanson's <hakanson@cse.ogi.edu> patches to
19478         amadmin.c and amadmin.8 to let amadmin use the same disk
19479         regular expression matching as amrestore.  So now "^/$" will
19480         match only the root partition, not all of the disks.
19481
19482         Added a patch from George.Scott@cc.monash.edu.au which makes
19483         new disks and forces dump with a higher priority.
19484
19485         Changed tools/munge to delete blank lines and the commented
19486         lines that the C preprocessor generates (i.e. # 123).  We also
19487         remove the space after the = sign that can be generated by cpp
19488         on some systems.
19489
19490         Installed amindex-0.2 from Alan McIvor <alan@auck.irl.cri.nz>
19491         with the following patches:
19492
19493                 Fix problem so that rsh'ing on a hpux host works.
19494                 Patch from Neal Becker <neal@ctd.comsat.com>.  This
19495                 patch includes a new #define for RSH_COMMAND, which is
19496                 set to rsh in config-common.h and defined as remsh in
19497                 config.h-hpux.
19498
19499                 Fix bugs in createindex-dump.c when comparing errno to
19500                 EINTR.  The code was using = instead of ==.  Patch from
19501                 Neal Becker <neal@ctd.comsat.com>.  I'm guessing this
19502                 might fix some of the runaway createindex-dump
19503                 processes that I have seen on my system.
19504
19505                 On my system, we use MAE which likes to generate path
19506                 names with spaces in them.  I patched
19507                 createindex-dump.c so that filenames with spaces have
19508                 the whole filename listed.  Patch from Blair Zajac
19509                 <blair@gps.caltech.edu>.
19510
19511                 Patch amtrmidx.c so that backups using the mount points
19512                 for disks instead of the device name have the /'s
19513                 replaced with _'s.  Patch from Blair Zajac
19514                 <blair@gps.caltech.edu>.
19515
19516 Version 2.3.0.2
19517
19518         Changed the signals being sent to xfsdump for Irix so that it
19519         will be killed without dumping a core.
19520
19521         Fixed a typo in the definition of XFSDUMP in config.h-irix.
19522
19523         Removed the extra option.s-* and copied options.h to
19524         options.h-vanilla.
19525
19526         Moved the amrestore manual page into the man directory so it
19527         would get installed.
19528
19529 Version 2.3.0.1
19530
19531         amindex-0.1 written by Alan McIvor <alan@kauri.auck.irl.cri.nz>
19532         installed.  amindex generates an index of all of the files that
19533         were dumped.  It is nice to see what files were dumped before
19534         you restore a whole bunch of tapes looking for a file.  I
19535         patched some of this code.  Here are some of the changes:
19536
19537                 Switched the Imakefile to Makefile and Makefile.in to
19538                 be more consistent with the system used by the rest of
19539                 amanda.
19540
19541                 Moved the configuration #defines out of the specific
19542                 files (such as amrecover.c) into options.h, so that
19543                 people installing this version of amanda would be able
19544                 to see the required changes more easily and not have to
19545                 edit multiple files.
19546
19547                 Made some changes to the codes to remove #include's
19548                 where amanda.h would include them and also check if the
19549                 system had the particular include file.
19550
19551                 Added code to set_commands.c and amgetidx.c to change
19552                 /'s in disk names to _'s.
19553
19554                 Added code to amrecover.c to properly compile on
19555                 Solaris hosts.
19556
19557                 With the -Xc compiler option on Solaris and with
19558                 amindex, the sigaction structure was not being
19559                 declared.  Added -D__EXTENSIONS__ to config.h-sunos5 so
19560                 that sigaction would be declared.
19561
19562                 I changed a bunch of fprintf to perrors.
19563
19564         Include Sean Kelly's <kelly@fsl.noaa.gov> patch for tools/munge
19565         for FreeBSD-2.1.5.
19566
19567         Used Peter Lackner's <plo@came.sbg.ac.at> patches for DU 4.0.
19568
19569         Installed Ken Laprade's <klaprade@harris.com> patches for
19570         amanda to handle both EFS and XFs file systems on the same
19571         client.  The only change from his patch is to #ifdef XFSDUMP
19572         the kill(-dumppid, SIGTERM) so the SIGTERM signal will be used
19573         on other systems, while SIGQUIT will be used on Irix systems.
19574
19575         Installed Marion Hakanson's <hakanson@cse.ogi.edu> patches for
19576         the main config file to include subsidiary config files.
19577
19578         On Solaris, sometimes the hdr->handle variable in amandad.c
19579         would be null, causing core dumps when it was used in a sprintf
19580         statement.  The code now checks if hdr->handle is null and
19581         prints a "" if it is null.  This was only done in amandad.c.
19582
19583         Fix a problem where new disks would be added but not backed up
19584         concurrently.  Changes to diskfile.c.  I forgot who put this
19585         patch up on the mailing list.
19586
19587         I made some changes to options.h to allow the user to more
19588         easily install the programs under a different user.  This meant
19589         defining two new #defines, MK_AMANDA_USER and
19590         MK_QUOTED_AMANDA_USER which are used in the appropriate
19591         Makefiles.
19592
19593         Used Marion Hakanson's <hakanson@cse.ogi.edu> patch for taper.c
19594         for multiple tapes.
19595
19596         Included Joachim Loehr's <Joachim.Loeh@stadt-mh.de>
19597         script to automatically figure out which kind of HP-UX file
19598         system is being dumped.  Look in tools for the script and a
19599         README.
19600
19601 Local Variables:
19602 mode: change-log
19603 left-margin: 8
19604 fill-column: 76
19605 End: