various updates motivated by lintian warnings
[debian/amanda] / ChangeLog
1 2009-11-05  Jean-Louis Martineau <martineau@zmanda.com>
2         * client-src/sendbackup-dump.c, client-src/sendsize.c,
3           client-src/selfcheck.c:
4           Fix compiler error if VXDUMP or VDUMP is defined.
5
6 2009-11-05  Jean-Louis Martineau <martineau@zmanda.com>
7         * client-src/client_util.c: close FILE instead of fd.
8         * client-src/selfcheck.c: fix fd leak with app_stderr.
9
10 2009-10-29  Jean-Louis Martineau <martineau@zmanda.com>
11         * client-src/sendsize.c: Fix error reporting.
12
13 2009-10-27  Jean-Louis Martineau <martineau@zmanda.com>
14         * packaging/deb/rules, packaging/deb/buildpkg,
15           packaging/rpm/buildpkg,
16           packaging/rpm/amanda.spec: Change version to 2.6.1p2.
17         * NEWS: Add news for 2.6.1p2.
18         * configure.in: Change version to 2.6.1p2.
19
20 2009-10-27  Jean-Louis Martineau <martineau@zmanda.com>
21         * perl/Amanda/Application/Zfs.pm: Use diskname for the snapshot name.
22
23 2009-10-23  Jean-Louis Martineau <martineau@zmanda.com>
24         * device-src/tape-device.c: handle EROFS in open.
25
26 2009-10-08  Dustin J. Mitchell <dustin@zmanda.com>
27         * device-src/tape-device.h: add missing field
28
29 2009-10-07 Dan Locks <dwlocks@zmanda.com>
30         *  packaging/deb/control: add |gnuplot-nox
31
32 2009-10-07  Dustin J. Mitchell <dustin@zmanda.com>
33         * man/xml-source/amanda-devices.7.xml: add NONBLOCKING_OPEN property
34         * config/amanda/tape.m4: use DEFAULT_TAPE_NON_BLOCKING_OPEN by default
35           on Linux
36         * device-src/tape-device.c device-src/tape-device.h: conditionalize
37           the use of a nonblocking open
38
39 2009-10-07  Jean-Louis Martineau <martineau@zmanda.com>
40         * server-src/diskfile.c: Fix initialization of xml_app.result.
41
42 2009-08-31  Dustin J. Mitchell <dustin@zmanda.com>
43         * restore-src/amrestore.c: call device_configure
44
45 2009-08-31 Dan Locks <dwlocks@zmanda.com>
46         * packaging/rpm/amanda.spec: add amstar and amgtar to suid section of
47           %files for server.
48
49 2009-08-13  Dustin J. Mitchell <dustin@zmanda.com>
50         * device-src/amtapetype.pl: fix bad merge of references to
51           Amanda:Header
52
53 2009-08-05 Dan Locks <dwlocks@zmanda.com>
54         * Thanks to Jim Barber for pointing out these bugs.
55         * packaging/deb/amanda-backup-client.postinst, packaging/deb/rules,
56           packaging/deb/amanda-backup-server.postinst: replace all instances
57           of AMHOMEDIR with AMANDAHOMEDIR, install .am_passphrase 0600.
58         * packaging/deb/control: add build-depends for libglib2.0-dev
59
60 2009-07-24  Jean-Louis Martineau <martineau@zmanda.com>
61         * amandad-src/amandad.c: Fix fd allocation.
62
63 2009-07-16  Jean-Louis Martineau <martineau@zmanda.com>
64         * changer-src/chg-lib.sh.in: Fix MESSAGE parsing for Solaris sed.
65
66 2009-06-19  Jean-Louis Martineau <martineau@zmanda.com>
67         * server-src/reporter.c: Use the filenum from the PART line.
68                                  Keep the filenum of the first part.
69
70 2009-06-12  Jean-Louis Martineau <martineau@zmanda.com>
71         * amandad-src/amandad.c: Fix for configured with CLIENT_LOGIN=root
72         * man/xml-source/amanda-client.conf.5.xml: Typo.
73         * man/xml-source/amanda.conf.5.xml: Add ssh_keys.
74
75 2009-05-22  Jean-Louis Martineau <martineau@zmanda.com>
76         * restore-src/amfetchdump.c: Fix sort_needed_tapes_by_write_timestamp.
77
78 2009-05-22  Jean-Louis Martineau <martineau@zmanda.com>
79         * client-src/sendbackup.c: Compatibity with 2.4.2 server.
80
81 2009-05-15  Jean-Louis Martineau <martineau@zmanda.com>
82         * server-src/driver.c: Fix crash in amflush.
83
84 2009-05-15  Jean-Louis Martineau <martineau@zmanda.com>
85         * common-src/debug.c: Fix memory leak.
86
87 2009-05-07  Dustin J. Mitchell <dustin@zmanda.com>
88             Jean-Louis Martineau <martineau@zmanda.com>
89         * common-src/debug.c: do not use a mutex in debug_printf
90         * common-src/pipespawn.c server-src/changer.c:
91           do not call debug_printf after fork()
92
93 2009-05-06  Dustin J. Mitchell <dustin@zmanda.com>
94         * server-src/taper.c: check for division by zero and don't print 'nan'
95           for kbps
96         * installcheck/taper.pl: don't expect 'nan'
97
98 2009-05-04  Dustin J. Mitchell <dustin@zmanda.com>
99         * server-src/taper-mem-port-source.c
100           server-src/taper-disk-port-source.c: continue reading from the port
101           after the cache is exhausted, instead of terminating the part abruptly
102           (which can lead to insertion of spurious zeros into the dumpfile);
103           also remove some unnecessary assertions (g_return_val_if_fail)
104         * server-src/taper-file-source.c: use correct unit on part size;
105           correctly calculate estimated number of parts
106         * server-src/taper-port-source.c: replace assertion with 'if'
107
108 2009-04-27  Jean-Louis Martineau <martineau@zmanda.com>
109         * client-src/sendbackup.c: Fix dbprintf statements.
110
111 2009-04-22  Sam Couter <sam@couter.id.au>
112         * changer-src/chg-glue.pl: return a helpful error message when
113           Amanda::Changer->new() fails
114
115 2009-04-21  Jean-Louis Martineau <martineau@zmanda.com>
116         * man/xml-source/amanda-devices.7.xml: Add 'FSF_AFTER_FILEMARK'
117           property to 'tape:' driver.
118         * device-src/tape-device.c: Add code for new 'FSF_AFTER_FILEMARK'
119           property, set is_eof to FLASE where needed.
120         * device-src/tape-device.h: Add fsf_after_filemark to _TapeDevice.
121         * device-src/tape-aix.c, device-src/tape-uware.c,
122           device-src/tape-xenix.c, device-src/tape-posix.c: Set default value
123           for FSF_AFTER_FILEMARK.
124         * config/amanda/defaults.m4: Find default value for 'FSF_AFTER_FILEMARK'
125           property.
126         * xfer-src/dest-null.c: Remove bogus assert.
127         * device-src/amtapetype.pl: New -p option to discover driver properties,
128           it can find value for the 'FSF_AFTER_FILEMARK' property.
129         * man/xml-source/amtapetype.8.xml: Document -p options
130
131 2009-04-20  Jean-Louis Martineau <martineau@zmanda.com>
132         * device-src/tape-device.c: handle EROFS in open.
133
134 2009-04-17  Nikolas Coukouma <atrus@zmanda.com>
135         * device-src/device.c: fix error message for unparsable property
136
137 2009-04-15  Dustin J. Mitchell <dustin@zmanda.com>
138         * restore-src/amfetchdump.c: keep the order of tapes within a
139           particular run of Amanda
140
141 2009-04-10  Dustin J. Mitchell <dustin@zmanda.com>
142         * common-src/conffile.c: fix handling of double-backslash in quoted
143           strings
144
145 2009-04-09  Jean-Louis Martineau <martineau@zmanda.com>
146         * server-src/dumper.c: Check authopt before using it.
147
148 2009-04-07  Jean-Louis Martineau <martineau@zmanda.com>
149         * client-drc/sendbackup.c: Init result.
150
151 2009-04-07  Jean-Louis Martineau <martineau@zmanda.com>
152         * server-src/taper-source.c (default_taper_source_seek_to_part_start):
153           returns FALSE on not splitted dump.
154         * server-src/driverio.c: info.last_level should not be set on error
155                          if level >= info.last_level.
156         * server-src/driver.c: Rename update_failed_dump_to_tape to
157           update_failed_dump.
158           Call update_failed_dump on failed dump to holding disk.
159         * application-src/amgtar.c: Don't update statefile if the backup failed.
160         * client-drc/sendbackup.c: Don't update amandates if backup failed.
161
162 2009-04-03  Dustin J. Mitchell <dustin@zmanda.com>
163         * perl/Amanda/Changer/compat.pm: always configure devices while
164           scanning
165         * server-src/amcheckdump.pl: configure devices returned from the
166           changer
167
168 2009-04-01  Nikolas Coukouma <atrus@zmanda.com>
169         * device-src/s3.c: don't send empty location constraint,
170           allocate error messages
171
172 2009-04-01  Dustin J. Mitchell <dustin@zmanda.com>
173         * device-src/s3-device.c: always send errors from setup_handle
174
175 2009-04-01  Nikolas Coukouma <atrus@zmanda.com>
176         * device-src/s3-device.c: don't clobber errors from setup_handle
177
178 2009-03-31  Jean-Louis Martineau <martineau@zmanda.com>
179         * server-src/amcheck.c: Set l on error path.
180
181 2009-03-31  Jean-Louis Martineau <martineau@zmanda.com>
182         * perl/Amanda/Changer/compat.pm: Don't import :logging from Debug.
183
184 2009-03-30  Jean-Louis Martineau <martineau@zmanda.com>
185         * packaging/deb/changelog, packaging/deb/rules,
186         * packaging/deb/buildpkg, packaging/rpm/buildpkg,
187         * packaging/rpm/amanda.spec: Change version to 2.6.1p1.
188         * NEWS: Add news for 2.6.1p1.
189         * configure.in: Change version to 2.6.1p1.
190
191 2009-03-29  Dan Locks <dwlocks@zmanda.com>
192         * packaging/rpm/amanda.spec: change a number of %if conditionals to
193           macros which expand if they are defined.
194
195 2009-03-25  Dustin J. Mitchell <dustin@zmanda.com>
196         * device-src/s3.c: fix segfault in s3_make_bucket with location
197           constraint
198
199 2009-03-19  Dustin J. Mitchell <dustin@zmanda.com>
200         (thanks to Peter Kunst <peter.kunst@swissrisk.com>)
201         * common-src/Makefile.am: don't include genversion.h in distribution
202           tarballs
203
204 2009-03-19  Dustin J. Mitchell <dustin@zmanda.com>
205         * xfer-src/Makefile.am: add -release to libamxfer
206
207 2009-03-17  Jean-Louis Martineau <martineau@zmanda.com>
208         * server-src/amlabel.c: give correct exit status on failure
209
210 2009-03-13  Jean-Louis Martineau <martineau@zmanda.com>
211         * server-src/amstatus.pl: dump in "writing to tape" mode should also
212                                   be included in the "dumped" summary.
213
214 2009-03-13  Jean-Louis Martineau <martineau@zmanda.com>
215         * server-src/find.c: Fix listing of partial dump in holding disk.
216
217 2009-03-12  Jean-Louis Martineau <martineau@zmanda.com>
218         * server-src/planner.c: Log quoted qname.
219
220 2009-03-11  Dustin J. Mitchell <dustin@zmanda.com>
221         * device-src/amtapetype.pl: do not produce broken 'bytes' units
222         * installcheck/amtapetype.pl: test changes
223         * man/xml-source/amanda.conf.5.xml: tapetype:length is not in bytes!
224         * common-src/conffile.c: fix default for tapetype:length
225
226 2009-03-11  Dustin J. Mitchell <dustin@zmanda.com>
227         * common-src/amfeatures.c: improve error handling in
228           am_string_to_feature, return NULL on error
229         * amandad-src/amandad_util.c recover-src/amrecover.c
230           server-src/amcheck.c server-src/amindexd.c server-src/chunker.c
231           server-src/driver.c server-src/dumper.c server-src/planner.c: always
232           terminate the string passed to am_string_to_feature
233
234 2009-03-11  Dustin J. Mitchell <dustin@zmanda.com>
235         * common-src/amfeatures.c: fix am_string_to_feature to fail correctly
236           on a bad feature string
237
238 2009-03-10  Jean-Louis Martineau <martineau@zmanda.com>
239         * server-src/taper.c: return DONE if input file is partial.
240
241 2009-03-10  Dustin J. Mitchell <dustin@zmanda.com>
242         * common-src/conffile.c: Set default TAPETYPE_FILEMARK to 1.
243
244 2009-02-27  Jean-Louis Martineau <martineau@zmanda.com>
245         * application-src/amgtar.c: Fix parsing of EXIT-HANDLING property.
246
247 2009-02-24  Dustin J. Mitchell <dustin@zmanda.com>
248         * changer-src/chg-rait.sh: get directory handling right (patch from
249           Jim.pennino on wiki.zmanda.com)
250         * changer-src/chg-glue.pl: produce a debug log, add do_clean, fix
251           do_eject
252         * perl/Amanda/Changer.pm: Add a new chg->eject method, to eject a
253           volume that's not currently reserved
254         * perl/Amanda/Changer/compat.pm: fix release(), don't load 'current'
255           after cleaning or ejecting
256         * installcheck/Amanda_Changer_compat.pl: updated tests
257
258 2009-02-24  Jean-Louis Martineau <martineau@zmanda.com>
259         * amandad-src/amandad.c, application-src/amgtar.c,
260           changer-src/scsi-changer-driver.c, client-src/client_util.c,
261           common-src/conffile.c, device-src/s3-device.c,
262           oldrecover-src/set_commands.c, recover-src/set_commands.c,
263           server-src/amindexd.c, server-src/planner.c,
264           server-src/reporter.c: Replace all occurences of index by strchr,
265                                  Replace all occurences of rindex by strrchr.
266
267 2009-02-24  Nikolas Coukouma <atrus@zmanda.com>
268         * device-src/s3.c: make s3_list_keys use its own buffer
269
270 2009-02-24  Nikolas Coukouma <atrus@zmanda.com>
271         * device-src/s3.c: fix error buffer handling of overflow data
272
273 2009-02-23  Dustin J. Mitchell <dustin@zmanda.com>
274         * device-src/rait-device.c: actually *report* mismatched child
275           labels/timestamps; correctly detect the 'first' device; and free old
276           device label/time
277
278 2009-02-23  Dustin J. Mitchell <dustin@zmanda.com>
279         * device-src/vfs-device.c: remove bogus locking stubs that are
280           making syscalls like close(-1); fix error handling in read_label
281           if check_is_dir fails()
282
283 2009-02-19  Dustin J. Mitchell <dustin@zmanda.com>
284         * perl/Amanda/Changer/compat.pm: add missing semicolon in do_release
285
286 2009-02-18  John Hein <jhein@timing.com>
287         * common-src/dgram.c: set the send buffer size when creating a new
288           socket
289
290 2009-02-17  Dustin J. Mitchell <dustin@zmanda.com>
291         * restore-src/amfetchdump.c: remove unintended debugging messages
292
293 2009-02-17  Jean-Louis Martineau <martineau@zmanda.com>
294         * changer-src/chg-manual.sh: make messages clearer
295         * perl/Amanda/Changer/compat.pm: use _run_tpchanger directly from
296           _manual_scan
297         * server-src/amcheckdump.pl: handle errors better
298
299 2009-02-09  Dustin J. Mitchell <dustin@zmanda.com>
300         * man/xml-source/amanda.conf.5.xml: remove TODO
301
302 2009-02-07  Dustin J. Mitchell <dustin@zmanda.com>
303         * common-src/event.c: use built-in child watch source on FreeBSD
304
305 2009-02-06  Jean-Louis Martineau <martineau@zmanda.com>
306         * server-src/dumper.c: options is already unquoted.
307         * common-src/util.c: argument should not be quoted when added to argv.
308
309 2009-02-06  Dustin J. Mitchell <dustin@zmanda.com>
310         * installcheck/Amanda_Changer_compat.pl: remove debugging code
311
312 2009-02-06  Jean-Louis Martineau <martineau@zmanda.com>
313         patch by Yoshihiro Ishikawa
314         * recover-src/extract_list.c: Handle application-api.
315
316 2009-02-06  Dustin J. Mitchell <dustin@zmanda.com>
317         * installcheck/Amanda_Changer_compat.pl: support 'eject'
318         * perl/Amanda/Changer.pm: change release/do_relase relationship
319         * perl/Amanda/Changer/compat.pm: same
320         * perl/Amanda/Changer/disk.pm: same
321         * perl/Amanda/Changer/single.pm: same
322
323 2009-01-13  Dustin J. Mitchell <dustin@zmanda.com>
324         * perl/Amanda/Paths.pm.in: add $localstatedir
325         * server-src/amserverconfig.pl: remove extraneous /
326
327 2009-02-04  Jean-Louis Martineau <martineau@zmanda.com>
328         * amplot/amplot.awk: Set term to x11.
329
330 2009-02-02  Jean-Louis Martineau <martineau@zmanda.com>
331         * common-src/conffile.c: Correctly copy pp_scriptlist.
332
333 2009-02-02  Dustin J. Mitchell <dustin@zmanda.com>
334         * config/config.guess config/config.sub: new updates from FSF
335         * autogen: fix quoting error
336         * config/amanda/dumpers.m4:  use a hostname we're more confident
337           doesn't exist
338
339 2009-01-30  Jean-Louis Martineau <martineau@zmanda.com>
340         * server-src/amstatus.pl: Remove a bogus line.
341
342 2009-01-22  Jean-Louis Martineau <martineau@zmanda.com>
343         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.1")
344         * packaging/deb/rules, packaging/deb/buildpkg, packaging/deb/changelog,
345           packaging/rpm/buildpkg,
346           packaging/rpm/amanda.spec: Change version to 2.6.1.
347
348 2009-01-22  Jean-Louis Martineau <martineau@zmanda.com>
349         * man/xml-source/amstar.8.xml: Typo.
350
351 2009-01-21  Jean-Louis Martineau <martineau@zmanda.com>
352         * server-src/driver.c: Add call to short_dump_state().
353
354 2009-01-21  Jean-Louis Martineau <martineau@zmanda.com>
355         * server-src/reporter.c: Set exit_status to STATUS_TAPE if taper crash.
356
357 2009-01-21  Jean-Louis Martineau <martineau@zmanda.com>,
358             Dustin J. Mitchell <dustin@zmanda.com>
359         * common-src/fileheader.c: Remove strquotedstr function.
360         * common-src/quoting-test.c: Test strquotedstr function.
361         * common-src/util.c: Add prototype for strquotedstr function.
362         * common-src/util.h: Add new strquotedstr function.
363
364 2009-01-21  Jean-Louis Martineau <martineau@zmanda.com>
365         * application-src/Makefile.am: Typo
366
367 2009-01-21  Dustin J. Mitchell <dustin@zmanda.com>
368         Patch suggested by Ingo Schaefer <ingo@ingo-schaefer.de>
369         * packaging/rpm/amanda.spec: detect and properly support suse11.1,
370           with a temporary hack to support suse11, too
371
372 2009-01-21  Jean-Louis Martineau <martineau@zmanda.com>
373         * packaging/rpm/amanda.spec: Typo.
374
375 2009-01-21  Jean-Louis Martineau <martineau@zmanda.com>
376         * server-src/amstatus.pl: Fix use of %free and %qlen keys.
377
378 2009-01-20 Dan Locks <dwlocks@zmanda.com>
379         * packaging/rpm/amanda.spec: add missing BuildRequires, conditionalize 
380           libtermcap.so.2 for fedora, change tar requirement to %{tarver}
381
382 2009-01-20 Dan Locks <dwlocks@zmanda.com>
383         * packaging/rpm/amanda.spec: add %{PERLSITELIB} to %files section to
384           install perl for the client package add "directory mode" to defattr
385           statements where appropriate.
386
387 2009-01-19  Jean-Louis Martineau <martineau@zmanda.com>
388         * server-src/diskfile.c: Use dp->hostnext to scan dles of a host.
389
390 2009-01-19  Jean-Louis Martineau <martineau@zmanda.com>
391         * device-src/vfs-device.c: robust_open can return fd 0.
392
393 2009-01-19  Tom Robinson <tom.robinson@constantstream.com>
394         * server-src/amoverview.pl: fix parsing of filenames containing colons
395
396 2009-01-19  Jean-Louis Martineau <martineau@zmanda.com>
397         * application-src/amzfs-sendrecv.pl: Handle incremental,
398                                              new KEEP-SNAPSHOT property.
399         * man/xml-source/amzfs-sendrecv.8.xml: Document it.
400         * application-src/teecount.c: New program.
401         * application-src/Makefile.am: Add teecount.
402         * perl/Amanda/Application/Zfs.pm: Work with 'current' snapshot.
403         * common-src/amanda.h: include "safe-read.h"
404
405 2009-01-17  Jean-Louis Martineau <martineau@zmanda.com>
406         * server-src/amstatus.pl: Don't add 'dump to tape' in the 'dumped'
407                                   result.
408
409 2009-01-16 Dan Locks <dwlocks@zmanda.com>
410         * packaging/rpm/amanda.spec: fix the fedora 10 fix for other distros
411
412 2009-01-16  Dustin J. Mitchell <dustin@zmanda.com>
413         * device-src/vfs-device.c: don't cache the dir_handle, as
414           such caching does not work on some network filesystems
415
416 2009-01-16  Jean-Louis Martineau <martineau@zmanda.com>
417         * packaging/rpm/amanda.spec: Fix for fedora 10.
418
419 2009-01-16  Dustin J. Mitchell <dustin@zmanda.com>
420         * device-src/amtapetype.pl: remove call to old device function
421
422 2009-01-16  Jean-Louis Martineau <martineau@zmanda.com>
423         * server-src/driver.c: Use bitwise NOT for taper_state.
424
425 2009-01-16  Jean-Louis Martineau <martineau@zmanda.com>
426         * server-src/taper.c: Go to next tape if device_start_file fail.
427         * device-src/tape-device.c: write a filemark when a file is finished.
428         * device-src/tape-device.h (TapeDevice): Remove first_file.
429
430 2009-01-16  Jean-Louis Martineau <martineau@zmanda.com>
431         * client-src/sendbackup.c: Fix for no index with application.
432         * application-src/amstar.c: Improve error reporting.
433         * application-src/amgtar.c: Improve error reporting.
434
435 2009-01-14  Jean-Louis Martineau <martineau@zmanda.com>
436         * application-src/amgtar.c: Add TAR-BLOCKSIZE property.
437         * man/xml-source/amgtar.8.xml; document TAR-BLOCKSIZE property.
438
439 2009-01-13  Jean-Louis Martineau <martineau@zmanda.com>
440         * server-src/amcheck.c: Check fallback_splitsize is smaller than
441                                 physmem_total().
442         * server-src/taper-mem-port-source.c: Dont; check physmem_available.
443
444 2009-01-12  Jean-Louis Martineau <martineau@zmanda.com>
445         * server-src/server_util.c: New get_pending_cmd function.
446         * server-src/server_util.h: get_pending_cmd prototype.
447         * server-src/driver.c: Send message to dumper in ABORT command.
448         * server-src/driverio.c: Send message to dumper in ABORT command.
449         * server-src/dumper.c: Check for ABORT cmd.
450         * server-src/reporter.c: Don't log duplicate
451                                  'Not enough holding disk space' error
452
453 2009-01-12  Jean-Louis Martineau <martineau@zmanda.com>
454         * server-src/driver.c: Fix result_argv subscript.
455
456 2009-01-08  Jean-Louis Martineau <martineau@zmanda.com>
457         * restore-src/amfetchdump.c: Write to stderr.
458
459 2009-01-06  Jean-Louis Martineau <martineau@zmanda.com>
460         * device-src/tape-device.c (tape_device_seek_file): Set is_eof to FALSE
461           after it is use.
462
463 2009-01-06  Jean-Louis Martineau <martineau@zmanda.com>
464         * server-src/taper.c: Don't call changer_label() if a changer is not
465                               in use.
466
467 2009-01-06  Jean-Louis Martineau <martineau@zmanda.com>
468         * server-src/driverio.c: Set *result_argv to NULL on EOF.
469         * server-src/taper-mem-port-source.c: Set an error if the memory can't
470           be allocated for the memory buffer.
471
472 2009-01-05  Dustin J. Mitchell <dustin@zmanda.com>
473         * client-src/runtar.c: remove unnecessary check for existence of
474           CLIENT_LOGIN
475
476 2009-01-05  Jean-Louis Martineau <martineau@zmanda.com>
477         * perl/Amanda/Archive.swg, perl/Amanda/Device.swg,
478           perl/Amanda/Xfer.swg: Fix compiler warning.
479
480 2009-01-05  Jean-Louis Martineau <martineau@zmanda.com>
481         * config/automake/scripts.am: Remove 'use lib' line before doing check.
482
483 2008-12-22  Jean-Louis Martineau <martineau@zmanda.com>
484         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.1b2")
485         * packaging/deb/rules, packaging/deb/buildpkg,
486           packaging/deb/changelog, packaging/rpm/buildpkg,
487           packaging/rpm/amanda.spec: Change version to 2.6.1b2.
488
489 2008-12-22  Paul Yeatman <pyeatman@zmanda.com>
490         * man/entities/global.entities.in: added author/email entity for me
491         * man/xml-source/amanda-auth.7.xml: newly added man page
492         * man/Makefile.am: added amanda-auth to section 7
493         * man/xml-source/amanda.conf.5.xml: removed details on auth parameter
494         and added link to amanda-auth man page 
495         * man/xml-source/amanda.conf.5.xml: moved AUTHORIZATION section to
496         amanda-auth and added link to amanda-auth man page 
497
498 2008-12-22  Nikolas Coukouma <atrus@zmanda.com>
499         * device-src/s3.c: retry on CURLE_GOT_NOTHING (52) to handle "connection reset by peer"
500
501 2008-12-22  Dustin J. Mitchell <dustin@zmanda.com>
502         * device-src/s3.c: translate error code 0 to "None", not NULL
503
504 2008-12-22  Dustin J. Mitchell <dustin@zmanda.com>
505         * application-src/amgtar.c,
506           application-src/amstar.c: Use sizeof(line) for argument to fgets.
507
508 2008-12-22  Jean-Louis Martineau <martineau@zmanda.com>
509         * man/xml-source/amarchiver.8.xml: amanda-archive-format man page is
510                                            in section 5.
511
512 2008-12-22  Dustin J. Mitchell <dustin@zmanda.com>
513         * installcheck/Installcheck/Dumpcache.pm
514           installcheck/Installcheck/Run.pm installcheck/amdump.pl
515           installcheck/pp-scripts.pl: move amdump_diag to Installcheck::Run, fix
516           it, and use it in amdump and pp-scripts
517         * application-src/amlog-script.pl: don't pretend to be script-email
518         * man/Makefile.am: amanda-archive-format should be section 5
519         * man/xml-source/amanda-archive-format.5.xml: small tweaks
520         * man/xml-source/amanda-changers.7.xml: fix authorship
521         * man/xml-source/amanda.8.xml: add link to amvault(8)
522         * man/xml-source/amvault.8.xml: enumerate limitations of this version
523         * perl/Amanda/Config.swg: fix mem leak in config_dir_relative wrapper
524
525 2008-12-22  Dustin J. Mitchell <dustin@zmanda.com>
526         * config/amanda/dirs.m4: add --with-amdatadir
527         * example/Makefile.am: use it for examples and templates
528         * perl/Amanda/Paths.pm.in: add $amdatadir
529         * server-src/amserverconfig.pl: use it
530         * packaging/deb/rules packaging/rpm/amanda.spec: packaging changes
531           so that built packages still put examples and templates in
532           /var/lib/amanda
533
534 2008-12-22  Jean-Louis Martineau <martineau@zmanda.com>
535         * application-src/amstar.c: Use fgets to read star output.
536         * application-src/amgtar.c: Use fgets to read gtar output.
537
538 2008-12-22  Jean-Louis Martineau <martineau@zmanda.com>, 
539             Dustin J. Mitchell <dustin@zmanda.com>
540         * common-src/util.c: Convert underscore in application and script
541                              property name to dash.
542         * device-src/property.c: Make underscore and dash equal in device
543                                  property name.
544         * installcheck/Amanda_Device.pl: Check device property name with
545                                          mixed case and dash.
546         * installcheck/pp-scripts.pl: Check property name with underscore.
547
548 2008-12-22  Jean-Louis Martineau <martineau@zmanda.com>
549         * server-src/reporter.c: Fix reporting of FLUSH.
550
551 2008-12-19  Nikolas Coukouma <atrus@zmanda.com>, Dustin J. Mitchell <dustin@zmanda.com>
552         * device-src/s3-device.c, device-src/s3.c, device-src/s3.h:
553           Reset read and write when retrying a failed request
554
555 2008-12-19  Jean-Louis Martineau <martineau@zmanda.com>
556         * server-src/holding.c (holding_get_file_chunks): Set fullpaths to 1.
557
558 2008-12-18  Jean-Louis Martineau <martineau@zmanda.com>
559         * common-src/security-util.c: Don't free 'rc'.
560
561 2008-12-18  Jean-Louis Martineau <martineau@zmanda.com>
562         * man/xml-source/amgtar.8.xml: Improve documentation of regex.
563
564 2008-12-18  Jean-Louis Martineau <martineau@zmanda.com>
565         * common-src/conffile.h (anonymous_value): New prototype.
566         * common-src/conffile.c (anonymous_value): New function.
567         * common-src/conffile.c: Use anonymous_value.
568         * server-src/diskfile.c: Use anonymous_value.
569
570 2008-12-17  Jean-Louis Martineau <martineau@zmanda.com>
571         * perl/Amanda/Script_App.pm: Fix infinite loop.
572         * perl/Amanda/Application/Zfs.pm: Fix for freebsd.
573
574 2008-12-17  Jean-Louis Martineau <martineau@zmanda.com>
575         * server-src/planner.c: Run script only if todo is set.
576
577 2008-12-17  Jean-Louis Martineau <martineau@zmanda.com>
578         * installcheck/amfetchdump.pl: chdir() before rmtree().
579
580 2008-12-17  Jean-Louis Martineau <martineau@zmanda.com>
581         * common-src/pipespawn.c: Remove bogus g_debug().
582
583 2008-12-17  Jean-Louis Martineau <martineau@zmanda.com>
584         * installcheck/amarchiver.pl: chdir() before rmtree().
585         * installcheck/amcheckdump.pl: Add reason to BAIL_OUT.
586         * installcheck/amdevcheck.pl: Add reason to BAIL_OUT.
587
588 2008-12-07  Satya Ganga <gsat@zmanda.com>
589         * changer-src/chg-lib.sh.in: Remove dependency on ggrep and use mtx
590           offline command instead of "eject" which is not supported on solaris.
591
592 2008-12-17 Dan Locks <dwlocks@zmanda.com>
593         * config/amanda/changer.m4: update AC_CHECK_HEADERS to get rid of
594           "present but cannot be compiled" warning during debian packaging.
595
596 2008-12-17 Dan Locks <dwlocks@zmanda.com>
597        * packaging/rpm/amanda.spec: add detection for SLES11 (Beta)
598
599 2008-12-17  Dustin J. Mitchell <dustin@zmanda.com>
600         * man/xml-source/amgtar.8.xml: atime_preserve -> atime-preserve
601         * installcheck/pp-scripts.pl: add atime-preserve property, remove
602           references to Installcheck::Dumpcache, which isn't in this release
603
604 2008-12-16  Dustin J. Mitchell <dustin@zmanda.com>
605         * man/xslt/html.xsl.in: add <div class="refentry" /> for the benefit
606           of amanda.css.
607
608 2008-12-16  Jean-Louis Martineau <martineau@zmanda.com>
609         * common-src/security-util.c: Don't close if it's not open.
610
611 2008-12-16  Jean-Louis Martineau <martineau@zmanda.com>
612         * application-src/Makefile.am: Add amlog-script.
613         * application-src/amlog-script.pl: New scripts.
614         * server-src/amcheck.c , server-src/planner.c,
615           server-src/server_util.c, server-src/server_util.h,
616           server-src/driver.c: Add level argument to run_server_scripts().
617           The script is executed with that level argument.
618         * installcheck/pp-scripts.pl: Check scripts.
619         * installcheck/Makefile.am: Add pp-scripts.
620
621 2008-12-16  Dustin J. Mitchell <dustin@zmanda.com>
622         * man/Makefile.am man/xml-source/amanda-changers.7.xml
623           man/xml-source/amanda-devices.7.xml man/xml-source/amanda.8.xml
624           man/xml-source/amanda.conf.5.xml: new documentation
625         * perl/Amanda/Changer.pm: not finished yet!
626         * perl/Amanda/Changer/compat.pm: fix error message
627         * server-src/changer.c changer-src/chg-glue.pl:
628           better error handling
629
630 2008-12-16  Dustin J. Mitchell <dustin@zmanda.com>
631         * changer-src/chg-glue.pl: add labelling support
632         * perl/Amanda/Changer/compat.pm: only call '-label' on chg-zd-mtx if
633           the changer is not seekable (hack to make slotinfofile work)
634         * changer-src/chg-zd-mtx.sh: provide optional slotinfofile mapping
635           slots to labels on a best-information-available basis
636
637 2008-12-15  Jean-Louis Martineau <martineau@zmanda.com>
638         * amandad-src/amandad.c: Set wait_30s to 0 for local auth.
639
640 2008-12-15  Dustin J. Mitchell <dustin@zmanda.com>
641         * installcheck/Amanda_Config.pl: work around buggy sort() in perl-5.6
642         * installcheck/Amanda_DB_Catalog.pl installcheck/Amanda_Logfile.pl:
643           stringify bigints in is_deeply arguments
644         * perl/Amanda/Archive.swg: grok_number is not in perl-5.6
645         * perl/Amanda/BigIntCompat.pm: additional overloads and methods for
646           BigIntCompat for perl-5.6 compatibility
647
648 2008-12-14  Dustin J. Mitchell <dustin@zmanda.com>
649         * man/Makefile.am: change manpage build process
650         * man/entities/global.entities.in: generate with config.status
651         * man/xslt/html.xsl.in: new templates to handle authors
652         * man/xslt/man.xsl.in: new templates to handle authors
653         * man/xml-source/*.xml: change specification of authors
654         * man/xml-source/amanda-applications.7.xml: add links to apps
655         * man/xml-source/amanda-scripts.7.xml: add links to scripts
656
657 2008-12-12  John Hein <jhein@timing.com>
658         * server-src/amdump.sh: fix Open3 invocation to work on
659           FreeBSD-4.x
660
661 2008-12-12  Jean-Louis Martineau <martineau@zmanda.com>
662         * man/xml-source/amanda.conf.5.xml: Fix use of <programlisting>, it must
663                                             always be at the beginning of the line.
664
665 2008-12-12  Jean-Louis Martineau <martineau@zmanda.com>
666         * application-src/amgtar.c: Fix coredump if GNUTAR is not set.
667
668 2008-12-12  Dustin J. Mitchell <dustin@zmanda.com>
669         * client-src/sendbackup-dump.c: fix previous commit to not use
670           precompiler directives in the middle of a macro invocation
671
672 2008-12-12  Jean-Louis Martineau <martineau@zmanda.com>
673         * NEWS, ReleaseNotes: Add amzfs-sendrecv.
674         * client-src/sendbackup.c: Fix indexd test.
675         * man/Makefile.am: Add amzfs-sendrecv.8.
676         * man/xml-source/amzfs-snapshot.8.xml: Add DLE format example.
677         * man/xml-source/amanda-applications.7.xml: Add amzfs-sendrecv.8.
678         * man/xml-source/amanda.8.xml: Add amzfs-sendrecv.8.
679         * man/xml-source/amzfs-sendrecv.8.xml: New man page.
680         * application-src/amzfs-sendrecv.pl: New application.
681         * application-src/amzfs-snapshot.pl: Fix to use
682                                              Amanda::Application::Zfs
683         * application-src/Makefile.am: Add amzfs-sendrecv.
684         * perl/Amanda/Script_App.pm: Exit instead of die.
685         * perl/Amanda/Application/Zfs.pm: New perl module for zfs.
686         * perl/Makefile.am: Add Amanda/Application and
687                             Amanda/Application/Zfs.pm
688
689 2008-12-12  Jean-Louis Martineau <martineau@zmanda.com>
690         * recover-src/extract_list.c: Wait to read at least one byte from the
691                                       data stream before forking the child.
692
693 2008-12-12  Jun Kuriyama <kuriyama@freebsd.org>, Göran Löwkran
694         * changer-src/chg-zd-mtx.sh: fix bashisms
695         * client-src/sendbackup-dump.c: use -L on systems that support it
696
697 2008-12-11  Jean-Louis Martineau <martineau@zmanda.com>
698         * NEWS, ReleaseNotes: Add amsamba.
699
700 2008-12-11  Jean-Louis Martineau <martineau@zmanda.com>
701         * server-src/driver.c: Check start_t before doing a dump to tape.
702
703 2008-12-09  C R Ritson.
704         * server-src/reporter.c: Add threshold to small and big estimate.
705
706 2008-12-09  Jean-Louis Martineau <martineau@zmanda.com>
707         * client-src/client_util.c: Parse RECOVER-MODE application support.
708         * client-src/client_util.h (backup_support_option_t):
709                                    Add smb_recover_mode.
710         * client-src/sendsize.c: Fix size.
711         * man/Makefile.am: Add amsamba.8.
712         * man/xml-source/amsamba.8.xml: New man page.
713         * man/xml-source/amanda-applications.7.xml: List amsamba.
714         * man/xml-source/amanda.8.xml: List amsamba.
715         * application-src/Makefile.am (CHECK_PERL): Add amsamba
716         * application-src/amsamba.pl: New application.
717         * recover-src/extract_list.c: Get support option from application
718           and set --recover-mode if needed.
719         * recover-src/amrecover.h: Remove some "#ifdef SAMBA_CLIENT".
720         * recover-src/set_commands.c: Remove some "#ifdef SAMBA_CLIENT".
721         * perl/Amanda/Paths.pm.in: Add $sysconfdir.
722         * perl/Amanda/Util.swg: Add skip_quoted_string.
723
724 2008-12-09  Jean-Louis Martineau <martineau@zmanda.com>
725         * man/xml-source/amstar.8.xml: Typo.
726
727 2008-12-09  Jean-Louis Martineau <martineau@zmanda.com>
728         * man/xml-source/amanda.conf.5.xml: Fix plugin location.
729
730 2008-12-07  Dustin J. Mitchell <dustin@zmanda.com>
731         * server-src/Makefile.am server-src/amvault.pl: new, experimental
732           script to copy data from secondary to tertiary volumes
733         * common-src/fileheader.c: strip spurious ' ' from headers
734         * man/Makefile.am man/xml-source/amvault.8.xml: docs
735         * perl/Amanda/DB/Catalog.pm: add kbps calculation
736         * perl/Amanda/Device.swg: add volume_header() method
737
738 2008-12-05  Dustin J. Mitchell <dustin@zmanda.com>
739         * server-src/taper.c: remove dead code that can cause compiler errors
740
741 2008-12-05  Jean-Louis Martineau <martineau@zmanda.com>
742         * server-src/driverio.c: Send a message with NO-NEW-TAPE.
743         * server-src/driver.c: Generate message for NO-NEW-TAPE, call
744           start_degraded_mode when sending NO-NEW-TAPE, Fix a subscript error 
745           for INPUT-ERROR and TAPE-ERROR
746         * server-src/taper.c: Get message from NO-NEW-TAPE command and log it.
747
748 2008-12-03  Jean-Louis Martineau <martineau@zmanda.com>
749         * man/xml-source/amanda.conf.5.xml: Provide default unit.
750
751 2008-12-03  Jean-Louis Martineau <martineau@zmanda.com>
752         * server-src/amcheckdump.pl: Use GNUTAR to validate smbclient image.
753
754 2008-12-01  Nikolas Coukouma <atrus@zmanda.com>
755         * device-src/s3.c: fix signedness
756
757 2008-12-01  Dustin J. Mitchell <dustin@zmanda.com>
758         * common-src/util.c: fix mishandling of trailing backslash in
759           unquote_string
760
761 2008-12-01  Nikolas Coukouma <atrus@zmanda.com>
762         * device-src/s3.c, device-src/s3.h: Fix segmentation fault within s3_make_bucket
763           by adding some "null-op" read and write functions.
764
765 2008-11-27  Jean-Louis Martineau <martineau@zmanda.com>
766         * server-src/amstatus.pl: Correctly parse degraded size.
767
768 2008-11-26  Jean-Louis Martineau <martineau@zmanda.com>
769         * client-src/sendbackup.c: Set application in extraction command.
770
771 2008-11-25  Jean-Louis Martineau <martineau@zmanda.com>
772         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.1b1")
773         * ReleaseNotes: Release notes for 2.6.1b1.
774         * NEWS: News for 2.6.1b1.
775         * packaging/deb/rules, packaging/deb/buildpkg,
776           packaging/rpm/buildpkg,
777           packaging/rpm/amanda.spec: Change version to 2.6.1b1.
778
779 2008-11-25  Jean-Louis Martineau <martineau@zmanda.com>
780         * config/amanda/bsd-security.m4: Fix.
781         * config/amanda/bsdtcp-security.m4: Enable --with-bsdtcp-secutiy by
782                                             default.
783         * config/amanda/ssh-security.m4: Enable --with-ssh-security by default.
784
785 2008-11-25  Dustin J. Mitchell <dustin@zmanda.com>
786         * changer-src/Makefile.am changer-src/chg-glue.pl:
787           add new c-to-perl glue script
788         * server-src/changer.c: interface with new script
789         * server-src/amtape.c man/xml-source/amtape.8.xml:
790           remove 'slot last' and 'slot prev'
791         * perl/Amanda/Changer.pm perl/Amanda/Changer/compat.pm
792           perl/Amanda/Changer/disk.pm perl/Amanda/Changer/single.pm: updates to
793           new Changer API
794         * installcheck/Amanda_Changer.pl installcheck/Amanda_Changer_compat.pl
795           installcheck/Amanda_Changer_disk.pl installcheck/Amanda_Changer_single.pl
796           installcheck/Makefile.am: tests for all of it
797
798 2008-11-25  Dustin J. Mitchell <dustin@zmanda.com>
799         * example/template.d/advanced.conf.in: don't imply that
800           maxdumpsize is in bytes
801
802 2008-11-21  Nikolas Coukouma <atrus@zmanda.com>
803         * device-src/s3.c: work around a bug in Amazon's HTTP implementation
804           by avoiding HEAD requests.
805
806 2008-11-21  Jean-Louis Martineau <martineau@zmanda.com>
807         * server-src/diskfile.c (clean_dle_str_for_client): Return NULL if
808                                                             argument is NULL.
809         * restore-src/restore.c: Also check for F_EMPTY.
810
811 2008-11-21  Jean-Louis Martineau <martineau@zmanda.com>
812         * amandad-src/amandad.c: Wait up to 5 seconds dwfor only for process
813                                  that should terminate.
814
815 2008-11-21  Dustin J. Mitchell <dustin@zmanda.com>
816         * restore-src/restore.c: Continue if setting PROPERTY_READ_BUFFER_SIZE
817                                  fail.
818
819 2008-11-20  Jean-Louis Martineau <martineau@zmanda.com>
820         * server-src/server_util.c: Skip one field in parsing INFO pid line.
821
822 2008-11-20  Jean-Louis Martineau <martineau@zmanda.com>
823         * oldrecover-src/extract_list.c: Use config.
824         * server-src/dumper.c: Check dle_str for NULL.
825
826 2008-11-20  Jean-Louis Martineau <martineau@zmanda.com>
827         * server-src/amdump.sh: Run amreport if the 'log' file already exist.
828
829 2008-11-20  Urs Schurer <urs@sitb.de>
830         * server-src/amindexd.c: remove unnecessary stralloc()/free() calls
831           in process_ls_dump
832
833 2008-11-19 Satya Ganga <gsat@zmanda.com>
834         * example/inetd.conf.amandaserver.in: Add serverconfig file
835         * configure.in,example/Makefile.am: Include inetd.conf.amandaserver
836
837 2008-11-18 Dan Locks <dwlocks@zmanda.com>
838         * packaging/rpm/amanda.spec: removed conditionals around
839           perl(ExtUtils::Embed) so that buildrequires applies to all platforms
840
841 2008-11-18  Satya Ganga <gsat@zmanda.com>
842         * device-src/tape-device.c: Remove O_NONBLOCK flag from all tape open calls.
843
844 2008-11-18  Jean-Louis Martineau <martineau@zmanda.com>
845         * application-src/amstar.c: Free qdisk after the loop.
846         * application-src/amgtar.c: Free qdisk after the loop.
847
848 2008-11-17  Jean-Louis Martineau <martineau@zmanda.com>
849         * man/xml-source/amgtar.8.xml: Update for ATIME-PRESERVE default.
850
851 2008-11-17  Jean-Louis Martineau <martineau@zmanda.com>
852         * server-src/taper.c: Fix formating.
853
854 2008-11-17  Jean-Louis Martineau <martineau@zmanda.com>
855         * server-src/amstatus.pl: Parse "taper: using label ..." line.
856         * server-src/driver.c: Print tape size.
857         * server-src/amtoc.pl: Fix for new log format.
858         * server-src/reporter.c: Increase field width.
859         * server-src/taper.c: Print number of kbytes written to each tape.
860
861 2008-11-14  Dustin J. Mitchell <dustin@zmanda.com>
862         * device-src/s3-device.c: eliminate an extra buffer copy in the
863           common case where the caller supplies a large enough buffer
864         * device-src/s3.h: tweak a comment
865
866 2008-11-14  Jean-Louis Martineau <martineau@zmanda.com>
867         * server-src/holding.h: Improve comment.
868         * server-src/reporter.c: Print holding disk size in displyaunit.
869
870 2008-11-14  Jean-Louis Martineau <martineau@zmanda.com>
871         * client-src/client_util.c: Get stderr of scripts and send it to
872                                     server.
873         * client-src/client_util.h: Add err in client_script_result_t.
874         * client-src/sendbackup.c: Call run_client_scripts with mesgstream.
875         * client-src/sendsize.c: Fix.
876         * server-src/planner.c: Get WARNING line from client.
877         * server-src/reporter.c: Don't mark the dumper as FAILED if the
878                                  planner FAILED.
879         * common-src/amfeatures.h (fe_sendsize_rep_warning): New amfeature
880         * common-src/amfeatures.c: Add fe_sendsize_rep_warning.
881
882 2008-11-12  Dustin J. Mitchell <dustin@zmanda.com>
883         * man/xml-source/amfetchdump.8.xml: fix ugly HTML formatting
884
885 2008-11-11  Jean-Louis Martineau <martineau@zmanda.com>
886         * amandad-src/amandad.c: Check that something is ready to be read
887                                  before calling errfd_recv.
888
889 2008-11-11  Dustin J. Mitchell <dustin@zmanda.com>
890         * changer-src/chg-manual.sh: fix typo
891
892 2008-11-11 Dan Locks <dwlocks@zmanda.com>
893         * packaging/rpm/amanda.spec: add fedora 9 detection, add
894           BuildRequires: perl(ExtUtils::Embed), fix %{dist}=unknown when
895           undetected instead of at all times
896
897 2008-11-11  Dustin J. Mitchell <dustin@zmanda.com>
898         * installcheck/Makefile.am installcheck/amfetchdump.pl: build all
899           active test scripts; add a DLE in the amfetchdump installcheck
900
901 2008-11-11  Dustin J. Mitchell <dustin@zmanda.com>
902         * config/macro-archive/ac_perl_module_version.m4: new macro
903         * config/amanda/swig.m4: check for ExtUtils::Embed
904
905 2008-11-11  Dustin J. Mitchell <dustin@zmanda.com>
906         * installcheck/amarchiver.pl: quote $sbindir from regexp
907           interpretation
908
909 2008-11-11  Jean-Louis Martineau <martineau@zmanda.com>
910         * perl/Makefile.am: Don't add Amanda/Script_App.pm and Amanda/Script.pm
911                             to DISTCLEANFILES.
912
913 2008-11-11  Jean-Louis Martineau <martineau@zmanda.com>
914         * installcheck/amdump.pl: Set property "ATIME-PRESERVE" to "NO" in
915                                   amgtar application.
916
917 2008-11-11  Jean-Louis Martineau <martineau@zmanda.com>
918         * client-src/selfcheck.c: fix.
919         * amandad-src/amandad.c: Read stderr of server and report it to server.
920         * server-src/planner.c: Keep first line only.
921
922 2008-11-10  Dustin J. Mitchell <dustin@zmanda.com>
923         * amar-src/amarchiver.c: fix filesize printf conversion
924
925 2008-11-10  Jean-Louis Martineau <martineau@zmanda.com>
926         * client-src/sendbackup.c, client-src/selfcheck.c: Check return
927                                                            value of pipe.
928
929 2008-11-10  Dustin J. Mitchell <dustin@zmanda.com>
930         * installcheck/Installcheck/Run.pm: change default DLEs
931         * installcheck/amcheckdump.pl: add DLE explicitly
932         * installcheck/amdevcheck.pl: add DLE explicitly
933         * installcheck/amdump.pl: use the amgtar application in a dump
934
935 2008-11-10  Dustin J. Mitchell <dustin@zmanda.com>
936         * installcheck/Makefile.am: only test amfetchdump if it was built
937         * installcheck/amfetchdump.pl: use arguments in the right order
938
939 2008-11-10  Dustin J. Mitchell <dustin@zmanda.com>
940         * perl/Amanda/Archive.swg amar-src/amar.c amar-src/amar.h: bugfixes
941         * man/Makefile.am man/xml-source/amarchiver.8.xml
942           amar-src/Makefile.am amar-src/amarchiver.c: new application
943         * installcheck/Makefile.am installcheck/amarchiver.pl: tests
944
945 2008-11-10  Dustin J. Mitchell <dustin@zmanda.com>
946         * installcheck/Installcheck/Run.pm: add Expect support
947         * installcheck/Makefile.am installcheck/amfetchdump.pl: amfetchdump
948           installcheck, using Expect support
949
950 2008-11-10  Dustin J. Mitchell <dustin@zmanda.com>
951         * common-src/amgetconf.pl: don't setup_application() in dbclose
952
953 2008-11-10  Jean-Louis Martineau <martineau@zmanda.com>
954         * perl/Makefile.am: Build Amanda::Application only if WANT_CLIENT.
955
956 2008-11-08  Dustin J. Mitchell <dustin@zmanda.com>
957         * perl/Amanda/Changer.pm perl/Amanda/Changer/compat.pm
958           perl/Amanda/Changer/disk.pm perl/Amanda/Changer/single.pm
959           perl/Makefile.am: entirely new perl-based changer API
960         * perl/Amanda/Config.swg common-src/conffile.c common-src/conffile.h:
961           add changer subsections
962         * man/xml-source/amanda.conf.5.xml: document them
963         * server-src/amcheckdump.pl: use the new changer API
964         * installcheck/Amanda_Changer.pl installcheck/Amanda_Changer_Compat.pl
965           installcheck/Amanda_Changer_Single.pl installcheck/Amanda_Config.pl
966           installcheck/Installcheck/Config.pm installcheck/Makefile.am
967           installcheck/Amanda_Changer_Disk.pl: new/updated tests
968
969 2008-11-07  Jean-Louis Martineau <martineau@zmanda.com>
970         * application-src/amstar.c: fix.
971
972 2008-11-07  Jean-Louis Martineau <martineau@zmanda.com>
973         * perl/Amanda/Application.swg: Remove %init.
974
975 2008-11-07  Jean-Louis Martineau <martineau@zmanda.com>
976         * application-src/amgtar.c, application-src/amgtar_perl.pl,
977           application-src/amstar.c: Write backup image to fd3 and index to fd4.
978         * perl/Amanda/Script_App.pm: Use $self->{mesgout}.
979         * recover-src/extract_list.c: Add more check.
980         * client-src/client_util.c (backup_support_option): Get stderr of
981           application and put it in errarray,
982         * client-src/client_util.h (backup_support_option): New prototype.
983         * client-src/selfcheck.c, client-src/sendbackup.c,
984           client-src/sendsize.c: Get stderr of application and send it to
985                                  server.
986         * server-src/dumper.c: Log the first error message.
987         * server-src/planner.c: Log the first error message.
988         * server-src/reporter.c: Don't print some error in report.
989
990 2008-11-07  Jean-Louis Martineau <martineau@zmanda.com>
991         * client-src/client_util.c: Parse CALCSIZE and MULTI-ESTIMATE.
992         * client-src/client_util.c (run_calcsize): New function.
993         * client-src/client_util.h (run_calcsize): Prototype.
994         * client-src/sendbackup.c: Update amandates.
995         * client-src/sendsize.c: Handling of calcsize and multi-estimate.
996         * client-src/selfcheck.c: Check calcsize for application.
997         * application-src/amgtar_perl.pl, application-src/amstar.c,
998         * application-src/amgtar.c: handling of calcsize and multi-estimate.
999         * perl/Amanda/Script_App.pm: Add a check.
1000         * perl/Amanda/Application.swg: Add run_calcsize.
1001         * perl/Amanda/Application.pm: Delete
1002         * perl/Makefile.am: Built from Application.swg
1003         * client-src/calcsize.c: Handling of STAR program.
1004
1005 2008-11-06  Jean-Louis Martineau <martineau@zmanda.com>
1006         * man/xml-source/amgtar.8.xml: Document new properties.
1007         * application-src/amgtar.c: Remove ifdef IGNORE_TAR_ERRORS.
1008
1009 2008-11-06  Jean-Louis Martineau <martineau@zmanda.com>
1010         * changer-src/chg-zd-mtx.sh: Return first line of mtx output if mtx
1011                                      exit with a status != 0.
1012         * server-src/amtape.c: Display changer error.
1013
1014 2008-11-06  Jean-Louis Martineau <martineau@zmanda.com>
1015         * application-src/amgtar.c: Add exit-handling property.
1016
1017 2008-11-06  Jean-Louis Martineau <martineau@zmanda.com>
1018         * application-src/amgtar.c: Add normal, ignore and strange property.
1019
1020 2008-11-04  Jean-Louis Martineau <martineau@zmanda.com>
1021         * server-src/amcheck.c: Check tape_splitsize < tape length.
1022
1023 2008-10-30  Dustin J. Mitchell <dustin@zmanda.com>
1024         * server-src/find.c server-src/find.h man/xml-source/amadmin.8.xml:
1025           add new sort key, 'w', for write_timestamp
1026         * server-src/amadmin.c: use it
1027         * server-src/amindexd.c restore-src/amfetchdump.c: use 'w' to prefer
1028           the oldest-written copy of a dump
1029
1030 2008-10-30  Jean-Louis Martineau <martineau@zmanda.com>
1031         * application-src/amgtar_perl.pl, application-src/amstar.c,
1032           application-src/amgtar.c: Implement validate command.
1033         * server-src/amcheckdump.pl: Execute the validate command of an
1034                                      application.
1035         * perl/Amanda/Script_App.pm (print_to_server): Add validate.
1036         * perl/Amanda/Application.pm (known_commands): Add validate.
1037         * common-src/security-util.c: Fix typo.
1038
1039 2008-10-29  Dustin J. Mitchell <dustin@zmanda.com>
1040         * man/xml-source/amanda.conf.5.xml
1041           man/xml-source/amanda-devices.7.xml: improve device property
1042           documentation
1043
1044 2008-10-29  Dustin J. Mitchell <dustin@zmanda.com>
1045         * man/xml-source/amanda.conf.5.xml: taperflush params can be
1046           greater than 100%
1047
1048 2008-10-27  Jean-Louis Martineau <martineau@zmanda.com>
1049         * common-src/fileheader.c (dumpfile_free_data): New function.
1050         * common-src/fileheader.h (dumpfile_free_data): New prototype.
1051         * server-src/cmdline.c, server-src/dumper.c,
1052           server-src/planner.c, server-src/amadmin.c,
1053           server-src/amflush.c, server-src/holding.c,
1054           server-src/driver.c, server-src/find.c,
1055           server-src/taper-source.c, server-src/taper-file-source.c
1056           server-src/taper.c: Call dumpfile_free or dumpfile_free_data.
1057
1058 2008-10-27  Dustin J. Mitchell <dustin@zmanda.com>
1059         * common-src/glib-util.c: check library version at runtime
1060
1061 2008-10-27  Jean-Louis Martineau <martineau@zmanda.com>
1062         * perl/Amanda/Device.swg (start_file): Remove const for jobInfo.
1063
1064 2008-10-24  Dustin J. Mitchell <dustin@zmanda.com>
1065         * installcheck/Amanda_Archive.pl: fix to also test for identity of
1066           $user_data on perls that recognize such things
1067
1068 2008-10-24  Dustin J. Mitchell <dustin@zmanda.com>
1069         * amar-src/amar-test.c: don't ignore the return value of write()
1070
1071 2008-08-14  Nikolas Coukouma <atrus@zmanda.com>
1072             Jean-Louis Martineau <martineau@zmanda.com>
1073         * amar-src/amar.c: fix mis-aligned memory accesses
1074         * amar-src/amar-test.c: fix test_pipe
1075
1076 2008-10-24  Jean-Louis Martineau <martineau@zmanda.com>
1077         * perl/Amanda/Script_App.pm: New base module for script and application.
1078         * perl/Amanda/Script.pm: New base module for script.
1079         * perl/Amanda/Application.pm: New base module for application.
1080         * perl/Makefile.am: Add Amanda::Script_app, Amanda::Script And
1081                                 Amanda::Application.
1082         * application-src/generic-dumper.pl: Remove file.
1083         * application-src/generic-script.pl: Remove file.
1084         * application-src/script-email.pl: Use Amanda::Script.
1085         * application-src/amgtar_perl.pl: Use Amanda::Application.
1086         * application-src/amzfs-snapshot.pl: Use Amanda::Script.
1087         * application-src/Makefile.am: Remove generic-*.pl files.
1088
1089 2008-10-24  Dustin J. Mitchell <dustin@zmanda.com>
1090         * perl/Amanda/Archive.swg perl/Makefile.am: add a Perl interface to
1091           libamar
1092         * installcheck/Amanda_Archive.pl installcheck/Makefile.am: test it.
1093
1094 2008-10-24  Dustin J. Mitchell <dustin@zmanda.com>
1095         * */Makefile.am: change @AMLINT@ to $(AMLINT), similarly for
1096           $(AMLINTFLAGS), and strip $(EXEEXT) from program names when running
1097           lint
1098         * config/amanda/libs.m4: put GLIB_CFLAGS in AMANDA_CPPFLAGS
1099
1100 2008-10-23  Dustin J. Mitchell <dustin@zmanda.com>
1101         * amar-src/Makefile.am: add amar.h to noinst_HEADERS
1102
1103 2008-10-23  Dustin J. Mitchell <dustin@zmanda.com>
1104         * configure.in Makefile.am amar-src/Makefile.am: new directory
1105         * amar-src/amar.c amar-src/amar.h: amanda archive library
1106         * amar-src/amar-test.c: tests for library
1107         * common-src/security-util.c common-src/security-util.h
1108           common-src/util.c common-src/util.h: move net_writev to
1109           util.c, rename to full_writev
1110         * man/Makefile.am man/xml-source/amanda-archive-format.7.xml
1111           man/xml-source/amanda.8.xml: new manpage to describe the format
1112
1113 2008-10-20 Nikolas Coukouma <atrus@zmanda.com>
1114         * configure.in: add tests for more headers, plus some defines
1115           for the presence of Amanda's headers
1116         * device-src/s3-util.c, device-src/s3-util.h: Use defines to switch between
1117           POSIX regex API and a GRegex (PCRE) call-compatability layer.
1118         * device-src/s3.c, device-src/s3.h: Add a curl progress callback.
1119           Use callbacks to write and read data. Provide callbacks for
1120           memory buffers and files. The callbacks for files are currently
1121           Windows-specific.
1122         * device-src/s3-device.c: update to use new API
1123
1124 2008-10-20  Dustin J. Mitchell <dustin@zmanda.com>
1125         * perl/Makefile.am: remove spurious variables
1126
1127 2008-10-17  Jean-Louis Martineau <martineau@zmanda.com>
1128         * changer-src/chg-multi.sh: Check permission on the statefile and its
1129                                     directory.
1130
1131 2008-10-17  Jean-Louis Martineau <martineau@zmanda.com>
1132         * server-src/planner.c: Set i to 0.
1133
1134 2008-10-17  Jean-Louis Martineau <martineau@zmanda.com>
1135         * server-src/amcheck.c, server-src/dumper.c
1136           server-src/planner.c: Don't send appliaciton-api request if the
1137                                 client doesn't use the xml protocol.
1138
1139 2008-10-15  Jean-Louis Martineau <martineau@zmanda.com>
1140         * server-src/reporter.c: print space instead of N/A, dumper stats are
1141                                  set to "FLUSH" if it is a flush.
1142
1143 2008-10-13  Dustin J. Mitchell <dustin@zmanda.com>
1144         * device-src/vfs-device.c: re-open the dir handle on every
1145           device start or read label
1146         * installcheck/Amanda_Device.pl: adjust tests to degrade the
1147           VFS device *after* it is started
1148
1149 2008-10-13  Jean-Louis Martineau <martineau@zmanda.com>
1150         * perl/Makefile.am: Moce EXTRA_DIST out of conditionals.
1151
1152 2008-10-13  Jean-Louis Martineau <martineau@zmanda.com>
1153         * installcheck/Makefile.am: revert previous commit.
1154         * config/automake/scripts.am: Check for a server perl module.
1155
1156 2008-10-13  Jean-Louis Martineau <martineau@zmanda.com>
1157         * installcheck/Makefile.am: SCRIPTS_PERL = $(tests).
1158
1159 2008-10-13  Jean-Louis Martineau <martineau@zmanda.com>
1160         * perl/Makefile.am: Don't check Amanda/Config files.
1161
1162 2008-10-11  Jean-Louis Martineau <martineau@zmanda.com>
1163         * perl/Makefile.am: Check file in top_srcdir if they are not
1164                             in top_builddir.
1165
1166 2008-10-10  Jean-Louis Martineau <martineau@zmanda.com>
1167         * common-src/amgetconf.pl: remove 'use Amanda::Device qw( :constants);'
1168
1169 2008-10-10  Jean-Louis Martineau <martineau@zmanda.com>
1170         * perl/Makefile.am: test for libConfig.so before doing check.
1171
1172 2008-10-10  Jean-Louis Martineau <martineau@zmanda.com>
1173         * config/automake/scripts.am: Check perl scripts on compilation.
1174           Add -I... to 'make check' to access perl module in build tree.
1175           Add installcheck rules to check perl scripts with installed perl
1176           modules.
1177         * application-src/amstar_perl.pl: Remove file.
1178         * device-src/Makefile.am, application-src/Makefile.am,
1179           server-src/Makefile.am, installcheck/Makefile.am,
1180           common-src/Makefile.am: Move most perl scripts to CHECK_PERL.
1181         * installcheck/Makefile.am:
1182           Add "CHECK_PERL_FLAGS=-I$(top_srcdir)/installcheck".
1183         * perl/Makefile.am: Add rules to check all .pm files for check-local.
1184         * device-src/amtapetype.pl, server-src/amaddclient.pl,
1185           common-src/amgetconf.pl: Fix syntax errors.
1186
1187 2008-10-10  Jean-Louis Martineau <martineau@zmanda.com>
1188         * application-src/amzfs-snapshot.pl, application-src/amoracle.pl
1189           application-src/script-email.pl, application-src/amgtar_perl.pl:
1190             fix typos.
1191
1192 2008-10-10  Nick Smith <nick.smith@techop.ch>
1193         * application-src/amzfs-snapshot.pl: fix typos
1194
1195 2008-10-08  Dustin J. Mitchell <dustin@zmanda.com>
1196         * perl/Amanda/DB/Catalog.pm: manage the tapelist internally
1197         * perl/Amanda/Tapelist.swg: fix error message, re-read C tapelist
1198           after writing
1199         * server-src/amcheckdump.pl: don't read tapelist
1200         * installcheck/Amanda_DB_Catalog.pl: don't read tapelist first
1201
1202 2008-10-08  Nick Smith <nick.smith@techop.ch>
1203         * server-src/driver.c: set degr_mesg to NULL when not degraded
1204
1205 2008-10-06  Jean-Louis Martineau <martineau@zmanda.com>
1206         * application-src/amzfs-snapshot.pl: Accept execute-where argument.
1207         * application-src/script-email.pl: Accept execute-where argument.
1208         * client-src/client_util.c: Send execute-where argument to script.
1209         * server-src/server_util.c: Send execute-where argument to script.
1210
1211 2008-10-06  Jean-Louis Martineau <martineau@zmanda.com>
1212         * application-src/amzfs-snapshot.pl: Add PFEXEC-PATH and PFEXEC
1213                                              properties.
1214         * man/xml-source/amzfs-snapshot.8.xml: Document new properties.
1215
1216 2008-10-03  Dustin J. Mitchell <dustin@zmanda.com>
1217         * perl/Amanda/Util.swg: add Amanda::Util::generate_timestamp
1218         * common-src/timestamp.c: add comment
1219
1220 2008-10-02  Dustin J. Mitchell <dustin@zmanda.com>
1221         * perl/Amanda/DB/Catalog.pm: add rudimentary ability to read logfiles
1222         * installcheck/Amanda_DB_Catalog.pl: test it
1223         * perl/Amanda/Logfile.swg: fix typo
1224
1225 2008-10-01  Nikolas Coukouma <atrus@zmanda.com>
1226         * device-src/s3-device.c, device-src/s3.c, device-src/s3.h:
1227           Add new property, S3_SSL, to control the use of SSL/TLS when
1228           connecting to Amazon S3
1229         * man/xml-source/amanda-devices.7.xml:
1230           document S3_SSL and S3_BUCKET_LOCATION
1231
1232 2008-10-01  Nikolas Coukouma <atrus@zmanda.com>
1233         * device-src/s3-util.c: Re-implement s3_hex_encode() to avoid OpenSSL weirdness.
1234
1235 2008-10-01  Dustin J. Mitchell <dustin@zmanda.com>
1236         * common-src/amanda.h common-src/conffile.c
1237           oldrecover-src/extract_list.c recover-src/extract_list.c
1238           server-src/amcheck.c server-src/amflush.c server-src/planner.c:
1239           use g_ascii_isspace, as we assume ASCII (for now) and isspace()
1240           is affected by locale and encoding settings.  Thanks to Michael
1241           Reuland for helping track this down.
1242
1243 2008-09-30  Jean-Louis Martineau <martineau@zmanda.com>
1244         * server-src/diskfile.h (xml_optionstr): New prototype.
1245         * server-src/diskfile.h (clean_dle_str_for_client): Prototype.
1246         * server-src/amindexd.c: Pass 0 to new argument of xml_optionstr.
1247         * server-src/amcheck.c: Pass 0 to new argument of xml_optionstr.
1248         * server-src/planner.c: Pass 0 to new argument of xml_optionstr.
1249         * server-src/driverio.c: Pass 1 to new argument of xml_optionstr.
1250         * server-src/dumper.c: Call clean_dle_str_for_client.
1251         * server-src/diskfile.c (xml_optionstr): Work for ENCRYPT_SERV_CUST.
1252         * server-src/diskfile.c (clean_dle_str_for_client): New function.
1253         * restore-src/restore.c: Call clean_dle_str_for_client.
1254         * common-src/amxml.c: Fix parsing.
1255         * common-src/amanda.h (match_no_newline): Prototype.
1256         * common-src/match.c (match_no_newline): New function.
1257
1258 2008-09-30  Dustin J. Mitchell <dustin@zmanda.com>
1259         * restore-src/restore.c: set data.flags for use by the changer_find
1260           callback
1261
1262 2008-09-30  Dustin J. Mitchell <dustin@zmanda.com>
1263         * perl/Amanda/MainLoop.swg: add call_later()
1264         * installcheck/Amanda_MainLoop.pl: test it
1265
1266 2008-09-30  Dustin J. Mitchell <dustin@zmanda.com>
1267         * device-src/rait-device.c: fix typos
1268
1269 2008-09-30  Dustin J. Mitchell <dustin@zmanda.com>
1270         * common-src/semaphore.h: fix typo
1271         * device-src/rait-device.c: add a private threadpool-like
1272           implementation for old glibs, where GThreadPool is susceptible to
1273           deadlock
1274
1275 2008-09-29  Dustin J. Mitchell <dustin@zmanda.com>
1276         * device-src/device.c device-src/device.h device-src/null-device.c
1277           device-src/property.c device-src/property.h device-src/rait-device.c
1278           device-src/s3-device.c device-src/tape-aix.c device-src/tape-device.c
1279           device-src/tape-device.h device-src/tape-ops.h device-src/tape-posix.c
1280           device-src/tape-uware.c device-src/tape-xenix.c
1281           device-src/vfs-device.c: add a 'configure' method to the Device API;
1282           revamp device property handling to add source and surety and make
1283           implementation easier
1284         * device-src/rait-device.h device-src/rait-device.c: make RAIT device
1285           calculate block sized based on child devices, if they were configured
1286           explicitly.
1287         * man/xml-source/amanda-devices.7.xml: note that common properties are
1288           not implemented on all devices
1289         * common-src/glib-util.c common-src/glib-util.h: add helpers for
1290           case-insensitive hashes
1291         * changer-src/scsi-changer-driver.c installcheck/Amanda_Device.pl
1292           perl/Amanda/Device.swg restore-src/restore.c server-src/amcheck.c
1293           server-src/amlabel.c server-src/amtape.c server-src/taper.c
1294           server-src/taperscan.c: use new API
1295
1296 2008-09-29  Dustin J. Mitchell <dustin@zmanda.com>
1297         * server-src/find.c: handle find_result->label == NULL
1298         * perl/Amanda/DB/Catalog.pm: filter out bogus results with NULL label
1299
1300 2008-09-26  Dustin J. Mitchell <dustin@zmanda.com>
1301         * perl/amglue/ghashtable.c: #include conffile.h, not conffile.c (!)
1302
1303 2008-09-26  Jean-Louis Martineau <martineau@zmanda.com>
1304         * server-src/driver.c: Parse dumpsize from taper result.
1305
1306 2008-09-26  Jean-Louis Martineau <martineau@zmanda.com>
1307         * client-src/selfcheck.c: Set qdevice on common_exit path.
1308
1309 2008-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1310         * common-src/fileheader.c: fix headers_are_equal
1311
1312 2008-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1313         * common-src/fileheader.c common-src/fileheader.h: allow blocksize=0
1314         * device-src/device.c device-src/device.h: set blocksize in tape
1315           header
1316         * device-src/null-device.c device-src/s3-device.c
1317           device-src/tape-device.c device-src/vfs-device.c: set blocksize
1318           in headers when starting files
1319         * device-src/rait-device.c: duplicate headers for child devices, since
1320           they are no longer const
1321         * server-src/dumper.c: set blocksize on holding-disk files to
1322           DISK_BLOCK_BYTES
1323
1324 2008-09-25  Dustin J. Mitchell <dustin@zmanda.com>
1325         * device-src/tape-device.c: mark device as non-appendable temporarily,
1326           since file numbers are incorrect when appending
1327         * installcheck/Amanda_Device.pl: handle non-appendable devices
1328
1329 2008-09-24  Jean-Louis Martineau <martineau@zmanda.com>
1330         * server-src/driverio.c (dumper_cmd, chunker_cmd): Take new mesg
1331           argument.
1332         * server-src/server_util.h (dumper_cmd, chunker_cmd): New prototype.
1333         * server-src/chunker.c: Get mesg from ABORT cmd and log it.
1334         * server-src/driver.c: Add the mesg argument to all dumper_cmd and
1335                                chunker_cmd.
1336
1337 2008-09-24  Jean-Louis Martineau <martineau@zmanda.com>
1338         * server-src/planner.c: Set degr_mesg and send it to driver.
1339         * server-src/driverio.h (sched_t): Add degr_mesg field.
1340         * server-src/driver.c: Parse message if no degraded estimate.
1341
1342 2008-09-23  Dustin J. Mitchell <dustin@zmanda.com>
1343         * common-src/conffile.c common-src/conffile.h: store a struct
1344           containing both filename and line number for each parameter, and use
1345           it when reporting errors and warnings
1346
1347 2008-09-23  Dustin J. Mitchell <dustin@zmanda.com>
1348         * device-src/device.c: make 'unimplemented method' an assertion
1349
1350 2008-09-23  Dustin J. Mitchell <dustin@zmanda.com>
1351         * device-src/s3.c: use max_keys, instead of maximum body size (which
1352           doesn't work) to limit the number of keys listed
1353
1354 2008-09-22  Jean-Louis Martineau <martineau@zmanda.com>
1355         * common-src/fileheader.c (fh_init): Set default type to F_EMPTY.
1356         * changer-src/chg-zd-mtx.sh: Allow to remove barcode from barcode file.
1357         * server-src/taperscan.c: Check type != F_EMPTY.
1358         * server-src/taper.c: Call changer_label().
1359         * server-src/amlabel.c: iCheck type != F_EMPTY. Call changer_label().
1360
1361 2008-09-22  Jean-Louis Martineau <martineau@zmanda.com>
1362         * device-src/device.c: Don't g_value_unset a bzero value.
1363
1364 2008-09-22  Jean-Louis Martineau <martineau@zmanda.com>
1365         * server-src/driver.c: Set result_argv=NULL, Fix typo.
1366
1367 2008-09-22  Dustin J. Mitchell <dustin@zmanda.com>
1368         * config/amanda/ps.m4: give up on runtime detection and just special-
1369           case the 'ps' arguments for various systems
1370         * perl/Amanda/Constants.pm.in: add $PS
1371         * perl/Amanda/Process.pm: use $PS
1372
1373 2008-09-19  Jean-Louis Martineau <martineau@zmanda.com>
1374         * server-src/reporter.c (addline): Done it constant time.
1375
1376 2008-09-19  Dustin J. Mitchell <dustin@zmanda.com>
1377         * common-src/Makefile.am common-src/quoting-test.c: new tests
1378         * common-src/token.c common-src/token.h: removed
1379         * common-src/util.c common-src/util.h: new home for quoting functions
1380         * configure.in: don't check for shquote
1381         * man/xml-source/amanda.conf.5.xml: info on quoting
1382         * perl/Amanda/Config/Server.pm: note about incompatibility
1383         * server-src/amcheck.c server-src/amindexd.c server-src/chunker.c
1384           server-src/driver.c server-src/driverio.c server-src/driverio.h
1385           server-src/dumper.c server-src/infofile.c server-src/server_util.c
1386           server-src/server_util.h server-src/taper-file-source.c
1387           server-src/taper-port-source.c server-src/taper.c: use new/updated
1388           quoting functions
1389
1390 2008-09-19  Nick Smith <nick.smith@techop.ch>
1391         * example/amanda.conf.in: fix incorrect execute_on examples
1392
1393 2008-09-18  Jean-Louis Martineau <martineau@zmanda.com>
1394         * server-src/dumper.c: Call security_close_connection before
1395                                checking if pkt == NULL.
1396
1397 2008-09-18  Jean-Louis Martineau <martineau@zmanda.com>
1398         Patch by Nick Smith
1399         * server-src/diskfile.c: Fix vstrextend use, Patch by Nick Smith.
1400         * server-src/diskfile.c: Init xml_app.result to stralloc("").
1401
1402 2008-09-16 Dan Locks <dwlocks@zmanda.com>
1403         * packaging/rpm/amanda.spec:  Added detection of CentOS 4 and 5 as 
1404           suggested by dswartz.  added graceful failure when Distro/version is 
1405           not detected correctly
1406
1407 2008-09-15  Dustin J. Mitchell <dustin@zmanda.com>
1408         * common-src/conffile.c: uninit apps, pp_scripts, and device_configs
1409
1410 2008-09-14  Dustin J. Mitchell <dustin@zmanda.com>
1411         * server-src/tapefile.c server-src/tapefile.h: add comments to
1412           tapelist
1413         * perl/Amanda/Tapelist.swg: perl tapelist parser, too
1414         * installcheck/Amanda_Tapelist.pl: tests
1415         * man/xml-source/tapelist.5.xml: docs
1416         * server-src/amlabel.c: no initial comments when labeling
1417         * server-src/taper.c: maintain comment when relabeling
1418
1419 2008-09-12  Jean-Louis Martineau <martineau@zmanda.com>
1420         * amandad-src/amandad.c: Fix typo: authetication -> authentication.
1421
1422 2008-09-05  Dustin J. Mitchell <dustin@zmanda.com>
1423         * man/xml-source/amanda.conf.5.xml: fix inequalities; thanks to
1424           Mike McConnell for spotting these
1425
1426 2008-09-05  Dustin J. Mitchell <dustin@zmanda.com>
1427         * server-src/taper.c: improve handling of device errors in taper
1428
1429 2008-09-02  Jean-Louis Martineau <martineau@zmanda.com>
1430         * restore-src/amrestore.c: Load a default server config.
1431
1432 2008-08-29  Dustin J. Mitchell <dustin@zmanda.com>
1433         * autogen: revert glib's configure-time requirement for
1434           pkg-config-0.16
1435
1436 2008-08-28  Dustin J. Mitchell <dustin@zmanda.com>
1437         * device-src/tape-device.c: use the correct blocksize while reading
1438         * device-src/rait-device.c: fix typo
1439         * installcheck/Amanda_Device.pl: use the VFS device in RAIT tests, not
1440           the tape device
1441
1442 2008-08-28  Jean-Louis Martineau <martineau@zmanda.com>
1443         * server-src/dumper.c: Reset the MESG buffer for a new dump.
1444
1445 2008-08-27  Dustin J. Mitchell <dustin@zmanda.com>
1446         * server-src/amcheck.c: make the check for tapelist result in a NOTE,
1447           not a failure
1448         * server-src/tapefile.c: make a missing tapelist equivalent to an
1449           empty one
1450
1451 2008-08-27  Dustin J. Mitchell <dustin@zmanda.com>
1452         * config/amanda/types.m4: always include sys/types.h, if it exists,
1453           before trying other headers (fixes builds of FreeBSD-4.x); thanks
1454           to John Hein <jhein@timing.com>
1455         * perl/Amanda/MainLoop.swg server-src/driverio.h: include amanda.h
1456           before event.h
1457
1458 2008-08-22  Dustin J. Mitchell <dustin@zmanda.com>
1459         * perl/amglue/bigint.c: add #include "stdint.h"
1460
1461 2008-08-22  Dustin J. Mitchell <dustin@zmanda.com>
1462         * config/amanda/ps.m4: search multiple ps invocations; thanks
1463           to John Hein <jhein@timing.com>
1464
1465 2008-08-22  Jean-Louis Martineau <martineau@zmanda.com>
1466         * server-src/amadmin.ci (tape): Correctly print next tape to use.
1467         * server-src/tapefile.c (print_new_tapes): New function to print new
1468                                                    tapes.
1469         * server-src/tapefile.h (print_new_tapes): Prototype.
1470         * server-src/reporter.c: Correctly print next tape to use.
1471
1472 2008-08-22  Dustin J. Mitchell <dustin@zmanda.com>
1473         * common-src/conffile.c common-src/conffile.h perl/Amanda/Config.swg:
1474           add new 'define device' config section
1475         * perl/Makefile.am perl/Amanda/Config/Server.pm
1476           perl/Amanda/Config/Server/Devices.pm
1477           perl/Amanda/Config/Server/Grammar: ditto
1478         * device-src/device.c device-src/device.h: configure devices from
1479           device definitions, with better error handling
1480         * device-src/rait-device.c: handle child devices better
1481         * installcheck/Amanda_Config.pl installcheck/Amanda_Config_Server.pl
1482           installcheck/Amanda_Xfer.pl installcheck/Installcheck/Config.pm
1483           installcheck/amgetconf.pl: new tests, modifications to work with the
1484           new system
1485         * man/xml-source/amanda-devices.7.xml
1486           man/xml-source/amanda.conf.5.xml: corresponding documentation updates
1487         * perl/Amanda/Changer.pm perl/Amanda/Device.swg
1488           restore-src/amrestore.c restore-src/restore.c server-src/amcheck.c
1489           server-src/amcheckdump.pl server-src/amdevcheck.pl
1490           server-src/amlabel.c server-src/amtape.c server-src/taper.c
1491           server-src/taperscan.c: remove calls to
1492           set_startup_properties_from_config
1493         * device-src/vfs-test.c: load config before trying to use a device
1494         * common-src/conffile.c: fix use of uninitialized variable
1495
1496 2008-08-22  Dustin J. Mitchell <dustin@zmanda.com>
1497         * changer-src/chg-disk.sh: replace == with =
1498         * changer-src/chg-lib.sh.in: fix sed invocation for BSD's sed
1499
1500 2008-08-22  Jean-Louis Martineau <martineau@zmanda.com>
1501         * server-src/reporter.c: Fix computation of compression ratio.
1502
1503 2008-08-22  Jean-Louis Martineau <martineau@zmanda.com>
1504         * client-src/sendbackup.h: Add DMP_IGNORE and AM_IGNORE_RE.
1505         * application-src/amgtar.c, application-src/amgtar_perl.pl:
1506           Ignore "Directory is new" and "Directory has been renamed".
1507
1508 2008-08-21  Jean-Louis Martineau <martineau@zmanda.com>
1509         * common-src/krb5-security.c: Fix security_seterror use.
1510
1511 2008-08-19  Dustin J. Mitchell <dustin@zmanda.com>
1512         * configure.in: check for getgrgid_r and getpwuid_r
1513         * common-src/security-util.c: conditionalize on checks
1514
1515 2008-08-18  Dustin J. Mitchell <dustin@zmanda.com>
1516         * common-src/version.h: remove #include of config.h
1517         * device-src/vfs-device.c: #include amanda.h first
1518
1519 2008-08-18  Dustin J. Mitchell <dustin@zmanda.com>
1520         * device-src/Makefile.am device-src/amtapetype.pl: new perl amtapetype
1521         * installcheck/Installcheck/Run.pm: report exit status
1522         * installcheck/Makefile.am installcheck/amtapetype.pl: new test
1523         * man/xml-source/amtapetype.8.xml: updated manpage
1524         * device-src/s3-device.c device-src/vfs-device.c
1525           device-src/tape-device.c: add compression property
1526         * perl/Amanda/Xfer.swg: add POD for the cancel() method
1527         * xfer-src/dest-device.c: add a default for max_memory
1528
1529 2008-08-18  Dustin J. Mitchell <dustin@zmanda.com>
1530         * common-src/conffile.c: make find_multiplier case-insensitive
1531         * device-src/device.c: reorder assertions
1532         * device-src/tape-device.c: don't set access_mode twice, but
1533           set in_file = FALSE in start
1534         * device-src/s3-device.c: fix property registration
1535         * perl/Amanda/MainLoop.swg: remove attach() from example
1536         * perl/Amanda/Xfer.swg: more detail in POD
1537         * xfer-src/source-pattern.c: operate byte-for-byte, like the random
1538           source, instead of using lots of memcpys and reallocs
1539         * xfer-src/source-random.c: remove redundant check
1540
1541 2008-08-18  Dustin J. Mitchell <dustin@zmanda.com>
1542         * configure.in Makefile.am tape-src/*: remove tape-src
1543         * changer-src/Makefile.am: don't link with libamtape
1544         * changer-src/chg-scsi.c: don't use libamtape
1545         * changer-src/scsi-changer-driver.c: don't use libamtape
1546         * config/amanda/tape.m4: fix comment
1547         * example/amanda.conf.in example/template.d/tapetypes: fix outdated
1548           comments
1549         * man/Makefile.am man/xml-source/amdd.8.xml man/xml-source/ammt.8.xml:
1550           remove amdd and ammt manpages
1551         * restore-src/Makefile.am: remove refs to tape-src/
1552         * server-src/Makefile.am: remove refs to tape-src/
1553
1554 2008-08-18  Dustin J. Mitchell <dustin@zmanda.com>
1555         * common-src/krb4-security.c common-src/krb5-security.c
1556           config/amanda/tape.m4 common-src/amanda.h: remove
1557           --with-maxtapeblocksize
1558         * common-src/conffile.c: deprecate file-pad
1559         * device-src/device-queueing.c device-src/device-queueing.h
1560           device-src/device.c device-src/device.h device-src/null-device.c
1561           device-src/property.c device-src/property.h device-src/rait-device.c
1562           device-src/s3-device.c device-src/tape-device.c
1563           device-src/tape-device.h device-src/vfs-device.c server-src/amcheck.c
1564           server-src/taper.c tape-src/tapeio.c xfer-src/dest-device.c
1565           xfer-src/source-device.c perl/Amanda/Device.swg: devices have
1566           {min,max,current} block sizes; remove the short_block parameter from
1567           device_write_block; fix property initialization; rename
1568           PROPERTY_MEDIUM_TYPE to PROPERTY_MEDIUM_ACCESS_TYPE
1569         * device-src/rait-device.c: set child block sizes explicitly
1570         * installcheck/Amanda_Device.pl: tests; better S3 test count
1571           calculations
1572         * installcheck/Amanda_Xfer.pl: tests
1573         * man/xml-source/amanda-devices.7.xml: update block sizes
1574           documentation
1575         * man/xml-source/amanda.conf.5.xml: refer to block size properties
1576         * restore-src/amrestore.c: use set_restore_device_read_buffer_size
1577         * restore-src/restore.h restore-src/restore.c: add
1578           set_restore_device_read_buffer_size
1579
1580 2008-08-16  Dustin J. Mitchell <dustin@zmanda.com>
1581         * server-src/driver.c: handle taper_{input,tape}_error memory
1582           correctly, and add taper_tape_error to the trace log
1583
1584 2008-08-16  Dustin J. Mitchell <dustin@zmanda.com>
1585         * application-src/amzfs-snapshot.pl application-src/script-email.pl:
1586           remove unnecessary 'use Amanda::Device'
1587
1588 2008-08-16  Dustin J. Mitchell <dustin@zmanda.com>
1589         * common-src/amgetconf.pl: use filename-safe characters for $appname
1590         * installcheck/amgetconf.pl: test it
1591
1592 2008-08-16  Dustin J. Mitchell <dustin@zmanda.com>
1593         * man/entities/global.entities: add manpage refs
1594         * packaging/rpm/amanda_enterprise.spec
1595           packaging/rpm/amanda_enterprise_client.spec
1596           man/xml-source/disklist.5.xml man/xml-source/tapelist.5.xml
1597           man/Makefile.am: add disklist(5), tapelist(5)
1598         * man/xml-source/amaddclient.8.xml man/xml-source/amadmin.8.xml
1599           man/xml-source/amanda-client.conf.5.xml man/xml-source/amanda.8.xml
1600           man/xml-source/amanda.conf.5.xml man/xml-source/amcheck.8.xml
1601           man/xml-source/amcheckdb.8.xml man/xml-source/amdevcheck.8.xml
1602           man/xml-source/amflush.8.xml man/xml-source/amlabel.8.xml
1603           man/xml-source/amrecover.8.xml man/xml-source/amrmtape.8.xml:
1604           - remove references to "output drivers" in favor of "device drivers"
1605           - add more inter-page references
1606           - fix typos
1607           - add client_login to amanda-client.conf(5)
1608           - reformat informaltables, which don't render well in HTML or nroff,
1609             into variablelists, with fixes for bad xml->man conversion
1610           - fix funky replacement entities in HTML output
1611         * perl/Amanda/DB/Catalog.pm: mention $dump->{kb} and ->{sec}
1612         * perl/Amanda/Device.swg: fix typo
1613         * perl/Amanda/MainLoop.swg: add hints for writing async functions
1614         * perl/Amanda/Types.swg: fix bad POD
1615         * perl/Amanda/Util.swg: POD fix: use $CONTEXT_* rather than strings
1616         * perl/Amanda/Xfer.swg: tweaks
1617         * server-src/taper.c: fix typo
1618         * server-src/taperscan.c: remove "(previously non-amanda)", as Amanda
1619           will no longer overwrite such tapes
1620
1621 2008-08-16  Dustin J. Mitchell <dustin@zmanda.com>
1622         * common-src/debug.c: lock debug logging on a per-line basis
1623
1624 2008-08-16  Dustin J. Mitchell <dustin@zmanda.com>
1625         * device-src/rait-device.c: parse RAIT names with internal {..}
1626         * installcheck/Amanda_Device.pl: light testing
1627
1628 2008-08-15  Dustin J. Mitchell <dustin@zmanda.com>
1629         * common-src/debug.c: include backtraces on fatal errors
1630         * config/amanda/debugging.m4: look for glibc's backtrace support
1631         * configure.in: ditto
1632
1633 2008-08-14  Dustin J. Mitchell <dustin@zmanda.com>
1634         * device-src/tape-aix.c device-src/tape-ops.h device-src/tape-uware.c
1635           device-src/tape-xenix.c: bring non-POSIX tape-ops implementations up
1636           to date with function signatures
1637
1638 2008-08-14  Dustin J. Mitchell <dustin@zmanda.com>,
1639             Nikolas Coukouma <atrus@zmanda.com>
1640         * xfer-src/*: add support for asynchronous cancellation of transfers
1641           and use it for error-handling
1642         * perl/Amanda/Xfer.swg: reflect into perl
1643         * installcheck/Amanda_Xfer.pl: test cancellation
1644
1645 2008-08-12  Dustin J. Mitchell <dustin@zmanda.com>
1646         * common-src/Makefile.am: clean up svn-info.h on maintainer-clean
1647         * man/Makefile.am: remove config.log after running config.status
1648
1649 2008-08-07 Nikolas Coukouma <atrus@zmanda.com>
1650         * common-src/conffile.c: cleaner fix for signed compared to unsigned
1651           errors on older versions of GCC.
1652
1653 2008-08-06  Dustin J. Mitchell <dustin@zmanda.com>
1654         * common-src/Makefile.am: second fix
1655
1656 2008-08-06  Dustin J. Mitchell <dustin@zmanda.com>
1657         * common-src/Makefile.am: don't syntax-check amgetconf, since
1658           it uses Amanda::* modules
1659
1660 2008-08-06 Nikolas Coukouma <atrus@zmanda.com>
1661         * server-src/amgetconf.pl, common-src/amgetconf.pl:
1662           Add --execute-where=client|server and --client options
1663           to make amgetconf query the client configuration
1664           instead. Move from server-src to common-src.
1665         * man/xml-source/amgetconf.8.xml: Document the new options.
1666         * installcheck/amgetconf.pl: Test the new options.
1667         * server-src/Makefile.am, common-src/Makefile.am:
1668           Updated Makefiles for move.
1669         * packaging/deb/amanda-enterprise-backup-client.install,
1670           packaging/sun-pkg/i386/client/prototype:
1671           Add amgetconf to client packages.
1672
1673 2008-08-04 Dan Locks <dwlocks@zmanda.com>
1674         * packaging/rpm/amanda.spec:  add %{tarver} macro and set the correct
1675           minimum version per distro (Thanks to Jesse Angell for the rhel4 tip)
1676
1677 2008-08-04  Dustin J. Mitchell <dustin@zmanda.com>
1678         * common-src/conffile.c: workaround gcc<4.1.0 problems with long
1679           constants, don't use G_MAXINT64 in precompiler expressions
1680
1681 2008-08-03  Dustin J. Mitchell <dustin@zmanda.com>
1682         * server-src/amrmtape.sh: use shell redirection with shell functions
1683
1684 2008-08-03  Dustin J. Mitchell <dustin@zmanda.com>
1685         * common-src/util.c: if !WORKING_IPV6, request AF_INET, not AF_NATIVE
1686         * common-src/dgram.c: address family debugging
1687         * common-src/stream.c: address family debugging
1688
1689 2008-08-03  Dustin J. Mitchell <dustin@zmanda.com>
1690         * common-src/amanda.h common-src/conffile.c common-src/conffile.h
1691           installcheck/Amanda_Config.pl perl/Amanda/Config.swg
1692           server-src/planner.c: replace am64 type with gint64; also replace
1693           some uses of off_t
1694
1695 2008-08-01 Nikolas Coukouma <atrus@zmanda.com>
1696         * perl/Amanda/BigIntCompat.pm: Add a module to make 'Math::BigInt's
1697           stringify consistently (no '+' prefixing positive numbers).
1698         * perl/Makefile.am: Add Amanda/BigIntCompat.pm for installation, etc.
1699         * installcheck/bigint.pl, perl/amglue/bigint.c:
1700           Use Amanda::BigIntCompat everywhere we use bigint.
1701
1702 2008-08-01 Nikolas Coukouma <atrus@zmanda.com>
1703         * common-src/match.c: Correct array index to be within bounds
1704
1705 2008-08-01 Nikolas Coukouma <atrus@zmanda.com>
1706         * config/amanda/flags.m4: Rename AMANDA_TEST_GCC_WARNING_FLAG to
1707           AMANDA_TEST_GCC_FLAG and use AMANDA_ENABLE_GCC_WARNING where
1708           appropriate. Add AMANDA_DISABLE_GCC_FEATURE. Disable strict-aliasing
1709           (which causes errors).
1710
1711 2008-07-30  Dustin J. Mitchell <dustin@zmanda.com>
1712         * installcheck/Amanda_Config.pl: add + to avoid perl-5.6.0 parsing bug
1713         * installcheck/amgetconf.pl: ditto
1714
1715 2008-07-29 Dan Locks <dwlocks@zmanda.com>
1716         * packaging/rpm/amanda.spec:  Merged fixes from enterprise .spec for
1717           parsing redhat-release for fedora versions correctly.
1718
1719 2007-07-28 Nikolas Coukouma <atrus@zmanda.com>
1720         * config/amanda/flags.m4: Add proper detection of flags for GCC 4.3+
1721
1722 2007-07-28 Nikolas Coukouma <atrus@zmanda.com>
1723         * device-src/s3.c: Calculate and send the MD5 hash when uploading data.
1724           Also check the returned ETag to make sure it matches the sent MD5 hash.
1725           Use simpler s3_base64_encode() instead of base64_encode().
1726           Correct the use of character classes in several regular expressions.
1727         * device-src/s3-util.h, device-src/s3-util.c: Add utility functions
1728           s3_base64_encode(), s3_hex_encode(), and s3_compute_md5_hash() as well
1729           as some constants. Move regexec_wrap() into this and rename it to
1730           s3_regexec_wrap().
1731         * device-src/Makefile.am: add s3-util.c and s3-util.h
1732
1733 2008-07-28  Dustin J. Mitchell <dustin@zmanda.com>
1734         * installcheck/Installcheck/Config.pm: don't set default tapetype
1735           unless not set explicitly.
1736         * installcheck/Amanda_Config.pl: test changes
1737         * man/xml-source/amanda-client.conf.5.xml
1738           man/xml-source/amanda.conf.5.xml: encourage, but don't require,
1739           quoted identifiers
1740
1741 2008-07-28  Dustin J. Mitchell <dustin@zmanda.com>
1742         * server-src/amserverconfig.pl: apply perltidy, factor some common
1743           code, and create the config dir and changer conf only after the check
1744           for mtx is performed
1745
1746 2008-07-28  Dustin J. Mitchell <dustin@zmanda.com>
1747         * device-src/tests/semaphore-test.c: move function call out of
1748           variable initialization
1749
1750 2008-07-25 Dan Locks <dwlocks@zmanda.com>
1751         * packaging/deb/control: added alternative dependency of libssl0.9.8 for
1752           Ubuntu 8.x builds.  Added build dependencies for debhelper, fakeroot,
1753           libcurl-dev, libssl-dev.  Updated server and client dependency for curl
1754           to libcurl3
1755
1756 2008-07-18 Dan Locks <dwlocks@zmanda.com>
1757         *  configure.in:  add format-security to gcc compile flags
1758         *  server-src/amindexd.c,
1759            server-src/dumper.c,
1760            server-src/reporter.c,
1761            restore-src/restore.c,
1762            common-src/security-util.c,
1763            common-src/bsd-security.c:  replacemented unquoted strings in
1764            function arguments with "%s", arg.  jrfranks's suggestion, dustin provided
1765            syntax for the fix.
1766
1767 2008-07-17 Dan Locks <dwlocks@zmanda.com>
1768         * packaging/debian/amanda-enterprise-backup-*.install: added entries for
1769           applications and devices man pages.
1770           
1771 2008-07-17  Jean-Louis Martineau <martineau@zmanda.com>
1772         * man/Makefile.am: Add amzfs-snapshot.8
1773         * man/xml-source/amzfs-snapshot.8.xml: New man page.
1774         * man/xml-source/amanda.8.xml: Add amzfs-snapshot.8
1775         * man/xml-source/amanda-scripts.7.xml: Add amzfs-snapshot.8
1776         * application-src/amzfs-snapshot.pl: New script
1777         * application-src/Makefile.am: Add amzfs-snapshot
1778         * perl/Amanda/Util.swg: Add sanitise_filename.
1779
1780 2008-07-17  Jean-Louis Martineau <martineau@zmanda.com>
1781         * amandad-src/amandad.c: amandad must be run by root for krb5 auth.
1782
1783 2008-07-16  Jean-Louis Martineau <martineau@zmanda.com>
1784         * server-src/driver.c: Improve message in failure to dump in degraded
1785                                mode.
1786
1787 2008-07-16 Dan Locks <dwlocks@zmanda.com>
1788         * packaging/deb/control,
1789           packaging/rpm/amanda.spec: added explicit dependency on openssl, and a 
1790           build dependency for openssl and curl development files.
1791
1792 2008-07-15  Dustin J. Mitchell <dustin@zmanda.com>
1793         * example/xinetd.amandaserver.in example/xinetd.amandaclient.in:
1794           specifying both IPv{4,6} does not work; remove IPv4
1795
1796 2008-07-15  Jean-Louis Martineau <martineau@zmanda.com>
1797         * man/Makefile.am: Add new man pages.
1798         * man/xml-source/script-email.8.xml: New man page.
1799         * man/xml-source/amanda.8.xml: List new man pages.
1800         * man/xml-source/amanda-scripts.7.xml: New man page.
1801
1802 2008-07-15  Dustin J. Mitchell <dustin@zmanda.com>
1803         * configure.in: generate (x)inetd files
1804         * example/inetd.conf.amandaclient.in example/xinetd.amandaclient.in
1805           example/xinetd.amandaserver.in: give appropriate path for amandad,
1806           from configure (fixes builds on 64-bit machines)
1807 2008-07-15  Dustin J. Mitchell <dustin@zmanda.com>
1808         * client-src/client_util.c: #include "glib-util.h"
1809         * common-src/glib-util.c: New g_ptr_array_foreach fucntion.
1810         * common-src/glib-util.h: Prototype of g_ptr_array_foreach.
1811         * device-src/rait-device.c: Remove g_ptr_array_foreach.
1812
1813 2008-07-15  Jean-Louis Martineau <martineau@zmanda.com>
1814         * client-src/client_util.c: Read stdout of scripts.
1815         * client-src/client_util.h: New prototype for run_client_scripts,
1816                                     New client_script_result_t struct.
1817         * client-src/sendbackup.c: Send scripts properties to application.
1818         * client-src/sendsize.c: Send scripts properties to application.
1819         * client-src/selfcheck.c: Send scripts properties to application.
1820         * recover-src/extract_list.c: Send scripts properties to application.
1821         * common-src/amxml.h (script_t) Add field to keep result of script.
1822         * common-src/amxml.c: Set script->result to NULL.
1823
1824 2008-07-14 Dan Locks <dwlocks@zmanda.com>
1825         * packaging/rpm/amanda.spec: fix macro detection of fedora version
1826
1827 2008-07-14 Dan Locks <dwlocks@zmanda.com>
1828         * packaging/rpm/amanda.spec: fix distribution detection, add
1829         activate-devpay to server files list
1830
1831 2008-07-11  Dustin J. Mitchell <dustin@zmanda.com>
1832         * installcheck/Amanda_Changer.pl: set up and parse a config, now that
1833           Amanda::Changer needs one
1834
1835 2008-07-11  Dustin J. Mitchell <dustin@zmanda.com>
1836         * perl/Amanda/Changer.pm: set device properties when testing device
1837           labels in the changer
1838
1839 2008-07-11  Jean-Louis Martineau <martineau@zmanda.com>
1840         * application-src/amgtar.c: Add a DIRECTORY property.
1841         * man/xml-source/amgtar.8.xml: Document DIRECTORY property.
1842
1843 2008-07-11  Dustin J. Mitchell <dustin@zmanda.com>
1844         * changer-src/chg-lib.sh.in: remove bogus Log() invocations
1845
1846 2008-07-11  Dustin J. Mitchell <dustin@zmanda.com>
1847         * man/xml-source/amanda.8.xml: fix amanda(8) formatting and add links
1848           to new manpages
1849
1850 2008-07-11  Dustin J. Mitchell <dustin@zmanda.com>
1851         * installcheck/Amanda_Device.pl: be more liberal in the flags that are
1852           accepted from S3's read_label; this will reduce false failures
1853
1854 2008-07-11  Jean-Louis Martineau <martineau@zmanda.com>
1855         * client-src/client_util.c: Remove unused output_tool_property function.
1856         * client-src/client_util.h: Remove output_tool_property prototype.
1857         * man/xml-source/amanda-client.conf.5.xml: Add application and script
1858                                                    sections.
1859         * man/xml-source/amanda.conf.5.xml: Improve application and script
1860                                             sections.
1861         * device-src/device.c: Fix for new property_t.
1862         * server-src/diskfile.h: Change prototype for xml_application and
1863                                  xml_scripts.
1864         * server-src/diskfile.c: Add <priority> tag if client support it.
1865         * server-src/amindexd.c: Fix call to xml_application.
1866         * server-src/amcheck.c: Fix call to xml_application.
1867         * server-src/planner.c: Fix call to xml_application.
1868         * server-src/driverio.c: Fix call to xml_application.
1869         * server-src/server_util.c: Remove code to write property to stdin of
1870                                     script.
1871         * perl/Amanda/Config.swg: Fix for new property_t.
1872         * perl/amglue/amglue.h: Prototype for g_hash_table_to_hashref_property.
1873         * perl/amglue/ghashtable.c: New g_hash_table_to_hashref_property
1874                                     function.
1875         * installcheck/Amanda_Config.pl: Fix for new property_t.
1876         * common-src/util.c: Remove unused output_tool_proplist fucntion,
1877                              Fix for new property_t.
1878         * common-src/util.h: Remove output_tool_proplist prototype.
1879         * common-src/amxml.c:Fix for new property_t, parse priority of property.
1880         * common-src/conffile.c: Parse priority of a property,
1881                           Add application and script to amanda-client.conf.
1882         * common-src/conffile.h: New property_t struct.
1883         * common-src/amfeatures.h: New fe_xml_property_priority amfeature.
1884         * common-src/amfeatures.c: New fe_xml_property_priority amfeature.
1885
1886 2008-07-11  Jean-Louis Martineau <martineau@zmanda.com>
1887         * man/entities/global.entities: Add ENTITY email.jlm.
1888         * man/Makefile.am (CLIENT_MAN_PAGES): Set to amanda-applications.7,
1889           amgtar.8 and amstar.8.
1890         * man/xml-source/amanda.conf.5.xml: Fix </programlisting>, it must be
1891                                             at the begining of a line.
1892         * man/xml-source/amanda-applications.7.xml: New page.
1893         * man/xml-source/amgtar.8.xml: New page.
1894         * man/xml-source/amstar.8.xml: New page.
1895
1896 2008-07-09  Ian Turner <ian@zmanda.com>
1897         * device-src/device.h: Clarify documentation of device_read_label().
1898         * device-src/s3-device.c, device-src/tape-device.c,
1899           device-src/vfs-device.c (device_read_label): Always clear volume
1900           labels, even if device is in error.
1901         * device-src/rait-device.c: Ditto; also properly handle properties
1902           that change device labels.
1903
1904 2007-07-09 Nikolas Coukouma <nikolas@zmanda.com>
1905         * man/xml-source/amanda-devices.7.xml: Document the S3_BUCKET_LOCATION
1906           property (for setting location constraints).
1907
1908 2008-07-08  Dustin J. Mitchell <dustin@zmanda.com>
1909         * device-src/vfs-device.c device-src/tape-device.c: do not autofinish
1910           when EOF occurs on writing
1911
1912 2008-07-08  Dustin J. Mitchell <dustin@zmanda.com>, 
1913             Nikolas Coukouma <nikolas@zmanda.com>,
1914             Ian Turner <ian@zmanda.com>,
1915             Jean-Louis Martineau <martineau@zmanda.com>
1916         Amanda has been analyzed with Klocwork source code analysis, the most
1917         accurate and comprehensive tool for finding critical programming
1918         errors and security vulnerabilities.
1919         * amandad-src/amandad.c changer-src/chg-scsi.c
1920           client-src/client_util.c client-src/selfcheck.c
1921           client-src/sendbackup.c client-src/sendsize.c common-src/amfeatures.c
1922           common-src/bsd-security.c common-src/fileheader.c
1923           common-src/local-security.c common-src/queueing.c
1924           common-src/security-util.c device-src/property.c
1925           device-src/rait-device.c device-src/tape-device.c
1926           device-src/vfs-device.c recover-src/set_commands.c
1927           restore-src/amidxtaped.c restore-src/amrestore.c restore-src/restore.c
1928           server-src/amadmin.c server-src/amcheck.c server-src/amindexd.c
1929           server-src/changer.c server-src/chunker.c server-src/cmdline.c
1930           server-src/driver.c server-src/holding.c server-src/logfile.c
1931           server-src/reporter.c server-src/server_util.c
1932           server-src/taper-file-source.c: fix many issues identified
1933           by Klockwork, ranging in severity from stylistic to minor.
1934            - many memory leaks in error paths and application shutdown
1935            - better handling of incorrect commandline arguments
1936            - better resource management (file descriptors, etc.)
1937
1938 2008-07-07 Nikolas Coukouma <nikolas@zmanda.com>
1939         * device-src/Makefile.am: conditionalize activate-devpay on
1940           WANT_S3_DEVICE
1941
1942 2007-07-06 Nikolas Coukouma <nikolas@zmanda.com>
1943         * device-src/s3-device.c, device-src/s3.c, device-src/s3.h,
1944           device-src/activate-devpay.c, device-src/Makefile.am:
1945           Allow both regular S3 and S3-with-DevPay to be used in
1946           the same installation. Remove WANT_DEVPAY macro.
1947         * device-src/s3-device.c: Added a flag, is_devpay, to the device
1948           and handled divergent cases. Removed useless device_error_set calls.
1949         * device-src/s3.c: Use DevPay authentication iff user_token is set.
1950           Replaced some if statements about non-NULL pointers with assertions.
1951         * config/amanda/s3-device.m4, device-src/Makefile.am:
1952           remove devpay flag and WANT_DEVPAY definition.
1953         * installcheck/Amanda_Device.pl: add tests for DevPay, refactor
1954           other S3 tests.
1955
1956 2007-07-06 Nikolas Coukouma <nikolas@zmanda.com>
1957         * device-src/s3.c: wait for bucket to appear after creation, treat
1958           missing bucket as temporary error, increase retries from 5 to 14
1959           (about 3min), explicitly handle HTTP verbs as libcurl expects.
1960         * installcheck/Amanda_Device.pl: remove (now-irrelvant) note about
1961           buckets taking too long to appear.
1962
1963 2008-07-06 Dan Locks <dwlocks@zmanda.com>
1964         * packaging/deb/amanda-backup-server.postrm
1965           packaging/deb/amanda-backup-client.postrm: removed unused
1966           code
1967         * packaging/deb/postrm: fixed typo in deluser command
1968         * packaging/deb/rules: added specific preinst and postrm scripts for
1969           client and server.
1970
1971 2008-07-03  Dustin J. Mitchell <dustin@zmanda.com>
1972         * man/Makefile.am man/amanda.css man/index.php man/xslt/html.xsl.in:
1973           new files for HTML output
1974         * man/xslt/man.xsl.in: substitute XSLT_VERS
1975         * man/xml-source/amanda-devices.7.xml: tweaks
1976         * man/xml-source/amanda.8.xml: tweaks
1977         * man/xml-source/amanda.conf.5.xml: tweaks
1978         * man/xml-source/amgetconf.8.xml: tweaks
1979         * man/xml-source/amtoc.8.xml: tweaks
1980
1981 2008-07-03  Dustin J. Mitchell <dustin@zmanda.com>
1982         * common-src/genversion.c: correctly represent available amflock
1983           implementations
1984
1985 2008-07-03  Jean-Louis Martineau <martineau@zmanda.com>
1986         * perl/Amanda/Xfer.swg: #include "glib-util.h"
1987
1988 2008-07-02  Dustin J. Mitchell <dustin@zmanda.com>
1989         * device-src/rait-device.c: don't use self->device_name in open_device
1990
1991 2008-07-02  Dustin J. Mitchell <dustin@zmanda.com>
1992         * installcheck/amgetconf.pl: supply a plugin for scripts
1993
1994 2008-07-02  Jean-Louis Martineau <martineau@zmanda.com>
1995         * server-src/diskfile.c: Check an application is set if
1996                                  program == "APPLICATION".
1997         * common-src/amxml.c: Check plugin is set for application and script.
1998         * common-src/conffile.c: Check plugin is set for application and script
1999
2000 2008-07-02  Jean-Louis Martineau <martineau@zmanda.com>
2001         * server-src/amstatus.pl: Fix printing of config path on error.
2002
2003 2008-07-02  Dustin J. Mitchell <dustin@zmanda.com>
2004         * installcheck/Amanda_Device.pl: test that start(READ) without first
2005           reading the label doesn't cause errors 
2006         * device-src/s3-device.c: call s3_device_read_label directly
2007
2008 2008-07-02  Ian Turner <ian@zmanda.com>
2009         * man/xml-source/amanda.8.xml: Document how to override device
2010           properties.
2011
2012 2008-07-02  Ian Turner <ian@zmanda.com>
2013         Dustin J. Mitchell <dustin@zmanda.com> contributed code and thoughts
2014         to this patch.
2015         * man/xml-source/amanda-devices.7.xml: Document new ERROR flag
2016           to start RAIT device in degraded mode.
2017         * device/device.c: Be a little more forgiving of NULL devices.
2018         * device-src/vfs-device.c: Fix a bug where vfs_device_start()
2019           would sometimes throw an erroneous assertion.
2020         * device-src/rait-device.c: Be much more robust in error handling;
2021           new feature to start a RAIT device in degraded mode.
2022         * installcheck/Amanda_Device.pl: Enable more RAIT device tests.
2023
2024 2008-07-02  Dustin J. Mitchell <dustin@zmanda.com>
2025         * common-src/amanda.h: remove unused #include <alloca.h>
2026
2027 2008-07-02  Dustin J. Mitchell <dustin@zmanda.com>
2028         * device-src/tape-device.c: add "user" and "good" to feature flags
2029         * man/xml-source/amanda-devices.7.xml: document it
2030
2031 2008-07-01  Dustin J. Mitchell <dustin@zmanda.com>
2032         * device-src/device.h: fix comments to reflect removal of
2033           autofinishing
2034         * device-src/tape-device.c: remove autofinishing
2035
2036 2008-07-01  Dustin J. Mitchell <dustin@zmanda.com>
2037         * changer-src/chg-lib.sh.in: also handle bare tape dev names
2038
2039 2008-07-01  Dustin J. Mitchell <dustin@zmanda.com>
2040         * changer-src/chg-lib.sh.in: fix tape_device_filename to not use perl
2041         * changer-src/chg-zd-mtx.sh: always use the unqualified hostname to
2042           open the debug file
2043
2044 2008-06-30  Dustin J. Mitchell <dustin@zmanda.com>
2045         * common-src/match.c: fix multiple bugs in match_datestamp
2046
2047 2008-06-29  Dustin J. Mitchell <dustin@zmanda.com>
2048         * perl/Amanda/Changer.pm perl/Amanda/Cmdline.swg
2049           perl/Amanda/Config.swg perl/Amanda/DB/Catalog.pm
2050           perl/Amanda/Device.swg perl/Amanda/Logfile.swg 
2051           perl/Amanda/Util.swg: POD cleanup
2052         * perl/Makefile.am: new files, rules to make HTML
2053         * perl/amperl.css: CSS file for online POD
2054         * perl/make_html.pl: make online POD
2055
2056 2008-06-29  Dustin J. Mitchell <dustin@zmanda.com>
2057         * installcheck/Makefile.am installcheck/amstatus.pl: new check
2058
2059 2008-06-27  Ian Turner <ian@zmanda.com>
2060         * server-src/taper.c: fix printing a NULL pointer in the error path
2061
2062 2008-06-27  Dustin J. Mitchell <dustin@zmanda.com>
2063         * device-src/device.c: check for and fail on multiple
2064           short writes to the same file
2065         * device-src/null-device.c device-src/rait-device.c
2066           device-src/s3-device.c device-src/tape-device.c
2067           device-src/vfs-device.c: do not autofinish files
2068         * installcheck/Amanda_Device.pl installcheck/Amanda_Xfer.pl: don't
2069           expect devices to autofinish anymore
2070         * server-src/taper.c xfer-src/dest-device.c: finish files explicitly
2071         * device-src/device-queueing.c: comments
2072         * xfer-src/xfer-element.h: comments
2073
2074 2008-06-27  Nikolas Coukouma <atrus@zmanda.com>
2075         * device-src/s3.c device-src/s3.h device-src/s3-device.c installcheck/Amanda_Device.pl:
2076           Add support for bucket location constraints
2077         * device-src/s3-device.c: Add S3_BUCKET_LOCATION device property
2078         * device-src/s3.c device-src/s3.h device-src/s3-device.c:
2079           Checks for libcurl and bucket name compatability with location constraints
2080         * device-src/s3.c: make s3_init() threadsafe,
2081           refactor regex compilation and calling,
2082           refactor perform_request() functions to construct URL later,
2083           use GString to tidy string generation
2084         * installcheck/Amanda_Device.pl: Add tests for location constraints
2085
2086 2008-06-27  Ian Turner <ian@zmanda.com>
2087         * device-src/rait-device.c: Fix a memory corruption issue on the last
2088           block of a file.
2089
2090 2008-06-27  Ian Turner <ian@zmanda.com>
2091         * device-src/rait-device.c: Fix a memory corruption issue on the last
2092           block of a file.
2093
2094 2008-06-27  Ian Turner <ian@zmanda.com>
2095         * device-src/rait-device.c: Track file numbers properly when child
2096           devices change them (that is, in rait_device_start_file() and
2097           rait_device_seek_file()).
2098         * installcheck/Amanda_Device.pl: Enable primary set of RAIT tests.
2099
2100 2008-06-27  Jean-Louis Martineau <martineau@zmanda.com>
2101         * device-src/s3-device.c (s3_device_read_label): Don't set
2102           volume_header if nothing is read.
2103
2104 2008-06-27  Jean-Louis Martineau <martineau@zmanda.com>
2105         * device-src/device.c: Don't log is flag is DEVICE_STATUS_SUCCESS.
2106
2107 2008-06-27  Dustin J. Mitchell <dustin@zmanda.com>
2108         * device-src/tape-posix.c: return DEVICE_ERROR|DEVICE_BUSY on EIO
2109         * changer-src/chg-lib.sh.in: keep waiting for a device if it *might*
2110           be busy or offline
2111
2112 2008-06-26  Jean-Louis Martineau <martineau@zmanda.com>
2113         * application-src/amstar.c: Use local start_time variable.
2114         * application-src/amgtar.c: Use local start_time variable.
2115         * common-src/clock.h: Remove times_zero and start_time extern.
2116         * common-src/clock.c: Remove times_zero.
2117
2118 2008-06-25  Jean-Louis Martineau <martineau@zmanda.com>
2119         * server-src/diskfile.c: Don't send encryption in xml req packet for
2120                                  server encryption.
2121
2122 2008-06-25  Dustin J. Mitchell <dustin@zmanda.com>
2123         * application-src/amgtar.c: revert --atime-preserve change
2124
2125 2008-06-22  Dustin J. Mitchell <dustin@zmanda.com>
2126         * application-src/amgtar.c: change --atime-preserve=system to
2127           --atime-preserve
2128
2129 2008-06-20  Dustin J. Mitchell <dustin@zmanda.com>
2130         * installcheck/amdump.pl: fix checks to refresh the test configuration
2131
2132 2008-06-20  Dustin J. Mitchell <dustin@zmanda.com>, Ian Turner <ian@zmanda.com>
2133         * server-src/amdump.sh: correctly handle error exits from planner
2134         * server-src/planner.c: fail if planning fails
2135         * installcheck/amdump.pl: test changes
2136
2137 2008-06-20 Dan Locks <dwlocks@zmanda.com>
2138         * packaging/rpm/amanda.spec: typo amanda-devices.7.gz
2139
2140 2008-06-20 Dan Locks <dwlocks@zmanda.com>
2141         * packaging/rpm/amanda.spec: added %{MANDIR}/man7/amanda-device.7.gz
2142
2143 2008-06-20  Jean-Louis Martineau <martineau@zmanda.com>
2144         * client-src/client_util.c: Call check_access() only
2145                                     if getuid() == geteuid().
2146         * application-src/amgtar.c: check_dir(argument->dle.device, R_OK)
2147
2148 2008-06-19  Jean-Louis Martineau <martineau@zmanda.com>
2149         * server-src/amcleanup.pl: Correctly rename amdump files.
2150
2151 2008-06-19  Dustin J. Mitchell <dustin@zmanda.com>, Ian Turner <ian@zmanda.com>
2152         * man/Makefile.am man/xml-source/amanda-devices.7.xml: new manpage
2153         * man/entities/global.entities: emails for dustin and ian
2154         * man/xml-source/amanda.8.xml: refer to new manpage
2155         * man/xml-source/amanda.conf.5.xml: refer to new manpage
2156         * man/xml-source/amrecover.8.xml: refer to new manpage
2157         * server-src/amcheck.c: fix message regarding WORM media
2158
2159 2008-06-19  Dustin J. Mitchell <dustin@zmanda.com>
2160         * server-src/amgetconf.pl: fail on bad parameters or subsections, but
2161           not empty values or subsection lists
2162         * perl/Amanda/Config.swg: publish a list of subsections
2163         * installcheck/amgetconf.pl: test it
2164
2165 2008-06-19  Dustin J. Mitchell <dustin@zmanda.com>
2166         * example/template.d/amanda-single-tape.conf.in
2167           example/template.d/amanda-harddisk.conf.in
2168           example/template.d/amanda-tape-changer.conf.in
2169           example/template.d/dumptypes example/template.d/amanda-S3.conf.in:
2170           use application amgtar instead of program GNUTAR
2171
2172 2008-06-19  Dustin J. Mitchell <dustin@zmanda.com>
2173         * config/amanda/net.m4: AC_SUBST port ranges; update comments
2174
2175 2008-06-19  Satya Ganga <gsat@zmanda.com>
2176         * example/template.d/amanda-single-tape.conf.in
2177           example/template.d/advanced.conf.in: update displayunit to "g" and
2178           remove chg-manual for single tape configurations.
2179
2180 2008-06-19  Ian Turner <ian@zmanda.com>
2181         * device-src/rait-device.c (rait_device_start): Check for consistent
2182           volume label on all child devices, fail with
2183           DEVICE_STATUS_DEVICE_ERROR otherwise.
2184         * installcheck/Amanda_Device.pl: Test for foregoing.
2185
2186 2008-06-19  Paddy Sreenivasan <paddy@zmanda.com>
2187         * device-src/s3.h: use "https://ls.amazonaws.com/" as STS endpoint
2188
2189 2008-06-19  Dustin J. Mitchell <dustin@zmanda.com>
2190         * installcheck/Makefile.am: remove test_utils from SCRIPTS_PERL
2191         * config/automake/scripts.am: explain why
2192
2193 2008-06-18  Jean-Louis Martineau <martineau@zmanda.com>
2194         * changer-src/chg-manual.sh: Make it interruptible.
2195
2196 2008-06-18  Jean-Louis Martineau <martineau@zmanda.com>
2197         * application-src/amgtar.c: Remove check for amandates file.
2198
2199 2008-06-18  Jean-Louis Martineau <martineau@zmanda.com>
2200         * common-src/amanda.h: Fix skip_quoted_string for "\\".
2201         * common-src/file.c: Fix debug_agets for "\\".
2202
2203 2008-06-18  Jean-Louis Martineau <martineau@zmanda.com>
2204         * server-src/amstatus.pl: Report size of PART taped on 'dump to tape'.
2205
2206 2008-06-18  Jean-Louis Martineau <martineau@zmanda.com>
2207         * client-src/sendsize.c: Report error from application to server.
2208         * application-src/amgtar.c: Report exit status of tar.
2209
2210 2008-06-16  Dustin J. Mitchell <dustin@zmanda.com>
2211         * perl/Amanda/Xfer.swg xfer-src/Makefile.am xfer-src/xfer-element.h
2212           xfer-src/dest-device.c xfer-src/source-device.c: new elements
2213           Amanda::Xfer:{Dest,Source}::Device
2214         * perl/Amanda/Xfer.swg: POD fix for Amanda::Xfer:Filter::Xor
2215         * installcheck/Amanda_Xfer.pl: tests for new elements
2216
2217 2008-06-16  Dustin J. Mitchell <dustin@zmanda.com>
2218         * installcheck/amservice.pl: add invocations of selfcheck for GNUTAR
2219           and amgtar
2220         * installcheck/amservice.pl: put -f switches first
2221
2222 2008-06-15  Dustin J. Mitchell <dustin@zmanda.com>
2223         * installcheck/Amanda_Config.pl: test config overwrites
2224         * common-src/conffile.c: don't segfault applying config overwrites
2225           after config_init(0, NULL)
2226
2227 2008-06-13  Jean-Louis Martineau <martineau@zmanda.com>
2228         * client-src/sendbackup.c: Run compression and encryption for
2229                                    application-api.
2230
2231 2008-06-13  Jean-Louis Martineau <martineau@zmanda.com>
2232         * perl/Amanda/Util.swg: Expose get_original_cwd.
2233         * application-src/amgtar_perl.pl, application-src/amoracle.pl:
2234           chdir(get_original_cwd()) before restore.
2235
2236 2008-06-13  Dustin J. Mitchell <dustin@zmanda.com>
2237         * device-src/property.c device-src/property.h: remove tape properties
2238         * device-src/tape-device.c device-src/tape-device.h: add tape
2239           properties
2240
2241 2008-06-12 Dan Locks <dwlocks@zmanda.com>
2242         * packaging/rpm/amanda_enterprise.spec,
2243           packaging/rpm/amanda_enterprise_client.spec,
2244           packaging/deb/rules: install amgtar and amstar suid root
2245
2246 2008-06-12  Jean-Louis Martineau <martineau@zmanda.com>
2247         * client-src/selfcheck.c: Typo.
2248
2249 2008-06-11  Jean-Louis Martineau <martineau@zmanda.com>
2250         * client-src/sendsize.c: Check MAX-LEVEL from application.
2251         * server-src/planner.c: Ask for estimate even if SERVER, estimate is
2252           valid if client return -1 and invelid if client return -2.
2253         * common-src/amfeatures.h: New fe_xml_estimate amfeature.
2254         * common-src/amxml.c: Parse <estimate> tag.
2255         * common-src/amxml.h (dle_t): New estimate field.
2256         * common-src/amfeatures.c: Set fe_xml_estimate.
2257
2258 2008-06-11  Jean-Louis Martineau <martineau@zmanda.com>
2259         * client-src/client_util.c (application_property_add_to_argv):
2260                                    Add include and exclude.
2261         * client-src/client_util.h (application_property_add_to_argv):
2262                                    New prototype.
2263         * client-src/sendbackup.c, client-src/sendsize.c,
2264           client-src/selfcheck.c, recover-src/extract_list.c:
2265           Add bsu param to application_property_add_to_argv.
2266         * client-src/selfcheck.c: Check if application support includ/exclude.
2267         * application-src/amgtar_perl.pl: Don't support include/exclude.
2268         * application-src/amgtar.c: Support include-optional and
2269                                     exclude-optional.
2270         * common-src/amxml.c: Fix include/exclude parsing.
2271
2272 2008-06-11  Jean-Louis Martineau <martineau@zmanda.com>
2273         * application-src/Makefile.am: Install amgtar and amstar suid root.
2274
2275 2008-06-11  Jean-Louis Martineau <martineau@zmanda.com>
2276         * client-src/selfcheck.c: Print cmdline before execing the application.
2277         * application-src/generic-dumper.pl: Cleanup.
2278         * application-src/script-oracle.pl: Cleanup.
2279         * application-src/script-email.pl: Cleanup.
2280         * application-src/amgtar_perl.pl: Cleanup.
2281         * application-src/generic-script.pl: Cleanup.
2282         * application-src/Makefile.am: Remove all scripts from CHECK_PERL.
2283         * perl/Amanda/Debug.swg: Typo.
2284
2285 2008-06-10  Dustin J. Mitchell <dustin@zmanda.com>
2286         * common-src/Makefile.am: don't use $(builddir), fix comparison
2287         * installcheck/Makefile.am: don't use $(builddir)
2288
2289 2008-06-10  Ian Turner <ian@zmanda.com>
2290         * common-src/fileheader.c: Silence a compiler warning.
2291         * device-src/rait-device.c: ditto.
2292
2293 2008-06-10  Dustin J. Mitchell <dustin@zmanda.com>
2294         * device-src/rait-device.c: hack around glib bug in versions <2.10.2
2295           using the precompiler macro instead of glib_check_version, which
2296           doesn't exist in every version of glib
2297
2298 2008-06-10 Dan Locks <dwlocks@zmanda.com>
2299         * packaging/rpm/amanda.spec:  Replaced individual SBINDIR/am... entries 
2300           with SBINDIR/am* in %%files
2301
2302 2008-06-10  Jean-Louis Martineau <martineau@zmanda.com>
2303         * man/xml-source/amanda.conf.5.xml: Add pre&post recover scripts.
2304
2305 2008-06-09 Dan Locks <dwlocks@zmanda.com>
2306         * packaging/rpm/buildpkg: added "|| exit 1" to any command which should
2307           cause the script to fail.
2308
2309 2008-06-09 Dan Locks <dwlocks@zmanda.com>
2310         * packaging/rpm/amanda.spec: Changed individual SBINDIR/am... entries to
2311           use a single SBINDIR/am* entry in %files
2312
2313 2008-06-09  Dustin J. Mitchell <dustin@zmanda.com>
2314         * common-src/fileheader.c: correctly free dle_str
2315         * device-src/device.c device-src/device.h: add volume_header Device
2316           attributes
2317         * device-src/rait-device.c device-src/s3-device.c
2318           device-src/tape-device.c device-src/vfs-device.c: populate
2319           volume_header
2320         * server-src/amlabel.c: use volume_header to detect a non-empty tape
2321           and require a force (-f) to overwrite it
2322         * server-src/taperscan.c: use volume_header to detect a non-empty tape
2323           and require 'amlabel -f' to overwrite it
2324         * device-src/tape-device.c device-src/vfs-device.c: fix read_label
2325           return values and remove useless chain-up calls
2326
2327 2008-06-09  Jean-Louis Martineau <martineau@zmanda.com>
2328         * server-src/amservice.c: Open input file in read mode, prepend
2329                                   get_original_cwd() to relative path.
2330         * installcheck/Makefile.am: Check amservice only on server.
2331
2332 2008-06-09  Dustin J. Mitchell <dustin@zmanda.com>
2333         * installcheck/Amanda_Device.pl: skip all RAIT tests temporarily
2334
2335 2008-06-09  Dustin J. Mitchell <dustin@zmanda.com>
2336         * man/xml-source/amanda.8.xml: add links to amservice
2337
2338 2008-06-07  Dustin J. Mitchell <dustin@zmanda.com>
2339         * config/amanda/ipv6.m4: remove redundant AC_SOCKADDR_STORAGE
2340         * configure.in: don't call AC_SOCKADDR_STORAGE
2341
2342 2008-06-07  Dustin J. Mitchell <dustin@zmanda.com>
2343         * installcheck/Amanda_Xfer.pl: make AMANDA_TMPDIR if it doesn't exist
2344
2345 2008-06-07  Dustin J. Mitchell <dustin@zmanda.com>
2346         * installcheck/Installcheck/Run.pm: fix Installcheck::Run vtape
2347           handling so that checks can load/unload vtapes "manually"
2348
2349 2008-06-07  Dustin J. Mitchell <dustin@zmanda.com>
2350         * server-src/amdevcheck.pl: apply config_overwrites before printing
2351           config errors
2352
2353 2008-06-07  Dustin J. Mitchell <dustin@zmanda.com>
2354         * application-src/amgtar_perl.pl application-src/amstar_perl.pl
2355           application-src/generic-dumper.pl application-src/generic-script.pl
2356           application-src/script-email.pl server-src/amgetconf.pl: add GPL
2357           notice
2358
2359 2008-06-06  Jean-Louis Martineau <martineau@zmanda.com>
2360         * server-src/amservice.c: Exit with 1 if the connection fail.
2361         * man/xml-source/amservice.8.xml: Document exit code.
2362
2363 2008-06-06  Dustin J. Mitchell <dustin@zmanda.com>
2364         * device-src/device.c: make device_set_error bulletproof to NULLs
2365         * device-src/tape-posix.c: fix compilation error when GMT_ONLINE is
2366           not defined
2367
2368 2008-06-06  Jean-Louis Martineau <martineau@zmanda.com>
2369         * man/Makefile.am: Add amservice.8.
2370         * man/xml-source/amservice.8.xml: New man page for amservice.
2371         * server-src/amservice.c: New program to execute an amanda service
2372                                   on a client.
2373         * server-src/Makefile.am: Add amservice
2374         * installcheck/amservice.pl: New check for amservice program.
2375         * installcheck/Makefile.am: Add amservice
2376
2377 2008-06-06  Jean-Louis Martineau <martineau@zmanda.com>
2378         * server-src/dumper.c: Don't quote dle_str.
2379         * common-src/fileheader.c: DLE= in header is like heredoc.
2380
2381 2008-06-06  Dustin J. Mitchell <dustin@zmanda.com>
2382         * device-src/*: major overhaul:
2383           - add device_set_error to set error status and message for Device
2384           - every error return from a device API method sets error status
2385           - device_status_error is now threadsave
2386           - a device in an error state will not perform further operations
2387           - ensure Device attributes are set correctly by member functions
2388           - device_open never returns NULL, but may return a null device with
2389             error status set
2390           - clearly define $device_name="$device_type:$device_node"
2391           - send RAIT logging to the debug log
2392           - vfs, tape devices don't touch the device until read_label or start
2393           - on out-of-space in write, set is_eof, finish the file, and return
2394             FALSE
2395           - use accessor functions in Amanda::Device
2396           - move device-specific properties to live with their devices
2397           - change g_return_val_if_fail to g_assert or explicit checks
2398           - remove most default Device methods, as they were more confusing
2399             than helpful
2400           - misc. other cleanup
2401         * device-src/null-device.h device-src/rait-device.h
2402           device-src/s3-device.h device-src/vfs-device.h: removed to make most
2403           device class declarations local to the source file
2404         * perl/Amanda/Device.swg: new error handling
2405         * perl/Amanda/Changer.pm restore-src/amrestore.c restore-src/restore.c
2406           server-src/amcheck.c server-src/amcheckdump.pl
2407           server-src/amdevcheck.pl server-src/amlabel.c server-src/amtape.c
2408           server-src/taperscan.c: use new device error-handling
2409         * server-src/taper-file-source.c server-src/taper-port-source.c
2410           server-src/taper-source.c: rename GObject constants (typo)
2411         * server-src/taper-source.h:
2412         * server-src/taper.c: handle opening devices better, log on EOM
2413         * common-src/glib-util.c: g_english_strjoinv: handle one-element lists
2414           correctly
2415         * installcheck/amdevcheck.pl: volume-unlabeled message has changed
2416         * installcheck/Amanda_Device.pl perl/Amanda/Tests.swg: test all device
2417           classes
2418         * configure.in device-src/tests/: removed
2419         * device-src/vfs-test.c: moved from device-src/tests/
2420
2421 2008-06-06  Jean-Louis Martineau <martineau@zmanda.com>
2422         * client-src/sendbackup.c: Don't write the uncompression program if
2423                                    it is not client compressed.
2424
2425 2008-06-05  Jean-Louis Martineau <martineau@zmanda.com>
2426         * server-src/taper.c: Log no-tape line.
2427
2428 2008-06-05  Jean-Louis Martineau <martineau@zmanda.com>
2429         * server-src/reporter.c: Improve formating.
2430
2431 2008-06-05  Jean-Louis Martineau <martineau@zmanda.com>
2432         * server-src/driver.c: start the degraded mode if it receive
2433                                NO-NEW-TAPE from taper.
2434
2435 2008-06-05  Jean-Louis Martineau <martineau@zmanda.com>
2436         * server-src/amcheckdump.pl: Check log fiels in directory if find_log
2437                                      find no log for the timestamps.
2438
2439 2008-06-05  Dustin J. Mitchell <dustin@zmanda.com>
2440         * common-src/conffile.c common-src/conffile.h: expose config_add_error
2441         * server-src/diskfile.c server-src/diskfile.h: use config_add_error
2442           to send diskfile errors to conffile's error-handling mechanism
2443         * restore-src/amfetchdump.c server-src/amadmin.c server-src/amcheck.c
2444           server-src/amcleanupdisk.c server-src/amflush.c server-src/amindexd.c
2445           server-src/amtrmidx.c server-src/amtrmlog.c server-src/driver.c
2446           server-src/planner.c: parse disklist along with config
2447
2448 2008-06-04  Jean-Louis Martineau <martineau@zmanda.com>
2449         And Dustin J. Mitchell <dustin@zmanda.com>
2450         * man/xml-source/amanda-client.conf.5.xml: Document property.
2451         * installcheck/Amanda_Config.pl: Add test for client property.
2452         * common-src/conffile.c (client_var): Add CONF_PROPERTY.
2453
2454 2008-06-03  Jean-Louis Martineau <martineau@zmanda.com>
2455         * perl/Amanda/Types.swg: Add dle_str to dumpfile_t.
2456         * common-src/fileheader.c: Don't print NULL dle_str.
2457
2458 2008-06-03  Jean-Louis Martineau <martineau@zmanda.com>
2459         * common-src/amfeatures.h: Rename fe_amrecover_dle to fe_amindexd_DLE,
2460                                    add fe_amrecover_dle_in_header.
2461         * common-src/amfeatures.c: Set fe_amrecover_dle_in_header.
2462         * recover-src/set_commands.c: Use fe_amindexd_DLE.
2463         * server-src/dumper.c: Set dle_str and add it to the header.
2464         * restore-src/restore.c: Remove dle_str is client doesn't have
2465                                  fe_amrecover_dle_in_header.
2466         * common-src/fileheader.c: Parse and set dle_str from header.
2467         * common-src/fileheader.h: Add dle_str in dumpfile_t.
2468
2469 2008-06-03  Jean-Louis Martineau <martineau@zmanda.com>
2470         * man/xml-source/amdump.8.xml, man/xml-source/amreport.8.xml,
2471           man/xml-source/amcheck.8.xml, man/xml-source/amflush.8.xml,
2472           man/xml-source/amstatus.8.xml: Add "EXIT CODE" section".
2473
2474 2008-06-03  Jean-Louis Martineau <martineau@zmanda.com>
2475         * common-src/conffile.c (parm_key_info): Don't fold '-' to '_' in
2476                                                  subsec_name.
2477         * installcheck/amgetconf.pl: Fix and add more tests.
2478
2479 2008-06-03  Dustin J. Mitchell <dustin@zmanda.com>
2480         * common-src/amxml.c: give parse error on an empty "disk" element
2481         * server-src/diskfile.c: give parse error on an empty "disk" element
2482
2483 2008-05-30  Jean-Louis Martineau <martineau@zmanda.com>
2484         * common-src/security-util.c: Remove unneeded pointer cast.
2485         * common-src/stream.c: Fix compiler error.
2486
2487 2008-05-30  Dustin J. Mitchell <dustin@zmanda.com>
2488         * installcheck/Installcheck/Config.pm: fix subsection inheritance
2489
2490 2008-05-30  Dustin J. Mitchell <dustin@zmanda.com>
2491         * common-src/amanda.h, common-src/bsd-security.c,
2492           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
2493           common-src/dgram.c, common-src/dgram.h, common-src/krb5-security.c,
2494           common-src/security-util.c, common-src/security-util.h,
2495           common-src/sockaddr-util.c, common-src/sockaddr-util.h,
2496           common-src/stream.c, common-src/util.c, common-src/util.h,
2497           restore-src/amidxtaped.c, server-src/amindexd.c: add sockaddr_union,
2498           change all relevant functions to use it, to avoid aliasing violations
2499
2500 2008-05-30  Jean-Louis Martineau <martineau@zmanda.com>
2501         * common-src/conffile.c (lookup_keyword): Use temporary variable.
2502         * installcheck/Amanda_Config.pl:  Check insentivity of -/_ in amanda
2503                                           keyword.
2504         * installcheck/Installcheck/Config.pm: Adjust to make the subsection
2505                                                inheritance work.
2506
2507 2008-05-30  Jean-Louis Martineau <martineau@zmanda.com>
2508         * recover-src/extract_list.c: Send properties from dump_dle to
2509                                       application plugin.
2510
2511 2008-05-30  Jean-Louis Martineau <martineau@zmanda.com>
2512         * client-src/client_util.c: New *-RECOVER scripts.
2513         * application-src/script-email.pl: Add new *-RECOVER scripts.
2514         * application-src/generic-script.pl: Add new *-RECOVER scripts.
2515         * application-src/amstar.c: Fix.
2516         * application-src/amgtar.c: Fix.
2517         * recover-src/amrecover.c: Add a global dump_dle variable.
2518         * recover-src/extract_list.c: Call run_client_scripts for *-RECOVER
2519                                       scripts.
2520         * recover-src/amrecover.h: Add an extern dump_dle variable.
2521         * recover-src/set_commands.c: Send to amindexd the DLE command.
2522         * server-src/amindexd.c: Handle the DLE command.
2523         * server-src/server_util.c: Add *-RECOVER scripts, they can't be
2524                                     executed on server.
2525         * server-src/diskfile.c (xml_scripts): Add *-RECOVER scripts.
2526         * common-src/amfeatures.h: New fe_amrecover_dle amfeature.
2527         * common-src/amfeatures.c (am_init_feature_set): Add fe_amrecover_dle.
2528         * common-src/amxml.c: Add *-RECOVER scripts.
2529         * common-src/conffile.c: Add *-RECOVER scripts.
2530         * common-src/conffile.h: Add *-RECOVER scripts.
2531
2532 2008-05-29  Dustin J. Mitchell <dustin@zmanda.com>
2533         * common-src/conffile.c: make config insensitive to
2534           differences between '-' and '_'
2535         * man/xml-source/amanda-client.conf.5.xml
2536           man/xml-source/amanda.conf.5.xml 
2537           man/xml-source/amgetconf.8.xml: document it
2538         * installcheck/Amanda_Config.pl installcheck/amgetconf.pl: update
2539           tests
2540
2541 2008-05-29  Orion Poplawski <orion@cora.nwra.com>
2542         * server-src/chunker.c: fix buffer overrun
2543
2544 2008-05-29  Jean-Louis Martineau <martineau@zmanda.com>
2545         * common-src/conffile.c (client_keytab): Remove "DEVICE-PROPERTY".
2546
2547 2008-05-28  Dustin J. Mitchell <dustin@zmanda.com>
2548         * device-src/rait-device.c: rait-device returns correct size when
2549           blocksize is too small
2550
2551 2008-05-28  Jean-Louis Martineau <martineau@zmanda.com>
2552         * server-src/reporter.c: Fix ignoring pid line.
2553
2554 2008-05-27  Jean-Louis Martineau <martineau@zmanda.com>
2555         * config/amanda/ps.m4: Define PS_ARGUMENT to CYGWIN on cygwin.
2556         * perl/Amanda/Process.pm: Works with PS_ARGUMENT eq "CYGWIN".
2557
2558 2008-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2559         * server-src/amstatus.pl: use lib '@amperldir@';
2560         * perl/Amanda/Process.pm: use Amanda::Constants;
2561
2562 2008-05-26  Dustin J. Mitchell <dustin@zmanda.com>
2563         * device-src/rait-device.c: temporarily remove the call to set the
2564           BLOCK_SIZE property on all RAIT children, as it fails with VFS
2565           devices
2566         * device-src/rait-device.c: rewrite g_ptr_array_union_robust to
2567           correctly detect and handle child device failures
2568         * common-src/fileheader.c: fix parse_file_header to be threadsafe
2569
2570 2008-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2571         * device-src/tape-aix.c, device-src/tape-xenix.c
2572           device-src/tape-posix.c: tape_is_ready take a (TapeDevice *) argument
2573         * device-src/tape-posix.c (tape_is_ready): Check for broken_gmt_online.
2574         * device-src/property.c: Add broken_gmt_online property.
2575         * device-src/property.h: Add PROPERTY_BROKEN_GMT_ONLINE.
2576         * device-src/tape-device.c: Use broken_gmt_online property.
2577         * device-src/tape-device.h (TapeDevice): Add broken_gmt_online field.
2578         * device-src/tape-ops.h (tape_is_ready): Change prototype.
2579
2580 2008-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2581         * changer-src/chg-zd-mtx.sh: Fix logging.
2582
2583 2008-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2584         * packaging/rpm/amanda.spec: Fix output message.
2585
2586 2008-05-25  Dustin J. Mitchell <dustin@zmanda.com>
2587         * common-src/Makefile.am common-src/simpleprng.c
2588           common-src/simpleprng.h: new simple PRNG module for
2589           reproducible use in tests (bitlength bug fixed).
2590         * xfer-src/dest-null.c: verify stream against PRNG
2591         * xfer-src/source-random.c: use PRNG to create stream
2592         * installcheck/Amanda_Xfer.pl: verify streams in xfers
2593         * perl/Amanda/Xfer.swg: use PRNG
2594         * xfer-src/xfer-element.h xfer-src/xfer-test.c: use
2595           PRNG to test glue elements
2596
2597 2008-05-23  Dustin J. Mitchell <dustin@zmanda.com>
2598         * installcheck/Amanda_MainLooop.pl: handle SIGCHILD while
2599           reading from dying child
2600
2601 2008-05-22  Dustin J. Mitchell <dustin@zmanda.com>
2602         * xfer-src/xfer-test.c: don't try to write to a file in the
2603           source directory
2604
2605 2008-05-22  Jean-Louis Martineau <martineau@zmanda.com>
2606         * perl/Amanda/Process.pm (load_ps_table): Fix split.
2607
2608 2008-05-22  Jean-Louis Martineau <martineau@zmanda.com>
2609         * configure.in: Call AMANDA_PS_ARGUMENT
2610         * config/amanda/ps.m4 (AMANDA_PS_ARGUMENT): New macro to find ps
2611                                                     argument.
2612         * perl/Amanda/Constants.pm.in: Add PS_ARGUMENT.
2613         * perl/Amanda/Process.pm (load_ps_table): Use PS_ARGUMENT.
2614
2615 2008-05-22  Jean-Louis Martineau <martineau@zmanda.com>
2616         * perl/Amanda/Process.pm: process_alive return '' if the process is
2617                                   dead.
2618         * installcheck/Amanda_Process.pl: New module to check Amanda::Process.
2619         * installcheck/Makefile.am (server_tests): Add Amanda_Process.
2620
2621 2008-05-21  Jean-Louis Martineau <martineau@zmanda.com>
2622         * server-src/amstatus.pl: Add "failed: killed while" to some status if
2623                                   the driver process is dead.
2624         * perl/Amanda/Process.pm: New process_alive function.
2625
2626 2008-05-21  Jean-Louis Martineau <martineau@zmanda.com>
2627         * server-src/dumper.c server-src/planner.c, server-src/chunker.c,
2628           server-src/amflush.c, server-src/driver.c, server-src/taper.c,
2629           restore-src/amidxtaped.c, restore-src/restore.c,
2630           restore-src/amfetchdump.c: Convert all pid_t to long before printing.
2631
2632 2008-05-21  Jean-Louis Martineau <martineau@zmanda.com>
2633         * man/xml-source/amcleanup.8.xml: Document new -p option.
2634         * server-src/logfile.c (program_str): Add many programs.
2635         * server-src/logfile.h (program_e): Add many programs.
2636         * server-src/dumper.c, server-src/planner.c,
2637           server-src/chunker.c, server-src/amflush.c,
2638           server-src/driver.c, server-src/taper.c,
2639           restore-src/amidxtaped.c, restore-src/restore.c,
2640           restore-src/amfetchdump.c,
2641           server-src/amdump.sh: Log pid and pid-done lines, call run_amclenup.
2642         * server-src/server_util.c (run_amcleanup): New function to run
2643                                                     amcleanup.
2644         * server-src/server_util.c (get_master_process): New function get the
2645                                  name of the first pid line in a log file.
2646         * server-src/server_util.h (run_amcleanup): Prototype.
2647         * server-src/server_util.h (get_master_process): Prototype.
2648         * server-src/reporter.c: Ignore pid and pid-done lines.
2649         * server-src/amcleanup.pl: New amcleanup program written in perl.
2650         * server-src/Makefile.am: Move amcleanup from SCRIPTS_SHELL to
2651                                   SCRIPTS_PERL.
2652         * server-src/amcleanup.sh: Old program removed.
2653         * perl/Amanda/Process.pm: New module to hanlde amanda process.
2654         * perl/Makefile.am: Add Amanda/Process.pm to Amanda_DATA and EXTRA_DIST
2655
2656 2008-05-21  Jean-Louis Martineau <martineau@zmanda.com>
2657         * server-src/driver.c: Fix quoting of diskname.
2658
2659 2008-05-20  Dustin J. Mitchell <dustin@zmanda.com>
2660         * configure.in config/amanda/socklen_t_equiv.m4: detect the type (not
2661           necessarily socklen_t used by getpeername et al.
2662         * amandad-src/amandad.c server-src/amindexd.c restore-src/amidxtaped.c
2663           common-src/util.c common-src/bsdtcp-security.c common-src/amanda.h
2664           common-src/krb5-security.c common-src/dgram.c common-src/stream.c:
2665           use the type instead of socklen_t
2666
2667 2008-05-20  Jean-Louis Martineau <martineau@zmanda.com>
2668             Dustin J. Mitchell <dustin@zmanda.com>
2669             John Franks <jrfranks@zmanda.com>
2670         * server-src/amstatus.pl: quote disknames in amstatus
2671         * server-src/Makefile.am: don't check amstatus (since it
2672           uses Amanda::* libs)
2673         * perl/Amanda/Util.swg: add (un)quote_string
2674         * installcheck/Amanda_Util.pl installcheck/Makefile.am: test it
2675
2676 2008-05-16  Jean-Louis Martineau <martineau@zmanda.com>
2677         * common-src/conffile.c: Fix conf_parserror use.
2678
2679 2008-05-15  Dustin J. Mitchell <dustin@zmanda.com>
2680         * perl/Makefile.am installcheck/Makefile.am Makefile.am: only build
2681           XFA in server builds
2682
2683 2008-05-15  Jean-Louis Martineau <martineau@zmanda.com>
2684         * common-src/conffile.c: Parse send-amreport-on.
2685         * common-src/conffile.h (send_amreport_t): New enum for possible value
2686                                                    of send-amreport-on.
2687         * server-src/reporter.c: Use send-amreport-on setting.
2688         * perl/Amanda/Config.swg: Define send_amreport_on_t constants.
2689         * man/xml-source/amanda.conf.5.xml: Document send-amreport-on.
2690
2691 2008-05-15  Jean-Louis Martineau <martineau@zmanda.com>
2692         * client-src/client_util.c (application_property_argv_size): New
2693           function to count the number of argument needed to store all
2694           properties of an application for + * a dle in an ARGV.
2695         * client-src/client_util.c (application_property_add_to_argv): New
2696           function to add all properties of an application for a dle to an ARGV.
2697         * client-src/client_util.h (application_property_argv_size,
2698                                   application_property_add_to_argv): Prototype.
2699         * client-src/sendbackup.c, client-src/sendsize.c,
2700           client-src/selfcheck.c: Use new functions to pass properties as
2701                                   argument to application plugin.
2702         * application-src/script-email.pl, application-src/amstar.c,
2703           application-src/generic-script.pl,
2704           application-src/amgtar.c: Get properties from command line.
2705         * server-src/server_util.c: Use new functions to pass properties as
2706                                     argument to pre/post script.
2707         * common-src/util.c (count_proplist): Callback function to count the
2708                                               number of values of a property.
2709         * common-src/util.c (proplist_add_to_argv): callback function to store a
2710                                         property and it's value in an ARGV.
2711         * common-src/util.h (count_proplist, proplist_add_to_argv): Prototype.
2712         * common-src/conffile.c (property_argv_size): New function to count the
2713                                                       number of properties.
2714         * common-src/conffile.c (property_add_to_argv): New function to store a
2715                                         property and it's value in an ARGV.
2716         * common-src/conffile.h (property_argv_size,
2717                                  property_add_to_argv): Prototype.
2718
2719 2008-05-15  Dustin J. Mitchell <dustin@zmanda.com>
2720         * xfer-src/Makefile.am: add element-glue.h to the distribution
2721         * xfer-src/element-glue.h: add 'extern'
2722         * xfer-src/xfer-test.c: fix test elements
2723         * xfer-src/xfer.c: don't use the sometimes-undefined constant
2724           G_MAXINT32
2725         * xfer-src/source-random.c: Only use 'prolong' for threads, not
2726           push/pull methods
2727         * installcheck/Amanda_Xfer.pl: Check the content of $msg->{message} in
2728           XMSG_INFO
2729
2730 2008-05-14  Dustin J. Mitchell <dustin@zmanda.com>
2731         * xfer-src/xfer-element.h xfer-src/xfer.c xfer-src/dest-null.c
2732           xfer-src/source-random.c xfer-src/xfer-test.c
2733           xfer-src/element-glue.c xfer-src/xmsg.h xfer-src/dest-fd.c
2734           xfer-src/source-fd.c xfer-src/element-glue.h
2735           xfer-src/Makefile.am xfer-src/filter-xor.c
2736           xfer-src/xfer-element.c perl/Amanda/Xfer.swg: new organization
2737           of transfer mechansims and new algorithm for linking xfers, with
2738           expanded unit tests to exercise new glue elements
2739         * installcheck/Amanda_Xfer.pl: updated installchecks
2740         * common-src/semaphore.h: fix comment typo
2741         * common-src/testutils.c common-src/testutils.h: optionally skip
2742           timeouts (-t), and only show g_debug messages if -d is given
2743
2744 2008-05-14  Dustin J. Mitchell <dustin@zmanda.com>
2745         * client-src/amhpfixdevs.sh client-src/Makefile.am
2746           client-src/amsinixfixdevs.sh config/amanda/devprefix.m4:
2747           permanently remove amsinixfixdevs and amhpfixdevs
2748
2749 2008-05-12  Jean-Louis Martineau <martineau@zmanda.com>
2750           Patch by Orion Poplawski
2751         * server-src/planner.c: Warn about overwrite of last level 1, and
2752           force backup of level 1 if overwrite on this run.
2753
2754 2008-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2755         * common-src/conffile.c: Define default tapetype.
2756
2757 2008-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2758         * device-src/tape-device.c (tape_validate_properties): New function to
2759           validate properties.
2760
2761 2008-05-07  Jean-Louis Martineau <martineau@zmanda.com>
2762         * man/xml-source/amdevcheck.8.xml: Add an OUTPUT section.
2763
2764 2008-05-07  Jean-Louis Martineau <martineau@zmanda.com>
2765         * common-src/conffile.c: Check the tapetype is defined.
2766
2767 2008-05-07  Jean-Louis Martineau <martineau@zmanda.com>
2768         * device-src/tape-device.c: Allow user to set "read_buffer_size"
2769                                     property.
2770         * restore-src/amrestore.c: Don't limit blocksize to
2771                                    --with-maxtapeblocksize.
2772         * common-src/conffile.c: Increase readblocksize to blocksize.
2773           blocksize and readblocksize can be bigger than
2774           --with-maxtapeblocksize.
2775
2776 2008-05-06  Jean-Louis Martineau <martineau@zmanda.com>
2777         * common-src/conffile.c: Add a 'mailer' config parameter.
2778         * common-src/conffile.h: Add CNF_MAILER.
2779         * changer-src/chg-scsi-chio.c, changer-src/chg-scsi.c
2780           changer-src/chg-manual.sh, application-src/script-email.pl
2781           server-src/amcheck.c server-src/amgetconf.pl
2782           server-src/reporter.c: Use mailer from config.
2783         * perl/Amanda/Config.swg: amglue_add_constant(CNF_MAILER, confparm_key)
2784         * config/amanda/progs.m4: Set DEFAULT_MAILER.
2785         * common-src/amanda-sh-lib.sh.in: Don't set MAILER.
2786         * man/xml-source/amanda-client.conf.5.xml,
2787           man/xml-source/amanda.conf.5.xml,
2788           man/xml-source/amgetconf.8.xml: Update man pages.
2789
2790 2008-05-02 Dan Locks <dwlocks@zmanda.com>
2791         * packaging/rpm/amanda.spec:  Replace ${ with %{ where applicable.
2792  
2793 2008-05-02 Dan Locks <dwlocks@zmanda.com>
2794         *  packaging/deb/amanda-enterprise-backup-server.postinst
2795            packaging/rpm/amanda_enterprise.spec:  Change .am_passphrase to a
2796            semi-random number in both packages. 
2797
2798 2008-04-29  Dustin J. Mitchell <dustin@zmanda.com>
2799         * config/amanda/dirs.m4: note that --with-dumperdir is 
2800           deprecated in ./configure --help
2801
2802
2803 2008-04-24  Jean-Louis Martineau <martineau@zmanda.com>
2804         * restore-src/restore.c: Fix test for DEVICE_STATUS_SUCCESS.
2805
2806 2008-04-28  Dustin J. Mitchell <dustin@zmanda.com>
2807         * xfer-src/Makefile.am xfer-src/xfer-element.h xfer-src/dest-fd.c
2808           xfer-src/source-fd.c perl/Amanda/Xfer.swg: add new
2809           Amanda::Xfer::Source::Fd, Amanda::Xfer::Dest::Fd
2810         * xfer-src/source-random.c xfer-src/xfer.c xfer-src/dest-null.c
2811           xfer-src/xfer.h xfer-src/filter-xor.c xfer-src/xfer-element.c:
2812           reorganize detection of transfer completion, to handle cases where
2813           elements don't do any active processing
2814         * installcheck/Amanda_Xfer.pl: test it all
2815
2816 2008-04-24  Jean-Louis Martineau <martineau@zmanda.com>
2817         * server-src/reporter.c: Correctly print truncated quoted diskname.
2818
2819 2008-04-23  Dustin J. Mitchell <dustin@zmanda.com>
2820         * installcheck/Amanda_MainLoop.pl common-src/event-test.c
2821           common-src/queueing-test.c: try to make tests more resilient
2822           to heavily-loaded, slow machines
2823
2824 2008-04-23  Jean-Louis Martineau <martineau@zmanda.com>
2825         * common-src/security-util.c: Typo.
2826
2827 2008-04-23  Jean-Louis Martineau <martineau@zmanda.com>
2828         * server-src/driver.c: Always sent a FAILED to taper if dumper failed.
2829         * common-src/event.c: Check event is not dead before fire it.
2830
2831 2008-04-23  Jean-Louis Martineau <martineau@zmanda.com>
2832         * server-src/planner.c: Fix vstrextend use.
2833
2834 2008-04-23  Dustin J. Mitchell <dustin@zmanda.com>
2835         * common-src/event.c: use internal child_watch_source
2836           for glib <2.6.0; versions 2.4.0 to 2.6.0 use unreliable
2837           signals and are thus unreliable
2838
2839 2008-04-22  Dustin J. Mitchell <dustin@zmanda.com>
2840         * perl/Amanda/Logfile.swg server-src/find.c server-src/find.h: add
2841           parsing of 'sec' and 'kb' from logfile messages
2842         * perl/Amanda/DB/Catalog.pm perl/Makefile.am: new module
2843         * installcheck/Amanda_DB_Catalog.pl installcheck/Makefile.am: checks
2844           for new module
2845
2846 2008-04-22  Dustin J. Mitchell <dustin@zmanda.com>
2847         * common-src/event.c: on glib <2.4.0, use a simple polling 
2848           child_watch_source; on more recent glib, use glib's own
2849           child_watch_source
2850
2851 2008-04-22  Dustin J. Mitchell <dustin@zmanda.com>
2852         * xfer-src/source-random.c xfer-src/xmsg.c xfer-src/xfer-element.h
2853           xfer-src/xfer-dest.c xfer-src/xfer-test.c xfer-src/xmsg.h
2854           xfer-src/xfer.c xfer-src/xfer-dest.h xfer-src/dest-null.c
2855           xfer-src/xfer.h xfer-src/filter-xor.c xfer-src/xfer-element.c:
2856           - flatten XferElement hierarchy to one level
2857           - change test element argument order
2858           - rename XMsg.src to Xmsg.elt
2859           - Improve memory management (refcounting, perl interface)
2860         * perl/Amanda/Changer.pm perl/Amanda/Xfer.swg
2861           perl/Amanda/MainLoop.swg perl/Makefile.am
2862           perl/amglue/amglue.h perl/amglue/source.c:
2863           - rewrite handling of amglue_Source for better refcounting
2864           - Amanda::MainLoop callbacks get the event source as 1st argument,
2865             and will be called even if the event source goes out of scope in
2866             perl
2867           - MainLoop.swg significantly rewritten to get refcounting right
2868         * installcheck/Amanda_Xfer.pl: new checks (without excessive use of
2869           file descriptors)
2870         * installcheck/Amanda_MainLoop.pl installcheck/Makefile.am: updated
2871            checks
2872
2873 2008-04-22  Jean-Louis Martineau <martineau@zmanda.com>
2874         * device-src/tape-posix.c: Don't return DEVICE_STATUS_VOLUME_MISSING
2875                                    on ioctl error.
2876         * changer-src/chg-lib.sh.in (amdevcheck_status): return 1 only if the
2877                          possible errors are VOLUME_MISSING or DEVICE_BUSY.
2878
2879 2008-04-22  Kevin Zembower <kzembowe@jhuccp.org>
2880         * man/xml-source/amflush.8.xml: add amflush example
2881
2882 2008-04-22  Jean-Louis Martineau <martineau@zmanda.com>
2883         * device-src/tape-device.c: Move all device access from
2884           tape_device_open_device to tape_device_read_label.
2885           tape_device_start read the label if it is not already read.
2886         * device-src/vfs-device.c (vfs_device_open_device): remove read of the
2887                                                             label.
2888
2889 2008-04-22  Jean-Louis Martineau <martineau@zmanda.com>
2890         * device-src/tape-device.c (check_resetofs): Compilation fix if
2891                                                      NEED_RESETOFS is defined.
2892         * device-src/tape-posix.c: Handle no ENOMEDIUM.
2893
2894 2008-04-21  Dan Locks <dwlocks@zmanda.com>
2895         * packaging/deb/buildpkg: modified build script to create unsigned
2896           packages
2897
2898 2008-04-21  Jean-Louis Martineau <martineau@zmanda.com>
2899         * changer-src/chg-lib.sh.in (amdevcheck_status):
2900           Set amdevcheck_message.
2901         * changer-src/chg-chs.sh, changer-src/chg-juke.sh,
2902           changer-src/chg-manual.sh, changer-src/chg-zd-mtx.sh,
2903           changer-src/chg-multi.sh: Output amdevcheck_message
2904         * device-src/device.c: Set errmsg and status.
2905           device_open always return a device, the status and errmsg are set.
2906         * device-src/device.h: Define DeviceStatusFlags.
2907         * device-src/null-device.c, device-src/s3-device.c,
2908           device-src/tape-device.c, device-src/vfs-device.c,
2909           device-src/rait-device.c: Set errmsg and status.
2910         * device-src/tape-posix.c: Return status for VOLUME_MISSING.
2911         * device-src/tape-ops.h: Remove TapeCheckResult.
2912         * server-src/taper-source.h (_TaperSource): Add errmsg.
2913         * server-src/taper-source.c: Set errmsg
2914         * server-src/amcheck.c, server-src/amtape.c, server-src/amlabel.c,
2915           server-src/taperscan.c, restore-src/amrestore.c,
2916           restore-src/restore.c: Use status and errmsg of a device.
2917         * server-src/taper-disk-port-source.c: Set errmsg.
2918         * server-src/reporter.c: Fix parsing of taper PARTIAL line.
2919         * server-src/taper.c: Use errmsg for device and _TaperSource.
2920         * server-src/taper-file-source.c: Set errmsg.
2921         * server-src/amcheckdump.pl,
2922           server-src/amdevcheck.pl: Use status and errmsg from device.
2923         * perl/Amanda/Changer.pm: Fix for DEVICE_STATUS_*.
2924         * perl/Amanda/Device.swg: New interface.
2925         * installcheck/Makefile.am: Don't print some commands.
2926         * installcheck/Amanda_Device.pl: Check new device api.
2927         * common-src/queueing.c: Use new queue_fd_t.
2928         * common-src/queueing.h (queue_fd_t): new struct.
2929         * common-src/amanda-sh-lib.sh.in: Fix bug.
2930         * common-src/queueing-test.c: Use queue_fd_t.
2931
2932 2008-04-21  Dustin J. Mitchell <dustin@zmanda.com>
2933         * installcheck/amgetconf.pl: properly quote filenames in
2934           regex, to avoid spurious failures when e.g., '+' appears
2935           in the filename
2936
2937 2008-04-18  Dustin J. Mitchell <dustin@zmanda.com>
2938         * perl/Amanda/Changer.pm: rewrite Amanda::Changer to use
2939           Amanda::MainLoop, allowing asynchronous operation of 
2940           changers
2941         * server-src/amcheckdump.pl: use new Amanda::Changer 
2942           interface (synchronously, until we have Amanda::Xfer)
2943         * installcheck/Amanda_Changer.pl: test new interface
2944
2945 2008-04-18  Dustin J. Mitchell <dustin@zmanda.com>
2946         * installcheck/Makefile.am: build $(full_tests) too
2947
2948 2008-04-18  Cyrille Bollu <Cyrille.Bollu@fedasil.be>
2949         * client-src/sendsize.c: use --numeric-owner during 'sendsize'
2950
2951 2008-04-17  Dustin J. Mitchell <dustin@zmanda.com>
2952         * installcheck/Makefile.am: segregate installchecks that require
2953           both client and server components
2954
2955 2008-04-17  Dustin J. Mitchell <dustin@zmanda.com>
2956         * common-src/debug.c: add Amanda version to debug logs
2957
2958 2008-04-16  Dustin J. Mitchell <dustin@zmanda.com>
2959         * perl/Amanda/Util.swg common-src/util.c common-src/util.h: add
2960           process type and context process attributes
2961         * perl/Amanda/Debug.swg common-src/debug.c common-src/debug.h: add
2962           debug_init to set up debugging according to the process context, and
2963           log nothing in CONTEXT_SCRIPTUTIL
2964         * server-src/amgetconf.pl server-src/amdevcheck.pl:
2965           CONTEXT_SCRIPTUTIL
2966         * server-src/amcheckdump.pl: use new $CONSTANT_CMDLINE variable
2967         * installcheck/Amanda_Debug.pl: add comment
2968
2969 2008-04-16  Dan Locks <dwlocks@zmanda.com>
2970         * Fixes to debian package reported by daniel_P
2971         * packaging/deb/preinst: remove spaces near ${amanda_group}
2972         * packaging/deb/amanda-backup-server.dirs
2973           packaging/deb/amanda-backup-client.dirs: added var/amanda and
2974           usr/share/lintian/overrides
2975         * packaging/deb/rules: added logic to find PERLSITELIB and append that
2976           to amanda-backup-server.install, removed broken brace expansion
2977         * packaging/deb/buildpkg: removed extraneous configure step
2978         * packaging/deb/amanda-backup-server.postinst: added check for correct
2979           permissions on /tmp/amanda
2980
2981 2008-04-16  Dan Locks <dwlocks@zmanda.com>
2982         * packaging/deb/rules packaging/rpm/amanda.spec: remove --with-gnutar=
2983           from configure invocation.  no longer necessary.
2984
2985 2008-04-16  Dustin J. Mitchell <dustin@zmanda.com>
2986         * device-src/s3.c config/amanda/s3-device.m4: test curl features
2987           at runtime, instead of compile time, and always use SSL if it
2988           is available.
2989
2990 2008-04-16  Jean-Louis Martineau <martineau@zmanda.com>
2991         * server-src/amadmin.c: Improve message.
2992         * man/xml-source/amanda.conf.5.xml: Fix man page.
2993         * server-src/planner.c: Fix DS_INCRONLY and FORCE_FULL.
2994
2995 2008-04-16  Dustin J. Mitchell <dustin@zmanda.com>
2996         * config/amanda/dumpers.m4: continue searching for gnutar if we
2997           find a binary claiming to be gnu tar that is not.  This gets
2998           around serious breakage on Ubuntu, where star is installed as
2999           /bin/gnutar, but /bin/tar is actually GNU Tar.
3000
3001 2008-04-15  Dustin J. Mitchell <dustin@zmanda.com>
3002         * common-src/file.c(mk1dir): fix reversed conditional to handle 
3003           a race condition
3004
3005 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
3006         * common-src/debug.c (debug_logging_handler, debug_printf): Don't print
3007           msg_timestamp() to stderr.
3008
3009 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
3010         * server-src/dumper.c: Call error() only after set_logerror is done.
3011         * server-src/planner.c: Call error() only after set_logerror is done.
3012         * server-src/chunker.c: Report a better error message.
3013         * common-src/stream.c: Set errno to ETIMEDOUT after a timeout.
3014
3015 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
3016         * server-src/find.c (dumps_match_dumpspecs): New function to only keep
3017           dumps that match a dumpspecs, using it simplify amfetchdump.
3018         * server-src/find.h (dumps_match_dumpspecs): Prototype.
3019         * restore-src/amrestore.c: Add a first_restored_file to
3020           search_a_tape(), to allow restore ot stop after the first image.
3021         * restore-src/restore.c: Set first_restored_file, it was never set,
3022           it's needed to stop after the first image.
3023         * restore-src/restore.c (restore_from_tapelist): break if piping to
3024           stdout.
3025         * restore-src/amfetchdump.c: Use dumps_match_dumpspecs.
3026         * restore-src/amfetchdump.c: If -p, the keep only one dump.
3027         * perl/Amanda/Logfile.swg (dumps_match_dumpspecs): New prototype.
3028         * perl/Amanda/Cmdline.swg: cmdline_parse_dumpspecs.
3029         * perl/amglue/dumpspecs.swg: Map dumpspecs to perl.
3030         * perl/Makefile.am (AMGLUE_SWG): Add amglue/dumpspecs.swg.
3031         * installcheck/Amanda_Logfile.pl: Add many tests.
3032
3033 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
3034         * tape-src/tapetype.c: Initialize an default config.
3035
3036 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
3037         * common-src/util.c (connect_portrange, connect_port, bind_portrange):
3038           Return the latest errno reported.
3039
3040 2008-04-08  Dustin J. Mitchell <dustin@zmanda.com>
3041         * common-src/conffile.c common-src/conffile.h 
3042           perl/Amanda/Config.swg installcheck/Amanda_Config.pl:
3043           new interface for config errors, re-introduce rawtapedev for
3044           deprectation purposes
3045         * installcheck/Installcheck/Config.pm: support test
3046           amanda-client.conf files
3047         * installcheck/Installcheck/Run.pm: add get_stdout, get_stderr
3048         * client-src/client_util.c client-src/client_util.h: add
3049           config_errors_to_error_string
3050         * server-src/dumper.c server-src/planner.c: handle ERRORs and NAKs
3051           better, so users see client-side config errors
3052         * oldrecover-src/amrecover.c changer-src/chg-scsi-chio.c
3053           changer-src/chg-scsi.c client-src/sendbackup.c client-src/sendsize.c
3054           client-src/selfcheck.c amandad-src/amandad.c application-src/amstar.c
3055           application-src/amgtar.c recover-src/amrecover.c
3056           server-src/amlogroll.c server-src/amindexd.c server-src/amcheck.c
3057           server-src/amgetconf.pl server-src/chunker.c server-src/amadmin.c
3058           server-src/amtape.c server-src/amcheckdump.pl
3059           server-src/amcleanupdisk.c server-src/amflush.c server-src/amtrmlog.c
3060           server-src/driver.c server-src/reporter.c server-src/taper.c
3061           server-src/amdevcheck.pl server-src/amtrmidx.c server-src/diskfile.c
3062           server-src/amlabel.c installcheck/Amanda_Changer.pl
3063           installcheck/Amanda_Device.pl installcheck/Amanda_Logfile.pl
3064           installcheck/Amanda_Tapelist.pl restore-src/amidxtaped.c
3065           restore-src/amrestore.c restore-src/amfetchdump.c: adapt to new config
3066           error interface
3067
3068 2008-04-08  Dustin J. Mitchell <dustin@zmanda.com>
3069         * server-src/diskfile.c: improve messages when client does not
3070           support required features
3071
3072 2008-04-08  Dustin J. Mitchell <dustin@zmanda.com>
3073         * installcheck/Amanda_Config.pl common-src/conffile.c
3074           common-src/conffile.h: fix deprecation of keywords to
3075           actually issue a warning.  'netusage' is no longer
3076           deprecated.
3077
3078 2008-04-08  Dustin J. Mitchell <dustin@zmanda.com>
3079         * common-src/event.c: use SA_RESTART for child_watch_source
3080
3081 2008-04-07  Dustin J. Mitchell <dustin@zmanda.com>
3082         * perl/Amanda/MainLoop.swg perl/amglue/source.c
3083           installcheck/Amanda_MainLoop.pl: wrap GMainLoop and the 
3084           GSources defined in event.c, using an extensible model
3085         * common-src/event.c: check whether child_watch_source's signal
3086           handler has been replaced, and issue a warning if it has.
3087
3088 2008-04-07  Dustin J. Mitchell <dustin@zmanda.com>
3089         * common-src/queueing.c: fix condition (thanks to Jean-Louis
3090           Martineau)
3091
3092 2008-04-07  Dustin J. Mitchell <dustin@zmanda.com>
3093         * common-src/Makefile.am common-src/queueing-test.c: new tests
3094         * device-src/tests/queue_test.c device-src/tests/Makefile.am: remove
3095         * common-src/queueing.c: fix two bugs:
3096           - spurious in-place memmove on every buffer copy
3097           - silent discard of a final packet if the consumer does not
3098             completely consume it
3099         * common-src/queueing.h: update comments
3100         * common-src/testutils.h: add header-protection macros
3101
3102 2008-04-07  Dustin J. Mitchell <dustin@zmanda.com>
3103         * installcheck/Makefile.am installcheck/Amanda_Device.pl: Add tests
3104           for Amanda::Device
3105
3106 2008-04-07  Dustin J. Mitchell <dustin@zmanda.com>
3107         * man/xml-source/amanda.conf.5.xml: fix typos
3108
3109 2008-04-04  Jean-Louis Martineau <martineau@zmanda.com>
3110         * man/xml-source/*.xml: Use ulink tag to link to wiki.zmanda.com.
3111
3112 2008-04-04  Jean-Louis Martineau <martineau@zmanda.com>
3113         * restore-src/restore.c: Check last_header->type != F_UNKNOWN.
3114
3115 2008-04-01  Dustin J. Mitchell <dustin@zmanda.com>
3116         Suggested by Sunil Sawant <sunil@zmanda.com>
3117         * man/xml-source/amrecover.8.xml: suggest including a config in the
3118           amrecover command line
3119
3120 2008-04-01  John Franks <jfranks@zmanda.com>
3121         * gnulib/regenerate/regenerate gnulib/regenerate/no-restrict.patch:
3122           Patches to reapply after gnulib updates.
3123         * gnulib/inet_ntop.c gnulib/inet_ntop.h gnulib/string.in.h
3124           gnulib/gettimeofday.c gnulib/sys_time.in.h gnulib/base64.c
3125           gnulib/getaddrinfo.c gnulib/Makefile.am gnulib/base64.h
3126           gnulib/getaddrinfo.h:
3127           Remove restricted keywords from source files.
3128
3129 2008-04-01  Satya Ganga <gsat@zmanda.com>
3130         * example/template.d/amanda-S3.conf.in: S3 device should have
3131           "infinite" tape length
3132
3133 2008-03-31  John Franks <jfranks@zmanda.com>
3134         * common-src/stream.c
3135           Fix warning about ininitialized variables.
3136
3137 2008-03-31  John Franks <jfranks@zmanda.com>
3138         * oldrecover-src/Makefile.am xfer-src/Makefile.am
3139           recover-src/Makefile.am server-src/Makefile.am
3140           restore-src/Makefile.am:
3141           Fix build problems with multiply defined symbols.
3142
3143 2008-03-31  Dan Locks <dwlocks@zmanda.com>
3144         * packaging/deb/buildpkg
3145           packaging/rpm/buildpkg: added -p to cp to preserve file timestamps.
3146
3147 2008-03-31  Dustin J. Mitchell <dustin@zmanda.com>, Jean-Louis Martineau <martineau@zmanda.com>
3148         * client-src/sendbackup-gnutar.c client-src/sendsize.c
3149           client-src/selfcheck.c: update amandates whenever possible, but only
3150           complain when it is really needed: when using calcsize, or when
3151           using GNUTAR and --without-gnutar-listdir.
3152         * client-src/amandates.c: Set errno before return of start_amandates
3153         * perl/Amanda/Paths.pm.in: always terminate a perl mod with '1;'
3154
3155 2008-03-31  Jean-Louis Martineau <martineau@zmanda.com>
3156         * server-src/amgetconf.pl: Parse config after setup_applccation call.
3157
3158 2008-03-31  Jean-Louis Martineau <martineau@zmanda.com>
3159         * server-src/amcheck.c: Check errno after full_read.
3160
3161 2008-03-31  Dan Locks <dwlocks@zmanda.com>
3162         * packaging/Makefile.am: add deb subdirectory.
3163
3164 2008-03-31  Dustin J. Mitchell <dustin@zmanda.com>
3165         * common-src/rsh-security.c common-src/ssh-security.c: improve error
3166           messages for resolve_hostname calls
3167
3168 2008-03-27  Dustin J. Mitchell <dustin@zmanda.com>
3169         * common-src/util.c common-src/util.h: remove fullread(), fullwrite()
3170         * gnulib/regenerate/regenerate gnulib/Makefile.am
3171           config/gnulib/gnulib-cache.m4: add full-read, full-write modules
3172         * oldrecover-src/extract_list.c client-src/noop.c
3173           client-src/sendbackup-gnutar.c client-src/sendbackup.c
3174           client-src/sendsize.c client-src/selfcheck.c amandad-src/amandad.c
3175           application-src/amgtar.c recover-src/extract_list.c
3176           server-src/changer.c server-src/logfile.c server-src/amindexd.c
3177           server-src/amcheck.c server-src/dumper.c server-src/chunker.c
3178           server-src/taper-port-source.c server-src/driverio.c
3179           server-src/holding.c server-src/driver.c
3180           server-src/taper-file-source.c restore-src/restore.c
3181           common-src/security-util.c common-src/amanda.h 
3182           tape-src/output-file.c: use gnulib full_read, full_write functions,
3183           which have slightly different error semantics than the corresponding
3184           Amanda functions.
3185
3186 2008-03-27  Jean-Louis Martineau <martineau@zmanda.com>
3187         * application-src/amgtar.c: Add 'CHECK-DEVICE' property.
3188
3189 2008-03-27  Jean-Louis Martineau <martineau@zmanda.com>
3190         * device-src/activate-devpay.c (parse_commandline): Always return.
3191
3192 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
3193         * config/amanda/readline.m4: Don't add READLINE_LIBS to LIBS.
3194         * oldrecover-src/Makefile.am (LDAAD): Add READLINE_LIBS.
3195         * recover-src/Makefile.am (LDAAD): Add READLINE_LIBS.
3196         * config/amanda/swig.m4: AM_CONDITIONAL(WANT_CYGWIN_COPY_PERL_DLL)
3197         * config/amanda/swig.m4: Add library to PERLEXTLIBS on cygwin.
3198         * config/amanda/syshacks.m4: Add '-no-undefined' to AMANDA_ADD_LDFLAGS.
3199         * amandad-src/Makefile.am,
3200         * client-src/Makefile.am, device-src/Makefile.am,
3201           server-src/Makefile.am, server-src/server_util.c,
3202           tape-src/Makefile.am: Add library to many *_LIBADD.
3203         * perl/Makefile.am (install-data-hook): Copy cygwin ddl if
3204           WANT_CYGWIN_COPY_PERL_DLL.
3205
3206 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
3207         * common-src/conffile.c: Fix typo and remove unused prefix.
3208
3209 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
3210         * server-src/reporter.c: Check difference between origsize and outsize
3211           to find if the image is compressed.
3212
3213 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
3214         Greg Troxel reported the bug and possible solution.
3215         * common-src/stream.c (stream_server): New family argument, it is used
3216                                                to create the socket.
3217         * common-src/stream.h (stream_server): New prototype.
3218         * server-src/chunker.c, server-src/taper.c: Call stream_server with
3219           family of 'localhost', it's the name dumper use to contact them.
3220         * restore-src/amidxtaped.c: Call stream_server with AF_INET.
3221         * common-src/bsd-security.c, common-src/security-util.c: Call
3222           stream_server with family of incoming packet.
3223
3224 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
3225         Davor Ocelic reported the problem.
3226         * application-src/Makefile.am: Use applicationexec_PROGRAMS and
3227           applicationexec_SCRIPTS to install executable.
3228
3229 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
3230         * common-src/security-util.c (show_stat_info): Use getpwuid_r
3231                                                        and getgrgid_r.
3232 2008-03-25  Dustin J. Mitchell <dustin@zmanda.com>
3233         * config/amanda/swig.m4: fix the fix to the fix for FreeBSD systems'
3234           peculiar linking of threading libraries.
3235
3236 2008-03-20  Dan Locks <dwlocks@zmanda.com>
3237         * packaging/deb/control: removed grep dependency
3238         * packaging/deb/amanda-backup-client.postinst 
3239           packaging/deb/amanda-backup-server.postinst 
3240           packaging/deb/amanda-backup-server.postrm
3241           packaging/deb/amanda-backup-client.postrm:  removed call to
3242           ldconfig to satisfy lintian
3243         * packaging/deb/amanda-backup-server.lintian
3244           packaging/deb/amanda-backup-client.lintian: sorted and added new
3245           overrides
3246         * packaging/deb/amanda-backup-client.dirs: removed var/amanda
3247
3248 2008-03-18  Dustin J. Mitchell <dustin@zmanda.com>
3249         * device-src/activate-devpay.c: fix type warning
3250
3251 2008-03-17  Jean-Louis Martineau <martineau@zmanda.com>
3252         * server-src/diskfile.c: Correctly check if two hosts map to the same
3253                                  name.
3254
3255 2008-03-15  Dustin J. Mitchell <dustin@zmanda.com>
3256         * perl/Makefile.am perl/amglue/mainloop.c perl/amglue/amglue.h
3257           perl/amglue/source.c: rename mainloop.c to source.c to avoid
3258           conflicts with MainLoop.c on case-insensitive filesystems
3259
3260 2008-03-14  Dan Locks <dwlocks@zmanda.com>
3261         * Initial debian release: This package is based on Bdale Garbee's
3262           work as the official debian maintainer for amanda.
3263
3264 2008-03-14  Jean-Louis Martineau <martineau@zmanda.com>
3265         * man/xml-source/amanda.conf.5.xml: Document global and by dumptype
3266                                             property.
3267         * server-src/server_util.c: Rename _proplist to _property.
3268         * server-src/diskfile.c: Rename _proplist to _property.
3269         * server-src/amadmin.c (disklist_one): Print property.
3270         * perl/Amanda/Config.swg: Add new constants to Amanda::Config
3271         * installcheck/Amanda_Config.pl: Test global property.
3272         * common-src/conffile.c: Add global and by dumptype property.
3273         * common-src/conffile.h: Add global and by dumptype property.
3274
3275 2008-03-14  Dustin J. Mitchell <dustin@zmanda.com>
3276         * perl/Amanda/MainLoop.swg perl/Makefile.am: new perl module
3277         * perl/amglue/amglue.h perl/amglue/mainloop.c: support for new module
3278         * installcheck/Amanda_MainLoop.pl installcheck/Makefile.am: tests for
3279           new module
3280         * common-src/event.h: fix typo in comment
3281
3282 2008-03-14  Dustin J. Mitchell <dustin@zmanda.com>
3283         * xfer-src/dest-null.c: fix Solaris 8 compilation problem: isprint()
3284           expects an int, not a char.
3285
3286 2008-03-13  Dan Locks <dwlocks@zmanda.com>
3287         * packaging/rpm/amanda.spec: changed the PKG_CONFIG_PATH macro so that
3288           it works with rpm versions earlier than 4.4
3289
3290 2008-03-13  Dustin J. Mitchell <dustin@zmanda.com>
3291         * device-src/device-queueing.c device-src/device-queueing.h
3292           server-src/taper-source.c server-src/taper-source.h
3293           server-src/taper-source-test.c server-src/taper.c
3294           common-src/queueing.c common-src/queueing.h: change ints in
3295           consumer/producer to (s)size_t
3296         * device-src/device.c device-src/device-queueing.c
3297           device-src/tests/semaphore-test.c device-src/tests/Makefile.am
3298           device-src/queueing.c device-src/semaphore.c
3299           device-src/device-queueing.h device-src/queueing.h
3300           device-src/Makefile.am device-src/semaphore.h
3301           device-src/property.h server-src/taper.c common-src/queueing.c
3302           common-src/queueing.h common-src/semaphore-test.c
3303           common-src/semaphore.c common-src/semaphore.h
3304           common-src/Makefile.am: move queueing and semaphore into
3305           common-src, along with their tests
3306         * configure.in xfer-src/source-random.c xfer-src/xfer-element.h
3307           xfer-src/xfer-dest.c xfer-src/xfer-test.c xfer-src/xfer.c
3308           xfer-src/xfer-dest.h xfer-src/amxfer.h xfer-src/dest-null.c
3309           xfer-src/Makefile.am xfer-src/xfer.h xfer-src/xfer-element.c
3310           xfer-src/filter-xor.c Makefile.am: introduce transfer architecture
3311         * xfer-src/xmsg.c xfer-src/xfer-element.h xfer-src/xfer-test.c
3312           xfer-src/xmsg.h xfer-src/xfer.c xfer-src/amxfer.h
3313           xfer-src/Makefile.am xfer-src/xfer.h: support for sending
3314           and receiving XMsgs.
3315         * common-src/event.c common-src/event.h: add default_event_loop().
3316         * device-src/device.c server-src/taper-source-test.c common-src/util.c
3317           common-src/util.h common-src/glib-util.c common-src/glib-util.h:
3318           create new glib_init() to do g_type_init(), initialize threads, etc.
3319
3320 2008-03-13  Jean-Louis Martineau <martineau@zmanda.com>
3321         * client-src/sendsize.c: Don't use sscanf for est->qamname because it
3322                                  can have a '%'.
3323         * server-src/diskfile.c: Clean the diskname before using it as a regex.
3324         * common-src/protocol.c: Fix bug if packet have a '%' character.
3325
3326 2008-03-13  Jean-Louis Martineau <martineau@zmanda.com>
3327         * installcheck/Installcheck/Run.pm: Increase size of TAPE.
3328
3329 2008-03-12  Dustin J. Mitchell <dustin@zmanda.com>
3330         * common-src/event.c: Use %jd to print a pid_t, since it may be
3331           larger on some platforms.
3332
3333 2008-03-12  Jean-Louis Martineau <martineau@zmanda.com>
3334         * common-src/conffile.c: Fix solaris 8 cc warning.
3335
3336 2008-03-12  Jean-Louis Martineau <martineau@zmanda.com>
3337         * client-src/sendbackup.c: Set stroptions to "".
3338
3339 2008-03-12  Dustin J. Mitchell <dustin@zmanda.com>
3340         * common-src/event.c common-src/event.h common-src/event-test.c:
3341           add two new GSources: child_watch_source (sends events when a child
3342           dies) and fdsource (sends events when file descriptors match
3343           conditions).  Thanks to Jean-Louis Martineau for finding and fixing
3344           a race condition.
3345
3346 2008-03-12  Dustin J. Mitchell <dustin@zmanda.com>
3347         * gnulib/regenerate/regenerate gnulib/Makefile.am DEVELOPING: update
3348           documentation to reflect use of gnulib's git repository
3349
3350 2008-03-12  Jean-Louis Martineau <martineau@zmanda.com>
3351         * installcheck/Makefile.am: Remove CONFIG_CLOBBER_MY_CONFIG,
3352                                     it is done automaticaly.
3353         * config/amanda/defaults.m4: AC_SUBST(CONFIG_CLOBBER_MY_CONFIG) to not
3354                                      conflict with make CLOBBER_MY_CONFIG.
3355
3356 2008-03-12  Jean-Louis Martineau <martineau@zmanda.com>
3357         * installcheck/Makefile.am: Use CONFIG_CLOBBER_MY_CONFIG for Makefile
3358                                     variable.
3359
3360 2008-03-11  Dan Locks <dwlocks@zmanda.com>
3361         * packaging/rpm/buildpkg: made the script quieter
3362
3363 2008-03-12  Dan Locks <dwlocks@zmanda.com>
3364         * packaging/rpm/amanda.spec: fixed a number of complaints from rpmlint,
3365           added --quiet to the configure invocation
3366
3367 2008-03-10  Jean-Louis Martineau <martineau@zmanda.com>
3368         * gnulib: Update to latest version, add getopt module.
3369
3370 2008-03-07  Jean-Louis Martineau <martineau@zmanda.com>
3371         * oldrecover-src/Makefile.am, example/Makefile.am,
3372           amandad-src/Makefile.am, recover-src/Makefile.am,
3373           restore-src/Makefile.am, Makefile.am: Include config/automake/vars.am.
3374         * installcheck/Amanda_Config.pl: Check config_filename.
3375         * installcheck/Installcheck/Config.pm: Use local amandates and
3376                                                gnutar_listdir.
3377         * installcheck/Makefile.am: Take a copy of amanda-client.conf
3378         * config/amanda/defaults.m4: AC_SUBST(CLOBBER_MY_CONFIG)
3379         * config/automake/scripts.am: DISTCLEANFILES += $(SCRIPTS_INCLUDE)
3380         * config/automake/installperms.am: installperms.sh in top_builddir,
3381                                            DISTCLEANFILES += $(installperms_sh)
3382         * Makefile.am: add '--without-amperldir CLOBBER_MY_CONFIG=OK' to
3383                        DISTCHECK_CONFIGURE_FLAGS.
3384         * common-src/Makefile.am: distclean-local: remove svn-info.h.
3385
3386 2008-03-07  Dan Locks <dwlocks@zmanda.com>
3387         * packaging/rpm/buildpkg:  Simplified usage of packaging script by
3388           creating a tarball from existing source.
3389
3390 2008-03-06  Jean-Louis Martineau <martineau@zmanda.com>
3391         * installcheck/Installcheck/Run.pm: merge from application-api.
3392         * installcheck/Installcheck/Config.pm: merge from application-api.
3393
3394 2008-03-06  Jean-Louis Martineau <martineau@zmanda.com>
3395         * merge application-api
3396
3397 2008-03-06  Jean-Louis Martineau <martineau@zmanda.com>
3398         * common-src/Makefile.am: dest=$(amlibexecdir).
3399
3400 2008-03-06  Jean-Louis Martineau <martineau@zmanda.com>
3401         * changer-src/Makefile.am: Rename SCRIPTSDATA to SCRIPTS_INCLUDE,
3402                                    Add chg-lib.sh.in to EXTRA_DIST.
3403         * dumper-src/Makefile.am: Rename SCRIPTSDATA to SCRIPTS_INCLUDE,
3404                                   Add generic-dumper.pl to EXTRA_DIST.
3405         * common-src/Makefile.am: Add amanda-sh-lib.sh to SCRIPTS_INCLUDE,
3406                                   Add amanda-sh-lib.sh.in to EXTRA_DIST.
3407
3408 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3409         * changer-src/Makefile.am: Move chg-lib.sh to SCRIPTSDATA.
3410         * dumper-src/Makefile.am: Move generic-dumper to SCRIPTSDATA.
3411
3412 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3413         * config/amanda/swig.m4: Check for *freebsd[123456]*
3414
3415 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3416         * changer-src/chg-scsi-chio.c: Compile fix.
3417         * changer-src/scsi-chio.c: Compile fix.
3418         * config/amanda/changer.m4: Check for linux/chio.h
3419
3420 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3421         * packaging/rpm/amanda.spec: Give CFLAGS after ./configure
3422
3423 2008-03-05  Dustin J. Mitchell <dustin@zmanda.com>
3424         * config/amanda/swig.m4: With many thanks to John E. Hein
3425           <jhein@timing.com>, fix the comment and make the change committed
3426           yesterday apply to all FreeBSD < 7.0.
3427
3428 2008-03-05  Dustin J. Mitchell <dustin@zmanda.com>
3429         * config/amanda/summary.m4: quote all warning messages that will be
3430           included in heredocs, to avoid spurious interpretation of backquotes
3431
3432 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3433         * packaging/rpm/amanda.spec: Add %{PERLSITELIB} in %files sections.
3434
3435 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3436         * restore-src/amidxtaped: Use default config if amrecover doesn't send
3437                         a config name.  (amoldrecover doesn't send a config).
3438         * restore-src/restore.c: amrecover from 2.4.5 doesn't send the filenum,
3439           so desired_tape->numfiles == 0.
3440           If amidxtaped is launched directly from xinetd, then
3441           flags->pipe_to_fd == STDOUT_FILENO, but this test should only
3442           succeed for amrestore of amfetchdump.
3443
3444 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3445         * device-src/tape-device.c: Set d_self->is_eof to FALSE.
3446
3447 2008-03-04  Dustin J. Mitchell <dustin@zmanda.com>
3448         * perl/Makefile.am config/amanda/swig.m4: add a special case for
3449           FreeBSD-6.2: include -lpthread in the linking of each perl
3450           extension, because libgthread does not pull in libpthread as
3451           it does on other platforms.
3452
3453 2008-03-03  Jean-Louis Martineau <martineau@zmanda.com>
3454         * common-src/security-util.c: getnameinfo return != 0 on error.
3455
3456 2008-03-03  Jean-Louis Martineau <martineau@zmanda.com>
3457         * config/amanda/dumpers.m4: Typo.
3458
3459 2008-03-03  Jean-Louis Martineau <martineau@zmanda.com>
3460         * device-src/tests/vfs_test.c, common-src/event-test.c: Fix ignoring
3461           return value of 'pipe', declared with attribute warn_unused_result.
3462
3463 2008-02-29  Dustin J. Mitchell <dustin@zmanda.com>
3464         * common-src/amanda.h: add <stdint.h>
3465
3466 2008-02-28  Dustin J. Mitchell <dustin@zmanda.com>
3467         * config/automake/installperms.am: --without-installperms now
3468           generates a shell-parsable list of desired permissions
3469         * Makefile.am: erase installperms.sh before beginning a 'make 
3470           install'
3471         * oldrecover-src/Makefile.am client-src/Makefile.am
3472           recover-src/Makefile.am server-src/Makefile.am: give mode
3473           bits in octal
3474
3475 2008-02-28  Dustin J. Mitchell <dustin@zmanda.com>
3476         Thanks to John E. Hein <jhein@timing.com> for identifying this problem
3477         * perl/Amanda/Tests.swg: expose sizeof(size_t) to perl
3478         * installcheck/Amanda_Config.pl: use a properly-sized constant to
3479           check parsing of large configuration values
3480
3481
3482 2008-02-28  Jean-Louis Martineau <martineau@zmanda.com>
3483         * server-src/amindexd.c: Compute maxpart, call clean_dump.
3484         * server-src/disk_history.h (DUMP_ITEM): Add maxpart field.
3485         * server-src/disk_history.h (add_dump): New prototype,
3486                                                 add maxpart argument.
3487         * server-src/disk_history.c (add_dump): Remove a DUMP_ITEM if the
3488                                         previous part is not already added.
3489         * server-src/disk_history.c (clean_dump): New function to remove
3490                                         DUMP_ITEM if all part are not added.
3491         * common-src/tapelist.h (tapelist_t): Add partnum field.
3492         * common-src/tapelist.h (append_to_tapelist): New prototype,
3493                                                       add partnum argument.
3494         * common-src/tapelist.c (append_to_tapelist): New partnum argument.
3495         * restore-src/amfetchdump.c: Use new append_to_tapelist prototype.
3496
3497 2008-02-28  Jean-Louis Martineau <martineau@zmanda.com>
3498         * common-src/security-util.c: Don't write unclaimed warning if we have
3499                                       an accept function.
3500
3501 2008-02-27  Dustin J. Mitchell <dustin@zmanda.com>
3502         * common-src/testutils.c common-src/testutils.h
3503           common-src/Makefile.am: add libtestutils.la
3504         * common-src/event-test.c common-src/amflock-test.c:
3505           use libtestutils.la
3506
3507 2008-02-27  Jean-Louis Martineau <martineau@zmanda.com>
3508         * server-src/find.c: Use sort_key in switch statement.
3509
3510 2008-02-26  Jean-Louis Martineau <martineau@zmanda.com>
3511         * NEWS, ReleaseNotes: Document --with-amlibdir.
3512         * config/amanda/dirs.m4: Add AS_HELP_STRING for --without-amlibdir and
3513                                  --without-amlibexecdir,
3514                                  Set AMPERLLIB to $amlibdir/perl.
3515
3516 2008-02-26  Dustin J. Mitchell <dustin@zmanda.com>
3517         * common-src/event-test.c: a more robust and effective test of
3518           EV_READFD; thanks to Jean-Louis Martineau for the suggestions.
3519
3520 2008-02-26  Dustin J. Mitchell <dustin@zmanda.com>
3521         * perl/Makefile.am config/amanda/dirs.m4 config/amanda/summary.m4:
3522           add --with-amperldir, --without-amperldir, and install perl modules
3523           in Perl's installsitearch by default; thanks to Orion Poplawski
3524           <orion@cora.nwra.com> for help and suggestions.
3525
3526 2008-02-26  Jean-Louis Martineau <martineau@zmanda.com>
3527         * client-src/getfsent.c: Don't fail if stat of mount point fail.
3528
3529 2008-02-26  Jean-Louis Martineau <martineau@zmanda.com>
3530         * common-src/util.c: Don't log a note if CLIENT_LOGIN == dumpuser for
3531                              RUNNING_AS_DUMPUSER_PREFERRED.
3532
3533 2008-02-25  Jean-Louis Martineau <martineau@zmanda.com>
3534         * server-src/reporter.c: Report size of data on holding disk.
3535
3536 2008-02-20  Jean-Louis Martineau <martineau@zmanda.com>
3537         * config/amanda/dirs.m4: Add --with-amlibdir and --with-amlibexecdir.
3538
3539 2008-02-20  Jean-Louis Martineau <martineau@zmanda.com>
3540         * server-src/amcheck.c, server-src/dumper.c,
3541           server-src/planner.c: Call waitpid to cleanup defunct process.
3542
3543 2008-02-20  Dustin J. Mitchell <dustin@zmanda.com>
3544         * device-src/tape-posix.c: keep ioctl error message in
3545           debug log
3546
3547 2008-02-19  Jean-Louis Martineau <martineau@zmanda.com>
3548         * device-src/device.c, device-src/null-device.c,
3549           device-src/s3.c, device-src/tape-device.c,
3550           device-src/queueing.h, device-src/s3.h,
3551           device-src/vfs-device.c, device-src/rait-device.c,
3552           server-src/taper-source-test.c, server-src/server_util.c,
3553           server-src/taper-disk-port-source.c, perl/Amanda/Device.swg,
3554           perl/amglue/integers.swg, restore-src/restore.c,
3555           common-src/glib-util.c: Fix solaris compiler warning.
3556
3557 2008-02-19  Jean-Louis Martineau <martineau@zmanda.com>
3558         * common-src/util.c (quote_string): Quote single quote (').
3559         * server-src/find.c:Correctly compute length of diskname.
3560
3561 2008-02-15  Dustin J. Mitchell <dustin@zmanda.com>
3562         * configure.in config/amanda/progs.m4 config/amanda/flags.m4:
3563           use AC_PROG_EGREP instead of the Amanda version
3564         * server-src/find.c: fix compiler warning on Solaris 8
3565
3566 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
3567         * packaging/rpm/amanda.spec: Remove amverify*
3568
3569 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
3570         * oldrecover-src/Makefile.am: Build all files in the build directory.
3571         * recover-src/Makefile.am: Build all files in the build directory.
3572         * config/amanda/config.m4: Use $srcdir to buld common-src/svn-info.h
3573         * configure.in: execute AMANDA_GET_SVN_INFO after AC_OUTPUT because
3574           AC_OUTPUT create the common-src directory.
3575
3576 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
3577         * server-src/amadmin.c: Use 'long long' and '%lld' to sscanf.
3578         * file server-src/infofile.c: Use %jd to print intmax_t value.
3579         * file server-src/driver.c: Use 'long long' and '%lld' to sscanf.
3580
3581 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
3582         * packaging/rpm/amanda.spec: Fix typo.
3583
3584 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
3585         * server-src/amdump.sh: Don't use 'date -d', use sed.
3586
3587 2008-02-14  Dustin J. Mitchell <dustin@zmanda.com>
3588         * installcheck/Installcheck/Run.pm: run test dumps of a smaller
3589           directory, to avoid overflowing test tapes
3590
3591 2008-02-14  Dustin J. Mitchell <dustin@zmanda.com>
3592         * dumper-src/amstar.pl dumper-src/amgtar.pl
3593           device-src/tests/get-activation-key.pl server-src/amcheckdump.pl
3594           server-src/amdevcheck.pl: add GPL header
3595
3596 2008-02-14  Dustin J. Mitchell <dustin@zmanda.com>
3597         * installcheck/Makefile.am installcheck/amdump.pl: add a check
3598           that runs 'amdump' directly, since that fails often
3599
3600 2008-02-14  Dustin J. Mitchell <dustin@zmanda.com>
3601         * common-src/event-test.c: make tests more robust to environmental
3602           variations, clean up forked children
3603
3604 2008-02-13  Dustin J. Mitchell <dustin@zmanda.com>
3605         * common-src/security-util.c 
3606           common-src/security-util.h: don't cast pointers to
3607           integers for tcp_conn event id's
3608
3609 2008-02-13  Dan Locks <dwlocks@zmanda.com>
3610         * packaging/rpm/amanda.spec: added a check for PKG_CONFIG_PATH in the
3611           build environment as well as if provided on rpmbuild commandline.
3612           Conditionalized this var to handle cross compiling on FC8.
3613
3614 2008-02-12  Dustin J. Mitchell <dustin@zmanda.com>
3615         * amandad-src/amandad.c: use sizeof() instead of strlen()
3616           in a constant expression
3617
3618 2008-02-12  Dustin J. Mitchell <dustin@zmanda.com>
3619         * amandad-src/amandad.c: initialize as->service
3620         * common-src/event.c common-src/event.h: new GMainLoop-based
3621           version of the event library, allowing GMainLoop-based and 
3622           event-based processes to co-exist peacefully
3623
3624 2008-02-12  Dustin J. Mitchell <dustin@zmanda.com>
3625         * installcheck/amcheckdump.pl: fix typo
3626
3627 2008-02-12  Jean-Louis Martineau <martineau@zmanda.com>
3628         * server-src/dumper.c: Fail if no header or no data.
3629
3630 2008-02-12  Jean-Louis Martineau <martineau@zmanda.com>
3631         * server-src/amstatus.pl: Report failure if dumper succeed and
3632                                   chunker failed.
3633
3634 2008-02-12  Jean-Louis Martineau <martineau@zmanda.com>
3635         * common-src/conffile.h (config_name, config_dir, config_filename):
3636                                  Remove extern declaration.
3637         * common-src/conffile.h (get_config_name, get_config_dir,
3638                                  get_config_filename): New prototype.
3639         * common-src/conffile.c (config_name, config_dir, config_filename):
3640                                  Declare static.
3641         * common-src/conffile.h (get_config_name, get_config_dir,
3642                                  get_config_filename): New functions.
3643         * perl/Amanda/Config.swg: Don't inline the functions.
3644         * oldrecover-src/extract_list.c, client-src/sendbackup.c,
3645           client-src/sendsize.c, client-src/selfcheck.c,
3646           recover-src/amrecover.c, recover-src/extract_list.c,
3647           server-src/changer.c, server-src/amlogroll.c,
3648           server-src/amindexd.c, server-src/amcheck.c,
3649           server-src/dumper.c, server-src/planner.c,
3650           server-src/chunker.c, server-src/amadmin.c,
3651           server-src/amtape.c, server-src/amcleanupdisk.c,
3652           server-src/amflush.c, server-src/amtrmlog.c,
3653           server-src/driverio.c, server-src/driver.c,
3654           server-src/reporter.c, server-src/taper.c,
3655           server-src/amtrmidx.c, server-src/diskfile.c,
3656           server-src/amlabel.c,
3657           restore-src/amfetchdump.c: Use new functions.
3658
3659 2008-02-12  Dustin J. Mitchell <dustin@zmanda.com>
3660         * common-src/event-test.c common-src/Makefile.am: add checks
3661           for the event module
3662
3663 2008-02-12  Dustin J. Mitchell <dustin@zmanda.com>
3664         * server-src/dumper.c server-src/server_util.c
3665           server-src/infofile.c server-src/amtrmlog.c common-src/debug.c
3666           common-src/file.c: Always call mkpdir without the 02000 bit set,
3667           as it is not needed and causes problems on MacOS X.
3668
3669 2008-02-11  Dustin J. Mitchell <dustin@zmanda.com>
3670         * all source files: update GPL dates
3671         * perl/*: use LGPL instead of GPL
3672
3673 2008-02-11  Dustin J. Mitchell <dustin@zmanda.com>
3674         * amandad-src/amandad.c: fix use of non-constant array size
3675
3676 2008-02-11  Dustin J. Mitchell <dustin@zmanda.com>
3677         * amandad-src/amandad.c: add hack to avoid a race condition in
3678           sendbackup operation
3679         * common-src/security-util.c: issue debug log message when data
3680           tokens are dropped by the security API
3681
3682 2008-02-07  Jean-Louis Martineau <martineau@zmanda.com>
3683         * recover-src/amrecover.c: Use tapedev from server if it is not set
3684                                    in amanda.client.conf
3685         * example/amanda-client.conf.in: Document it.
3686
3687 2008-02-07  Jean-Louis Martineau <martineau@zmanda.com>
3688         * device-src/tape-device.c (tape_device_init): Init min_block_size
3689           and fixed_block_size to 32768.
3690
3691 2008-02-07  Dustin J. Mitchell <dustin@zmanda.com>
3692         * packaging/rpm/amanda_enterprise.spec man/Makefile.am
3693           man/xml-source/amverify.8.xml man/xml-source/amverifyrun.8.xml
3694           man/xml-source/amcheckdump.8.xml server-src/amverifyrun.sh
3695           server-src/amverify.sh server-src/Makefile.am: remove amverify*
3696         * server-src/amdevcheck.pl: tweak @ARGV parsing
3697         * server-src/amcheckdump.pl installcheck/Installcheck/Run.pm
3698           installcheck/amcheckdump.pl: significant rewrite to catch more errors
3699           and not loop for ever on some errors.
3700
3701 2008-02-01  Dustin J. Mitchell <dustin@zmanda.com>
3702         * server-src/amgetconf.pl installcheck/amgetconf.pl
3703           common-src/conffile.c: fix and test amgetconf to allow extra
3704           command-line arguments (undocumented), to allow -o options without a
3705           space, and to correctly return empty results for empty build
3706           variables
3707
3708 2008-02-01  Dan Locks <dwlocks@zmanda.com>
3709         * packaging/rpm/amanda.spec: added amdumpcheck.8.gz to the %files list
3710           for both client and server, removed amplot from client, added missing
3711           directory %{SYSCONFDIR}/amanda
3712
3713 2008-01-29  Dan Locks <dwlocks@zmanda.com>
3714         * packaging/rpm/amanda.spec: changed %{SYSCONFDIR} to %{LOCALSTATEDIR}
3715           where amanda/amandates is concerned.  also added %{LOCALSTATEDIR} to
3716           the %files list.
3717
3718 2008-01-29  Dan Locks <dwlocks@zmanda.com>
3719         * man/xml-source/* added http://wiki.zmanda.com to the "see also"
3720           section
3721
3722 2008-01-29  Jean-Louis Martineau <martineau@zmanda.com>
3723         * client-src/sendbackup.c: Check for g_options.
3724         * client-src/sendsize.c: Check for g_options.
3725         * client-src/selfcheck.c: Check for g_options.
3726         * amandad-src/amandad_util.c (free_g_options): Check g_options != NULL.
3727
3728 2008-01-28  Jean-Louis Martineau <martineau@zmanda.com>
3729         * server-src/amstatus.pl: Fix "Use of uninitialized value in string".
3730
3731 2008-01-28  Dustin J. Mitchell <dustin@zmanda.com>
3732         * installcheck/Amanda_Config.pl common-src/conffile.c: uppercase
3733           displayunit, and add a unit test to be sure.
3734
3735 2008-01-28  Jean-Louis Martineau <martineau@zmanda.com>
3736         * server-src/amstatus.pl: handle lowercase displayunit.
3737
3738 2008-01-28  Dustin J. Mitchell <dustin@zmanda.com>
3739         * configure.in config/amanda/ipv6.m4 common-src/amanda.h: check
3740           for netinet/in.h and in_port_t, and define the latter if 
3741           necessary.  Thanks to Craig Dewick <cdewick@lios.apana.org.au>
3742           for the suggestion.
3743
3744 2008-01-28  Paddy Sreenivasan <paddy@zmanda.com>
3745         * man/xml-source/amanda.8.xml: Update amanda(8) to reflect 2.6.0
3746           status
3747
3748 2008-01-28  Jean-Louis Martineau <martineau@zmanda.com>
3749         * amandad-src/amandad.c: Send service stderr to amandad debug file,
3750           Wait for service termination and send error message to server.
3751
3752 2008-01-28  Jean-Louis Martineau <martineau@zmanda.com>
3753         * device-src/device.c: Set PROPERTY_BLOCK_SIZE with a G_TYPE_INT
3754                                Set PROPERTY_READ_BUFFER_SIZE with a G_TYPE_UINT
3755
3756 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3757         * man/Makefile.am man/xml-source/amcheckdump.8.xml: new manpage
3758         * server-src/amcheckdump.pl: fix usage message
3759
3760 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3761         * configure.in config/amanda/userid.m4: add --with-single-userid
3762
3763 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3764         * server-src/amfreetapes.sh: remove unused script
3765
3766 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3767         * perl/amglue/amglue.h perl/amglue/bigint.c: Include integer limits
3768           for all amglue files where they are missing from glib headers
3769
3770 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3771         * installcheck/Makefile.am: condition installchecks on the selected
3772           components
3773
3774 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3775         * installcheck/Makefile.am Makefile.am: distribute
3776           installcheck/Installcheck scripts, make sure enough parameters
3777           are passed along to distcheck for it to succeed, and also clean
3778           up properly after tests are run.
3779
3780 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3781         * config/amanda/dumpers.m4: eliminate strange warning when
3782           --without-smbclient is given
3783
3784 2008-01-18  Dustin J. Mitchell <dustin@zmanda.com>
3785         * server-src/amgetconf.pl perl/Amanda/Constants.pm.in
3786           installcheck/Amanda_Types.pl installcheck/Amanda_Config.pl
3787           installcheck/Amanda_Tapelist.pl installcheck/Amanda_Debug.pl
3788           installcheck/Amanda_Changer.pl installcheck/amdevcheck.pl
3789           installcheck/Installcheck/Config.pm
3790           installcheck/Amanda_Cmdline.pl installcheck/amcheckdump.pl
3791           installcheck/Amanda_Logfile.pl installcheck/amgetconf.pl:
3792           accumulated tweaks and updates to installchecks
3793
3794 2008-01-18  Dustin J. Mitchell <dustin@zmanda.com>
3795         * perl/Amanda/Tests.swg perl/Makefile.am installcheck/bigint.pl
3796           installcheck/Makefile.am: new tests for integer-handling
3797           SWIG support, including an installed module (Amanda::Test) that
3798           is not used except by this test.
3799
3800 2008-01-18  Dustin J. Mitchell <dustin@zmanda.com>
3801         * installcheck/Amanda_Types.pl
3802           installcheck/Amanda_Config.pl installcheck/Amanda_Changer.pl
3803           installcheck/Amconfig.pm.in installcheck/amdevcheck.pl
3804           installcheck/Installcheck installcheck/Installcheck/Run.pm
3805           installcheck/Installcheck/Config.pm installcheck/Makefile.am
3806           installcheck/amcheckdump.pl installcheck/Amanda_Logfile.pl
3807           installcheck/amgetconf.pl: tweaks:
3808            - Move installcheck utilities to the Installcheck::* namespace
3809            - add Installcheck::Run to help with setting up amdump runs, and
3810              running applications in general
3811            - Add complete runs to amdevcheck, amcheckdump
3812            - Return a nonzero exit status from amgetconf when an invalid 
3813              configuration parameter is specified.
3814
3815 2008-01-18  Dustin J. Mitchell <dustin@zmanda.com>
3816         * perl/Amanda/Tapelist.swg perl/Amanda/Tapefile.swg perl/Makefile.am:
3817           new module (Tapelist) replaces old stub (Tapefile)
3818         * installcheck/Amanda_Tapelist.pl installcheck/Makefile.am: test new
3819           module
3820         * server-src/amcheckdump.pl installcheck/Amanda_Logfile.pl: use new
3821           module
3822
3823 2008-01-18  Dustin J. Mitchell <dustin@zmanda.com>
3824         * perl/Makefile.am perl/Amanda/Debug.swg: handle die() and warn() with
3825           critical() and warning(), respectively
3826         * server-src/amgetconf.pl server-src/amcheckdump.pl
3827           server-src/amdevcheck.pl: use die()
3828         * installcheck/Amanda_Config.pl installcheck/Amanda_Changer.pl
3829           installcheck/Amanda_Debug.pl installcheck/Makefile.am: new/updated
3830           unit tests
3831
3832 2008-01-18  Dustin J. Mitchell <dustin@zmanda.com>
3833         * man/xml-source/amgetconf.8.xml server-src/amgetconf.pl
3834           server-src/getconf.c server-src/Makefile.am: rewrite amgetconf in
3835           Perl, and add the ability to list available build variables.
3836         * config/amanda/krb4-security.m4 config/amanda/krb5-security.m4
3837           config/amanda/bsd-security.m4 config/amanda/dumpers.m4
3838           config/amanda/bsdtcp-security.m4 config/amanda/userid.m4
3839           config/amanda/rsh-security.m4 config/amanda/ssh-security.m4
3840           config/amanda/bsdudp-security.m4 config/amanda/compress.m4
3841           config/amanda/debugging.m4 config/amanda/flock.m4: AC_SUBST a bunch
3842           of constants for use in Amanda::Constants
3843         * perl/Makefile.am perl/Amanda/Paths.pm.in
3844           perl/Amanda/Constants.pm.in: add new constants
3845         * perl/Amanda/Config.swg: add getconf_byname_strs
3846         * installcheck/amgetconf.pl: check new functionality
3847         * perl/Amanda/Util.swg common-src/util.c common-src/util.h: add
3848           RUNNING_AS_ANY
3849
3850 2008-01-17  Jean-Louis Martineau <martineau@zmanda.com>
3851         * packaging/rpm/buildpkg, packaging/rpm/amanda.spec,
3852           configure.in: Set for release 2.6.1alpha.
3853
3854 2008-01-16  Dustin J. Mitchell <dustin@zmanda.com>
3855         * installcheck/Makefile.am: Require user to specify
3856           CLOBBER_MY_CONFIG=OK when running installchecks
3857
3858 2008-01-16  Jean-Louis Martineau <martineau@zmanda.com>
3859         * packaging/rpm/amanda.spec: Don't set PKG_CONFIG_PATH.
3860
3861 2008-01-16  Jean-Louis Martineau <martineau@zmanda.com>
3862         * oldrecover-src/extract_list.c, client-src/sendbackup.c,
3863           client-src/sendsize.c, client-src/selfcheck.c,
3864           recover-src/extract_list.c, server-src/changer.c,
3865           server-src/amflush.c, server-src/driverio.c,
3866           common-src/pipespawn.c: Call safe_fd before exec*.
3867
3868 2008-01-15  Jean-Louis Martineau <martineau@zmanda.com>
3869         * packaging/rpm/amanda.spec: Remove build_host.
3870
3871 2008-01-15  Dustin J. Mitchell <dustin@zmanda.com>
3872         * perl/Amanda/Types.swg perl/Amanda/Config.swg perl/Amanda/Device.swg
3873           perl/amglue/integers.swg: fix typos and compiler warnings
3874
3875 2008-01-15  Jean-Louis Martineau <martineau@zmanda.com>
3876         * packaging/Makefile.am: New file.
3877         * packaging/README: New file.
3878         * packaging/rpm/buildpkg: New file.
3879         * packaging/rpm/amanda.spec: New file.
3880         * configure.in
3881         * config/amanda/dirs.m4 (AMANDA_WITH_DUMPERDIR): Give a warning if used.
3882         * config/amanda/dirs.m4 (AMANDA_EXPAND_DIRS): Expand DUMPER_DIR to
3883                                          ${amlibexecdir}/application
3884         * Makefile.am (SUBDIRS): Add packaging.
3885         * amanda.spec: Remove file.
3886
3887 2008-01-15  Jean-Louis Martineau <martineau@zmanda.com>
3888         * device-src/Makefile.am (AM_CFLAGS): Set to $(AMANDA_WARNING_CFLAGS)
3889         * device-src/tape-device.c, device-src/tape-posix.c,
3890           device-src/vfs-device.c: include "util.h"
3891         * device-src/rait-device.c: fix compiler warning.
3892
3893 2008-01-14  Dustin J. Mitchell <dustin@zmanda.com>
3894         * perl/amglue/bigint.c: fix the range-checking mechanics for large
3895           integers, since the precompiler seems to get confused by large
3896           constants.
3897
3898 2008-01-14  Dustin J. Mitchell <dustin@zmanda.com>
3899         * config/amanda/krb5-security.m4: abort configure run if krb5
3900           is requested by libraries aren't found
3901
3902 2008-01-13  Dustin J. Mitchell <dustin@zmanda.com>
3903         * man/xml-source/amanda.conf.5.xml: use &#215; instead of &times;
3904
3905 2008-01-11  Paddy Sreenivasan <paddy@zmanda.com>
3906         * device-src/Makefile.am: Don't install queueing.h and device.h
3907
3908 2008-01-11  Dustin J. Mitchell <dustin@zmanda.com>
3909         * perl/Amanda/Config.swg perl/Amanda/Debug.swg: complete documentation
3910
3911 2008-01-11  Jean-Louis Martineau <martineau@zmanda.com>
3912         * amandad-src/Makefile.am: Install amandad in $libexecdir/amanda
3913         * installcheck/amgetconf.pl: usetimestamps defaults to yes.
3914         * NEWS, ReleaseNotes: Notes about make installcheck.
3915
3916 2008-01-11  Jean-Louis Martineau <martineau@zmanda.com>
3917         * NEWS: Add amcryptsimple, amgpgcrypt, amserverconfig and amaddclient.
3918         * ReleaseNotes: Ditto.
3919
3920 2008-01-11  Jean-Louis Martineau <martineau@zmanda.com>
3921         * ReleaseNotes: Update for amanda-2.6.0
3922         * News: Update for amanda-2.6.0
3923         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0b1")
3924         * Makefile.am (pkgdata_DATA): Add NEWS, ChangeLog and amanda.spec
3925         * amanda.spec: %{!?amanda_version: %define amanda_version 2.6.0b1}
3926
3927 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3928         * common-src/conffile.c (usetimestamps): Default ot yes.
3929         * man/xml-source/amanda.conf.5.xml (usetimestamps): Document it.
3930
3931 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3932         * server-src/amverifyrun.sh, server-src/amverify.sh,
3933           tape-src/ammt.c, tape-src/amdd.c: Write deprecated message.
3934
3935 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3936         * config/amanda/defaults.m4: Set amandates to $localstatedir/amanda/amandate
3937
3938 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3939         * server-src/amfreetapes.sh: Use amlibexecdir.
3940
3941 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3942         * config/amanda/dirs.m4: Set amlibexecdir to $libexecdir/amanda.
3943         * amandad-src/amandad.c, amplot/amplot.sh,
3944           amplot/Makefile.am, changer-src/chg-chs.sh,
3945           changer-src/chg-disk.sh, changer-src/chg-juke.sh,
3946           changer-src/chg-lib.sh.in, changer-src/chg-manual.sh,
3947           changer-src/chg-mcutil.sh, changer-src/chg-mtx.sh,
3948           changer-src/chg-multi.sh, changer-src/chg-null.sh,
3949           changer-src/chg-rait.sh, changer-src/chg-rth.pl,
3950           changer-src/chg-zd-mtx.sh, changer-src/Makefile.am,
3951           client-src/Makefile.am, client-src/patch-system.sh,
3952           client-src/selfcheck.c, client-src/sendbackup-dump.c,
3953           client-src/sendbackup-gnutar.c, client-src/sendsize.c,
3954           common-src/amaespipe.sh, common-src/amanda-sh-lib.sh.in,
3955           common-src/amcrypt-ossl-asym.sh, common-src/amcrypt-ossl.sh,
3956           common-src/amcrypt.sh, common-src/genversion.c,
3957           common-src/local-security.c, common-src/Makefile.am,
3958           common-src/rsh-security.c, common-src/ssh-security.c,
3959           dumper-src/amgtar.pl, example/xinetd.amandaclient,
3960           example/xinetd.amandaserver, installcheck/amgetconf.pl,
3961           perl/Amanda/Changer.pm, perl/Amanda/Paths.pm.in,
3962           restore-src/Makefile.am, server-src/amcheck.c,
3963           server-src/amcheckdb.sh, server-src/amcleanup.sh,
3964           server-src/amdump.sh, server-src/amflush.c,
3965           server-src/amoverview.pl, server-src/amrmtape.sh,
3966           server-src/amverifyrun.sh, server-src/amverify.sh,
3967           server-src/changer.c, server-src/driver.c,
3968           server-src/getconf.c, server-src/Makefile.am,
3969           tape-src/Makefile.am: Use amlibexecdir.
3970
3971 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3972         * config/amanda/flags.m4 (AMANDA_STATIC_FLAGS):
3973           Set AMANDA_STATIC_LDFLAGS to '-static' if set.
3974         * configure.in: Call AMANDA_STATIC_FLAGS.
3975         * amandad-src/Makefile.am, changer-src/Makefile.am,
3976           client-src/Makefile.am, common-src/Makefile.am,
3977           dumper-src/Makefile.am, oldrecover-src/Makefile.am,
3978           recover-src/Makefile.am, restore-src/Makefile.am,
3979           server-src/Makefile.am,
3980           tape-src/Makefile.am(AM_LDFLAGS): Set to AMANDA_STATIC_LDFLAGS.
3981
3982 2008-01-09  Jean-Louis Martineau <martineau@zmanda.com>
3983         * configure.in (AC_CONFIG_FILES): Add example/template.d/amanda-S3.conf
3984         * example/Makefile.am (dist_template_DATA): Add
3985                                                     template.d/amanda-S3.conf
3986
3987 2008-01-09  Jean-Louis Martineau <martineau@zmanda.com>
3988         * changer-src/scsi-solaris.c: Cleanup.
3989
3990 2008-01-09  Ian Turner <ian@zmanda.com>
3991         * changer-src/chg-zd-mtx.sh.in: Don't write a corrupt changerfile
3992           when a tape has no barcode label.
3993
3994 2008-01-08  Dustin J. Mitchell <dustin@zmanda.com>
3995         * server-src/amcheckdump.pl: call critical() rather than
3996           using die().
3997
3998 2008-01-08  Jean-Louis Martineau <martineau@zmanda.com>
3999         * server-src/amcheckdump.pl: Parse 'amflush: starttime' and
4000                                      'planner: timestamp' line.
4001         * server-src/amflush.c: Print correct starttime line.
4002
4003 2008-01-08  Ian Turner <ian@zmanda.com>
4004         Most of this work was done by Dustin J. Mitchell
4005         <dustin@zmanda.com>, with contributions by Ian Turner <ian@zmanda.com>.
4006         * example/template.d/amanda-S3.conf.in: Example configuration
4007           using Amazon S3.
4008         * device-src/device.c: Register the S3 device.
4009         * device-src/tests/get-activation-key.pl: Tool to retrieve 
4010           a DevPay activation key.
4011         * device-src/s3-device.c, device-src/s3-device.h: S3 device driver.
4012         * device-src/s3.c, device-src/s3.h: Network support for S3 driver.
4013         * device-src/property.c, device-src/property.h: Register S3
4014           authentication properties.
4015         * device-src/activate-devpay.c: Tool to convert a devpay 
4016           activation key into user tokens.
4017         * device-src/Makefile.am: Support all these new files.
4018         * configure.in: Check S3 prerequesites.
4019         * config/amanda/s3-device.m4: Check if the S3 device should be
4020           built.
4021         * config/amanda/libs.m4: Code to check for libcurl version and
4022           features.
4023         * common-src/util.c: Use libcurl header.
4024
4025 2008-01-08  Dustin J. Mitchell <dustin@zmanda.com>
4026         * server-src/amcheckdump.pl: call critical() rather than
4027           using die().
4028
4029 2008-01-08  Jean-Louis Martineau <martineau@zmanda.com>
4030         * common-src/local-security.c: New 'local' security driver.
4031         * common-src/security.c (drivers): Add local_security_driver
4032         * common-src/Makefile.am (libamanda_la_SOURCES): Add local-security.c
4033         * man/xml-source/amanda.conf.5.xml,
4034           man/xml-source/amanda-client.conf.5.xml,
4035           example/amanda-client.conf.in,
4036           example/template.d/dumptypes: Document 'local' security driver.
4037
4038 2008-01-08  Dustin J. Mitchell <dustin@zmanda.com>
4039         * server-src/amcheckdump.pl perl/Amanda/Util.swg: don't use
4040           the C safe_fd, which kills the Perl debugger; just check
4041           that fd's 0-2 are open
4042
4043 2008-01-08  Dustin J. Mitchell <dustin@zmanda.com>
4044         * perl/Amanda/Types.swg perl/Makefile.am: add new Amanda::Types module
4045         to contain data structures common to several other modules.
4046         * perl/Amanda/Device.swg: move dumpfile_t to Amanda::Types
4047         * installcheck/Amanda_Types.pl installcheck/Makefile.am: simple tests
4048           for the new module
4049         * common-src/fileheader.c common-src/fileheader.h: build_header
4050           now takes a precise size, not a minimum.
4051
4052 2008-01-08  Jean-Louis Martineau <martineau@zmanda.com>
4053         * recover-src/amrecover.c: Call apply_config_overwrites before
4054                                    config_init(CONFIG_INIT_EXPLICIT_NAME ...)
4055
4056 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
4057         * common-src/util.c (strquotedstr, hexdump): Remove function.
4058         * common-src/util.h (strquotedstr, hexdump): Remove prototype.
4059         * common-src/fileheader.c (strquotedstr, hexdump): Add function.
4060         * common-src/fileheader.c (strquotedstr): Fix.
4061
4062 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
4063         * perl/Amanda/Changer.pm: Use Amanda::Config::get_config_dir().
4064
4065 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
4066         * config/automake/scripts.am: Don't set CHECK_PERL.
4067         * changer-src/Makefile.am: Set CHECK_PERL.
4068         * client-src/Makefile.am: Set CHECK_PERL.
4069         * dumper-src/Makefile.am: Set CHECK_PERL.
4070         * common-src/Makefile.am: Set CHECK_PERL.
4071
4072 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
4073         * common-src/krb5-security.c: Fix argument to resolve_hostname.
4074         * config/amanda/krb4-security.m4: Check .a or .so lib.
4075         * config/amanda/krb5-security.m4: Check .a or .so lib.
4076
4077 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
4078         * device-src/Makefile.am: Merge typo.
4079         * example/Makefile.am: Merge Typo.
4080
4081 2007-12-27  Dustin J. Mitchell <dustin@zmanda.com>
4082         * configure.in config/amanda/printf.m4: remove unused
4083           configure checks
4084
4085 2007-12-27  Paddy Sreenivasan <paddy@zmanda.com>
4086         * server-src/reporter.c: Check for NULL mailto
4087
4088 2007-12-27  Satya Ganga <gsat@zmanda.com>
4089         * server-src/amserverconfig.pl: holding disk will be created
4090           only if we have at least 1G free space in the Amanda home dir
4091
4092 2007-12-27  Ian Turner <ian@zmanda.com>
4093         * server-src/taperscan.c server-src/taper.c: only print error_message
4094           if it is non-NULL
4095
4096 2007-12-27  Dustin J. Mitchell <dustin@zmanda.com>
4097         * server-src/amrmtape.sh: remove @DB_EXT@, which no longer
4098           exists (since 2007-10-09).
4099
4100 2007-12-26  Dustin J. Mitchell <dustin@zmanda.com>
4101         * server-src/amverify.sh: fix multiple non-portable shell
4102           techniques
4103
4104 2007-12-23  Dustin J. Mitchell <dustin@zmanda.com>
4105         Large-scale merge of perl interface to Amanda, along with
4106         a fleet of related changes.  Patch authors are given for
4107         changes not made by Dustin.
4108
4109         * perl/Makefile.am config/amanda/swig.m4: use
4110           ExtUtils::Embed::perl_inc() to get the include directory
4111           and let Amanda's compiler/linker flags and libtool take
4112           care of the rest
4113         * perl/Amanda/Config.swg: use accessors for config_name, 
4114           config_filename, and config_dir 
4115         * server-src/amcheckdump.pl server-src/amdevcheck.pl
4116           perl/Amanda/Util.swg installcheck/Amanda_Config.pl: use
4117           new accessors
4118         * perl/Amanda/Util.swg common-src/amanda.h: use a .-relative
4119           path in two #include directives to avoid accidentally 
4120           including perl's headers of the same name; this is a temporary
4121           hack until a larger-scale overhaul of Amanda's headers is done.
4122         * config/amanda/swig.m4: error out if shared libraries are disabled
4123         * server-src/amcheckdump.pl: Use timestamp from latest
4124           amdump.1 or amflush.1 log file.  (Jean-Louis Martineau
4125           <martineau@zmanda.com>)
4126         * server-src/amcheckdump.pl: Output partnum.  (Jean-Louis
4127           Martineau <martineau@zmanda.com>)
4128         * server-src/amcheckdump.pl: Add a '/' after the config name.
4129         (Jean-Louis Martineau <martineau@zmanda.com>)
4130         * perl/Amanda/Logfile.swg perl/Amanda/Device.swg perl/Makefile.am
4131           perl/amglue/integers.swg perl/amglue/amglue.h
4132           perl/amglue/amglue.swg perl/amglue/glib.swg
4133           perl/amglue/bigint.c: Always use Math::BigInt to convert numeric 
4134           quantities from C to Perl, to avoid integer overflow and automatic
4135           promotion to double.
4136         * perl/Amanda/Debug.swg client-src/versionsuffix.c
4137           common-src/util.c common-src/util.h common-src/debug.c
4138           common-src/debug.h common-src/conffile.c
4139           common-src/conffile.h common-src/file.c common-src/file.h:
4140           - move get_/set_pname to util.c
4141           - rename RunningAsWho to running_as_flags
4142           - cache original cwd before changing it in safe_cd, and use the
4143             cached value in conffile
4144         * server-src/logfile.c: call set_logerror in open_log
4145         * client-src/runtar.c common-src/debug.c common-src/amanda.h
4146           common-src/file.c common-src/file.h: replace client_uid,
4147           client_gid globals with functions, to eliminate the need
4148           for initialization
4149         * server-src/logfile.c: Update warning about globals
4150         * server-src/find.c: Update search_logfile to possibly search
4151           all tapes in a logfile. Also, other miscellaneous
4152           refactoring.  (Ian Turner <ian@zmanda.com>)
4153         * server-src/find.h: Document new interface.
4154         * server-src/amindexd.c, server-src/amadmin.c,
4155           server-src/amtrmidx.c, restore-src/amfetchdump.c: Use new
4156           find_dump interface.
4157         * common-src/util.c, common-src/util.h: New function
4158           compare_possibly_null_strings, which is like strcmp() but
4159           orders NULL pointers before non-null strings.
4160         * Makefile.am: reflect BINARY_OWNER into distcheck-triggered
4161           ./configure
4162         * common-src/conffile.c common-src/conffile.h: completely
4163           new API, almost complete rewrite
4164         * common-src/columnar.c common-src/columnar.h
4165           common-src/Makefile.am: new files, extracted from
4166           conffile.[ch]
4167         * oldrecover-src/amrecover.c oldrecover-src/extract_list.c
4168           changer-src/chg-scsi-chio.c changer-src/chg-scsi.c
4169           client-src/sendbackup.c client-src/sendsize.c
4170           client-src/selfcheck.c amandad-src/amandad.c
4171           device-src/device.c recover-src/amrecover.c
4172           recover-src/extract_list.c server-src/diskfile.h
4173           server-src/logfile.c server-src/amlogroll.c
4174           server-src/amindexd.c server-src/amcheck.c
4175           server-src/dumper.c server-src/planner.c
4176           server-src/chunker.c server-src/amadmin.c
4177           server-src/amtape.c server-src/amcleanupdisk.c
4178           server-src/getconf.c server-src/amflush.c
4179           server-src/amtrmlog.c server-src/driverio.c
4180           server-src/holding.c server-src/driverio.h
4181           server-src/driver.c server-src/reporter.c server-src/taper.c
4182           server-src/find.c server-src/amindex.c server-src/amtrmidx.c
4183           server-src/diskfile.c server-src/amlabel.c
4184           perl/Amanda/Config.swg config/amanda/defaults.m4
4185           restore-src/amidxtaped.c restore-src/amrestore.c
4186           restore-src/restore.c restore-src/amfetchdump.c
4187           common-src/util.h common-src/glib-util.c tape-src/tapeio.c
4188           common-src/amanda.h tape-src/tapeio.h: use new conffile API
4189         * installcheck/Makefile.am installcheck/Amconfig.pm.in
4190           installcheck/Installdirs.pm.in installcheck/Amanda_Config.pl
4191           installcheck/Amanda_Changer.pl installcheck/Amanda_Cmdline.pl
4192           installcheck/Amanda_Logfile.pl installcheck/amcheckdump.pl
4193           installcheck/amdevcheck.pl installcheck/amgetconf.pl:
4194           new unit tests for new modules, applications
4195         * server-src/amdevcheck.pl server-src/amcheckdump.pl: new pure-
4196           Perl applications; amcheckdump.pl is by Ian Turner
4197           <ian@zmanda.com>
4198         * perl/Amanda perl/Makefile.am perl/Amanda/Paths.pm.in
4199           perl/Amanda/Logfile.swg perl/Amanda/Changer.pm
4200           perl/Amanda/Config.swg perl/Amanda/Debug.swg
4201           perl/Amanda/Tapefile.swg perl/Amanda/Cmdline.swg
4202           perl/Amanda/Util.swg perl/Amanda/Device.swg: new directory
4203           containing perl interfaces to Amanda modules
4204         * perl/amglue perl/amglue/integers.swg perl/amglue/amglue.h
4205           perl/amglue/exports.swg perl/amglue/ghashtable.c
4206           perl/amglue/amglue.swg perl/amglue/constants.swg
4207           perl/amglue/glib.swg perl/amglue/bigint.c: functions and
4208           macros to glue Amanda to perl
4209
4210 2007-12-21  Satya Ganga <gsat@zmanda.com>
4211         * server-src/amserverconfig.pl: correct holding disk size
4212           validation logic so that it works on solaris too
4213
4214 2007-12-21  Satya Ganga <gsat@zmanda.com>
4215         * server-src/amserverconfig.pl: amserverconfig needs to create a empty
4216           changer.conf file
4217
4218 2007-12-21  Jean-Louis Martineau <martineau@zmanda.com>
4219         Bug reported by Tim Bunnell.
4220         * client-src/getfsent.c (dev2rdev): Do it only for block device.
4221
4222 2007-12-21  Jean-Louis Martineau <martineau@zmanda.com>
4223         * server-src/taper.c: Unquote holding_disk_file.
4224
4225 2007-12-20  Dustin J. Mitchell <dustin@zmanda.com>
4226         * common-src/debug.h: fix (cosmetic, but confusing) typo
4227
4228 2007-12-19  Jean-Louis Martineau <martineau@zmanda.com>
4229         * common-src/util.c (quote_string): Quote ':'.
4230
4231 2007-12-19  Ian Turner <ian@zmanda.com>
4232         * server-src/taper.c: Don't crash if there is a problem writing a
4233           brand new tape.
4234
4235 2007-12-19  Jean-Louis Martineau <martineau@zmanda.com>
4236         * server-src/planner.c: Correctly set planner_timestamp if
4237                                 usetimestamps is set to no.
4238
4239 2007-12-18  Jean-Louis Martineau <martineau@zmanda.com>
4240         * server-src/driverio.c (childstr): Check dumper->chunker.
4241
4242 2007-12-14  Ian Turner <ian@zmanda.com>
4243         * device-src/tape-device.c: Try to open tape devices as O_NONBLOCK
4244           at first; if the device is not ready, we will let the changer script
4245           retry, instead of having the kernel do it for us.
4246         * device-src/tape-ops.h, device-src/tape-aix.c,
4247           device-src/tape-uware.c, device-src/tape-xenix.c,
4248           device-src/tape-posix.c: Add new tape_is_ready() function.
4249
4250 2007-12-14  Jean-Louis Martineau <martineau@zmanda.com>
4251         * config/amanda/dumpers.m4: Don't set STAR in AMANDA_PROG_SAMBA_CLIENT.
4252
4253 2007-12-14  Jean-Louis Martineau <martineau@zmanda.com>
4254         * server-src/find.c (search_logfile): Parse taper result line before
4255                                               merging part_find.
4256
4257 2007-12-14  Jean-Louis Martineau <martineau@zmanda.com>
4258         * server-src/find.c (find_log): Result should not have duplicate
4259                                         logfile.
4260
4261 2007-12-10  Jean-Louis Martineau <martineau@zmanda.com>
4262         * server-src/amstatus.pl: Parse NEW-TAPE line
4263         * server-src/taper.c: Add the handle in NEW-TAPE result.
4264         * server-src/driver.c: Check number of arguments in NEW-TAPE result.
4265
4266 2007-12-10  Jean-Louis Martineau <martineau@zmanda.com>
4267         * config/amanda/progs.m4: Define AMLINT To 'echo;false' to no lint
4268                                   are found.
4269
4270 2007-12-10  Jean-Louis Martineau <martineau@zmanda.com>
4271         * common-src/bsdudp-security.c: Loop over all address until a bind
4272                                         is successful.
4273         * common-src/bsd-security.c: Loop over all address until a bind
4274                                      is successful.
4275         * common-src/stream.c: Loop over all address until a connect is
4276                                successful.
4277
4278 2007-12-07  Jean-Louis Martineau <martineau@zmanda.com>
4279         * server-src/amindexd.c: Don't use duplicate part.
4280
4281 2007-12-07  Jean-Louis Martineau <martineau@zmanda.com>
4282         * restore-src/amfetchdump.c: Don't use duplicate part.
4283
4284 2007-12-07  Jean-Louis Martineau <martineau@zmanda.com>
4285         * server-src/holding.c (holding_get_all_datestamps): Don't add
4286           duplicate datestamp.
4287
4288 2007-12-07  Jean-Louis Martineau <martineau@zmanda.com>
4289         * server-src/amcheck.c: Don't complain about correct unlabeled
4290                                 volumes.
4291
4292 2007-12-06  Jean-Louis Martineau <martineau@zmanda.com>
4293         * client-src/sendbackup.c, client-src/sendsize.c,
4294           client-src/selfcheck.c, client-src/calcsize.c,
4295           amandad-src/amandad.c, device-src/device.c,
4296           device-src/vfs-device.c, server-src/changer.c,
4297           server-src/dumper.c, server-src/planner.c,
4298           server-src/chunker.c, server-src/server_util.c,
4299           server-src/taperscan.c, server-src/driver.c,
4300           server-src/taper.c, server-src/find.c,
4301           server-src/diskfile.c, common-src/pipespawn.c,
4302           common-src/util.c, common-src/conffile.c: Fix memory leak.
4303
4304 2007-12-06  Jean-Louis Martineau <martineau@zmanda.com>
4305         * server-src/find.c (search_logfile): Parse PARTPARTIAL line.
4306
4307 2007-12-06  Jean-Louis Martineau <martineau@zmanda.com>
4308         * server-src/taper.c: Use g_strdup if pointer can be NULL.
4309
4310 2007-12-05  Jean-Louis Martineau <martineau@zmanda.com>
4311         * server-src/taperscan.c: Don't output the latest changer result.
4312
4313 2007-12-05  Jean-Louis Martineau <martineau@zmanda.com>
4314         * common-src/util.c (resolve_hostname): Take a new socktype argument.
4315         * common-src/util.h (resolve_hostname): New prototype.
4316         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
4317           common-src/bsdudp-security.c, common-src/krb5-security.c,
4318           common-src/rsh-security.c, common-src/security-util.c,
4319           common-src/ssh-security.c, common-src/stream.c,
4320           recover-src/set_commands.c, server-src/amcheck.c,
4321           server-src/dumper.c: Call resolve_hostname with socktype argument.
4322
4323 2007-12-05  Jean-Louis Martineau <martineau@zmanda.com>
4324         * common-src/util.c (resolve_hostname): Don't return V4MAPPED address.
4325         * common-src/amanda.h (AI_V4MAPPED, AI_ALL): Don't define.
4326
4327 2007-12-04  Ian Turner <ian@zmanda.com>
4328         * server-src/taperscan.c, server-src/taperscan.h: Support persistence
4329           between invocations of taper_scan(), so that you can get second-best
4330           and further tapes.
4331         * server-src/amcheck.c, server-src/amtape.c: Use the new taperscan 
4332           interface.
4333         * server-src/taper.c: Do the right thing if there is an error writing
4334           the tape label.
4335
4336 2007-12-04  Jean-Louis Martineau <martineau@zmanda.com>
4337         * server-src/amtape.c: Correctly output the result of taper scan.
4338
4339 2007-12-04  Jean-Louis Martineau <martineau@zmanda.com>
4340         * server-src/amcheck.c, server-src/dumper.c
4341           server-src/planner.c: Don't crash is securoty driver is not found.
4342
4343 2007-12-04  Jean-Louis Martineau <martineau@zmanda.com>
4344         * server-src/changer.c: Print better message if the changer script
4345                                 has no output.
4346
4347 2007-12-03  Jean-Louis Martineau <martineau@zmanda.com>
4348         * man/xml-source/amserverconfig.8.xml: Fix indentation.
4349
4350 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4351         * server-src/taper-mem-port-source.c, server-src/taper-file-source.c
4352           server-src/taper.c: Cast guint64 to uintmax_t and use %ju to print.
4353
4354 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4355         * man/xml-source/amanda.conf.5.xml: Improve documentation.
4356         * example/amanda.conf.in: Ditto.
4357
4358 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4359        * server-src/server_util.c (cmdstr): Remove SPLIT-NEEDNEXT
4360                                             and SPLIT-CONTINUE
4361        * server-src/server_util.h (cmd_t): Remove SPLIT_NEEDNEXT
4362                                            and SPLIT_CONTINUE.
4363        * server-src/taper.c: Send part_kbyte in PARTDONE result.
4364        * server-src/amstatus.pl: Parse part_kbyte in PARTDONE result line.
4365                                  Parse REQUEST-NEW_TAPE line.
4366        * common-src/conffile.h: CONF_FLUSH_THRESHOLD_DUMPED,
4367                                 CONF_FLUSH_THRESHOLD_SCHEDULE, CONF_TAPERFLUSH.
4368        * common-src/conffile.c: CNF_FLUSH_THRESHOLD_DUMPED,
4369                                 CNF_FLUSH_THRESHOLD_SCHEDULE, CNF_TAPERFLUSH.
4370        * server-src/driverio.h: Add Many globals.
4371        * server-src/driver.c: Split runq in runq and directq.
4372                               Implement flush-threshold-*/taperflush.
4373        * example/amanda.conf.in: Example for flush-threshold-* and taperflush.
4374        * man/xml-source/amanda.conf.5.xml: Document flush-threshold-*
4375                                            and taperflush.
4376
4377 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4378         * server-src/taperscan.c: Fix output formating.
4379
4380 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4381         * recover-src/set_commands.c: Add a terminating '/' in cd_regex.
4382                                       Never add it in cd_dir.
4383
4384 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4385         * config/automake/scripts.am: Build of the scripts also depend on
4386                                       $(top_builddir)/config.status
4387
4388 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4389         * server-src/amdump.sh: Pass a --startime argument to planner.
4390         * server-src/planner.c: Get the --starttime command line argument.
4391
4392 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4393         * server-src/amstatus.pl: New --locale-independent-date-format option.
4394         * man/xml-source/amstatus.8.xml: Document it.
4395         * server-src/amflush.c: Output a "starttime-locale-independent" line.
4396         * server-src/amdump.sh: Output a "starttime-locale-independent" line.
4397
4398 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4399         * server-src/find.c: Remove seen_chunk_of function.
4400
4401 2007-11-28  Jean-Louis Martineau <martineau@zmanda.com>
4402         * config/macro-archive/docbook-dtd.m4: Check return code of 5.
4403
4404 2007-11-28  Dustin J. Mitchell <dustin@zmanda.com>
4405         * installcheck/Amconfig.pm.in: fix quoting error leading to
4406         directories named '"'
4407
4408 2007-11-28  Dustin J. Mitchell <dustin@zmanda.com>
4409         * common-src/file.c: only chown new directories when running as root
4410
4411 2007-11-28  Dustin J. Mitchell <dustin@zmanda.com>
4412         * config/automake/installperms.am: strip directory names from build
4413           filenames when setting permissions; fixes errors from examples/
4414           install
4415
4416 2007-11-28  Dustin J. Mitchell <dustin@zmanda.com>
4417         * man/Makefile.am: Allow installs, but not tarballs, without
4418           manpages
4419
4420 2007-11-27  Jean-Louis Martineau <martineau@zmanda.com>
4421         * server-src/planner.c: Check dp->todo before using (est)->dp.
4422
4423 2007-11-27  Jean-Louis Martineau <martineau@zmanda.com>
4424         * device-src/device.c (default_device_start): Overwrite label only
4425                                                       if mode == ACCESS_WRITE.
4426
4427 2007-11-20  Ian Turner <ian@zmanda.com>
4428         * device-src/device.c, device-src/device.h
4429           device-src/tape-device.c, device-src/rait-device.c: Change API
4430           semantics with respect to label reading. This patch makes it
4431           possible to open and read a volume with properties while only
4432           reading its label once. Thanks to Jean-Louis Martineau
4433           <martineau@zmanda.com> for suggesting this change.
4434
4435 2007-11-20  Ian Turner <ian@zmanda.com>
4436         * device-src/vfs-device.c: Be more thourough about updating volume
4437           usage statistics.
4438
4439 2007-11-20  Ian Turner <ian@zmanda.com>
4440         * changer-src/chg-lib.sh.in: Use a more robust check for MT path.
4441         * server-src/amverify.sh.in: Use amrestore instead of amdd/ammt.
4442
4443 2007-11-09  Ian Turner <ian@zmanda.com>
4444         * server-src/taperscan.c: Fix a memory allocation bug and be a little
4445           more paranoid.
4446
4447 2007-11-06  Ian Turner <ian@zmada.com>
4448         * server-src/taperscan.c: Print a proper message if there is
4449           only one flag from device_read_label().
4450
4451 2007-11-26  Dustin J. Mitchell <dustin@zmanda.com>
4452         * configure.in config/amanda/config.m4 common-src/genversion.c
4453           common-src/Makefile.am: explicitly generate svn info at configure
4454           time, rather than relying on svn keywords
4455
4456 2007-11-26  Ian Turner <ian@zmanda.com>
4457         * server-src/Makefile.am: Move amdevcheck from libexec/ to sbin/.
4458           Thanks to Satya Ganga <gsat@zmanda.com> for noticing this problem.
4459         
4460 2007-11-26  John Franks <jrfranks@zmanda.com>
4461         * common-src/debug.c    For cygwin builds: change to
4462           close and reopen log file handle on successful rename.
4463           This is to ensure that Windows has no possibility of
4464           preventing access to the original file name if processes
4465           collide.
4466                 
4467 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
4468         * server-src/amflush.c: Send config option (-o) to child process.
4469
4470 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
4471         * server-src/planner.c: Don't set est(dp)->state before testing it.
4472
4473 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
4474         * config/amanda/readline.m4: Include termcap, curses or ncurese in LIBS.
4475
4476 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
4477         * server-src/diskfile.c (match_disklist): Fix for disk not found.
4478
4479 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
4480         * server-src/driver.c: Don't release taper_ev_read in
4481                                start_degraded_mode.
4482
4483 2007-11-20  Paddy Sreenivasan <paddy@zmanda.com>
4484         * amanda.spec: Added calls to Zmanda
4485         * example/amanda-client.conf.in: Switch to bsdtcp
4486
4487 2007-11-14  Jean-Louis Martineau <martineau@zmanda.com>
4488         * server-src/amstatus.pl: Handle taper FAILED message.
4489
4490 2007-11-14  Jean-Louis Martineau <martineau@zmanda.com>
4491         * config/amanda/userid.m4: Use $enableval in AC_ARG_ENABLE.
4492
4493 2007-11-07  Paddy Sreenivasan <paddy@zmanda.com>
4494         * server-src/amserverconfig.pl server-src/amaddclient.pl: 
4495           new configuration tools
4496         * common-src/amgpgcrypt.pl common-src/amcryptsimple.pl: 
4497           new encryption plugins
4498         * man/xml-source/amaddclient.8.xml man/xml-source/amgpgcrypt.8.xml 
4499           man/xml-source/amcryptsimple.8.xml 
4500           man/xml-source/amserverconfig.8.xml: man pages for new tools
4501         * example/template.d/* - Configuration file templates
4502         * example/amanda-client.conf.in: Updated amanda configuration file
4503         * example/Makefile.am man/Makefile.am server-src/Makefile.am
4504           common-src/Makefile.am: Added amserverconfig, amaddclient, 
4505           amgpgcrypt and amcryptsimple
4506         * device-src/Makefile.am: Fixed libamdevice version
4507         * configure.in: Added template files
4508         * amanda.spec: Updated spec file for new utilities
4509
4510 2007-11-01  Dustin J. Mitchell <dustin@zmanda.com>
4511         * config/automake/installperms.am: new method of specifying
4512           permissions on installed files
4513         * config/amanda/userid.m4 configure.in: add --disable-installperms
4514           to disable any permsisions settings (useful for packaging builds)
4515         * oldrecover-src/Makefile.am example/Makefile.am
4516           changer-src/Makefile.am amplot/Makefile.am
4517           client-src/Makefile.am amandad-src/Makefile.am man/Makefile.am
4518           dumper-src/Makefile.am recover-src/Makefile.am
4519           server-src/Makefile.am restore-src/Makefile.am
4520           Makefile.am support/Makefile.am common-src/Makefile.am
4521           tape-src/Makefile.am: use installperms.am
4522
4523 2007-11-01  Dustin J. Mitchell <dustin@zmanda.com>
4524         Suggested by Jon LaBadie
4525         * config/automake/precompile.am: new rule to make
4526           precompiler output files; useful for debugging
4527         * */Makefile.am: include precompile.am
4528
4529 2007-11-01  Jean-Louis Martineau <martineau@zmanda.com>
4530         * AUTHORS: Add Dustin J. Mitchell.
4531
4532 2007-10-31  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
4533         * most C files, amanda.h: Switch to using the g_printf family, which
4534           supports a consistent set of %-conversions, including the 'z'
4535           (size_t) and 'j' (intmax_t) size specifiers.  Convert various
4536           printf format strings accordingly.
4537
4538 2007-10-31  Dustin J. Mitchell <dustin@zmanda.com>
4539         * common-src/genversion.c common-src/Makefile.am: fix BUILD_REV
4540           and BUILD_BRANCH to work even when packages are built from
4541           distribution tarballs
4542
4543 2007-10-31  Ian Turner <ian@zmanda.com>
4544         * server-src/taperscan.c: Don't segfault if there is an error opening
4545           a device during taperscan.
4546
4547 2007-10-30  Dustin J. Mitchell <dustin@zmanda.com>
4548         * docs autogen INSTALL UPGRADING configure.in 
4549           DEVELOPING Makefile.am: remove docs/ directory in favor of
4550           manpages and online reference; most docs/* were outdated
4551
4552 2007-10-29  Dustin J. Mitchell <dustin@zmanda.com>
4553         * changer-src/chg-zd-mtx.sh: fix typo
4554
4555 2007-10-29  Ian Turner <ian@zmanda.com>
4556         * restore-src/restore.c: Don't mention slot numbers when running
4557           without a changer.
4558
4559 2007-10-29  Ian Turner <ian@zmanda.com>
4560         * man/xml-source/amfetchdump.8.xml: Remove documentation for
4561           amfetchdump -i.
4562
4563 2007-10-26  Dustin J. Mitchell <dustin@zmanda.com>
4564         Add support for post-install tests, which can be more thorough than
4565         unit tests.
4566         * configure.in Makefile.am installcheck/*: new directory
4567         * installcheck/amgetconf.pl: test some of amgetconf's functionality
4568         * docs/developing.txt: notes on various test mechanisms
4569         * config/automake/scripts.am: add CHECK_PERL_FLAGS
4570         * common-src/debug.c: only try to chown debug files if running as root
4571
4572 2007-10-25  Dustin J. Mitchell <dustin@zmanda.com>
4573         * config/mkinstalldirs config/depcomp config/config.guess
4574           config/ltmain.sh config/config.sub config/missing
4575           config/install-sh config/ylwrap: update files with automake-1.10, 
4576           libtool-1.5.24
4577         * autogen: don't call automake with --add-missing, as it stomps all
4578           over the working copy
4579
4580 2007-10-25  Dustin J. Mitchell <dustin@zmanda.com>
4581         * gnulib/* config/*: updated to latest gnulib
4582         * gnulib/regenerate/regenerate: update gnulib date
4583         * gnulib/regenerate/getaddrinfo-cygwin.patch: update to patch new
4584           getaddrinfo.c
4585         * device-src/tests/vfs_test.c: mkdtemp.h no longer exists
4586
4587 2007-10-24  Jean-Louis Martineau <martineau@zmanda.com>
4588         * client-src/Makefile.am: Remove duplicate entry for
4589                                   libamclient_la_SOURCES.
4590
4591 2007-10-23  Dustin J. Mitchell <dustin@zmanda.com>
4592         * config/automake/scripts.am: rules to build (substitute) scripts
4593         * config/automake/vars.am: define empty variables for later appending
4594         * config/automake/check-perl.am config/automake/check-shell.pm:
4595           removed
4596         * changer-src/Makefile.am amplot/Makefile.am client-src/Makefile.am
4597           dumper-src/Makefile.am server-src/Makefile.am 
4598           common-src/Makefile.am: Use new include files
4599         * configure.in: remove now-unnecessary AC_CONFIG_FILES
4600         * *.sh.in *.pl.in *.awk.in: renamed
4601
4602 2007-10-20  Jean-Louis Martineau <martineau@zmanda.com>
4603         * server-src/reporter.c: Always call sort_disks.
4604
4605 2007-10-20  Jean-Louis Martineau <martineau@zmanda.com>
4606         * man/xml-source/amanda.conf.5.xml: Correctly document portrange.
4607         * common-src/conffile.c: Fix portrange.
4608
4609 2007-10-20  Jean-Louis Martineau <martineau@zmanda.com>
4610         * common-src/conffile.c: Allow reserved-udp-port and reserved-tcp-port
4611                                  in amanda-client.conf.
4612
4613 2007-10-17  Dustin J. Mitchell <dustin@zmanda.com>
4614         * common-src/amanda.h: remove amflock cruft
4615
4616 2007-10-16  Dustin J. Mitchell <dustin@zmanda.com>
4617         * config/amanda/defaults.m4: Change EXAMPLE_TAPEDEV to use the 'tape:'
4618         syntax, and to indicate "you need to change this!" more explicitly
4619
4620 2007-10-16  Ian Turner <ian@zmanda.com>
4621         * common-src/glib-util.c: Allow use of units in parsing GValues; in
4622           particular, this allows use of units when specifying device
4623           properties in the configuration file.
4624         * common-src/conffile.c, common-src/conffile.h: Make unit suffixes
4625           available outside of conffile.c.
4626
4627 2007-10-16  Ian Turner <ian@zmanda.com>
4628         * device-src/device.c: Fix a compilation error in
4629           device_set_startup_properties_from_config().
4630
4631 2007-10-16  Ian Turner <ian@zmanda.com>
4632         * man/xml-source/amanda.conf.5.xml, server-src/taper.c,
4633           common-src/conffile.c, common-src/conffile.h: Add new
4634           configuration directive device_output_buffer_size to replace
4635           tapebufs.
4636
4637 2007-10-15  Ian Turner <ian@zmanda.com>
4638         * device-src/device.c: Don't complain about problems setting
4639           MAX_VOLUME_USAGE; do complain about problems setting
4640           READ_BUFFER_SIZE.
4641
4642 2007-10-16  Jean-Louis Martineau <martineau@zmanda.com>
4643         * client-src/sendbackup-gnutar.c: Use GNUTAR.
4644
4645 2007-10-15  Dustin J. Mitchell <dustin@zmanda.com>
4646         * device-src/device.c: do not fall back to tape:/foo if the tape
4647           device is not available (WANT_TAPE_DEVICE is not set)
4648
4649 2007-10-12  Dustin J. Mitchell <dustin@zmanda.com>
4650         * changer-src/chg-mtx.sh.in changer-src/chg-zd-mtx.sh.in
4651           changer-src/chg-multi.sh.in: add missing definition of prefix
4652
4653 2007-10-12  Jean-Louis Martineau <martineau@zmanda.com>
4654         * common-src/protocol.c (s_repwait): return PA_FINISH on P_NAK.
4655
4656 2007-10-11  Dustin J. Mitchell <dustin@zmanda.com>
4657         * config/amanda/tape.m4: fix typo (have_MTIOCTOP -> HAVE_MTIOCTOP)
4658
4659 2007-10-10  Dustin J. Mitchell <dustin@zmanda.com>
4660         * common-src/amflock-test.c common-src/amflock-lnlock.c: don't use
4661           AMANDA_TMPDIR during build-time testing
4662
4663 2007-09-14  Dustin J. Mitchell <dustin@zmanda.com>
4664         * recover-src/uscan.l recover-src/extract_list.c 
4665           recover-src/uparse.y recover-src/amrecover.h 
4666           recover-src/help.c recover-src/set_commands.c: deprecate
4667           'settape', add 'setdevice'
4668         * man/xml-source/amrecover.8.xml: corresponding doc update
4669         * example/amanda.conf.in: update comments in example config, 
4670           change default value of amrecover_changer from the confusing
4671           "/dev/null"
4672
4673 2007-10-09  Dustin J. Mitchell <dustin@zmanda.com>
4674         * common-src/amflock-test.c: lock files in the cwd, rather than /tmp,
4675           and pay attention to errors from unlink()
4676
4677 2007-10-09  Dustin J. Mitchell <dustin@zmanda.com>
4678         * gnulib/regenerate/regenerate gnulib/mkdtemp.c gnulib/mkdtemp.h
4679           gnulib/gettimeofday.c gnulib/sys_time_.h gnulib/tempname.c
4680           gnulib/tempname.h gnulib/stat_.h gnulib/Makefile.am
4681           device-src/tests/vfs_test.c config/gnulib/mkdtemp.m4
4682           config/gnulib/sys_time_h.m4 config/gnulib/tempname.m4
4683           config/gnulib/gnulib-comp.m4 config/gnulib/sys_stat_h.m4
4684           config/gnulib/gnulib-cache.m4 config/gnulib/gettimeofday.m4:
4685           add 'mkdtemp' gnulib module, use it in vfs_test.c
4686
4687 2007-10-09  Jean-Louis Martineau <martineau@zmanda.com>
4688         * common-src/util.c (portable_readdir): Don't use reentrant function.
4689
4690 2007-10-08  Dustin J. Mitchell <dustin@zmanda.com>
4691         * autogen configure.in config/macro-archive/*.m4
4692           config/amanda/*.m4 config/libtool/*.m4: move most autoconf
4693           checks to macros in .m4 files.  Hilights of changes along the way:
4694           - use AC_REQUIRES to enforce check ordering
4695           - Add a post-configure summary of important results
4696           - use AM_CONDITIONAL to control conditional compilation of whole
4697             files, instead of preprocessor macros
4698           - correct spelling of PRINCIPLE -> PRINCIPAL
4699           - remove support for dbmalloc (we use valgrind, coverity, etc. now)
4700           - remove support for infofiles in anything but text format
4701           - change DONT_SUID_ROOT to !WANT_SETUID_ROOT
4702           - remove unused --with-broken-fsf
4703           - remove multiple unused function and header checks, the defines
4704             from which do not appear in any source file
4705           - remove LTLIBOBJS cruft based on
4706             http://www.delorie.com/gnu/docs/autoconf/autoconf_165.html
4707           - remove unused LTALLOCA definition based on
4708             http://www.delorie.com/gnu/docs/libtool/libtool_30.html
4709           - use autoconf macro archive's
4710             AC_DEFINE_DIR to expand $prefix, etc. in directory variables
4711           - do not *require* --with-{user,group}; this allows 'make distcheck'
4712             to run successfully
4713         * docs/developing.txt: describe how to update gnulib, libtool, and
4714           gettext
4715         * po/reautopoint.patch po/reautopoint: script to update gettext,
4716           parallel to gnulib/regenerate/regenerate
4717         * amandad-src/amandad.c changer-src/scsi-aix.c
4718           changer-src/scsi-bsd.c changer-src/scsi-cam.c
4719           changer-src/scsi-changer-driver.c changer-src/scsi-chio.c
4720           changer-src/scsi-hpux.c changer-src/scsi-hpux_new.c
4721           changer-src/scsi-irix.c changer-src/scsi-linux.c
4722           changer-src/scsi-proto.c changer-src/scsi-solaris.c
4723           changer-src/sense.c client-src/calcsize.c client-src/getfsent.c
4724           client-src/selfcheck.c client-src/sendbackup.c
4725           client-src/sendsize.c common-src/alloc.c common-src/amanda.h
4726           common-src/conffile.c common-src/debug.c common-src/file.c
4727           common-src/genversion.c common-src/krb4-security.c
4728           common-src/writev.c device-src/tape-posix.c server-src/amadmin.c
4729           server-src/amcheck.c server-src/amlabel.c server-src/amlogroll.c
4730           server-src/amtape.c server-src/amtrmidx.c server-src/amtrmlog.c
4731           server-src/changer.c server-src/chunker.c server-src/diskfile.c
4732           server-src/driver.c server-src/dumper.c server-src/getconf.c
4733           server-src/infofile.c server-src/infofile.h server-src/planner.c
4734           server-src/reporter.c tape-src/output-tape.c: changes corresponding
4735           to simplifications and fixes in autoconf
4736         * gnulib/regenerate/no-error.patch gnulib/regenerate/regenerate: no
4737           need to create gnulib.m4i anymore
4738
4739 2007-10-08  Kevin Till <ktill@zmanda.com>  (merged by dustin@zmanda.com)
4740         * example/amanda.conf.in: add segate LTO tapetype
4741
4742 2007-10-08  Paddy Sreenivasan <paddy@zmanda.com>
4743         * changer-src/chg-lib.sh.in
4744           changer-src/chg-null.sh.in changer-src/chg-disk.sh.in
4745           changer-src/chg-juke.sh.in changer-src/chg-rait.sh.in
4746           changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in
4747           amplot/amplot.sh.in client-src/patch-system.sh.in
4748           server-src/amcheckdb.sh.in server-src/amverifyrun.sh.in
4749           server-src/amrmtape.sh.in server-src/amverify.sh.in
4750           server-src/amfreetapes.sh.in server-src/amcleanup.sh.in
4751           server-src/amdump.sh.in common-src/amanda-sh-lib.sh.in
4752           common-src/amcrypt-ossl-asym.sh.in common-src/amcrypt.sh.in
4753           common-src/amaespipe.sh.in common-src/Makefile.am
4754           common-src/amcrypt-ossl.sh.in: move amanda-sh-lib.sh from
4755           $libexecdir/amanda to just $libexecdir
4756
4757 2007-10-04  Dustin J. Mitchell <dustin@zmanda.com>
4758         * device-src/tests/Makefile.am device-src/tests/vfs_test.c: add a test
4759           for the vfs device
4760         * device-src/property.c device-src/vfs-device.c: add
4761           PROPERTY_FREE_SPACE
4762
4763 2007-10-04  Dan Locks <dwlocks@zmanda.com>
4764         * amanda.spec: add .spec file Zmanda uses for community builds
4765         
4766 2007-10-04  Dustin J. Mitchell <dustin@zmanda.com>
4767         * device-src/device.c device-src/Makefile.am configure.in: add
4768           WANT_TAPE_DEVICE conditional, for machines that have no tape
4769           support whatsoever (Mac OS X)
4770
4771 2007-10-03  Dan Locks <dwlocks@zmanda.com>
4772         * configure.in: Added /opt/local/bin AC_PATH_PROG(PKG_CONFIG.. for 
4773           mac osx and macports
4774
4775 2007-10-03  Jean-Louis Martineau <martineau@zmanda.com>
4776         * server-src/driver.c: Go in degraded mode after out of tape.
4777
4778 2007-10-02  Jean-Louis Martineau <martineau@zmanda.com>
4779         * man/xml-source/amanda.conf.5.xml: Fix indentation.
4780
4781 2007-10-02  Dustin J. Mitchell <dustin@zmanda.com>
4782         * server-src/amcheck.c: Fix typo in merge found by
4783           martineau@zmanda.com
4784
4785 2007-10-01  Ian Turner <ian@zmanda.com>
4786         * device-src/rait-device.c, device-src/queueing.c,
4787           device-src/tests/device_test.c, device-src/device.h,
4788           device-src/device.c: Remove device_is_eof() function in favor of
4789           accessing is_eof member directly.
4790
4791 2007-10-01  Dustin J. Mitchell <dustin@zmanda.com>
4792         Coverity bug #237
4793         * amandad-src/amandad.c: fix a use-after-free
4794
4795 2007-10-01  Ian Turner <ian@zmanda.com>
4796         * device-src/device.c: Automatically register the CANONICAL_NAME
4797           property for all devices.
4798
4799 2007-10-01  Ian Turner <ian@zmanda.com>
4800         * device-src/tape-posix.c: Use MTEOD on systems that have it but not
4801           MTEOM.
4802
4803 2007-10-01  Ian Turner <ian@zmanda.com>
4804         * device-src/device.c, device-src/vfs-device.c,
4805           device-src/rait-device.c: Use g_strdup() instead of strdup().
4806
4807 2007-10-01  Ian Turner <ian@zmanda.com>
4808         * changer-src/chg-lib.sh.in: Fix some compilation problems on
4809           Solaris 10.
4810
4811 2007-09-25  Dan Locks <dwlocks@zmanda.com>
4812         * common-src/util.c: cast uid_t to long long for printf formatting
4813
4814 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4815         * oldrecover-src/Makefile.am changer-src/Makefile.am
4816           client-src/Makefile.am amandad-src/Makefile.am
4817           recover-src/Makefile.am server-src/Makefile.am
4818           restore-src/Makefile.am common-src/Makefile.am
4819           tape-src/Makefile.am: replace -I../config with 
4820           -I$(top_builddir)/config
4821         * device-src/tests/Makefile.am: Replace -I.. with 
4822           -I$(top_srcdir)/device-src
4823
4824 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4825         * client-src/sendsize.c: change "smbclient" to SAMBA_CLIENT to allow
4826           configurable name
4827
4828 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4829         * common-src/amflock-flock.c common-src/amflock-posix.c
4830           common-src/amflock-lockf.c common-src/amflock-lnlock.c
4831           common-src/amflock.c: use G_GNUC_UNUSED to avoid compiler
4832           warnings
4833
4834 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4835         * common-src/amanda.h common-src/file.h: move declaration of 
4836           canonicalize_pathname to file.h
4837
4838 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4839         * common-src/util.c common-src/util.h: only check euid==uid
4840           if not RUNNING_AS_UID_ONLY; set_root_privs() checks that euid=0
4841         * client-src/runstar.c client-src/noop.c client-src/runtar.c
4842           client-src/sendbackup.c client-src/killpgrp.c
4843           client-src/sendsize.c client-src/selfcheck.c
4844           client-src/rundump.c amandad-src/amandad.c
4845           server-src/amlogroll.c server-src/amindexd.c
4846           server-src/amcheck.c server-src/dumper.c server-src/planner.c
4847           server-src/chunker.c server-src/amadmin.c server-src/amtape.c
4848           server-src/amcleanupdisk.c server-src/amflush.c
4849           server-src/amtrmlog.c server-src/amdevcheck.c
4850           server-src/driver.c server-src/reporter.c server-src/taper.c
4851           server-src/amtrmidx.c server-src/amlabel.c
4852           restore-src/amidxtaped.c restore-src/amfetchdump.c:
4853           remove RUNNING_WITHOUT_SETUID and change RUNNING_AS_SETUID_ROOT
4854           to RUNNING_AS_UID_ONLY (with corresponding checks for root-ness)
4855         * client-src/calcsize.c: drop root privs immediately, and only
4856           regain them for stat() and opendir() operations
4857
4858 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4859         * device-src/property.c device-src/property.h: create VERBOSE property
4860
4861 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4862         * device-src/device.h device-src/queueing.h: expand comments
4863         * tape-src/output-rait.h tape-src/output-null.c 
4864           tape-src/output-null.h tape-src/output-file.c 
4865           tape-src/output-file.h tape-src/output-tape.c 
4866           tape-src/output-tape.h tape-src/output-rait.c: add deprecation
4867           comment
4868
4869 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4870         * changer-src/chg-zd-mtx.sh.in: Don't pass stripped device names back
4871           to Amanda.
4872
4873 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4874         * changer-src/chg-mtx.sh.in, changer-src/chg-manual.sh.in,
4875           changer-src/chg-zd-mtx.sh.in, changer-src/chg-juke.sh.in,
4876           changer-src/chg-chs.sh.in, changer-src/chg-multi.sh.in: Don't use
4877           ammt for anything; use system mt and only for device operations that
4878           require it.
4879         * changer-src/chg-lib.sh.in: Support for above change.
4880
4881 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4882         * device-src/tape-device.c: Fix a border case bug where
4883           tape_device_robust_read() would abort when called with a buffer
4884           exactly equal to the minimum read size.
4885
4886 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4887         * device-src/tape-device.c: Use g_strdup() instead of strdup().
4888
4889 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4890         * device-src/vfs-device.h, device-src/fd-device.c,
4891           device-src/tape-device.c, device-src/Makefile.am,
4892           device-src/fd-device.h, device-src/tape-device.h,
4893           device-src/vfs-device.c: Delete the FdDevice and make TapeDevice
4894           and VfsDevice direct descendants of Device. Also, correct all
4895           reading and writing of volume and part labels for both drivers.
4896         * server-src/amcheck.c: Unlabeled tapes are OK, at least with
4897           label_new_tapes_option.
4898
4899 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4900         * server-src/taperscan.c: Fix the order of arguments to
4901           scan_read_label(). Patch by Dustin J. Mitchell <dustin@zmanda.com>.
4902
4903 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4904         * restore-src/restore.c: Change "no tapedev specified" message.
4905
4906 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4907         * server-src/amtape.c: changer_label should be called only on success.
4908
4909 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4910         * restore-src/restore.c: init cur_tapedev.
4911
4912 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4913         * gnulib/regenerate/regenerate gnulib/* config/gnulib/*: add
4914           gnulib module 'fsusage'
4915         * common-src/statfs-test.c common-src/statfs.c
4916           common-src/statfs.h common-src/Makefile.am: remove old statfs
4917         * client-src/selfcheck.c client-src/calcsize.c
4918           server-src/amcheck.c server-src/driver.c: use fsusage instead of
4919           statfs
4920
4921 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4922         * common-src/alloc.c: Do away with debug_amfree(), which makes invalid
4923           assumptions about the way system malloc() works.
4924         * common-src/amanda.h: Update definition of amtable_free() accordingly.
4925
4926 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4927         * server-src/amadmin.c: Allow 'f' sort order.
4928         * server-src/find.c: Fix parsing of log files.
4929         * server-src/find.h (DEFAULT_SORT_ORDER): Set to "hkdlpbf".
4930
4931 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4932         * server-src/driverio.h (sched_t): Split attempted in dump_attempted
4933                                            and taper_attempted.
4934         * server-src/driver.c: Split attempted in dump_attempted
4935                                and taper_attempted.
4936         * server-src/driver.c (file_taper_result): Retry dump if INPUT-ERROR.
4937
4938 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4939         * server-src/dumper.c (add_msg_data): Remove bogus handling of "
4940                                               in mesg stream.
4941
4942 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4943         * server-src/taper-file-source.c: If there's a problem reading the
4944           holding disk, log the error as we get it from the OS.
4945
4946 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4947         * server-src/taper-source.c, server-src/taper.c: Do the right thing
4948           if the connection to dumper is severed before we recieve a header.
4949
4950 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4951         * server-src/taper-source.c, server-src/taper-source.h,
4952           server-src/taper-source-test.c, server-src/taper-port-source.c,
4953           server-src/taper-port-source.h: Don't have TaperPortSource track
4954           the control FD, and make it responsible for closing the data FD.
4955         * server-src/taper.c: ditto, plus close control socket correctly.
4956
4957 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4958         * server-src/vfs-device.c: Fix a bug where all VFS device volumes
4959           were thought unlabeled. Also do the right thing when there are
4960           extra files in the VFS volume directory.
4961         * server-src/amlabel.c: Fail if there is a problem re-reading the
4962           volume label.
4963
4964 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4965         * device-src/device.c: Set the device name before reading the label.
4966         * device-src/fd-device.c: An invalid header indicates an unlabeled
4967           volume, not a volume error.
4968         * device-src/taper-device.c: Insufficient buffer space causes
4969           ENOMEM, not ENOSPC, at least on Linux.
4970         * server-src/amlabel.c: Correctly handle the case where
4971           device_read_label() returns exactly 1 set bit.
4972
4973 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4974         * server-src/taper-source.c, server-src/taper-disk-port-source.c,
4975           server-src/taper.c: Be careful not to use strings from getcwd()
4976           past the next invocation of getcwd().
4977
4978 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4979         * device-src/vfs-device.c: Use old VFS device specification.
4980
4981 2007-09-25  Ian Turner <ian@zmanad.com> (merged by dustin@zmanda.com)
4982         * server-src/amlabel.c: Don't dump core on successful labeling.
4983
4984 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4985         * device-src/tests/semaphore-test.c device-src/tests/Makefile.am:
4986           test semaphore module
4987         * device-src/semaphore.c: bugfixes, optimizations
4988         * device-src/semaphore.h: inline documentation
4989
4990 2007-09-25  Nikhil Bandiwadekar <nikhil@zmanda.com> (merged by dustin@zmanda.com)
4991         * server-src/driver.c: Added quoting to directory name while logging
4992             in statistics section
4993         * server-src/reporter.c: Handled quoted string for directory name in
4994             statistics section
4995
4996 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4997         * device-src/device.c, device-src/device.h, device-src/s3-device.c,
4998           device-src/fd-device.c, device-src/tape-device.c,
4999           device-src/vfs-device.c, device-src/rait-device.c: Implement new,
5000           more nuanced device_read_label() interface.
5001         * server-src/amcheck.c, server-src/amtape.c, server-src/taperscan.c,
5002           server-src/amlabel.c, restore-src/amrestore.c,
5003           restore-src/restore.c: Use new interface.
5004         * common-src/glib-util.c, common-src/glib-util.h: New Flags->string
5005           interface.
5006         * server-src/amdevcheck.c: New tool to check device/volume status.
5007         * man/xml-source/amdevcheck.8.xml: Document it.
5008         * server-src/Makefile.am: Add amdevcheck
5009         * man/Makefile.am: Add amdevcheck.8
5010
5011 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
5012         * device-src/s3-device.c: adjust glib logging calls to match debug.h's
5013           definitions.
5014         * common-src/debug.c: typo
5015         * common-src/debug.h: add definitions for g_info() and g_debug() if
5016           they are missing
5017
5018 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5019         Thanks to Pavel Pragin <ppragin@zmanda.com> for finding these issues.
5020         * server-src/amtape.c: Update the changer database in 'amtape update'.
5021           Thanks to Dustin J. Mitchell <dustin@zmanda.com> for this fix.
5022         * server-src/taperscan.c: Update the changer database during the
5023           taper scan algorithm.
5024
5025 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5026         Thanks to Jean-Louis Martineau <martineau@zmanda.com> for these fixes:
5027         * server-src/dumper.c: Log packet to debug file.
5028         * server-src/planner.c: Improve quoting.
5029         * server-src/driver.c: Don't call free_serial if we still need it.
5030         * server-src/driver.c: Wait for dumper result if taper fail.
5031         * server-src/amstatus.pl.in: Improve parsing of initial schedule.
5032
5033 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5034         * device-src/tape-device.c: Use the right default block size for
5035           reading.
5036
5037 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
5038         * device-src/vfs-device.c: add forgotten device_add_property() call
5039
5040 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5041         * server-src/taper.c: Remove an erroneous assertion. Thanks to
5042           Jean-Louis Martineau <martineau@zmanda.com> for noticing this issue.
5043
5044 2007-09-25  Patch by Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
5045         * server-src/driverio.h server-src/driver.c: Record
5046           information from first PARTDONE result.  Remove duplicate
5047           update_info_dumper.  Call update_info_taper as needed.
5048
5049 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
5050         * restore-src/restore.c: Don't send text to prompt_out if amidxtaped.
5051
5052 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
5053         * restore-src/amfetchdump.c: Fix a bug where amfetchdump will never
5054                                      try to use the changer.
5055
5056 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5057         * restore-src/amfetchdump.c: Fix a bug where amfetchdump will
5058           still try to use the changer even with the -d parameter.
5059
5060 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
5061         * man/xml-source/amadmin.8.xml server-src/amadmin.c: add an
5062           'outd' column to 'amadmin CONF holding list -l', indicating
5063           an "outdated" dump, and a '-d' option to list only outdated
5064           holding disk files.  Outdated dumps are described in the
5065           amadmin documentation.
5066
5067 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
5068         * client-src/sendsize.c configure.in server-src/getconf.c
5069           restore-src/amrestore.c restore-src/amfetchdump.c
5070           common-src/util.c common-src/genversion.c common-src/util.h
5071           common-src/debug.c common-src/error.c common-src/amanda.h
5072           common-src/Makefile.am:
5073           - support the glib logging infrastructure by feeding messages
5074             into debug logs
5075           - merge the error module into the debug module
5076           - document debug.h with verbose comments
5077           - call g_critical() for error() and g_error() for errordump()
5078           - remove double dgettext() call in debug_printf
5079           - remove --without-debugging (so debugging is always on)
5080           - remove mostly unused debug prefix support
5081           - remove onerror(), replacing its few uses with alternatives
5082
5083 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
5084         * device-src/tests/device_test.c configure.in
5085           recover-src/extract_list.c recover-src/uparse.y
5086           server-src/amlogroll.c server-src/dumper.c server-src/reporter.c
5087           common-src/conffile.c common-src/amanda.h common-src/getcwd.c
5088           common-src/getcwd.h common-src/Makefile.am: Replace calls
5089           to safe_getcwd with calls to g_get_current_dir(), which
5090           has the same signature and semantics.
5091
5092 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5093         * restore-src/restore.c: Fix a bug where amfetchdump would not
5094           restore anything when given the -p option. Thanks to Jean-Louis
5095           Martineau <martineau@zmanda.com> for help in the development of
5096           this patch.
5097
5098 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
5099         * man/xml-source/amanda.conf.5.xml: note that includefile can
5100           take relative paths
5101         * server-src/amcleanupdisk.c: fix local variable shadowing 
5102           config_dir
5103
5104 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
5105         * server-src/holding.c (holding_walk_file): amfree(filename).
5106
5107 2007-09-25  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5108         * man/Makefile.am: fixes for conditional compiles
5109
5110 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5111         * common-src/conffile.c: Clean up some bad warning suppression and
5112           obselete unused code.
5113
5114 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5115         * example/config.site man/xml-source/amanda.conf.5.xml
5116           device-src/device.c device-src/device.h device-src/property.c
5117           device-src/fd-device.c device-src/tape-device.c
5118           device-src/property.h device-src/tape-device.h
5119           device-src/tape-ops.h server-src/amcheck.c server-src/amtape.c
5120           server-src/taperscan.c server-src/taper.c server-src/amlabel.c
5121           restore-src/amrestore.c restore-src/restore.c:
5122           This patch adds a new property READ_BUFFER_SIZE which is used
5123           only by the tape device. The VFS device still uses BLOCK_SIZE
5124           for reading; other devices don't need the property.
5125
5126 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
5127         * server-src/amcheck.c: remove debugging message
5128         * device-src/tape-posix.c: fix compilation
5129           errors when MTCOMPRESSION is not defined
5130
5131 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
5132         * Makefile.am config/Makefile.am config/ax_create_stdint_h.m4i
5133           autogen configure.in: remove AX_CREATE_STDINT_H
5134         * configure.in: add system-specific glib configuration
5135         * changer-src/scsi-cam.c device-src/device.c
5136           device-src/device.h device-src/tests/device_test.c
5137           device-src/rait-device.c server-src/amcheck.c
5138           server-src/taper.c server-src/amlabel.c
5139           restore-src/amrestore.c restore-src/restore.c
5140           common-src/glib-util.c common-src/security-util.c
5141           common-src/amanda.h common-src/krb4-security.c:
5142           replace references to stdint types and defines with glib
5143           equivalents
5144
5145 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5146         * device-src/s3.c, device-src/tape-device.c,
5147           device-src/rait-device.c: Fix a number of compiler warnings, some
5148           legimate, others not. Thanks to Dustin J. Mitchell
5149           <dustin@zmanda.com> and Jean-Louis Martineau <martineau@zmanda.com>
5150           for help identifying warnings that need fixing.
5151
5152 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
5153         * man/xml-source/amcleanup.8.xml server-src/amcleanupdisk.c
5154           server-src/amcleanup.sh.in: add -v option for verbose output
5155         * server-src/holding.c server-src/holding.h: rewrite 
5156           implementation of the holding API to use functors
5157         * server-src/driver.c: modifications to holding API changes
5158
5159 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5160         * device-src/device.c: Suppress a compiler warning.
5161
5162 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5163         * device-src/device.h, device-src/device.c, device-src/fd-device.c,
5164           device-src/tape-device.c, device-src/vfs-device.c,
5165           device-src/rait-device.c: Update the seek_file API skip missing
5166           files. Thanks to Dustin J. Mitchell <dustin@zmanda.com> and
5167           Jean-Louis Martineau <martineau@zmanda.com> for help with this patch.
5168         * restore-src/restore.c: Use the new API.
5169
5170 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5171         * client-src/Makefile.am, device-src/tests/Makefile.am,
5172           device-src/Makefile.am, configure.in, common-src/Makefile.am,
5173           tape-src/Makefile.am: Use AM_CFLAGS and LDFLAGS when
5174           compiling. These changes by Dustin J. Mitchell <dustin@zmanda.com>.
5175         * device-src/device.c, device-src/null-device.c,
5176           device-src/device.c, device-src/queueing.c, device-src/property.c,
5177           device-src/fd-device.c, device-src/s3-device.c,
5178           device-src/semaphore.h, device-src/property.h,
5179           device-src/vfs-device.c: Fix compiler warnings revealed by above
5180           change. Thanks to Jean-Louis Martineau Jean-Louis Martineau
5181           <martineau@zmanda.com> for help with these fixes.
5182
5183 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
5184         * restore-src/restore.c restore-src/restore.h:
5185         Allow NULLs in arguments to dump_match(); make it a static
5186         function.
5187
5188 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
5189         * device-src/device.c device-src/vfs-device.h
5190           device-src/rait-device.h device-src/device.h
5191           device-src/null-device.c device-src/tape-aix.c
5192           device-src/tape-uware.c device-src/null-device.h
5193           device-src/tape-xenix.c device-src/queueing.c
5194           device-src/semaphore.c device-src/property.c
5195           device-src/fd-device.c device-src/tape-device.c 
5196           device-src/queueing.h device-src/semaphore.h
5197           device-src/property.h device-src/tape-posix.c
5198           device-src/fd-device.h device-src/tape-device.h
5199           device-src/vfs-device.c device-src/rait-device.c
5200           device-src/tape-ops.h common-src/glib-util.c
5201           common-src/glib-util.h: restrict to GPLv2
5202
5203 2007-09-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5204         * Correct Cygwin build errors:
5205           common-src/Makefile.am
5206           common-src/amanda.h
5207
5208 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
5209         * server-src/cmdline.c server-src/planner.c server-src/amadmin.c
5210           server-src/amcleanupdisk.c server-src/amflush.c
5211           server-src/holding.c server-src/holding.h server-src/driver.c
5212           server-src/find.c common-src/glib-util.c common-src/glib-util.h:
5213           remove 'verbose' flag, remove holding directories from API (they 
5214           will be gone soon anyway), and rework the holding module to use 
5215           glib data structures
5216
5217 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
5218         * gnulib/regenerate/regenerate gnulib/Makefile.am
5219           device-src/tests/Makefile.am device-src/Makefile.am
5220           server-src/taper-mem-port-source.c server-src/taper.c
5221           config/gnulib/gnulib-comp.m4 config/gnulib/gnulib-cache.m4
5222           config/gnulib.m4i common-src/physmem.c common-src/physmem.h
5223           common-src/amanda.h common-src/base64.c common-src/Makefile.am
5224           common-src/base64.h: move base64, physmem into gnulib and set
5225           device API to include libgnu.
5226
5227 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
5228         * common-src/Makefile.am: remove redundant use of EXTRA_DIST
5229
5230 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
5231         * device-src/device.c device-src/tests/device_test.c
5232           device-src/rait-device.c server-src/amcheck.c
5233           server-src/amtape.c server-src/taperscan.c server-src/taper.c
5234           server-src/amlabel.c restore-src/restore.c: device_open() no
5235           longer free()s the device name it is given.
5236
5237 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
5238         * restore-src/restore.c: fix uninitialized value error
5239
5240 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
5241         * server-src/changer.c server-src/amindexd.c
5242           restore-src/amidxtaped.c common-src/debug.c common-src/amanda.h
5243           common-src/alloc.c: fix support for builds without --with-debugging
5244
5245 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
5246         * device-src/tests/queue_test.c: simplify signal handling to
5247           be more portable
5248
5249 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
5250         * server-src/cmdline.c server-src/cmdline.h:
5251           Optionally parse datestamps and levels
5252         * server-src/amadmin.c: pass flags to cmdline functions
5253         * server-src/find.c restore-src/amidxtaped.c
5254           restore-src/amrestore.c restore-src/restore.c
5255           restore-src/restore.h restore-src/amfetchdump.c:
5256           Use cmdline module in amrestore, amidxtaped, and amfetchdump
5257
5258 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5259         * restore-src/amrestore.c: Fix a segmentation fault that occurs
5260           when the user specifies hostname, diskname, and date. Thanks to
5261           Jean-Louis Martineau <martineau@zmanda.com> for finding and 
5262           fixing this bug.
5263
5264 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5265         * device-src/device.c (device_set_startup_properties_from_config):
5266           Use tapetype parameters as well as device_property directives.
5267         * device-src/device.h: ditto.
5268         * common-src/conffile.c: Use a new macro DEFAULT_TAPE_LENGTH
5269           as default tapetype length.
5270         * common-src/conffile.h: ditto.
5271         * restore-src/amrestore.c: Use new interface to
5272           devic_set_startup_properties_from_config().
5273         * restore-src/restore.c: ditto.
5274         * server-src/amcheck.c: ditto.
5275         * server-src/amlabel.c: ditto.
5276         * server-src/amtape.c: ditto.
5277         * server-src/taper.c: ditto.
5278         * server-src/taperscan.c: ditto.
5279
5280 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5281         * server-src/amcheck.c: Return 0 if everything is good with the
5282           tape. Thanks to Dustin Mitchell <dustin@zmanda.com> for 
5283           reporting this issue, and to Jean-Louis Martineau 
5284           <martineau@zmanda.com> for suggesting the form of the fix.
5285
5286 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5287         * server-src/restore.c: Only restore files matching requested
5288           disknames. Report and patch by Jean-Louis Martineau
5289           <martineau@zmanda.com>.
5290
5291 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5292         * server-src/restore.c: Drop some globals, use data types
5293           responsibly.
5294         
5295 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5296         * server-src/taper.c: Be slightly more rigorous in sanity-checking
5297           the expected number of splits.
5298         * server-src/taper-file-source.c: Correctly predict the number
5299           of splits.
5300         
5301 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5302         * device-src/vfs-device.c: Accept device names without a
5303           terminating '/'.
5304         
5305 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5306         Merge in new Device API. Thanks to Jean-Louis and Dustin for their
5307         code contributions to this patch.
5308
5309 2007-09-20  Dustin J. Mitchell <dustin@zmanda.com>
5310         * oldrecover-src/extract_list.c recover-src/extract_list.c: 
5311           change stralloc2 to newstralloc2 to avoid possible memory
5312           leak (coverity bug #214)
5313
5314 2007-09-17  Jean-Louis Martineau <martineau@zmanda.com>
5315         * client-src/client_util.c: Parse kencrypt in option string.
5316         * client-src/sendbackup.c: Send KENCRYPT keyword in REP packet.
5317         * client-src/client_util.h: Add kencrypt field in option_t.
5318         * amandad-src/amandad.c: Enable kencrypt.
5319         * server-src/dumper.c: Enable kencrypt.
5320         * common-src/security.h (accept): New prototype, add conf_fn and datap.
5321         * common-src/bsdtcp-security.c (bsdtcp_accept): Use new param.
5322         * common-src/ssh-security.c (ssh_connect): Set rh->rc->conf_fn and
5323                                                    rh->rc->datap
5324         * common-src/security-util.c (sec_accept): Set rc->conf_fn and
5325                                                    rc->datap
5326         * common-src/amanda.h (kencrypt_type): New enum.
5327         * common-src/bsdudp-security.c (bsdudp_accept): Use new param.
5328         * common-src/security-util.h (sec_accept): New prototype.
5329         * common-src/krb5-security.c: encryption enabled based on kencrypt.
5330         * common-src/bsd-security.c (bsd_accept):  Use new param.
5331
5332 2007-09-14  Dustin J. Mitchell <dustin@zmanda.com>
5333         * common-src/util.c common-src/util.h: add euid checks to
5334           check_running_as
5335         * client-src/runstar.c client-src/noop.c client-src/runtar.c
5336           client-src/sendbackup.c client-src/killpgrp.c
5337           client-src/sendsize.c client-src/selfcheck.c
5338           client-src/rundump.c client-src/calcsize.c
5339           amandad-src/amandad.c configure.in server-src/amlogroll.c
5340           server-src/amindexd.c server-src/dumper.c server-src/planner.c
5341           server-src/chunker.c server-src/amadmin.c server-src/amtape.c
5342           server-src/amcleanupdisk.c server-src/amflush.c
5343           server-src/amtrmlog.c server-src/amdevcheck.c
5344           server-src/driver.c server-src/reporter.c server-src/taper.c
5345           server-src/amtrmidx.c server-src/amlabel.c
5346           restore-src/amidxtaped.c restore-src/amfetchdump.c: use them
5347         * common-src/krb5-security.c: remove unused variable
5348
5349 2007-09-14  Dustin J. Mitchell <dustin@zmanda.com>
5350         * server-src/getconf.c: Don't check running_as in amgetconf, as
5351           it may not have a configuration file (e.g., for build params)
5352
5353 2007-09-12  Dustin J. Mitchell <dustin@zmanda.com>
5354         Bug identified by Satya Ganga <gsat@zmanda.com>
5355         * common-src/util.c: handle bad call to check_running_as correctly
5356
5357 2007-09-11  Dustin J. Mitchell <dustin@zmanda.com>
5358         Bug reported by Bill Bartlett; patch by Jean-Louis Martineau
5359         <martineau@zmanda.com>
5360         * common-src/statfs.c: fix error in available-space calculations
5361
5362 2007-09-10  Dustin J. Mitchell <dustin@zmanda.com>
5363         * server-src/amcheck.c: quiet compiler warnings when SINGLE_USERID is
5364           defined
5365
5366 2007-09-10  Dustin J. Mitchell <dustin@zmanda.com>
5367         * configure.in: change FORCE_USERID to CHECK_USERID, add SINGLE_USERID
5368           (when all of Amanda runs as the same userid) and WANT_SETUID_CLIENT
5369           (clint binaries should be setuid-root), currently only used on
5370           Cygwin.
5371         * common-src/util.c common-src/util.h: utility functions for userid
5372           checks and manipulations
5373         * oldrecover-src/amrecover.c client-src/runstar.c
5374           client-src/noop.c client-src/runtar.c client-src/sendbackup.c
5375           client-src/killpgrp.c client-src/sendsize.c
5376           client-src/selfcheck.c client-src/rundump.c
5377           client-src/calcsize.c amandad-src/amandad.c
5378           recover-src/amrecover.c server-src/amlogroll.c
5379           server-src/amindexd.c server-src/amcheck.c server-src/dumper.c
5380           server-src/planner.c server-src/chunker.c server-src/amadmin.c
5381           server-src/amtape.c server-src/amcleanupdisk.c
5382           server-src/getconf.c server-src/amflush.c server-src/amtrmlog.c
5383           server-src/amdevcheck.c server-src/driver.c
5384           server-src/reporter.c server-src/taper.c server-src/amdump.sh.in
5385           server-src/amtrmidx.c server-src/amlabel.c common-src/genversion.c 
5386           restore-src/amidxtaped.c restore-src/amfetchdump.c
5387           common-src/bsdtcp-security.c common-src/bsdudp-security.c
5388           common-src/krb5-security.c common-src/krb4-security.c
5389           common-src/bsd-security.c: use utility functions to check userids.
5390
5391 2007-09-07  Dustin J. Mitchell <dustin@zmanda.com>
5392         Change by Paul Bijnens
5393         * man/xml-source/amanda.conf.5.xml: Clarify 'etimeout'
5394
5395 2007-09-07  Dustin J. Mitchell <dustin@zmanda.com>
5396         * gnulib/regenerate/no-error.patch gnulib/Makefile.am: remove
5397           spurious sign-compare warnings from gnulib
5398
5399 2007-09-05  Dustin J. Mitchell <dustin@zmanda.com>
5400         Bug identified downstream in Debian packaging
5401         * changer-src/chg-null.sh.in: fix typo
5402
5403 2007-08-29  Dustin J. Mitchell <dustin@zmanda.com>
5404         * common-src/genversion.c common-src/Makefile.am: add subversion revision 
5405           and branch info to 'amadmin x version'
5406
5407 2007-08-23  Dustin J. Mitchell <dustin@zmanda.com>
5408         sf bug #1775316 reported by joerg <altix@users.sourceforge.net>
5409         * configure.in: use 'sed' instead of shell substitutions to C-quote
5410           ssh arguments
5411
5412 2007-08-22  Dustin J. Mitchell <dustin@zmanda.com>
5413         * common-src/Makefile.am: adjust dependencies so that 'make dist' can
5414           run without a 'make all'
5415
5416 2007-08-20  Dustin J. Mitchell <dustin@zmanda.com>
5417         * client-src/sendbackup-gnutar.c client-src/sendsize.c: use
5418           sanitized, canonicalized, and quoted filenames where necessary
5419         * server-src/driver.c: quote diskname in logfile
5420         * common-src/amanda.h common-src/file.c: Add ':' to the list
5421           of characters sanitised when constructing filenames from
5422           disknames; add canonicalize_pathname()
5423
5424 2007-08-14  Dustin J. Mitchell <dustin@zmanda.com>
5425         * common-src/amanda.h common-src/util.h: move readline headers
5426           out of amanda.h and into util.h, since the corresponding
5427           functions are in util.c
5428         * common-src/util.c: comments
5429         * configure.in: check for both headers and libraries and define
5430           HAVE_READLINE if both are found; add new --with-readline
5431           to require readline and --without-readline to not search
5432           for it at all.
5433         * oldrecover-src/Makefile.am recover-src/Makefile.am: remove explicit
5434           use of READLINE_LIBS
5435
5436 2007-08-09  Dustin J. Mitchell <dustin@zmanda.com>
5437         Patch by C R Ritson <c.r.ritson@newcastle.ac.uk>
5438         * server-src/amverifyrun.sh.in: "lock" the logfile by creating a 
5439           symlink.
5440
5441 2007-08-06  Dustin J. Mitchell <dustin@zmanda.com>
5442         * example/DLT-A4.ps example/Makefile.am: add new template contributed
5443           by Terry Burton <tez@terryburton.co.uk>.
5444
5445 2007-08-01  Dustin J. Mitchell <dustin@zmanda.com>
5446         Patch by Satya Ganga <gsat@zmanda.com>
5447         * server-src/amcleanup.sh.in: shell-compatibility fixes for bash-2.03
5448           (Solaris 8)
5449
5450 2007-07-31  Dustin J. Mitchell <dustin@zmanda.com>
5451         * common-src/statfs-test.c common-src/statfs.c common-src/statfs.h
5452           common-src/Makefile.am: Add a statfs-test to make sure that
5453           statfs works on target systems.
5454
5455 2007-07-27  Ian Turner <ian@zmanda.com>
5456         * restore-src/amfetchdump.c: Check for required arguments in
5457           all cases.
5458
5459 2007-07-27  Dustin J. Mitchell <dustin@zmanda.com>
5460         * config/automake/check-perl.am: new automake fragment to check perl scripts
5461         * config/automake/check-shell.am: new automake fragment to check shell scripts
5462         * configure.in changer-src/Makefile.am client-src/Makefile.am dumper-src/Makefile.am
5463           server-src/Makefile.am common-src/Makefile.am: use new checks
5464         * changer-src/chg-lib.sh.in: add newline for Solaris's 'bash'
5465         * changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in: fix errors found by
5466           new checks
5467
5468 2007-07-26  Ian Turner <ian@zmanda.com>
5469         * restore-src/restore.c: If tpchanger is not defined, then (duh)
5470           don't use the changer. This patch by Jean-Louis Martineau 
5471           <martineau@zmanda.com>.
5472
5473 2007-07-24  Dustin J. Mitchell <dustin@zmanda.com>
5474         * changer-src/chg-lib.sh.in common-src/amanda-sh-lib.sh.in
5475           configure.in common-src/Makefile.am: new general-purpose
5476           shell-script library
5477         * configure.in: check for prog 'gettext'
5478         * changer-src/chg-null.sh.in
5479           changer-src/chg-manual.sh.in changer-src/chg-disk.sh.in
5480           changer-src/chg-juke.sh.in changer-src/chg-rait.sh.in
5481           changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in
5482           amplot/amplot.sh.in client-src/patch-system.sh.in
5483           server-src/amcheckdb.sh.in server-src/amverifyrun.sh.in
5484           server-src/amrmtape.sh.in server-src/amverify.sh.in
5485           server-src/amfreetapes.sh.in server-src/amcleanup.sh.in
5486           server-src/amdump.sh.in common-src/amcrypt-ossl-asym.sh.in
5487           common-src/amcrypt.sh.in common-src/amaespipe.sh.in
5488           common-src/amcrypt-ossl.sh.in: use new library to function
5489           correctly even when gettext is missing.
5490
5491 2007-07-23  Jean-Louis Martineau <martineau@zmanda.com>
5492         * common-src/conffile.c: Set MaxWidth for numerical value
5493         * server-src/reporter.c: Calculate the size if a numerical value.
5494
5495 2007-07-20  Jean-Louis Martineau <martineau@zmanda.com>
5496         Patch by Dimitri Gorokhovik
5497         * changer-src/chg-multi.sh.in: Typo.
5498
5499 2007-07-18  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5500         * changer-src/chg-lib.sh.in, changer-src/chg-zd-mtx.sh.in: Correctly
5501           accept the use of tape:/dev/nst0 notation in chg-zd-mtx.
5502
5503 2007-07-18  Dustin J. Mitchell <dustin@zmanda.com>
5504         * server-src/reporter.c: fix reporting of STRANGE messages
5505
5506 2007-07-16  Dustin J. Mitchell <dustin@zmanda.com>
5507         * changer-src/chg-zd-mtx.sh.in: check for validity of 'mt' and 'mtx'
5508           binaries early, and produce appropriate error messages
5509
5510 2007-07-13  Dustin J. Mitchell <dustin@zmanda.com>
5511         * configure.in: add /usr/sfw/bin to SYSPATH for Solaris 10
5512
5513 2007-07-13  Jean-Louis Martineau <martineau@zmanda.com>
5514         * changer-src/chg-lib.sh.in: Remoce duplicate amdd, add ammt.
5515
5516 2007-07-12  Dustin J. Mitchell <dustin@zmanda.com>
5517         * autogen config/Makefile.am config/ax_compare_version.m4i
5518           Makefile.am: new m4 file
5519         * config/docbook-xslt-min.m4i config/docbook-dtd.m4i
5520           config/docbook-xslt.m4i: major bug fixing
5521
5522 2007-07-11  Dustin J. Mitchell <dustin@zmanda.com>
5523         * recover-src/amrecover.c recover-src/extract_list.c: Add detailed
5524           logging of the amrecover user conversation.
5525
5526 2007-07-11  Jean-Louis Martineau <martineau@zmanda.com>
5527         Patch by Paul Bijnens
5528         * changer-src/chg-multi.sh.in: Typo.
5529
5530 2007-07-10  Dustin J. Mitchell <dustin@zmanda.com>
5531         * configure.in: an empty 'MAILER' is no longer an error, just a
5532           warning
5533         * changer-src/chg-manual.sh.in changer-src/chg-scsi-chio.c
5534           changer-src/chg-scsi.c server-src/amverify.sh.in
5535           server-src/getconf.c common-src/genversion.c: conditionalize
5536           references to MAILER, to handle the situation when it is not
5537           set.
5538
5539 2007-07-09  Dustin J. Mitchell <dustin@zmanda.com>
5540         Documentation patch as suggested by Chris Hoogendyk and Olivier
5541         Nicole.
5542         * man/xml-source/amanda.8.xml: add better documentation about the 
5543           -o command-line option for configuration override.
5544
5545 2007-07-09  Jean-Louis Martineau <martineau@zmanda.com>
5546         * restore-src/restore.c: Don't do superfluous fsf,
5547                                  improve error handling.
5548
5549 2007-07-05  Dustin J. Mitchell <dustin@zmanda.com>
5550         * server-src/amadmin.c: correct misalignment of 'amadmin x balance'
5551           output, as reported by Stefan G. Weichinger <sgw@amanda.org>.
5552
5553 2007-07-03  Dustin J. Mitchell <dustin@zmanda.com>
5554         * common-src/amanda.h common-src/amflock.c: remove unused 
5555           CONFIGURE_TEST conditionals
5556
5557 2007-06-28  Dustin J. Mitchell <dustin@zmanda.com>
5558         * common-src/security-util.c: Change authorization error message to
5559         "Please add the line "HOST USER SERVICE" to AMANDAHOSTS on the client"
5560         as suggested by Paddy Sreenivasan <paddy@zmanda.com>.
5561
5562 2007-06-28  Dustin J. Mitchell <dustin@zmanda.com>
5563         * configure.in common-src/amflock-flock.c
5564           common-src/amflock-posix.c common-src/amanda.h
5565           common-src/amflock-lockf.c common-src/amflock-test.c
5566           common-src/amflock-lnlock.c common-src/amflock.c
5567           common-src/amflock.h common-src/Makefile.am:
5568           refactor file locking support into multiple implementations,
5569           only test for availability (not functionality) at configure
5570           time, and add a 'make check' test script.  Fixes a bug reported
5571           by Paul Crittenden.  Chris Hoogendyk, Jon LaBadie, and Jean-Louis
5572           Martineau helped track it down.
5573
5574 2007-06-27  Dustin J. Mitchell <dustin@zmanda.com>
5575         * autogen config/ax_create_stdint_h.m4i config/acinclude.m4i
5576           Makefile.am: use updated version of ax_create_stdint_h.m4
5577           from http://autoconf-archive.cryp.to/ax_create_stdint_h.html.
5578           Original by Guido U. Draheim <guidod@gmx.de>, patched locally
5579           to avoid spurious "command not found" on Solaris 10.
5580         * config/Makefile.am: add ax_create_stdint_h.m4i
5581
5582 2007-06-25  Dustin J. Mitchell <dustin@zmanda.com>
5583         * server-src/cmdline.c server-src/cmdline.h server-src/taperscan.c
5584           server-src/taperscan.h config/docbook-dtd.m4i
5585           config/docbook-xslt-min.m4i config/docbook-xslt.m4i
5586           config/xsltproc.m4i common-src/sockaddr-util.c
5587           common-src/sockaddr-util.h common-src/amaespipe.sh.in:
5588           restrict to GPLv2
5589
5590 2007-06-25  Dustin J. Mitchell <dustin@zmanda.com>
5591         * client-src/sendbackup.c client-src/killpgrp.c
5592           client-src/sendsize.c client-src/selfcheck.c
5593           server-src/amcheck.c server-src/reporter.c common-src/util.c
5594           common-src/util.h common-src/security-util.c: add str_exit_status()
5595           to interpret the status resulting from wait(), use it throughout
5596           the codebase.
5597
5598 2007-06-20  Dustin J. Mitchell <dustin@zmanda.com>
5599         * server-src/planner.c common-src/bsdudp-security.c
5600           common-src/krb5-security.c common-src/bsd-security.c:
5601           remove dead/unused code
5602
5603 2007-06-20  Dustin J. Mitchell <dustin@zmanda.com>
5604         * client-src/sendsize.c: call dbfn(), not debug_fn()
5605         * common-src/amanda.h: make dbfn() return a meaningful string
5606           when debugging is disabled
5607
5608 2007-06-19  Dustin J. Mitchell <dustin@zmanda.com>
5609         * tape-src/tapetype.c: close and re-open tape after rewind
5610           (patch from Franz Fischer <amanda@franz-fischer.de>, modified
5611           by Jean-Louis Martineau <martineau@zmanda.com>)
5612
5613 2007-06-06  Jean-Louis Martineau <martineau@zmanda.com>
5614         * restore-src/restore.c: accept all header with size >= DISK_BLOCK_BYTES
5615
5616 2007-06-18  Jean-Louis Martineau <martineau@zmanda.com>
5617         * server-src/amstatus.pl.in: Set and use chunk_time.
5618
5619 2007-06-07  Dustin J. Mitchell <dustin@zmanda.com>
5620         * server-src/amcleanupdisk.c: don't try to clean up holding disks
5621           if they are empty.
5622
5623 2007-06-06  Dustin J. Mitchell <dustin@zmanda.com>
5624         * client-src/sendbackup.c: remove bogus check for unknown program
5625
5626 2007-06-07  Jean-Louis Martineau <martineau@zmanda.com>
5627         Christopher McCrory found the cause of the problem.
5628         * server-src/find.c: Send ouput to stderr.
5629
5630 2007-06-07  Jean-Louis Martineau <martineau@zmanda.com>
5631         * configure.in: detect GNU tar's 'backup' and ignore it.  Thanks
5632           to Jeanna Geier <jeanna@webteam.net> for spotting this.
5633
5634 2007-06-05  Jean-Louis Martineau <martineau@zmanda.com>
5635         * common-src/util.c: Don't use -w flags for od execution.
5636
5637 2007-06-05  Dustin J. Mitchell <dustin@zmanda.com>
5638         * client-src/selfcheck.c: fix formatting typo
5639         * common-src/security.h: fix prototypes in comments
5640         * common-src/security-util.c common-src/util.c: fix 
5641           vstralloc errors
5642         * common-src/debug.c common-src/amanda.h: remove 
5643           debug_prefix_time
5644         * changer-src/scsi-linux.c changer-src/chg-scsi-chio.c
5645           changer-src/scsi-cam.c client-src/calcsize.c
5646           recover-src/amrecover.c server-src/driver.c
5647           client-src/sendbackup-gnutar.c server-src/find.c
5648           server-src/diskfile.c : format string / i18n tweaks
5649         * common-src/amcrypt-ossl.sh.in: fix shell quoting
5650
5651 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5652         * changer-src/sense.c server-src/driver.c server-src/reporter.c
5653           server-src/amadmin.c server-src/amtape.c common-src/amanda.h:
5654           use T_() instead of _T() as the macro flagging static strings
5655           in need of translation; fixes compilation error on Mac OS X, where
5656           _T is defined in the system headers.
5657
5658 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5659         * changer-src/chg-zd-mtx.sh.in changer-src/chg-multi.sh.in:
5660           use chg-lib.sh fully, fix i18n problems.
5661
5662 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5663         * common-src/krb5-security.c common-src/bsdtcp-security.c
5664           common-src/security-util.c: check results from getnameinfo()
5665           correctly
5666
5667 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5668         * server-src/amstatus.pl.in: use perl flags -Tw
5669
5670 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5671         * common-src/debug.c common-src/error.c: fix compilation errors
5672           on strict platforms.
5673
5674 2007-06-04  Jean-Louis Martineau <martineau@zmanda.com>
5675         * common-src/bsd-security.c common-src/bsdudp-security.c: 
5676           Make bsd, bsdudp open an IPv4 and an IPv6 socket; fixes bug reported
5677           by Marc Muehlfeld.
5678
5679 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5680         * oldrecover-src/Makefile.am changer-src/Makefile.am
5681           amplot/Makefile.am client-src/Makefile.am
5682           amandad-src/Makefile.am dumper-src/Makefile.am
5683           recover-src/Makefile.am restore-src/Makefile.am
5684           tape-src/Makefile.am: add quotes to allow spaces in user
5685           and group names
5686
5687 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5688         * changer-src/chg-scsi.c: use long int for tape sleep time
5689         * client-src/selfcheck.c: error out if no calcsize program is found
5690         * server-src/amindexd.c: run 'sort' in the C locale
5691         * server-src/amcheck.c: flag localhost not resolving as an error
5692         * server-src/diskfile.c: improve error handling
5693         * common-src/amcrypt.sh.in common-src/amcrypt-ossl-asym.sh.in
5694           common-src/amcrypt-ossl.sh.in: search /opt/csw/bin for openssl
5695           binaries; improve error handling
5696
5697 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5698         * server-src/planner.c server-src/amcleanupdisk.c
5699           server-src/amflush.c server-src/holding.c server-src/holding.h:
5700           do not assume anything about the names of holding
5701           directories; use holding disk files themselves to discover
5702           dump time/datestamps
5703
5704 2007-06-04  Jean-Louis Martineau <martineau@zmanda.com>
5705         * common-src/krb5-security.c: Typo.
5706
5707 2007-06-01  Ian Turner <ian@zmanda.com>
5708         * restore-src/restore.c: Set flags->fsf = 0 by default.
5709
5710 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
5711         * server-src/driver.c: Check dumper->down.
5712         * server-src/dumper.c (sendbackup_response): Only call
5713           security_close_connection if pkt != NULL.
5714
5715 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
5716         * server-src/amstatus.pl.in: Use compressed size.
5717
5718 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
5719         * server-src/planner.c: Don't report overwrite if no label.
5720
5721 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
5722         * changer-src/chg-manual.sh.in: Don't reset the slot to 0 on eject.
5723
5724 2007-05-25  Kevin Till <ktill@zmanda.com>
5725         * example/amanda.conf.in: ditto
5726         * man/xml-source/amanda.conf.5.xml: ditto
5727         * common-src/conffile.c: ditto
5728
5729 2007-05-24  Dustin J. Mitchell <dustin@zmanda.com>
5730         * changer-src/scsi-changer-driver.c changer-src/scsi-cam.c
5731           client-src/sendbackup.c client-src/selfcheck.c
5732           recover-src/extract_list.c server-src/amindexd.c
5733           server-src/amcheck.c server-src/driver.c server-src/dumper.c
5734           server-src/planner.c server-src/amadmin.c server-src/diskfile.c
5735           contrib/set_prod_link.pl common-src/krb5-security.c
5736           common-src/bsd-security.c common-src/security-util.c
5737           common-src/conffile.c common-src/bsdudp-security.c:
5738           trivial changes to add _(), etc. -- harmonization of branch
5739           divergence caused by manual resolution of merge conflicts
5740
5741 2007-05-24  Satya Ganga <gsat@zmanda.com> (merged by dustin@zmanda.com)
5742         * server-src/amcleanup.sh.in: rewrite to find all the active
5743         process/children for a given configuration
5744
5745 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5746         * common-src/fileheader.c:
5747           Remove ".exe" extension from program name is tape header.
5748
5749 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5750         * config/gettext-macros/gettext.m4
5751         config/gettext-macros/inttypes-pri.m4:
5752           Change name gl_HEADER_INTTYPES_H to gl_AC_HEADER_INTTYPES_H
5753
5754 2007-05-24  Dustin J. Mitchell <dustin@zmanda.com>
5755         * configure.in: add configure.in recognition for Mac OS X
5756
5757 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5758         * configure.in: IPV6 on cygwin only partially works.
5759                 Force WORKING_IPV6 to false.
5760
5761 2007-05-24  Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
5762         * server-src/driver.c: use amanda text domain in driver
5763
5764 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5765         * config/libtool.m4i:
5766                 Fix to pass loader variables correctly on Solaris systems
5767                 with a gcc that does not use -static or -shared.
5768
5769 2007-05-24  Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
5770         * server-src/amstatus.pl.in: parse directory and holding_disk_dir with
5771           space correctly
5772
5773 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5774         * client-src/sendbackup.c client-src/sendsize.c client-src/sendbackup-star.c
5775           configure.in server-src/amindexd.c server-src/taper.c server-src/diskfile.c
5776           config/acinclude.m4i common-src/amanda.h common-src/util.c
5777           common-src/security-util.c:
5778                 Fix compilation problems using GCC on solaris.
5779
5780 2007-05-24  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
5781         * server-src/reporter.c: Split FAILED and STRANGE section.
5782
5783 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5784         * common-src/conffile.c: Fix windows compilation warning.
5785
5786 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5787         * po/Makefile.am changer-src/scsi-changer-driver.c changer-src/sense.c
5788           client-src/unctime.c server-src/amadmin.c server-src/amtape.c
5789           server-src/driver.c server-src/reporter.c common-src/amanda.h
5790           tape-src/tapeio.h tape-src/tapetype.c:
5791                 Change _() gettext macro to call gettext()
5792                 Create _T() to allow gettext translation of static strings.
5793         * common-src/security.c:  Create larger buffers for error messages.
5794
5795 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5796         * configure.in: Prevent annoying lint usage message from
5797           being displayed in configure console output.
5798
5799 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5800         * autogen:
5801                 Fix problem of not generating po/Makefile.in on fresh checkout.
5802         * server-src/logfile.c:
5803                 Always output to logfile in "C" locale.
5804         * amandad-src/amandad.c changer-src/chg-scsi-chio.c
5805           changer-src/chg-scsi.c client-src/calcsize.c client-src/getfsent.c
5806           client-src/killpgrp.c client-src/noop.c client-src/rundump.c
5807           client-src/runstar.c client-src/runtar.c client-src/selfcheck.c
5808           client-src/sendbackup.c client-src/sendsize.c
5809           client-src/versionsuffix.c common-src/amfeatures.c
5810           common-src/amflock.c common-src/file.c common-src/genversion.c
5811           common-src/statfs.c common-src/token.c oldrecover-src/amrecover.c
5812           recover-src/amrecover.c restore-src/amfetchdump.c
5813           restore-src/amidxtaped.c restore-src/amrestore.c server-src/amadmin.c
5814           server-src/amcheck.c server-src/amcleanupdisk.c server-src/amflush.c
5815           server-src/amindexd.c server-src/amlabel.c server-src/amlogroll.c
5816           server-src/amtape.c server-src/amtrmidx.c server-src/amtrmlog.c
5817           server-src/chunker.c server-src/diskfile.c server-src/driver.c
5818           server-src/dumper.c server-src/getconf.c server-src/infofile.c
5819           server-src/planner.c server-src/reporter.c server-src/taper.c
5820           tape-src/amdd.c tape-src/ammt.c tape-src/tapeio.c tape-src/tapetype.c:
5821                 Change back to always run in "C" locale.
5822
5823 2007-05-23  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
5824         * changer-src/chg-manual.sh.in: Fix quoting; fix gettext usage.
5825
5826 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5827         * configure.in:
5828                 New gettext routines.
5829         * server-src/amcheckdb.sh.in server-src/amcleanup.sh.in
5830           server-src/amverifyrun.sh.in server-src/amrmtape.sh.in
5831           server-src/amverify.sh.in server-src/amdump.sh.in
5832           server-src/amfreetapes.sh.in amplot/amplot.sh.in
5833           changer-src/chg-mtx.sh.in changer-src/chg-null.sh.in
5834           changer-src/chg-manual.sh.in changer-src/chg-zd-mtx.sh.in
5835           changer-src/chg-disk.sh.in changer-src/chg-juke.sh.in
5836           changer-src/chg-rait.sh.in changer-src/chg-scsi.c
5837           changer-src/chg-chs.sh.in changer-src/chg-multi.sh.in
5838           changer-src/chg-mcutil.sh.in client-src/patch-system.sh.in
5839           common-src/amcrypt.sh.in common-src/amaespipe.sh.in
5840           common-src/amcrypt-ossl-asym.sh.in common-src/amcrypt-ossl.sh.in:
5841                 Internationalize shell messages
5842         * autogen config/gettext-macros/nls.m4
5843           config/gettext-macros/lib-link.m4:
5844                 Update for autoconf version 2.6 autogen
5845         * oldrecover-src/amrecover.c recover-src/amrecover.c
5846           server-src/amflush.c server-src/logfile.c server-src/amtrmlog.c
5847           server-src/amlogroll.c server-src/amindexd.c server-src/amcheck.c
5848           server-src/driver.c server-src/dumper.c server-src/chunker.c
5849           server-src/planner.c server-src/reporter.c server-src/amadmin.c
5850           server-src/amtape.c server-src/taper.c server-src/server_util.c
5851           client-src/versionsuffix.c client-src/runtar.c
5852           server-src/amtrmidx.c server-src/amcleanupdisk.c
5853           server-src/getconf.c server-src/diskfile.c
5854           changer-src/chg-scsi-chio.c client-src/noop.c server-src/infofile.c
5855           server-src/amlabel.c client-src/sendbackup.c client-src/getfsent.c
5856           client-src/killpgrp.c client-src/sendsize.c client-src/selfcheck.c
5857           client-src/rundump.c client-src/calcsize.c restore-src/amidxtaped.c
5858           restore-src/amrestore.c restore-src/amfetchdump.c Makefile.am
5859           amandad-src/amandad.c common-src/genversion.c common-src/debug.c
5860           common-src/error.c common-src/statfs.c common-src/amflock.c
5861           common-src/file.c common-src/token.c common-src/security-util.c
5862           common-src/conffile.c common-src/amanda.h common-src/amfeatures.c
5863           tape-src/ammt.c tape-src/amdd.c tape-src/tapeio.c
5864           tape-src/tapetype.c:
5865                 Use amanda domain for LC_MESSAGES.
5866
5867 2007-05-22  Maitreyee Karmarkar <maitreyee@zmanda.com> (merged by dustin@zmanda.com)
5868         * server-src/amcheck.c : Changed some amcheck messages
5869         * common-src/conffile.c : Changed some amcheck messages
5870         
5871 2007-05-22  Maitreyee Karmarkar <maitreyee@zmanda.com> (merged by dustin@zmanda.com)
5872         * client-src/selfcheck.c, server-src/changer.c, server-src/amcheck.c,
5873           server-src/taperscan.c, server-src/diskfile.c,
5874           common-src/conffile.c:
5875           Change in some amcheck error messages
5876
5877 2007-05-22   John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5878         * common-src/krb5-security.c common-src/security-util.c
5879           server-src/taper.c server-src/taperscan.c:
5880                 Fix botched *vstrallocf conversions.
5881         * oldrecover-src/extract_list.c server-src/amlogroll.c
5882           server-src/chunker.c server-src/driver.c server-src/dumper.c
5883           server-src/getconf.c server-src/holding.c server-src/planner.c
5884           server-src/reporter.c server-src/taper.c:
5885                 Add errno text when printing getcwd() error message.
5886
5887 2007-05-22  Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
5888         * configure.in: move crypt scripts to common-src since they are needed
5889           by both server and client
5890         * common-src/Makefile.am: ditto
5891         * server-src/Makefile.am: ditto
5892
5893 2007-05-17   John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5894         * configure.in oldrecover-src/amrecover.c
5895           oldrecover-src/extract_list.c oldrecover-src/display_commands.c
5896           oldrecover-src/help.c oldrecover-src/set_commands.c
5897           recover-src/amrecover.c recover-src/extract_list.c
5898           recover-src/display_commands.c recover-src/help.c
5899           recover-src/set_commands.c server-src/amflush.c
5900           server-src/changer.c server-src/taperscan.c server-src/logfile.c
5901           server-src/amtrmlog.c server-src/driverio.c
5902           server-src/amlogroll.c server-src/tapefile.c
5903           server-src/amindexd.c server-src/driver.c server-src/amcheck.c
5904           server-src/dumper.c server-src/chunker.c server-src/planner.c
5905           server-src/reporter.c server-src/server_util.c
5906           server-src/amadmin.c server-src/amtape.c server-src/taper.c
5907           server-src/amcleanupdisk.c server-src/find.c
5908           server-src/amtrmidx.c server-src/getconf.c
5909           server-src/diskfile.c server-src/infofile.c
5910           server-src/amlabel.c changer-src/scsi-linux.c
5911           changer-src/chg-scsi-chio.c changer-src/scsi-chio.c
5912           changer-src/scsi-hpux.c changer-src/scsi-changer-driver.c
5913           changer-src/scsi-cam.c changer-src/chg-scsi.c
5914           changer-src/scsi-bsd.c changer-src/scsi-irix.c
5915           changer-src/scsi-solaris.c changer-src/sense.c
5916           changer-src/scsi-aix.c changer-src/scsi-hpux_new.c
5917           autogen client-src/unctime.c client-src/versionsuffix.c
5918           client-src/noop.c client-src/client_util.c client-src/runtar.c
5919           client-src/sendbackup-gnutar.c client-src/getfsent.c
5920           client-src/sendbackup.c client-src/sendbackup-dump.c
5921           client-src/killpgrp.c client-src/sendsize.c
5922           client-src/selfcheck.c client-src/rundump.c
5923           client-src/calcsize.c client-src/amandates.c
5924           restore-src/amidxtaped.c restore-src/amrestore.c
5925           restore-src/restore.c restore-src/amfetchdump.c Makefile.am
5926           amandad-src/amandad_util.c amandad-src/amandad.c
5927           common-src/rsh-security.c common-src/pipespawn.c
5928           common-src/security.c common-src/krb5-security.c
5929           common-src/util.c common-src/genversion.c
5930           common-src/bsdtcp-security.c common-src/debug.c
5931           common-src/fileheader.c common-src/dgram.c
5932           common-src/stream.c common-src/match.c
5933           common-src/protocol.c common-src/ssh-security.c
5934           common-src/statfs.c common-src/krb4-security.c
5935           common-src/amflock.c common-src/bsd-security.c
5936           common-src/file.c common-src/token.c common-src/event.c
5937           common-src/security-util.c common-src/conffile.c
5938           common-src/amanda.h common-src/bsdudp-security.c
5939           common-src/alloc.c common-src/clock.c common-src/amfeatures.c
5940           tape-src/ammt.c tape-src/amdd.c tape-src/output-file.c
5941           tape-src/tapeio.c tape-src/tapeio.h tape-src/output-tape.c
5942           tape-src/tapetype.c tape-src/output-rait.c:
5943           o First stage of internationalization.
5944             - Add GNU gettext to configuration.
5945             - Add _() macro to flag translatable strings and modify
5946               code to use it.  Macros like SSIZE_T_FMT are included in
5947               this call, even though xgettext will not parse them; this
5948               will be fixed later.
5949             - Add plural() function for selecting singular or plural form
5950               of string and modify code to use it.
5951             - Add amanda.po target to Makefile.
5952
5953 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5954         * server-src/amcheck.c: Remove bogus amfree(newtapefile).
5955
5956 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5957         * server-src/amcheck.c: Check all tapelist filename.
5958
5959 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5960         * server-src/dumper.c (read_datafd): Reset timeout after the write.
5961
5962 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5963         * amplot/amplot.sh.in: Remove function keyword.
5964         * changer-src/chg-lib.sh.in: Remove function keyword.
5965         * changer-src/chg-multi.sh.in: Remove function keyword.
5966         * changer-src/chg-zd-mtx.sh.in: Remove function keyword.
5967
5968 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5969         * server-src/diskfile.c: Fix double free.
5970
5971 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5972         * common-src/amanda.h: define sockaddr_storage and ss_family.
5973         * common-src/amanda.h: define INET_ADDRSTRLEN.
5974         * config/acinclude.m4i (AC_SOCKADDR_STORAGE): New macro.
5975         * configure.in: AC_SOCKADDR_STORAGE.
5976
5977 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5978         * common-src/amanda.h: Define AI_V4MAPPED and AI_ALL.
5979
5980 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5981         * util.c (cmp_sockaddr): un-map V4mapped address before comparison.
5982         * common-src/security-util.c: add debugging.
5983
5984 2007-05-17  Dustin J. Mitchell <dustin@zmanda.com> (merged by dustin@zmanda.com)
5985         * common-src/amanda.h: fix typo (missing 'extern') in erroutput_type
5986
5987 2007-05-16      John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5988         * oldrecover-src/amrecover.c oldrecover-src/extract_list.c
5989           oldrecover-src/display_commands.c oldrecover-src/set_commands.c
5990           recover-src/amrecover.c recover-src/extract_list.c
5991           recover-src/display_commands.c recover-src/set_commands.c
5992           server-src/changer.c server-src/taperscan.c
5993           server-src/amtrmlog.c server-src/amindexd.c server-src/driver.c
5994           server-src/amcheck.c server-src/dumper.c server-src/chunker.c
5995           server-src/planner.c server-src/reporter.c server-src/taper.c
5996           server-src/amtrmidx.c changer-src/scsi-linux.c
5997           changer-src/chg-scsi-chio.c changer-src/scsi-chio.c
5998           changer-src/scsi-hpux.c changer-src/scsi-cam.c
5999           changer-src/scsi-changer-driver.c changer-src/chg-scsi.c
6000           changer-src/scsi-bsd.c changer-src/scsi-irix.c
6001           changer-src/scsi-solaris.c changer-src/sense.c
6002           changer-src/scsi-aix.c changer-src/scsi-hpux_new.c
6003           client-src/client_util.c client-src/runtar.c
6004           client-src/sendbackup-gnutar.c client-src/sendbackup.c
6005           client-src/sendbackup-dump.c client-src/killpgrp.c
6006           client-src/sendsize.c client-src/selfcheck.c
6007           client-src/rundump.c client-src/calcsize.c
6008           client-src/amandates.c restore-src/amidxtaped.c
6009           restore-src/restore.c amandad-src/amandad_util.c
6010           amandad-src/amandad.c common-src/rsh-security.c
6011           common-src/sockaddr-util.c common-src/pipespawn.c
6012           common-src/security.c common-src/krb5-security.c
6013           common-src/util.c common-src/util.h common-src/bsdtcp-security.c
6014           common-src/tapelist.c common-src/debug.c common-src/fileheader.c
6015           common-src/error.c common-src/dgram.c common-src/stream.c
6016           common-src/protocol.c common-src/ssh-security.c
6017           common-src/krb4-security.c common-src/bsd-security.c
6018           common-src/event.c common-src/security-util.c
6019           common-src/conffile.c common-src/amanda.h
6020           common-src/bsdudp-security.c common-src/security-util.h
6021           common-src/alloc.c tape-src/output-file.c tape-src/tapeio.c
6022           tape-src/output-tape.c:
6023                 - Change dbprintf() to use __VA_ARGS__. (Remove extra parens)
6024                 - Prepend program name and nano second accuracy time stamp
6025                   to each line in debug file.
6026                 - Emove any resulting duplicate timestamps from functions that
6027                   inserted them in each dbprintf() line.
6028                 - Fix dballoc compilation.
6029                 - Fix dbmalloc compilation.
6030                 - Fix amfree() to report file and line # of amfree line during
6031                   errors.
6032                 - Add vstrallocf() and newvstrallocf() functions. These are
6033                   the same as vstralloc() and newvstralloc() except they use
6034                   printf style format strings.  (Required to eliminate
6035                   untranslateable string concatenations in messages.)
6036                 - Change files to use *allocf() functions where it seemed
6037                   appropriate..
6038                 - Fix kerberos 4 compilation.
6039                 - Fix kerberos 5 compilation.
6040
6041 2007-05-16  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
6042         * common-src/debug.c (debug_rename): Fix for cygwin: rename
6043           will not overwrite an existing file
6044
6045 2007-05-15   John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
6046         * client-src/sendbackup.c common-src/dgram.c common-src/event.c
6047           server-src/changer.c server-src/driverio.c:
6048                 Cast FD_SETSIZE to int to avoid compilation problems.
6049
6050 2007-05-15   Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
6051         * common-src/debug.c: dbrename patch by Jean-Louis Martineau to
6052           unlink the target of the rename operation before renaming.
6053
6054 2007-05-15  Dustin J. Mitchell <dustin@zmanda.com>
6055         * client-src/sendsize.c: fix parsing of include/excludes for 
6056           old clients
6057
6058 2007-05-11  Jean-Louis Martineau <martineau@zmanda.com>
6059         * server-src/amcrypt-ossl-asym.sh.in: Use CLIENT_LOGIN.
6060         * server-src/amcrypt-ossl.sh.in: Use CLIENT_LOGIN.
6061
6062 2007-05-08  Jean-Louis Martineau <martineau@zmanda.com>
6063         * common-src/krb5-security.c: Fix compilation.
6064
6065 2007-05-09      Dustin J. Mitchell <dustin@zmanda.com>
6066         * common-src/stream.c: add errno's to stream_client_internal
6067
6068 2007-05-09      Dustin J. Mitchell <dustin@zmanda.com>
6069         * server-src/amadmin.c server-src/infofile.c
6070           common-src/security-util.c common-src/krb5-security.c:
6071           fix type-punning warnings
6072
6073 2007-05-09      Dustin J. Mitchell <dustin@zmanda.com>
6074         * recover-src/set_commands.c server-src/amcheck.c
6075           server-src/dumper.c common-src/rsh-security.c
6076           common-src/krb5-security.c common-src/util.c common-src/util.h
6077           common-src/bsdtcp-security.c common-src/stream.c
6078           common-src/ssh-security.c common-src/bsd-security.c
6079           common-src/security-util.c common-src/bsdudp-security.c
6080           common-src/security-util.h: Add IPv6-savvy resolve_hostname() and use it
6081           everywhere
6082
6083 2007-05-08  Jean-Louis Martineau <martineau@zmanda.com>
6084         * config/Makefile.am (EXTRA_DIST): Add docbook-dtd.m4i,
6085           docbook-xslt.m4i, docbook-xslt-min.m4i and xsltproc.m4i.
6086
6087 2007-05-07  Jean-Louis Martineau <martineau@zmanda.com>
6088         * common-src/stream.c: pass correct sockaddr size to bind()
6089
6090 2007-05-07  Pieter Bowman <bowman@math.utah.edu>
6091         * common-src/file.c: reverse the order of chown/chmod to correctly
6092           create temporary files.
6093
6094 2007-05-07  Jean-Louis Martineau <martineau@zmanda.com>
6095         * common-src/krb5-security.c: Fix compilation.
6096
6097 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
6098         * server-src/cmdline.c server-src/holding.c server-src/holding.h
6099           server-src/amadmin.c server-src/amcleanupdisk.c: remove 
6100           holding_file_read_header()
6101
6102 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
6103         * common-src/sockaddr-util.h common-src/bsdtcp-security.c common-src/security-util.c
6104           common-src/krb5-security.c common-src/stream.c: add and use a copy_sockaddr() macro
6105
6106 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
6107         * configure.in common-src/rsh-security.c common-src/bsdtcp-security.c
6108           common-src/ssh-security.c common-src/bsdudp-security.c
6109           common-src/krb5-security.c common-src/krb4-security.c common-src/bsd-security.c
6110           common-src/Makefile.am: use AM_CONDITIONAL to select security modules to compile
6111
6112 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
6113         * autogen man/Makefile.am configure.in config/acinclude.m4i
6114           config/docbook-xslt-min.m4i config/docbook-dtd.m4i config/docbook-xslt.m4i
6115           config/xsltproc.m4i Makefile.am: detect xsltproc, docbook xslt, and docbook
6116           dtd versions better, to ensure proper creation of manpages.
6117
6118 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
6119         * server-src/amindexd.c common-src/sockaddr-util.c common-src/sockaddr-util.h
6120           common-src/util.c common-src/security-util.c common-src/amanda.h
6121           common-src/dgram.c common-src/stream.c common-src/Makefile.am: add new
6122           sockaddr-util.[ch] containing sockaddr-related functions.
6123
6124 2007-05-04  Jean-Louis Martineau <martineau@zmanda.com>
6125         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.3alpha)
6126
6127 2007-05-03  Jean-Louis Martineau <martineau@zmanda.com>
6128         * docs/*.txt: Update from xml-docs.
6129
6130 2007-05-03  Jean-Louis Martineau <martineau@zmanda.com>
6131         * man/xml-source/amrecover.8.xml: Fix space.
6132
6133 2007-05-03  Jean-Louis Martineau <martineau@zmanda.com>
6134         * Amanda 2.5.2 released.
6135         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2).
6136
6137 2007-05-02  Jean-Louis Martineau <martineau@zmanda.com>
6138         * docs/*.txt, man/xml-source/*.xml: Change OVERWRITE bu OVERRIDE.
6139         * man/xml-source/amadmin.8.xml: Add notees on no-reuse command.
6140
6141 2007-05-02  Jean-Louis Martineau <martineau@zmanda.com>
6142         * amandad-src/amandad.c: Improve 'invalid service' message.
6143
6144 2007-05-01  Jean-Louis Martineau <martineau@zmanda.com>
6145         * recover-src/extract_list.c: Report the error message.
6146         * recover-src/extract_list.c: Don't call close_connection.
6147         * common-src/security-util.c: (tcpm_close_connection): Check for rh->rc
6148
6149 2007-04-27  Jean-Louis Martineau <martineau@zmanda.com>
6150         * common-src/security-util.c (tcp1_stream_client): Set rh->rc->driver.
6151
6152 2007-04-27  Jean-Louis Martineau <martineau@zmanda.com>
6153         * common-src/bsd-security.c, common-src/bsdudp-security.c,
6154           common-src/krb4-security.c: Fix ntohs for port number.
6155         * common-src/dgram.c: Add socket number in comment.
6156
6157 2007-04-27  Dustin J. Mitchell <dustin@zmanda.com>
6158         * server-src/holding.c server-src/holding.h server-src/find.c:
6159           use holding module in find.c:search_holding_disk()
6160
6161 2007-04-27  Jean-Louis Martineau <martineau@zmanda.com>
6162         * server-src/amcheck.c: Fix infobad setting.
6163
6164 2007-04-26  Jean-Louis Martineau <martineau@zmanda.com>
6165         * server-src/amcheck.c: Set *bad on error.
6166
6167 2007-04-26  Jean-Louis Martineau <martineau@zmanda.com>
6168         * server-src/amflush.c: Quote L_DISK and FLUSH line.
6169         * server-src/driver.c: Parse quoted FLUSH line.
6170         * server-src/planner.c:  Quote L_DISK and FLUSH line.
6171
6172 2007-04-25  Dustin J. Mitchell <dustin@zmanda.com>
6173         * configure.in common-src/ssh-security.c: allow build-time configuration of SSH options
6174
6175 2007-04-23  Paddy Sreenivasan <paddy@zmanda.com>
6176         * changer-src/scsi-solaris.c common-src/protocol.c: changes to build on Solaris
6177
6178 2007-04-20  Dustin J. Mitchell <dustin@zmanda.com>
6179         * configure.in: remove unused AMANDA_C_VOLATILE
6180         * config/acinclude.m4: remove unused AMANDA_C_VOLATILE
6181
6182 2007-04-20  Dustin J. Mitchell <dustin@zmanda.com>
6183         * autogen: silence unnecessary warnings about GNU make, return exit status
6184
6185 2007-04-20  Dustin J. Mitchell <dustin@zmanda.com>
6186         * common-src/stream.c: retry socket creation if OS does not support IPv6
6187           at runtime
6188
6189 2007-04-20  Jean-Louis Martineau <martineau@zmanda.com>
6190         * amplot/amplot.sh.in (test_awk,find_gnuplot): Imported from zmanda.
6191         * amplot/amplot.awk: Fix some parsing.
6192         * server-src/driver.c (free_kps): Return 0 instead of big value.
6193
6194 2007-04-18  Jean-Louis Martineau <martineau@zmanda.com>
6195         * oldrecover-src/Makefile.am, changer-src/Makefile.am,
6196           client-src/Makefile.am, amandad-src/Makefile.am,
6197           recover-src/Makefile.am, server-src/Makefile.am,
6198           restore-src/Makefile.am: Link libgnu after libamanda.
6199
6200 2007-04-18  Jean-Louis Martineau <martineau@zmanda.com>
6201         * client-src/sendbackup.c: Improve tar argument in amanda header for
6202                                    extraction.
6203
6204 2007-04-18  Dustin J. Mitchell <dustin@zmanda.com>
6205         * man/Makefile.am configure.in config/acinclude.m4i: add xsltproc- and docbook-
6206           related autoconf macros, use them to ensure the environment is appropriate for
6207           building manpages; manpage build is off by default.
6208
6209 2007-04-17  Jean-Louis Martineau <martineau@zmanda.com>
6210         * changer-src/chg-disk.sh.in: Send error message to stdout.
6211
6212 2007-04-17  Dustin J. Mitchell <dustin@zmanda.com>
6213         * changer-src/chg-zd-mtx.sh.in: fix more typos (thanks to
6214           "Stefan G. Weichinger" <sgw@amanda.org>)
6215
6216 2007-04-17  Jean-Louis Martineau <martineau@zmanda.com>
6217         * restore-src/restore.c: Fix restoration of split and encrypted backup.
6218
6219 2007-04-13  Dustin J. Mitchell <dustin@zmanda.com>
6220         * changer-src/chg-zd-mtx.sh.in: fix typo in error message
6221
6222 2007-04-13  Jean-Louis Martineau <martineau@zmanda.com>
6223         * Amanda 2.5.2b1 released.
6224         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2b1).
6225
6226 2007-04-13  Jean-Louis Martineau <martineau@zmanda.com>
6227         * client-src/sendbackup.c (first_num): Removed function.
6228         * client-src/sendbackup.c (the_num): return the nth number in a string.
6229         * client-src/sendbackup.h (AM_SIZE_RE): Need a field.
6230         * client-src/sendbackup-dump.c: Use new AM_SIZE_RE.
6231         * client-src/sendbackup-gnutar.c: Use new AM_SIZE_RE.
6232
6233 2007-04-13  Jean-Louis Martineau <martineau@zmanda.com>
6234         * NEWS: Change in amanda-2.5.2
6235         * ReleaseNotes: Releases Notes for 2.5.2
6236         * server-src/chunker.c (write_tapeheader): Set errno to ENOSPC.
6237
6238 2007-04-12  Dustin J. Mitchell <dustin@zmanda.com>
6239         * server-src/dumper.c: use fullwrite() instead of write()
6240
6241 2007-04-12  Jean-Louis Martineau <martineau@zmanda.com>
6242         * amandad-src/amandad.c: Remove duplicate setsockopt(,,SO_REUSEADDR).
6243         * common-src/bsd-security.c: Use int for setsockopt.
6244         * common-src/stream.c (try_socksize): Use int for setsockopt.
6245
6246 2007-04-12  Jean-Louis Martineau <martineau@zmanda.com>
6247         * server-src/amcheck.c: Remove duplicate test.
6248         * server-src/dumper.c: Use newvstralloc.
6249
6250 2007-04-12  Jean-Louis Martineau <martineau@zmanda.com>
6251         * server-src/reporter.c: Take value from chunker if it succeed and
6252                                  taper fail.
6253
6254 2007-04-10  Jean-Louis Martineau <martineau@zmanda.com>
6255         * configure.in: Use krb5 shared library.
6256
6257 2007-04-10  Dustin J. Mitchell <dustin@zmanda.com>
6258         * changer-src/chg-zd-mtx.sh.in: remove configurability of mt, mtx paths
6259
6260 2007-04-10  Jean-Louis Martineau <martineau@zmanda.com>
6261         * common-src/krb5-security.c: Initialize rc->gss_context.
6262
6263 2007-04-09  Dustin J. Mitchell <dustin@zmanda.com>
6264         * changer-src/chg-zd-mtx.sh.in: fix bugs in configuration for mt, mtx paths
6265
6266 2007-04-06  Dustin J. Mitchell <dustin@zmanda.com>
6267         * oldrecover-src/extract_list.c oldrecover-src/display_commands.c
6268           client-src/sendbackup.c client-src/getfsent.c client-src/sendsize.c
6269           client-src/selfcheck.c recover-src/amrecover.c recover-src/extract_list.c
6270           recover-src/display_commands.c server-src/amlogroll.c
6271           server-src/amindexd.c server-src/tapefile.c server-src/amcheck.c
6272           server-src/dumper.c server-src/planner.c server-src/reporter.c
6273           server-src/amadmin.c server-src/find.c server-src/infofile.c
6274           restore-src/amidxtaped.c common-src/security-util.c common-src/amanda.h:
6275           improve parsing with strcmp_const and strcmp_const_skip
6276
6277 2007-04-06  Jean-Louis Martineau <martineau@zmanda.com>
6278         * server-src/taper.c: Limit splitsize to 1G in PORT-WRITE.
6279
6280 2007-04-06  Jean-Louis Martineau <martineau@zmanda.com>
6281         * common-src/krb5-security.c: Report client hostname.
6282
6283 2007-04-06  Jean-Louis Martineau <martineau@zmanda.com>
6284         * common-src/tapelist.c (append_to_tape): Don't call dump_tapelist.
6285
6286 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com>
6287         * contrib/macosx/org.amanda.amandad.bsd*.plist: updated to use username
6288           'amandabackup'
6289
6290 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com>
6291         * amplot/amplot.sh.in configure.in config/acinclude.m4i:
6292           move checks for gnuplot, awk to runtime for easier packaging;
6293           add fake gettext functions to ease the transition to
6294           full gettext support
6295
6296 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com> 
6297         * server-src/amindex.c: fix bug where debug fd was closed by safe_fd,
6298           remove remote_hostname, rewrite to use getaddrinfo/getnameinfo
6299         * server-src/dumper.c server-src/amcheck.c recover-src/set_commands.c:
6300           use getaddrinfo/getnameinfo
6301         * common-src/security-util.[ch]: add try_resolving_hostname()
6302         * common-src/ssh-security.c common-src/rsh-security.c:
6303           use try_resolving_hostname, rewrite to avoid gethostbyname
6304         * common-src/krb5-security.c: use getaddrinfo instead of gethostbyname
6305
6306 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com>
6307         * changer-src/chg-lib.sh.in changer-src/chg-mtx.sh.in
6308           changer-src/chg-manual.sh.in changer-src/chg-zd-mtx.sh.in
6309           changer-src/chg-multi.sh.in changer-src/Makefile.am
6310           configure.in: make the path to MTX and other executables configurable
6311           in changer scripts; introduce new changer shell library to reduce
6312           code duplication; add fake gettext functions to ease the transition to
6313           full gettext support
6314
6315 2007-04-04  Dustin J. Mitchell <dustin@zmanda.com>
6316         * server-src/dumper.c server-src/chunker.c: remove assumed ENOSPC
6317           error in static write_tapeheader functions
6318
6319 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
6320         * common-src/security-util.c: Remove buggy &.
6321
6322 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
6323         * common-src/conffile.c: Add READBLOCKSIZE tapetype config option.
6324         * common-src/conffile.c(getconf_readblocksize): Function to retrieve
6325           the tapetype readblocksize or the configured maxtapeblocksize.
6326         * common-src/conffile.h: Add READBLOCKSIZE tapetype config option.
6327         * man/xml-source/amanda.conf.5.xml: Document it.
6328         * tape-src/output-tape.c: Use getconf_readblocksize.
6329         * tape-src/tapeio.c: Use getconf_readblocksize.
6330
6331 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
6332         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
6333           common-src/bsdudp-security.c,
6334           common-src/security-util.c: Fix auth_debug and dbprintf usage.
6335
6336 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
6337         Merge from zmanda ext.
6338         * man/xml-source/amadmin.8.xml man/xml-source/amanda.8.xml
6339           server-src/amflush.c server-src/cmdline.c server-src/cmdline.h
6340           server-src/holding.c server-src/holding.h server-src/driver.c
6341           server-src/planner.c server-src/amadmin.c server-src/taper.c
6342           server-src/amcleanupdisk.c server-src/find.c
6343           server-src/Makefile.am: revise holding-disk management, add new
6344           'amadmin' subcommand to list and delete dumps from the holding
6345           disk.
6346         * server-src/amadmin.c: Add 'amadmin XX holding list -l'
6347
6348 2007-04-02  Dustin J. Mitchell <dustin@zmanda.com>
6349         * common-src/bsdtcp-security.c common-src/bsd-security.c 
6350           common-src/security-util.c common-src/bsdudp-security.c:
6351           bugfixes, always check for NULL ai_canonname
6352         * common-src/util.c common-src/util.h common-src/krb4-security.c 
6353           common-src/security-util.c: bugfix for hosts with multiple addresses,
6354           improved cmp_sockaddr, remove redundant checks
6355         * server-src/taper.c: add log message when new tapes are auto-labeled
6356         * common-src/security-util.c: patch to avoid spurious compiler warnings
6357           noticed on FC3
6358
6359 2007-03-30  Dustin J. Mitchell <dustin@zmanda.com>
6360         * common-src/file.c: remove unused amanda_setup()
6361
6362 2007-03-30  Jean-Louis Martineau <martineau@zmanda.com>
6363         * common-src/amanda.h: Define a _() macro.
6364
6365 2007-03-28  Dustin J. Mitchell <dustin@zmanda.com>
6366         * common/amanda.h: fix typo in SS_SET_INADDR_ANY for non-IPv6 
6367           machines
6368         * gnulib/regenerate/regenerate: update to include visibility
6369           and lock modules (See 2007-03-14)
6370         * recover-src/extract_list.c common-src/krb4-security.c
6371           common-src/event.c common-src/security-util.c: use
6372           SELECT_ARG_TYPE instead of fd_set
6373
6374 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
6375         * common-src/krb5-security.c: Fix for krb5 and IPv6.
6376         * common-src/security-util.c: Fix for krb5 and IPv6.
6377
6378 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
6379         * common-src/krb5-security.c: Compile with heimdal kerberos.
6380
6381 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
6382         Fix solaris 9 problem:
6383         * common-src/krb5-security.c: Use putenv instead of setenv.
6384         * common-src/security-util.c: Set flags according to family.
6385
6386 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
6387         Merge from zmanda EXT.
6388
6389 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
6390         * Makefile.am (EXTRA_DIST): Remove contrib/gnulib-update-current.
6391
6392 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
6393         * server-src/reporter.c: Ouput quoted diskname in "DUMP SUMMARY"
6394           section.
6395
6396 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
6397         * changer-src/chg-zd-mtx.sh.in: Exit with a message if the
6398                                         configuration file doesn't exist.
6399
6400 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
6401         * common-src/conffile.c: Fix error message.
6402
6403 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
6404         * amandad-src/amandad.c: Fix segfault.
6405
6406 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
6407         * common-src/security-util.c: Use SS_LEN.
6408         * common-src/util.c: Use SS_LEN.
6409
6410 2007-03-21  Jean-Louis Martineau <martineau@zmanda.com>
6411         * common-src/security.h (security_driver): Add data_encrypt and
6412                                                    data_decrypt function.
6413         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
6414           common-src/bsdudp-security.c, common-src/krb4-security.c,
6415           common-src/rsh-security.c,
6416           common-src/ssh-security.c: Set data_encrypt and data_decrypt to NULL.
6417
6418         * common-src/conffile.c: Parse KRB5KEYTAB and KRB5PRINCIPAL on client.
6419         * common-src/krb5-security.c: Complete rewrite.
6420         * common-src/security-util.h: Change many prototype.
6421         * common-src/security-util.c: Change argument to function.
6422         * recover-src/amrecover.c: Use generic_client_get_security_conf.
6423         * recover-src/extract_list.c: Use generic_client_get_security_conf.
6424
6425 2007-03-21  Jean-Louis Martineau <martineau@zmanda.com>
6426         Merge from zmanda EXT.
6427         - Add SS_INIT, SS_SET_INADDR_ANY, SS_GET_PORT and SS_SET_PORT
6428           macros for IPv6 portability
6429         - add SS_LEN() macro for calculating length of a
6430           struct sockaddr, use it in a few locations where incorrect
6431           lengths were being passed.
6432         - New script for rebuilding gnulib from scratch; current
6433           gnulib is from "cvs update -D '2007-01-31 13:12:51 -0600'"
6434
6435 2007-03-12  Jean-Louis Martineau <martineau@zmanda.com>
6436         * recover-src/set_commands.c (set_tape): Don't amfree(tape).
6437         * oldrecover-src/set_commands.c (set_tape): Don't amfree(tape).
6438
6439 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
6440         * changer-src/scsi-linux.c, common-src/security-util.c,
6441           common-src/stream.c, oldrecover-src/amrecover.c,
6442           restore-src/restore.c, server-src/amcheck.c,
6443           server-src/taper.c: Use SIZE_T_FMT and SSIZE_T_FMT instead of %z.
6444
6445 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
6446         * common-src/bsd-security.c: Always retry getaddrinfo if INET6 failed.
6447         * common-src/bsdudp-security.c: Ditto.
6448
6449 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
6450         * common-src/debug.c: Remove old file in current directory.
6451
6452 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
6453         * changer-src/chg-chio.pl.in: Typo.
6454
6455 2007-02-21  Jean-Louis Martineau <martineau@zmanda.com>
6456         * recover-src/extract_list.c: Remove match for path_on_disk_slash.
6457
6458 2007-02-20  Jean-Louis Martineau <martineau@zmanda.com>
6459         * common-src/stream.c, common-src/util.c: Pass exact socklen_t to
6460                                                   bind and connect call.
6461
6462 2007-02-20  Jean-Louis Martineau <martineau@zmanda.com>
6463         * server-src/taper.c: Set splitsize to 0 if no data in file.
6464         * server-src/amflush.c: Don't send FLUSH request if no data in file.
6465         * server-src/planner.c: Don't send FLUSH request if no data in file.
6466         * server-src/driver.c: Don't send request to taper if no data in file.
6467
6468 2007-02-19  Jean-Louis Martineau <martineau@zmanda.com>
6469         * amandad-src/amandad.c: Fix compilation with --without-ipv6.
6470
6471 2007-02-19  Jean-Louis Martineau <martineau@zmanda.com>
6472         * server-src/amverify.sh.in: Remove bogus fi.
6473
6474 2007-02-16  Jean-Louis Martineau <martineau@zmanda.com>
6475         * server-src/amverify.sh.in: Add timeout on wait for device ready.
6476         * changer-src/chg-chio.pl.in: Wait (with timeout) for drive ready.
6477
6478 2007-02-15  Jean-Louis Martineau <martineau@zmanda.com>
6479         * server-src/taper.c: Don't call free_server_config.
6480
6481 2007-02-15  Jean-Louis Martineau <martineau@zmanda.com>
6482         * patching file oldrecover-src/amrecover.h (local_cd): Prototype.
6483         * oldrecover-src/set_commands.c: Works with quoted arguments.
6484         * oldrecover-src/uparse.y (LCD): Call local_cd.
6485         * recover-src/amrecover.h (local_cd): Prototype.
6486         * recover-src/set_commands.c: Works with quoted arguments.
6487         * recover-src/uparse.y (LCD): Call local_cd.
6488
6489 2007-02-14  Jean-Louis Martineau <martineau@zmanda.com>
6490         * common-src/security-util.c: Add "on the client" message.
6491
6492 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
6493         * server-src/amstatus.pl.in: fix for chunk and displayunit.
6494
6495 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
6496         * server-src/dumper.c: Fix if krb4 is compiled but another auth is
6497                                used.
6498
6499 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
6500         * common-src/alloc.c (safe_env): Remove LANG and LC_* only if we are
6501                                          priviledged process.
6502
6503 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
6504         * dumper-src/amgtar.pl.in: Replace -t options by -T.
6505         * dumper-src/Makefile.am: Remove perl -t options.
6506
6507 2007-02-12  Jean-Louis Martineau <martineau@zmanda.com>
6508         * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add sl.
6509         * common-src/statfs.c: Fix scale function.
6510
6511 2007-02-12  Jean-Louis Martineau <martineau@zmanda.com>
6512         * client-src/sendsize.c: Fix PARAM_HONOR_NODUMP.
6513
6514 2007-02-09  Jean-Louis Martineau <martineau@zmanda.com>
6515         * server-src/reporter.c: Fix postscript crash.
6516
6517 2007-02-09  Jean-Louis Martineau <martineau@zmanda.com>
6518         * changer-src/chg-manual.sh.in: Add tty, email, tty_email request mode.
6519
6520 2007-02-07  Jean-Louis Martineau <martineau@zmanda.com>
6521         * server-src/amindexd.c: Use dbfd.
6522
6523 2007-02-06  Jean-Louis Martineau <martineau@zmanda.com>
6524         * common-src/alloc.c (vstrallocf): New function.
6525         * common-src/amanda.h (vstrallocf): Prototype.
6526         * client-src/sendsize.c: Send error if fe_rep_sendsize_quoted_error.
6527         * common-src/amfeatures.c (am_init_feature_set): Set
6528                                                  fe_rep_sendsize_quoted_error.
6529         * common-src/amfeatures.h (fe_rep_sendsize_quoted_error): new features.
6530         * server-src/planner.c: Receive error message from sendsize.
6531
6532 2007-02-06  Jean-Louis Martineau <martineau@zmanda.com>
6533         * amandad-src/amandad.c, changer-src/scsi-linux.c,
6534           common-src/conffile.c, configure.in,
6535           man/Makefile.am, man/xml-source/amcheck.8.xml,
6536           server-src/amlabel.c, server-src/taper.c: Merge from zmanda.
6537
6538 2007-02-06  Jean-Louis Martineau <martineau@zmanda.com>
6539         * common-src/clock.c (timesub): The result must always be positive.
6540
6541 2007-02-05  Jean-Louis Martineau <martineau@zmanda.com>
6542         * changer-src/chg-zd-mtx.sh.in: Fix for sed and IMPORT/EXPORT.
6543
6544 2007-02-05  Jean-Louis Martineau <martineau@zmanda.com>
6545         * server-src/amcheck.c: Add parentheses.
6546
6547 2007-02-02  Jean-Louis Martineau <martineau@zmanda.com>
6548         * contrib/gnulib-update-current: New file.
6549         * Makefile.am (EXTRA_DIST): Add contrib/gnulib-update-current.
6550
6551 2007-02-02  Jean-Louis Martineau <martineau@zmanda.com>
6552         * man/Makefile.am: Use http://docbook.sourceforge.net
6553         * man/xml-source/amadmin.8.xml, man/xml-source/amaespipe.8.xml,
6554           man/xml-source/amanda.8.xml, man/xml-source/amanda-client.conf.5.xml,
6555           man/xml-source/amanda.conf.5.xml, man/xml-source/amcheck.8.xml,
6556           man/xml-source/amcrypt.8.xml, man/xml-source/amdump.8.xml,
6557           man/xml-source/amfetchdump.8.xml, man/xml-source/amflush.8.xml,
6558           man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml,
6559           man/xml-source/ammt.8.xml, man/xml-source/amrecover.8.xml,
6560           man/xml-source/amreport.8.xml,
6561           man/xml-source/amtape.8.xml: Fix for xmllint.
6562         * man/xslt/man.xsl: Remove bogus code.
6563
6564 2007-02-01  Jean-Louis Martineau <martineau@zmanda.com>
6565         * changer-src/chg-zd-mtx.sh.in: Support IMPORT/EXPORT slot.
6566
6567 2007-02-01  Jean-Louis Martineau <martineau@zmanda.com>
6568         * server-src/amdump.sh.in: Output a starttime line.
6569         * server-src/amflush.c: Output a starttime line.
6570         * server-src/amstatus.pl.in: parse the starttime line.
6571
6572 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
6573         * configure.in: Fix --with-ipv6 option.
6574
6575 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
6576         * server-src/amdump.sh.in: Exit with a status.
6577
6578 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
6579         * server-src/diskfile.c: Use hostnext pointer.
6580
6581 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
6582         * server-src/reporter.c: Exit with a status.
6583
6584 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
6585         * server-src/amstatus.pl.in: Exit with a status.
6586
6587 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
6588         * server-src/amstatus.pl.in: Detect failed dump to tape.
6589
6590 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
6591         * configure.in: Add --with-ipv6 option.
6592
6593 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
6594         * server-src/changer.c (changer_command): Send stderr to dbfd().
6595
6596 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
6597         * server-src/diskfile.c: Check hostname have same case.
6598
6599 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
6600         * changer-src/chg-zd-mtx.sh.in: Check if MT and MTX exists.
6601
6602 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
6603         * changer-src/chg-zd-mtx.sh.in: Set CHANGER environment variable.
6604
6605 2007-01-24  Jean-Louis Martineau <martineau@zmanda.com>
6606         * common-src/conffile.c: Cleanup conf_print function.
6607
6608 2007-01-24  Jean-Louis Martineau <martineau@zmanda.com>
6609         * common-src/conffile.c: Check for duplicate -o options.
6610         * recover-src/amrecover.c: Change precedence of option.
6611
6612 2007-01-24  Jean-Louis Martineau <martineau@zmanda.com>
6613         * server-src/diskfile.c: Fix compiler warning.
6614
6615 2007-01-23  Jean-Louis Martineau <martineau@zmanda.com>
6616         * common-src/security-util.c (tcpm_recv_token): Check size < 0.
6617
6618
6619 2007-01-23  Jean-Louis Martineau <martineau@zmanda.com>
6620         * server-src/diskfile.c: Check duplicate DLE with match_host and
6621                                  match_disk.
6622
6623 2007-01-18  Jean-Louis Martineau <martineau@zmanda.com>
6624         * client-src/selfcheck.c: Improve check if /etc/dumpdates in not there.
6625
6626 2007-01-18  Jean-Louis Martineau <martineau@zmanda.com>
6627         * restore-src/amfetchdump.c: Set arg_state to ARG_GET_HOST.
6628
6629 2007-01-18  Jean-Louis Martineau <martineau@zmanda.com>
6630         * server-src/amcheck.c: Check tape_access.
6631         * server-src/taper.c: Improve message.
6632
6633 2007-01-16  Jean-Louis Martineau <martineau@zmanda.com>
6634         * configure.in: Define GCC_COMPILER.
6635         * gnulib/Makefile.am: Add -Wno-error to AM_CFLAGS if GCC_COMPILER.
6636
6637 2007-01-16  Jean-Louis Martineau <martineau@zmanda.com>
6638         * server-src/getconf.c: Fix segfault in parameter parsing.
6639
6640 2007-01-15  Jean-Louis Martineau <martineau@zmanda.com>
6641         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
6642           common-src/bsdudp-security.c,
6643           common-src/stream.c: Don't call check_addrinfo_give_name.
6644         * common-src/security-util.c (check_addrinfo_give_name): Always log
6645                                                                  error message.
6646
6647 2007-01-11  Jean-Louis Martineau <martineau@zmanda.com>
6648         * common-src/conffile.c Set default length/filemark correctly.
6649         * man/xml-source/amanda.conf.5.xml: Document they are in kbytes.
6650
6651 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
6652         * config/gnulib/gnulib-common.m4: New file.
6653         * config/gnulib.m4i: Load config/gnulib/gnulib-common.m4.
6654
6655 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
6656         * amandad-src/amandad.c (do_sendpkt): Send packet if handle != NULL.
6657
6658 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
6659         * common-src/conffile.c, common-src/conffile.h,
6660           server-src/diskfile.c: Keep different list for exclude file and list.
6661
6662 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
6663         * server-src/taper.c (read_file): Don't count first header twice.
6664
6665 2007-01-05  Jean-Louis Martineau <martineau@zmanda.com>
6666         * server-src/amstatus.pl.in: Fix split-dump accounting.
6667
6668 2007-01-04  Jean-Louis Martineau <martineau@zmanda.com>
6669         * restore-src/restore.c: Use prompt_in.
6670
6671 2007-01-04  Jean-Louis Martineau <martineau@zmanda.com>
6672         * amandad-src/amandad.c, common-src/bsd-security.c,
6673           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
6674           common-src/dgram.c, common-src/security-util.c,
6675           common-src/stream.c,
6676           common-src/util.c: Replace HAVE_IPV6 by WORKING_IPV6.
6677         * configure.in: Define HAVE_IPV6 if IPv6 is working.
6678
6679 2007-01-04  Jean-Louis Martineau <martineau@zmanda.com>
6680         * changer-src/chg-chio.pl.in, changer-src/chg-iomega.pl.in,
6681           changer-src/chg-rth.pl.in, dumper-src/amgtar.pl.in,
6682           server-src/amoverview.pl.in, server-src/amstatus.pl.in,
6683           server-src/amtoc.pl.in: Clean ENV and set PATH.
6684
6685 2006-12-27  Jean-Louis Martineau <martineau@zmanda.com>
6686         * server-src/driver.c: Don't repport error for many run in a day if
6687                                it's amflush.
6688
6689 2006-12-27  Jean-Louis Martineau <martineau@zmanda.com>
6690         * common-src/util.c (quote_string): Escape '\' character.
6691
6692 2006-12-22  Jean-Louis Martineau <martineau@zmanda.com>
6693         * recover-src/display_commands.c: Send quoted text to amindexd.
6694         * recover-src/extract_list.c: Send quoted text to amindexd.
6695         * recover-src/set_commands.c: Send quoted text to amindexd.
6696
6697 2006-12-22  Jean-Louis Martineau <martineau@zmanda.com>
6698         * changer-src/chg-disk.sh.in: LASTSLOT in a changerfile for chg-disk.
6699
6700 2006-12-22  Jean-Louis Martineau <martineau@zmanda.com>
6701         * client-src/sendsize.c: Compilation fix.
6702
6703 2006-12-18  Jean-Louis Martineau <martineau@zmanda.com>
6704         * common-src/packet.c (pkt_init_empty): New function.
6705         * common-src/packet.h (pkt_init_empty): New prototype.
6706         * amandad-src/amandad.c, common-src/protocol.c,
6707           common-src/security-util.c: Use pkt_init_empty.
6708
6709 2006-12-18  Jean-Louis Martineau <martineau@zmanda.com>
6710         * common-src/conffile.c: Print nothing if the list is emtpy.
6711
6712 2006-12-14  Jean-Louis Martineau <martineau@zmanda.com>
6713         * restore-src/restore.c: Fix filename for output file.
6714
6715 2006-12-12  Jean-Louis Martineau <martineau@zmanda.com>
6716         * common-src/amanda.h: Define __attribute__ for gcc >= 3.
6717         * common-src/packet.c (pkt_init): Accept NULL for fmt.
6718         * amandad-src/amandad.c, common-src/protocol.c,
6719           common-src/security-util.c: Pass NULL to pkt_init.
6720         * amandad-src/amandad.c, changer-src/chg-scsi.c,
6721           changer-src/scsi-linux.c, client-src/sendbackup.c,
6722           common-src/amanda.h, common-src/conffile.c,
6723           common-src/event.c, common-src/packet.c,
6724           common-src/security-util.c, common-src/stream.c,
6725           common-src/util.c, oldrecover-src/amrecover.c,
6726           restore-src/restore.c, server-src/amcheck.c,
6727           server-src/driver.c, server-src/driverio.c,
6728           server-src/taper.c: Fix printf format error.
6729
6730 2006-12-12  Jean-Louis Martineau <martineau@zmanda.com>
6731         * server-src/amindexd.c: Use fgets to read index file because they
6732                                  are not quoted.
6733
6734 2006-12-12  Jean-Louis Martineau <martineau@zmanda.com>
6735         * configure.in: Find patch for sort program.
6736         * server-src/amindexd.c: Clean the indexd file between the uncompress
6737                                  and sort process.
6738
6739 2006-12-08  Jean-Louis Martineau <martineau@zmanda.com>
6740         * configure.in: Add ICE_CHECK_DECL(snprintf,stdio.h)
6741         * configure.in: Add ICE_CHECK_DECL(vsnprintf,stdio.h)
6742         * client-src/sendbackup.c: Fix ignoring return value of write.
6743
6744 2006-12-08  Jean-Louis Martineau <martineau@zmanda.com>
6745         * man/xml-source/amadmin.8.xml, man/xml-source/amanda.8.xml,
6746           man/xml-source/amanda.conf.5.xml, man/xml-source/amcheck.8.xml,
6747           man/xml-source/amfetchdump.8.xml, man/xml-source/ammt.8.xml,
6748           man/xml-source/amrecover.8.xml: Move </note> tag to beginning of line
6749
6750 2006-12-08  Jean-Louis Martineau <martineau@zmanda.com>
6751         * changer-src/chg-rait.sh.in: Fix typo for -reset.
6752
6753 2006-12-07  Jean-Louis Martineau <martineau@zmanda.com>
6754         * server-src/amindexd.c: Fix host case problem.
6755         * server-src/diskfile.c (add_disk, parse_diskline): Update hostname
6756                                                             field.
6757         * server-src/diskfile.h (disk_s): New hostname field.
6758         * server-src/disk_history.c (add_dump): New hostname parameter.
6759         * server-src/disk_history.h (DUMP_ITEM): New hostname field.
6760         * server-src/disk_history.h (add_dump): Protoype change.
6761
6762 2006-12-07  Jean-Louis Martineau <martineau@zmanda.com>
6763         * amandad-src/amandad.c: Add missing HAVE_IPV6.
6764         * common-src/security-util.c: Add missing HAVE_IPV6.
6765         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
6766           common-src/bsdudp-security.c, common-src/dgram.c,
6767           common-src/dgram.h, common-src/stream.c,
6768           common-src/util.c: Fix for broken getaddrinfo:not returning V4MAPPED
6769
6770 2006-12-07  Jean-Louis Martineau <martineau@zmanda.com>
6771         * common-src/conffile.c (lookup_keyword): Use strcasecmp.
6772         * common-src/conffile.c (get_conftoken): Don;t convert to uppercase.
6773         * server-src/getconf.c: Don;t print extra '\n' for --list.
6774
6775 2006-12-04  Jean-Louis Martineau <martineau@zmanda.com>
6776         * common-src/util.c (str_sockaddr): Use host byte order for port.
6777
6778 2006-12-04  Jean-Louis Martineau <martineau@zmanda.com>
6779         * server-src/amtape.h: Remove file.
6780
6781 2006-12-04  Jean-Louis Martineau <martineau@zmanda.com>
6782         Application API phase 1.
6783         * client-src/client_util.c, client-src/client_util.h,
6784           client-src/selfcheck.c, client-src/sendbackup.c,
6785           client-src/sendsize.c, common-src/amfeatures.c,
6786           common-src/amfeatures.h, common-src/fileheader.c,
6787           common-src/fileheader.h, recover-src/extract_list.c,
6788           server-src/amcheck.c, server-src/amstatus.pl.in,
6789           server-src/dumper.c, server-src/Makefile.am,
6790           server-src/planner.c: Fix for Application API.
6791         * configure.in: Fix for moved files.
6792         * dumper-src/generic-dumper.pl.in: Fix for Application API.
6793         * dumper-src/Makefile.am: Fix for renamed files.
6794         * dumper-src/gnutar.pl.in: Renamed to dumper-src/amgtar.pl.in.
6795         * dumper-src/amgtar.pl.in: Fix for Application API.
6796         * dumper-src/star.pl.in: Renamed to dumper-src/amstar.pl.in.
6797         * dumper-src/amstar.pl.in: Fix for Application API.
6798
6799 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
6800         * client-src/sendbackup.c: Kill dump process on error.
6801
6802 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
6803         * changer-src/chg-chio.pl.in: Check tapedev is set.
6804         * changer-src/chg-disk.sh.in: Check tapedev is set.
6805         * changer-src/chg-iomega.pl.in: Check tapedev is set.
6806         * changer-src/chg-manual.sh.in: Check tapedev is set.
6807         * changer-src/chg-mtx.sh.in: Check tapedev is set.
6808         * changer-src/chg-rth.pl.in: Check tapedev is set.
6809         * server-src/amcheck.c: Tapedev is needed only if tpchanger is not set.
6810         * server-src/amflush.c: Tapedev is needed only if tpchanger is not set.
6811         * server-src/amindexd.c: Tapedev is needed only if tpchanger is not set
6812         * server-src/taper.c: Tapedev is needed only if tpchanger is not set.
6813
6814 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
6815         * client-src/sendbackup.c: Ignore tar exit with status 1.
6816
6817 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
6818         * server-src/amindexd.c (clean_backslash): New function use to unescape
6819                                                  '\' characters in index files.
6820
6821 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
6822         * restore-src/restore.c (search_tapes): Fix prompt_out setting.
6823
6824 2006-11-28  Jean-Louis Martineau <martineau@zmanda.com>
6825         * common-src/amanda.h: Don't include gnulib header if CONFIGURE_TEST
6826                                is defined.
6827         * common-src/amflock.c (main): Remove unused fd variable.
6828
6829 2006-11-28  Jean-Louis Martineau <martineau@zmanda.com>
6830         * config/Makefile.am (EXTRA_DIST): Add gnulib.m4i.
6831
6832 2006-11-27  Jean-Louis Martineau <martineau@zmanda.com>
6833         * common-src/util.c (copy_file): Fix compilation error.
6834
6835 2006-11-27  Jean-Louis Martineau <martineau@zmanda.com>
6836         * common-src/stream.c: Fix compilation error.
6837
6838 2006-11-27  Jean-Louis Martineau <martineau@zmanda.com>
6839         * common-src/amanda.h (NI_MAXHOST): Define if not defined.
6840         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
6841           common-src/bsdudp-security.c, common-src/dgram.c,
6842           common-src/security-util.c, common-src/stream.c,
6843           common-src/util.c: HAVE_IPV6 conditional code
6844
6845 2006-11-26  Jean-Louis Martineau <martineau@zmanda.com>
6846         * config/gnulib/*: m4 files for gnulib.
6847         * config/gnulib.m4i: File to load all m4 files for gnulib.
6848         * gnulib/*: gnulib source.
6849         * */Makefile.am (INCLUDES): Add $(top_srcdir)/gnulib.
6850         * */Makefile.am (LDADD): Add ../gnulib/libgnu.$(LIB_EXTENSION).
6851         * Makefile.am (ACINCLUDE_M4_DEPS): Add $(srcdir)/config/gnulib.m4i.
6852         * Makefile.am (SUBDIRS): Add gnulib.
6853         * configure.in: AC_PREREQ(2.59), gl_EARLY, gl_INIT.
6854         * configure.in (AC_CONFIG_FILES): Add gnulib/Makefile.
6855         * autogen: Add config/gnulib.m4i to acinclude.m4.
6856
6857 2006-11-24  Jean-Louis Martineau <martineau@zmanda.com>
6858         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c,
6859           client-src/sendsize.c,
6860           server-src/amindexd.c: Patch for gcc-3.2.3 to compile the new
6861                                  vstralloc macro.
6862
6863 2006-11-24  Jean-Louis Martineau <martineau@zmanda.com>
6864         * common-src/file.c (old_sanitise_filename): New function.
6865         * common-src/amanda.h (old_sanitise_filename): Prototype.
6866         * common-src/util.c (copy_file): New function.
6867         * common-src/util.h (copy_file): Prototype.
6868         * server-src/diskfile.c: Check that two DLE doesn't get the same
6869                                  sanitized filename.
6870         * server-src/amindex.c (getoldindexfname): New function.
6871         * server-src/amindex.h (getoldindexfname): prototype.
6872         * server-src/amindexd.c: Use the old sanitized filename if the new
6873                                  file doesn't exist.
6874         * server-src/amcheck.c: Call check_infofile.
6875         * server-src/planner.c: Call check_infofile.
6876         * server-src/server_util.c (check_infofile): New function, will copy
6877                          the old sanitizes info file if the new doesn't exist.
6878         * server-src/server_util.h (check_infofile): Prototype.
6879
6880 2006-11-23  Jean-Louis Martineau <martineau@zmanda.com>
6881         * common-src/security-util.c (tcpm_recv_token): amanda protocol
6882           packet can be larger than NETWORK_BLOCK_BYTES
6883
6884 2006-11-21  Jean-Louis Martineau <martineau@zmanda.com>
6885         * common-src/stream.c: Fix compiler error.
6886
6887 2006-11-21  Jean-Louis Martineau <martineau@zmanda.com>
6888         * amandad-src/amandad.c, common-src/amanda.h,
6889           common-src/bsd-security.c, common-src/bsdtcp-security.c,
6890           common-src/bsdudp-security.c, common-src/dgram.c,
6891           common-src/dgram.h, common-src/krb4-security.c,
6892           common-src/krb5-security.c, common-src/security-util.c,
6893           common-src/security-util.h, common-src/stream.c,
6894           common-src/util.c, common-src/util.h,
6895           restore-src/amidxtaped.c, server-src/amindexd.c: IPV6.
6896
6897 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
6898         * client-src/sendsize.c, oldrecover-src/display_commands.c,
6899           oldrecover-src/extract_list.c, recover-src/display_commands.c,
6900           recover-src/extract_list.c,
6901           server-src/driver.c: Fix compiler error.
6902
6903 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
6904         * client-src/sendsize.c: Open the amandates file after the
6905                                  <config>/amanda-client.conf file is loaded.
6906
6907 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
6908         * client-src/sendsize.c: Fix compiler error on boris.
6909         * server-src/driver.c: Fix compiler error on rocky.
6910
6911 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
6912         * common-src/security-util.c, server-src/amcheck.c,
6913         * server-src/driver.c, server-src/dumper.c,
6914         * server-src/planner.c, tape-src/output-file.c: Lint cleanup.
6915
6916 2006-11-20  Ian Turner <ian@zmanda.com>
6917         * tape-src/output-file.c: Fix a compilation error related to
6918           improper type casts. Thanks to Satya Ganga for noticing this
6919           problem.
6920
6921 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
6922         * server-src/driver.c: Use temporary variable to scanf an OFF_T_FMT.
6923         * server-src/planner.c: Use temporary variable to scanf an OFF_T_FMT.
6924
6925 2006-11-13  Jean-Louis Martineau <martineau@zmanda.com>
6926         * client-src/selfcheck.c: Work for estimate calcsize and
6927                                   program "DUMP".
6928
6929 2006-11-13  Jean-Louis Martineau <martineau@zmanda.com>
6930         * server-src/amcheck.c: Don't ouput an warning if holdingdisk 'use'
6931                                 is set to 0.
6932
6933 2006-11-09  Jean-Louis Martineau <martineau@zmanda.com>
6934         * man/xml-source/amgetconf.8.xml: Document --list.
6935
6936 2006-11-09  Jean-Louis Martineau <martineau@zmanda.com>
6937         * changer-src/chg-scsi.c: Don't remove '_' from "generic_changer".
6938
6939 2006-11-08  Jean-Louis Martineau <martineau@zmanda.com>
6940         * common-src/amanda.h, common-src/conffile.c,
6941           common-src/conffile.h, common-src/security-util.c,
6942           configure.in, oldrecover-src/amrecover.c,
6943           oldrecover-src/extract_list.c, recover-src/amrecover.c,
6944           recover-src/extract_list.c, restore-src/amrestore.c,
6945           server-src/dumper.c: Fix compiler error on Tru64.
6946
6947 2006-11-08  Jean-Louis Martineau <martineau@zmanda.com>
6948         * common-src/conffile.c (getconf_byname):
6949                                 Parse "DEFINE:identifer:parameter" format.
6950         * common-src/conffile.c (getconf_list): New function to list a DEFINE.
6951         * common-src/conffile.c (lookup_holdingdisk): New function.
6952         * common-src/conffile.h (getconf_list,
6953                                  lookup_holdingdisk): New prototype.
6954         * server-src/getconf.c: accept --list argument and
6955                                 "DEFINE:identifer:parameter" format.
6956         * man/xml-source/amgetconf.8.xml: Document.
6957
6958 2006-11-08  Jean-Louis Martineau <martineau@zmanda.com>
6959         * server-src/driver.c: set off_t variable to 0 before sscanf.
6960         * server-src/planner.c: set off_t variable to 0 before sscanf.
6961
6962 2006-11-07  Jean-Louis Martineau <martineau@zmanda.com>
6963         * server-src/amstatus.pl.in: Improve error message.
6964
6965 2006-11-07  Jean-Louis Martineau <martineau@zmanda.com>
6966         * common-src/security-util.c: Fix coverity bug 170.
6967         * server-src/diskfile.c: Fix coverity bug 147.
6968
6969 2006-11-07  Jean-Louis Martineau <martineau@zmanda.com>
6970         * common-src/conffile.c (validate_chunksize): Check chunksize is >=
6971                                                       2*DISK_BLOCK_KB
6972
6973 2006-11-06  Jean-Louis Martineau <martineau@zmanda.com>
6974         * common-src/amanda.h: Define OFF_T_STRTOL.
6975         * configure.in: Check for strtol and strtoll.
6976
6977 2006-11-02  Ian Turner <ian@zmanda.com>
6978         * common-src/amanda.h: Use atol if atoll is missing.
6979
6980 2006-11-02  Jean-Louis Martineau <martineau@zmanda.com>
6981         * common-src/security-util.c: Better message on invalid size.
6982
6983 2006-11-02  Jean-Louis Martineau <martineau@zmanda.com>
6984         * configure.in: List bsdudp as a udp transport.
6985
6986 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
6987         * server-src/diskfile.c: Don't use 0 for NULL.
6988
6989 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
6990         Revert Ian patch of 2006-10-29.
6991         * common-src/conffile.c: Defile AMANDATES_FILE
6992         * client-src/amandates.h: Don't define AMANDATES_FILE
6993
6994 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
6995         * common-src/conffile.c: Rename DUMPTYPE_START_T to DUMPTYPE_STARTTIME.
6996         * common-src/conffile.h: Rename DUMPTYPE_START_T to DUMPTYPE_STARTTIME.
6997         * server-src/amadmin.c (disklist_one): Print correct starttime.
6998         * server-src/diskfile.c: Set start_t to starttime.
6999         * server-src/diskfile.h (disk_t): Add starttime.
7000
7001 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
7002         * changer-src/scsi-changer-driver.c: Add Tandberg SLR100,
7003                                              more debugging.
7004         * changer-src/sense.c: Add Tandberg SLR100 Tape Drive "SLR100".
7005
7006 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
7007         * common-src/amanda.h: Define dbrename if !DEBUG_CODE.
7008         * restore-src/amidxtaped.c: Declare i if !DEBUG_CODE.
7009
7010 2006-10-30  Jean-Louis Martineau <martineau@zmanda.com>
7011         * server-src/amadmin.c (disklist_one): Print ignore field.
7012         * server-src/amoverview.pl.in: Ignore 'ignore yes' and 'strategy skip'.
7013         * server-src/diskfile.c: Correct hostname allocation.
7014                                  Keep 'ignore yes' and 'strategy skip' DLE in
7015                                  memory, set there todo to 0.
7016         * server-src/diskfile.h: (struct disk_s): New ignore field.
7017
7018 2006-10-29  Ian Turner <ian@zmanda.com>
7019         This was reported as debian bug 394796. Thanks to Damyan Ivanov 
7020         <dam@modsoftsys.com> for reporting and to Bdale Garbee 
7021         <bdale@gag.com> for a preliminary patch.
7022         * common-src/conffile.c: Use AMANDATES_FILE as default for 
7023           location of amandates.
7024         * common-src/amandates.h: Move from client-src/
7025         * client-src/amandates.h: Move to common-src/
7026         * common-src/Makefile.am: Update to reflect new location of 
7027           amandates.h.
7028         * client-src/Makefile.am: ditto.
7029
7030 2006-10-25  Jean-Louis Martineau <martineau@zmanda.com>
7031         Patch by Jay Fenlason
7032         * common-src/rsh-security.c: Fix.
7033
7034 2006-10-24  Jean-Louis Martineau <martineau@zmanda.com>
7035         * common-src/conffile.c (get_config_options): Build and argv of the
7036                                                       -o arguments.
7037         * common-src/conffile.h (get_config_options): Prototype.
7038         * server-src/driverio.c: exec dumper/chunker/driver with the argv from
7039                                  get_config_options
7040         * server-src/amtape.c: Accept -o argument.
7041         * man/xml-source/amtape.8.xml: Document it.
7042
7043 2006-10-24  Jean-Louis Martineau <martineau@zmanda.com>
7044         * server-src/taper.c: Fix allocation problem on tapedev.
7045
7046 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
7047         * common-src/conffile.c (conf_print): Add a parameter if we want
7048                                               CONFTYPE_STRING enclosed in ".
7049         * server-src/planner.c: Use getconf_int to get etimeout value.
7050
7051 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
7052         * server-src/taper.c (free_split_buffer): Correct free.
7053
7054 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
7055         * client-src/sendbackup.c: Parse quote amdevice.
7056         * server-src/amcheck.c: Send quoted amdevice.
7057         * server-src/planner.c: Send quoted amdevice.
7058
7059 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
7060         * common-src/conffile.c (CNF_CTIMEOUT, CNF_DTIMEOUT, CNF_ETIMEOUT):
7061           They are of type CONFTYPE_INT
7062           (CONFTYPE_TIME are for value parsed as "hhmm"")
7063         * common-src/conffile.c (getconf_byname): Use conf_print().
7064         * common-src/conffile.h: Add comment.
7065         * server-src/amcheck.c, server-src/dumper.c, server-src/planner.c:
7066           Use getconf_int to get timeout value.
7067
7068 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
7069         * man/xml-source/amanda.conf.5.xml: Fix formating.
7070
7071 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
7072         * client-src/calcsize.c, client-src/sendsize.c: Remove bogus fseek.
7073
7074 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
7075         * client-src/calcsize.c: Quote amname.
7076
7077 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
7078         * server-src/driver.c: Print an L_STATS with the hostname
7079         * server-src/reporter.c: Print hostname, org, config and date at the
7080                                  beginning of the report
7081
7082 2006-10-16  Jean-Louis Martineau <martineau@zmanda.com>
7083         * common-src/dgram.c (dgram_cat),
7084           common-src/packet.c (pkt_init, pkt_cat): Works correctly with
7085                                                    vsnprintf returning -1.
7086
7087 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
7088         * common-src/Makefile.am (libamanda_la_LIBADD) Remove @LTLIBOBJS@.
7089
7090 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
7091         * server-src/taper.c: stralloc(tapedev).
7092         * configure.in (EXAMPLE_TAPEDEV): Set to /dev/null if no tape-device.
7093         * example/amanda-client.conf.in, example/amanda.conf.in
7094           example/chg-mcutil.conf.in: Use EXAMPLE_TAPEDEV.
7095
7096 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
7097         * common-src/alloca.c, common-src/getcwd.c, common-src/mktime.c,
7098           common-src/memmove.c, common-src/snprintf.c,
7099           common-src/strcasecmp.c, common-src/strerror.c,
7100           common-src/strftime.c, common-src/strncasecmp.c,
7101           common-src/strstr.c, common-src/waitpid.c,
7102           COPYRIGHT-APACHE: Removed files.
7103         * configure.in: Remove many AC_REPLACE_FUNCS.
7104         * Makefile.am (pkgdata_DATA): Remove COPYRIGHT-APACHE.
7105
7106 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
7107         * common-src/Makefile.am: Remove all reference to our regex
7108         * common-src/match.c: #include <regex.h>, the system regex
7109         * common-src/memmove.c: No more memmove in regex-src
7110         * Makefile.am (pkgdata_DATA): Remove COPYRIGHT-REGEX
7111         * Makefile.am (EXTRA_DIST): Remove regex-src/*
7112         * regex-src: Remove directory.
7113         * common-src/regcomp.c, common-src/regerror.c,
7114           common-src/regexec.c, common-src/regfree.c,
7115           common-src/amregex.h: Remove files.
7116
7117 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
7118         * server-src/planner.c: Improve message for dump larger than available
7119                                 tape space if runtapes > 1 and splitsize == 0.
7120
7121 2006-10-10  Jean-Louis Martineau <martineau@zmanda.com>
7122         * server-src/driver.c (wait_children): Don't crash if dumper->chunker
7123                                                is NULL
7124
7125 2006-10-04  Jean-Louis Martineau <martineau@zmanda.com>
7126         * amandad-src/amandad.c: Call security_recvpkt() on A_SENDNACK
7127                                  and dup P_REQ.
7128         * common-src/security-util.c: Improve message.
7129
7130 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
7131         * server-src/amcleanupdisk.c: Accept -o arguments.
7132         * server-src/amcleanup.sh.in: Add missing 'shift' for non-linux system.
7133                                       Accept -o arguments.
7134
7135 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
7136         * server-src/amoverview.pl.in: Fix parsing of time field from amadmin.
7137
7138 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
7139         * restore-src/amidxtaped.c, restore-src/restore.c,
7140           server-src/amcheck.c, server-src/amflush.c,
7141           server-src/amlabel.c, server-src/taper.c,
7142           server-src/taperscan.c: Check for CNF_TAPEDEV == NULL.
7143
7144 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
7145         * common-src/conffile.c: Don't set CNF_TAPEDEV to DEFAULT_TAPE_DEVICE.
7146         * configure.in: Don't set DEFAULT_TAPE_DEVICE.
7147
7148 2006-09-29  Jean-Louis Martineau <martineau@zmanda.com>
7149         * common-src/bsdtcp-security.c: Add logging on error.
7150
7151 2006-09-29  Jean-Louis Martineau <martineau@zmanda.com>
7152         * server-src/amoverview.pl.in: Use shellwords instead of quotewords,
7153           don't add date for disk not in the disklist.
7154
7155 2006-09-28  Jean-Louis Martineau <martineau@zmanda.com>
7156         * common-src/bsd-security.c: Fix %hd printf argument format.
7157         * common-src/security-util.c: Fix %hd printf argument format.
7158
7159 2006-09-28  Jean-Louis Martineau <martineau@zmanda.com>
7160         * common-src/conffile.c (client_keytab): Add DEBUG_*.
7161         * oldrecover-src/amrecover.c: Call read_clientconf.
7162
7163 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
7164         * restore-src/restore.c: Improve debugging.
7165         * server-src/changer.c: Make sure to dup the fd out of the 0..2 range.
7166
7167 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
7168         * restore-src/amfetchdump.c: Pass new prompt_in parameter to
7169                                      search_tapes.
7170         * restore-src/restore.c (search_tapes, load_manual_tape): New prompt_in
7171                                                                   parameter.
7172         * restore-src/restore.h (search_tapes): New prompt_in parameter.
7173         * restore-src/amidxtaped.c: Set new 'FILE *' instead of reusing stdin
7174                                     and stdout.
7175         * server-src/amindexd.c: Set new 'FILE *' instead of reusing stdin
7176                                  and stdout.
7177
7178 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
7179         Patch by Orion Poplawski <orion@cora.nwra.com>
7180         * server-src/planner.c: Add a skip_quoted_line() on error.
7181
7182 2006-09-23  Jean-Louis Martineau <martineau@zmanda.com>
7183         * server-src/amstatus.pl.in: Fix parsing of 'taper: wrote label' line.
7184         * server-src/amtoc.pl.in: Fix parsing of 'START taper' line.
7185
7186 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
7187         * common-src/conffile.h: New CONFTYPE_INTRANGE conftype_t.
7188         * common-src/conffile.c: New CNF_RESERVED_UDP_PORT,
7189                                  CNF_RESERVED_TCP_PORT,
7190                                  CNF_UNRESERVED_TCP_PORT config options.
7191         * common-src/dgram.c: Use the new CNF_RESERVED_UDP_PORT option.
7192         * common-src/stream.c: Use the new CNF_*RESERVED_PORT options.
7193         * man/xml-source/amanda-client.conf.5.xml: Document it.
7194         * man/xml-source/amanda.conf.5.xml: Document it.
7195
7196 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
7197         Patch by William Jojo
7198         * client-src/sendsize.c: Fix #endif for AIX.
7199
7200 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
7201         * common-src/packet.c: Fix use of arglist_start/arglist_end.
7202         * server-src/amindexd.c: Fix use of vsnprintf (for IRIX).
7203         * server-src/logfile.c: Fix use of arglist_start/arglist_end.
7204
7205 2006-09-21  Jean-Louis Martineau <martineau@zmanda.com>
7206         * server-src/amcheck.c: Don't assert if holding use is set to 0.
7207
7208 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
7209         * server-src/find.c (search_logfile): Count 'PARTIAL taper line'.
7210
7211 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
7212         Patch by Paul Bijens
7213         * server-src/amcheck.c: Print "tapelist" instead of "tapefile".
7214
7215 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
7216         * common-src/dgram.c (dgram_bind): Remove unused variables.
7217
7218 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
7219         * common-src/conffile.c, common-src/conffile.h: Add debug_amandad,
7220           debug_amidxtaped, debug_amindexd, debug_amrecover, debug_auth,
7221           debug_event, debug_holding, debug_protocol, debug_planner,
7222           debug_driver, debug_dumper, debug_chunker, debug_taper,
7223           debug_selfcheck, debug_sendsize, debug_sendbackup
7224           configurations options.
7225         * common-sc/debug.c: Use it's own clock function.
7226         * amandad-src/amandad.c, amandad-src/amandad_util.c,
7227           client-src/calcsize.c, client-src/client_util.c,
7228           client-src/killpgrp.c, client-src/rundump.c,
7229           client-src/runtar.c, client-src/selfcheck.c,
7230           client-src/sendbackup.c, client-src/sendsize.c,
7231           common-src/bsd-security.c, common-src/bsdtcp-security.c,
7232           common-src/bsdudp-security.c, common-src/debug.c,
7233           common-src/dgram.c, common-src/event.c,
7234           common-src/krb5-security.c, common-src/pipespawn.c,
7235           common-src/protocol.c, common-src/rsh-security.c,
7236           common-src/security.c, common-src/security-util.c,
7237           common-src/security-util.h, common-src/ssh-security.c,
7238           common-src/stream.c, common-src/util.c,
7239           recover-src/amrecover.c, restore-src/amidxtaped.c,
7240           server-src/amindexd.c, server-src/chunker.c,
7241           server-src/driver.c, server-src/dumper.c,
7242           server-src/planner.c,
7243           server-src/taper.c: Use the debug_* configuration options.
7244                               Use debug_prefix_time to print the time on
7245                               all debugging message.
7246
7247 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
7248         * amandad-src/amandad.c: Use CNF_REP_TRIES.
7249         * common-src/conffile.c: New CONNECT_TRIES, REQ_TRIES, REP_TRIES
7250                                  configuration options.
7251         * common-src/conffile.h: New CONNECT_TRIES, REQ_TRIES, REP_TRIES
7252                                  configuration options.
7253         * common-src/protocol.c: Use CNF_CONNECT_TRIES and CNF_REQ_TRIES.
7254         * common-src/protocol.c: Rename reqtries to resettries.
7255                                  Rename acktries to reqtries.
7256         * man/xml-source/amanda-client.conf.5.xml: Document new options.
7257         * man/xml-source/amanda.conf.5.xml: Document new options.
7258
7259 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
7260         * amandad-src/amandad.c: Read client configuratrion file.
7261         * client-src/client_util.c, client-src/selfcheck.c,
7262           client-src/sendbackup.c, client-src/sendbackup-dump.c,
7263           client-src/sendbackup-gnutar.c, client-src/sendsize.c,
7264           recover-src/amrecover.c, recover-src/extract_list.c,
7265           restore-src/amfetchdump.c, server-src/amadmin.c,
7266           server-src/amcheck.c, server-src/amflush.c,
7267           server-src/amflush.c, server-src/amlabel.c,
7268           server-src/amlogroll.c, server-src/amtrmidx.c,
7269           server-src/amtrmlog.c, server-src/chunker.c,
7270           server-src/diskfile.c, server-src/driver.c,
7271           server-src/dumper.c, server-src/getconf.c,
7272           server-src/planner.c, server-src/reporter.c,
7273           server-src/taper.c: Use generic macro/functions instead of
7274                               client/server functions.
7275         * client-src/client_util.h: Remove unuse macro.
7276         * client-src/Makefile.am: Remove clientconf.? files.
7277         * common-src/amanda.h: Define MAX_DUMPERS.
7278         * common-src/conffile.c: New file, merge of client-src/clientconf.c
7279                                                 and server-src/conffile.c
7280         * common-src/conffile.h: New file, merge of client-src/clientconf.c
7281                                                 and server-src/conffile.c
7282         * common-src/Makefile.am (libamanda_la_SOURCES): Add conffile.c
7283         * common-src/Makefile.am (noinst_HEADERS): Add conffile.h
7284         * common-src/util.c: Move many thing to common-src/conffile.c.
7285         * common-src/util.h: Move many thing to common-src/conffile.h.
7286         * server-src/driverio.h: Remove MAX_DUMPERS define.
7287         * server-src/Makefile.am: Remove conffile.[hc].
7288
7289 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
7290         * common-src/dgram.c (dgram_bind): Don't set SO_REUSEADDR on socket.
7291
7292 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
7293         * common-src/util.c (connect_port): Make EHOSTUNREACH and ENETUNREACH
7294                                             fatal error.
7295
7296 2006-09-18  Jean-Louis Martineau <martineau@zmanda.com>
7297         * common-src/util.c(dump_sockaddr): Convert from network to machine
7298                                             bytes order before printing.
7299         * common-src/dgram.c (dgram_recv): Print the fromaddr.
7300
7301 2006-09-15  Jean-Louis Martineau <martineau@zmanda.com>
7302         * amandad-src/amandad.c: Correct order of close/dup.
7303
7304 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
7305         * common-src/bsdtcp-security.c: Use AMANDA_SERVICE_NAME.
7306
7307 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
7308         * server-src/amstatus.pl.in: Check that $dumpers_active is defined.
7309
7310 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
7311         * common-src/util.c (conftoken_getc): Return an int.
7312
7313 2006-09-11  Jean-Louis Martineau <martineau@zmanda.com>
7314         * client-src/sendbackup-dump.c: Works if rundump is not used.
7315
7316 2006-09-05  Jean-Louis Martineau <martineau@zmanda.com>
7317         * Amanda 2.5.1 released.
7318         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1).
7319         * NEWS: Change in amanda-2.5.1
7320
7321 2006-08-30  Jean-Louis Martineau <martineau@zmanda.com>
7322         * server-src/dumper.c: Typo in error message.
7323
7324 2006-08-29  Jean-Louis Martineau <martineau@zmanda.com>
7325         * client-src/selfcheck.c: Print error message to stdout before
7326                                   calling error().
7327
7328 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
7329         * server-src/dumper.c (log_msgout): Seek to begining of file.
7330
7331 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
7332         * server-src/reporter.c: Report if a dump was successfully retried.
7333
7334 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
7335         * server-src/amstatus.pl.in: Correct size for retried dump.
7336
7337 2006-08-25  Jean-Louis Martineau <martineau@zmanda.com>
7338         * client-src/runtar.c: Check that strcmp(argv[3], "--create") == 0.
7339
7340 2006-08-24  Jean-Louis Martineau <martineau@zmanda.com>
7341         * common-src/statfs.c (scale): Macro replaced by a function.
7342
7343 2006-08-24  Jean-Louis Martineau <martineau@zmanda.com>
7344         * server-src/chunker.c: Use STREAM_BUFSIZE for stream_accept.
7345         * server-src/taper.c: Use STREAM_BUFSIZE for stream_accept.
7346
7347 2006-08-24  Maitreyee Karmarkar <maitreyee.zmanda.com>
7348         * man/xml-source/amcheck.8.xml: amcheck xml man page change 
7349
7350 2006-08-23  Kevin Till <ktill@zmanda.com>
7351         *  server-src/driver.c: fix typo
7352
7353 2006-08-23  Jean-Louis Martineau <martineau@zmanda.com>
7354         * server-src/driver.c (dumper_result): Decrement pendings_aborts.
7355         * server-src/driver.c (handle_dumper_result): Don't send duper result
7356           to chunker if we aborted it.
7357         * server-src/driverio.c (dumper_cmd, chunker_cmd): Don't close the fd
7358           on ABORT.
7359         * server-src/dumper.c: Accept ABORT command.
7360
7361 2006-08-23  Jean-Louis Martineau <martineau@zmanda.com>
7362         * restore-src/restore.c (restore): Set bytes_read to the return value
7363           of read_file_header.
7364
7365 2006-08-22  Jean-Louis Martineau <martineau@zmanda.com>
7366         * tape-src/output-tape.c: Works if EOVERFLOW is not defined.
7367
7368 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
7369         * amandad-src/amandad.c, common-src/rsh-security.c,
7370           common-src/ssh-security.c, restore-src/restore.c,
7371           server-src/changer.c, server-src/dumper.c: Fix sentinel warning.
7372
7373 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
7374         * example/amanda.conf.in: Typo.
7375
7376 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
7377         * server-src/driverio.c: Fix bogus "(unsigned long)-1".
7378
7379 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
7380         * server-src/driver.c (start_some_dumps): Remove bogus free_assignedhd.
7381
7382 2006-08-21  Maitreyee Karmarkar <maitreyee.zmanda.com>
7383         * server-src/amcheck.c: Check specific clients
7384         * man/amcheck.8: add the multiple client check format
7385
7386 2006-08-18  Ian Turner <ian@zmanda.com>
7387         * tape-src/amtapetype.c: Don't crash on exit
7388
7389 2006-08-17  Paddy Sreenivasan <paddy@zmanda.com>
7390         * server-src/driverio.c:
7391         * server-src/changer.c:
7392         * restore-src/amfetchdump.c:
7393         * recover-src/extract_list.c:
7394         * oldrecover-src/extract_list.c:
7395         * common-src/util.c:
7396         * common-src/stream.c:
7397         * common-src/file.c:
7398         * common-src/dgram.c: Fix warnings
7399
7400 2006-08-17  Kevin Till <ktill@zmanda.com>
7401         * common-src/stream.c: Loop 5 times (ntries > 5) on select error
7402
7403 2006-08-14  Paddy Sreenivasan <paddy@zmanda.com>
7404         * client-src/sendsize.c: Fix warning
7405         * server-src/reporter.c: Fix warnings
7406
7407 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
7408         * Amanda 2.5.1b2 released.
7409         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b2).
7410
7411 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
7412         * server-src/driver.c (find_diskspace): Make sure size > 0.
7413
7414 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
7415         * server-src/planner.c: Don't check new disk.
7416
7417 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
7418         * server-src/planner.c: Always log if full size estimate is larger
7419                                 than the available tape space.
7420
7421 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
7422         * server-src/planner.c: Always log if the latest full dump will be
7423                                 overwritten soon.
7424
7425 2006-07-27  Jean-Louis Martineau <martineau@zmanda.com>
7426         * common-src/clock.c (timesub): Don't make a negative time.
7427
7428 2006-07-27  Jean-Louis Martineau <martineau@zmanda.com>
7429         * man/xml-source/amanda.conf.5.xml: Tell which file are loaded.
7430         * man/xml-source/amanda-client.conf.5.xml: Ditto.
7431
7432 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
7433         * NEWS: for 2.5.1b2.
7434
7435 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
7436         * common-src/util.h (CONFTYPE_HOLDING): New conftype.
7437         * common-src/util.c (conf_init_holding, conf_set_holding,
7438                              get_conftype_hold): New fonction.
7439         * example/amanda.conf.in: Example of new holdingdisk value.
7440         * man/xml-source/amanda.8.xml: Example.
7441         * man/xml-source/amanda.conf.5.xml: Document it.
7442         * server-src/amadmin.c (disklist_one): Print holdingdisk value.
7443         * server-src/conffile.c: Parse new CONF_HOLDING type.
7444         * server-src/conffile.h (dumptype_get_to_holdingdisk): Change macro.
7445         * server-src/diskfile.c (parse_diskline): dumptype_get_to_holdingdisk.
7446         * server-src/driver.c: Use new CONFTYPE_HOLDING value.
7447
7448 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
7449         * client-src/selfcheck.c: Fix bug found by coverity.
7450         * common-src/debug.c: Fix bug found by coverity.
7451
7452 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7453         * server-src/amflush.c: Typo.
7454
7455 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7456         * server-src/amflush.c: Correct test for driver_stream.
7457
7458 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7459         * client-src/clientconf.c: Default CLN_AMANDATES to /etc/amandates.
7460         * common-src/util.c (conf_init_size): Type is CONFTYPE_SIZE.
7461         * server-src/conffile.c (getconf_taperalgo): New function.
7462         * server-src/conffile.h (getconf_taperalgo): Prototype.
7463         * server-src/driver.c: Use getconf_taperalgo.
7464
7465 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7466         * client-src/clientconf.c (client_getconf_boolean): New function.
7467         * client-src/clientconf.h (client_getconf_boolean): Prototype.
7468         * server-src/conffile.c (getconf_boolean): New function.
7469         * server-src/conffile.h (getconf_boolean): Prototype.
7470         * restore-src/amidxtaped.c: Use getconf_boolean.
7471         * server-src/amflush.c: Use getconf_boolean.
7472         * server-src/planner.c: Use getconf_boolean.
7473
7474 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7475         * server-src/getconf.c: Don't print BUGGY.
7476         * changer-src/chg-chio.pl.in: Don't parse BUGGY.
7477         * changer-src/chg-iomega.pl.in: Don't parse BUGGY.
7478         * changer-src/chg-zd-mtx.sh.in: Don't parse BUGGY.
7479         * man/xml-source/amgetconf.8.xml: Don't parse BUGGY.
7480         * server-src/amverifyrun.sh.in: Don't parse BUGGY.
7481         * server-src/amverify.sh.in: Don't parse BUGGY.
7482
7483 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7484         * restore-src/restore.c: Cleanup.
7485         * restore-src/amrestore.c: Don't fsf if the last read return 0.
7486
7487 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7488         * client-src/selfcheck.c: Fix bug found by klocwork.
7489         * common-src/rsh-security.c: Fix bug found by klocwork.
7490         * common-src/ssh-security.c: Fix bug found by klocwork.
7491         * server-src/planner.c: Fix bug found by klocwork.
7492
7493 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7494         * tape-src/output-tape.c (tape_tape_open): mt is declared inside #ifdef.
7495
7496 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7497         * server-src/amcheck.c: Fix quoting.
7498
7499 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7500         * client-src/clientconf.c: client_getconf* validate the type.
7501         * common-src/util.c (get_conftype_*): New function.
7502         * common-src/util.h (get_conftype_*): Prototype.
7503         * server-src/conffile.c: getconf* validate the type.
7504         * server-src/conffile.h: Use get_conftype_* function.
7505
7506 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7507         * client-src/clientconf.c: New AMANDATES client config option.
7508         * client-src/clientconf.h: New AMANDATES client config option.
7509         * client-src/amandates.c: Use AMANDATES.
7510         * client-src/amandates.h: Use AMANDATES.
7511         * client-src/selfcheck.c: Use AMANDATES.
7512         * client-src/sendbackup-gnutar.c: Use AMANDATES.
7513         * client-src/sendsize.c:: Use AMANDATES.
7514         * common-src/util.h : New CONF_AMANDATES.
7515         * man/xml-source/amanda-client.conf.5.xml: Document it.
7516
7517 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7518         * client-src/clientconf.c: New GNUTAR_LIST_DIR client config option.
7519         * client-src/clientconf.h: New GNUTAR_LIST_DIR client config option.
7520         * client-src/selfcheck.c: Use GNUTAR_LIST_DIR.
7521         * client-src/sendbackup-gnutar.c: Use GNUTAR_LIST_DIR.
7522         * client-src/sendsize.c: Use GNUTAR_LIST_DIR.
7523         * common-src/util.h: New CONF_GNUTAR_LIST_DIR.
7524         * man/xml-source/amanda-client.conf.5.xml: Document it.
7525
7526 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7527         * client-src/calcsize.c, client-src/killpgrp.c,
7528           client-src/rundump.c, client-src/runtar.c,
7529           client-src/selfcheck.c, client-src/sendbackup.c,
7530           client-src/sendsize.c, common-src/amanda.h,
7531           common-src/debug.c, oldrecover-src/amrecover.c,
7532           recover-src/amrecover.c, restore-src/amfetchdump.c,
7533           restore-src/amidxtaped.c, server-src/amadmin.c,
7534           server-src/amcheck.c, server-src/amcleanupdisk.c,
7535           server-src/amflush.c, server-src/amindexd.c,
7536           server-src/amlabel.c, server-src/amlogroll.c,
7537           server-src/amtape.c, server-src/amtrmidx.c,
7538           server-src/amtrmlog.c, server-src/chunker.c,
7539           server-src/driver.c, server-src/dumper.c,
7540           server-src/getconf.c, server-src/planner.c,
7541           server-src/reporter.c, server-src/taper.c: dbrename ot the config dir.
7542
7543 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7544         * common-src/amanda.h: Define DBG_SUBDIR_SERVER, DBG_SUBDIR_CLIENT
7545                                and DBG_SUBDIR_CLIENT.
7546         * amandad-src/amandad.c, changer-src/chg-scsi.c,
7547           changer-src/chg-scsi-chio.c, client-src/calcsize.c,
7548           client-src/killpgrp.c, client-src/rundump.c, client-src/runtar.c,
7549           client-src/selfcheck.c, client-src/sendbackup.c,
7550           client-src/sendsize.c,
7551           oldrecover-src/amrecover.c, recover-src/amrecover.c,
7552           restore-src/amfetchdump.c, restore-src/amidxtaped.c,
7553           restore-src/amrestore.c, server-src/amadmin.c,
7554           server-src/amcheck.c, server-src/amcleanupdisk.c,
7555           server-src/amflush.c, server-src/amindexd.c,
7556           server-src/amlabel.c, server-src/amlogroll.c,
7557           server-src/amtape.c, server-src/amtrmidx.c,
7558           server-src/amtrmlog.c, server-src/chunker.c,
7559           server-src/diskfile.c, server-src/driver.c,
7560           server-src/dumper.c, server-src/getconf.c,
7561           server-src/infofile.c, server-src/planner.c,
7562           server-src/reporter.c (dbopen): Use DBG_SUBDIR_SERVER,
7563                                          DBG_SUBDIR_CLIENT or DBG_SUBDIR_CLIENT.
7564
7565 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7566         * client-src/calcsize.c: Get config on argument.
7567         * client-src/killpgrp.c: Get config on argument.
7568         * client-src/rundump.c: Get config on argument.
7569         * client-src/runtar.c: Get config on argument.
7570         * client-src/sendbackup.c: Call program with config as argument.
7571         * client-src/sendbackup-dump.c: Call program with config as argument.
7572         * client-src/sendbackup-gnutar.c: Call program with config as argument.
7573         * client-src/sendbackup.h: Add global g_options.
7574         * client-src/sendsize.c: Call program with config as argument.
7575
7576 2006-07-23  Jean-Louis Martineau <martineau@zmanda.com>
7577         * client-src/sendbackup-gnutar.c: Fix bug found by splint.
7578         * client-src/sendsize.c: Fix bug found by splint.
7579
7580 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
7581         * server-src/taper.c: Fix amfree(mem_splitbuf).
7582
7583 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
7584         * server-src/diskfile.c, server-src/taper.c: Fix memory leak found
7585                                                      by coverity.
7586
7587 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
7588         * server-src/taper.c: Fix split_buffer allocation problem.
7589
7590 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
7591         * client-src/selfcheck.c, common-src/security-util.c,
7592           restore-src/restore.c, server-src/diskfile.c: Fix memory leak found
7593                                                         by coverity.
7594
7595 2006-07-20  Jean-Louis Martineau <martineau@zmanda.com>
7596         * changer-src/chg-scsi.c, changer-src/scsi-changer-driver.c,
7597           client-src/amandates.c, client-src/calcsize.c,
7598           client-src/selfcheck.c, client-src/sendbackup.c,
7599           client-src/sendsize.c, common-src/security-util.c,
7600           recover-src/extract_list.c, restore-src/restore.c,
7601           server-src/amindexd.c, server-src/diskfile.c,
7602           server-src/driver.c, server-src/reporter.c,
7603           server-src/tapefile.c, server-src/taper.c: Fix memory leak found
7604                                                      by coverity.
7605
7606 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
7607         * client-src/selfcheck.c : Read client config file.
7608         * client-src/sendbackup.c: Read client config file.
7609         * client-src/sendsize.c  : Read client config file.
7610
7611 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
7612         * amandad-src/amandad.h (g_option_t): Add 'char *config';
7613         * amandad-src/amandad_util.c (parse_g_options): Parse 'config='.
7614         * common-src/amfeatures.h (fe_req_options_config): New amfeature.
7615         * common-src/amfeatures.c (am_init_feature_set):
7616                                                     set fe_req_options_config.
7617         * server-src/amcheck.c: Send 'config=' in global options.
7618         * server-src/dumper.c: Send 'config=' in global options.
7619         * server-src/planner.c: Send 'config=' in global options.
7620
7621 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
7622         * amandad-src/amandad.c: Call dbopen("amandad").
7623         * changer-src/chg-scsi.c: Call dbopen("server").
7624         * changer-src/chg-scsi-chio.c: Call dbopen("server").
7625         * client-src/calcsize.c: Call dbopen("client").
7626         * client-src/getfsent.c: Call dbopen(NULL).
7627         * client-src/killpgrp.c: Call dbopen("client").
7628         * client-src/rundump.c: Call dbopen("client").
7629         * client-src/runstar.c: Call dbopen("client").
7630         * client-src/runtar.c: Call dbopen("client").
7631         * client-src/selfcheck.c: Call dbopen("client").
7632         * client-src/sendbackup.c: Call dbopen("client").
7633         * client-src/sendsize.c: Call dbopen("client").
7634         * common-src/amanda.h (dbopen, debug_open): Take a 'char * subdir'
7635                                                     argument.
7636         * common-src/bsd-security.c: Call dbopen(NULL).
7637         * common-src/debug.c (debug_open): Call debug_setup_1(subdir)
7638         * common-src/debug.c (debug_setup_1): Take a subdir argument,
7639                                               add it to dbgdir.
7640         * common-src/file.c: Call dbopen(NULL).
7641         * common-src/statfs.c: Call dbopen(NULL).
7642         * common-src/token.c: Call dbopen(NULL).
7643         * oldrecover-src/amrecover.c: Call dbopen("client").
7644         * recover-src/amrecover.c: Call dbopen("client").
7645         * restore-src/amfetchdump.c: Call dbopen("server").
7646         * restore-src/amidxtaped.c: Call dbopen("server").
7647         * restore-src/amrestore.c: Call dbopen("server").
7648         * server-src/amadmin.c: Call dbopen("server").
7649         * server-src/amcheck.c: Call dbopen("server").
7650         * server-src/amcleanupdisk.c: Call dbopen("server").
7651         * server-src/amflush.c: Call dbopen("server").
7652         * server-src/amindexd.c: Call dbopen("server").
7653         * server-src/amlabel.c: Call dbopen("server").
7654         * server-src/amlogroll.c: Call dbopen("server").
7655         * server-src/amtape.c: Call dbopen("server").
7656         * server-src/amtrmidx.c: Call dbopen("server").
7657         * server-src/amtrmlog.c: Call dbopen("server").
7658         * server-src/chunker.c: Call dbopen("server").
7659         * server-src/diskfile.c: Call dbopen("server").
7660         * server-src/driver.c: Call dbopen("server").
7661         * server-src/dumper.c: Call dbopen("server").
7662         * server-src/getconf.c: Call dbopen("server").
7663         * server-src/infofile.c: Call dbopen("server").
7664         * server-src/planner.c: Call dbopen("server").
7665         * server-src/reporter.c: Call dbopen("server").
7666         * server-src/taper.c: Call dbopen("server").
7667
7668 2006-07-17  Jean-Louis Martineau <martineau@zmanda.com>
7669         * server-src/chunker.c: Fix rt computation.
7670         * server-src/dumper.c: Fix dumptime computation.
7671         * server-src/taper.c: Fix rt computation.
7672
7673 2006-07-17  Jean-Louis Martineau <martineau@zmanda.com>
7674         * NEWS: Klocwork defects fixed.
7675         * NEWS: Coverity defect fixed.
7676
7677 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
7678         * Makefile.am (pkgdata_DATA): add ReleaseNotes.
7679
7680 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
7681         * Amanda 2.5.1b1 released.
7682         * configure.in: Remove -Werror.
7683
7684 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
7685         * client-src/sendsize.c: Use read/write to copy tar snapshot file.
7686         * client-src/sendbackup-gnutar.c: Ditto.
7687
7688 2006-07-13  Jean-Louis Martineau <martineau@zmanda.com>
7689         * common-src/stream.c (stream_accept): Loop 5 times on select error.
7690
7691 2006-07-13  Jean-Louis Martineau <martineau@zmanda.com>
7692         * server-src/dumper.c: The datafd is not scheduled at start,
7693                                add test for it.
7694         * common-src/stream.c (tcpm_recv_token): Set error_msg.
7695         
7696 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
7697         * common-src/util.c (free_new_argv): Move out of
7698                                              #ifndef HAVE_LIBREADLINE.
7699
7700 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
7701         * server-src/amadmin.c (tape): Report the number of new tapes instead
7702                                        of "a new tape" for each tapes.
7703         * server-src/reporter.c (output_tapeinfo): Ditto.
7704
7705 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
7706         * server-src/taperscan.c (changer_taper_scan): Report error from
7707                                                        changer_find.
7708
7709 2006-07-11  John Franks jrfranks@zmanda.com
7710         * configure.in: Fix multiple definition of readline during cygwin
7711           compile.
7712
7713 2006-07-11  Paddy Sreenivasan <paddy@zmanda.com>
7714         * common-src/pipespawn.c : Fixed compiler warning
7715
7716 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
7717         * man/xml-source/amtapetype.8.xml: No default value for -e.
7718
7719 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
7720         * common-src/util.c: Don't conftoken_ungetc(ch) if ch == EOF.
7721         * server-src/reporter.c: Check tp == NULL.
7722
7723 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
7724         * tape-src/tapetype.c: Make -e an needed argument.
7725         * man/xml-source/amtapetype.8.xml: Update man page.
7726
7727 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
7728         * changer-src/chg-zd-mtx.sh.in: Remove .conf from changerfile.
7729
7730 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
7731         * recover-src/extract_list.c (check_file_overwrite): Renamed from
7732                                                           check_file_overwite.
7733         * recover-src/extract_list.c (check_file_overwrite): Do the path check
7734           in the correct order (from left ro right).
7735
7736 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
7737         * common-src/file.c (debug_agets): Remove call to dbprintf.
7738
7739 2006-07-10  Jean-Louis Martineau <martineau@zmanda.com>
7740         * recover-src/extract_list.c (add_to_unlink_list, do_unlink_list,
7741                       free_unlink_list): New function to manage unlink_list.
7742         * recover-src/extract_list.c (check_file_overwite): Check all
7743           component of an EXTRACT_LIST_ITEM, if a component is not a
7744           directory, add it to the unlink_list.
7745         * recover-src/extract_list.c (extract_files): Call do_unlink_list and
7746           free_unlink_list, rename buf to cwd.
7747
7748 2006-07-10  Jean-Louis Martineau <martineau@zmanda.com>
7749         * common-src/pipespawn.c (pipespawnv_passwd): Add prototype.
7750         * common-src/pipespawn.c (pipespawn, pipespawn): Remove 2 NULL
7751            parameters to the pipespawnv_passwd call.
7752         * common-src/pipespawn.c (pipespawnv_passwd): Remove passwdvar and
7753            passwdfd parameters, add passwdvar and local variable.
7754            Don't use memcpy to set passwdfd.
7755         * common-src/pipespawn.h (pipespawnv_passwd): Remove prototype.
7756
7757 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
7758         * common-src/security-util.c (stream_read_sync_callback): Remove bogus
7759           call of callback.
7760
7761 2006-07-07  Kevin Till  <ktill@zmanda.com>
7762         * common-src/bsd-security.c: use STREAM_BUFSIZE instead of -1
7763         * common-src/bsdtcp-security.c: ditto
7764         * common-src/krb4-security.c: ditto 
7765         * common-src/security-util.c: ditto
7766         * restore-src/amidxtaped.c: ditto
7767
7768 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
7769         * common-src/util.c (get_conftoken): Remove duplicate conftoken_ungetc.
7770
7771 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
7772         * common-src/security-util.c: Validate and report big packet size.
7773
7774 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
7775         * oldrecover-src/Makefile.am: Typo.
7776
7777 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
7778         * client-src/sendsize.c: Typo.
7779
7780 2006-07-06  John Franks <jrfranks@zmanda.com>
7781         * common-src/genversion.c:
7782                 Remove reference to error().  This causes a compile
7783                 error on cygwin.
7784
7785 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
7786         Klocwork bug 128, 170, 182, 470, 517
7787         * changer-src/chg-scsi.c: Validate drivenum, check count_file.
7788         * client-src/sendsize.c: Validate level.
7789         * oldrecover-src/amrecover.c: Use tm.
7790         * recover-src/amrecover.c: Use tm.
7791         * server-src/infofile.c (delete_txinfofile): Use local variable.
7792
7793 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
7794         * server-src/taper.c: Check for cur_filename.
7795         * tape-src/output-file.c: Use vstrextend.
7796         * tape-src/tapeio.c: Check for r.
7797
7798 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
7799         Fix splint warning
7800         * oldrecover-src/extract_list.c (clean_tape_list): Cleanup for splint.
7801         * recover-src/extract_list.c (clean_tape_list): Cleanup for splint.
7802         * server-src/amindexd.c: Add a /*@i@*/.
7803         * server-src/conffile.c: Cast to off_t for conf_init_am64.
7804         * server-src/driver.c: Cast to unsigned to print pid_t.
7805         * server-src/find.c (strip_failed_chunks): Cleanup for splint.
7806
7807 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
7808         Klocwork bug 114
7809         * server-src/amindexd.c: Free their_feature_string.
7810         Klocwork bug 130
7811         * restore-src/amrestore.c: Test maximum value for rst_flags->blocksize.
7812         Klocwork bug 294
7813         * common-src/genversion.c: Check NULL result of malloc.
7814         Klocwork bug 294
7815         * client-src/selfcheck.c: Check NULL result of fdopen.
7816         Klocwork bug 539, 542
7817         * oldrecover-src/extract_list.c: Fix pfn2->next = fn2.
7818         * recover-src/extract_list.c   : Ditto
7819         Klocwork bug 268, 272, 543, 544
7820         * oldrecover-src/extract_list.c: Check for cmd != NULL.
7821         * recover-src/extract_list.c   : Ditto
7822         Klocwork bug 510
7823         * restore-src/amidxtaped.c: Check for argv != NULL.
7824         Klocwork bug 435
7825         * changer-src/scsi-linux.c: Make buffer one larger.
7826         Klocwork bug 520
7827         * changer-src/scsi-changer-driver.c (OpenDevice): Validate parameters.
7828         Klocwork bug 182
7829         * changer-src/chg-scsi.c (clean_tape): Check usagetime != NULL.
7830
7831 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7832         Klocwork bug 551
7833         * regex-src/regcomp.c (allocset): Check for p->g->sets
7834                                                 and p->g->setbits
7835
7836 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7837         Klocwork bug 169, 170, 181
7838         * changer-src/chg-scsi.c: Validate input.
7839
7840 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7841         Klocwork bug 282
7842         * common-src/file.c (rmpdir): Check for p == NULL.
7843
7844 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7845         Klocwork bug 524
7846         * common-src/dgram.c (dgram_send_addr): Set addr_save earlier.
7847
7848 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7849         Klocwork bug 495
7850         * server-src/taper.c (file_reader_side): Maximum value for
7851                                                  fallback_splitsize.
7852
7853 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7854         Klocwork bug 532
7855         * recover-src/display_commands.c: Check for cmd != NULL.
7856         * oldrecover-src/display_commands.c: Ditto
7857
7858 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7859         Klocwork bug 410
7860         * restore-src/restore.c (restore): Check for tmp_filename.
7861
7862 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7863         Klocwork bug 234
7864         * server-src/driver.c: Check for h and activehd >= 0.
7865
7866 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7867         Klocwork bug 338 and 390
7868         * server-src/reporter.c (handle_partial, handle_strange): Check result
7869           of handle_success.
7870
7871 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7872         Klocwork bug 558
7873         * client-src/selfcheck.c (check_options, check_disk): Check for
7874                                                               calcprog == NULL
7875
7876 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7877         Klocwork bug 521
7878         * client-src/clientconf.c (add_client_conf): Check result of realloc.
7879
7880 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7881         Klocwork bug 447 and 449
7882         * restore-src/restore.c: Check for valid sendbackup request.
7883
7884 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7885         Klocwork bug 407
7886         * restore-src/restore.c (restore): Set statinfo.st_size.
7887
7888 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7889         Klocwork bug 189
7890         * common-src/file.c (sanitise_filename): Never return NULL.
7891
7892 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7893         * amandad-src/Makefile.am:    Remove tape-src and libamtape.
7894         * client-src/Makefile.am:     Remove tape-src and libamtape.
7895         * man/Makefile.am:            Cleanup.
7896         * oldrecover-src/Makefile.am: Remove tape-src and libamtape.
7897         * recover-src/Makefile.am:    Remove tape-src and libamtape.
7898         
7899 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7900         Klocwork bug 236
7901         * server-src/driver.c (handle_dumper_result): Check for
7902                                                       dumper->ev_read != NULL.
7903
7904 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7905         Klocwork bug 553
7906         * restore-src/restore.c (search_a_tape): Check for desired_tape == NULL.
7907
7908 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7909         Klocwork bug 556 and 557
7910         * common-src/security-util.c (bsd_recv_security_ok): Check result of
7911           strtok, check service == NULL.
7912
7913 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7914         Klocwork bug 161
7915         * client-src/calcsize.c (calc_load_file): Return NULL if fopen fail.
7916         * client-src/calcsize.c (main):  check NULL result from calc_load_file.
7917
7918 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7919         Klocwork bug 84
7920         * server-src/amflush.c (main): Check return of lookup_disk.
7921
7922 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7923         Klocwork bug 62, 85, 459, 463, 466, 469, 555, 559
7924         * common-src/security-util.c: Check result of fdopen.
7925         * client-src/sendsize.c     : Ditto.
7926         * server-src/amcheck.c      : Ditto.
7927         * server-src/amflush.c      : Ditto.
7928
7929 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7930         Klocwork bug 159, 375, 377, 379, 508, 509, 513, 519
7931         * common-src/bsd-security.c:    Replace malloc by alloc.
7932         * common-src/bsdudp-security.c: Ditto
7933         * common-src/genversion.c:      Ditto
7934         * recover-src/amrecover.c:      Ditto
7935         * restore-src/amidxtaped.c:     Ditto
7936         * server-src/reporter.c:        Ditto
7937
7938 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7939         Klocwork bug 562 and 475
7940         * recover-src/set_commands.c (cd_dir): Check result of rindex.
7941         * oldrecover-src/set_commands.c (cd_dir): ditto.
7942
7943 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7944         Klocwork bug 552
7945         * restore-src/restore.c (load_manual_tape): Alloc space for cur_tapedev.
7946
7947 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7948         Klocwork bug 406
7949         * restore-src/restore.c (restore): Check for final_filename.
7950
7951 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7952         Klocwork bug 318
7953         * server-src/list_dir.c (add_dir_list_item): Check for cur_list->next.
7954
7955 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7956         Klocwork bug 17, 32
7957         * server-src/amadmin.c (disklist_one): Check localtime return NULL.
7958         * server-src/amadmin.c (info_one)    : Ditto.
7959
7960 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7961         Klocwork bug 2, 83, 128, 384, 478, 504, 505, 506, 517, 566, 567
7962         * server-src/amadmin.c (seqdatestr): Check localtime return NULL.
7963         * common-src/util.c (construct_datestamp, construct_timestamp,
7964                              conf_print):         Ditto.
7965         * oldrecover-src/amrecover.c (main):      Ditto.
7966         * oldrecover-src/uscan.l (ll_parse_date): Ditto.
7967         * recover-src/amrecover.c (main):         Ditto.
7968         * recover-src/uscan.l (ll_parse_date):    Ditto.
7969         * server-src/amflush.c (main):            Ditto.
7970         * server-src/reporter.c (handle_success): Ditto.
7971
7972 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7973         Klocwork bug 470
7974         * client-src/sendsize.c (add_diskest): Check for level value.
7975
7976 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7977         Klocwork bug 372
7978         * server-src/reporter.c (nicedate): Check month value.
7979
7980 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7981         Klocwork bug 20
7982         * server-src/amadmin.c (tape): Limit nb_days to 10000.
7983
7984 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7985         Klocwork bug 21
7986         * server-src/amadmin.c (balance): Test 'later' after it is set.
7987
7988 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7989         * common-src/alloc.c (internal_vstralloc): Don't return NULL.
7990
7991 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7992         * server-src/infofile.c (open_txinfofile): Use local variable.
7993
7994 2006-06-29  Jean-Louis Martineau <martineau@zmanda.com>
7995         * restore-src/restore.c (label_of_current_slot): Close the tapefd if
7996                                                          the label mismatch.
7997
7998 2006-06-29  Jean-Louis Martineau <martineau@zmanda.com>
7999         * server-src/find.c (strip_failed_chunks):
8000           - Get a **output_find as parameter.
8001           - Check the label before remove a valid chunk.
8002           - Memory management fix.
8003
8004 2006-06-28  Jean-Louis Martineau <martineau@zmanda.com>
8005         * common-src/security-util.c: Improve message for .amandahosts.
8006
8007 2006-06-27  Ian Turner <ian@zmanda.com>
8008         * common-src/fileheader.c: Fix a bug where spanned dumps would 
8009           always fail.
8010
8011 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
8012         * server-src/amcheck.c: Fix test for holdingdisk negative size.
8013
8014 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
8015         * configure.in: Don't set DEFAULT_TAPE_DEVICE if it is not set.
8016         * client-src/clientconf.c: Work DEFAULT_TAPE_DEVICE not set.
8017         * common-src/genversion.c: Work DEFAULT_TAPE_DEVICE not set.
8018         * recover-src/amrecover.c: Work DEFAULT_TAPE_DEVICE not set.
8019         * server-src/getconf.c:    Work DEFAULT_TAPE_DEVICE not set.
8020
8021 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
8022         Patch by Paul Bijnens
8023         * server-src/amcheck.c: Check for access(hdp->diskdir, X_OK).
8024
8025 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
8026         * server-src/conffile.c (getconf_byname): Check for kt->keyword != NULL.
8027         * client-src/clientconf.c (client_getconf_byname): Ditto
8028
8029 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8030         * recover-src/extract_list.c: check_file_overwite.
8031
8032 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8033         * recover-src/extract_list.c: Do the cleanup of the extract list
8034                                       at the extraction time
8035         * oldrecover-src/extract_list.c: Ditto.
8036
8037 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8038         * NEWS: Add new features.
8039         * ReleasesNotes: New files.
8040
8041 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8042         * docs/Makefile.am (pkgdata_DATA): Add amaespipe.8.txt amcrypt.8.txt
8043           amcrypt-asym-ossl.8.txt amcrypt-ossl.8.txt amfetchdump.8.txt
8044         * docs/amaespipe.8.txt: New file.
8045         * docs/amcrypt.8.txt: New file.
8046         * docs/amcrypt-asym-ossl.8.txt: New file.
8047         * docs/amcrypt-ossl.8.txt: New file.
8048         * docs/amfetchdump.8.txt: New file.
8049
8050 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8051         * docs/Makefile.am (pkgdata_DATA): Add howto-auth.txt.
8052         * docs/howto-auth: Documentation on auth.
8053         * docs/*.txt: Update from xml-docs
8054
8055 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8056         * man/xml-source/amanda.conf.5.xml: Add notes about bsdudp and bsdtcp.
8057         * man/xml-source/amanda-client.conf.5.xml: Ditto.
8058
8059 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8060         * recover-src/extract_list.c (is_empty_dir): New function.
8061         * recover-src/extract_list.c: Print a warning if cwd is not empty.
8062
8063 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8064         * server-src/amadmin.c: Allow 'p' and 'P' in --sort argument.
8065
8066 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8067         * server-src/amadmin.c: Print errstr returned by match_disklist.
8068         * server-src/amcheck.c: Print errstr returned by match_disklist.
8069         * server-src/amflush.c: Print errstr returned by match_disklist.
8070         * server-src/diskfile.c (match_disklist): Return an error str.
8071         * server-src/diskfile.h (match_disklist): New prototype.
8072         * server-src/planner.c: Print errstr returned by match_disklist.
8073         * server-src/reporter.c: Accept host/disk as arguments.
8074
8075 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8076         * server-src/amindexd.c (uncompress_file): Set LC_ALL=C before
8077                                                    executing sort.
8078
8079 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8080         * server-src/driver.c (wait_children, kill_children): New function.
8081         * server-src/driver.c (wait_for_children): Use wait_children and
8082                                                    kill_children.
8083         * server-src/driver.c (main): Use wait_children.
8084         * server-src/driverio.c (taper_cmd, chunker_cmd): Close socket on QUIT
8085                                                           or ABORT command.
8086
8087 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8088         * common-src/amfeatures.c (am_init_feature_set): Set
8089           fe_amrecover_feedme_tape.
8090         * common-src/amfeatures.h (fe_amrecover_feedme_tape): New amfeatures.
8091         * common-src/fileheader.c (print_header): Fix.
8092         * recover-src/extract_list.c: Use fe_amrecover_feedme_tape.
8093         * restore-src/amfetchdump.c: Print error if get_lock == 0.
8094         * restore-src/amidxtaped.c: Call send_message if get_lock == 0.
8095         * restore-src/restore.c: Split search_tapes in 5 functions.
8096         * restore-src/restore.h (send_message): prototype.
8097
8098 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8099         * man/xml-source/amfetchdump.8.xml: Document -O and new -o.
8100         * restore-src/amfetchdump.c: Replace -o by -O
8101
8102 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
8103         * client-src/clientconf.c (parse_client_conf): Fix segmentation fault.
8104         * server-src/conffile.c (parse_server_conf): Fix segmentation fault.
8105
8106 2006-06-21  Kevin Till <ktill@zmanda.com>
8107         * changer-src/chg-juke.sh.in
8108         * changer-src/chg-manual.sh.in
8109         * changer-src/chg-mcutil.sh.in
8110         * changer-src/chg-multi.sh.in
8111         * changer-src/chg-mtx.sh.in
8112         * changer-src/chg-rait.sh.in
8113         * changer-src/chg-disk.sh.in
8114         * changer-src/chg-zd-mtx.sh.in
8115         * changer-src/chg-null.sh.in
8116         * changer-src/chg-chs.sh.in
8117         * client-src/patch-system.sh.in
8118         * amplot/amplot.sh.in
8119         * server-src/amcrypt-ossl.sh.in
8120         * server-src/amrmtape.sh.in
8121         * server-src/amcleanup.sh.in
8122         * server-src/amverifyrun.sh.in
8123         * server-src/amaespipe.sh.in
8124         * server-src/amdump.sh.in
8125         * server-src/amcrypt.sh.in
8126         * server-src/amcrypt-ossl-asym.sh.in
8127         * server-src/amcheckdb.sh.in
8128         * server-src/amfreetapes.sh.in
8129         * server-src/amverify.sh.in
8130          change /bin/sh to @SHELL@ for configure to pick up the correct
8131          shell. Sourceforge bug 1466655
8132         * man/xml-source/amcrypt-ossl-asym.8.xml: it's backup-privkey.pem
8133
8134 2006-06-20  Kevin Till <ktill@zmanda.com>
8135         * common-src/security-util.c: ignore EINTR in net_writev
8136           patch by Jean-Louis Martineau.
8137
8138 2006-06-20  John Franks <jrfranks@zmanda.com>
8139         * server-src/conffile.c:
8140                 Remove Duplicate keyword table entries and alphabetize
8141                 to make future duplicates easier to spot...
8142
8143         * server-src/taper.c:
8144                 Fix compiler warnings when no mmap function is present.
8145
8146 2006-06-20  John Franks <jrfranks@zmanda.com>
8147         * server-src/diskfile.c:
8148                 Default boolean values without parameters to yes if
8149                 no value is present in configuration file.  This
8150                 maintains backward compatibility and is logical since
8151                 a value such as "index" reads as an assertion of fact.
8152
8153 2006-06-19  Jean-Louis Martineau <martineau@zmanda.com>
8154         * docs/wishlist.txt: Remove features done in 2.5.0/2.5.1
8155
8156 2006-06-19  Jean-Louis Martineau <martineau@zmanda.com>
8157         * man/xml-source/amanda.conf.5.xml: amrecover_check_label and
8158                                             amrecover_do_fsf default to yes.
8159         * server-src/conffile (init_dumptype_defaults): DUMPTYPE_INDEX set to 1.
8160         * server-src/diskfile.c (parse_diskline): index set from
8161                                                   dumptype_get_index.
8162
8163 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
8164         * server-src/amstatus.pl.in: Match quotes in DONE line.
8165
8166 2006-06-16  Kevin Till <ktill@zmanda.com>
8167         * example/amanda-client.conf.in:
8168          correct DEFAULT_TAPE_SERVER/DEFAULT_SERVER
8169         * server-src/amcrypt-ossl-asym.sh.in:
8170           set RANDFILE for openssl to place entropy file.
8171         * server-src/amcrypt-ossl.sh.in: ditto
8172
8173 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
8174         * amandad-src/amandad.c   : Use strcasecmp to compare auth.
8175         * client-src/selfcheck.c  : Ditto
8176         * client-src/sendbackup.c : Ditto
8177         * restore-src/amidxtaped.c: Ditto
8178         * server-src/amindexd.c   : Ditto
8179
8180 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
8181         * server-src/amindexd.c (reply, lreply, fast_lreply): Correct use
8182           of arglist_start and arglist_end..
8183         * server-src/amindexd.c (lreply_backend): Remove function.
8184
8185 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
8186         * common-src/bsd-security.c (stream_read_callback): Send error to the
8187                                                             callback.
8188
8189 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
8190         * recover-src/extract_list.c: Typo.
8191         * restore-src/restore.c: Typo.
8192
8193 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
8194         * client-src/clientconf.c: Allow include.
8195         * client-src/clientconf.c (read_confline): Don't crash.
8196         * server-src/conffile.c (read_confline): Don't crash.
8197         * recover-src/amrecover.c: Exit if error in conf file.
8198
8199 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
8200         * common-src/arglist.h: Typo.
8201         * recover-src/extract_list.c: handle MESSAGE from amidxtaped.
8202
8203 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
8204         * common-src/amfeatures.c (am_init_feature_set): Set
8205                                                          fe_amrecover_message.
8206         * common-src/amfeatures.h (am_feature_e): Add fe_amrecover_message.
8207         * common-src/arglist.h (printf_arglist_function3): Prototype.
8208
8209 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
8210         * restore-src/restore.c (send_message): New function that send message
8211                                                 to stderr and/or amrecover.
8212         * restore-src/restore.c: Call send_message on some error path.
8213
8214 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
8215         * common-src/event.c (event_loop_wait, event_wait): Take an
8216                                          event_handle_t * as parameter.
8217         * common-src/event.h: New prototype.
8218         * common-src/bsd-security.c: Call event_wait(bs->ev_read).
8219         * common-src/krb4-security.c: Call event_wait(ks->ev_read).
8220         * common-src/krb5-security.c: Call event_wait(ks->ev_read).
8221         * common-src/security-util.c: Call event_wait(ss->ev_read).
8222
8223 2006-06-15  Kevin Till <ktill@zmanda.com>
8224         * man/xml-source/amcrypt-ossl-asym.8.xml: it's .am_passphrase
8225         * server-src/amcrypt-ossl-asym.sh.in: export PATH
8226         * server-src/amcrypt-ossl.sh.in: export PATH
8227
8228
8229 2006-06-15  Jean-Louis Martineau <martineau@zmanda.com>
8230         * server-src/amcheck.c: -w doesn't change the test selection.
8231         * man/xml-source/amcheck.8.xml
8232
8233 2006-06-15  Jean-Louis Martineau <martineau@zmanda.com>
8234         * server-src/planner.c: Log empty disklist and no DLE selected.
8235
8236 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
8237         * common-src/bsd-security.c: Use %u to print in_port_t data.
8238         * common-src/bsdudp-security.c: Ditto.
8239
8240 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
8241         * changer-src/chg-disk.sh.in: Return the number of slot in output of
8242                                       the -info command.
8243         * changer-src/chg-zd-mtx.sh.in: Ditto.
8244
8245 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
8246         * changer-src/chg-zd-mtx.sh.in: Accept changerfile that already
8247                                         have the .conf suffix.
8248
8249 2006-06-13  Jean-Louis Martineau <martineau@zmanda.com>
8250         * amandad-src/amandad.c (s_ackwait): Resend the REP on receive of a
8251                                              duplicate REQ.
8252
8253 2006-06-13  Jean-Louis Martineau <martineau@zmanda.com>
8254         * common-src/security-util.c (bsd_recv_security_ok): Set error only
8255           if we get an error.
8256
8257 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
8258         * server-src/driver.c: usetimestamps is a warning.
8259
8260 2006-06-12  Kevin Till <ktill@zmanda.com>
8261         * common-src/security-util.c: if host is 127.0.0.1 and either
8262           localhost or localhost.domain is in .amandahost, hostmatch passes.
8263         * common-src/security-util.h: update check_user_amandahosts prototype
8264
8265 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
8266         * amandad-src/amandad.c (process_writenetfd): Close the pipe if the
8267                                                       security_stream is closed.
8268         * recover-src/extract_list.c: Improve message if we don't get thei
8269                                       FEATURE line from amidxtaped.
8270
8271 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
8272         * recover-src/amrecover.c: Read amanda-client.conf and
8273                                    <conf>/amanda-client.conf.
8274
8275 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
8276         * common-src/security-util.c, common-src/tapelist.c,
8277           restore-src/restore.c, server-src/amcheck.c, server-src/amindexd.c,
8278           server-src/amtape.c, server-src/changer.c, server-src/driver.c,
8279           server-src/planner.c, server-src/taper.c,
8280           server-src/taperscan.c: Fix memory leak.
8281
8282 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
8283         * restore-src/restore.c: Fix Adding at end of list.
8284
8285 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
8286         * server-src/taper.c (syncpipe_putstr): Don't crash if str is NULL.
8287
8288 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
8289         * server-src/holding.c (pick_datestamp): Fix reading user input.
8290
8291 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
8292         * recover-src/amrecover.c (sigint_handler): Call send_command only if
8293                                                     amindexd is alive.
8294
8295 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
8296         * common-src/util.c (connect_port): ETIMEDOUT is a fatal error.
8297
8298 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
8299         * common-src/stream.c (stream_client_internal): Get errno set
8300                                                         correctly.
8301         * server-src/driver.c (handle_chunker_result): Don't assert(0) on
8302                               receive of a TRYAGAIN from a chunker, but set
8303                               chunker->result.
8304         * server-src/dumper.c: Try gethostbyname("localhost") before calling
8305                                stream_client and log appropriate message.
8306
8307 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
8308         * server-src/amcheck.c: Report ERROR if gethostbyname("localhost")
8309                                 doesn't succeed.
8310
8311 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
8312         * client-src/clientconf.c (add_client_conf): New function to map
8313                                                      normal option to their
8314                                                      -o equivalent.
8315         * client-src/clientconf.h (add_client_conf): Prototype.
8316         * man/xml-source/amrecover.8.xml: Document -o.
8317         * recover-src/amrecover.c: Also read <config>/amanda-client.conf
8318
8319 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
8320         * server-src/diskfile.c (parse_diskline): Only return 0 or -1.
8321
8322 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
8323         * amandad-src/amandad.h (g_option_t): Add auth.
8324         * amandad-src/amandad_util.c (init_g_options): Set auth to NULL.
8325         * amandad-src/amandad_util.c (parse_g_options): Parse auth.
8326         * amandad-src/amandad_util.c (free_g_options): Free auth.
8327         * client-src/sendbackup.c: Get amandad_auth from command line and
8328                                    compare with REQ packet.
8329         * common-src/amfeatures.h (fe_amindexd_options_hostname,
8330                                    fe_amindexd_options_features,
8331                                    fe_amindexd_options_auth,
8332                                    fe_amidxtaped_options_hostname,
8333                                    fe_amidxtaped_options_features,
8334                                    fe_amidxtaped_options_auth): New amfeatures.
8335         * common-src/amfeatures.c (am_init_feature_set): Set new amfeatures.
8336         * recover-src/amrecover.c: Send auth in OPTIONS of req packet.
8337         * recover-src/extract_list.c: Send auth in OPTIONS of req packet.
8338         * restore-src/amidxtaped.c: Parse amandad_auth from command line.
8339                                     Get auth from OPTIONS line.
8340                                     Compare them.
8341         * server-src/amindexd.c: Parse amandad_auth from command line.
8342                                  Get auth from OPTIONS line.
8343                                  Compare them.
8344
8345 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
8346         * common-src/util.c(connect_port): Return -2 on ECONNREFUSED error
8347                                            from connect.
8348
8349 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8350         * amandad-src/amandad.c: exec the service with the auth as parameter.
8351         * amandad-src/amandad.c(writebuf): Do no close fd.
8352         * client-src/selfcheck.c: Read the auth for the command line and
8353                                   compare with the option string.
8354         * client-src/selfcheck.c(main): Do no close 0,1,2 fd.
8355
8356 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8357         * man/xml-source/amanda.8.xml(CONFIGURATION OVERWRITE): New section.
8358         * man/xml-source/amadmin.8.xml,   man/xml-source/amcheck.8.xml,
8359           man/xml-source/amdump.8.xml,    man/xml-source/amflush.8.xml,
8360           man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml,
8361           man/xml-source/amreport.8.xml,
8362           man/xml-source/amrestore.8.xml: Add -o option.
8363
8364 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8365         * common-src/util.c(get_conftoken): Merge from zmanda.
8366
8367 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8368         * common-src/util.c(get_conftoken): Remove a conftoken_ungetc.
8369
8370 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8371         * common-src/bsd-security.c (stream_read_callback): Merge with zmanda.
8372
8373 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8374         * amandad-src/amandad.c(process_writenetfd): Call security_stream_read
8375                                                      only if size > 0.
8376
8377 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8378         * server-src/conffile.c (lookup_interface): Fix merge error.
8379
8380 2006-06-07  John Franks <jrfranks@zmanda.com>
8381         * common-src/amanda.h:
8382                 Fix isnormal() replacement macro to indirectly
8383                 check if a floating point value is != 0.0.
8384                 This prevents compiler warnings.
8385
8386 2006-06-07  John Franks <jrfranks@zmanda.com>
8387         * common-src/util.c
8388                 Put in "/* NOTREACHED */" comments after error() calls.
8389         * server-src/diskfile.c
8390                 Change disktype index default to yes for backward compatibility.
8391
8392 2006-06-06  John Franks <jrfranks@zmanda.com>
8393         * amandad-src/amandad.c common-src/bsd-security.c:
8394                 Correct fix for infinite amandad loop.
8395
8396 2006-06-06  John Franks <jrfranks@zmanda.com>
8397         * common-src/stream.c common-src/util.c:
8398                 Lint clean again.
8399         * server-src/conffile.c:
8400                 Remove replicated line
8401
8402 2006-06-06  Jean-Louis Martineau <martineau@zmanda.com>
8403         * common-src/util.c (conftoken_ungetc): Return the character.
8404         * common-src/util.c (get_conftoken): Merge to allow escape character.
8405         * common-src/util.c (read_block): Allow STRING as IDENT.
8406         * server-src/conffile.c (getconf_long, getconf_size): New function.
8407         * server-src/conffile.c: Cleanup after Merge.
8408
8409 2006-06-06  Jean-Louis Martineau <martineau@zmanda.com>
8410         * server-src/amadmin.c, server-src/amcheck.c, server-src/amflush.c,
8411           server-src/amlabel.c, server-src/amlogroll.c, server-src/amtrmidx.c,
8412           server-src/amtrmlog.c, server-src/getconf.c,
8413           server-src/reporter.c: Usage -o
8414         * server-src/amflush.c, server-src/amlogroll.c, server-src/amtrmidx.c,
8415           server-src/amtrmlog.c, server-src/chunker.c, server-src/driver.c,
8416           server-src/dumper.c, server-src/getconf.c, server-src/planner.c,
8417           server-src/reporter.c,
8418           server-src/taper.c: Add call to report_bad_conf_arg.
8419         * server-src/conffile.c(get_comprate, get_compress): Parse CONF_END.
8420
8421 2006-06-06  John Franks <jrfranks@zmanda.com>
8422         * configure.in:
8423                 Increase checking level from 1 to 2 for SUN lint.
8424         * client-src/amandates.c client-src/clientconf.c
8425           common-src/security-util.c recover-src/amrecover.c
8426           recover-src/extract_list.c regex-src/regcomp.c server-src/amcheck.c
8427           server-src/amlabel.c server-src/chunker.c server-src/conffile.c
8428           server-src/conffile.h server-src/diskfile.c server-src/diskfile.h
8429           server-src/driver.c server-src/holding.c server-src/reporter.c
8430           server-src/tapefile.c server-src/taper.c tape-src/amdd.c:
8431                 Lint clean again.
8432         * common-src/util.h common-src/util.c:
8433                 Lint clean again.
8434                 Add missing conftype size.
8435         * common-src/bsd-security.c
8436                 Fix infinte loop which consumes all /tmp space and 1/2
8437                 the CPU time when EOF is reached on socket.
8438
8439 2006-06-05  Paddy Sreenivasan <paddy@zmanda.com>
8440         * common-src/util.c: Fix warning
8441
8442 2006-06-05  Jean-Louis Martineau <martineau@zmanda.com>
8443         * restore-src/amfetchdump.c, server-src/amcheck.c,
8444           server-src/amcheckdb.sh.in, server-src/amcleanup.sh.in,
8445           server-src/amdump.sh.in, server-src/amflush.c,
8446           server-src/amlabel.c, server-src/amlogroll.c,
8447           server-src/amtrmidx.c, server-src/amtrmlog.c,
8448           server-src/chunker.c, server-src/conffile.c,
8449           server-src/diskfile.c, server-src/driver.c,
8450           server-src/driverio.c, server-src/dumper.c,
8451           server-src/getconf.c, server-src/planner.c,
8452           server-src/reporter.c, server-src/taper.c,
8453           server-src/taperscan.c: Allow -o options and some memory fix.
8454         * server-src/conffile.c(lookup_dumptype, lookup_tapetype,
8455           lookup_interface): Use strcasecmp.
8456
8457 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
8458         * common-src/stream.c (stream_client_internal): Use connect_portrange.
8459         * common-src/util.c (connect_portrange): First, try to connect with a
8460                                                  port already used.
8461         * common-src/util.c (connect_port): Try to connect with a specific port.
8462         * common-src/util.h: Cleanup.
8463
8464 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
8465         * server-src/reporter.c: Remove empty if.
8466
8467 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
8468         * common-src/util.c (read_block): Don't read CONF_NL aftre the '{'.
8469         * server-src/conffile.c(get_holdingdisk, get_tapetype, get_interface):
8470           Read a CONF_NL after the call to read_block.
8471         * server-src/conffile.c(read_dumptype): Read a CONF_NL if we are not
8472                                                 called from diskfile.
8473         * server-src/diskfile.c: Don't loop on empty line after read_dumptype.
8474
8475 2006-06-01  Kevin Till  <ktill@zmanda.com>
8476         * server-src/amcrypt-ossl.sh.in: symmetric encrypt script using openSSL.
8477           Thanks to Ben Slusky.
8478         * server-src/amcrypt-ossl-asym.sh.in: public-ley encrypt script using openSSL.
8479         * man/xml-source/amcrypt-ossl.8.xml: man page
8480         * man/xml-source/amcrypt-ossl-asym.8.xml: man page
8481         * configure.in: ditto
8482         * man/Makefile.am: ditto
8483         * man/entities/global.entities: ditto
8484         * server-src/Makefile.am: ditto
8485
8486 2006-06-01  John Franks <jfranks@zmanda.com>
8487         Eliminate Cygwin compile warnings.
8488         * client-src/getfsent.c:  Quiet unused parameter warnings.
8489         * client-src/selfcheck.c: Quiet unused parameter warnings.
8490         * common-src/security-util.h: Make hostname const char *.
8491
8492 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8493         * server-src/amcheck.c: holdingdisk_get_disksize() return an off_t.
8494         * server-src/find.c: result should be ssize_t.
8495
8496 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8497         * common-src/amanda.h: Remove am64_t.
8498         * client-src/clientconf.c, client-src/clientconf.h, common-src/util.c,
8499           common-src/util.h, server-src/conffile.c, server-src/conffile.h:
8500           Second pass of config cleanup, add function to parse -o argument.
8501         * recover-src/amrecover.c: -o command argument.
8502         * restore-src/restore.c: Use off_t instead of am64_t.
8503         * server-src/amadmin.c: New config subcommand. -o command argument.
8504         * server-src/amlabel.c: Fix memory leak.
8505         * server-src/diskfile.c: Fix memory leak.
8506         * server-src/diskfile.h: Rename no_hold to to_holdingdisk.
8507         * server-src/driver.c: Many.
8508         * server-src/planner.c: am64_t to off_t.
8509
8510 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8511         This is the first pass of a general rewrite of configuration file
8512         parsing, It will now use array to store all options.
8513
8514         * client-src/clientconf.c:
8515         * client-src/clientconf.h:
8516         * server-src/conffile.c:
8517         * server-src/conffile.h:
8518         * common-src/util.c: Many new functions.
8519         * common-src/util.h:
8520
8521         * restore-src/amidxtaped.c, server-src/amcheck.c,
8522           server-src/amcleanupdisk.c, server-src/amlabel.c,
8523           server-src/diskfile.c, server-src/driver.c, server-src/driverio.c,
8524           server-src/find.c, server-src/holding.c, server-src/planner.c,
8525           server-src/reporter.c,
8526           server-src/taper.c: Use new macro to get configuration option.
8527
8528 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8529         * amandad-src/amandad.c, client-src/amandates.c, client-src/noop.c,
8530           client-src/selfcheck.c, client-src/sendsize.c,
8531           common-src/bsd-security.c, common-src/bsdtcp-security.c,
8532           common-src/bsdudp-security.c, common-src/fileheader.c,
8533           common-src/rsh-security.c, common-src/security-util.c,
8534           common-src/security-util.h, common-src/ssh-security.c,
8535           recover-src/extract_list.c, server-src/amcheck.c,
8536           server-src/amindexd.c, server-src/amlogroll.c,
8537           server-src/diskfile.c, server-src/driver.c, server-src/dumper.c,
8538           server-src/find.c, server-src/logfile.c, server-src/planner.c,
8539           server-src/reporter.c,
8540           server-src/tapefile.c: Fix memory and fd leak.
8541
8542 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8543         * server-src/find.c (search_holding_disk): Take the datestamp from the
8544           file, not the directory name, otherwise usetimestamps=no doesn't
8545           work.
8546
8547 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8548         * common-src/stream.c (stream_server): New priv parameter if we want
8549                                                a reserved port. Don't try to
8550                                                get a reserved port if priv==0.
8551         * common-src/stream.h (stream_server): New prototype.
8552         * common-src/bsd-security.c: Call stream_server with priv==0.
8553         * common-src/krb4-security.c: Call stream_server with priv==1.
8554         * common-src/security-util.c: Call stream_server with priv==0.
8555         * restore-src/amidxtaped.c: Call stream_server with priv==0.
8556         * server-src/chunker.c: Call stream_server with priv==0.
8557         * server-src/taper.c: Call stream_server with priv==0.
8558
8559 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8560         * server-src/diskfile.c: Return -1 if open of diskfile failed.
8561         * server-src/driver.c: Change message if didn't get a DATE line.
8562         * server-src/reporter.c: Ignore faillure in reading amanda.conf
8563                                  disklist and tapelist.
8564
8565 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
8566         * man/xml-source/amanda.8.xml: Documents service in .amandahosts.
8567
8568 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
8569         Previous patch doesn't work because 'make -j2' will use fd 3.
8570         * amandad-src/Makefile.am: Use a temporary file for output of
8571                                    'make listlibsrc'.
8572         * changer-src/Makefile.am: Ditto.
8573         * client-src/Makefile.am: Ditto.
8574         * common-src/Makefile.am: Ditto.
8575         * oldrecover-src/Makefile.am: Ditto.
8576         * recover-src/Makefile.am: Ditto.
8577         * restore-src/Makefile.am: Ditto.
8578         * server-src/Makefile.am: Ditto.
8579         * tape-src/Makefile.am: Ditto.
8580
8581 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
8582         * amandad-src/Makefile.am: 'make listlibsrc' send it's ouput to fd 3.
8583         * changer-src/Makefile.am: Ditto.
8584         * client-src/Makefile.am: Ditto.
8585         * common-src/Makefile.am: Ditto.
8586         * oldrecover-src/Makefile.am: Ditto.
8587         * recover-src/Makefile.am: Ditto.
8588         * restore-src/Makefile.am: Ditto.
8589         * server-src/Makefile.am: Ditto.
8590         * tape-src/Makefile.am: Ditto.
8591
8592 2006-05-28  Paddy Sreenivasan <paddy@zmanda.com>
8593         * tape-src/tapeio.c : Fixed warnings
8594         * tape-src/output-rait.c : Fixed warnings
8595         * tape-src/output-null.c : Fixed warnings
8596         * tape-src/output-file.c : Fiexed warnings
8597         * recover-src/amrecover.c: Fixed warnings
8598         * recover-src/extract_list.c : Fixed warnings
8599         * server-src/amadmin.c : Fixed warnings
8600         * server-src/driver.c : Fixed warnings
8601         * server-src/infofile.c : Fixed warnings
8602
8603 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
8604         * server-src/conffile.c (read_dumptype): Parse SSH_KEYS.
8605
8606 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
8607         * common-src/security-util.c (udp_inithandle): Remove bad merge.
8608         * server-src/amindexd.c: Improve error message.
8609         * server-src/planner.c: Add a space in output.
8610
8611 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
8612         * server-src/conffile.c: Set dpcur.no_hold correctly,
8613                                  Fix for conffile program.
8614
8615 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
8616         Allow many services to share the same tcp connection for
8617         bsdtcp/ssh/rsh.
8618         Add a security_close_connection to the security-api.
8619         * amandad-src/amandad.c (wait_30s, exit_on_qlength): New variable to
8620                                         control auth specific behaviour.
8621         * common-src/bsd-security.c: Add sec_close_connection_none.
8622         * common-src/bsdudp-security.c: Add sec_close_connection_none.
8623         * common-src/krb4-security.c: Add sec_close_connection_none.
8624         * common-src/krb5-security.c: Add sec_close_connection_none.
8625         * common-src/security.h (security_close_connection): Prototype.
8626         * common-src/security-util.h (sec_close_connection_none,
8627                                       tcpm_close_connection): Prototype.
8628         * common-src/security-util.h (struct tcp_conn): Add toclose.
8629         * common-src/security-util.h (struct sec_stream): Add closed_by_me and
8630                                                           closed_by_network.
8631         * common-src/security-util.c (sec_close_connection_none,
8632                                       tcpm_close_connection): New function.
8633         * common-src/security-util.c: Handle many services on one connection.
8634         * common-src/bsdtcp-security.c: Handle many services on one connection.
8635         * common-src/rsh-security.c: Handle many services on one connection.
8636         * common-src/ssh-security.c: Handle many services on one connection.
8637         * recover-src/amrecover.c: Add call security_close_connection.
8638         * recover-src/extract_list.c: Add call security_close_connection.
8639         * server-src/amcheck.c: Add call security_close_connection.
8640         * server-src/dumper.c: Add call security_close_connection.
8641
8642 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
8643         * common-src/security-util.c (bsd_prefix_packet): We need the username
8644           of the getuid() user.
8645
8646 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
8647         * common-src/fileheader.c: Parse datestamp on F_TAPEEND.
8648         * restore-src/amrestore.c: Set read_result to the result of
8649                                    read_file_header.
8650         * restore-src/restore.c (read_file_header): Return a ssize_t.
8651                         Rename bytes_read by read_result.
8652                         Set read_result to the result of read_file_header.
8653         * restore-src/restore.h (read_file_header): New prototype.
8654
8655 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8656         * server-src/taperscan.c: Replace bogus newvstralloc by vstrextend.
8657
8658 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8659         * client-src/getfsent.c (print_entry): Add prototype.
8660         * common-src/token.c (main): Shut up compiler warning.
8661         * server-src/infofile.c (dump_rec, dump_db): Add prototype.
8662
8663 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8664         * amandad-src/amandad.c, common-src/bsd-security.c,
8665           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
8666           common-src/event.c, common-src/krb5-security.c,
8667           common-src/protocol.c, common-src/rsh-security.c,
8668           common-src/security-util.c, common-src/ssh-security.c,
8669           common-src/util.c, server-src/driver.c: comment debugging.
8670
8671 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8672         * common-src/security-util.c: typo.
8673         * server-src/amcheck.c: Make sure all check are done.
8674
8675 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8676         Fix for program not compiled by default.
8677         make bsdsecurity still not compile.
8678         * common-src/bsd-security.c(bind_portrange): prototype change.
8679         * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add match.o.
8680         * server-src/conffile.c: Many typo.
8681         * tape-src/tapeio.c: Use OFF_T_FMT and SSIZE_T_FMT when needed, typo.
8682         
8683 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8684         * common-src/fileheader.c (validate_datestamp): Works for 8 characters
8685                                                         datestamp.
8686         * common-src/security-util.c (tcpm_send_token): netlength must be
8687                                                         uint32_t.
8688         * common-src/security-util.c (bsd_prefix_packet): Fix typo.
8689         * common-src/util.c (get_time): Don't do computation for starttime.
8690         * server-src/conffile.c (read_dumptype): Do computation for starttime.
8691
8692 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8693         * common-src/krb5-security.c (krb5_sendpkt, krb5_stream_read_sync,
8694                                       recv_token): Return ssize_t.
8695         * common-src/krb5-security.c (krb5_accept, krb5_stream_accept,i
8696                                       krb5_stream_auth): Shut up compiler.
8697         * tape-src/output-file.c: Use SSIZE_MAX instead of SSIZE_T_MAX.
8698
8699 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8700         * configure.in(AM_INIT_AUTOMAKE): Fix.
8701
8702 2006-05-25  John Franks <jrfranks@zmanda.com>
8703         Pass user CFLAGS correctly to machine generated code and do not
8704         enforce code quality checks on them.
8705         * configure.in:
8706           Put compiler code check flags into existing, but previously
8707           unused, AM_CFLAGS for Makefiles to pick up.  CFLAGS should
8708           now only contain mandatory flags.
8709
8710         * recover-src/Makefile.am  oldrecover-src/Makefile.am:
8711           Use CFLAGS for compiling C code generated from uparse.y and uscan.l
8712
8713 2006-05-24  John Franks <jrfranks@zmanda.com>
8714         Add support for binary path names on disk and in configuration files.
8715            (Allow spaces in filenames.)
8716
8717         Allow quoted strings for disklist entries.
8718
8719         Lint clean code using sun lint, splint and strict GCC warnings. 
8720         Type / size clean, dead code removal, portibility checks, etc.
8721         Many checks are still turned off.  See configure.in for lint flags used.
8722
8723         Increase debug output in /tmp/amanda/*debug files.
8724
8725         Set SO_REUSEADDR on sockets help avoid running out of ports.
8726
8727         * configure.in:
8728                 Added lint program discovery with specific targets for SUN lint and splint.
8729                 Check each compiler option to see if GCC supports it.
8730                 Enable more code quality warnings.
8731                 Change missing xsltproc to warning rather than error.
8732                 Define _GNU_SOURCES to build flags.
8733                 Make size_t and time_t printf format macros.
8734                 Check for isnormal() availability.
8735                 Don't install man pages if they are not built.
8736                 Fix man pages to not attempt build or install if
8737                         --without-built-manpages is set.
8738
8739         * Makefile.am amandad-src/Makefile.am changer-src/Makefile.am
8740           client-src/Makefile.am common-src/Makefile.am
8741           oldrecover-src/Makefile.am recover-src/Makefile.am
8742           restore-src/Makefile.am server-src/Makefile.am tape-src/Makefile.am:
8743                 Add lint target.
8744
8745         * common-src/amanda.h common-src/dgram.c common-src/stream.c
8746           common-src/util.c:
8747                 Keep checking for ports on all bind errors.
8748                 Delay and retry a few times if all ports are busy.
8749                 Retry bind failures after all methods fail.
8750                 increase bind checking timeout to 30 minutes.
8751
8752         * client-src/amandad.c
8753                 Issue wait when any child exits.  (Get rid of defunct processes)
8754                 Stat() index file before using system command.
8755                   (shell is not reporting failure if index is not present)
8756
8757         * recover-src/extract_list.c:
8758           Fix problem of 'add *' not adding directories.
8759           Fix problem of freeing pointer not obtained through malloc.
8760           Touch up file addition to actually use the file names
8761              retrieved when adding a directory and not the directory itself.
8762
8763         * server-src/taper.c
8764                 Strenghten error recovery for broken syncpipes and writer errors.
8765
8766         * changer-src/chg-scsi-chio.c client-src/amandates.c
8767           client-src/client_util.c client-src/findpass.c client-src/getfsent.c
8768           client-src/selfcheck.c client-src/sendbackup-gnutar.c
8769           client-src/sendbackup-star.c client-src/sendbackup.c
8770           client-src/sendsize.c common-src/bsd-security.c common-src/file.c
8771           common-src/krb5-security.c server-src/amcheck.c server-src/amindexd.c
8772           server-src/diskfile.c server-src/driver.c server-src/dumper.c
8773           server-src/holding.c server-src/infofile.c server-src/logfile.c
8774           server-src/tapefile.c:
8775                 allow empty lines in input streams.
8776
8777         * recover-src/uparse.y
8778                 print message when input is garbage.
8779
8780         * server-src/getconf.c:
8781                 Define HOSTNAME_INSTANCE if it was not already defined
8782                 for Kerberos.
8783
8784         * configure.in: Make readline warning less specific.  Readline is
8785           used by all input from terminal now.
8786
8787 2006-05-24  Kevin Till <ktill@@zmanda.com>
8788         * client-src/sendbackup.c: ignore SIGINT
8789         * common-src/ssh-security.c: add to total only when n > 0
8790         * common-src/ssh-security.c: add ssh to error,
8791           retry writev when EINTR, EAGAIN is seen
8792           to STDOUT. exit when options is chosen in template mode.
8793         * server-src/driver.c: make sure timestamp is not null
8794         * amanda/configure.in: remove template.d/amanda.conf which is a dup 
8795           of amanda-harddisk.conf
8796         * example/Makefile.am: add template.d/README
8797         * amanda-harddisk.conf.in: set tapedev
8798         * recover-src/amrecover.c: aclose socket before exit.
8799         * recover-src/extract_list.c: ditto
8800         * amanda_enterprise.spec: remove template.d/amanda.conf, add template.d/README
8801           in the failure cases. <> user input field.
8802         * server-src/amcheck.c: no quoted text is a warning
8803         * server-src/driver.c: no need to amfree qname
8804           argument. Search mtx in PATH too.
8805         * example/template.d/advanced.conf.in: fix comment for autoflush
8806         * example/template.d/advanced.conf.in: add usetimestamps
8807         * server-src/diskfile.c: to catch unsupported compress-encryption
8808           combination and abort amdump gracefully.
8809         * man/xml-source/amanda.conf.5.xml: fix syntax, add 
8810           dumptype references.  
8811         * man/xml-source/amanda.8.xml: fix syntax
8812         * configure.in:                 ditto
8813         * man/Makefile.am:              ditto
8814         * example/amanda.conf.in:       tidy up
8815         * man/xml-source/amaespipe.8.xml: add uuencode as requirement
8816         * man/xml-source/amcrypt.8.xml:   add uuencode as requirement
8817         * server-src/amcheck.c: catch dumptype misconfiguration
8818         * server-src/diskfile.c: ditto
8819         * server-src/driverio.c: ditto
8820         * server-src/planner.c:  ditto
8821         * server-src/conffile.c: check includefile before calling
8822           read_conffile_recursively
8823         * example/amanda.conf.in:       add public-key encryption dumptype example
8824         * man/xml-source/amanda.8.xml:  fix some formatting     
8825         * server-src/planner.c: adjust setuid() calling sequences so that ssh can work
8826         * server-src/dumper.c:  ditto
8827         * configure.in:              add LOW_TCPPORTRANGE for amrecover
8828         * common-src/stream.c:       use LOW_TCPPORTRANGE
8829         * server-src/amdump.sh.in:   check if config is supplied
8830         * man/xml-source/amrestore.8.xml: add notes on "-f" option
8831
8832 2006-05-24  Ian Turner <ian@zmanda.com>
8833         * configure.in: Properly document --without-xsltproc as itself, 
8834           and not the (nonexistant) option --without-built-manpages.
8835
8836 2006-05-16  John Franks <jrfranks@zmanda.com>
8837         * amandad-src/amandad.c client-src/clientconf.c common-src/bsd-security.c
8838           common-src/bsdudp-security.c common-src/dgram.c common-src/krb4-security.c
8839           common-src/krb5-security.c common-src/match.c common-src/packet.c
8840           common-src/security-util.c common-src/security-util.h
8841           common-src/security.h common-src/util.c oldrecover-src/Makefile.am
8842           oldrecover-src/set_commands.c recover-src/amrecover.c
8843           recover-src/extract_list.c server-src/conffile.c server-src/driver.c
8844           server-src/dumper.c server-src/planner.c server-src/reporter.c:
8845                 Minimal changes to get tree to compile along with some more
8846                 debugging output.
8847
8848 2006-05-15  Jean-Louis Martineau <martineau@zmanda.com>
8849         * server-src/amadmin.c (disklist_one): print spindle.
8850
8851 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
8852         * commmon-src/bsd-security.c: Typo.
8853
8854 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
8855         * common-src/Makefile.am (noinst_HEADERS): Add security-util.h.
8856
8857 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
8858         Build a big tok_t enum for server and client config.
8859         * client-src/clientconf.c: Move many things to util.c.
8860         * client-src/clientconf.h: Remove extern variable.
8861         * common-src/util.c: Add common part of clientconf.c and conffile.c
8862         * common-src/util.h: Prototype.
8863         * server-src/conffile.c: Move many things to util.c.
8864         * server-src/diskfile.c(disk_parserror): Rename from parserror.
8865         * server-src/taper.c: Make many variable static.
8866
8867 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
8868         * restore-src/restore.c: Fix use of possibly NULL input.
8869
8870 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
8871         * common-src/ssh-security.c (ssh_connect): Retrieve ssh_keys from
8872                                                    configuration.
8873         * server-src/amadmin.c(disklist_one): Print ssh_keys.
8874         * server-src/conffile.c(SSH_KEYS): Parse new dumptype option.
8875         * server-src/conffile.h(dumptype_t): Add ssh_keys.
8876         * server-src/diskfile.c(parse_diskline): Copy new field.
8877         * server-src/diskfile.h(disk_t) Add ssh_keys.
8878         * server-src/driverio.c(dumper_cmd): Send dp->ssh_keys in a PORT_DUMP
8879                                              command to the dumper.
8880         * server-src/dumper.c: Parse ssh_keys in a PORT_DUMP command.
8881         * server-src/dumper.c(dumper_get_security_conf): Return the ssh_keys.
8882         * server-src/server_util.c(amhost_get_security_conf): Return the
8883                                                               ssh_keys.
8884
8885 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
8886         * amandad-src/amandad.c: Set allow_many_services to 0 if auth=bsdtcp.
8887         * common-src/bsd-security.c: Use security-util.c.
8888         * common-src/bsdtcp-security.c: New security-api.
8889         * common-src/bsdudp-security.c: New secutity-api.
8890         * common-src/krb4-security.c: Use security-util.c.
8891         * common-src/krb5-security.c: Use security-util.c.
8892         * common-src/Makefile.am (libamanda_la_SOURCES): Add bsdtcp-security.c,
8893                                                              bsdtcp-security.c
8894                                                          and security-util.c.
8895         * common-src/protocol.c: Debuging cleanup.
8896         * common-src/rsh-security.c Use security-util.c.
8897         * common-src/security.c: Use bsdtcp_security_driver
8898                                  and bsdudp_security_driver.
8899         * common-src/security.h(accept): New prototype.
8900         * common-src/security-util.c: Many common function for security-api.
8901         * common-src/security-util.h: many prototype for security-api.
8902         * common-src/ssh-security.c Use security-util.c.
8903         * common-src/stream.c (stream_client_internal): Call connect_portrange.
8904         * common-src/util.c (make_socket): Make a socket.
8905         * common-src/util.c (connect_portrange): Make a socket, bind it and
8906                                                  connect.
8907         * common-src/util.h (connect_portrange): Prototype.
8908         * configure.in: new --with-bsdtcp-security and --with-bsdudp-security.
8909
8910 2006-05-10  Jean-Louis Martineau <martineau@zmanda.com>
8911         Patch by <amanda@inventivetechnology.at>
8912         * man/xml-source/amrecover.8.xml: Document listhost command.
8913
8914 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8915         Patch by <amanda@inventivetechnology.at>
8916         * server-src/amindexd.c: new LISTHOST command.
8917         * recover-src/set_commands.c (list_host): New function.
8918         * recover-src/amrecover.h (list_host): Prototype.
8919         * recover-src/help.c (list_host): Print help.
8920         * recover-src/uscan.l: Parse listhost command.
8921         * recover-src/uparse.y: LISTHOST command.
8922         * oldrecover-src/set_commands.c (list_host): New function.
8923         * oldrecover-src/amrecover.h (list_host): Prototype.
8924         * oldrecover-src/help.c (list_host): Print help.
8925         * oldrecover-src/uscan.l: Parse listhost command.
8926         * oldrecover-src/uparse.y: LISTHOST command.
8927
8928 2006-05-08  Ian Turner <ian@zmanda.com>
8929         * server-src/amcheck.c: Make it an error when the expected new 
8930           tape cannot be found. Thanks to Paul Bijnens
8931           <paul.bijnens@xplanation.com> for the patch and to Jason L 
8932           Tibbitts III <tibbs@math.uh.edu> for noticing this problem.
8933
8934 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8935         * driverio.h (shed_s): Add est_nsize, est_csize, degr_nsize, degr_csize
8936                                for nativa and compressed estimate size.
8937         * planner.c: Send the native and compressed estimate size to the driver.
8938         * driver.c: log with L_STATS the estimate of a successful dump.
8939         * reporter.c: Parse the L_STATS.
8940         * reporter.c(generate_bad_estimate): New function that will put in the
8941                                              NOTES section all bad estimate.
8942
8943 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8944         * configure.in (AC_CONFIG_FILES): Add oldrecover-src/Makefile.
8945         * Makefile.am (RECOVER_SUBDIRS): Add oldrecover-src.
8946         * oldrecover-src/amrecover.c: Copy of old recover-src/amrecover.c
8947         * oldrecover-src/amrecover.h: Copy of old recover-src/amrecover.h
8948         * oldrecover-src/display_commands.c: Copy of old
8949                                              recover-src/display_commands.c
8950         * oldrecover-src/extract_list.c: Copy of old recover-src/extract_list.c
8951         * oldrecover-src/help.c: Copy of old recover-src/help.c
8952         * oldrecover-src/Makefile.am: Copy of old recover-src/Makefile.am
8953         * oldrecover-src/set_commands.c: Copy of old recover-src/set_commands.c
8954         * oldrecover-src/uparse.y: Copy of old recover-src/uparse.y
8955         * oldrecover-src/uscan.l: Copy of old recover-src/uscan.l
8956         * recover-src/amrecover.c: Works with security-api.
8957         * recover-src/amrecover.h: Works with security-api.
8958         * recover-src/extract_list.c: Works with security-api.
8959
8960 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8961         * amandad-src/amandad.c: Fixup.
8962
8963 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8964         * common-src/packet.h: pkt_t.body is now a char*.
8965         * common-src/packet.c (pkt_init): Return an alloced pkt.body.
8966         * common-src/packet.c (pkt_cat): Increade pkt.body size if needed.
8967         * common-src/protocol.c: Free allocated pkt.body.
8968         * common-src/dgram.c (dgram_cat): Return int.
8969         * common-src/dgram.h (dgram_cat): New prototype.
8970         * common-src/krb5-security.c: Work with dynamicaly allocated packet
8971                                       body.
8972         * common-src/rsh-security.c: Work with dynamicaly allocated packet
8973                                      body.
8974         * common-src/ssh-security.c: Work with dynamicaly allocated packet
8975                                      body.
8976         * amandad-src/amandad.c: Work with dynamicaly allocated packet body.
8977         * server-src/amcheck.c: Don't limit packet size.
8978         * server-src/planner.c: Don't limit packet size.
8979
8980 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8981         * amandad-src/amandad.c (service_new): Apply the correct patch.
8982
8983 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8984         * server-src/taper.c: Fix compiler warning.
8985         * common-src/match.c: Many function get const parameters.
8986         * common-src/amanda.h: Prototype change.
8987
8988 2006-05-07  Jean-Louis Martineau <martineau@zmanda.com>
8989         * amandad-src/amandad.c (service_new): Make sur that the 3 data_read[]
8990           and the 3 data_write[] fd are not in the range DATA_FD_OFFSET to
8991           DATA_FD_OFFSET+DATA_FD_COUNT-1.
8992
8993 2006-05-05  Jean-Louis Martineau <martineau@zmanda.com>
8994         * common-src/tapelist.c (append_to_tapelist): Remove bad amfree.
8995
8996 2006-05-05  Nikhil Bandiwadekar <nikhil@zmanda.com>
8997         * server-src/conffile.c: fix to correctly handle am64 datatype
8998
8999 2006-05-04  Jean-Louis Martineau <martineau@zmanda.com>
9000         * server-src/taper.c: Write the slot number in the
9001                               'taper: wrote label' line.
9002         * server-src/amverifyrun.sh.in: Parse that line.
9003
9004 2006-05-02  Jean-Louis Martineau <martineau@zmanda.com>
9005         * amstatus.pl.in: Limit characters for hostname in setup_estimate line.
9006
9007 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
9008         * common-src/rsh-security.c: Pass "amdump amindexd amidxtaped" option
9009                                      to amandad.
9010         * common-src/ssh-security.c: Ditto.
9011
9012 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
9013         * amandad-src/amandad.c: Accept a list of services on the command line.
9014
9015 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
9016         * common-src/tapelist.c (append_to_tapelist): Fix memory leak.
9017
9018 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
9019         * amandad-src/amandad.c: Fix memory leak.
9020         * amandad-src/amandad.h (free_g_options): Prototype.
9021         * amandad-src/amandad_util.c (free_g_options): New function to free a
9022                                                        g_option_t.
9023         * server-src/amcleanupdisk.c: Fix memory leak.
9024         * server-src/reporter.c: Fix memory leak.
9025         * server-src/tapefile.c: Fix memory leak.
9026         * server-src/taperscan.c: Put message in error_message.
9027
9028 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9029         * server-src/amcheck.c (start_server_check): Memory leak.
9030
9031 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9032         * amandad-src/Makefile.am (noinst_HEADERS): Add amandad.h.
9033         * client-src/Makefile.am (noinst_HEADERS): Add clientconf.h.
9034
9035 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9036         * man/xml-source/amanda-client.conf.5.xml: New file.
9037
9038 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9039         * common-src/amanda.h (check_user_ruserok, check_user_amandahosts):
9040           Remove prototype.
9041         * common-src/bsd-security.c: Pass the service name across check_user*
9042           function and validate it from the .amandahosts file.
9043
9044 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9045         * restore-src/amidxtaped.c: Can be launched by amandad.
9046         * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
9047         * server-src/Makefile.am (amidxtaped__LDADD): Link with libamandad.
9048         * restore-src/restore.c: Fix indentation.
9049
9050 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9051         * server-src/amindexd.c: Can be launched by amandad
9052         * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
9053         * server-src/Makefile.am (amindexd_LDADD): Link with libamandad.
9054
9055 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9056         * amandad-src/amandad.c: New file.
9057         * amandad-src/amandad.h: New file.
9058         * amandad-src/amandad_util.c: New file, add function init_g_options
9059                                       parse_g_options.
9060         * amandad-src/Makefile.am: New file.
9061         * client-src/amandad.c: Removed file.
9062         * client-src/amandad.h: Removed file.
9063         * client-src/client_util.c (init_g_options, parse_g_options): Remove.
9064         * client-src/client_util.h (init_g_options, parse_g_options): Remove.
9065         * client-src/Makefile.am (INCLUDES): -I$(top_srcdir)/amandad-src
9066         * client-src/Makefile.am (libexec_PROGRAMS): Remove amandad.
9067         * client-src/Makefile.am (LDADD): Add
9068                                   ../amandad-src/libamandad.$(LIB_EXTENSION).
9069         * client-src/selfcheck.c: #include "amandad.h".
9070         * client-src/sendsize.c: #include "amandad.h".
9071         * configure.in (AC_CONFIG_FILES): amandad-src/Makefile.
9072         * Makefile.am (SUBDIRS): amandad-src.
9073
9074 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9075         * docs/security-api.txt: Document security_read_sync.
9076         * common-src/security.h: Typo.
9077
9078 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9079         * client-src/amandad.c (service_new): Pass the "amandad" argument to
9080                                               the service.
9081
9082 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9083         * common-src/bsd-security.c: Allow to run many services on the same
9084                                      client. Cleanup.
9085         * common-src/rsh-security.c: Ditto.
9086         * common-src/ssh-security.c: Ditto.
9087
9088 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9089         * common-src/security.h (security_stream_read_sync): Prototype.
9090         * common-src/bsd-security.c (bsd_stream_read_sync): New function.
9091         * common-src/krb4-security.c (krb4_stream_read_sync): New function.
9092         * common-src/krb5-security.c (krb5_stream_read_sync): New function.
9093         * common-src/rsh-security.c (rsh_stream_read_sync): New function.
9094         * common-src/ssh-security.c (ssh_stream_read_sync): New function.
9095
9096 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9097         * client-src/amandad.c: Open pipe in both direction to the services.
9098         * client-src/sendbackup.c: Deal with the newer pipe.
9099
9100 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9101         * client-src/clientconf.c: New file to read the client configuration
9102                                    file.
9103         * client-src/clientconf.h: Header.
9104         * client-src/Makefile.am: Link clientconf into libamclient.
9105         * configure.in (AC_CONFIG_FILES): example/amanda-client.conf.
9106         * docs/amanda-client.conf.5.txt: New documentation.
9107         * docs/Makefile.am (pkgdata_DATA): amanda-client.conf.5.txt.
9108         * example/amanda-client.conf.in: exemple.
9109         * example/Makefile.am  (noinst_DATA): amanda-client.conf.
9110         * man/entities/global.entities: amclientconf.
9111         * man/Makefile.am (COMMON_MAN5_PAGES): amanda-client.conf.5.
9112         * man/xml-source/amanda.8.xml (SEE ALSO): amanda-client.conf(5).
9113         * man/xml-source/amanda.conf.5.xml (SEE ALSO): amanda-client.conf(5).
9114         * man/xml-source/amrecover.8.xml (SEE ALSO): amanda-client.conf(5).
9115
9116 2006-04-26  K. K. George<kkg@zmanda.com>
9117         * server-src/reporter.c: Fix to untaint the mailto parameter.
9118         * server-src/amcheck.c: Fix to untaint the mailto parameter
9119         * changer-src/chg-scsi.c: Fix to untaint the mailto parameter.
9120         * changer-src/chg-scsi-chio.c: Fix to untaint the mailto parameter.
9121         * common-src/util.h: Added function to check if the mailto 
9122           parameter is untainted
9123         * common-src/util.c: Added function to check if the mailto 
9124           parameter is untainted
9125
9126 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
9127         * common-src/event.c(event_wait): New function.
9128         * common-src/event.h(event_wait): prototype.
9129         * docs/eventapi.txt: Document event_wait.
9130
9131 2006-04-24  Jean-Louis Martineau <martineau@zmanda.com>
9132         * server-src/planner.c: Fix divide by zero if runtapes==0.
9133
9134 2006-04-24  K. K. George<kkg@zmanda.com>
9135         * server-src/reporter.c: Fix to make the mailto parameter in
9136           amanda.conf optional. Added two more commandline options
9137           -i & -Maddress.
9138         * server-src/amcheck.c: Fix to make the mailto parameter in
9139           amanda.conf optional.
9140         * man/xml-source/amreport.8.xml: Modified to document the
9141           -i & -Maddress commandline parameters
9142         * docs/amreport.8.txt: Modified to document the
9143           -i & -Maddress commandline parameters
9144         * changer-src/chg-scsi.c: Fix to make the mailto parameter in
9145           amanda.conf optional.
9146         * changer-src/chg-scsi-chio.c: Fix to make the mailto parameter in
9147           amanda.conf optional.
9148
9149 2006-04-23  Jean-Louis Martineau <martineau@zmanda.com>
9150         * server-src/driver.c (handle_chunker_result): make sure that
9151                                                        est_size > act-size.
9152
9153 2006-04-21  Jean-Louis Martineau <martineau@zmanda.com>
9154         * server-src/changer.c (changer_command): Make sure fd[0] != 1.
9155
9156 2006-04-19  Jean-Louis Martineau <martineau@zmanda.com>
9157         * restore-src/amidxtaped.c: Cleanup.
9158
9159 2006-04-19  Ian Turner <ian@zmanda.com>
9160         * tape-src/output-tape.c: Do a more thourough check to ensure 
9161           that we actually got a tape device, before proceeding to use 
9162           it.
9163
9164 2006-04-18  Ian Turner <ian@zmanda.com>
9165         * changer-src/chg-disk.sh.in: Check that the virtual device is a 
9166           directory with proper permissions.
9167         * server-src/changer.c: Do the right thing (failure) if there is 
9168           a problem with the changer.
9169
9170 2006-04-18  Ian Turner <ian@zmanda.com>
9171         * recover-src/uscan.l: Accept setdate of the form
9172           yyyy-MM-dd-hh-mm in addition to yyyy-MM-dd-hh-mm-ss.
9173         * man/xml-source/amrecover.8.xml: Document this change.
9174
9175 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
9176         * recover-src/help.c: Document setdate YYYY-MM-DD-HH-MM-SS format.
9177         * man/xml-source/amrecover.8.xml: Ditto.
9178
9179 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
9180         * client-src/amandad.c: Use %p to printf pointer.
9181
9182 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
9183         * server-src/amtape.c: Add update command.
9184
9185 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
9186         * server-src/taper.c: log_add(L_WARNING) the output of taper_scan if
9187                                no valid tape are found.
9188
9189 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
9190         * server-src/amcheck.c: Call taper_scan with
9191                 (..., FILE_taperscan_output_callback,outf) arguments.
9192         * server-src/amtape.c:  Call taper_scan with
9193                 (..., FILE_taperscan_output_callback,stderr) arguments.
9194         * server-src/taper.c:   Call taper_scan with
9195                 (..., CHAR_taperscan_output_callback, &error_msg) arguments.
9196         * server-src/taperscan.h(FILE_taperscan_output_callback,
9197                                  CHAR_taperscan_output_callback): Protoype.
9198         * server-src/taperscan.h(taper_scan): New protoype, remove
9199           error_message arg, add taperscan_output_callback and data arg.
9200         * server-src/taperscan.c(FILE_taperscan_output_callback): Callback
9201           that print the msg to it's arg, which is FILE*.
9202         * server-src/taperscan.c(CHAR_taperscan_output_callback): Callback
9203           that append the msg to it's arg, which is char*.
9204         * server-src/taperscan.c(taper_scan): Fix for new arguments.
9205         * server-src/taperscan.c(changer_taper_scan): Fix for new arguments.
9206
9207 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
9208         * man/xml-source/amanda.conf.5.xml: Document amandad_path and
9209                                             client_username dumptype option.
9210
9211 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
9212         * common-src/krb4-security.c: Increase timeout to 60 seconds.
9213         * common-src/rsh-security.c: Increase timeout to 60 seconds.
9214         * common-src/ssh-security.c: Increase timeout to 60 seconds.
9215
9216 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
9217         * server-src/conffile.c: New configuration option usetimestamps.
9218         * server-src/conffile.h: New configuration option usetimestamps.
9219         * example/amanda.conf.in: Document new usetimestamps options.
9220         * man/xml-source/amanda.conf.5.xml: Document new usetimestamps options.
9221         * server-src/amflush.c: Use datestamp or timestamp depending of
9222                                 usetimesstamps.
9223         * server-src/planner.c: Use datestamp or timestamp depending of
9224                                 usetimesstamps.
9225         * server-src/driver.c: Log an ERROR if many run a day and
9226                                usetimestamps us set to no.
9227
9228 2006-04-07  Ian Turner <ian@zmanda.com>
9229         * server-src/changer.c: Don't crash if we go to taperscan "Plan 
9230           B".
9231
9232 2006-04-07  Ian Turner <ian@zmanda.com>
9233         * server-src/changer.c: Only print changer debug messages if 
9234           there was a problem.
9235
9236 2006-04-07  Ian Turner <ian@zmanda.com>
9237         * recover-src/amrecover.c: Print a more helpful command if mount
9238           point autodetection fails.
9239         * recover-src/display_commands.c: Print a more helpful message
9240           if the user tries to ls without having setdisk earlier.
9241
9242 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
9243         * server-src/amadmin.c: Fix use of datestamp as int.
9244         * server-src/find.c: Ditto.
9245         * server-src/reporter.c: Ditto.
9246         * server-src/tapefile.c: Ditto.
9247
9248 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
9249         * common-src/Makefile.am: Fix dependency between genversion and
9250                                   versuff.o.
9251
9252 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
9253         * recover-src/amrecover.c: Change initialization of server_name and
9254                                    tape_server_name.
9255
9256 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
9257         * restore-src/amrestore.c: reset count_error to 0 on a restore.
9258
9259 2006-04-06  Kevin Till <ktill@zmanda.com>
9260         * server-src/Makefile.am: always install planner/dumper setuid-root
9261         * server-src/amcheck.c:   check planner/dumper for setuid-root
9262         * server-src/dumper.c:    drop privilege asap. Switch between bsd 
9263           and ssh auth is now possible with the same installation.
9264         * server-src/planner.c:   ditto
9265
9266 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
9267         * server-src/taperscan.c (changer_taper_scan): Pass a pointer to the
9268           changer_loadslot call.
9269
9270 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
9271         * server-src/tapefile.c (lookup_last_reusable_tape): Fix a datestamp
9272           test with an int.
9273
9274 2006-04-06  Ian Turner <vectro@vectro.org>
9275         * recover-src/amrecover.c (main): Check AMANDA_SERVER and 
9276           AMANDA_TAPE_SERVER environment variables before falling back 
9277           to compiled-in defaults. Document this new behavior. Thanks to 
9278           Malcolm Locke <malc@hoodee.co.uk> for the idea and patch.
9279
9280 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
9281         * server-src/reporter.c (handle_chunk): CHUNK line always have the
9282           datestamp.
9283
9284 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9285         * server-src/krb5-security.c: Fix for krb5_connect call in
9286            open_callback.
9287
9288 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9289         * server-src/driver.c (start_some_dumps): Recover correctly if the
9290           chunker reply with something that is not a PORT command.
9291         * server-src/driver.c (dump_to_tape): remove duplicate free_serial.
9292         * server-src/driverio.c: Improve debugging.
9293
9294 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9295         * common-src/tapelist.c(unmarshal_tapelist_str): Fix
9296           "value computed is not used" compiler warning.
9297
9298 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9299         * common-src/bsd-security.c (bsd_connect): New datap argument.
9300         * common-src/krb4-security.c (krb4_connect): New datap argument.
9301         * common-src/krb5-security.c (krb5_connect): New datap argument.
9302         * common-src/rsh-security.c (rsh_connect): New datap argument,
9303                  retrieve amanda_path and client_username from configuration.
9304         * common-src/ssh-security.c (ssh_connect): New datap argument,
9305                 retrieve amanda_path and client_username from configuration.
9306         * common-src/protocol.c: Pass new datap argument to security_connect.
9307         * common-src/security.h(connect): New prototype.
9308         * common-src/security.h(security_connect): Add datap to macro.
9309         * server-src/amadmin.c(disklist_one): Print amandad_path and
9310                                               client_username.
9311         * server-src/conffile.c(AMANDAD_PATH, CLIENT_USERNAME): Parse new
9312                                 dumptype option.
9313         * server-src/conffile.h(dumptype_t): Add amandad_path and
9314                                              client_username.
9315         * server-src/diskfile.c(parse_diskline): Copy new field.
9316         * server-src/diskfile.h(disk_t) Add amandad_path and client_username.
9317         * server-src/driverio.c(dumper_cmd): Send dp->amandad_path and
9318           dp->client_username in a PORT_DUMP command to the dumper.
9319         * server-src/dumper.c: Parse amandad_path and client_username in a
9320                                PORT_DUMP command.
9321         * server-src/dumper.c(dumper_get_security_conf): New function to return
9322                                 configuration option to the security-api.
9323         * server-src/dumper.c: Use dumper_get_security_conf for the callback
9324                                to protocol_sendreq.
9325         * server-src/planner.c Use amhost_get_security_conf for the callback
9326                                to protocol_sendreq.
9327         * server-src/amcheck.c: Use amhost_get_security_conf for the callback
9328                                 to protocol_sendreq.
9329         * server-src/server_util.c(amhost_get_security_conf): New function to
9330                         return configuration option to the security-api,
9331                         it expect an am_host_t arg.
9332         * server-src/server_util.h(amhost_get_security_conf): Prototype.
9333
9334 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9335         * server-src/amstatus.pl.in: Remove duplicate instruction.
9336
9337 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9338         * server-src/amindexd.c: Remove all code that set str_buffer_size,
9339                                  rename str_buffer_size to reply_buffer_size,
9340                                  rename buf to reply_buffer,
9341         * server-src/amindexd.c(reply, lreply_backend): Increase reply_buffer
9342                                                         size if required.
9343
9344 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9345         * common-src/amfeatures.h: Add fe_amrecover_timestamp amfeature.
9346         * common-src/amfeatures.c (am_init_feature_set):
9347                                                  Add fe_amrecover_timestamp.
9348         * server-src/amindexd.c(opaque_ls_one): New function.
9349         * server-src/amindexd.c(disk_history_list,opaque_ls_one): Send only a
9350           datestamp if client doesn't have fe_amrecover_timestamp.
9351
9352 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9353         * recover-src/uscan.l: Parse "setdate YYYY-MM-DD-HH-MM-SS".
9354         * server-src/amindexd.c (cmp_date): New function to cmp datestamp with
9355                                             timestamp, use it where needed.
9356         * server-src/amindexd.c (amindexd_nicedate): Fix for timestamp.
9357         * server-src/amtrmidx.c: Fix for timestamp.
9358         * server-src/disk_history.h (DUMP_ITEM): Increase size of date.
9359
9360 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9361         * server-src/amflush.c: Send DATE line to driver, use timestamp.
9362         * server-src/amindex.c (getindexfname): Increase datebuf size.
9363         * server-src/amtrmlog.c: Fix bug with date_keep computation if
9364                                  dumpcycle is INF.
9365         * server-src/amtrmlog.c: rotate timestamped log file.
9366         * server-src/chunker.c: Receive START cmd, use timestamp.
9367         * server-src/driver.c: Receive DATE line, send START cmd to chunker,
9368                                use timestamp.
9369         * server-src/driverio.c (startup_dump_processes): Send START cmd to
9370                                                           dumper.
9371         * server-src/driverio.c (dumper_cmd, chunker_cmd): Send START command.
9372         * server-src/driverio.h (startup_dump_processes): Prototype change,
9373                                                           need the timestamp.
9374         * server-src/dumper.c: Receive START cmd, use timestamp.
9375         * server-src/find.c (find_nicedate): Fix for timestamp.
9376         * server-src/planner.c: Send DATE line to driver, use timestamp.
9377         * server-src/server_util.c (cmdstr): Add START.
9378         * server-src/server_util.h (cmd_t): Add START.
9379         * server-src/taper.c: Get timestamp from TAPER_START command.
9380
9381 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9382         * server-src/amindexd.c (amindexd_nicedate): New function.
9383         * server-src/find.h (struct find_result_s): Remove datestamp and
9384                  datestamp_aux field, only timestamp will be used.
9385         * restore-src/amfetchdump.c: Convert datestamp to 'char *'.
9386         * restore-src/restore.c: Convert datestamp to 'char *'.
9387         * server-src/amindexd.c: Convert datestamp to 'char *'.
9388         * server-src/amlabel.c: Convert datestamp to 'char *'.
9389         * server-src/amtrmidx.c: Convert datestamp to 'char *'.
9390         * server-src/find.c: Convert datestamp to 'char *'.
9391         * server-src/reporter.c: Convert datestamp to 'char *'.
9392         * server-src/tapefile.c: Convert datestamp to 'char *'.
9393         * server-src/tapefile.h: Convert datestamp to 'char *'.
9394         * server-src/taper.c: Convert datestamp to 'char *'.
9395
9396 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9397         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b1).
9398
9399 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9400         * server-src/driver.c: Change expression to remove overflow.
9401
9402 2006-03-29  Jean-Louis Martineau <martineau@zmanda.com>
9403         * client-src/calcsize.c: Don't use declaration after instruction,
9404           older compiler don't accept it.
9405
9406 2006-03-23  Jean-Louis Martineau <martineau@zmanda.com>
9407         * Amanda 2.5.0 released.
9408         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0).
9409         * NEWS: Update for 2.5.0
9410
9411 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
9412         * server-src/dumper.c: wait for compress/index/encryp subprocess.
9413
9414 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
9415         * server-src/amstatus.pl.in: Parse PARTIAL reply.
9416
9417 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
9418         * server-src/driver.c: Put '#define HOLD_DEBUG' in comment.
9419
9420 2006-03-21  Jean-Louis Martineau <martineau@zmanda.com>
9421         * server-src/chunker.c: Don't loop on startup_chunker.
9422         * server-src/dumper.c: Don't wait for all children, some process (ssh)
9423           might not terminate.
9424
9425 2006-03-17  Ian Turner <ian@zmanda.com>
9426         * server-src/taper.c (read_file): When finished flushing a 
9427           chunked dump, print information about the whole dump, not just 
9428           the last chunk. Also, fix some memory leaks.
9429
9430 2006-03-16  Kevin Till <ktill@zmanda.com>
9431         * server-src/amverify.sh.in: check for EOI. amrestore only 
9432           reports EOI for some tapetypes.
9433
9434 2006-03-15  Jean-Louis Martineau <martineau@zmanda.com>
9435         * server-src/conffile.c: Fix heritage of auth.
9436
9437 2006-03-14  Kevin Till <ktill@@zmanda.com>
9438         * example/amanda.conf.in: add dumptype custom-compress. 
9439           add ssh,krb5 as valid input for auth. 
9440         * man/xml-source/amanda.conf.5.xml: give reference to 
9441           custom-compress, encrypt-fast dumptypes.
9442
9443 2006-03-14  Jean-Louis Martineau <martineau@zmanda.com>
9444         * common-src/amfeatures.h: Rename fe_amidxtaped_FEEDME to
9445                                           fe_amrecover_FEEDME
9446         * common-src/amfeatures.c (am_init_feature_set): Set
9447                                                          fe_amrecover_FEEDME.
9448         * restore-src/restore.h (search_tapes): Add their_features parameter.
9449         * restore-src/amfetchdump.c: Add NULL pointer to search_tapes call.
9450         * restore-src/amidxtaped.c: Add their_features to search_tapes call.
9451         * restore-src/restore.c (search_tapes): Send FEEDME only if client
9452                                                 support it.
9453
9454 2006-03-11  Jean-Louis Martineau <martineau@zmanda.com>
9455         * server-src/driverio.c : Fix errors found using Coverity tools.
9456
9457 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
9458         * server-src/taperscan.c: Fix Coverity fix.
9459
9460 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
9461         * changer-src/scsi-changer-driver.c:
9462                                          Fix errors found using Coverity tools.
9463         * server-src/diskfile.c: Fix errors found using Coverity tools.
9464         * server-src/planner.c: Fix errors found using Coverity tools.
9465         * server-src/taperscan.c: Fix errors found using Coverity tools.
9466
9467 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
9468         * server-src/driverio.c: Undo my bad fix.
9469         * server-src/infofile.c: Fix errors found using Coverity tools.
9470         * tape-src/tapetype.c: Fix errors found using Coverity tools.
9471
9472 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
9473         * restore-src/restore.c: Fix errors found using Coverity tools.
9474
9475 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
9476         * server-src/holding.c: Fix errors found using Coverity tools.
9477
9478 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
9479         * server-src/driverio.c: Fix errors found using Coverity tools.
9480         * server-src/planner.c: Fix errors found using Coverity tools.
9481
9482 2006-03-09  John Franks <jrfranks@zmanda.com>
9483         * changer-src/chg-scsi.c:        Fix errors found using Coverity tools.
9484         * changer-src/scsi-changer-driver.c:
9485                                          Fix errors found using Coverity tools.
9486         * changer-src/sense.c:           Fix errors found using Coverity tools.
9487         * client-src/sendbackup-dump.c:  Fix errors found using Coverity tools.
9488         * client-src/sendbackup.c:       Fix errors found using Coverity tools.
9489         * recover-src/display_commands.c:Fix errors found using Coverity tools.
9490         * regex-src/regcomp.c:           Fix errors found using Coverity tools.
9491         * restore-src/restore.c:         Fix errors found using Coverity tools.
9492         * server-src/amindexd.c:         Fix errors found using Coverity tools.
9493         * server-src/diskfile.c:         Fix errors found using Coverity tools.
9494         * server-src/driver.c:           Fix errors found using Coverity tools.
9495         * server-src/driverio.c:         Fix errors found using Coverity tools.
9496         * server-src/infofile.c:         Fix errors found using Coverity tools.
9497         * server-src/planner.c:          Fix errors found using Coverity tools.
9498         * server-src/taper.c:            Fix errors found using Coverity tools.
9499         * server-src/taperscan.c:        Fix errors found using Coverity tools.
9500         * server-src/conffile.c:         Change report default to use at least
9501                                          one space between every column.
9502
9503 2006-03-08  Jean-Louis Martineau <martineau@zmanda.com>
9504         * client-src/amandad.c: Fix coverity bug.
9505         * client-src/calcsize.c: Fix coverity bug.
9506         * client-src/client_util.c: Fix coverity bug.
9507         * client-src/sendbackup.c: Fix coverity bug.
9508         * client-src/sendsize.c: Fix coverity bug.
9509         * common-src/bsd-security.c: Fix coverity bug.
9510         * common-src/file.c: Fix coverity bug.
9511         * common-src/fileheader.c: Fix coverity bug.
9512         * common-src/pipespawn.c: Fix coverity bug.
9513         * recover-src/extract_list.c: Fix coverity bug.
9514         * restore-src/restore.c: Fix coverity bug.
9515         * server-src/amindexd.c: Fix coverity bug.
9516         * server-src/conffile.c: Fix coverity bug.
9517         * server-src/diskfile.c: Fix coverity bug.
9518         * server-src/driverio.c: Fix coverity bug.
9519         * server-src/dumper.c: Fix coverity bug.
9520         * server-src/planner.c: Fix coverity bug.
9521         * server-src/reporter.c: Fix coverity bug.
9522
9523 2006-03-07  Paddy Sreenivasan <paddy@zmanda.com>
9524         * man/xml-source/amanda.8.xml: added amaespipe and amcrypt.
9525
9526 2006-03-07  Jean-Louis Martineau <martineau@zmanda.com>
9527         * server-src/taper.c: Don't log a multi-line message in no-tape case.
9528
9529 2006-03-06  John Franks <jrfranks@zmanda.com>
9530         * recover-src/extract_list.c:
9531           1) Don't add '.' directory twice to tar extract list.
9532           2) Don't prepend extra '/' to extract patterns starting with '/'.
9533           3) Convert "/" extract pattern to "*" equivalent.
9534
9535 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
9536         * server-src/taperscan.c (scan_slot): append slotstr to
9537           ct->error_message.
9538         * server-src/taperscan.c: Add a '\n' after each slot error message.
9539
9540 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
9541         * server-src/reporter.c (handle_error): Handle error from taper.
9542
9543 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
9544         * server-src/taper.c (label_tape): Set errstr and return 0 if no
9545           valid tape are available.
9546
9547 2006-03-03  Ian Turner <ian@zmanda.com>
9548         * common-src/amanda.h: New macros MAX_TAPE_LABEL_LEN and 
9549           MAX_TAPE_LABEL_BUF.
9550         * common-src/amfeatures.h: New amfeature fe_amidxtaped_FEEDME
9551         * recover-src/extract_list.c: Accept port number with CONNECT; 
9552           implement fe_amidxtaped_FEEDME.
9553         * restore-src/amidxtaped.c: Introduce port number with CONNECT. 
9554           (closes SF bug 1431623)
9555         * restore-src/restore.c: Implement fe_amidxtaped_FEEDME.
9556           (closes SF bug 1421433)
9557         * restore-src/restore.h: Properly name rst_flags.
9558
9559 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
9560         * common-src/bsd-security.c (bsd_connect, netfd_read_callback, main):
9561           Set bh->proto_handle to NULL after allocating bh.
9562         * common-src/bsd-security.c (bsd_close): Donothing if
9563           bh->proto_handle == NULL.
9564
9565 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
9566         * common-src/protocol.c (s_repwait): Decrease p->timeout on receive
9567                                              of a PREP.
9568
9569 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
9570         * server-src/driver.c: Print dumper TRY_AGAIN message.
9571
9572 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
9573         * server-src/planner.c: Don't print estimate size if estimate failed.
9574
9575 2006-02-25  Ian Turner <ian@zmanda.com>
9576         * man/Makefile.am: Don't use static patterns (as they are not 
9577           portable), use implicit rules instead.
9578
9579 2006-02-20  Kevin Till <ktill@zmanda.com>
9580         * common-src/krb4-security.c: changes needed for krb4/5 to compile. Thanks to
9581                                       Orion Poplawski.
9582         * common-src/krb5-security.c: ditto.
9583
9584 2006-02-16  Kevin Till <ktill@zmanda.com>
9585         * example/amanda.conf.in: dumptype option is "encrypt"
9586         * man/xml-source/amanda.conf.5.xml: ditto
9587         * server-src/holding.c: util.h is include'd twice
9588         * common-src/ssh-security.c: set correct debug print 
9589
9590 2006-02-10  Kevin Till <ktill@zmanda.com>
9591         * man/xml-source/amanda.8.xml: replace informaltable with literallayout 
9592
9593 2006-02-13  John Franks <jrfranks@zmanda.com>
9594         * server-src/driver.c: Pring a more precise message when taper
9595           returns an error.  Include error message from taper in log.
9596           Print out "protocol error" if taper returns a bogus command.
9597
9598 2006-02-10  Kevin Till <ktill@zmanda.com>
9599         * man/xml-source/amanda.conf.5.xml: add note about first character of a 
9600                         tapetype string must be alphabet
9601
9602 2006-02-10  John Franks <jrfranks@zmanda.com>
9603         * server-src/taper.c: Call error() if an invalid string is read
9604           by syncpipe_getstr().
9605  
9606 2006-02-09  John Franks <jrfranks@zmanda.com>
9607         * Makefile.am, */Makefile.am:  Corrections generated by David Braun
9608           dustybird@users.sourceforge.net to properly set source directories
9609           for remote (VPATH) builds.
9610         * man/Makefile.am:  Fixed man page builds to use proper source and
9611           build paths.
9612         * autogen: Force rebuilding everything and print only syntax errors.
9613           (Errors are seen occasionally in system autogen files...)
9614         * configure.in: Eliminate possibility of empty string in shell tests.
9615           fix quoting of '[' and ']' characters in help messages.
9616           Fix default value for DUMPER_DIR to pick up EPREFIX correctly.
9617  
9618 2006-02-08  Ian Turner <ian@zmanda.com>
9619         * server-src/driver.c (handle_taper_result): Properly handle 
9620           SPLIT_NEEDNEXT case. Thanks to Josef Wolf for finding this bug.
9621           Also reindent.
9622
9623 2006-02-06 Kevin Till <ktill@zmanda.com> 
9624         * restore-src/restore.c: fix comment formatting on version 1.2.1
9625
9626 2006-02-06 Kevin Till <ktill@zmanda.com>
9627         * configure.in: Bug 1423731, SSH_SECURITY set only when --with-ssh-security used
9628         * server-src/Makefile.am:: not to install planner/dumper setuid-root --with-ssh-security
9629         * server-src/amcheck.c:    ditto
9630         * server-src/dumper.c:     ditto
9631         * restore-src/restore.c:    add missing "}"
9632         
9633 2006-02-06  Ian Turner <ian@zmanda.com>
9634         * restore-src/amidxtaped.c: Properly handle changers, 
9635           tape-label checking, and tape prompting in amrecover, 
9636           amindexd, and amidextaped. Thanks to Paul Bijnens 
9637           <pbijnens@users.sourceforge.net> for the patch.
9638         * restore-src/restore.c: ditto.
9639         * server-src/amindexd.c: ditto.
9640
9641 2006-02-04  Paddy Sreenivasan <paddy@zmanda.com>
9642         * man/xml-source/amfetchdump.8.xml
9643         * man/xml-source/amcrypt.8.xml
9644         * man/xml-source/amanda.conf.5.xml
9645         * man/xml-source/amanda.8.xml
9646         * man/xml-source/amaespipe.8.xml
9647         * man/entities/global.entities: Merged changes from xml-docs tree
9648
9649 2006-02-03  John Franks <jrfranks@zmanda.com>
9650         * server-src/taper.c: Fix null string printout in CHUNKERSUCCESS log line.
9651
9652 2006-02-03  Ian Turner <ian@zmanda.com>
9653         * server-src/amadmin.c (main): Don't free conf_tapelist too 
9654           early. Thanks to Cédric Lucantis
9655           <cedric-lucantis@users.sourceforge.net> for the patch.
9656
9657 2006-02-02 Kevin Till <ktill@zmanda.com>
9658         * man/xml-source/amanda.8.xml: fix formatting. <informaltable> problem 
9659                                        to be fixed.
9660         * man/xml-source/amrecover.8.xml: add note on client-encrypted tapes.
9661
9662 2006-02-02  Ian Turner <ian@zmanda.com>
9663         * recover-src/extract_list.c (extract_files_child): Run tar with 
9664           --numeric-owner if we are extracting a non-sambafied tar file. 
9665           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for 
9666           the patch. Thanks also to Mark Schaefer for suggesting this 
9667           change.
9668
9669 2006-02-01  Jean-Louis Martineau <martineau@zmanda.com>
9670         * restore-src/restore.c: Use OFF_T_FMT to printf off_t variable,
9671           cast size_t to am64_t and use AM64_FMT to printf them.
9672
9673 2006-01-31  Jean-Louis Martineau <martineau@zmanda.com>
9674         * server-src/driver.c (dumper_result): Reset sched(dp)->attempted to 0
9675           before adding it to tapeq.
9676
9677 2006-01-27  Ian Turner <ian@zmanda.com>
9678         * configure.in: Add new option --without-xsltproc (and
9679           --with-xsltproc), which turns off (or forces) the use of xsltproc to
9680           build manpages. Thanks to Paul Bijnens
9681           <pbijnens@users.sourceforge.net> for suggesting this feature.
9682
9683 2006-01-27  Ian Turner <ian@zmanda.com>
9684         * restore-src/amfetchdump.c: Properly clean up logfiles. Also, 
9685           run as user amanda even if we are started as some other user.
9686           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for the 
9687           patch.
9688
9689 2006-01-25  Paddy Sreenivasan <paddy@zmanda.com>
9690         * common-src/amanda.h:     Removed unnecessary header include files.
9691
9692 2006-01-25  Kevin Till<ktill@zmanda.com>
9693         * server-src/amadmin.c: fix for sourceforge bug 1412698
9694                                 add missing parameters to "amadmin x disklist"
9695         * server-src/amstatus.pl.in: untaint user input, enforce known path.
9696         * server-src/amoverview.pl.in: untaint user input (bug 1353481)
9697
9698 2006-01-25  Kevin Till<ktill@zmanda.com>
9699         * man/xml-source/amanda.conf.5.xml: fix formatting (<para> is not compatible 
9700                                             with some tag) add supported auth types.
9701
9702 2006-01-25  Kevin Till<ktill@zmanda.com>
9703         * common-src/bsd-security.c: move check_security to bsd_security.c, 
9704                                      fix faulty return
9705                                      Thanks to Paul Bijnens
9706         * restore-src/amidxtaped.c:  ditto
9707         * server-src/amindexd.c:     ditto and no need to tell client 
9708                                      about reason for denial
9709         * common-src/amanda.h:       add proto of check_security
9710         * server-src/conffile.c:     don't list CRYPT in the summary report 
9711                                      for now
9712         * restore-src/restore.c:     set outfd correctly for amfetchdump cases
9713                                      Thanks to Paul Bijnens
9714
9715 2006-01-24  Ian Turner <ian@zmanda.com>
9716         * man/xml-source/amanda.conf.5.xml: Put documentation of 
9717           split-dump options in the right place. Thanks to Paul Bijnens 
9718           <pbijnens@users.sourceforge.net> for the fix.
9719         * man/xml-source/amanda.8.xml: ditto.
9720
9721 2006-01-23  Ian Turner <ian@zmanda.com>
9722         * server-src/taperscan.c (find_brand_new_tape_label): Start 
9723           brand new tape labels at 1 instead of 0. Thanks to Paul 
9724           Bijnens <pbijnens@users.sourceforge.net> for the fix.
9725
9726 2006-01-18  Jean-Louis Martineau <martineau@zmanda.com>
9727         * Amanda 2.5.0b2 released.
9728         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b2).
9729         * NEWS: Update for 2.5.0b2
9730         
9731 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
9732         * server-src/disk_history.c: Fix memory leak.
9733
9734 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
9735         * common-src/bsd-security.c: Fix memory leak.
9736         * common-src/tapelist.c: Fix memory leak.
9737         * restore-src/amidxtaped.c: Fix memory leak.
9738         * restore-src/restore.c: Fix memory leak.
9739         * server-src/amindexd.c: Fix memory leak.
9740         * server-src/conffile.c: Fix memory leak.
9741         * server-src/disk_history.c: Fix memory leak.
9742         * server-src/find.c: Fix memory leak.
9743
9744 2006-01-13  John Franks <jrfranks@zmanda.com>
9745         * client-src/amandad.c:      Remove SO_LINGER and TCP_NDELAY.
9746                                      Loop on I/O if EINTR or EAGAIN.
9747         * client-src/noop.c:         Loop on I/O if EINTR or EAGAIN.
9748         * client-src/sendbackup.c:   Remove SIGPIPE handler.
9749                                      Loop on I/O if EINTR or EAGAIN.
9750                                      Check for EPIPE on writes.
9751         * common-src/bsd-security.c: Loop on I/O if EINTR or EAGAIN.
9752         * common-src/stream.c:       Remove SO_LINGER and TCP_NDELAY.
9753         * common-src/util.c:         Loop on I/O if EINTR or EAGAIN.
9754         * recover-src/amrecover.c:   Write commanda atomically in sigint handler
9755         * recover-src/extract_list.c:Remove SIGPIPE handler.
9756                                      Loop on I/O if EINTR or EAGAIN.
9757                                      Check for EPIPE on writes.
9758                                      Remove shutdown functions.
9759         * restore-src/amfetchdump.c: Remove SIGPIPE handler.
9760         * restore-src/amidxtaped.c:  Remove SO_LINGER and TCP_NDELAY.
9761                                      Remove SIGPIPE handler.
9762                                      read_file_header does not return if it
9763                                      Fix infinite loop on EOF or error and
9764                                      fail if memory reallocation failure in
9765                                      get_client_line_fd.
9766         * restore-src/restore.c:     Remove SIGPIPE handler.
9767                                      Loop on I/O if EINTR or EAGAIN.
9768                                      Remove shutdown functions.
9769                                      Simplify read loop.
9770         * restore-src/restore.h:     Change read_file_header to return void
9771         * server-src/amcheck.c:      Use fullread() to handel EINTR etc.
9772                                      Remove unused variable.
9773         * server-src/changer.c:      Remove SO_LINGER and TCP_NDELAY.
9774                                      Use fullwrite on socket.
9775         * server-src/driverio.c:     Remove SO_LINGER and TCP_NDELAY.
9776         * server-src/taper.c:        Use fullwrite() to write data.
9777                                      Use fullread() to read data.
9778         * tape-src/output-file.c;    Use fullwrite() to write data.
9779
9780 2006-01-13  Jean-Louis Martineau <martineau@zmanda.com>
9781         * server-src/amcheck.c (start_server_check): Remove unused variable
9782           errstr.
9783         * restore-src/restore.c (restore): Remove unused variable s, l and
9784           dataeof.
9785
9786 2006-01-12  Jean-Louis Martineau <martineau@zmanda.com>
9787         * recover-src/extract_list.c (send_to_tape_server): Do only on write.
9788         * restore-src/amidxtaped.c (get_client_line_fd): New function to read
9789           one complete line from an fd.
9790
9791 2006-01-09  John Franks <jrfranks@zmanda.com>
9792         * common-src/amanda.h:  Include tcp.h
9793         * client-src/amandad.c: Set TCP_NODELAY and SO_LINGER on sockets.
9794         * common-src/dgram.c:   No linger on datagrams
9795         * common-src/stream.c:  Set TCP_NODELAY and SO_LINGER on sockets.
9796         * common-src/util.c:    Fix fullwrite to return # of bytes written
9797                                 before failure.
9798         * example/amanda.conf.in: Cleanup exclude list template.
9799                                 Use configure directlries instead of /usr/local
9800         * recover-src/extract_list.c: Cleanup read loops.
9801                                 Use real fullwrite instead of inline versions.
9802                                 Remove extra setting of LINGER on socket.
9803         * restore-src/amidxtaped.c: Set TCP_NODELAY and SO_LINGER on sockets.
9804         * restore-src/restore.c:Use real fullwrite instead of inline versions.
9805         * server-src/changer.c: Set TCP_NODELAY and SO_LINGER on sockets.
9806         * server-src/chunker.c: Use real fullwrite instead of inline versions.
9807         * server-src/driverio.c:Set TCP_NODELAY and SO_LINGER on sockets.
9808         * server-src/dumper.c:  Use real fullwrite instead of inline versions.
9809
9810 2006-01-09  Ian Turner <ian@zmanda.com>
9811         * changer-src/scsi-changer-driver.c: If there is a problem opening
9812           the device during GenericRewind, don't retry for 201 minutes; give
9813           up after only 200 seconds.
9814
9815 2006-01-09  Ian Turner <ian@zmanda.com>
9816         * server-src/taperscan.c: When doing taper-scan algorithm, properly
9817           accept new tapes.
9818
9819 2006-01-09  Ian Turner <ian@zmanda.com>
9820         * tape-src/tapeio.c: Generate a more reasonable message when
9821         reading an empty tape label on brand-new tapes.
9822
9823 2006-01-09  Ian Turner <ian@zmanda.com>
9824         * server-src/amcheck.c: Actually do what the documentation for 
9825           amcheck -w says; that is, overwrite labels on tapes.
9826
9827 2006-01-06  Kevin Till<ktill@zmanda.com>
9828         * server-src/amcheck.c: check if encrypt or compress program is 
9829           executable. Check encrypt/compress configuration.
9830         * server-src/dumper.c: kill encrypt child when dump is stopped
9831         * server-src/amcrypt.sh.in: check for aespipe
9832         * server-src/amaespipe.sh.in: adjust PATH
9833         * man/xml-source/amtapetype.8.xml: fix format problem.
9834
9835 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
9836         * recover-src/extract-list.c: Remove 'U' argument for gtar extraction.
9837
9838 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
9839         * restore-src/restore.c (flush_open_outputs): Another shutdown is
9840           required.
9841
9842 2006-01-05  John Franks <jrfranks@zmanda.com>
9843         * recover-src/extract_list.c: Extend linger timeouts to 60 seconds.
9844           Use shutdown() on sockets.
9845           Retry reads in case of EINTR or EAGAIN.
9846         * common-src/stream.c: set linger on correct socket.
9847           Extend linger timeouts to 60 seconds.
9848         * restore-src/restore.c: Fix compiler warnings.
9849         * Call shutdown in more cases.
9850
9851 2006-01-05  John Franks <jrfranks@zmanda.com>
9852         * client-src/amandad.c: Set SO_LINGER on sockets.
9853         * common-src/dgram.c:   Set SO_LINGER on sockets.
9854         * common-src/stream.c:  Set SO_LINGER on sockets.
9855         * common-src/util.c:    Return any bytes already read on error or EOF.
9856         * recover-src/extract_list.c: Set SO_LINGER on data socket.
9857           Fix printf of unterminated string data.
9858           Check return codes on socket header reads.
9859         * restore-src/amidxtaped.c: Set SO_LINGER on sockets.
9860           Check return codes on socket header reads.
9861         * restore-src/restore.c:
9862           Flush newline after operator prompt.
9863         * common-src/debug.c:
9864           Fix memory leak when debug file name already exists.
9865           Print error text upon hard open() error.
9866           Allow group members read only access to log files.
9867
9868 2006-01-05  Kevin Till<ktill@zmanda.com>
9869         * restore-src/restore.c: handle sigpipe. Some program (e.g. bzip2) closes reading pipe
9870           early when it sees trailing garbage after EOF.
9871
9872 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
9873         * common-src/amanda.h: Add a FD_COPY macro.
9874         * recover-src/extract_list.c (writer_intermediary): Don't use
9875           writer_intermediary, do the select locally.
9876
9877 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
9878         * restore-src/restore.c (flush_open_outputs): Call shutdown before
9879           close.
9880
9881 2005-12-30  John Franks <jrfranks@zmanda.com>
9882         * recover-src/extract_list.c:
9883           Fix double clearing of buffer during normal read path.
9884         * restore-src/amidxtaped.c
9885           Actually initialize changer if it is needed.  (Set use_changer
9886           before checking it...)
9887         * Fix control messages being sent down the data pipe when
9888           restoring to client that does not support split dumps.
9889         * Print error and exit if a split dump is needed during restore
9890           and client can not handle it. 
9891
9892 2005-12-30  Ian Turner <ian@zmanda.com>
9893         * common-src/fileheader.c: Remove xx/UNKNOWN split-dump header 
9894           syntax, in favor of xx/-1.
9895
9896 2005-12-29  John Franks <jrfranks@zmanda.com>
9897         * recover-src/display_commands.c
9898           Fix list deletion which did not update list root with NULL pointer.
9899           Make free_dir_item() a non-recursive function to prevent stack bloat.
9900           Fix list insertion code which inserts item in list initializes entry.
9901         * recover-src/extract_list.c
9902           Fix to initialize lditem before using it...
9903           Prevent multiple frees of cmd string.
9904           Do not free err which is only initialized with static string pointers.
9905           Fix typo which caused newstralloc() to free the wrong memory.
9906         * server-src/amindexd.c
9907           Fix Compiler warning of unused variable.
9908         * server-src/taperscan.c
9909           Fix Compiler warning of bogus format specifier.
9910   
9911 2005-12-29  Kevin Till<ktill@zmanda.com>
9912         * man/xml-source/amcrypt.8.xml: add new amcrypt man page
9913         * man/xml-source/amaespipe.8.xml: add new amaespipe man page
9914
9915 2005-12-29  Ian Turner <ian@zmanda.com>
9916         * man/xml-source/amanda.conf.5.xml: Document label_new_tapes 
9917           config option.
9918
9919 2005-12-28  Ian Turner <ian@zmanda.com>
9920         * recover-src/amrecover.h: Use dynamic strings in struct DIR_ITEM.
9921         * recover-src/display_commands.c: ditto
9922         * recover-src/extract_list.c: ditto. Also use dynamic strings in
9923           struct EXTRACT_LIST and struct EXTRACT_LIST_ITEM.
9924
9925 2005-12-28  Ian Turner <ian@zmanda.com>
9926         * common-src/amfeatures.h: Add three new amfeatures:
9927           fe_amindexd_marshall_in_OLSD, fe_amindexd_marshall_in_ORLD,
9928           fe_amindexd_marshall_in_DHST.
9929         * common-src/amfeatures.c: ditto.
9930         * server-src/amindexd.c: Talk well to older clients.
9931
9932 2005-12-23  Ian Turner <ian@zmanda.com>
9933         * server-src/taperscan.c: Don't crash if find_brand_new_tape_label
9934           returns NULL. Also, don't return NULL from
9935           find_brand_new_tape_label without a good excuse.
9936         
9937 2005-12-23  Kevin Till <ktill@zmanda.com>
9938         * client-src/client_util.c: change server_decrypt_option to
9939           server-decrypt-option
9940         * client-src/sendbackup.c:  change client_decrypt_option to
9941           client-decrypt-option
9942         * server-src/dumper.c:      ditto
9943         * common-src/amfeatures.c:  add crypt related amfeaturs
9944         * common-src/amfeatures.h:  ditto  
9945         * server-src/diskfile.c:    amfeatures checking and warns on
9946           mis-configuration
9947
9948 2005-12-23  Paddy Sreenivasan <paddy@zmanda.com>
9949          * restore-src/restore.c:
9950          * server-src/amtape.c:
9951          * server-src/taperscan.c : Make scan_init static function
9952
9953 2005-12-23  John Franks <jrfranks@zmanda.com>
9954         * server-src/taper.c: Reduce I/O's system call overhead by 30%
9955           in main read / write loop. 
9956
9957 2005-12-23  John Franks <jrfranks@zmanda.com>
9958         * recover-src/restore.c  Remove inapproriate aclose which caused
9959           broken restore pipe.
9960         * recover-src/extract_list.c  Fix and cleanup read_buffer()
9961           mainly to fix hole that drops parital buffer of data if end
9962           of file is reached or an error occured..  Touched up calling
9963           functions to make sure EOF/timeouts are handled correctly.
9964           Increased normal path read timeout value from on second to
9965           whatever READ_TIMEOUT is set to.
9966
9967 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
9968
9969         * restore-src/restore.c (restore): Remova an aclose.
9970
9971 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
9972
9973         * restore-src/amidxtaped.c (cleanup): Function registered with atexit
9974           to remove the log file.
9975
9976 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
9977
9978         * server-src/Makefile.am (noinst_HEADERS): Add taperscan.h.
9979
9980 2005-12-20  John Franks <jrfranks@zmanda.com>
9981
9982         * restore-src/restore.c: Remove unused variables.
9983                                  Fix uninitialize reference to bytes_read.
9984         * server-src/amcheck.c:  Remove unused variables.
9985                                  Include taperscan.h for missing prototype.
9986         * server-src/amtape.c:   Remove unused variables.
9987                                  Include taperscan.h for missing prototype.
9988         * server-src/taper.c:    Remove unused variables.
9989                                  Minor indenting changes.
9990         * server-src/taperscan.c:Remove unused variables.
9991                                  Fix typo which assigns NULL rather than
9992                                   checks for NULL.
9993                                  Commented out reference to auto_pos which
9994                                   is assigned but never used...
9995
9996 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
9997
9998         * common-src/fileheader.c (parse_file_header): Parse '/' in part.
9999         * common-src/fileheader.c (build_header): Add space ' ' before "part".
10000
10001 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
10002
10003         * server-src/reporter.c: Fix report of output size.
10004
10005 2005-12-19  Ian Turner <ian@zmanda.com>
10006         * server-src/taperscan.c: Check that automatic tape labels satisfy
10007         the labelstr.
10008
10009 2005-12-19  Ian Turner <ian@zmanda.com>
10010         * server-src/fileheader.c: Fix broken split-dump file headers.
10011
10012 2005-12-18  Jean-Louis Martineau <martineau@zmanda.com>
10013         Patch by Paul Bijnens
10014
10015         * server-src/amcheck.c: Tapelist file is regular file.
10016
10017 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
10018
10019         * restore-src/restore.c (get_block): Return a ssize_t.
10020         * restore-src/restore.c: convert ssize_t to long for printing.
10021         * restore-src/restore.c (restore>): Remove unused variable, outpipe,
10022            outpipe2, i.
10023
10024 2005-12-17  John R. Franks <jrfranks@zmanda.com>
10025
10026         * restore-src/restore.h (read_file_header, restore): Return a ssize_t
10027           instead of using a global variable bytes_read.
10028         * restore-src/restore.c: Use local variable instead of global
10029           bytes_read. Many memory management fixe. Fixe pipe handling,
10030         * restore-src/amrestore.c: Use new read_file_header and restore.
10031         * restore-src/amfetchdump.c: Use new read_file_header and restore.
10032
10033 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
10034         With Kevin Till <ktill@zmanda.com>
10035
10036         * common-src/fileheader.c (parse_file_header): Fix parsing of first
10037           line.
10038         * common-src/fileheader.c (build_header): Print crypt after programi
10039            and only if it is needed.
10040
10041 2005-12-14  Ian Turner <ian@zmanda.com>
10042
10043         * common-src/alloc.c: Add new function vstrextend, which extends an
10044           existing string.
10045         * common-src/amanda.h: Define vstrextend.
10046         * example/amanda.conf.in: Document new option
10047           label_new_tapes. Change default labelstr.
10048         * man/xml-source/amcheck.8.xml: Emphasize the destructiveness of
10049           amcheck -w.
10050         * restore-src/restore.c: Use the new changer_find interface.
10051         * server-src/Makefile.am: Add new file taperscan.c
10052         * server-src/amcheck.c: Use the taper-scan algorithm in taperscan.c,
10053           instead of the previous separate amcheck implementation.
10054         * server-src/amtape.c: Use the taper-scan algorithm in taperscan.c,
10055           instead of the previous separate amtape implementation. Also, use
10056           the new changer_find interface for other kinds of tape finding.
10057         * server-src/changer.c: Eliminate changer_scan. Change the API to
10058           changer_find, so that callers can pass a user-data object, instead
10059           of using globals.
10060         * server-src/changer.h: Declare and document new changer_find
10061           interface.
10062         * server-src/conffile.c: Add new config option label_new_tapes.
10063         * server-src/conffile.h: ditto.
10064         * server-src/taper.c: Use the taper-scan algorithm in taperscan.c,
10065           instead of the previous separate taper implementation. Also,
10066           combine tape-label-reading for ZFTAPE and non-ZFTAPE drives (the
10067           difference only matters on writing).
10068         * server-src/taperscan.c: Refactor the taper-scan algorithm from
10069           taper, amtape, and amcheck. Implement label_new_tapes feature.
10070         * server-src/taperscan.h: Declare and document new taperscan
10071           interface.
10072         * tape-src/tapeio.c: Notice the difference between a non-Amanda tape
10073           and some other tape-reading problem.
10074         * tape-src/tapeio.h: New declarations.
10075
10076 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
10077
10078         * server-src/reporter.c (handle_success): On a taper line, the outsize
10079           should only count dump to tape, not flush.
10080
10081 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
10082
10083         * server-src/amstatus.pl.in: Parse chunker DONE line to set output size.
10084
10085 2005-12-09  John Franks <jrfranks@zmanda.com>
10086
10087         * client-src/Makefile.am: Do not include tape library if
10088           configuring with --without-server option.
10089         * recover-src/Makefile.am: Do not include tape library if
10090           configuring with --without-server option.
10091
10092 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
10093
10094         * configure.in: Move the size detection after detection of large
10095           file support. That change the size of off_t.
10096
10097 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
10098
10099         * common-src/amanda.h: Set OFF_T_FMT to printf format of a off_t.
10100         * server-src/taper.c: Use OFF_T_FMT.
10101
10102 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
10103
10104         * configure.in: Set LL_FMT correctly.
10105         * server-src/conffile.c: Use LL_FMT.
10106
10107 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
10108
10109         * server-src/conffile.c: Maxdumpsize is a AM64.
10110         * server-src/planner.c: conf_maxdumpsize, total_size, tape_length and
10111           tape_mark are am64_t.
10112
10113 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
10114
10115         * configure.in: Check for sizeof of many type. Check printf format of
10116           a 64-bit integers.
10117         * common-src/amanda.h: Typedef am64_t to a 64 bits signed type,i
10118           set AM64_FMT to the printf format of a am64_t variable.
10119         * server-src/conffile.c: New AM64 type.
10120         * server-src/conffile.h(getconf_am64): Prototype.
10121
10122 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
10123
10124         * client-src/Makefile.am: Remove amqde.
10125         * client-src/sendsize.c: Remove code to call amqde.
10126         * client-src/amqde.c: Remove file.
10127         * configure.in: Remove '--with-qde' option.
10128
10129 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
10130
10131         * server-src/amindexd.c (reply, lreply, fast_lreply): Must use
10132           str_buffer_sizebuf instead of sizeof(bug).
10133
10134 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
10135
10136         * server-src/planner.c: Print the time in the FINISH line.
10137         * server-src/reporter.c: The estimate time is based on the planner
10138           FINISH line.
10139
10140 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
10141
10142         * common-src/Makefile.am (bsdsecurity_LDADD): Add ssh-security.
10143
10144 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
10145
10146         * server-src/holding.c (scan_holdingdisk): Static function.
10147         * server-src/taper.c (signal_handler, install_signal_handlers): Ditto.
10148         * server-src/reporter.c (output_strange,do_postscript_output): Ditto.
10149
10150 2005-12-04  Jean-Louis Martineau <martineau@zmanda.com>
10151
10152         * server-src/logfile.c (logtype_str): Add important ','.
10153
10154 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
10155
10156         * server-src/planner.c (setup_estimate): Fix wrong order for argument.
10157
10158 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
10159
10160         * server-src/driver.c (start_some_dumps): Don't test for
10161           cur_idle == NOT_IDLE.
10162
10163 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
10164
10165         * server-src/driverio.c (check_unfree_serial): New fonction to check
10166           unfreed serial number.
10167         * server-src/driverio.c (free_serial_dp): Set stable[s].dp to NULL.
10168         * server-src/driverio.h (check_unfree_serial): Prototype.
10169         * server-src/driver.c (main): Call check_unfree_serial.
10170
10171 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
10172         Patch by Franz Fischer
10173
10174         * config/acinclude.m4i: Fix for __alpha.
10175
10176 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
10177
10178         * common-src/util.c: Debug must end with '\n'.
10179
10180 2005-12-01  Jean-Louis Martineau <martineau@zmanda.com>
10181
10182         * configure.in: Amanda support x86_64-unknown-linux-gnu.
10183
10184 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
10185
10186         * common-src/rsh-security.c (rsh_sendpkt): buf is a char array.
10187         * common-src/ssh-security.c (rsh_sendpkt): buf is a char array.
10188         * config/acinclude.m4i (AX_CREATE_STDINT_H): Newer macro.
10189
10190 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
10191
10192         * client-src/rundump.c: undef USE_RUNDUMP before define.
10193
10194 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
10195         Patch by Franz Fischer
10196
10197         * client-src/amqde.c: Fix compiler warning.
10198
10199 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
10200         Patch by Franz Fischer
10201
10202         * common-src/event.h: Fix compiler warning.
10203         * server-src/conffile.h: Fix compiler warning.
10204
10205 2005-11-30  Kevin Till  <ktill@zmanda.com>
10206         
10207         * client-src/client_util.c add server-side, client-side encryption
10208           as well as custom compression. Custom compression patch is
10209           orginally created by Matthieu Lochegnies.
10210         * client-src/client_util.h Ditto
10211         * client-src/selfcheck.c Ditto
10212         * client-src/sendbackup-dump.c Ditto
10213         * client-src/sendbackup-gnutar.c Ditto
10214         * client-src/sendbackup.c Ditto
10215         * client-src/sendbackup.h Ditto
10216         * common-src/fileheader.c Ditto
10217         * common-src/fileheader.h Ditto
10218         * common-src/util.h Ditto
10219         * example/amanda.conf.in Ditto
10220         * man/xml-source/amanda.conf.5.xml Ditto
10221         * restore-src/amrestore.c Ditto
10222         * restore-src/restore.c Ditto
10223         * server-src/conffile.c Ditto
10224         * server-src/conffile.h Ditto
10225         * server-src/diskfile.c Ditto
10226         * server-src/diskfile.h Ditto
10227         * server-src/dumper.c Ditto
10228         
10229 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
10230
10231         * config/libtool.m4i: libtool 1.5.20
10232         * config/ltmain.sh: libtool 1.5.20
10233
10234 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
10235         Patch by Franz Fischer
10236
10237         * common-src/fileheader.c (build_header): Declation before instruction.
10238         * restore-src/amfetchdump.c: Don't use C++ style comment.
10239         * restore-src/restore.c: Don't use C++ style comment.
10240         * server-src/amindexd.c (reply, lreply, fast_lreply): buf must be
10241            dynamicaly allocated.
10242         * server-src/logfile.h: Don't use C++ style comment.
10243         * server-src/taper.c (free_split_buffer): Test splitbuf against NULL.
10244
10245 2005-11-22 Paddy Sreenivasan <paddy@zmanda.com>
10246         * common-src/rsh-security.c: Fix x86_64 compile warnings.
10247         * common-src/ssh-security.c: Fix x86_64 compile warnings.
10248         * man/Makefile.am: Added EXTRA_XML files.
10249         * man/xml-source/amanda.8.xml: Added spanning patch variables.
10250         * man/xml-source/amrecover.8.xml: Added amfetchdump to SEE ALSO.
10251         * xslt/global.entities: Removed file.
10252
10253 2005-11-20  Jean-Louis Martineau <martineau@zmanda.com>
10254         Patch by Jon H. LaBadie
10255
10256         * changer-src/chg-disk.sh.in: Check permission on file access.
10257
10258 2005-11-17  Paddy Sreenivasan <paddy@zmanda.com>
10259         * man/entities/global.entities: New file. Added man page entities.
10260         * man/entities/xinclude.dtd: New file.
10261         * man/xslt/man.xsl: Correct include path for settings.xsl.
10262
10263 2005-11-15  John R. Franks <jrfranks@zmanda.com>
10264         * changer-src/scsi-changer-driver.c: Fix IA-64 compile warnings.
10265         * common-src/rsh-security.c: Fix IA-64 compile warnings.
10266         * common-src/ssh-security.c: Fix IA-64 compile warnings.
10267         * regex-src/engine.c: Fix IA-64 compile warnings.
10268         * regex-src/regexec.c: Fix IA-64 compile warnings.
10269
10270 2005-11-15  Paddy Sreenivasan <paddy@zmanda.com>
10271
10272         * configure.in:  Changed defaults for tape_dev and nr_tape_dev.
10273         * example/amanda.conf.in: Leave only changerfile definition
10274           uncommented.
10275         * man/xml-source/amanda.conf.5.xml: Updated defaults for 
10276           tapedev and rawtapedev
10277
10278 2005-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10279
10280         * server-src/planner.c: Fix incronly.
10281
10282 2005-11-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10283
10284         * man/Makefile.am: Set man_MANS,
10285
10286 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10287
10288         * man/Makefile.am: Set man5_MANS and man8_MANS,
10289           install-data-hook use them.
10290
10291 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10292         Patch by Olivier Cherrier
10293
10294         * man/Makefile.am (install-data-hook): Set protection correclty
10295           for man5 and man8.
10296
10297 2005-10-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10298
10299         * common-src/util.c (bind_portrange): Increase port in all case.
10300
10301 2005-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10302
10303         * server-src/conffile.c: Allow runtapes==0.
10304         * server-src/driver.c: Use a global conf_runtapes. Don't start a
10305           taper if runtapes==0.
10306         * server-src/reporter.c: Don't print The next tapes if runtapes==0.
10307
10308
10309 2005-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10310
10311         * Amanda 2.5.0b1 released.
10312         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b1).
10313         * NEWS: Update for 2.5.0b1.
10314
10315 2005-10-25  Ian Turner <ian@zmanda.com>
10316         
10317         * man/Makefile.am: include amfetchdump.8.
10318         * man/xml-source/amadmin.8.xml: Add spanning-patch documentation.
10319         * man/xml-source/amanda.8.xml: ditto
10320         * man/xml-source/amrecover.8.xml: ditto
10321         * man/xml-source/amfetchdump.8.xml: ditto (new file)
10322         * man/xslt/global.entities: Add myself, Zmanda Inc.
10323         
10324 2005-10-24  Jean-Louis Martineau <martineau@zmanda.com>
10325
10326         * client-src/sendsize.c (getsize_wrapper): Add a NULL at the end of
10327           the argvchild array.
10328
10329 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
10330
10331         * server-src/server_util.c (getcmd): Print DEBUG to stderr.
10332
10333 2005-10-20  Ian Turner <ian@zmanda.com>
10334
10335         * configure.in: Check for xsltproc.
10336         * man/Makefile.am: Properly build, clean, and distribute generated
10337           manpages from XML source.
10338         * man/amadmin.8: Remove from CVS
10339         * man/amanda.8: Remove from CVS
10340         * man/amanda.conf.5: Remove from CVS
10341         * man/amcheck.8: Remove from CVS
10342         * man/amcheckdb.8: Remove from CVS
10343         * man/amcleanup.8: Remove from CVS
10344         * man/amdd.8: Remove from CVS
10345         * man/amdump.8: Remove from CVS
10346         * man/amflush.8: Remove from CVS
10347         * man/amgetconf.8: Remove from CVS
10348         * man/amlabel.8: Remove from CVS
10349         * man/ammt.8: Remove from CVS
10350         * man/amoverview.8: Remove from CVS
10351         * man/amplot.8: Remove from CVS
10352         * man/amrecover.8: Remove from CVS
10353         * man/amreport.8: Remove from CVS
10354         * man/amrestore.8: Remove from CVS
10355         * man/amrmtape.8: Remove from CVS
10356         * man/amstatus.8: Remove from CVS
10357         * man/amtape.8: Remove from CVS
10358         * man/amtapetype.8: Remove from CVS
10359         * man/amtoc.8: Remove from CVS
10360         * man/amverify.8: Remove from CVS
10361         * man/amverifyrun.8: Remove from CVS
10362         * man/xml-source/amadmin.8.xml: Add from xml-docs
10363         * man/xml-source/amanda.8.xml: Add from xml-docs
10364         * man/xml-source/amanda.conf.5.xml: Add from xml-docs
10365         * man/xml-source/amcheck.8.xml: Add from xml-docs
10366         * man/xml-source/amcheckdb.8.xml: Add from xml-docs
10367         * man/xml-source/amcleanup.8.xml: Add from xml-docs
10368         * man/xml-source/amdd.8.xml: Add from xml-docs
10369         * man/xml-source/amdump.8.xml: Add from xml-docs
10370         * man/xml-source/amflush.8.xml: Add from xml-docs
10371         * man/xml-source/amgetconf.8.xml: Add from xml-docs
10372         * man/xml-source/amlabel.8.xml: Add from xml-docs
10373         * man/xml-source/ammt.8.xml: Add from xml-docs
10374         * man/xml-source/amoverview.8.xml: Add from xml-docs
10375         * man/xml-source/amplot.8.xml: Add from xml-docs
10376         * man/xml-source/amrecover.8.xml: Add from xml-docs
10377         * man/xml-source/amreport.8.xml: Add from xml-docs
10378         * man/xml-source/amrestore.8.xml: Add from xml-docs
10379         * man/xml-source/amrmtape.8.xml: Add from xml-docs
10380         * man/xml-source/amstatus.8.xml: Add from xml-docs
10381         * man/xml-source/amtape.8.xml: Add from xml-docs
10382         * man/xml-source/amtapetype.8.xml: Add from xml-docs
10383         * man/xml-source/amtoc.8.xml: Add from xml-docs
10384         * man/xml-source/amverify.8.xml: Add from xml-docs
10385         * man/xml-source/amverifyrun.8.xml: Add from xml-docs
10386         * man/xslt/expand-sambadoc.xsl: Add from xml-docs
10387         * man/xslt/global.entities: Add from xml-docs
10388         * man/xslt/man.xsl: Add from xml-docs
10389         * man/xslt/settings.xsl: Add from xml-docs
10390
10391 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
10392
10393         * server-src/amstatus.pl.in: a FLUSH command can't be in an estimate
10394           phase.
10395         * server-src/driver.c: Start autoflush while waiting for estimate.
10396         * server-src/planner.c: Write FLUSH line before estimate.
10397
10398 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
10399         Patch by John R. Franks <jrfranks@zmanda.com>
10400
10401         * server-src/taper.c (create_split_buffer): Should not use sizeof().
10402
10403 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
10404
10405         * server-src/taper.c (read_file): Move the putresult(DONE) to the
10406           right place, some cleanup.
10407
10408 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
10409
10410         * server-src/planner.c: Increase DEFAULT_DUMPRATE to 1024 K/s.
10411
10412 2005-10-17  Ian Turner <ian@zmanda.com>
10413
10414         * Changelog: Fix line breaks.
10415         * restore-src/restore.c: Give more useful FSF error messages.
10416         * recover-src/extract_list.c: Do better error checking on passed port
10417           number.
10418         * common-src/tapelist.c: Do proper memory management of strings.
10419           Otherwise really bad stuff happens.
10420
10421 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
10422
10423         * server-src/taper.c: Set SIGPIPE to SIG_IGN, the code already
10424           handle it correctly.
10425
10426 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
10427
10428         * server-src/taper.c (signal_handler): Don't REMOVE_SHARED_MEMORY, it
10429           is done by exit.
10430
10431 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
10432
10433         * server-src/driverio.c (serial2disk): Print str if error.
10434
10435 2005-10-15  Paddy Sreenivasan <paddy@zmanda.com>
10436
10437         * server-src/taper.c: Shared memory need not be removed in normal paths.
10438           Done as part of atexit. 
10439
10440 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
10441         Patch by John R. Franks <jrfranks@zmanda.com>
10442
10443         * changer-src/scsi-aix.c: calls to open/openx guages success by
10444           checking for a file descriptor greater than 0.  0 is also a valid
10445           descriptor so the check should be >= 0.
10446           Calls to SCSI_OpenDevice does not check for error return.
10447           Calls to SCSI_OpenDevice does not check for error return.
10448           Calls to SCSI_OpenDevice does not check for error return.
10449           Call to opendir() does not check for error.
10450         * changer-src/scsi-hpux_new.c: Ditto.
10451         * changer-src/scsi-irix.c: Ditto.
10452         * changer-src/scsi-linux.c: Ditto.
10453         * changer-src/scsi-solaris.c: Ditto.
10454         * client-src/selfcheck.c: Call to open() does not check for error.
10455         * client-src/sendbackup.c: Call to freopen() does not check for error.
10456         * client-src/sendsize.c: Call to open() does not check for error.
10457         * common-src/bsd-security.c: Call to open() does not check for error.
10458         * common-src/file.c: Call to open() does not check for error.
10459         * restore-src/amrestore.c: Calls to tape_open() do not always check
10460           return code.  open() is called with open flags set to 0
10461           (Call always fails with an EINVAL)
10462         * restore-src/restore.c: fopen() return error check  is "fopen() < 0".
10463           fopen returns a pointer and the proper check should be
10464           "fopen() == NULL".
10465           Call to open() does not check for error.
10466         * tape-src/tapeio.c: tape_open() is called here and other places with a
10467           variable number of arguments, and yet is not defined as a varargs
10468           function...
10469         * tape-src/tapeio.h: Prototype for tape_open.
10470
10471 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
10472         Patch by Paddy Sreenivasan <paddy@zmanda.com>
10473
10474         * client-src/sendsize.c: Log message changes.
10475         * server-src/taper.c: And an atexit function to detach shared memory.
10476           Trap some signal and detach shared memory.
10477
10478 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
10479
10480         * regex-src/regcomp.c (findmust): Initialized start to NULL.
10481
10482 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
10483         Patch by John R. Franks <jrfranks@zmanda.com>
10484
10485         * regex-src/cclass.h: Fixed to add missing braces and reformat long
10486           strings to fix in 80 columns.
10487         * regex-src/cname.h: Fixed by adding braces and tidying up code a bit.
10488         * regex-src/regcomp.c (p_ere): Initialized prevback and prevfwd to 0.
10489           ifdef out unused mcsub, mcin and mcfind functions.
10490           (findmust) Initialized newstart to NULL.
10491         * regex-src/regerror.c: Adds missing braces.
10492         * regex-src/regexec.c (nope): Use only in assert, so it is not only
10493           defined if NDEBUG is not defined.
10494
10495 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
10496         Patch by John R. Franks <jrfranks@zmanda.com>
10497
10498         * common-src/krb4-security.c (krb4_security_dummy): Rename from dummy,
10499           it is not static int.
10500         * common-src/krb5-security.c (krb5_security_dummy): Rename from dummy,
10501           it is not static int.
10502
10503 2005-10-13  Jean-Louis Martineau <martineau@zmanda.com>
10504
10505         * common-src/util.c (bind_portrange): New argument proto.
10506           Check for reserved port.
10507         * common-src/util.h (bind_portrange): New prototype.
10508         * common-src/bsd-security.c (bind_portrange): New prototype.
10509         * common-src/dgram.c: Add "udp" as argument to bind_portrange.
10510         * common-src/stream.c: Add "tcp" as argument to bind_portrange.
10511
10512 2005-10-12  Jean-Louis Martineau <martineau@zmanda.com>
10513
10514         * restore-src/amidxtaped.c (check_security_buffer): i is a socklen_t.
10515         * restore-src/amidxtaped.c (main): Remove i, fd, amrestore_path, pid,
10516           isafile, stat_tape, tapename, s, fp, ch and errstr variable.
10517
10518 2005-10-11  Ian Turner <ian@zmanda.com>
10519         Patch by  Jean-Louis Martineau <martineau@zmanda.com>
10520         
10521         * restore-src/amfetchdump.c: Remove unused variable debug.
10522         * restore-src/amidxtaped.c: Remove lock_logfile(), which is also 
10523           in restore.c.
10524         * restore-src/Makefile.am: Include libamanda twice, to fix build 
10525           on some machines.
10526
10527 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10528
10529         * restore-src/Makefile (noinst_HEADERS): Add restore.h.
10530         * restore-src/restore.c (search_tapes): Add the fourth argument to
10531           read_file_header.
10532
10533 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10534
10535         * server-src/conffile.c: dpcur.s_split_diskbuffer must be initialize
10536           to 0.
10537         * server-src/reporter.c (handle_partial): Set repdata to the result
10538           of handle_success.
10539         * server-src/taper.c: Set the first-file.
10540
10541 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10542
10543         * client-src/client_util.c, server-src/amcheck.c,
10544           server-src/reporter.c: Add missing type for arguments.
10545
10546 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10547
10548         * server-src/taper.c (tape_writer_side): detach_buffers on normal exit.
10549
10550 2005-10-10  Ian Turner <ian@zmanda.com>
10551
10552         * server-src/amtape.h: Apply tape-spanning patch by John Stange
10553           <building@cs.umd.edu> as ported to 2.5.0 by Ian Turner, with
10554           contributions by Christopher Pascoe <c.pascoe@itee.uq.edu.au>.
10555         * configure.in: Ditto
10556         * amplot/Makefile.am: Ditto
10557         * changer-src/Makefile.am: Ditto
10558         * client-src/Makefile.am: Ditto
10559         * common-src/Makefile.am: Ditto
10560         * common-src/amanda.h: Ditto
10561         * common-src/amfeatures.c: Ditto
10562         * common-src/amfeatures.h: Ditto
10563         * common-src/fileheader.c: Ditto
10564         * common-src/fileheader.h: Ditto
10565         * common-src/match.c: Ditto
10566         * common-src/tapelist.c: Ditto
10567         * common-src/tapelist.h: Ditto
10568         * example/amanda.conf.in: Ditto
10569         * man/Makefile.am: Ditto
10570         * recover-src/amrecover.c: Ditto
10571         * recover-src/amrecover.h: Ditto
10572         * recover-src/display_commands.c: Ditto
10573         * recover-src/extract_list.c: Ditto
10574         * restore-src/Makefile.am: Ditto
10575         * restore-src/amfetchdump.c: Ditto
10576         * restore-src/amfetchdump.h: Ditto
10577         * restore-src/amidxtaped.c: Ditto
10578         * restore-src/amrestore.c: Ditto
10579         * restore-src/restore.c: Ditto
10580         * restore-src/restore.h: Ditto
10581         * server-src/Makefile.am: Ditto
10582         * server-src/amadmin.c: Ditto
10583         * server-src/amindexd.c: Ditto
10584         * server-src/amoverview.pl.in: Ditto
10585         * server-src/amtoc.pl.in: Ditto
10586         * server-src/amverify.sh.in: Ditto
10587         * server-src/changer.c: Ditto
10588         * server-src/conffile.c: Ditto
10589         * server-src/conffile.h: Ditto
10590         * server-src/disk_history.c: Ditto
10591         * server-src/disk_history.h: Ditto
10592         * server-src/diskfile.c: Ditto
10593         * server-src/diskfile.h: Ditto
10594         * server-src/driver.c: Ditto
10595         * server-src/driverio.c: Ditto
10596         * server-src/find.c: Ditto
10597         * server-src/find.h: Ditto
10598         * server-src/holding.c: Ditto
10599         * server-src/holding.h: Ditto
10600         * server-src/logfile.c: Ditto
10601         * server-src/logfile.h: Ditto
10602         * server-src/planner.c: Ditto
10603         * server-src/reporter.c: Ditto
10604         * server-src/server_util.c: Ditto
10605         * server-src/server_util.h: Ditto
10606         * server-src/taper.c: Ditto
10607
10608 2005-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10609
10610         * server-src/taper.c: Change message: on new tape due to
10611
10612 2005-10-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10613         Patch by John R. Franks 
10614
10615         * common-src/amflock.c (main): Don't call safe_fd, it's not needed
10616           during configure.
10617         * configure.in: '#include <sys/types.h>' in the check
10618           'for Linux like scsi support (sg)'
10619
10620 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10621
10622         * client-src/amandad.c (writebuf): Call waitpid in the parent.
10623
10624 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10625
10626         * client-src/amandad.c (service_delete): Remove call to sleep.
10627         * common-src/bsd-security.c: Add bsdprintf. Add more debug.
10628           The handle is used as a string, instead of 2 int.
10629
10630 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10631
10632         * common-src/rsh-security.c: rshprintf should call dbprint.
10633         * common-src/ssh-security.c: rshprintf should call dbprint, add many
10634           rshprintf.
10635         * common-src/event.c: Add eventprintf, use it. Add debug_prefix_time
10636           to the log. 
10637
10638 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10639
10640         * common-src/stream.c: len is a socklen_t.
10641         * server-src/amindexd.c: Add socklen as a socklen_t.
10642         * restore-src/amidxtaped.c: Add socklen as a socklen_t.
10643         * tape-src/tapetype.c: Change printf format.
10644         * server-src/amlabel.c: Add a variable isa_zftape. init fd to -1.
10645         * server-src/dumper.c: Init outfd to -1.
10646         * common-src/file.c (areads_getbuf): First argument is const.
10647
10648 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10649
10650         * server-src/reporter.c: Don't trunk hostname/diskname in
10651           'FAILURE AND STRANGE DUMP SUMMARY' section.
10652
10653 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10654
10655         * server-src/chunker.c (main): Remove outfd.
10656
10657 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10658
10659         * server-src/conffile.c, server-src/diskfile.c, server-src/infofile.c,
10660           client-src/getfsent.c, common-src/statfs.c, common-src/token.c
10661           (main): Remove fd declaration.
10662
10663 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10664
10665         * client-src/runtar.c: 'e' and 'bdf' are only needed if GNUTAR.
10666
10667 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10668
10669         * common-src/sl.c (insert_sort_sl). Typo.
10670
10671 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10672
10673         * config/config.guess: Update from automake 1.9.5.
10674         * config/config.sub: Update from automake 1.9.5.
10675         * config/depcomp: Update from automake 1.9.5.
10676         * config/install-sh: Update from automake 1.9.5.
10677         * config/missing: Update from automake 1.9.5.
10678         * config/mkinstalldirs: Update from automake 1.9.5.
10679         * config/ltmain.sh: Update from libtool-1.5.16.
10680         * config/libtool.m4i: Update from libtool-1.5.16.
10681
10682 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10683
10684         * common-src/bsd-security.c: Fix small bug.
10685
10686 2005-09-22  John R. Jackson <jrj@purdue.edu>
10687
10688         * configure.in: If --without-server is specified, either on the
10689           command line or via config.site, make sure --without-restore
10690           is also in effect.  Avoids compilation errors if mismatched.
10691         * example/config.site: Document above.
10692
10693 2005-09-21  John R. Jackson <jrj@purdue.edu>
10694
10695         * server-src/getconf.c: Allow CLIENT_LOGIN to be retrieved via
10696           "amgetconf build.CLIENT_LOGIN".
10697
10698 2005-09-21  John R. Jackson <jrj@purdue.edu>
10699
10700         * server-src/amlabel.c: 'int fd' is only needed if HAVE_LINUX_ZFTAPE_H
10701           is defined.
10702
10703 2005-09-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10704
10705         * server-src/amlabel.c: 'int fd' is needed.
10706
10707 2005-09-20  John R. Jackson <jrj@purdue.edu>
10708
10709         * server-src/reporter.c: Fix minor typo noticed by Scott R. Burns
10710           <Scott.Burns@Netcontech.Com>.
10711
10712 2005-09-20  John R. Jackson <jrj@purdue.edu>
10713
10714         * common-src/file.c: Create safe_fd() to do common file descriptor
10715           safety operations at the start of every program.  In addition
10716           to closing everything from three on up that used to be done
10717           with explicit code, make sure stdin, stdout and stderr are
10718           open per a potential (but unlikely) security report from Ben
10719           Schwarz <bschwarz@EECS.berkeley.EDU>.
10720         * common-src/amanda.h: Ditto.
10721         * client-src/amandad.c: Ditto.
10722         * client-src/calcsize.c: Ditto.
10723         * client-src/getfsent.c: Ditto.
10724         * client-src/killpgrp.c: Ditto.
10725         * client-src/rundump.c: Ditto.
10726         * client-src/runtar.c: Ditto.
10727         * client-src/selfcheck.c: Ditto.
10728         * client-src/sendbackup.c: Ditto.
10729         * client-src/sendsize.c: Ditto.
10730         * client-src/versionsuffix.c: Ditto.
10731         * common-src/amflock.c: Ditto.
10732         * common-src/rsh-security.c: Ditto.
10733         * common-src/ssh-security.c: Ditto.
10734         * common-src/statfs.c: Ditto.
10735         * common-src/token.c: Ditto.
10736         * recover-src/amrecover.c: Ditto.
10737         * restore-src/amidxtaped.c: Ditto.
10738         * restore-src/amrestore.c: Ditto.
10739         * server-src/amadmin.c: Ditto.
10740         * server-src/amcheck.c: Ditto.
10741         * server-src/amcleanupdisk.c: Ditto.
10742         * server-src/amflush.c: Ditto.
10743         * server-src/amindexd.c: Ditto.
10744         * server-src/amlabel.c: Ditto.
10745         * server-src/amlogroll.c: Ditto.
10746         * server-src/amtape.c: Ditto.
10747         * server-src/amtrmidx.c: Ditto.
10748         * server-src/amtrmlog.c: Ditto.
10749         * server-src/chunker.c: Ditto.
10750         * server-src/conffile.c: Ditto.
10751         * server-src/diskfile.c: Ditto.
10752         * server-src/driver.c: Ditto.
10753         * server-src/getconf.c: Ditto.
10754         * server-src/infofile.c: Ditto.
10755         * server-src/planner.c: Ditto.
10756         * server-src/reporter.c: Ditto.
10757         * server-src/taper.c: Ditto.
10758         * server-src/dumper.c: Ditto plus remove incorrect chdir to hard
10759           coded "/tmp/amanda".
10760
10761 2005-09-20  John R. Jackson <jrj@purdue.edu>
10762
10763         * client-src/calcsize.c: Fix format string.
10764         * server-src/diskfile.c: Fix compiler warnings.
10765         * server-src/planner.c: Fix compiler warnings.
10766
10767 2005-09-20  John R. Jackson <jrj@purdue.edu>
10768
10769         * common-src/amanda.h: Add dbreopen() so debug file can be closed
10770           and then reopened if needed.
10771         * common-src/debug.c: Ditto.
10772         * client-src/runtar.c: Close the debug file (fd 10) around the
10773           exec of GNU tar.  Newer versions complain about stray file
10774           descriptors.
10775         * server-src/getconf.c: Use dbreopen() to create the debug file.
10776           Do not try to open config file unless needed (allows clients to
10777           use build.XXX/dbopen.XXX/dbclose.XXX).
10778
10779 2005-09-20  John R. Jackson <jrj@purdue.edu>
10780
10781         * client-src/sendbackup-dump.c: Ignore a new message from Solaris
10782           vxdump.
10783
10784 2005-09-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10785
10786         * common-src/bsd-security.c: Generate a unique event_id, thei
10787           proto_handle is not always unique.
10788
10789 2005-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10790
10791         * server-src/amverify.sh.in: Don't check for EOI, it's buggy.
10792
10793 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10794
10795         * server-src/driverio.c: Don't save history with size < 0.
10796
10797 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10798         Patch by Geert Uytterhoeven <geert@linux-m68k.org>
10799
10800         * server-src/planner.c: Don't use history with size < 0.
10801
10802 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10803         Patch Paul Bijnens <paul.bijnens@xplanation.com>
10804
10805         * server-src/planner.c(delay_dumps): Delay incremental dump also
10806           larger than tape.
10807
10808 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10809         Patch by Orion Poplawski <orion@cora.nwra.com>
10810
10811         * server-src/amoverview.pl.in: Add options -last, -num0 and -togo0.
10812         * man/amoverview.8: Document -last, -num0 and -togo0.
10813
10814 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10815         Patch by Orion Poplawski <orion@cora.nwra.com>
10816
10817         * server-src/driver.c: Make tape_length and tape_left unsigned long.
10818
10819 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10820         Patch by Stefan G. Weichinger <monitor@oops.co.at>
10821
10822         * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases.
10823
10824 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10825
10826         Bug found by John E Hein <jhein@timing.com>.
10827         * server-src/amadmin.c: Fix of by one with NB_HISTORY.
10828         * server-src/infofile.c:x: Fix of by one with NB_HISTORY.
10829
10830 2005-06-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10831         Patch by Jay Fenlason <fenlason@redhat.com>
10832
10833         * client-src/sendsize.c: Fix dbprintf call.
10834
10835 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10836             Stefan G. Weichinger <monitor@oops.co.at>
10837
10838         * example/amanda.conf.in: edited the default-value for the
10839                                   holdingdisk-usage to "use -100 Mb".
10840                                   The old value "use 290 Mb" didn't make much
10841                                   sense anymore.
10842
10843 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10844
10845         * server-src/amverifyrun.sh.in: Remove buggy space.
10846
10847 2005-05-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10848
10849         * server-src/amadmin.c: Add [--days <num>] argument to tape subcommand.
10850
10851 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10852
10853         * example/amanda.conf.in: Update from 2.4.5.
10854
10855 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10856
10857         * docs/*: New documentation from xml-docs.
10858         * docs/Makefile.am (pkgdata_DATA): Update for new files.
10859
10860 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10861
10862         * man/Makefile.am (COMMON_MAN_PAGES): Add amanda.conf.5.
10863
10864 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10865
10866         * man/*: Use man pages form xml-docs.
10867         * configure.in (AC_CONFIG_FILES): Remove all man pages.
10868         * man/Makefile.am (EXTRA_DIST): Add amadmin.8 amanda.8 amanda.conf.5 
10869           amcheck.8 amcheckdb.8 amcleanup.8 amdump.8 amflush.8 amgetconf.8
10870           amlabel.8 amoverview.8 amreport.8 amrecover.8 amrmtape.8 amstatus.8
10871           amtapetype.8 amtoc.8 amverify.8 amverifyrun.8
10872
10873 2005-05-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10874
10875         * common-src/rsh-security.c (net_read_fillbuf): Read only a packet,
10876           nothing more.
10877         * common-src/ssh-security.c (net_read_fillbuf): Read only a packet,
10878           nothing more.
10879         * common-src/rsh-security.c (conn_put): Don't kill the process, only do
10880           a wait with WNOHANG.
10881         * common-src/ssh-security.c (conn_put): Don't kill the process, only do
10882           a wait with WNOHANG.
10883
10884 2005-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10885
10886         * changer-src/chg-zd-mtx.sh.in: Improve handling of
10887           "Unknown Storage Element Loaded".
10888
10889 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10890         - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052
10891
10892         * server-src/amverifyrun.sh.in: Filter changer log file.
10893
10894 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10895
10896         * server-src/amcheck.c: Improve messages.
10897
10898 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10899
10900         * client-src/sendsize.c (generic_calc_estimates): Use amname instead
10901           of dirname in message.
10902
10903 2005-03-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10904
10905         * server-src/conffile.h: Rename getcont_unit_divisor to
10906           getconf_unit_divisor.
10907         * server-src/amadmin.c: Use getconf_unit_divisor.
10908         * server-src/amcheck.c: Use getconf_unit_divisor.
10909         * server-src/conffile.c: Use getconf_unit_divisor.
10910         * server-src/conffile.c (unit_divisor): Init to 1.
10911         * server-src/reporter.c: Use getconf_unit_divisor. The mb macro always
10912           divide by 1024. Add the du macro. Use mb or du where appropriate.
10913
10914 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10915
10916         * server-src/infofile.h (history_t): Add secs field.
10917         * server-src/infofile.c (read_txinfofile): Parse info file with secs
10918           in history.
10919         * server-src/infofile.c (write_txinfofile): Write secs in history.
10920         * server-src/driverio.c (update_info_dumper): Update secs in history.
10921
10922 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10923
10924         * server-src/planner.c: Improve server estimate.
10925         * server-src/planner.c: Write server estimate like others estimate.
10926
10927 2005-02-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10928
10929         * server-src/amstatus.pl.in: last_level is negative, on new disk.
10930
10931 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10932
10933         * server-src/amstatus.pl.in: Use '-?' to match negative values
10934           instead of '-*'.
10935
10936 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10937         Patch by Orion Poplawski <orion@cora.nwra.com>
10938
10939         * server-src/amoverview.pl.in: Print the total number of level 0
10940           dumps for each disk and the number of runs until the last level 0
10941           dump will be overwritten.
10942
10943 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10944         Patch by Phil Homewood <pdh@snapgear.com>
10945
10946         * server-src/amoverview.pl.in: Add -skipmissed option.
10947
10948 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10949
10950         * server-src/driver.c: Print the chunksize to the log.
10951
10952 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10953
10954         * client-src/calcsize.c: Print estimate to STDERR.
10955         * client-src/sendsize.c (generic_calc_estimates): Read calcsize result,
10956           and send it to amandad. Write debuging message.
10957
10958 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10959         Patch by Franz G. Fischer
10960
10961         * server-src/conffile.c: Adds a value type LONG and a val_t.l long
10962           union member and changes get_number() to return long and
10963           get_simple() to fill val_t.l if called for a long value.  The
10964           get_simple() calls have been changed to LONG for typetype_t.blocksize
10965           typetype_t.length, typetype_t.filemark, holdingdisk_t.disksize and
10966           holdingdisk_t.chunksize.
10967
10968 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10969
10970         * server-src/amdump.sh.in: Redirect in append mode.
10971         * server-src/driver.c: Set stdout and stderr to not buffered.
10972         * server-src/planner.c: Set stderr to not buffered.
10973           Print 'setup_estimate:' on one line.
10974         * server-src/amstatus.pl.in: Parse new 'setup_estimate:' line.
10975
10976 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10977
10978         * client-src/calcsize.c: Improve estimate for sparse file and count
10979           space for filenames.
10980
10981 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10982
10983         * server-src/planner.c: Improve message if no incremental estimate.
10984
10985 2004-12-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10986         Patch by Christopher Pascoe <c.pascoe@itee.uq.edu.au>
10987
10988         * common-src/match.c (match_glob, match_tar): Don't amfree(regex)
10989           before calling error().
10990
10991 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10992
10993         * server-src/driver.c (startaflush): Use ALGO_SMALLEST if nothing fit.
10994
10995 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10996
10997         * server-src/driver.c: Typo.
10998
10999 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11000
11001         * restore-src/amrestore.c: Should now work correctly with empty file.
11002         * server-src/amverify.sh.in: Parse "End-of-Information detected."
11003           message from amrestore.
11004
11005 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11006
11007         * server-src/driver.c: tape_left should not become negative.
11008
11009 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11010         Patch by Orion Poplawski <orion@cora.nwra.com>
11011
11012         * server-src/diskfile.c: Parse negative spindle (-1).
11013
11014 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11015
11016         * server-src/amadmin.c: Balance subcommand use displayunit.
11017         * server-src/amcheck.c: Small cleanup.
11018
11019 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11020
11021         * restore-src/amrestore.c: Undo patch from 2004-11-11, it break
11022           the file: dirver.
11023
11024 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11025
11026         * server-src/amstatus.pl.in: Remove trace.
11027
11028 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11029
11030         * server-src/diskfile.c: Compilation fix.
11031
11032 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11033
11034         * server-src/conffile.c: Parse displayunit,
11035           new fonction getcont_unit_divisor().
11036         * server-src/conffile.h: Prototype of getcont_unit_divisor().
11037         * server-src/amcheck.c: Use displayunit to display holding disk size.
11038         * server-src/amstatus.pl.in: Use displayunit to display dump size.
11039         * server-src/reporter.c: use displayunit to display dump size.
11040         * Document displayunit.
11041
11042 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11043
11044         * server-src/reporter.c: Change 'Daily' for 'Incr.'.
11045
11046 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11047
11048         * server-src/amstatus.pl.in Fix for level -1.
11049
11050 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11051         Patch by Daniel Widyono <widyono@seas.upenn.edu>
11052
11053         * changer-src/chg-zd-mtx.sh.in: Fix for library with barcode.
11054
11055 2004-11-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11056
11057         * restore-src/amrestore.c: Read empty file.
11058
11059 2004-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11060
11061         * tape-src/tapetype.c: Use new tape.
11062
11063 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11064
11065         * server-src/amstatus.pl.in: Display partial estimate.
11066
11067 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11068
11069         * server-src/diskfile.c (read_diskline): A spindle must be numerical.
11070
11071 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11072
11073         * server-src/holding.c (rename_tmp_holding): Always rename files.
11074
11075 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11076
11077         * server-src/driver.c: Print message when too many retry.
11078         * server-src/amstatus.pl.in: Detect a failed dump after too many retry.
11079         * amplot/amplot.awk: Parse these message.
11080
11081 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11082
11083         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
11084           if dumper returns DONE and taper returns TRYAGAIN.
11085
11086 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11087
11088         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
11089           if dumper returns TRYAGAIN and taper returns DONE.
11090
11091 2004-10-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11092
11093         * server-src/amflush.c: Don't start a driver if nothing to flush.
11094
11095 2004-10-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11096         Patch by Eric Siegerman <erics@telepres.com>
11097
11098         * example/3hole.ps: Fix for multiple tape.
11099
11100 2004-10-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11101
11102         * server-src/amverify.sh.in: Terminate if no tape online.
11103
11104 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11105
11106         * server-src/amadmin.c (main): Call check_dumpuser() as soon as posible.
11107
11108 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11109
11110         * server-src/conffile.c (getconf_byname): Special case for typ == BOOL.
11111
11112 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11113
11114         * server-src/planner.c (promote_hills): Use dumpcycle instead of
11115           tapecycle.
11116         * example/amanda.conf.in: Remove warning for tapecyle set to inf.
11117
11118 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11119
11120         * server-src/amadmin.c (balance): Don't core dump if DUMPCYLE is too
11121           big.
11122
11123 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11124
11125         * tape-src/tapetype.c: New -o option, doesn't overwrite amanda
11126           tape without -o.
11127         * man/amtapetype.8.in: Document new -o option.
11128
11129 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11130
11131         * server-src/amstatus.pl.in: Works with failed dump to tape.
11132
11133 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11134
11135         * client-src/sendbackup-gnutar.c (end_backup): Write warning message
11136           in not fatal error.
11137         * server-src/dumper.c (process_dumpline): Parse warning message.
11138         * server-src/reporter.c (handle_strange): Print warning message in
11139           the STRANGE summary.
11140
11141 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11142
11143         * server-src/driverio.c (free_serial): Set stable[s].dp to NULL.
11144         * server-src/driverio.c (disk2serial): Check that stable[s].dp == NULL.
11145
11146 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11147         Patch by Joe Rhett <jrhett@isite.net>
11148
11149         * common-src/alloc.c (safe_env): Keep SYSTEMROOT if __CYGWIN__.
11150
11151 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11152         Patch by Orion Poplawski <orion@cora.nwra.com>
11153
11154         * server-src/conffile.c (copy_dumptype): Copy maxpromoteday.
11155
11156 2004-08-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11157
11158         * client-src/selfcheck.c (check_disk): More check for CALCSIZE.
11159
11160 2004-08-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11161
11162         * common-src/amfeatures.h (fe_selfcheck_calcsize): New feature.
11163         * common-src/amfeatures.c (am_init_feature_set): Set
11164           fe_selfcheck_calcsize.
11165         * client-src/selfcheck.c: Check if calcsize binary is available if
11166           it is needed.
11167         * server-src/amcheck.c (start_host): Call selfcheck with CALCSIZE
11168           if it support fe_selfcheck_calcsize.
11169
11170 2004-08-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11171
11172         * man/amanda.8.in: Document 'estimate' dumptype option.
11173
11174 2004-08-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11175
11176         * server-src/amrmtape.sh.in: Understand history info.
11177
11178 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11179
11180         * server-src/driver.c: Typo.
11181
11182 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11183
11184         * server-src/amstatus.pl.in: Parse CONTINUE and RQ-MORE-DISK line,
11185           print if a dump is waiting for holding disk space (roomq).
11186
11187 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11188
11189         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
11190           Don't call free_serial().
11191         * server-src/driver.c (dumper_result): Call free_serial_dp(dp).
11192         * server-src/driverio.c (dumper_cmd): Remove CONTINUE cmd.
11193         * server-src/driverio.c (chunker_cmd): Print serial number for CONTINUE
11194           command.
11195         * server-src/driverio.c (disk2serial): Try to find a 'dp' before
11196           allocating a new serial.
11197         * server-src/driverio.c (free_serial_dp): New function to remove the
11198           serial for a dp.
11199         * server-src/driverio.h (free_serial_dp): Prototype.
11200         * server-src/chunker.c (databuf_flush): Read serial number for CONTINUE
11201           command.
11202
11203 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11204
11205         * server-src/planner.c (getsize): Do SERVER estimate, call sendsize with
11206           CALCSIZE estimate.
11207
11208 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11209
11210         * client-src/calcsize.c: Support exclude and include like gnutar,
11211           change in program argument.
11212         * client-src/sendsize.c: Execute calcsize as requested.
11213         * common-src/amfeatures.h (fe_calcsize_estimate): New feature.
11214         * common-src/amfeatures.c (am_init_feature_set): set
11215           fe_calcsize_estimate.
11216         * server-src/amcheck.c (start_host): Check if client support CALCSIZE
11217           estimate.
11218
11219 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11220
11221         * server-src/conffile.h (ES_CLIENT, ES_SERVER, ES_CALCSIZE): New define
11222           for estimate type.
11223         * server-src/conffile.h (dumptype_t): Add 'estimate' and 's_estimate'
11224         * server-src/conffile.c (get_estimate): New function to parse estimate
11225           type, ....
11226         * server-src/diskfile.c (read_diskline): Copy 'estimate'.
11227         * server-src/diskfile.h (disk_t): Add 'estimate'.
11228         * server-src/amadmin.c (disklist_one): Print estimate type.
11229
11230 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11231
11232         * common-src/match.c (match_tar, tar_to_regex): New fonction similar
11233           to the exclude option of tar.
11234         * common-src/amanda.h (match_tar, tar_to_regex): Prototype.
11235
11236 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11237
11238         * server-src/infofile.h (history_t): new struct.
11239         * server-src/infofile.h (info_t): Add a history_t.
11240         * server-src/infofile.c (read_txinfofile): Parse history data.
11241         * server-src/infofile.c (write_txinfofile): Print history data.
11242         * server-src/amadmin.c (export_one): export history data.
11243         * server-src/amadmin.c (import_one): import history data.
11244         * server-src/driverio.c (update_info_dumper): update history data.
11245
11246 2004-05-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11247         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11248
11249         * server-src/planner.c: Log L_DISK for autoflush disk.
11250
11251 2004-05-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11252
11253         * server-src/planner.c (handle_result): Add dp to pestq at the
11254           correct place.
11255
11256 2004-04-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11257
11258         * common-src/amanda.h: #include "amanda-int.h" only if !CONFIGURE_TEST.
11259
11260 2004-04-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11261
11262         * config/acinclude.m4i (AX_CREATE_STDINT_H) : New macro.
11263         * configure.in: Use AX_CREATE_STDINT_H(common-src/amanda-int.h).
11264         * common-src/amanda.h: include "common-src/amanda-int.h".
11265         * changer-src/scsi-cam.c: Change u_int32_t for uint32_t.
11266
11267 2004-04-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11268
11269         * configure.in: Fix for automake 1.8.4.
11270         * config/acinclude.m4i: Fix for automake 1.8.4.
11271
11272 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11273
11274         * configure.in: Result of autoupdate.
11275
11276 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11277
11278         * config/config.guess: Update from automake 1.8.
11279         * config/config.sub: Update from automake 1.8.
11280         * config/depcomp: Update from automake 1.8.
11281         * config/install-sh: Update from automake 1.8.
11282         * config/missing: Update from automake 1.8.
11283         * config/mkinstalldirs: Update from automake 1.8.
11284         * config/ltmain.sh: Update from libtool-1.5.6.
11285         * config/libtool.m4i: Update from libtool-1.5.6.
11286
11287 2004-04-26  Marc Mengel <mengel@fnal.gov>
11288
11289         * tape-src/output-rait.c: Verify reads correctly.
11290
11291 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11292
11293         * server-src/driver.c (continue_dumps): Fix deadlock if holding disk
11294         fill up when in degraded mode.
11295
11296 2004-04-23  Eric Siegerman <eric_97@pobox.com>
11297
11298         Bug fix: amflush would run, and consume a tape, even if there
11299         were no Amanda directories waiting to be flushed:
11300         * common-src/sl.c (is_empty_sl): New function to test
11301           whether a list is empty.
11302         * common-src/sl.h (is_empty_sl): Prototype.
11303         * server-src/amflush.sh (main): Use is_empty_sl(),
11304           rather than ==NULL, to test emptiness of datestamp_list.
11305
11306 2004-04-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11307
11308         * server-src/planner.c (setup_estimate): Typo.
11309
11310 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11311
11312         Allow bumpsize, bumppercent, bumpdays and bumpmult to be in a dumptype.
11313         * server-src/conffile.c: Parse.
11314         * server-src/conffile.h: Define.
11315         * server-src/amadmin.c (disklist_one): Use.
11316         * server-src/diskfile.c (read_diskline): Initialize.
11317         * server-src/diskfile.h: Define.
11318         * server-src/planner.c: Use.
11319         * man/amanda.8.in: Document.
11320
11321 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11322         Fix by Paul Bijnens <paul.bijnens@xplanation.com>
11323
11324         * server-src/planner.c (setup_estimate): Only ask for level 0 estimate
11325           if strategy is noinc.
11326
11327 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11328         Documentation from Paul Bijnens <paul.bijnens@xplanation.com>
11329
11330         * man/amoverview.8.in: Document results.
11331
11332 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11333         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11334
11335         * server-src/amoverview.pl.in: Print last two characters.
11336
11337 2004-04-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11338
11339         * changer-src/chg-disk.sh.in: Fix for sh compatibility.
11340
11341 2004-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11342         Fix by John Koyle <jkoyle@rfpdepot.com>
11343
11344         * common-src/dgram.c: Fix EAGAIN on Linux.
11345
11346 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11347
11348         * server-src/amadmin.c (bumpsize): Typo.
11349
11350 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11351
11352         New bumppercent global option.
11353         * example/amanda.conf.in: Document it.
11354         * man/amanda.8.in: Document it.
11355         * server-src/amadmin.c (bumpsize): Write it.
11356         * server-src/conffile.c: Parse it.
11357         * server-src/conffile.h: Define It.
11358         * server-src/planner.c (bump_thresh): New size_level_0 parameter,
11359           use the new bumppercent option.
11360
11361 2004-04-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11362
11363         * server-src/amadmin.c: Rename host_t to amhost_t.
11364         * server-src/amcheck.c: Ditto.
11365         * server-src/amindexd.c: Ditto.
11366         * server-src/diskfile.c: Ditto.
11367         * server-src/diskfile.h: Ditto.
11368         * server-src/driver.c: Ditto.
11369         * server-src/planner.c: Ditto.
11370
11371 2004-03-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11372
11373         * amplot/amplot.awk: Parse "driver: tape size" line.
11374
11375 2004-03-22  Stefan G. Weichinger <monitor@oops.co.at>
11376
11377         * server-src/amcheck.c (start_host): Added warning for hostname
11378           localhost.
11379         * docs/TOP-TEN-QUESTIONS: added note about localhost-warning.
11380
11381 2004-03-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11382
11383         * docs/Makefile.am (pkgdata_DATA): Add TOP-TEN-QUESTIONS.
11384
11385 2004-03-18  Stefan G. Weichinger <monitor@oops.co.at>
11386
11387         * docs/TOP-TEN-QUESTIONS: New file.
11388
11389 2004-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11390
11391         * server-src/reporter.c (handle_success): Set stats[i].coutsize
11392           correctly.
11393         * server-src/taper.c: Do not subtract tt_blocksize_kb from filesize.
11394
11395 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11396
11397         * common-src/ssh-security.c: New ssh security driver.
11398         * common-src/Makefile.am (libamanda_la_SOURCES): Add ssh-security.c.
11399         * common-src/security.c: Add ssh security driver.
11400         * configure.in: Add --with-ssh-security. Define SSH_SECURITY.
11401
11402 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11403
11404         * server-src/amcheck.c: Do labelstr check in correct order.
11405
11406 2004-03-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11407
11408         Use only one time event for all dumpers, no wait event.
11409         start_some_dumps is called everytime a dumper or taper finish.
11410         * server-src/driver.c (dumpers_ev_time): New global event.
11411         * server-src/driver.c (start_some_dumps): Remove dumper argument,
11412           can start many dump.
11413         * server-src/driver.c (dumper_result): Call start_some_dumps instead
11414           of event_wakeup.
11415         * server-src/driver.c (handle_idle_wait): Remove function.
11416         * server-src/driver.c (handle_dumpers_time): new handle for
11417           dumpers_ev_time, it call start_some_dumps.
11418         * server-src/driverio.h (dumper_t): Remove ev_wait.
11419         * server-src/driverio.c (startup_dump_process): Don't set ev_wait.
11420
11421 2004-03-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11422
11423         * common-src/fileheader.c (print_header): Fix fprintf use.
11424         * client-src/amqde.c (parse_exclude_path): Fix = by ==.
11425         * common-src/protocol.c (s_repwait): Fix compiler warning.
11426         * common-src/rsh-security.c (runrsh): Fix compiler warning.
11427
11428 2004-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11429
11430         * common-src/pipespawn.c (pipespawn): Remove passwdvar and passwdfd.
11431
11432 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11433         Reported by Allen Liu <allen@bellglobal.com>
11434
11435         * server-src/amverifyrun.sh.in: Replace '-e' test by '-f'.
11436
11437 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11438
11439         * server-src/amcheck.c: Verify the tape is listed in the tapelist file.
11440         * server-src/taper.c: Ditto
11441
11442 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11443
11444         * server-src/driver.c (dump_schedule): Print complete name.
11445
11446 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11447
11448         The estimate send a PREP (partial REP) packet after each estimate.
11449         * client-src/amandad.c: Send PREP packet if sendsize.
11450         * common-src/amfeatures.c (am_init_feature_set): Add
11451           fe_partial_estimate.
11452         * common-src/amfeatures.h (am_feature_e): Add fe_partial_estimate.
11453         * common-src/packet.c (pktypes[]): Add PREP.
11454         * common-src/packet.h (pktype_t): Add P_PREP.
11455         * common-src/protocol.c (action_t): Add A_CONTPEND.
11456         * common-src/protocol.c: Handle P_PREP packet.
11457         * server-src/amstatus.pl.in: Parse "got partial result" line.
11458         * server-src/planner.c: Handle P_PREP packet.
11459
11460 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11461         Reported by Jason Brooks <jason.brooks@windriver.com>
11462
11463         * server-src/reporter.c: Remove duplicate setting of cd to
11464           &ColumnData[Level].
11465
11466 2004-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11467         Patch by Philippe Charnier <charnier@xp11.frmug.org>
11468
11469         * server-src/amtrmidx.c: Add '\n'.
11470
11471 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11472
11473         * recover-src/set_commands.c (cd_glob): Fix memory leak.
11474
11475 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11476
11477         * recover-src/set_commands.c (cd_dir, set_directory): Fix memory leak.
11478         * recover-src/uscan.l: Fix double amfree.
11479
11480 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11481
11482         * server-src/driver.c: Build holding disk name with timestamp.
11483         * server-src/holding.c (is_datestr): Check also for timestamp.
11484         * server-src/planner.c: Flush today's dump with autoflush.
11485         * server-src/find.c: Find holding disk with timestamp.
11486         * server-src/find.h (find_result_t): Add timestamp field.
11487
11488 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11489
11490         * changer-src/chg-zd-mtx.sh.in: Works if all slot and tape are full.
11491
11492 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11493
11494         * server-src/amverifyrun.sh.in: Do not execute amverify if no tape
11495           to verify.
11496
11497 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11498
11499         * server-src/amdump.sh.in: Do not redirect to /dev/null.
11500
11501 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11502
11503         * config/acinclude.m4i: Define CF_WAIT_INT.
11504         * configure.in: Call CF_WAIT_INT.
11505         * common-src/amanda.h: Try to make waitpid doesn't warn.
11506
11507 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11508
11509         * Makefile.am (EXTRA_DIST): Add contrib/mkamandisk.
11510
11511 2004-01-29  Christoph Pospiech <pospiech@de.ibm.com>
11512
11513         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-iomega.pl.
11514         * changer-src/Makefile.am (libexec_SCRIPTS) Add chg-iomega.
11515         * changer-src/chg-iomega.pl.in: New changer script.
11516         * docs/TAPE.CHANGERS: Document chg-iomega.
11517         * contrib/mkamandisk: Script to format iomega disk.
11518
11519 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11520
11521         * restore-src/amidxtaped.c (scan_init): Remove the log file if it exit.
11522
11523 2004-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11524
11525         * configure.in: Set GNUTAR_LISTED_INCREMENTAL_DIRX.
11526         * example/amanda.conf.in: Update record documentation.
11527         * man/amanda.8.in: Update record documentation.
11528
11529 2004-01-14  Stefan G. Weichinger <monitor@oops.co.at>
11530
11531         * docs/INSTALL: Add config for xinetd.
11532
11533 2004-01-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11534
11535         * server-src/planner.c (handle_result): Detect bad estimate (-1).
11536         * server-src/planner.c (analyze_estimate): Don't schedule level
11537           if the estimate is bad.
11538
11539 2003-12-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11540
11541         * docs/HOWTO-FILE-DRIVER: New file.
11542         * docs/TAPE.CHANGERS: Explain chg-disk.
11543         * docs/Makefile.am (pkgdata_DATA): add HOWTO-FILE-DRIVER.
11544
11545 2003-12-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11546
11547         * docs/SYSTEM.NOTES: Add a note about sendsize coredump on AIX.
11548
11549 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11550         Patch by Jean-Christian SIMONETTI <simonetti@echo.fr>
11551
11552         * changer-src/chg-disk.sh.in: New changer script.
11553         * changer-src/Makefile.am (libexec_SCRIPTS): Add chg-disk.
11554         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-disk.sh.
11555
11556 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11557
11558         * tape-src/tapetype.c: extern int optind.
11559         * tape-src/tapeio.c: extern int optind.
11560
11561 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11562         Patch by C.Scheeder <christoph.scheeder@scheeder.de>
11563
11564         * changer-src/sense.c (SenseType): Add "DAT AutoChanger" and "C1537A".
11565
11566 2003-11-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11567
11568         * server-src/driver.c: Print the tape size.
11569         * server-src/amstatus.pl.in: print % of tape use.
11570
11571 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11572
11573         * server-src/conffile.c (copy_dumptype): Copy in/exclude only if seen.
11574
11575 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11576
11577         * server-src/reporter.c (output_tapeinfo): Fix printing of new tape.
11578
11579 2003-11-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11580
11581         * server-src/amcheck.c (taperscan_slot): Deal with label not in
11582           tapelist case.
11583         * server-src/amtape.c (taperscan_slot): Ditto.
11584         * server-src/taper.c (taperscan_slot): Ditto.
11585
11586 2003-11-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11587
11588         * server-src/driver.c (handle_taper_result): Always call
11589           continue_dumps() in TRYAGAIN case.
11590
11591 2003-11-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11592
11593         * changer-src/chg-chio.pl.in (getTapeStatus): Set $drives[$num] to 0
11594         if no tape in drive.
11595
11596 2003-11-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11597
11598         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-AFS.
11599
11600 2003-11-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11601         Patch by Mitch Collinsworth <mitch@ccmr.cornell.edu>
11602
11603         * client-src/selfcheck.c: Skip accessibility check for AFS entries.
11604         * docs/HOWTO-AFS: New file.
11605
11606 2003-11-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11607
11608         * server-src/amadmin.c (tape): Display the next new tapes.
11609         * server-src/reporter.c (output_tapeinfo): Ditto.
11610
11611 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11612
11613         * docs/Makefile.am (pkgdata_DATA): Add chg-scsi.notes.
11614
11615 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11616
11617         * server-src/amcheck.c (taperscan_slot): Set found=3 if new tape.
11618         * server-src/amcheck.c (taper_scan): Handle found==3.
11619         * server-src/amtape.c (taperscan_slot): Set found=3 if new tape.
11620         * server-src/amtape.c (taper_scan): Handle found==3.
11621         * server-src/taper.c (taperscan_slot): Set found=3 if new tape.
11622         * server-src/taper.c (taper_scan): Handle found==3.
11623
11624 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11625
11626         * server-src/amcheck.c: Use stralloc(optarg).
11627         * tape-src/ammt.c: Use stralloc(optarg).
11628         * tape-src/tapetype.c: Use stralloc(optarg).
11629
11630 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11631         Patch by Jay Fenlason <fenlason@redhat.com>
11632
11633         * server-src/dumper.c: Don't set SIGCHLD to SIG_IGN.
11634
11635 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11636         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
11637
11638         * client-src/sendbackup-gnutar.c (AM_SIZE_RE): Fix regex for samba3.
11639
11640 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11641
11642         * server-src/amadmin.c (find): Call find_dump to allow dynamic disklist.
11643         * server-src/amindexd.c: Call find_dump to allow dynamic disklist.
11644         * server-src/amtrmidx.c:  Call find_dump to allow dynamic disklist.
11645         * server-src/diskfile.c (add_disk): Set device and todo.
11646         * server-src/find.c: Build disklist dynamicaly from log files.
11647         * server-src/find.h (find_dump): New prototype.
11648
11649 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11650
11651         * server-src/amlogroll.c: set_pname("amlogroll").
11652
11653 2003-10-24  Todd M. Kover <kovert@omniscient.com>
11654
11655         * add amqde for "quick and dirty estimates" under gnutar (program
11656           that will traverse the filesystem rather than invoke gnutar).
11657           controlled via configure option --with-qde.  This really wants to
11658           be configured in the server.
11659
11660 2003-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11661
11662         * server-src/amverify.sh.in: Fix usage message.
11663         * common-src/fileheader.c (print_header): fprintf to outf.
11664         * server-src/tapefile.c (lookup_last_reusable_tape): Check for
11665           tp->datestamp > 0.
11666         * server-src/amadmin.c (disklist_one): Don't print ':' on device line.
11667
11668 2003-10-23  Todd Kover <kovert@omniscient.com>
11669
11670         * make amrecover link against readline rather than libamanda so
11671           only amrecover would require the shared library (if it's found)
11672
11673 2003-10-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11674         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11675
11676         * client-src/amandates.c (finish_amandates): Call error() if the
11677           close of amdf fail.
11678         * common-src/amflock.c (create_lock): Return -1 if the close of f fail.
11679         * common-src/amflock.c (read_lock): Don't set f to NULL if the close
11680           fail.
11681         * server-src/tapefile.c (write_tapelist): Return 1 if the close of
11682           tapef fail.
11683
11684 2003-10-14  John R. Jackson (jrj@purdue.edu)
11685
11686         * docs/SYSTEM.NOTES: Add FreeBSD 5.1 note about setting the UDP packet
11687           size, compliments of Nicolas Ecarnot <nicolas.ecarnot@accim.com>.
11688
11689 2003-10-14  John R. Jackson (jrj@purdue.edu)
11690
11691         * client-src/sendsize.c: Handle case where PID's get re-used.
11692
11693 2003-10-14  John R. Jackson (jrj@purdue.edu)
11694
11695         * configure.in: Need to check for sys/gscdds.h on AIX to enable
11696           SCSI changer.
11697
11698 2003-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11699
11700         * common-src/genversion.c (prundefvar): New function to print an
11701           undefined variable.
11702         * common-src/genversion.c: Print undefined variable.
11703         * server-src/amcheck.c: Improve message for no LPRCMD defined.
11704
11705 2003-07-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11706
11707         * restore-src/amidxtaped.c: Don't clea re_label before checking
11708           for the changer.
11709
11710 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11711         Patch by Scott Mcdermott <smcdermott@questra.com>
11712
11713         * changer-src/chg-zd-mtx.sh.in (initial_poll_delay): New config
11714           variable to add a pause after a tape loading.
11715
11716 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11717         Fix by John E. Hein <jhein@timing.com>
11718
11719         * changer-src/chg-manual.sh.in: Quote @EGREP@.
11720         * changer-src/chg-null.sh.in: Quote @EGREP@.
11721
11722 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11723
11724         * amplot/amplot.sh.in: Remove files before runnig amplot.awk.
11725         * amplot/amplot.awk: Parse 'flush line', fix tape_wait line.
11726         * server-src/driver.c (read_flush): Write a 'flush size' to the
11727           debug file.
11728
11729 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11730
11731         * changer-src/chg-chio.pl.in: Fix next/prev command.
11732
11733 2003-07-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11734         patch by Paul Bijnens <paul.bijnens@xplanation.com>
11735
11736         * client-src/client_util.c (add_include): Count include with 2 /,
11737           Fix descriptor leak.
11738
11739 2003-06-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11740
11741         * server-src/amstatus.pl.in: Fix print spacing for idle dumpers.
11742
11743 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11744
11745         * server-src/holding.c: Fix compiler error.
11746         * server-src/planner.c: Use snprintf.
11747
11748 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11749         patch by Paul Bijnens <paul.bijnens@xplanation.com>
11750
11751         * tape-src/tapetype.c: Avoid a numerical overflow for large tape
11752           capacities.
11753
11754 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11755
11756         * server-src/amstatus.pl.in: Fix to failed tape.
11757
11758 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11759
11760         * server-src/planner.c (delay_dumps): Delay not delay forced full
11761           before forced full.
11762
11763 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11764
11765         * changer-src/chg-zd-mtx.sh.in: Log the changer file used.
11766
11767 2003-06-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11768
11769         * server-src/amverify.sh.in: Do not advance to next tape.
11770
11771 2003-06-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11772         patch by Eric Siegerman <eric_97@pobox.com>
11773
11774         * server-src/planner.c: Make promote_hills() honour maxpromotedays.
11775
11776 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11777
11778         * changer-src/scsi-bsd.c: Use pDev[DeviceFD].fd instead of DeviceFD.
11779         * changer-src/scsi-hpux_new.c:Use pDev[DeviceFD].fd instead of DeviceFD.
11780         * changer-src/scsi-linux.c: Use pDev[ip].fd instead of DeviceFD.
11781
11782 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11783
11784         * client-src/noop.c: #include "util.h".
11785
11786 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11787
11788         * server-src/amflush.c: Implement new -b and -s options.
11789         * man/amflush.8.in: Document it.
11790
11791 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11792
11793         * server-src/driver.c (dump_to_tape): Don't go in degraded mode if
11794           taper reply DONE.
11795
11796 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11797
11798         * tape-src/output-rait.c: Don't call waitpid if we didn't fork.
11799
11800 2003-06-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11801
11802         * server-src/amverify.sh.in: Use @MAXTAPEBLOCKSIZE@ instead of 32.
11803
11804 2003-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11805         Bug reported by Sven Rudolph <rudsve@drewag.de>
11806
11807         * server-src/holding.c (mkholdingdir): New function to create a holding
11808           directory.
11809         * server-src/holding.h (mkholdingdir): Prototype.
11810         * server-src/driver.c: Use mkholdingdir;
11811         * server-src/chunker.c: Call mkholdingdir before opening a file for
11812           writing.
11813
11814 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11815         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11816
11817         * server-src/amstatus.pl.in: Fix for missing amdump.1 or amflush.1.
11818
11819 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11820         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11821
11822         * server-src/amstatus.pl.in: If nothing is active, it now gives the
11823           status of the last run (amdump or amflush).
11824         * man/amstatus.8.in: Document it.
11825
11826 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11827
11828         * tape-src/output-file.c (check_online): Write error if opendir failed.
11829
11830 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11831         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11832
11833         * server-src/amoverview.pl.in: Use 'amadmin <conf> disklist' instead
11834           of parsing the disklist file.
11835
11836 2003-05-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11837
11838         * server-src/tapefile.c (read_tapelist,parse_tapeline): Fix for
11839           previous patch.
11840
11841 2003-05-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11842
11843         * common-src/versuff.c.in: Use @VERSION_SUFFIX@.
11844
11845 2003-05-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11846
11847         * example/amanda.conf.in: Add more amrecover_changer doc.
11848         * man/amanda.8.in: Add more amrecover_changer doc.
11849         * man/amrecover.8.in: Add more amrecover_changer doc.
11850
11851 2003-05-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11852
11853         * server-src/tapefile.c (read_tapelist): Ignore blank line.
11854         * server-src/tapefile.c (parse_tapeline): Newer status parameter, set
11855           it to '1' when reading blank line.
11856
11857 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11858
11859         * configure.in (AC_CHECK_HEADERS): Enleve linux/ftape-header-segment.h,
11860           linux/ftape-vendors.h et linux/ftape.h.
11861
11862 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11863         Patch by Darin Dugan <dddugan@iastate.edu>
11864
11865         * server-src/amcheck.c: Change subject in email if no error.
11866
11867 2003-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11868
11869         * common-src/error.c (output_error_message): Always prepend program
11870           name.
11871
11872 2003-04-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11873
11874         * server-src/amstatus.pl.in: Fix for estimate disk.
11875
11876 2003-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11877
11878         * server-src/taper.c: Read holding file correctly if blocksize != 32k.
11879
11880 2003-04-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11881         New file by Robert C Dege <RDege@northropgrumman.com>
11882
11883         * configure.in: Find mcutil binary.
11884         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-mcutil.sh and
11885           example/chg-mcutil.conf.
11886         * changer-src/Makefile (libexec_SCRIPTS): Add chg-mcutil.
11887         * changer-src/chg-mcutil.sh.in: New file.
11888         * example/Makefile (EXTRA_DIST): Add chg-mcutil.conf
11889         * example/chg-mcutil.conf.in: New file.
11890
11891 2003-04-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11892
11893         * man/amanda.8.in (blocksize): Document the --with-maxtapeblocksize
11894           configure option.
11895
11896 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11897
11898         * server-src/amverifyrun.sh.in: Run the amverify command.
11899
11900 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11901         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11902
11903         * server-src/reporter.c: Get the filenumber correct.
11904
11905 2003-04-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11906         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11907
11908         * server-src/reporter.c: Print a postscript label for each tape used.
11909
11910 2003-03-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11911
11912         * configure.in (*-sco3.2v4*): It is not like *-sco3.2v5*,
11913           define DEV_PREFIX and RDEV_PREFIX.
11914
11915 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11916
11917         * configure.in: Typo.
11918
11919 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11920         Patch by Gert Doering <gert@greenie.muc.de>
11921
11922         * client-src/getfsent.c (get_fstab_nextentry): Compile on *-sco3.2v4*.
11923
11924 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11925
11926         * configure.in: Compile on *-sco3.2v4*
11927
11928 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11929
11930         * configure.in: Use '=' instead of '=='.
11931
11932 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11933
11934         * recover-src/set_commands.c (set_tape): Recognize null:, rait:,
11935           file: and tape: as driver, not host name.
11936
11937 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11938
11939         * server-src/amrmtape.sh.in: Print better output.
11940
11941 2003-03-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11942
11943         * changer-src/Makefile.am (libexec_SCRIPTS): Missing \.
11944
11945 2003-03-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11946
11947         * client-src/client_util.c (add_include): If include contain 2 '/' then
11948           use at asis, don't try to match it.
11949
11950 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11951
11952         * server-src/changer.h (changer_label): Return an int.
11953         * server-src/changer.h (changer_label): First parameter is char *.
11954
11955 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11956
11957         * file tape-src/output-rait.c (rait_open): Call tapefd_set_master_fd();
11958         * file tape-src/tapeio.c (struct tape_info): Add master_fd field.
11959         * file tape-src/tapeio.c (tape_info_init): Set master_fd to -1;
11960         * file tape-src/tapeio.c (tapefd_getinfo_host, tapefd_getinfo_disk,
11961           tapefd_getinfo_level): Return info of master_fd.
11962         * file tape-src/tapeio.c (tapefd_set_master_fd): New function to set
11963           master_fd.
11964         * file tape-src/tapeio.h (tapefd_set_master_fd): Prototype.
11965
11966 2003-03-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11967
11968         * tape-src/output-file.c (file_tapefd_can_fork): New function that
11969           return 1 if the file: can be run under a forked process.
11970         * tape-src/output-file.h (file_tapefd_can_fork): Prototype.
11971         * tape-src/output-null.c (null_tapefd_can_fork): New function that
11972           return 1 if the null: can be run under a forked process.
11973         * tape-src/output-null.h (null_tapefd_can_fork): Prototype.
11974         * tape-src/output-rait.c (rait_close, rait_tapefd_ioctl): Fork only if
11975         * tapefd_can_fork() return 1.
11976         * tape-src/output-rait.c (rait_tapefd_can_fork): New function that
11977           return 1 if the rait: can be run under a forked process.
11978         * tape-src/output-rait.h (rait_tapefd_can_fork): Prototype.
11979         * tape-src/output-tape.c (tape_tapefd_can_fork): New function that
11980           return 1 if the tape: can be run under a forked process.
11981         * tape-src/output-tape.h (tape_tapefd_can_fork): Prototype.
11982         * tape-src/tapeio.c (struct virtualtape): Add xxx_tapefd_can_fork and
11983           initialize vtable[];
11984         * tape-src/tapeio.c (tapefd_can_fork): New function to can the driver
11985           xxx_tapefd_can_fork function.
11986         * tape-src/tapeio.h (tapefd_can_fork): Prototype.
11987
11988 2003-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11989
11990         * tape-src/output-file.c (file_tapefd_write): Call file_release(fd)
11991           before opening the file for writing.
11992
11993 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11994
11995         * changer-src/chg-zd-mtx.sh.in: Default for driveslot is 0.
11996
11997 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11998
11999         * amplot/amplot.sh.in: New -b option for b/w postscript.
12000         * amplot/amplot.awk: Add 'color' to command if bw is set.
12001         * amplot/amplot.g: Change line 6 to line 8.
12002         * man/amplot.8: Document -b option.
12003
12004 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12005
12006         * recover-src/extract_list.c: Fix the name of the
12007           amidxtaped.<timestamp>.debug file.
12008
12009 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12010         Patch by Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
12011         
12012         * restore-src/amidxtaped.c: Use the device sent by the changer.
12013
12014 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12015
12016         * restore-src/amidxtaped.c: Remove lock 'unlink(conf_logfile)' on
12017           all failure path.
12018
12019 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12020
12021         * server-src/changer.c: Sync with 2.4.4.
12022
12023 2003-02-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12024
12025         * client-src/client_util.c: Print error except ENOENT for
12026           exclude/include files.
12027
12028 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12029
12030         * tape-src/tapetype.c: Use %ld to print some variable.
12031
12032 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12033
12034         * server-src/conffile.c (init_defaults): conf_printer.s must be set
12035           with stralloc("").
12036
12037 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12038         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
12039
12040         * tape-src/tapetype.c: Document -c option.
12041
12042 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12043
12044         * changer-src/chg-zd-mtx.sh.in:Print "are you sure your drive slot is n"
12045
12046 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12047
12048         * server-src/tapefile.c (read_tapelist): return 1 if can't open the
12049           tapelist file.
12050
12051 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12052
12053         * man/amtapetype.8.in: Add doc from a mail by John R. Jackson.
12054
12055 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12056
12057         * server-src/amcheck.c: New -a option.
12058         * man/amcheck.8.in: Document it.
12059
12060 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12061
12062         * server-src/amindexd.c (build_disk_table): Compare the level.
12063
12064 2003-02-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12065         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
12066
12067         * tape-src/tapetype.c: New -c argument to do only the compression test.
12068           Better detection of compression.
12069         * man/amtapetype.8.in: Document -c argument.
12070
12071 2003-02-09  John R. Jackson (jrj@purdue.edu)
12072
12073         * tape-src/tapetype.c: Allocate the I/O buffers on page boundaries.
12074           This helps performance on some OS's.
12075
12076 2003-02-08  John R. Jackson (jrj@purdue.edu)
12077
12078         * restore-src/amrestore.c: Clean up strtol() argument processing.
12079
12080 2003-02-08  John R. Jackson (jrj@purdue.edu)
12081
12082         * docs/INSTALL: Clean up supporting package versions and URL's.
12083
12084 2003-02-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12085
12086         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-CYGWIN.html.
12087
12088 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12089         Patch by Christophe Kalt <kalt@taranis.org>
12090
12091         * client-src/sendbackup-dump.c: New AM_SIZE_RE for NetApp.
12092         * client-src/sendsize.c: New re_size for NetApp.
12093
12094 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12095         Fix by Colin Henein <cmh@>
12096
12097         * common-src/amanda.h: Fix for the where S_ISDIR is not defined.
12098
12099 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12100         Patch by Doug Kingston <dpk@randomnotes.org>
12101
12102         * configure.in (NEED_SETUID_CLIENT): Set to false on *-pc-cygwin.
12103         * configure.in (WANT_SETUID_CLIENT): Set if NEED_SETUID_CLIENT != false.
12104         * client-src/Makefile.am: Don't chmod u+s if WANT_SETUID_CLIENT.
12105
12106 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12107         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
12108
12109         * man/amtapetype.8.in: Fix example.
12110
12111 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12112
12113         * common-src/amanda.h: #define S_ISDIR if not already defined.
12114
12115 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12116         File from Doug Kingston <dpk@randomnotes.org>
12117
12118         * docs/HOWTO-CYGWIN.html: New file.
12119
12120 2003-01-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12121
12122         * configure.in: Define WANT_RUNTIME_PSEUDO_RELOC on cygwin
12123         * client-src/Makefile.am: AM_LDFLAGS="-Wl,-enable-runtime-pseudo-reloc"
12124           if WANT_RUNTIME_PSEUDO_RELOC.
12125         * recover-src/Makefile.am: Ditto.
12126
12127 2003-01-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12128
12129         * tape-src/output-rait.h: #define stralloc strdup
12130         * tape-src/output-rait.c: Revert patch of 2003-01-26, we don't have
12131           vstralloc in standalone.
12132
12133 2003-01-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12134         Reported by Doug Kingston <dpk@randomnotes.org>
12135
12136         * recover-src/Makefile.am: Set AM_YFLAGS instead of YFLAGS.
12137
12138 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12139
12140         * tape-src/output-rait.c (tapeio_next_devname): Use vstralloc.
12141
12142 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12143
12144         * changer-src/chg-scsi-chio.c: Change strdup to stralloc.
12145         * changer-src/chg-scsi.c: Ditto.
12146         * changer-src/scsi-aix.c: Ditto.
12147         * changer-src/scsi-bsd.c: Ditto.
12148         * changer-src/scsi-cam.c: Ditto.
12149         * changer-src/scsi-changer-driver.c: Ditto.
12150         * changer-src/scsi-hpux_new.c: Ditto.
12151         * changer-src/scsi-irix.c: Ditto.
12152         * changer-src/scsi-linux.c: Ditto.
12153         * changer-src/scsi-solaris.c: Ditto.
12154         * changer-src/sense.c: Ditto.
12155         * tape-src/output-rait.c: Ditto.
12156
12157 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12158
12159         * server-src/taper.c (read_file): Don't count header in filesize.
12160
12161 2003-01-25  John R. Jackson (jrj@purdue.edu)
12162
12163         * tape-src/tapeio.c: Fix tape_access() and tape_stat() problem caused
12164           by indeterminate compiler order of evaluation.
12165
12166 2003-01-25  John R. Jackson (jrj@purdue.edu)
12167
12168         * restore-src/amidxtaped.c: Log errno when tape_stat fails.
12169         * restore-src/amrestore.c: Ditto.
12170         * tape-src/output-rait.c: Ditto.
12171
12172 2003-01-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12173
12174         * server-src/amstatus.pl.in: print an usage by tape.
12175
12176 2003-01-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12177
12178         * recover-src/extract_list.c (add_extract_item, delete_extract_item):
12179           Check also for level when comparing label.
12180
12181 2003-01-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12182
12183         Do not build chg-scsi-chio, it is buggy.
12184         * changer-src/Makefile.am (libexec_PROGRAMS): remove $(CHIO_SCSI).
12185         * changer-src/Makefile.am (EXTRA_PROGRAMS): add $(CHIO_SCSI).
12186
12187 2003-01-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12188
12189         * configure.in: disable amrestore if --without-server is set.
12190
12191 2003-01-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12192
12193         * client-src/amandad.c: Use the dbfd macro instead of the external
12194           variable db_fd.
12195         * client-src/selfcheck.c: Ditto.
12196         * client-src/sendbackup.c: Ditto.
12197         * client-src/sendsize.c: Ditto.
12198         * client-src/sendbackup-gnutar.c: Use save_errno instead of errno.
12199         * common-src/debug.c: Move most declaration inside #ifdef DEBUG_CODE.
12200         * server-src/amindexd.c: dup db_fd() to stderr.
12201         * server-src/conffile.c: Don't call error() if the config file does not
12202           exist, just write to stderr and set got_parserror.
12203
12204 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12205
12206         * recover-src/amrecover.c: Fix memory leak.
12207
12208 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12209
12210         Add new maxpromoteday option in a dumptype.
12211         * example/amanda.conf.in: Give an example
12212         * man/amanda.8.in: Document it.
12213         * server-src/amadmin.c: Print it in the disklist subcommand.
12214         * server-src/conffile.c: read it.
12215         * server-src/conffile.h (dumptype_t): Add maxpromoteday and
12216           s_maxpromoteday.
12217         * server-src/diskfile.c (read_diskline): Copy maxpromoteday from
12218           dumptype_t to disk_t.
12219         * server-src/diskfile.h (disk_t):  Add maxpromoteday.
12220         * server-src/planner.c (promote_highest_priority_incr): Don't promote
12221           a disk if est(dp)->next_level0 > dp->maxpromoteday.
12222
12223 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12224         Reported by Josh More <jmore@remote-print.com>
12225
12226         * client-src/client_util.c (add_exclude, add_include): Remove the
12227           need for MAXPATHLEN.
12228
12229 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12230         Fix by Josh More <jmore@remote-print.com>
12231
12232         * tape-src/output-tape.c: Add a ; after f = MT_UNLOAD
12233
12234 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12235         Undo patch of 2002-11-27. That doesn't work well for the planner.
12236
12237         * common-src/amanda.h (days_diff): Revert to old macro.
12238         * server-src/amadmin.c: Undo Fix for newer days_diff.
12239         * server-src/planner.c: Undo Fix for newer days_diff.
12240
12241 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12242
12243         * client-src/client_util.c: Fix memory leak reported by valgrind.
12244         * client-src/selfcheck.c: Ditto.
12245         * client-src/sendbackup.c: Ditto.
12246         * client-src/sendsize.c: Ditto.
12247         * common-src/amfeatures.c: Ditto.
12248         * common-src/debug.c: Ditto.
12249         * recover-src/amrecover.c: Ditto.
12250         * recover-src/extract_list.c: Ditto.
12251         * recover-src/set_commands.c: Ditto.
12252         * recover-src/uparse.y: Ditto.
12253         * recover-src/uscan.l: Ditto.
12254         * server-src/amindexd.c: Ditto.
12255         * server-src/amlabel.c: Ditto.
12256         * server-src/amtape.c: Ditto.
12257         * server-src/amtrmidx.c: Ditto.
12258         * server-src/amtrmlog.c: Ditto.
12259         * server-src/changer.c: Ditto.
12260         * server-src/conffile.c: Ditto.
12261         * server-src/driver.c: Ditto.
12262         * server-src/driverio.c: Ditto.
12263         * server-src/dumper.c: Ditto.
12264         * server-src/find.c: Ditto.
12265         * server-src/holding.c: Ditto.
12266         * server-src/logfile.c: Ditto.
12267         * server-src/planner.c: Ditto.
12268         * server-src/reporter.c: Ditto.
12269         * server-src/tapefile.c: Ditto.
12270         * server-src/taper.c: Ditto.
12271
12272 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12273
12274         * amplot/amplot.awk: Many fix.
12275
12276 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12277
12278         * server-src/planner.c (promote_highest_priority_incremental): Promote
12279           a disk > balanced size if no full today. Do not promote a disk it's
12280           the only disk due that day and no full today.
12281
12282 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12283         Patch by Brad Roberts <braddr@puremagic.com>
12284
12285         * server-src/amflush.c: Remove 2 redundant amfree call after remove_sl.
12286         * server-src/holding.c (get_flush): Ditto.
12287
12288 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12289
12290         * server-src/conffile.c: New taperalgo configuration keyword.
12291         * server-src/conffile.h: Ditto.
12292         * man/amanda.8.in: Document it.
12293         * server-src/driver.c (startaflush): New function to start a flush to
12294           tape.
12295
12296 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12297
12298         * server-src/diskfile.c (parse_diskline): Allow skip in dumptype.
12299
12300 2002-12-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12301
12302         * server-src/amstatus.pl.in: Parse features from PORT-WRITE line.
12303
12304 2002-12-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12305
12306         Don't use the G flag for samba backup restore by tar.
12307         * recover-src/extract_list.c (enum dumptypes): Add IS_SAMBA_TAR.
12308         * recover-src/extract_list.c (extract_files_child): Set dumptype to
12309           IS_SAMBA_TAR if it's a SAMBA backup. Don't pass the G flag to tar
12310           if it's IS_SAMBA_TAR.
12311
12312 2002-12-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12313
12314         * amplot/amplot.awk: Parse line with features, parse ENDFLUSH line.
12315
12316 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12317
12318         * server-src/planner.c (promote_highest_priority_incremental): Newer
12319           algorithm that reduce the number of level 0 by hosts on a single day.
12320
12321 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12322
12323         * amplot/amplot.awk: Parse newer log lines.
12324
12325 2002-12-11  Jean-Louis Martineau <martineau@iro.umontreal.ca> 
12326         * server-src/reporter.c (output_stats): Typo.
12327
12328 2002-12-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12329
12330         * server-src/reporter.c: Print an usage by tape.
12331
12332 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12333
12334         * tape-src/tapeio.c (do_read): Init count to 0.
12335
12336 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12337
12338         * tape-src/Makefile.am: Install tapetype program as amtapetype.
12339         * docs/TAPETYPES: Change for amtapetype.
12340         * man/amtapetype.8.in: New man page
12341         * man/Makefile.am: Install it.
12342         * configure.in (AC_CONFIG_FILES): Add man/amtapetype.8.
12343
12344 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12345
12346         * tape-src/ammt.c (optind): Add prototype.
12347         * tape-src/amdd.c (optind): Add prototype.
12348
12349 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12350
12351         * common-src/arglist.h (printf_arglist_function,
12352           printf_arglist_function1, printf_arglist_function2): Define if
12353           STDC_HEADERS is not defined.
12354
12355 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12356
12357         * server-src/amstatus.pl.in: New --date option to display datestamp.
12358         * server-src/amstatus.pl.in: Increase some field size.
12359         * server-src/amstatus.pl.in: The host field adjust it's length to the
12360          largest.
12361
12362 2002-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12363
12364         * common-src/amanda.h (days_diff): Don't add a half day.
12365         * server-src/amadmin.c: Fix for newer days_diff.
12366         * server-src/planner.c: Fix for newer days_diff.
12367
12368 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12369
12370         * client-src/amandad.c: Fix compiler warning.
12371         * common-src/Makefile.am (bsdsecurity): Link with file.o.
12372         * common-src/bsd-security.c: Fix compiler warning.
12373         * common-src/bsd-security.c (construct_datestamp, construct_timestamp):
12374           Add function if TEST.
12375         * server-src/chunker.c: Fix compiler warning.
12376         * server-src/dumper.c: Fix compiler warning.
12377
12378 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12379
12380         * tape-src/tapetype.c: Cast time_t to long for printing.
12381
12382 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12383
12384         * server-src/amflush.c: Write a "amflush: start at ???" line.
12385         * server-src/amstatus.pl.in: parse the "amflush: start at ???" line.
12386
12387 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12388
12389         * server-src/planner.c (delay_dumps): Use snprintf.
12390
12391 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12392
12393         * common-src/debug.c: Most of the code must in #ifdef DEBUG_CODE.
12394         * client-src/client_util.c: Use AMANDA_TMPDIR instead of AMANDA_DBGDIR.
12395
12396 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12397
12398         * docs/TAPE.CHANGERS: Sync with 2.4.3.
12399
12400 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12401
12402         * server-src/amadmin.c: Cleanup.
12403
12404 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12405
12406         * man/amadmin.8.in: Document new --days option of balance subcommand.
12407
12408 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12409
12410         * server-src/amadmin.c (days_diff): Make next_level0 more acurate.
12411         * server-src/amadmin.c (balance): Improve output.
12412
12413 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12414
12415         * recover-src/extract_list.c: Add Retry and Skip command to amrecover.
12416
12417 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12418
12419         * tape-src/output-tape.c (tape_tapefd_fsf): Must not be static.
12420
12421 2002-11-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12422
12423         * server-src/reporter.c: Fix for LPRCMD not defined.
12424
12425 2002-11-14  Marc Mengel <mengel@fnal.gov>
12426
12427         New changer scripts for use with rait: code, run several other
12428         changers in tandem and return a rait: tape device.  Makes fake
12429         amanda.conf files under AMANDA_DEBUGDIR for each changer used,
12430         then cleans up.
12431
12432         * changer-src/chg-rait.sh.in:   New file. Multi-changer script.
12433         * changer-src/chg-null.sh.in:   New File. Null-device changer script.
12434         * docs/TAPE.CHANGERS:  Descriptions of above.
12435         * configure.in: added above files.
12436         * changer-src/Makefile.am: Likewise.
12437
12438 2002-11-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12439         Patch by Orion Poplawski <orion@colorado-research.com>
12440
12441         * server-src/planner.c (delay_dumps): Add the estimate size to all call
12442           of delay_one_dump.
12443
12444 2002-11-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12445
12446         * server-src/reporter.c: Increase width of some field.
12447
12448 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12449
12450         * changer-src/scsi-solaris.c (SCSI_ExecuteCommand): Init ret to 0.
12451
12452 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12453
12454         * recover-src/extract_list.c (delete_file): j is int.
12455         * changer-src/scsi-defs.h (B, B1): Check if already defined.
12456         * server-src/taper.c: Some cast to int.
12457         * tape-src/amdd.c (read_func, write_func): Complete prototype.
12458         * tape-src/tapeio.h (tapefd_read, tapefd_write): return ssize_t,
12459           third argument is size_t.
12460         * tape-src/tapeio.c: Ditto.
12461         * tape-src/output-file.h (file_tapefd_read, file_tapefd_write): return
12462           ssize_t, third argument is size_t.
12463         * tape-src/output-file.c: Ditto.
12464         * tape-src/output-null.h (null_tapefd_read, null_tapefd_write): return
12465           ssize_t, third argument is size_t.
12466         * tape-src/output-null.c: Ditto.
12467         * tape-src/output-rait.h (rait_read, rait__write): return ssize_t,
12468           third argument is size_t.
12469         * tape-src/output-rait.c: Ditto.
12470         * tape-src/output-tape.h (tape_tapefd_read, tape_tapefd_write): return
12471           ssize_t, third argument is size_t.
12472         * tape-src/output-tape.c: Ditto.
12473
12474 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12475
12476         * configure.in: socklen_t default to int.
12477         * common-src/dgram.c (dgram_recv): addrlen is socklen_t.
12478         * common-src/stream.c (stream_server): len is socklen_t.
12479         * recover-src/extract_list.c (add_file): j is int.
12480
12481 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12482
12483         * client-src/client_util.c (test_name_len) Remove variable.
12484         * common-src/match.c (len_prefix): Change type to int.
12485         * server-src/taper.c: Use %p to print pointer.
12486         * tape-src/amdd.c (read_func, write_func):Change return type to ssize_t.
12487         * tape-src/amdd.c (debug): Renamed to debug_amdd.
12488         * tape-src/ammt.c (debug): Renamed to debug_ammt.
12489
12490 2002-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12491
12492         * restore-src/amidxtaped.c: Fix restore from file.
12493
12494 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12495
12496         * restore-src/amidxtaped.c: Fix newline in string literal.
12497
12498 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12499
12500         * server-src/conffile.c (maxdumpsize): New option.
12501         * server-src/conffile.h: Ditto.
12502         * server-src/planner.c: Use maxdumpsize if set.
12503         * example/amanda.conf.in: Document it.
12504         * man/amanda.8.in: Document it.
12505
12506 2002-11-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12507
12508         * common-src/amfeatures.h (fe_amidxtaped_fsf, fe_amidxtaped_label,
12509           fe_amidxtaped_device, fe_amidxtaped_host, fe_amidxtaped_disk,
12510           fe_amidxtaped_datestamp, fe_amidxtaped_header, fe_amidxtaped_nargs,
12511           fe_amidxtaped_config): New features.
12512         * common-src/amfeatures.c (am_init_feature_set): Set new features.
12513         * recover-src/extract_list.c: Send new protocol data to amidxtaped.
12514         * restore-src/Makefile.am: amidxtaped.c need libamserver.
12515         * restore-src/amidxtaped.c: Read new protocol data from amrecover.
12516         * restore-src/amidxtaped.c: Use new configuration options.
12517         * server-src/conffile.c (conf_amrecover_do_fsf,
12518           conf_amrecover_check_label, conf_amrecover_changer): New config.
12519         * server-src/conffile.h: New config options.
12520         * example/amanda.conf.in: Document them.
12521         * man/amanda.8.in: Document them.
12522
12523 2002-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12524
12525         * autogen: touch config/config.h.in
12526         * configure.in: Patch from autoupdate-2.53 and LIBOBJS.
12527         * common-src/Makefile.am: Build versuff.o before version.o
12528         * recover-src/Makefile.am: Remove work around for automake-1.2
12529
12530 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12531
12532         * configure.in: Remove --disable-libtool.
12533         * */Makefile.am: Remove WANT_LIBTOOL.
12534
12535 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12536
12537         * changer-src/chg-scsi.c (config_name, config_dir): Remove declaration.
12538         * server-src/amadmin.c: Ditto.
12539         * server-src/amcheck.c: Ditto.
12540         * server-src/amcleanupdisk.c: Ditto.
12541         * server-src/amflush.c: Ditto.
12542         * server-src/amindexd.c: Ditto.
12543         * server-src/amlabel.c: Ditto.
12544         * server-src/amlogroll.c: Ditto.
12545         * server-src/amtape.c: Ditto.
12546         * server-src/amtrmidx.c: Ditto.
12547         * server-src/amtrmlog.c: Ditto.
12548         * server-src/chunker.c: Ditto.
12549         * server-src/diskfile.c: Ditto.
12550         * server-src/driver.c: Ditto.
12551         * server-src/dumper.c: Ditto.
12552         * server-src/getconf.c: Ditto.
12553         * server-src/planner.c: Ditto.
12554         * server-src/reporter.c: Ditto.
12555         * server-src/taper.c: Ditto.
12556         * server-src/conffile.c (config_name, config_dir): Add declaration.
12557
12558 2002-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12559
12560         * man/amrestore.8: Amrestore doesn't use a changer.
12561
12562 2002-11-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12563
12564         * configure.in (SHELL): Don't set it, libtool do it.
12565
12566 2002-10-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12567
12568         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.3.
12569
12570 2002-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12571
12572         * restore-src/amrestore.c: New '-l <label>' flag, Do a rewind and
12573           check the label before restoring.
12574         * man/amrestore.8: Document -l flag.
12575
12576 2002-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12577
12578         * configure.in (AM_HAVE_MT_FLAGS, AM_HAVE_MT_FILENO, AM_HAVE_MT_BLKNO,
12579           AM_HAVE_MT_DSREG,AM_HAVE_MT_ERREG): Rename to HAVE_MT_FLAGS,
12580           HAVE_MT_FILENO, HAVE_MT_BLKNO, HAVE_MT_DSREG and HAVE_MT_ERREG.
12581         * tape-src/output-tape.c: Ditto.
12582
12583 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12584         Undo patch of 2002-10-24. They are needed by amrecover.
12585
12586         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
12587           is_local_fstype): Add Prototype.
12588         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
12589           is_local_fstype): remove Prototype.
12590
12591 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12592         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
12593
12594         * tape-src/tapetype.c: Detects and warns the user if the tape drive
12595           has hardware compression enabled.
12596
12597 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12598
12599         * restore-src/amrestore.c: New '-f <fileno>' flag, Do a rewind and
12600           'fsf <fileno>' if -f is set.
12601         * man/amrestore.8: Document -f flag.
12602         
12603 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12604
12605         * common-src/amfeatures.h (fe_amindexd_fileno_in_OLSD, 
12606           fe_amindexd_fileno_in_ORLD): New amfeatures.
12607         * common-src/amfeatures.c (am_init_feature_set): Set
12608           fe_amindexd_fileno_in_OLSD and fe_amindexd_fileno_in_ORLD.
12609         * recover-src/amrecover.h (struct DIR_ITEM): Add fileno.
12610         * recover-src/display_commands.c (add_dir_list_item): Set fileno
12611           in struct DIR_ITEM.
12612         * recover-src/display_commands.c (suck_dir_list_from_server): Read
12613           fileno if fe_amindexd_fileno_in_OLSD is set.
12614         * recover-src/extract_list.c (struct EXTRACT_LIST): Add fileno.
12615         * recover-src/extract_list.c (add_file): Read fileno if
12616           fe_amindexd_fileno_in_ORLD is set.
12617         * recover-src/extract_list.c (delete_file): Read fileno if
12618           fe_amindexd_fileno_in_ORLD is set.
12619         * server-src/amindexd.c (opaque_ls): Write fileno if
12620           fe_amindexd_fileno_in_OLSD or fe_amindexd_fileno_in_ORLD are set.
12621
12622 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12623         patch by Doug Kingston <dpk@pobox.com>
12624
12625         * configure.in (NEED_PATH_ENV, IGNORE_UID_CHECK, IGNORE_FSTAB,
12626           DONT_SUID_ROOT): Defined if on *-pc-cygwin.
12627         * client-src/Makefile.am: Fix for cygwin.
12628         * client-src/getfsent.c: Don't use fstab if IGNORE_FSTAB.
12629         * client-src/killpgrp.c: Don't suid(0) if DONT_SUID_ROOT.
12630         * client-src/rundump.c: Don't suid(0) if DONT_SUID_ROOT.
12631         * client-src/runtar.c: Don't suid(0) if DONT_SUID_ROOT.
12632         * client-src/selfcheck.c (check_suid): Don't check uid if
12633           IGNORE_UID_CHECK.
12634         * common-src/alloc.c (safe_env): Add PATH to ENV if NEED_PATH_ENV.
12635         * recover-src/amrecover.c: Don't check uid if IGNORE_UID_CHECK.
12636
12637 2002-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12638
12639         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
12640           is_local_fstype): Remove Prototype.
12641         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
12642           is_local_fstype): Add Prototype.
12643
12644 2002-10-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12645
12646         * server-src/amindexd.c: New FEATURES command that read the features
12647           set from the client and reply the features set of the server.
12648         * recover-src/amrecover.h: include "amfeatures.h"
12649         * recover-src/amrecover.c: Send the FEATURES command to the server
12650           and read it's features set.
12651
12652 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12653
12654         * client-src/Makefile.am: Work around for CYGWIN.
12655         * server-src/Makefile.am: Ditto.
12656
12657 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12658
12659         * configure.in: Remove empty command from $program_transform_name.
12660
12661 2002-10-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12662
12663         * recover-src/extract_list.c (READ_TIMEOUT): Increased to 240*60.
12664
12665 2002-09-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12666
12667         * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined.
12668
12669 2002-09-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12670
12671         * server-src/amverifyrun.sh.in: New program.
12672         * man/amverifyrun.8.in: Man page for amverifyrun.
12673         * configure.in (AC_OUTPUT): add man/amverifyrun.8 and
12674           server-src/amverifyrun.sh.
12675         * man/Makefile.am (SERVER_MAN_PAGES): Add amverifyrun.8.
12676         * man/amanda.8.in: Add amdd, ammt and amverifyrun in SEE ALSO.
12677         * man/amverify.8.in: Add amverifyrun(8) in SEE ALSO.
12678         * server-src/Makefile.am (sbin_SCRIPTS): Add amverifyrun.
12679
12680 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12681
12682         * server-src/amverify.sh.in: Accept runtapes as a third argument.
12683         * man/amverify.8.in: Document it.
12684
12685 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12686
12687         * config/missing: Updated from automake-1.5.
12688
12689 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12690
12691         * config/config.guess: Updated from ftp://ftp.gnu.org/gnu/config/
12692         * config/config.sub: Updated from ftp://ftp.gnu.org/gnu/config/
12693
12694 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12695
12696         * client-src/sendsize.c (getsize_dump): Print the fstype.
12697         * client-src/sendbackup-dump.c (start_backup): Print the fstype.
12698
12699 2002-09-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12700         Patch by  Florian Hars <hars@bik-gmbh.de>
12701
12702         * changer-src/chg-zd-mtx.sh.in: Fix default value for cleancycle.
12703
12704 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12705
12706         * recover-src/extract_list.c (extract_files): print tape drive
12707           and host before asking to load tape.
12708
12709 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12710
12711         * server-src/taper.c (read_file): Initialize file, 
12712           stat(file.cont_filename) before opening it.
12713           
12714 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12715
12716         * server-src/amverify.sh.in: Don't check that the device is
12717           a character device, it could be a file: or rait:
12718
12719 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12720
12721         * common-src/amfeatures.c (am_set_default_feature_set):
12722           fe_rep_options_sendbackup_options is a default feature.
12723
12724 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12725
12726         * server-src/amstatus.pl.in: Sort a disk in datestamp order.
12727
12728 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12729         Text by Jean-Francois Malouin <Jean-Francois.Malouin@bic.mni.mcgill.ca>
12730
12731         * docs/EXCLUDE: Improve documentation.
12732
12733 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12734
12735         * server-src/reporter.c: Fix compilation error if LPRCMD is not defined.
12736
12737 2002-08-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12738         Patch by Jason Brooks <jason0@mail.wrs.com>
12739
12740         * docs/chg-scsi.notes: New document.
12741         * changer-src/chg-scsi.c: Adding printout of "emubarcode" values 
12742           in the debug file.
12743         * changer-src/scsi-changer-driver.c: Added dlt8000 and L500 to 
12744           ChangerIO[].
12745         * changer-src/sense.c: Added dlt8000 and L500 to SenseType[].
12746
12747 2002-08-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12748
12749         * tape-src/output-null.c (null_tape_stat, null_tape_access): Use
12750           "/dev/null" instead of filename.
12751
12752 2002-08-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12753
12754         * changer-src/chg-mtx.sh.in: Sync with 2.4.3 branch.
12755         * changer-src/chg-scsi-chio.c: Ditto.
12756         * changer-src/chg-scsi.c: Ditto.
12757         * changer-src/scsi-aix.c: Ditto.
12758         * changer-src/scsi-bsd.c: Ditto.
12759         * changer-src/scsi-cam.c: Ditto.
12760         * changer-src/scsi-changer-driver.c: Ditto.
12761         * changer-src/scsi-defs.h: Ditto.
12762         * changer-src/scsi-hpux_new.c: Ditto.
12763         * changer-src/scsi-irix.c: Ditto.
12764         * changer-src/scsi-linux.c: Ditto.
12765         * changer-src/scsi-solaris.c: Ditto.
12766         * tape-src/tapeio.c: Ditto.
12767
12768 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12769
12770         * recover-src/uparse.y: Fix compiler warning.
12771
12772 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12773
12774         * server-src/amtrmidx.c: Continue if a directory doesn't exist.
12775
12776 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12777
12778         * man/amanda.8.in (tapecycle): Improve documentation.
12779
12780 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12781
12782         * server-src/amstatus.pl.in: Works with features.
12783
12784 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12785
12786         * common-src/amfeatures.c (am_feature_to_string): Return the string
12787           "UNKNOWNFEATURE" if no features.
12788         * common-src/amfeatures.c (am_string_to_feature): Return NULL if the
12789           string is "UNKNOWNFEATURE".
12790
12791 2002-08-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12792
12793         * common-src/file.c (debug_agets): line_free was badly set when
12794         the buffer size in increased.
12795
12796 2002-07-19  John R. Jackson (jrj@purdue.edu)
12797
12798         * common-src/amanda.h: Fix bad #define.
12799
12800 2002-07-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12801         Patch by
12802           David Munro <D.Munro@surrey.ac.uk>
12803
12804         * common-src/sl.c (new_sl): Alloc (sl_t) instead of (sl_t *).
12805           
12806 2002-06-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12807         Bug reported by 
12808           Jonathan R. Johnson <Jonathan.Johnson@MinnetonkaSoftware.com>
12809
12810         * server-src/reporter.c: Fix psfname filename.
12811
12812 2002-05-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12813
12814         * client-src/sendbackup.c: Don't do compression if it is server side.
12815         * client-src/sendbackup-dump.c: Ditto.
12816         * client-src/sendbackup-gnutar.c: Ditto.
12817
12818 2002-05-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12819         Patch by Manuel Bouyer <bouyer@antioche.lip6.fr>
12820
12821         * server-src/taper.c (detach_buffers): Fix compilation with mmap.
12822
12823 2002-04-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12824
12825         * recover-src/extract_list.c (extract_files): Set dump_device_name
12826           after the call of okay_to_continue.
12827
12828 2002-04-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12829
12830         New features to describe the OPTIONS line of a REP packet.
12831         * common-src/amfeatures.h: Add fetures fe_rep_options_maxdumps,
12832           fe_rep_options_hostname, fe_rep_options_features and
12833           fe_rep_options_sendbackup_options.
12834         * common-src/amfeatures.c (am_init_feature_set): Add
12835           fe_rep_options_features.
12836         * client-src/selfcheck.c: Write REP packet according to server features.        * client-src/sendbackup.c: Ditto.
12837         * client-src/sendsize.c: Ditto.
12838
12839 2002-04-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12840
12841         * common-src/amfeatures.h:
12842              Rename fe_g_options_maxdump  to fe_req_options_maxdumps
12843              Rename fe_g_options_hostname to fe_req_options_hostname
12844              Rename fe_g_options_features to fe_req_options_features
12845         * common-src/amfeatures.c: Ditto
12846         * server-src/amcheck.c: Ditto
12847         * server-src/dumper.c: Ditto
12848         * server-src/planner.c: Ditto
12849
12850 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12851
12852         * server-src/amcheck.c: Check if it can send features, hostname or
12853           maxdumps on the global options line. Don't send hostname and
12854           maxdumps for a noop service.
12855         * server-src/dumper.c: Ditto.
12856         * server-src/planner.c: Ditto.
12857
12858 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12859
12860         * client-src/sendbackup.c: (optionstr): Add srvcomp-best and
12861           srvcomp-fast options.
12862
12863 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12864
12865         * server-src/amcheck.c (start_host): Check the todo bit before 
12866           sending noop REQ.
12867
12868 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12869
12870         * client-src/client_util.c (parse_options, parse_g_options): Check
12871           for duplication options.
12872         * client-src/client_util.h (COMPR_SERVER_FAST, COMPR_SERVER_BEST):
12873           Declare.
12874         * client-src/selfcheck.c: Check for COMPR_FAST or COMPR_BEST.
12875
12876 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12877
12878         * client-src/selfcheck.c (host):Remove variable,use g_options->hostname.
12879         * client-src/sendbackup.c: Ditto.
12880         * client-src/sendsize.c: Ditto.
12881
12882 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12883
12884         * client-src/client_util.c (parse_g_options) New function to parse
12885           the global options string.
12886         * client-src/client_util.h (parse_g_options): Prototype.
12887         * client-src/selfcheck.c: use parse_g_options.
12888         * client-src/sendbackup.c: use parse_g_options.
12889         * client-src/sendsize.c: use parse_g_options.
12890
12891 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12892
12893         * server-src/diskfile.c: Improve message for missing features.
12894
12895 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12896
12897         Add many features.
12898         * common-src/amfeatures.c (am_set_default_feature_set): New function 
12899           to set the default features set.
12900         * common-src/amfeatures.h (am_set_default_feature_set): Prototype.
12901         * common-src/amfeatures.h: Rename amanda_feature_auth_keyword to 
12902           fe_options_auth.
12903         * client-src/client_util.c: Check features.
12904         * server-src/amcheck.c: Ditto.
12905         * server-src/diskfile.c: Ditto.
12906         * server-src/driverio.c: Ditto.
12907         * server-src/planner.c: Ditto.
12908         * server-src/diskfile.h (optionstr): Change prototype.
12909         * client-src/sendsize.c: Fix compiler warning.
12910
12911 2002-04-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12912
12913         * common-src/amfeatures.c: Include "amfeatures.h"
12914         * common-src/rsh-security.c: Don't assert on undefined variable.
12915
12916 2002-04-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12917
12918         * common-src/amfeatures.c: Renamed from features.c
12919         * common-src/amfeatures.h: Renamed from features.h
12920         * common-src/Makefile.am: Rename features to amfeatures.
12921         * client-src/amandad.c: Ditto.
12922         * client-src/client_util.h: Ditto.
12923         * client-src/selfcheck.c: Ditto.
12924         * client-src/sendbackup.c: Ditto.
12925         * client-src/sendsize.c: Ditto.
12926         * server-src/amcheck.c: Ditto.
12927         * server-src/chunker.h: Ditto.
12928         * server-src/diskfile.h: Ditto.
12929         * server-src/dumper.c: Ditto.
12930         * server-src/planner.c: Ditto.
12931         * server-src/taper.c: Ditto.
12932
12933 2002-04-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12934
12935         * server-src/conffile.c: Default dumporder set to "ttt".
12936         * server-src/driver.c: If dumporder is too short, use t and T.
12937         * man/amanda.8.in: Default dumporder set to "ttt".
12938
12939 2002-04-13  John R. Jackson (jrj@purdue.edu)
12940
12941         * common-src/features.c: Add amanda_feature_auth_keyword feature so
12942           authorization in the OPTIONS string is backward compatible.
12943         * common-src/features.h: Ditto.
12944         * client-src/client_util.c: Ditto.
12945         * client-src/client_util.h: Ditto.
12946         * client-src/selfcheck.c: Ditto.
12947         * client-src/sendbackup.c: Ditto.
12948         * client-src/sendsize.c: Ditto.
12949         * server-src/diskfile.c: Ditto.
12950         * server-src/planner.c: Fix compiler warning.
12951
12952 2002-04-13  John R. Jackson (jrj@purdue.edu)
12953
12954         * server-src/diskfile.c: Fix memory leak.
12955
12956 2002-04-13  John R. Jackson (jrj@purdue.edu)
12957
12958         * server-src/amcheck.c: Fix error parsing in packet.
12959
12960 2002-04-13  John R. Jackson (jrj@purdue.edu)
12961
12962         * common-src/features.c: New file.  Add support for feature sets so
12963           different Amanda versions can work together.
12964         * common-src/features.h: Ditto.
12965         * common-src/Makefile.am: Ditto.  Add "features" test program.
12966         * client-src/amandad.c: Add "noop" service to return the feature set.
12967         * client-src/selfcheck.c: Accept and return a feature set in OPTIONS.
12968           Improve parsing.
12969         * client-src/sendbackup.c: Ditto.
12970         * client-src/sendsize.c: Ditto.
12971         * common-src/bsd-security.c: Minor message change.
12972         * common-src/error.c: Use strcasecmp.
12973         * common-src/protocol.c: Use dbprintf for PROTO_DEBUG and improve
12974           messages.
12975         * restore-src/amidxtaped.c: Improve parsing.
12976         * server-src/amcheck.c: Ask for client features via "noop" before
12977           doing the real "selfcheck" service requests.  Improve parsing.
12978         * server-src/amflush.c: Minor coding format cleanup.
12979         * restore-src/amindexd.c: Improve parsing.
12980         * server-src/chunker.c: Deal with features string in commands.  Improve
12981           parsing.
12982         * server-src/diskfile.c: Initialize the features hosttype field.
12983         * server-src/diskfile.h: Add the features hosttype field.
12984         * server-src/driver.c: Save the features from the schedule.  Clean
12985           up some error messages.
12986         * server-src/driverio.c: Add features string to several commands.
12987         * server-src/dumper.c: Deal with features string in commands.  Improve
12988           parsing.
12989         * server-src/planner.c: Ask for client features via "noop" before
12990           doing the real "sendsize" service requests.  Improve parsing.
12991         * server-src/server_util.c: Minor coding cleanup.
12992         * server-src/server_util.h: Increase the number of args allowed on
12993           commands.
12994         * server-src/taper.c: Deal with features string in commands.  Improve
12995           parsing.
12996
12997 2002-04-12  John R. Jackson (jrj@purdue.edu)
12998
12999         * server-src/driver.c: Fix crash when only processing a tape queue
13000           (e.g. amflush).
13001
13002 2002-04-11  John R. Jackson (jrj@purdue.edu)
13003
13004         * server-src/driver.c: Protect against crash when taper has died.
13005
13006 2002-04-11  John R. Jackson (jrj@purdue.edu)
13007
13008         * common-src/stream.c: Clean up an error message.
13009
13010 2002-04-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13011
13012         * docs/DUMPER-API: Remove the section about USER and GROUP.
13013
13014 2002-04-09  John R. Jackson (jrj@purdue.edu)
13015
13016         * server-src/driver.c: Fix send of QUIT to taper when it is down.
13017
13018 2002-04-07  John R. Jackson (jrj@purdue.edu)
13019
13020         * server-src/dumper.c: Change sendbackup response parsing to handle
13021           2.4 changes.  Improve packet parse error processing.  Make packet
13022           logging conditional on an #ifdef instead of commented out.
13023
13024 2002-04-07  John R. Jackson (jrj@purdue.edu)
13025
13026         * client-src/amandad.c: Fix FORCE_USERID to run the service as the
13027           client user if amandad was started as root.
13028
13029 2002-04-07  John R. Jackson (jrj@purdue.edu)
13030
13031         * common-src/clock.c: Move definition of amanda_gettimeofday() macro
13032           to the header file so it could be used other places.  Use new
13033           amanda_timezone macro to avoid some #ifdef's.
13034         * common-src/clock.h: Ditto.
13035         * common-src/bsd-security.c: Fix compatibility problems with pre-2.5
13036           servers trying to talk to 2.5 clients.  The HANDLE value was not
13037           being properly handled, and the sequence number was being ignored.
13038
13039 2002-04-07  John R. Jackson (jrj@purdue.edu)
13040
13041         * server-src/reporter.c: Move column routines to conffile.c so amcheck
13042           can use them in its tests.  Do not abort on several failures, but
13043           generate messages in the FAILURE AND STRANGE DUMP SUMMARY section.
13044         * server-src/conffile.c: Move column routines to here.
13045         * server-src/conffile.h: Ditto.
13046         * server-src/amcheck.c: Add several config file tests.
13047         * server-src/logfile.c: Change "reporter" to "amreport".
13048
13049 2002-04-07  John R. Jackson (jrj@purdue.edu)
13050
13051         * configure.in: Add /usr/local/sbin to LOCPATH.
13052
13053 2002-03-31  John R. Jackson (jrj@purdue.edu)
13054
13055         * server-src/amcheck.c: Send maxdumps and hostname in packet OPTIONS.
13056
13057 2002-03-31  John R. Jackson (jrj@purdue.edu)
13058
13059         * changer-src/scsi-defs.h: Fix compiler warning and bug it was hiding.
13060         * changer-src/scsi-solaris.c: Ditto.
13061
13062 2002-03-31  John R. Jackson (jrj@purdue.edu)
13063
13064         * client-src/amandad.c: Fix arguments to pkt_cat.
13065         * common-src/bsd-security.c: Ditto.
13066
13067 2002-03-31  John R. Jackson (jrj@purdue.edu)
13068
13069         * client-src/amandad.c: Add relative timestamps to a lot of debug
13070           file messages, and add more messages, to better track what is
13071           going on.  Various general cleanup.
13072         * client-src/calcsize.c: Ditto.
13073         * client-src/client_util.c: Ditto.
13074         * client-src/selfcheck.c: Ditto.
13075         * client-src/sendbackup-dump.c: Ditto.
13076         * client-src/sendbackup-gnutar.c: Ditto.
13077         * client-src/sendbackup.c: Ditto.
13078         * client-src/sendbackup.h: Ditto.
13079         * client-src/sendsize.c: Ditto.
13080         * common-src/amanda.h: Ditto.
13081         * common-src/bsd-security.c: Ditto.
13082         * common-src/clock.c: Ditto.
13083         * common-src/clock.h: Ditto.
13084         * common-src/debug.c: Ditto.
13085         * common-src/dgram.c: Ditto.
13086         * common-src/error.c: Ditto.
13087         * common-src/file.c: Ditto.
13088         * common-src/pipespawn.c: Ditto.
13089         * common-src/stream.c: Ditto.
13090         * common-src/util.c: Ditto.
13091         * man/amanda.8.in: Ditto.
13092         * restore-src/amidxtaped.c: Ditto.
13093         * restore-src/amrestore.c: Ditto.
13094         * server-src/amindexd.c: Ditto.
13095         * server-src/getconf.c: Ditto.
13096         * server-src/planner.c: Ditto.
13097
13098 2002-03-31  John R. Jackson (jrj@purdue.edu)
13099
13100         * client-src/sendsize.c: Pay attention to the spindle number.
13101
13102 2002-03-30  John R. Jackson (jrj@purdue.edu)
13103
13104         * server-src/planner.c: General delay_dumps code cleanup.
13105
13106 2002-03-30  John R. Jackson (jrj@purdue.edu)
13107
13108         * server-src/planner.c: Make sure individual dumps larger than a tape
13109           are not added back into the schedule.  Found by Uncle George
13110           <gatgul@voicenet.com>.
13111
13112 2002-03-29  John R. Jackson (jrj@purdue.edu)
13113
13114         * man/amanda.8.in: Move "comment" in tapetype after inclusion of
13115           previous definition.  Found by Uncle George <gatgul@voicenet.com>.
13116
13117 2002-03-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13118
13119         * client-src/client_util.c (fixup_relative): New function to prepend
13120           the dirname if relative.
13121         * client-src/client_util.c (build_exclude, build_include): Use
13122           fixup_relative.
13123         * client-src/client_util.c (parse_options): Do not prepend the dirname.
13124         * client-src/selfcheck.c (check_options): Don't generate ERROR for samba
13125           if optional is set.
13126
13127 2002-03-24  John R. Jackson (jrj@purdue.edu)
13128
13129         * common-src/debug.c: Change dbopen() message slightly to match what
13130           amdump generates, making it easier to parse.
13131
13132 2002-03-24  John R. Jackson (jrj@purdue.edu)
13133
13134         * common-src/Makefile.am: Move clock routines to common-src so
13135           everyone may use them.
13136         * server-src/Makefile.am: Ditto.
13137
13138 2002-03-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13139
13140         * client-src/sendbackup-gnutar.c: Fix use of no_record.
13141
13142 2002-03-24  John R. Jackson (jrj@purdue.edu)
13143
13144         * client-src/amandad.c: Make sure argv[0] is valid before using it.
13145         * restore-src/amidxtaped.c: Ditto.
13146         * server-src/amindexd.c: Ditto.
13147
13148 2002-03-24  John R. Jackson (jrj@purdue.edu)
13149
13150         * client-src/client_util.c: Use the Amanda memory allocation code.
13151         * client-src/sendbackup-gnutar.c: Ditto.
13152         * client-src/sendsize.c: Ditto.
13153         * common-src/match.c: Ditto.
13154         * recover-src/amrecover.c: Ditto.
13155         * recover-src/display_commands.c: Ditto.
13156         * recover-src/extract_list.c: Ditto.
13157         * restore-src/amidxtaped.c: Ditto.
13158         * server-src/amflush.c: Ditto.
13159         * server-src/disk_history.c: Ditto.
13160         * server-src/driver.c: Ditto.
13161         * server-src/dumper.c: Ditto.
13162         * common-src/amanda.h: Always pass the source file and line number
13163           to the memory routines to make it easier to debug.
13164         * common-src/alloc.c: Ditto.
13165         * common-src/file.c: Ditto.
13166
13167 2002-03-23  John R. Jackson (jrj@purdue.edu)
13168
13169         * changer-src/chg-scsi-chio.c: Use agets instead of fgets.
13170         * changer-src/chg-scsi.c: Use agets instead of fgets.
13171         * client-src/client_util.c: Use agets instead of fgets.
13172         * recover-src/amrecover.c: Clean up output on EOF.
13173         * recover-src/extract_list.c: Use agets instead of direct stdio.
13174           Clean up output on EOF.  Add '?' help.
13175         * recover-src/set_commands.c: Quote the new device in the verify
13176           output to make it stand out.
13177         * server-src/amflush.c: Clean up output on EOF.  Clean up output
13178           when multiple holding disk areas selected.  Clean up parsing.
13179           Loop until valid user response.
13180         * server-src/find.c: Do not complain if log file is missing for
13181           a new (datestamp == 0) tape.
13182         * server-src/holding.c: Use agets instead of fgets. Clean up
13183           interactive input and output.
13184
13185 2002-03-23  John R. Jackson (jrj@purdue.edu)
13186
13187         * client-src/selfcheck.c: Fix a compiler warning.
13188         * client-src/sendbackup.c: Ditto.
13189         * client-src/sendsize.c: Ditto.
13190
13191 2002-03-23  John R. Jackson (jrj@purdue.edu)
13192
13193         * client-src/getfsent.c (close_fstab()): Call endfsent() instead
13194           of fclose(), if available.
13195
13196 2002-03-23  John R. Jackson (jrj@purdue.edu)
13197
13198         * common-src/dbprintf (debug_printf): Make sure errno is preserved
13199           across dbprint() calls.
13200
13201 2002-03-23  John R. Jackson (jrj@purdue.edu)
13202
13203         * configure.in: Add -R$dir as well as -L$dir on Solaris when processing
13204           --with-libraries to support shared libraries of support products.
13205
13206 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13207
13208         * server-src/chunker.c: Get result from dumper.
13209         * server-src/driver.c: Send dumper result to chunker.
13210         * server-src/driverio.c (chunker_cmd): Send DONE and FAILED command.
13211         * server-src/driverio.h (chunker_t): New down field.
13212         * server-src/dumper.c: Cleanup.
13213         * server-src/logfile.c (logtype_str): Add "PARTIAL".
13214         * server-src/logfile.h (logtype_e): Add L_PARTIAL log.
13215         * server-src/reporter.c: Handle PARTIAL log.
13216         * server-src/server_util.c (cmdstr): Add "PARTIAL".
13217         * server-src/server_util.h (cmd_t): Add PARTIAL command.
13218         * server-src/taper.c (read_file): Result is PARTIAL if dumper
13219           result is not DONE.
13220
13221 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13222
13223         * server-src/tapefile.c (write_tapelist): Write to a temp file and
13224           rename it.
13225         * server-src/amlabel.c: Do not rename the tapelist file.
13226         * server-src/taper.c (label_tape): Do not rename the tapelist file.
13227
13228 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13229
13230         * client-src/client_util.c (parse_options): Do not check if the
13231           exclude file exist, it's done later.
13232
13233 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13234
13235         * client-src/client_util.c (parse_options): Parse exclude-optional and
13236           include-optional.
13237         * client-src/client_util.h (option_t): New exclude_optional and
13238           include_optional field.
13239         * man/amanda.8.in: Document optional.
13240         * server-src/amadmin.c (disklist_one): Display optional.
13241         * server-src/conffile.c: Parse optional keyword.
13242         * server-src/conffile.h (dumptype_t): New exclude_optional and
13243           include_optional field.
13244         * server-src/diskfile.c (read_diskline): Copy optional bits.
13245         * server-src/diskfile.c (optionstr): Print optional bits.
13246         * server-src/diskfile.h (disk_t): New exclude_optional and
13247           include_optional field.
13248         * server-src/planner.c (getsize): Use new sendsize format if optional
13249           bits are used.
13250
13251 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13252
13253         * server-src/driver.c (dump_to_tape): Call start_degraded_mode() if
13254           taper failed.
13255
13256 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13257
13258         * recover-src/extract_list.c (extract_files_setup): Add ^$ to host.
13259
13260 2002-03-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13261         Patch from Michael Frankowski <mfrankow@winternet.com>
13262
13263         * client-src/sendbackup-gnutar.c: Test for subdir before dbprintf.
13264
13265 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13266
13267         * client-src/client_util.c (init_options): New function.
13268         * client-src/client_util.h (init_options): Prototype.
13269         * client-src/sendsize.c (main): Use init_options.
13270
13271 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13272
13273         * client-src/client-util.c: Check for include and exclude files.
13274
13275 2002-03-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13276
13277         * server-src/amstatus.pl.in: Fix.
13278         * server-src/conffile.c(get-compress): Change message for bad 
13279           compress argument.
13280
13281 2002-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13282
13283         * server-src/amstatus.pl.in: Fix.
13284         * client-src/client_util.c (parse_options): Parse auth= option.
13285         * client-src/client_util.h (option_t): Add auth field.
13286         * client-src/sendbackup.c: Use auth instead of bsd-auth.
13287         * client-src/sendsize.c: Init auth.
13288
13289 2002-03-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13290
13291         * client-src/sendbackup-dump.c: use amdevice as argument to
13292           amname_to_fstype.
13293         * client-src/sendsize.c: Use amdevice as argument to amname_to_dirname.
13294         * server-src/dumper.c: clear device if it is set to NODEVICE.
13295
13296 2002-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13297
13298         * server-src/amindexd.c: Compilation fix.
13299
13300 2002-03-07 John R. Jackson (jrj@purdue.edu)
13301
13302         * changer-src/chg-zd-mtx.sh.in: Allow whitespace on a VolumeTag line.
13303           Compliments of Christopher McCrory <chrismcc@pricegrabber.com>.
13304
13305 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13306
13307         * recover-src/amrecover.h (list_disk): Prototype.
13308         * recover-src/set_commands.c (list_disk): New function.
13309         * recover-src/uparse.y: parse LISTDISK.
13310         * recover-src/uscan.l: listdisk keyword.
13311         * recover-src/help.c: help for listdisk.
13312         * man/amrecover.8.in: Doc for listdisk.
13313         * server-src/amindexd.c: New LISTDISK command.
13314         * docs/INDEXING: Document LISTDISK command.
13315
13316 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13317
13318         * server-src/amstatus.pl.in: Better output for autoflush.
13319
13320 2002-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13321
13322         * server-src/amstatus.pl.in: Fix.
13323
13324 2002-03-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13325
13326         * server-src/amadmin.c (disklist_one): Print dp->device.
13327         * server-src/amcheck.c (start_host): Send device if specified.
13328         * server-src/amstatus.pl.in: Parse line with device.
13329         * server-src/diskfile.c (parse_diskline): Parse device.
13330         * server-src/diskfile.c (match_disklist): Match on device.
13331         * server-src/diskfile.h (disk_t): New field device.
13332         * server-src/driverio.c: (dumper_cmd): Send device.
13333         * server-src/dumper.c (main): Parse device in request.
13334         * server-src/dumper.c (start_dump): New device argument, send
13335           device to client.
13336         * server-src/planner.c (getsize): Send device to client.
13337         * server-src/server_util.h (MAX_ARGS): Set it to 12.
13338         * client-src/client_util.c (add_include, build_exclude, build_include,
13339           parse_options): New device argument.
13340         * client-src/client_util.h (build_exclude,build_include,parse_options):
13341           New prototype.
13342         * client-src/selfcheck.c: Use device.
13343         * client-src/sendbackup-dump.c: Use device.
13344         * client-src/sendbackup-gnutar.c: Use device.
13345         * client-src/sendbackup.c: Use device.
13346         * client-src/sendbackup.h (start_backup): New device argument.
13347         * client-src/sendsize.c: Use device.
13348         * man/amanda.8.in: Document new disklist syntax.
13349         * example/disklist: Give example.
13350
13351 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13352
13353         * server-src/amstatus.pl.in: Write "wait to flush" only if waittaper
13354           is requested.
13355
13356 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13357
13358         * server-src/amstatus.pl.in: Fix for failed tape.
13359
13360 2002-02-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13361
13362         * man/amanda.8.in: Document multiple exclude.
13363         * man/amanda.8.in: Document include.
13364
13365 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13366
13367         * client-src/client-util.c (add_include): Include are glob expression.
13368
13369 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13370
13371         * common-src/debug.c (debug_open); Don't try to renmae an already 
13372           renamed file.
13373
13374 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13375
13376         * server-src/conffile.c (dump_configuration): Print multiple 
13377           exclude and include.
13378
13379 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13380
13381         * client-src/client_util.c (add_exclude, add_include): Typo.
13382
13383 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13384
13385         * client-src/client_util.c (build_include, build_exclude): Fix for 
13386           bad eof detection.
13387
13388 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13389
13390         * client-src/client_util.c (get_name): Create a file name.
13391         * client-src/client_util.c (build_name): Remove old files,
13392           build an unused file name.
13393         * client-src/client_util.c (add_exclude): Add an exclude pattern to
13394           the exclude file.
13395         * client-src/client_util.c (add_include): Add an include to the
13396           include file.
13397         * client-src/client_util.c (build_exclude): Concat all excludes in 
13398           one file.
13399         * client-src/client_util.c (build_include): Concat all includes in 
13400           one file.
13401         * client-src/client_util.h (build_exclude, build_include): Prototype.
13402         * client-src/selfcheck.c.diff (check_options): Call build_exclude 
13403           and build_include.
13404         * client-src/sendsize.c.diff: Call gtar with one 
13405           exclude file/include file.
13406         * client-src/sendbackup-gnutar.c.diff: Call gtar with one 
13407           exclude file/include file.
13408
13409 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13410
13411         * common-src/amanda.h (amfree): Change e local variable to e__errno.
13412         * common-src/amanda.h (strappend): Change t local variable to t_t_t.
13413
13414 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13415
13416         * client-src/sendsize.c: Set include_file and include_list to NULL
13417           when using old protocol.
13418         * client-src/sendbackup-gnutar.c: Include "." when using old protocol.
13419
13420 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13421
13422         * server-src/conffile.h (dumptype_t): Add include_file and include_list.
13423         * server-src/conffile.c: Read include.
13424         * server-src/diskfile.h (disk_t): Add include_file and include_list.
13425         * server-src/diskfile.c (optionstr): Add include to the optionstr.
13426         * server-src/amadmin.c (disklist_one): Print include.
13427         * server-src/planner.c: Use new protocol if include is used.
13428         * client-src/client_util.h (option_t): Add include_file and include_list
13429         * client-src/client_util.c (parse_options): Parse include.
13430         * client-src/selfcheck.c (check_options): Print ERROR if include are 
13431           used for SAMBA or DUMP.
13432         * client-src/sendsize.c: Send include to gnutar.
13433         * client-src/sendbackup-gnutar.c: Send include to gnutar.
13434
13435 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13436
13437         * client-src/client_util.c (parse_options): Check that files from
13438           'exclude list' exist'.
13439         * client-src/selfcheck.c (check_options): Give ERROR if multiple
13440           exclude are used with samba or if exclude are used with DUMP.
13441
13442 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13443
13444         * client-src/sendbackup.h: Remove bad stuff introduced in previous
13445           patch.
13446         * client-src/sendbackup-gnutar.c: Ditto.
13447
13448 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13449
13450         * client_src/client_util.c (parse_options): Function to parse 
13451           the option string. 
13452         * client_src/client_util.h (parse_options): Prototype.
13453         * client_src/client_util.h (option_t): Struct for options.
13454         * client_src/Makefile.am: Compile client_util.
13455         * client_src/selfcheck.c: Use new option_t and multiple exclude.
13456         * client_src/sendbackup.h: Use new option_t and multiple exclude.
13457         * client_src/sendbackup.c: Use new option_t and multiple exclude.
13458         * client_src/sendbackup-dump.c: Use new option_t and multiple exclude.
13459         * client_src/sendbackup-gnutar.c: Use new option_t and multiple exclude.
13460         * client_src/sendsize.c: Use new option_t and multiple exclude.
13461         * server-src/conffile.h: Use sl_t for exclude_file and exclude_list.
13462         * server-src/conffile.c: Multiple exclude.
13463         * server-src/diskfile.h: Use sl_t for exclude_file and exclude_list.
13464         * server-src/diskfile.c: Multiple exclude.
13465         * server-src/planner.c: Multiple exclude.
13466
13467 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13468
13469         * common-src/pipespawn.c (pipespawnv): Typo, ap_snprintf -> snprintf.
13470
13471 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13472
13473         * common-src/pipespawn.c (pipespawnv): New funtion taking an 
13474           argv argument.
13475         * common-src/pipespawn.h (pipespawnv): Prototype.
13476
13477 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13478
13479         * server-src/holding.h: Use sl_t instead of holding_t
13480         * server-src/holding.c: Ditto.
13481         * server-src/amcleanupdisk.c: Ditto.
13482         * server-src/amflush.c: Ditto.
13483         * server-src/find.c: Ditto.
13484         * server-src/planner.c: Ditto.
13485
13486 2002-02-11 John R. Jackson (jrj@purdue.edu)
13487
13488         * configure.in: AIX needs the "other" getconf argument to find out
13489           about large file support (XBS5_ILP32_OFFBIG instead of LFS).
13490
13491 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13492
13493         * common-src/sl.h: New header file
13494         * common-src/sl.c: New file for list of string struct.
13495         * common-src/Makefile.am: Compile sl.c
13496
13497 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13498
13499         * changer-src/chg-zd-mtx.sh.in: Don't use '^' in expr match argument.
13500
13501 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13502
13503         * common-src/fileheader.c (build_header): Typo.
13504
13505 2002-02-10 John R. Jackson (jrj@purdue.edu)
13506
13507         * configure.in: Add new file-pad tapetype option to take the place
13508           of a positive/negative blocksize.  Blocksize may now only be
13509           positive.  File-pad defaults to "true" which pads the last tape
13510           record like it always has.
13511         * man/amanda.8.in: Ditto.
13512         * server-src/amlabel.c: Ditto.
13513         * server-src/conffile.c: Ditto.  Fix typo in conffile test program.
13514         * server-src/conffile.h: Ditto.
13515         * server-src/planner.c: Ditto.
13516         * server-src/taper.c: Ditto.
13517
13518 2002-02-10 John R. Jackson (jrj@purdue.edu)
13519
13520         * configure.in: Save the ./configure args and display them in the
13521           version string (e.g. amandad*debug and "amadmin xx version").
13522         * common-src/genversion.c: Ditto.
13523
13524 2002-02-10 John R. Jackson (jrj@purdue.edu)
13525
13526         * common-src/alloc.c: Fix type mismatch issues discovered by splint
13527           (www.splint.org).  Compliments of jens persson <jens@persson.cx>.
13528         * common-src/bsd-security.c: Ditto.
13529         * common-src/debug.c: Ditto.
13530         * common-src/dgram.c: Ditto.
13531         * common-src/file.c: Ditto.
13532         * common-src/fileheader.c: Ditto.
13533         * common-src/fileheader.h: Ditto.
13534         * common-src/genversion.c: Ditto.
13535         * common-src/getcwd.c: Ditto.
13536         * common-src/match.c: Ditto.
13537         * common-src/stream.c: Ditto.
13538         * common-src/strstr.c: Ditto.
13539         * common-src/token.c: Ditto.
13540         * recover-src/amrecover.c: Ditto.
13541         * recover-src/display_commands.c: Ditto.
13542         * recover-src/extract_list.c: Ditto.
13543         * recover-src/set_commands.c: Ditto.
13544         * server-src/reporter.c: Ditto.
13545
13546 2002-02-10 John R. Jackson (jrj@purdue.edu)
13547
13548         * changer-src/chg-zd-mtx.sh.in: Major cleanup and general overhaul.
13549         * docs/TAPE.CHANGERS: Cleanup.
13550
13551 2002-02-09 John R. Jackson (jrj@purdue.edu)
13552
13553         * common-src/arglist.h: Clean up gcc detection of printf style variable
13554           argument list functions.
13555         * changer-src/scsi-changer-driver.c: Ditto.
13556         * common-src/debug.c: Ditto.
13557         * common-src/dgram.c: Ditto.
13558         * common-src/error.c: Ditto.
13559         * common-src/packet.c: Ditto.
13560         * common-src/packet.h: Ditto.
13561         * common-src/security.c: Ditto.
13562         * common-src/snprintf.c: Ditto.
13563         * common-src/token.c: Ditto.
13564         * common-src/token.h: Ditto.
13565         * server-src/amindexd.c: Ditto.
13566         * server-src/conffile.c: Ditto.
13567         * server-src/diskfile.c: Ditto.
13568         * server-src/logfile.c: Ditto.
13569         * server-src/logfile.h: Ditto.
13570         * server-src/server_util.c: Ditto.
13571
13572 2002-02-09 John R. Jackson (jrj@purdue.edu)
13573
13574         * configure.in: Must look in both strings.h and string.h when trying
13575           to find function declarations (strncasecmp was not found on AIX
13576           but is really there and our override caused a mismatch error).
13577
13578 2002-02-09 John R. Jackson (jrj@purdue.edu)
13579
13580         * configure.in: Add code to test for a type defined in other than the
13581           autoconf expected locations.  Use it to look for socklen_t.
13582
13583 2002-02-08 John R. Jackson (jrj@purdue.edu)
13584
13585         * server-src/amadmin.c (check_dumpuser): Make it fatal to attempt to
13586           do an operation that would alter any files when run as someone other
13587           than the dump user from amanda.conf.  This should prevent files from
13588           ending up with incorrect ownership.
13589
13590 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13591
13592         * man/amrecover.8.in (settape): Document that the hostname is required
13593           if the protocol (tape:, file:, rait:, null:) is specified.
13594         * man/amrecover.8.in (settape): Document that it is posible to
13595           change the tape device when asked to load tape.
13596
13597 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13598
13599         * server-src/holding.c (scan_holdingdir): Create the list in 
13600           datestamp order.
13601
13602 2002-02-02 John R. Jackson (jrj@purdue.edu)
13603
13604         * configure.in: Add unistd.h to list of places to look for ruserok()
13605           declaration.  Reported by John Koenig <jfkoenig@vipb.com> on ALPHA
13606           running OSF1 v5.1
13607
13608 2002-02-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13609         Reported by Roland E. Lipovits <rel@lipo.at0.net>
13610
13611         * server-src/amstatus.pl.in: Don't double-counts the failed 
13612           estimate partitions.
13613
13614 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13615
13616         * configure.in: New --with-maxtapeblocksize with a default of 32.
13617         * common-src/amanda.h: MAX_TAPE_BLOCK_KB is defined in amanda.h
13618
13619 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13620
13621         * common-src/fileheader.c (build_header): Never write the
13622           BLOCKSIZE= line.
13623         * common-src/fileheader.c (parse_file_header): Do not parse the
13624           BLOCKSIZE= line.
13625
13626 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13627
13628         * common-src/fileheader.c (build_header): Write the BLOCKSIZE= line
13629           after the dd if=... line.
13630
13631 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13632
13633         * server-src/driver.c: Init code to 0.
13634
13635 2002-01-29 John R. Jackson (jrj@purdue.edu)
13636
13637         * tape-src/output-tape.c (tape_tapefd_fsf): Some systems cannot deal
13638           with large stack variables, so allocate tape I/O buffers dynamically.
13639         * tape-src/tapeio.c (tapefd_rdlabel): Ditto.
13640
13641 2002-01-25 John R. Jackson (jrj@purdue.edu)
13642
13643         * server-src/driver.c: Log non-zero exit codes and signals from all
13644           the dumpers and taper.
13645
13646 2002-01-25 John R. Jackson (jrj@purdue.edu)
13647
13648         * server-src/amindexd.c: Clean up reporting of errors by gethostby*()
13649           functions.  Make sure they always report what they were trying to
13650           look up, and don't bother reporting errno (it would be h_errno).
13651
13652 2002-01-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13653
13654         * common-src/fileheader.h (dumpfile_t): Add blocksize field.
13655         * common-src/fileheader.h (build_header): Change prototype.
13656         * common-src/fileheader.c (fh_init): blocksize default to 
13657           DISK_BLOCK_BYTES.
13658         * common-src/fileheader.c (parse_file_header): Parse BLOCKSIZE= line.
13659         * common-src/fileheader.c (build_header): Remove blocksize parameter, 
13660           write the BLOCKSIZE= line.
13661         * tape-src/tapeio.c: set file.blocksize, Change call to build_header.
13662         * restore-src/amrestore.c: Ditto.
13663         * server-src/dumper.c: Ditto.
13664         * server-src/taper.c: Ditto.
13665         * server-src/holding.c: Ditto.
13666         * server-src/chunker.c: Ditto.
13667
13668 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13669
13670         * changer-src/scsi-changer-driver.c (SCSI_ReadElementStatus):
13671           set ret to -1.
13672
13673 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13674
13675         * server-src/planner.c: Check for dp->todo.
13676
13677 2002-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13678         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
13679
13680         * changer-src/chg-scsi.c: Typo.
13681
13682 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13683
13684         * changer-src/Makefile.am: Run `perl -c' on perl script.
13685         * client-src/Makefile.am: Ditto.
13686         * dumper-src/Makefile.am: Ditto.
13687         * server-src/Makefile.am: Ditto.
13688
13689 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13690         Reported by Geert Uytterhoeven <geert@linux-m68k.org>
13691
13692         * README: Amanda compile on Linux/m68k.
13693
13694 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13695
13696         * changer-src/chg-rth.pl.in: Typo. fi -> }.
13697
13698 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13699         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
13700
13701         * changer-src/chg-chio.pl.in: Typo. fi -> }.
13702         * changer-src/chg-chio.pl.in (prefix, exec_prefix): Set correctly.
13703         * changer-src/chg-chio.pl.in (max_picker): Init to -1.
13704
13705 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13706
13707         * recover-src/extract_list.c (okay_to_continue_tape): Ignore \n
13708           at end of string.
13709
13710 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13711
13712         * server-src/amoverview.pl.in: Ignore some line from amadmin.
13713
13714 2002-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13715
13716         * common-src/event.c: Use ASSERTIONS not ASSERT.
13717
13718 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13719
13720         * tape-src/output-tape.c (tape_tapefd_rewind, tape_tapefd_unload):
13721           Init rc to -1.
13722         * changer-src/scsi-irix.c (SCSI_OpenDevice): Cast to int.
13723         * common-src/match.c (clean_regex): Cast to int.
13724
13725 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13726         Reported by <ian.willis@sge.net>
13727
13728         * common-src/rsh-security.c: Fix for RSH_DEBUG.
13729
13730 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13731
13732         * config/ltconfig: Remove
13733         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.2.
13734         * config/config.guess: Update from
13735           ftp://ftp.gnu.org/gnu/config/config.guess
13736         * config/config.sub: Update from 
13737           ftp://ftp.gnu.org/gnu/config/config.sub
13738         * config/depcomp, config/install-sh, config/missing, 
13739           config/mkinstalldirs: Update from automake 1.5
13740         * config/Makefile.am (EXTRA_DIST): Remove ltconfig.
13741
13742 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13743         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
13744
13745         * configure.in: Add missing [.
13746
13747 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13748         Patch by Jason Thomas <jason@topic.com.au>
13749              and Eric Siegerman <erics@telepres.com>
13750
13751         * common-src/bsd-security.c (check_user_amandahosts): improve message.
13752
13753 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13754
13755         * server-src/driver.c: Do not go in degraded mode in nodump mode.
13756         * server-src/conffile.c:Check many options to be sure they are positive.
13757
13758 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13759
13760         * changer-src/chg-scsi.c (get_relative_target): return -1;
13761         * changer-src/scsi-irix.c (SCSI_ExecuteCommand): Remove Zero variable.
13762         * common-src/amanda.h: include strings.h if HAVE_STRINGS_H is defined.
13763         * server-src/amadmin.c (info_one): Remove lev0date variable.
13764         * server-src/amadmin.c (import_db): Remove vers_comment variable.
13765         * server-src/amindexd.c (main): Remove arg_len variable.
13766         * server-src/amtrmidx.c (main): Remove level_position and
13767           datestamp_position variables.
13768         * server-src/changer.c (changer_current): Remove checked variable.
13769         * server-src/conffile.c (read_confline): Check value of RESERVE.
13770         * server-src/conffile.c (get_tapetype): Check value of LENGTH and
13771           FILEMARK.
13772         * server-src/diskfile.h: bit field of 1 bit must be unsigned.
13773         * server-src/driver.c (main): Don't check the value of RESERVE.
13774         * server-src/driver.c (find_diskspace): Remove as_pref variable.
13775         * server-src/driverio.c (getresult): cast cmd_t.
13776         * server-src/chunker.c (databuf_flush): save_type is a filetype_t.
13777         * server-src/find.c (search_logfile): Remove host_undo_ch and
13778           disk_undo_ch variables.
13779         * server-src/holding.c (pick_datestamp): Remove result variable.
13780         * server-src/server_util.c (getcmd): Loop on a cmd_t variable.
13781         * server-src/taper.c (tape_writer_side): Remove out_open variable.
13782         * tape-src/tapeio.c (tapefd_close): Cast to (void *).
13783
13784 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13785
13786         * client-src/selfcheck.c: Fix compiler warning.
13787         * changer-src/chg-scsi.c: Ditto.
13788         * changer-src/scsi-changer-driver.c: Ditto.
13789         * changer-src/scsi-defs.h: Ditto.
13790         * server-src/server_util.c: Ditto.
13791         * common-src/fileheader.c: Ditto.
13792
13793 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13794
13795         * configure.in: Set MAX_TAPE_BLOCK_KB on linux
13796
13797 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13798         Patch by Blaz Zupan <blaz@amis.net>
13799
13800         * changer-src/chg-zd-mtx.sh.in: typo.
13801
13802 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13803
13804         * client-src/selfcheck.c (check_access): New function (old check_file
13805           function).
13806         * client-src/selfcheck.c (check_file): Check that the filename is a
13807           file.
13808         * client-src/selfcheck.c (check_dir): Check that dirname is a directory.
13809
13810 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13811         Patch by Henning Schmiedehausen <henning@forge.intermeta.de>
13812
13813         * common-src/file.c (safe_cd): Create the AMANDA_DBGDIR and
13814           AMANDA_TMPDIR directory.
13815
13816 2001-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13817
13818         * server-src/amverify.sh.in: Check that @AMANDA_TMPDIR@ exist.
13819         * server-src/amrmtape.sh.in: Ditto.
13820
13821 2001-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13822
13823         * changer-src/Makefile.am: fix setting of libexec_PROGRAMS.
13824
13825 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13826
13827         * server-src/amstatus.pl.in: Work with amflush log.
13828
13829 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13830
13831         * server-src/driver.c (nodump): new argument, Don't start the dumpers
13832           if set.
13833         * server-src/holding.c (get_flush): chdir to original cwd.
13834         * server-src/reporter.c: accept driver and amflush line in log.
13835         * server-src/amflush.c: exec driver to do the flushing.
13836
13837 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13838
13839         * server-src/amstatus.pl.in: Fixup for estimate, write flush line.
13840
13841 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13842
13843         * recover-src/extract_list.c: You can change the tape device
13844           between each tape.
13845
13846 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13847
13848         * restore-src/amrestore.c (restore): try to find the next chunk 
13849           in the current directory.
13850
13851 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13852
13853         * example/amanda.conf.in: typo.
13854
13855 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13856
13857         Patch by Roland E. Lipovits <rel@lipo.at0.net>
13858         * example/amanda.conf.in: typo.
13859
13860 2001-12-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13861
13862         * server-src/dumper.c, server-src/taper.c, server-src/chunker.c:
13863         Replace TRY_AGAIN by TRYAGAIN.
13864
13865 2001-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13866         Patch by Michael D. Beynon <beynon@ll.mit.edu>
13867
13868         * server-src/driver.c (main): Take care of empty tapeq.
13869
13870 2001-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13871
13872         * server-src/diskfile.c (lookup_host): Match must be exact.
13873
13874 2001-11-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13875
13876         * server-src/planner.c: Add host, disk, datestamp and level on 
13877         FLUSH line. Add datestamp on DUMP line.
13878         * server-src/driver.c (read_flush): Read new format of FLUSH line.
13879         * server-src/driver.c (read_schedule): Read new format of DUMP line.
13880         * server-src/amflush.c: Write a datestamp on stderr.
13881         * server-src/amdump.sh.in: Write a datestamp on stderr.
13882         * server-src/amstatus.pl.in: Works with autoflush.
13883
13884 2001-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA> 
13885         * server-src/conffile.c (autoflush): New configuration options.
13886         * server-src/conffile.h (autoflush): New configuration options.
13887         * man/amanda.8.in: Document it.
13888         * example/amanda.conf.in: Document it.
13889         * server-src/holding.h (get_flush, pick_datestamp, pick_all_datestamp,
13890         cleanup_holdingdisk): New prototype.
13891         * server-src/holding.c (scan_holdingdir, cleanup_holdingdisk,
13892         get_flush): New function.
13893         * server-src/holding.c (pick_datestamp, pick_all_datestamp): New
13894         verbose argument.
13895         * server-src/amcleanupdisk.c: Change call to pick_all_datestamp.
13896         * server-src/amflush.c: Change call to pick_all_datestamp.
13897         * server-src/find.c: Change call to pick_all_datestamp.
13898         * server-src/planner.c: Write FLUSH line to driver, the schedule
13899         line contain the keyword DUMP.
13900         * server-src/planner.c: Add datestamp to SUCCESS and FAIL line.
13901         * server-src/amstatus.pl.in: New parsing of DUMP line.
13902         * server-src/driverio.h: New datestamp field in sched_t;
13903         * server-src/driver.c (build_diskspace): New function to build a
13904         assignedhd_t from an holding file.
13905         * server-src/driver.c (read_flush): New function to read the list
13906         of files to flush.
13907         * server-src/driver.c (read_schedule): Parse the keyword DUMP.
13908         * server-src/driver.c: Add datestamp to FAIL line.
13909         * server-src/dumper.c: Add datestamp to FAIL line.
13910         * server-src/reporter.c (timedata_t, repdata_t) : Major change of
13911         structure.
13912         * server-src/taper.c: Add datestamp to FAIL line.
13913
13914 2001-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13915
13916         * server-src/conffile.c: New dumporder configuration.
13917         * server-src/conffile.h: Likewise.
13918         * server-src/driver.c (start_some_dumps): Use dumporder to
13919         select the next disk to dump.
13920         * example/amanda.conf.in: Give an example of dumporder.
13921         * man/amanda.8.in: Document it.
13922
13923 2001-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13924
13925         * recover-src/amrecover.h (cd_glob, cd_regex, cd_dir): New prototypes.
13926         * recover-src/set_commands.c (cd_glob, cd_regex, cd_dir): New functions.
13927         * recover-src/uparse.y: Add new token CDX, call cd_glob instead 
13928         of set_directory for cd command, call cd_regex for cdx command.
13929         * recover-src/uscan.l: On cdx string return CDX token.
13930         * recover-src/help.c: Document it.
13931         * man/amrecover.8.in: Document it.
13932
13933 2001-09-26 John R. Jackson (jrj@purdue.edu)
13934
13935         * server-src/reporter.c: Fix problem when column sizes are negative.
13936
13937 2001-09-21 John R. Jackson (jrj@purdue.edu)
13938
13939         * server-src/Makefile.am: Add -I../common-src so genversion.h can be
13940           found (since it is built on the fly).  Only fails when build is done
13941           in a different directory than the sources.
13942
13943 2001-09-17 John R. Jackson (jrj@purdue.edu)
13944
13945         * server-src/getconf.c: Add capabilities to amgetconf to return
13946           build environment values and also to open and close a debug file
13947           (e.g. for scripts).
13948         * man/amgetconf.8.in: Ditto.
13949         * changer-src/chg-scsi.c: Ditto.
13950         * common-src/amanda.h: Ditto.
13951         * common-src/debug.c: Ditto.
13952         * common-src/error.c: Ditto.
13953         * server-src/dumper.c: Ditto.
13954
13955 2001-09-17 John R. Jackson (jrj@purdue.edu)
13956
13957         * server-src/planner.c: Make sure we do not attempt to bump beyond
13958           level 9.
13959
13960 2001-09-16 Thomas Hepper (th@ant.han.de)
13961         * changer-src/chg-scsi.c: Added new config option autoinv, 
13962         if not set no auto inventory will be done if the label db is out of 
13963         sync. Reworked MapBarCode, now the parameters are passed as a struct 
13964         and the result is returned in this struct (MBC_T), 
13965         also removed some duplicate/nonsens code from MapBarCode
13966         Changed the definitions for slot_file. It was used duplicate, 
13967         1. as the config file set by amanda.conf, and second set by the
13968         config option in the chg-scsi config file. Now the file from
13969         amanda.conf is called chg_scsi_conf. and changer_file is renamed 
13970         to slot_file.
13971         Added check if cleanfile is not set, if true clean_file is set to NULL
13972         Now return if tape_device is not in the range 0-9.
13973         Added some checks if we have all informations like slot_file, 
13974         devices etc. Fixed and error in the search function, 
13975         if the searched vol is already loaded return the correct info 
13976         and not 'label not found'. Fixed error in the parameter passing 
13977         to get_relative_slot. If the option was -slot last we where 
13978         1 above the end parameter..
13979
13980         * changer-src/scsi-bsd.c: Fix compile problems.
13981         * changer-src/scsi-changer-driver.c: Fixed the last problems :-) 
13982         for the label/barcode handling...
13983         * changer-src/scsi-defs.h: Added new struct MBC_T
13984         * changer-src/sense.c: Added some more messages for Exabyte 210 lib
13985
13986 2001-09-01 John R. Jackson (jrj@purdue.edu)
13987
13988         * client-src/sendsize.c: Fix memory allocation problem.
13989
13990 2001-08-31 John R. Jackson (jrj@purdue.edu)
13991
13992         * server-src/amindex.c: Fix memory leak.  Compliments of Robert Minsk
13993           <egbert@centropolisfx.com>.
13994         * server-src/logfile.c: Fix memory leak.  Compliments of Robert Minsk
13995           <egbert@centropolisfx.com>.
13996
13997 2001-08-30 John R. Jackson (jrj@purdue.edu)
13998
13999         * server-src/planner.c: Fix problem with maintenance of total level
14000           0 size when disk being brought back into the schedule was not doing
14001           a level 0.  Compliments of Robert Minsk <egbert@centropolisfx.com>.
14002
14003 2001-08-24 John R. Jackson (jrj@purdue.edu)
14004
14005         * server-src/amverify.sh.in: Fix missing backtick error.
14006
14007 2001-08-24 John R. Jackson (jrj@purdue.edu)
14008
14009         * server-src/taper.c: Allocate buffers on page boundaries.
14010
14011 2001-08-22 John R. Jackson (jrj@purdue.edu)
14012
14013         * tape-src/Makefile.am: Add chown/chgrp rules for ammt/amdd install
14014           so they end up like all the other Amanda programs.
14015
14016 2001-08-15 Thomas Hepper (th@ant.han.de)
14017         * changer-src/chg-scsi.c. Removed version 1 DB support from mapBarCode. Changed the way parameter
14018         are given to MapBarCode and returned from there. No a struct is passed where all infos
14019         will be returned to the calling function.
14020         If eject is set we will not call LogSense in chg-scsi because it is also called in the
14021         eject function.
14022         * changer-src/scsi-defs.h: Added struct MBC_T used by MapBarCode.
14023         * changer-src/scsi-changer-driver.c: Changed all calls to MapBarCode to the new way
14024
14025 2001-08-14 John R. Jackson (jrj@purdue.edu)
14026
14027         * docs/EXCLUDE: New document from Andrew Hall <ahall@secureworks.net>
14028           describing how to set up and use GNU tar exclusions.
14029         * docs/Makefile.am: Added EXCLUDE and PORT.USAGE.
14030
14031 2001-08-14 John R. Jackson (jrj@purdue.edu)
14032
14033         * docs/PORT.USAGE: New document about how Amanda ports are used.
14034
14035 2001-08-14 John R. Jackson (jrj@purdue.edu)
14036
14037         * client-src/sendsize.c: Fix patch merge goof (ap_snprintf -> snprintf).
14038
14039 2001-08-14 John R. Jackson (jrj@purdue.edu)
14040
14041         * common-src/stream.c: Add stream_client_privileged() function to
14042           get a privileged port and fail if one is not available.  The older
14043           stream_client() function gets a (non-privileged) port in the
14044           configured portrange, if set and possible, else anything available.
14045         * common-src/stream.h: Prototypes.
14046         * recover-src/amrecover.c: Use stream_client_privileged() instead of
14047           stream_client().
14048         * recover-src/extract_list.c: Ditto.
14049         * configure.in: Added several more port range sanity checks.  Added
14050           --with-tcpportrange as an alias for --with-portrange.
14051
14052 2001-08-09 Thomas Hepper (th@ant.han.de)
14053         * changer-src/chg-scsi.c: Added check in MapBarCode if the labelfile
14054         parameter is empty, and if yes return. 
14055         Added global variable do_inventory, and if set do an inventory before
14056         exit.
14057         In MapBarCode changed the way the UPDATE_SLOT is done, now it uses
14058         the slot number passed to MapBarCode to find and update the record.
14059         * changer-src/scsi-changer-driver.c: Added def. for BreeceHill Q7
14060         Added global variables which are set by the tape_rdlabel function
14061         in eject/unload.
14062         Reworked the way how the updates of the labelfile are done.
14063
14064 2001-08-01 John R. Jackson (jrj@purdue.edu)
14065
14066         * client-src/selfcheck.c: Fix typos I introduced into the PC subdir
14067           patch.
14068         * client-src/sendbackup-gnutar.c: Ditto.
14069         * client-src/sendsize.c: Ditto.
14070
14071 2001-08-01 Marko Injac <marko.injac@mail.insert.si> via John R. Jackson (jrj@purdue.edu)
14072
14073         * client-src/findpass.c: Allow backup of subdirs of PC shares for
14074           amanda-2.4.1beta1 by Greg Shebert amanda-hackers list Tue Feb 1,
14075           2000.  Ported to amanda-2.4.2p2 on debian potato by Marko Injac.
14076         * client-src/findpass.h: Ditto.
14077         * client-src/selfcheck.c: Ditto.
14078         * client-src/sendbackup-gnutar.c: Ditto.
14079         * client-src/sendsize.c: Ditto.
14080         * docs/SAMBA: Ditto.
14081
14082 2001-08-01 John R. Jackson (jrj@purdue.edu)
14083
14084         * client-src/sendsize.c: Prefix each debug line with sendsize process
14085           information to make picking out the output from a particular estimate
14086           run easier when maxdumps > 1.
14087
14088 2001-08-01 John R. Jackson (jrj@purdue.edu)
14089
14090         * server-src/amcheck.c: Unlink the temp files as soon as they are
14091           created so they always go away when amcheck terminates.  Use
14092           pipespawn() instead of system() to call the MAILER program.  Call
14093           dbopen()/dbclose() in main() to write to a debug file instead of
14094           stderr.
14095
14096 2001-08-01 John R. Jackson (jrj@purdue.edu)
14097
14098         * common-src/debug.c: Only rename files that end in ".debug".
14099
14100 2001-08-01 John R. Jackson (jrj@purdue.edu)
14101
14102         * common-src/pipespawn.c: Show empty pipespawn() args as "".
14103
14104 2001-07-31 John R. Jackson (jrj@purdue.edu)
14105
14106         * server-src/conffile.h: Add support for tapetype "blocksize" keyword.
14107         * server-src/conffile.c: Add tapetype "blocksize" keyword.  Use
14108           DISK_BLOCK_KB where appropriate instead of TAPE_BLOCK_SIZE.  Disallow
14109           negative tape length and tapemark size.
14110         * common-src/alloc.c: Add new amtable_free() function.  Adjust args
14111           to amtable_alloc() to be consistent with amtable_free().
14112         * common-src/amanda.h: Add new am_round() and am_floor() macros.
14113           Define new DISK_BLOCK_KB, DISK_BLOCK_BYTES, MAX_TAPE_BLOCK_KB,
14114           MAX_TAPE_BLOCK_BYTES constants.  Remove TAPE_BLOCK_SIZE and
14115           TAPE_BLOCK_BYTES.
14116         * common-src/bsd-security.c: TAPE_BLOCK_BYTES -> NETWORK_BLOCK_BYTES.
14117           Use -1 instead of DEFAULT_SIZE.
14118         * common-src/rsh-security.c: Ditto.
14119         * common-src/fileheader.c: Change write_header() to build_header().
14120           Add blocksize arg.  Get rid of unused fill_buffer() function.
14121         * common-src/fileheader.h: Ditto.
14122         * common-src/stream.c: Use negative value to indicate default buffer
14123           size.
14124         * common-src/stream.h: Add NETWORK_BLOCK_BYTES and STREAM_BUFSIZE
14125           constants.  Remove DATABUF_SIZE and DEFAULT_SIZE.
14126         * man/amanda.8.in: Document the new "blocksize" tapetype keyword.
14127           Document that "length" in tapetype has meaning to some output
14128           drivers.  Fix "bumpdays" and "speed" defaults.  Document new "file:"
14129           output driver record length data file.
14130         * man/amrestore.8: Add new "-b blocksize" arg.  Add description of
14131           how to catalogue the images on a tape.
14132         * recover-src/amrecover.c: DEFAULT_SIZE -> -1.
14133         * recover-src/extract_list.c: DEFAULT_SIZE -> -1.  Use DISK_BLOCK_BYTES
14134           instead of TAPE_BLOCK_BYTES for the header size.
14135         * restore-src/amrestore.c: Add new "-b blocksize" arg.  Document how
14136           the header is handled.  Deal with arbritrary tape record sizes.
14137         * server-src/amlabel.c: Use the tapetype blocksize.
14138         * server-src/chunker.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
14139           appropropriate instead of older constants.  Rewrite disk I/O buffer
14140           management.  Never pad output stream (e.g. to holding disk).  Use
14141           -1 for default stream buffer size.
14142         * server-src/driver.c: Use DISK_BLOCK_KB where appropriate instead of
14143           TAPE_BLOCK_SIZE.
14144         * server-src/driverio.c: Set chunker argv[0] to name based on which
14145           dumper it is working with.
14146         * server-src/dumper.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
14147           appropropriate instead of older constants.  Rewrite disk I/O buffer
14148           management.  Never pad output stream (e.g. to holding disk).  Use
14149           -1 for default stream buffer size.
14150         * server-src/holding.c: Change TAPE_BLOCK_BYTES to DISK_BLOCK_BYTES.
14151           Use fullread() instead of fill_buffer().
14152         * server-src/planner.c: Use tapetype blocksize instead of constant
14153           for tape length calculations.
14154         * server-src/taper.c: Support tapetype blocksize.  Only pad writes if
14155           blocksize is negative.  Reorganize shared memory buffers to put
14156           data on page boundaries.  Try reducing tapebuf count if allocation
14157           fails.
14158         * tape-src/output-file.c: Maintain record size information.  Use mask
14159           and flags from caller.
14160         * tape-src/output-null.c: Use new amtable_alloc() arg order.
14161         * tape-src/output-rait.c: Use new amtable_alloc() arg order.  Add
14162           private version of amtable_free() for standalone build.  Fix off
14163           by one and other table allocation problems.
14164         * tape-src/output-rait.h: Maintain file descriptor count in the
14165           structure.
14166         * tape-src/tapeio.c: Support tapetype blocksize.  Use new
14167           amtable_alloc() arg order.  Fix some error message text.  
14168         * tape-src/tapeio.h: New prototypes with blocksize arg.
14169         * tape-src/tapetype.c: Add "-b blocksize" arg.  Fix some end case
14170           aborts.
14171
14172 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
14173
14174         * recover-src/amrecover.c: Improve the "Unexpected server end of file"
14175           message.
14176
14177 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
14178
14179         * man/amanda.8.in: Document includefile.
14180         * man/amdump.8.in: Add note that local crontab documention should be
14181           checked for proper syntax.
14182         * man/amrecover.8.in: Document use of PAGER environment variable.
14183         * man/amrestore.8: Document that GNU tar must be used as some vendor
14184           tar programs cannot read GNU tar format.
14185         * docs/FAQ: Update location of online FAQ.
14186
14187 2001-07-25 John R. Jackson <jrj@purdue.edu>
14188
14189         * docs/TAPE.CHANGER: Changes from Ben Lewis (bhlewis@purdue.edu) to
14190           document the new (but optional) searchable features.
14191
14192 2001-07-19 John R. Jackson <jrj@purdue.edu>
14193
14194         * common-src/error.c: Fix function prototype error.
14195
14196 2001-07-19 John R. Jackson <jrj@purdue.edu>
14197
14198         * common-src/error.c: Add new function errordump() that acts like
14199           error() but calls abort() to (try to) drop core.
14200         * common-src/amanda.h: Prototype.
14201         * common-src/alloc.c: Call errordump() instead of error() for some
14202           memory allocation failures to aid traceback.
14203
14204 2001-07-19 John R. Jackson <jrj@purdue.edu>
14205
14206         * server-src/amadmin.c: Improve the error message when read_conffile()
14207           fails.
14208         * server-src/amcheck.c: Ditto.
14209         * server-src/amcleanupdisk.c: Ditto.
14210         * server-src/amflush.c: Ditto.
14211         * server-src/amlabel.c: Ditto.
14212         * server-src/amlogroll.c: Ditto.
14213         * server-src/amtape.c: Ditto.
14214         * server-src/amtrmidx.c: Ditto.
14215         * server-src/amtrmlog.c: Ditto.
14216         * server-src/driver.c: Ditto.
14217         * server-src/dumper.c: Ditto.
14218         * server-src/getconf.c: Ditto.
14219         * server-src/planner.c: Ditto.
14220         * server-src/reporter.c: Ditto.
14221         * server-src/taper.c: Ditto.
14222
14223 2001-07-19 John R. Jackson <jrj@purdue.edu>
14224
14225         * server-src/driverio.c: Make the name "ps" reports match the dumper
14226           name (e.g. "dumper3").
14227
14228 2001-07-18 John R. Jackson <jrj@purdue.edu>
14229
14230         * changer-src/chg-chio.pl.in: Try to unload the drive before moving
14231           a tape back to a slot.  Fixes a problem on Ecrix AutoPAK devices.
14232           Patch compliments of Sam Leffler <sam@errno.com>.
14233
14234 2001-07-18 John R. Jackson <jrj@purdue.edu>
14235
14236         * server-src/amverify.sh.in: Change to the Amanda temp directory
14237           instead of the config directory.  In addition to making amverify
14238           act like most other Amanda programs, this gets around an
14239           xfsrestore bug.
14240
14241 2001-07-18 John R. Jackson <jrj@purdue.edu>
14242
14243         * man/amanda.8.in: Describe the .amandahosts format better.  Clean up
14244           a couple of minor typos.
14245
14246 2001-07-13 John R. Jackson <jrj@purdue.edu>
14247
14248         * common-src/dgram.h: Improve UDP datagram size calculation.
14249         * server-src/amcheck.c: Break up large requests into pieces.
14250         * server-src/planner.c: Break up large requests into pieces.
14251
14252 2001-07-12 John R. Jackson <jrj@purdue.edu>
14253
14254         * tape-src/amdd.c: Use tapefd_close() in amdd if the file was
14255           opened with tape_open().  This does any necessary output driver
14256           cleanup (such as moving the current file position for "file:").
14257
14258 2001-07-12 John R. Jackson <jrj@purdue.edu>
14259
14260         * Makefile.am: Fix automake warning.
14261
14262 2001-07-11 John R. Jackson <jrj@purdue.edu>
14263
14264         * tape-src/tapetype.c: Use tapefd_write() instead of write().
14265
14266 2001-07-11 John R. Jackson <jrj@purdue.edu>
14267
14268         * common-src/file.c: Fix a memory leak.  Grab exponentially larger
14269           chunks of memory up to a point, then level out.
14270
14271 2001-07-11 John R. Jackson <jrj@purdue.edu>
14272
14273         * tape-src/tapetype.c: Only report a pass summary when stderr is not
14274           a tty.  Deal with some obscure end cases.
14275
14276 2001-07-10 John R. Jackson <jrj@purdue.edu>
14277
14278         * changer-src/scsi-aix.c: Convert Tape_Eject to Tape_Ioctl.
14279         * changer-src/scsi-solaris.c: Ditto.
14280
14281 2001-07-10 John R. Jackson <jrj@purdue.edu>
14282
14283         * server-src/amcheck.c: Move user name check before attempt to create
14284           temp files so more appropriate error message is generated.
14285
14286 2001-07-09 John R. Jackson <jrj@purdue.edu>
14287
14288         * common-src/dgram.c: Fix error end case unitialized variable.
14289
14290 2001-07-05 John R. Jackson <jrj@purdue.edu>
14291
14292         * docs/TAPE.CHANGERS: Minor docs/TAPE.CHANGERS update to clarify
14293           that -slot and -eject unload and put the current tape away.
14294
14295 2001-07-02 John R. Jackson <jrj@purdue.edu>
14296
14297         * changer-src/chg-manual.sh.in: Add yet another ONLINEREGEX, this one
14298           compliments of Nick (n_hibma@qubesoft.com) for some FreeBSD variant.
14299
14300 2001-06-29 John R. Jackson <jrj@purdue.edu>
14301
14302         * tape-src/tapeio.c: Move the device name parsing routines from the
14303           RAIT module to tapeio and make them generic.  This allows one
14304           module to open another, e.g. rait:{null:,z1,z2,z3}.  Maintain
14305           both the original open flags and mask and use them on the real open.
14306         * tape-src/amdd.c: Make sure this compiles "stand-alone".  To do so,
14307           use: gcc -Wall -DNO_AMANDA amdd.c output-rait.c output-tape.c.
14308           Abort as soon as one of the open calls fails instead of waiting
14309           for read/write to report a bad file descriptor.
14310           Pass a mask to the open function in case the output is created.
14311         * tape-src/ammt.c: Make sure this compiles "stand-alone".  To do so,
14312           use: gcc -Wall -DNO_AMANDA ammt.c output-rait.c output-tape.c.
14313         * tape-src/output-file.c: Maintain both the original open flags and
14314           mask and use them on the real open.
14315         * tape-src/output-null.c: Ditto.
14316         * tape-src/output-file.h: Change to non-prototype declaration of
14317           file_tape_open() to deal with the optional mask parameter.
14318         * tape-src/output-null.h: Ditto.
14319         * tape-src/output-tape.h: Ditto.
14320         * tape-src/tapeio.h: Ditto.  Add device name parsing prototypes.
14321         * tape-src/output-rait.c: Make sure this compiles "stand-alone".
14322           Maintain both the original open flags and mask and use them on the
14323           real open.
14324         * tape-src/output-rait.h: Make sure this compiles "stand-alone".
14325         * tape-src/output-tape.c: Make this part of the "stand-alone" compile
14326           of ammt and amdd since it knows all the proper ioctl operations.
14327           Maintain both the original open flags and mask and use them on the
14328           real open.
14329
14330 2001-06-27 John R. Jackson <jrj@purdue.edu>
14331
14332         * changer-src/chg-manual.sh.in: Add "bs=32k" to the dd command so
14333           some kernels would not complain about the tape block being larger
14334           than the buffer.
14335         * changer-src/chg-mtx.sh.in: Ditto.
14336
14337 2001-06-21 John R. Jackson <jrj@purdue.edu>
14338
14339         * server-src/planner.c: If the compression rate is very small (such
14340           as zero after some types of errors) and FORCE_FULL is set, a path
14341           is taken that (among other bad things) generates a schedule that
14342           driver cannot read (syntax errors).
14343         * server-src/conffile.c: Do not allow negative comprate values.
14344
14345 2001-06-19 John R. Jackson <jrj@purdue.edu>
14346
14347         * server-src/holding.c: Use fullread() instead of read() to read the
14348           holding disk file.
14349
14350 2001-06-19 John R. Jackson <jrj@purdue.edu>
14351
14352         * server-src/amtape.c: Document "slot advance" in the help output.
14353
14354 2001-06-19 John R. Jackson <jrj@purdue.edu>
14355
14356         * server-src/amindexd.c: Minor gethostbyaddr() argument change to be
14357           consistent with other Amanda usage.
14358
14359 2001-06-19 John R. Jackson <jrj@purdue.edu>
14360
14361         * server-src/amverify.sh.in: Better cross platform tar detection.
14362
14363 2001-06-19 John R. Jackson <jrj@purdue.edu>
14364
14365         * server-src/amverify.sh.in: More of the vrestore vs. 'b' flag change.
14366
14367 2001-06-19 John R. Jackson <jrj@purdue.edu>
14368
14369         * recover-src/amrecover.c: Add more debugging to guess_disk()
14370           function to better track how the disk is determined from the
14371           current working directory.  Report current working directory in
14372           error message.  Change "Trying" to "Trying disk" to distinguish
14373           this from host attempts.
14374         * recover-src/set_commands.c: Remove redundant amfree() call.  Remove
14375           redundant "OISD /" exchange.  Change "Trying" to "Trying host" to
14376           distinguish this from disk attempts.
14377
14378 2001-06-19 Thomas Hepper <th@ant.han.de>
14379         * changer-src/chg-scsi.c: Made clean_slot a global var. Removed
14380         the label db update stuff from the COM_SLOT part (moved to unload
14381         in scsi-changer-driver.c)
14382         * changer-src/scsi-changer-driver.c: Do an unload if the tape is
14383         loaded in the Inventory function. Added an marker to avoid recursion
14384         in Inventroy function. Added label db check in unload function and
14385         call Inventroy if it indicates an out of sync db
14386         
14387 2001-06-18 John R. Jackson <jrj@purdue.edu>
14388
14389         * recover-src/extract_list.c: Do not pass a 'b' (blocking) factor
14390           flag to vrestore.  Some versions do not like it.
14391
14392 2001-06-18 John R. Jackson <jrj@purdue.edu>
14393
14394         * common-src/dgram.c: Use a sin_addr arg to inet_ntoa() like all the
14395           other Amanda code.
14396         * common-src/stream.c: Ditto.
14397
14398 2001-06-18 John R. Jackson <jrj@purdue.edu>
14399
14400         * changer-src/chg-manual.sh.in: Add yet another online regex.  Found
14401           by George Herson <gherson@snet.net>.
14402
14403 2001-06-12 Thomas Hepper <th@ant.han.de>
14404         * changer-src/scsi-changer-driver.c (Inventory): Call Tape_Ready and let this function
14405         decide how to get the tape drive status.
14406         * changer-src/scsi-changer-driver.c (Tape_Ready): Now this function looks how to get
14407         the tape drive status.
14408         * changer-src/scsi-linux.c: changed some dbprintf to DebugPrint
14409         
14410 2001-06-10 Thomas Hepper <th@ant.han.de>
14411         * changer-src/chg-scsi.c: If get_current_slot gets an error from the fscanf function
14412         return also an error (-1) to the calling fucntion. (Fixes an error if the slot file
14413         is created with an touch)
14414         * changer-src/scsi-changer-driver.c: Fixed some NULL pointer errors in PrintConf
14415         Fixed an error in the unload function if the destination slot for the unload is not empty.
14416         (cut and paste error !!)
14417         
14418 2001-06-07 Thomas Hepper <th@ant.han.de>
14419         * changer-src/scsi-changer-driver.c: Change the type of TapeStatus from void to int.
14420         In PrintConf changed the loop variable for scan of pDev from 3 to CHG_MAXDEV.
14421         In PrintConf check if pDev[count].inquiry is a NULL pointer, and if yes skip.
14422         * changer-src/scsi-irix.c: Changed a lot, now it should work.
14423         * client-src/sendbackup-dump.c: Removed a { in the vxfsdump part. 
14424         * tape-src/output-tape.c: Fixed the tape status checks, the structure elelemt
14425         is called buf.mt_dposn not buf.mt.dposn.
14426         
14427 2001-06-04 Thomas Hepper <th@ant.han.de>
14428         * changer-src/scsi-changer-driver.c: Renamed Tape_Eject to Tape_Ioctl
14429         incl. change of passwd parameter.
14430
14431 2001-06-04 Thomas Hepper <th@ant.han.de>
14432         * changer-src/chg-scsi.c: include dmalloc.h for debugging of mem problems
14433         * changer-src/scsi-cam.c: Replaced Tape_Eject with a more generic 
14434         function to send different ioctls (Tape_Ioctl)
14435         * changer-src/scsi-bsd.c: see above
14436         * changer-src/scsi-hpux_new.c: see above
14437         * changer-src/scsi-irix.c: If the device can be opened in SCSI_OpenDevice
14438         set pDev[ip].avail to 1.
14439         * changer-src/scsi-linux.c: include dmalloc.h for debugging of mem problems.
14440         Fixed an invalid free in SCSI_OpenDevice. Replaced Tape_Eject with Tape_Ioctl.  
14441         * changer-src/scsi-changer-driver.c: include dmalloc.h for debugging of mem problems
14442         Eject the tape in the inventory function before the scan to get all
14443         barcode labels. Check in GenericEject if the device is able to receive
14444         SCSI commands, if not use the ioctl interface to eject the tape.
14445         Same for the GenericRewind function.
14446         Added the LogSense in the GenericEject function.
14447         * changer-src/scsi-defs.h: Added define for Tape_Ioctl commands, IOCTL_EJECT.
14448         
14449 2001-06-01 John R. Jackson <jrj@purdue.edu>
14450
14451         * server-src/amindexd.c (build_disk_table): Make sure a holding disk
14452           image is used rather than a copy also on tape, if both exist.
14453
14454 2001-06-01 Thomas Hepper <th@ant.han.de>
14455         * changer-src/scsi-changer-driver.c: Added an range check in the load
14456         function and abort if the requested slot is out of range.
14457         Fixed in incorrect pointer in the eject function if the ioctl
14458         interface is used
14459
14460 2001-05-29 John R. Jackson <jrj@purdue.edu>
14461
14462         * server-src/reporter.c: Fix PostScript output to only show what went
14463           on the tape, not what the total amount dumped.  Compliments of
14464           Joshua Baker-LePain <jlb17@duke.edu>.
14465
14466 2001-05-28 Thomas Hepper <th@ant.han.de>
14467         * changer-scsi/chg-scsi.c: Made the array for pDev configurable, #define CHG_MAXDEV
14468         * changer-scsi/scsi-defs.h: Added the define for CHG_MAXDEV
14469         * changer-src/scsi-cam.c: Set the flag pDev[x].avail to 1 if the device can be openend.
14470         Added debug message if the open fails. Implemented the function Tape_Status (not tested)
14471         * changer-src/scsi-changer-driver.c: Added the function DLT448ElementStatus, was lost
14472         during merge from 2.4.2. The difference to GenericElementStatus is that the DecodeModeSense
14473         needs an offset of 12, not 0 as in GenericElementStatus.
14474         Added an unload/GenericResetStatus in the Inventory function if an bar code reader is 
14475         available. This is to get the label from the loaded tape.
14476         The function TapeStatus sets now the status regardless of the status of the tape.
14477         If the device is capable for sending SCSI commands use the SCSI interface to get
14478         the status of the tape.
14479         * docs/TAPE.CHANGERS: Added some notes about the debuglevel keyword and a short
14480         description on how to use the sgen interface on solaris 2.8
14481         
14482 2001-05-18 John R. Jackson <jrj@purdue.edu>
14483
14484         * client-src/patch-system.sh.in: Missed a reference to kamanda in the
14485           last patch.  Compliments of Tom Schutter <t.schutter@att.net>.
14486
14487 2001-05-16 John R. Jackson <jrj@purdue.edu>
14488
14489         * client-src/patch-system.sh.in: Go ahead and update /etc/services
14490           on a client even if the services themselves are not turned on to
14491           inetd.  Compliments of Tom Schutter <t.schutter@att.net>.  Add
14492           the TCP port for amandad for future use.
14493
14494 2001-05-14 John R. Jackson <jrj@purdue.edu>
14495
14496         * client-src/amandad.c: Fix hang when the incoming packet size is
14497           larger than the pipe buffer.  Also, report back when too much
14498           data for a packet is returned by the service (this is not properly
14499           diagnosed back to, e.g., amcheck, but that's for another day).
14500         * common-src/bsd-security.c: Fix minor comment error.
14501
14502 2001-05-11 John R. Jackson <jrj@purdue.edu>
14503
14504         * common-src/util.c (bind_portrange): Log a debug message stating
14505           explicitly that all ports in the requested range were busy, or
14506           that a specific port failed bind() for an unexpected reason.
14507
14508 2001-05-07 John R. Jackson <jrj@purdue.edu>
14509
14510         * client-src/sendbackup-dump.c: Do not use full path to sed.  Found by
14511           Roland E. Lipovits (rel@lipo.at0.net).
14512
14513 2001-05-07 Thomas Hepper <th@ant.han.de>
14514         * changer-src/chg-scsi.c : Fixed NULL pointer in debug print of the config.
14515         * changer-src/scsi-canger-driver.c : Try to get and set the status of the tape drive in
14516         GenericElementStatus if there is an error condition. Move from tape to tape to get the
14517         tape loaded if it is only ejected.
14518         * changer-src/scsi-defs.h : New define for the Tape_Status fucntion, TAPE_NOT_LOADED
14519         * changer-src/scsi-linux.c : Added return type for tape not loaded
14520         * changer-src/scsi-solaris.c : In SCSI_ExecuteCommand force the direction to write if the
14521         databuffersize is 0, if the direction is input the ioctl returns with errno 22, invalid argument.
14522         The function Tape_Status will now return either tape loaded or not.
14523         * example/chg-scsi-solaris.conf.in : Added pointer to doc/TAPE.CHANGERS on how to configure
14524         the sgen driver.
14525         * doc/TAPE.CHANGERS : Updated the description of the chg-scsi.conf options, short description on
14526         how to confgure the sgen driver on solaris 2.8
14527         
14528 2001-05-04 John R. Jackson <jrj@purdue.edu>
14529
14530         * config/depcomp: Fix problem with argument*  processing and update to
14531           latest version.
14532
14533 2001-05-01 Thomas Hepper <th@ant.han.de>
14534         * changer-src/chg-scsi.c : Added patch for the slot advance command from John R. Jackson
14535         * changer-src/scsi-changer-driver.c : Renamed EXB120BarCode to EXB_BarCode. The currently
14536         known Exabyte libs handles the reader in the same way.
14537         
14538 2001-04-28 Thomas Hepper <th@ant.han.de>
14539         * changer-scsi/chg-scsi.c : Added missing break in MapBarCode
14540         Changed the way an tape label is read, use tape_open to open the
14541         device, not own open.
14542         * changer-src/scsi-changer-driver.c : Changed the way an tape label 
14543         is read, use tape_open to open the device, not own open.
14544         * changer-src/scsi-linux.c : Fixed error on reopen of non SCSI devices
14545         (/dev/nst0 for example)
14546         
14547 2001-04-26 Thomas Hepper <th@ant.han.de>
14548
14549         * changer-src/scsi-aix.c : Added more different ret values depending on the SCSI
14550         error condition. 
14551         * changer-src/scsi-changer-driver.c: Split GenericElementStatus in GetElementStatus which
14552         reads the element Status, and GenericElementStatus which handles the errors.
14553         Removed DLT448ElementStatus. Rework the handling of some SCSI error conditions...
14554         * changer-src/scsi-defs.h: Added more defs for the debug SECTION types.
14555         * changer-src/scsi-linux.c: Fixed an bug in the non SCSI device handling in SCSI_OpenDevice
14556         * changer-src/sense.c: Added EXB-210 defs, added defs for READ_ELEMENT_STATUS error conditions.
14557         
14558 2001-04-25 John R. Jackson <jrj@purdue.edu>
14559
14560         * changer-src/chg-rth.pl.in: Add exec_prefix back since it is usually
14561           used to define sbindir.  Sigh.  Include X=X assignments to get rid
14562           of the Perl warnings.
14563         * server-src/amoverview.pl.in: Ditto.
14564
14565 2001-04-24 John R. Jackson <jrj@purdue.edu>
14566
14567         * changer-src/chg-chio.pl.in: Remove unused exec_prefix to get rid of
14568           warning message.  Patch from Nick Hibma <n_hibma@qubesoft.com>.
14569
14570 2001-04-23 John R. Jackson <jrj@purdue.edu>
14571
14572         * client-src/selfcheck.c: Allow Samba shares with no password.
14573         * client-src/sendbackup-gnutar.c: Ditto.
14574         * client-src/sendsize.c: Ditto.
14575
14576 2001-04-15 Thomas Hepper <th@ant.han.de>
14577         * Makefile.am: Added contrib/gsc files to EXTRA_DIST
14578         
14579 2001-04-15 Thomas Hepper <th@ant.han.de>
14580         * changer-src/scsi-aix.c: Rework of the SCSI interface, support
14581         to talk to an device handled by the gsc driver (not tested yet)
14582         * changer-src/scsi-bsd.c (SCSI_ExecuteCommand): Fix error in
14583         device handling, Changed the return codes in case of an error
14584         * changer-src/scsi-cam.c (SCSI_ExecuteCommand): Fix error in 
14585         device handling, Changed the return codes in case of an error
14586         * changer-src/scsi-changer-driver.c: Changed the way 
14587         SCSI_ExecuteCommand passes error conditions back, error handling
14588         should now be done by the calling function, SCSI_Run for example.
14589         * changer-src/scsi-changer-driver.c (CheckMove): If the 
14590         DeviceCapabilitiesPage is not set do not return an error, print
14591         an warning to the debug file.
14592         * changer-src/scsi-defs.h: New define for AIX_USE_GSC
14593         New defines for the return codes of SCSI_ExecuteCommand
14594         * changer-src/scsi-hpux_new.c: Fix error in device handling.
14595         Changed the return codes in case of an error
14596         * changer-src/scsi-irix.c: Fix error in device handling.
14597         Changed the return codes in case of an error
14598         * changer-src/scsi-solaris.c: Fix error in device handling.
14599         Changed the return codes in case of an error
14600         
14601 2001-04-15 Thomas Hepper <th@ant.han.de>
14602         *contrib/gsc: Generic SCSI interface for AIX, used by chg-scsi
14603
14604 2001-04-13 John R. Jackson <jrj@purdue.edu>
14605
14606         * example/amanda.conf.in: Fix multiple holding disks comment.
14607
14608 2001-04-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14609
14610         * client-src/getfsent.h (search_fstab): New prototype.
14611         * client-src/getfsent.c (search_fstab): New arg check_dev, skip
14612         entry if check_dev==1 and device stats failed.
14613         * client-src/getfsent.c (open_fstab for linux): Open MOUNTED.
14614         * client-src/getfsent.c (close_fstab for linux): close MOUNTED.
14615         * client-src/getfsent.c (get_fstab_nextentry for linux): parse MOUNTED.
14616         * client-src/getfsent.c (amname_to_devname, amname_to_dirname, 
14617         amname_to_fstype): Call search_fstab sequentialy with 1 and 0 
14618         for check_dev.
14619
14620 2001-04-10 John R. Jackson <jrj@purdue.edu>
14621
14622         * docs/INSTALL: Update location to GNUPLOT per Lars Hecking
14623           <lhecking@nmrc.ie>.
14624
14625 2001-04-09 Thomas Hepper <th@ant.han.de>
14626         * changer-src/scsi-changer-driver.c: More rework on the debug output.
14627         changed definition SENSE_NO_TAPE to SENSE_TAPE_NOT_ONLINE
14628         In function GenericRewind do an check before the rewind to see
14629         if the tape is loaded.
14630         * changer-src/scsi-defs.h: New #define for the debug, SECTION_TAPE
14631         * changer-src/sense.c: New definition for SENSE_RETRY, ASC=4, ASCQ=1
14632         
14633 2001-04-08  Alexandre Oliva  <aoliva@redhat.com>
14634
14635         * client-src/getfsent.c (search_fstab): Don't skip entry just
14636         because device stats failed.
14637
14638 2001-04-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14639
14640         * config/config.guess: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
14641         * config/config.sub: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
14642         * config/mkinstalldirs: Upgrade from automake CVS.
14643
14644 2001-04-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14645
14646         * config/depcomp: new file for automake.
14647
14648 2001-04-03 John R. Jackson <jrj@purdue.edu>
14649
14650         * Makefile.am: Remove *.test.c from the distribution.
14651
14652 2001-04-02 John R. Jackson <jrj@purdue.edu>
14653
14654         * NEWS: Update some of the 2.4.2 items.
14655
14656 2001-03-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14657
14658         * client-src/getfsent.c (search_fstab): If the device doesn't 
14659         exist, it will take the entry from /etc/mtab.
14660
14661 2001-03-26 John R. Jackson <jrj@purdue.edu>
14662
14663         * server-src/amtape.c: Do not rewind for slot "advance".  Do not report
14664           device name (which is bogus) for slot "advance".
14665
14666 2001-03-23 John R. Jackson <jrj@purdue.edu>
14667
14668         * example/amanda.conf.in: Add warning that the sample amanda.conf
14669           will not work as is and must be edited to match the installation.
14670
14671 2001-03-21 John R. Jackson <jrj@purdue.edu>
14672
14673         * recover-src/extract_list.c (extract_files_child): Fix problem that
14674           caused xfsrestore arg list to not be NULL terminated.
14675
14676 2001-03-19 John R. Jackson <jrj@purdue.edu>
14677
14678         * configure.in: Add --with-debug-days (default is 4) and remove
14679           --with-pid-debug-files.
14680         * common-src/Makefile.am: Clean up test program dependencies.
14681         * common-src/debug.c: Create timestamped debug file names and remove
14682           files older (based on file name) than --with-debug-days.  Rename old
14683           style names to new style (based on modification time) the first time
14684           they are seen.
14685         * common-src/file.c: Use construct_datestamp() instead of private code.
14686         * common-src/genversion.c: Display AMANDA_DEBUG_DAYS and remove
14687           DEBUG_FILE_WITH_PID.
14688         * common-src/util.c: Move construct_datestamp to here and add new
14689           function construct_timestamp.  Change time used to build string to
14690           be an optional parameter instead of always getting it in the routine.
14691         * common-src/util.h: Add prototypes.
14692         * server-src/amcleanupdisk.c: Change construct_datestamp call to pass
14693           indication that it should get the current time.
14694         * server-src/amflush.c: Ditto.
14695         * server-src/chunker.c: Ditto.
14696         * server-src/driver.c: Ditto.
14697         * server-src/dumper.c: Ditto.
14698         * server-src/planner.c: Ditto.
14699         * server-src/server_util.c: Remove construct_datestamp (now in util.c).
14700         * server-src/server_util.h: Remove prototype.
14701
14702 2001-03-15 John R. Jackson <jrj@purdue.edu>
14703
14704         * server-src/planner.c (analyze_estimate): Do not do an incremental
14705           if FORCE_NO_BUMP is set and the last dump was a level 0.
14706
14707 2001-03-14 John R. Jackson <jrj@purdue.edu>
14708
14709         * server-src/amcheck.c: Change message from NOTE to WARNING when
14710           the hold file exists.
14711         * man/amcheck.8.in: Ditto.
14712
14713 2001-03-14 John R. Jackson <jrj@purdue.edu>
14714
14715         * client-src/selfcheck.c: Send smbclient via pipe instead of command
14716           line arg.  Various minor cleanups.  Use pipespawn instead of system()
14717           to clean up quoting problems and be consistent with sendsize and
14718           sendbackup.
14719         * client-src/sendbackup-dump.c: Send smbclient via pipe instead of
14720           line arg.  Various minor cleanups.
14721         * client-src/sendbackup-gnutar.c: Send smbclient via pipe instead of
14722           line arg.  Various minor cleanups.  Clean up listed incremental file
14723           handling.
14724         * client-src/sendbackup.c: Various minor cleanups.
14725         * client-src/sendsize.c: Send smbclient via pipe instead of command
14726           line arg.  Various minor cleanups.  Clean up listed incremental file
14727           handling.
14728         * docs/SAMBA: Update and cleanup.
14729         * common-src/pipespawn.c: Import from 2.4.2 branch.
14730         * common-src/pipespawn.h: Import from 2.4.2 branch.
14731         * common-src/Makefile.am: Add pipespawn.[ch] references.
14732
14733 2001-03-13 John R. Jackson <jrj@purdue.edu>
14734
14735         * recover-src/extract_list.c (extract_files_child): Fix xfsrestore
14736           argument list processing.
14737
14738 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14739
14740         * server-src/dumper.c (read_datafd): set errstr and return on
14741         databuf_write error.
14742
14743 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14744
14745         * server-src/dumper.c (read_indexfd): Ignore error while writing
14746         to the index file. Log an L_INFO message.
14747
14748 2001-03-09 John R. Jackson <jrj@purdue.edu>
14749
14750         * server-src/taper.c: Initialize tape_fd to -1 and test in a couple
14751           more places.  Run normal protocol after a tape startup error (e.g.
14752           "cannot overwrite") instead of just exiting to keep driver from
14753           reporting a broken pipe.
14754
14755 2001-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14756         Reported by Eric Schnoebelen <eric@cirr.com>
14757
14758         * server-src/changer.c (changer_command): Fix fd leak.
14759
14760 2001-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14761
14762         * server-src/server_util.c (cmdstr, getcmd, putresult): New.
14763         * server-src/server_util.h (cmdstr, getcmd, putresult): Prototype.
14764         * server-src/server_util.h (cmd_t): New.
14765         * server-src/driverio.c (cmdstr): Remove.
14766         * server-src/driverio.c: Use new cmdstr and cmd_t.
14767         * server-src/driverio.h: (tok_t): Remove.
14768         * server-src/amflush.c: Use new cmd_t.
14769         * server-src/driver.c: Use new cmd_t.
14770         * server-src/chunker.c (cmd_t, getcmd, putresult): Remove.
14771         * server-src/chunker.c: Use new cmd_t, getcmd and putresult.
14772         * server-src/dumper.c (cmd_t, getcmd, putresult): Remove.
14773         * server-src/dumper.c: Use new cmd_t, getcmd and putresult.
14774         * server-src/taper.c (cmd_t, getcmd, putresult): Remove.
14775         * server-src/taper.c: Use new cmd_t, getcmd and putresult.
14776
14777 2001-03-05 John R. Jackson <jrj@purdue.edu>
14778
14779         * common-src/util.c: The fullread() and fullwrite() functions should
14780           call read() and write(), not tapefd_read() and tapefd_write().
14781
14782 2001-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14783
14784         * server-src/planner.c (setup_estimate): Don't re-ask for level 0
14785         if last_level is 0 and FORCE_NO_BUMP is set.
14786
14787 2001-02-27 John R. Jackson <jrj@purdue.edu>
14788
14789         * common-src/stream.h: Move DATABUF_SIZE to stream.h.
14790         * client-src/sendbackup.c: Do not ask for a big receive buffer.
14791         * server-src/dumper.c: Ask for a bigger send buffer.  Minor typos.
14792         * server-src/taper.c: Ask for a bigger receive buffer.
14793         * recover-src/amrecover.c: Use stream_client instead of specific
14794           (and incorrect) bind() code.
14795         * recover-src/extract_list.c: Ditto.
14796
14797 2001-02-27 John R. Jackson <jrj@purdue.edu>
14798
14799         * common-src/dgram.c: Add lots more error logging to help track down
14800           problems.
14801
14802 2001-02-27 John R. Jackson <jrj@purdue.edu>
14803
14804         * common-src/stream.c: Add lots more error logging to help track down
14805           problems.
14806
14807 2001-02-27 John R. Jackson <jrj@purdue.edu>
14808
14809         * server-src/amtape.c: Rewind after loading a slot either by slot
14810           or by label.
14811
14812 2001-02-27 John R. Jackson <jrj@purdue.edu>
14813
14814         * configure.in: Add some commentary about why pushdef/popdef are
14815           needed around AC_CHECK_TYPE.
14816
14817 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14818         Patch by Alex Pilosov <alex@pilosoft.com>
14819
14820         * changer-src/scsi-cam.c: Clean up some SCSI CAM code,
14821         and permit use of both bus:target:lun(btl) and a full
14822         device name (/dev/ch0) as changerdev.
14823         
14824 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14825         Patch by Joe Rhett <jrhett@isite.net>
14826         and Jason Hollinden <jhollind@sammg.com>
14827
14828         * changer-src/chg-zd-mtx.sh.in:  Added barcode reader support,
14829         >9 tape slot support, variable for 'offline' or 'ONLINE'
14830         return value of tape device, and multi-config support.  Moved
14831         all user settable variables to 'changerfile'.conf in the
14832         amanda config directory.  Added commented out example of .conf
14833         file into script.
14834
14835 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14836
14837         * server-src/amindexd.c (uncompress_file): remove uncompressed
14838         index file if the command failed.
14839
14840 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14841
14842         * restore-src/amrestore.c (main): init r to 0.
14843
14844 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14845
14846         * changer-src/scsi-defs.h (PrintConf): Add prototype.
14847         * changer-src/scsi-changer-driver.c (SCSI_Run): Add prototype.
14848         * changer-src/scsi-linux.c (ScanBus): remove btl variable, return 0.
14849
14850 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14851
14852         * man/Makefile.am (EXTRA_DIST): add amdd.8 and ammt.8.
14853
14854 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14855
14856         * server-src/planner.c (setup_estimate): ask for level 0 for 
14857         a new disk if force-bump is set, 
14858         log force-bump and force-nobump command.
14859
14860 2001-02-17 Thomas Hepper <th@ant.han.de>
14861
14862         * changer-scsi/chg-scsi.c: New Option -genconf to create an example config file
14863          based on the information found on the system, works for Linux and BSD with cam
14864          support. New config option debuglevel
14865         * changer-src/scsi-changer-deriver.c: Reworked the debug output, it is now possible
14866          to control the amount of information by the config option debuglevel in the config
14867          file (docs follow), not complete yet.
14868         * changer-src/scsi-changer-driver.c: New function PrintConf to create an example
14869           config file.
14870           New function DebugPrint to print debug information based on the variable debuglevel.
14871           Replaced a lot of dbprintf with new Function DebugPrint
14872         * changer-src/scsi-aix.c: changed parameter for ScanBus
14873         * changer-src/scsi-irix.c: changed parameter for ScanBus
14874         * changer-src/scsi-solaris.c: changed parameter for ScanBus
14875         * changer-src/scsi-bsd.c: changed parameter for ScanBus
14876         * changer-src/scsi-cam.c: Implemented function ScanBus
14877         * changer-src/scsi-linux.c: Implemented function ScanBus
14878         
14879 2001-02-09 John R. Jackson <jrj@purdue.edu>
14880
14881         * server-src/diskfile.c: Fix core dump in test program.
14882
14883 2001-02-09 John R. Jackson <jrj@purdue.edu>
14884
14885         * tape-src/output-file.c: Use a "data" subdirectory of the main
14886           file driver device directory to hold the tape "files".  This
14887           allows the status file to be moved to the main directory.
14888         * man/amanda.8.in: Document these changes.
14889
14890 2001-02-08 Thomas Hepper <th@ant.han.de>
14891
14892         * changer-src/scsi-aix.c: Added dummy ScanBus function
14893         * changer-src/scsi-bsd.c: Added dummy ScanBus function
14894         * changer-src/scsi-cam.c: Added dummy ScanBus function
14895         * changer-src/scsi-hpux_new.c: Added dummy ScanBus function
14896         * changer-src/scsi-irix.c: Added dummy ScanBus function
14897         * changer-src/scsi-defs.h: Added prototype for ScanBus function
14898
14899 2001-02-04 John R. Jackson <jrj@purdue.edu>
14900
14901         * man/amanda.8.in: Fix mailto to space separated, not comma.
14902
14903 2001-02-03 John R. Jackson <jrj@purdue.edu>
14904
14905         * .cvsignore: Add entries to keep CVS quiet.
14906         * */.cvsignore: Ditto.
14907
14908 2001-02-03 John R. Jackson <jrj@purdue.edu>
14909
14910         * client-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
14911         * common-src/Makefile.am: Add more sources as needed to the test
14912           programs so they would compile.
14913         * server-src/Makefile.am: Create TEST_PROGS make variable ala the
14914           other Makefile.am files.
14915         * tape-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
14916
14917 2001-02-03 John R. Jackson <jrj@purdue.edu>
14918
14919         * server-src/diskfile.c: Fix test program compilation error and bug
14920           when just a config name was given on the command line.
14921
14922 2001-02-02 John R. Jackson <jrj@purdue.edu>
14923
14924         * server-src/reporter.c: Fix problem with enum being unsigned on
14925           some systems.
14926
14927 2001-01-29 John R. Jackson <jrj@purdue.edu>
14928
14929         * tape-src/tapeio.c (tape_fsf): Go back to using snprintf as this
14930           is now "the way".
14931
14932 2001-01-29 John R. Jackson <jrj@purdue.edu>
14933
14934         * tape-src/output-tape.c (tape_tapefd_status): Convert flag values
14935           to booleans (compliments of Marc W. Mengel <mengel@fnal.gov>).
14936         * tape-src/tapeio.c (tape_fsf): Use ap_snprintf instead of snprintf
14937           (also compliments of Marc).
14938
14939 2001-01-26 John R. Jackson <jrj@purdue.edu>
14940
14941         * changer-src/Makefile.am: Double up the references to libamanda to
14942           handle systems that put regex in strange places.
14943         * client-src/Makefile.am: Ditto.
14944         * recover-src/Makefile.am: Ditto.
14945         * restore-src/Makefile.am: Ditto.
14946         * server-src/Makefile.am: Ditto.
14947         * tape-src/Makefile.am: Ditto.
14948
14949 2001-01-23 John R. Jackson <jrj@purdue.edu>
14950
14951         * configure.in: Add tapeio switch from Marc Mengel <mengel@fnal.gov>,
14952           enhance and add "null" and "file" output drivers.  Change all
14953           tape changers (except chg-scsi) to use amdd and ammt.  Change all
14954           tape changers (except chg-scsi) to log and use a consistent
14955           error reporting scheme.  Fix various bugs along the way.  Add new
14956           chg-multi config option, posteject, which is an optional script
14957           to call after each "tape" is ejected (e.g. to use to start a
14958           CDROM writer).  Remove special code for tapedev of /dev/null
14959           (now handled by the "null" output driver).  Changed the taper
14960           protocol to pass the host/disk/level so the write can send that
14961           along to the output driver.  Fairly major rework of amrestore
14962           to clean up tape/non-tape and other oddities.
14963         * changer-src/chg-chio.pl.in: Ditto.
14964         * changer-src/chg-chs.sh.in: Ditto.
14965         * changer-src/chg-manual.sh.in: Ditto.
14966         * changer-src/chg-mtx.sh.in: Ditto.
14967         * changer-src/chg-multi.sh.in: Ditto.
14968         * changer-src/chg-rth.pl.in: Ditto.
14969         * changer-src/chg-zd-mtx.sh.in: Ditto.
14970         * client-src/sendbackup.c: Ditto.
14971         * common-src/alloc.c: Ditto.
14972         * common-src/amanda.h: Ditto.
14973         * docs/INTERNALS: Ditto.
14974         * man/Makefile.am: Ditto.
14975         * man/amanda.8.in: Ditto.
14976         * man/amdd.8: Ditto.
14977         * man/ammt.8: Ditto.
14978         * restore-src/amrestore.c: Ditto.
14979         * server-src/amcheck.c: Ditto.
14980         * server-src/amlabel.c: Ditto.
14981         * server-src/amtape.c: Ditto.
14982         * server-src/amverify.sh.in: Ditto.
14983         * server-src/conffile.c: Ditto.
14984         * server-src/conffile.h: Ditto.
14985         * server-src/taper.c: Ditto.
14986         * tape-src/Makefile.am: Ditto.
14987         * tape-src/amdd.c: Ditto.
14988         * tape-src/ammt.c: Ditto.
14989         * tape-src/output-file.c: Ditto.
14990         * tape-src/output-file.h: Ditto.
14991         * tape-src/output-null.c: Ditto.
14992         * tape-src/output-null.h: Ditto.
14993         * tape-src/output-rait.c: Ditto.
14994         * tape-src/output-rait.h: Ditto.
14995         * tape-src/output-tape.c: Ditto.
14996         * tape-src/output-tape.h: Ditto.
14997         * tape-src/tapeio.c: Ditto.
14998         * tape-src/tapeio.h: Ditto.
14999         * tape-src/tests/amtapeio.test.000: Ditto.
15000         * tape-src/tests/amtapeio.test.001: Ditto.
15001         * tape-src/tests/amtapeio.test.002: Ditto.
15002         * tape-src/tests/amtapeio.test.003: Ditto.
15003         * tape-src/tests/amtapeio.test.004: Ditto.
15004         * tape-src/tests/amtapeio.test.005: Ditto.
15005         * tape-src/tests/amtapeio.test.006: Ditto.
15006         * tape-src/tests/amtapeio.test.007: Ditto.
15007         * tape-src/tests/amtapeio.test.008: Ditto.
15008         * tape-src/tests/amtapeio.test.009: Ditto.
15009         * tape-src/tests/amtapeio.test.010: Ditto.
15010         * tape-src/tests/amtapeio.test.011: Ditto.
15011         * tape-src/tests/amtapeio.test.012: Ditto.
15012         * tape-src/tests/amtapeio.test.013: Ditto.
15013         * tape-src/tests/amtapeio.test.014: Ditto.
15014         * tape-src/tests/amtapeio.test.015: Ditto.
15015         * tape-src/tests/amtapeio.test.016: Ditto.
15016         * tape-src/tests/amtapeio.test.017: Ditto.
15017         * tape-src/tests/amtapeio.test.018: Ditto.
15018         * tape-src/tests/cleartape: Ditto.
15019         * tape-src/tests/newtest: Ditto.
15020         * tape-src/tests/rerun: Ditto.
15021         * tape-src/tests/runtest: Ditto.
15022         * tape-src/tests/testdist: Ditto.
15023         * tape-src/tests/torture: Ditto.
15024
15025 2001-01-24 John R. Jackson <jrj@purdue.edu>
15026
15027         * client-src/amandad.c: Improve packet logging.
15028
15029 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15030
15031         * server-src/driver.c (start_some_dumps): typo.
15032
15033 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15034
15035         * server-src/driverio.h (sched_t): new field no_space.
15036         * server-src/driver.c (start_some_dumps): don't start a disk if
15037           no_space is set.
15038         * server-src/driver.c (continue_dumps): set no_space if it's the
15039           only active dumpers, case c.
15040         * server-src/driver.c (read_schedule): set no_space to 0.
15041
15042 2001-01-23 John R. Jackson <jrj@purdue.edu>
15043
15044         * configure.in: Test for setmntent.
15045         * client-src/getfsent.c: Add some support for Redhat 7 /etc/fstab
15046           changes that indirectly reference the device for a file system.
15047
15048 2001-01-22  Marc W. Mengel <mengel@fnal.gov>
15049
15050         * recover-src/extract_list.c: Added -U to tar recover options
15051         to reduce errors recovering shared libs and/or binaries on
15052         active filesystems.
15053
15054 2001-01-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15055
15056         * docs/INSTALL: Notes about tar-1.13.19
15057
15058 2001-01-17  Thomas Hepper <th@ant.han.de>
15059
15060         * changer-src/chg-scsi.c: Moved definitions for config_t and
15061         changer_t into scsi-defs.h
15062         * changer-src/chg-scsi.c: New config option havebarcode
15063         * changer-src/scsi-changer-driver.c: Changed GenericBarCode do handle
15064         the option havebarcode. Replaced NoBarCode with GenericBarCode.
15065         Fixed compile warnings from -Wshadow
15066         * changer-src/scsi-linux.c: New function ScanBus to scan the SCSI Bus.
15067         not used yet.
15068         * changer-src/scsi-solaris.c: Changed the return value to
15069         Command.uscsi_status in SCSI_ExecuteCommand if the return from the
15070         ioctl is not 0;
15071         
15072 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15073
15074         * man/amanda.8.in: New section "HOST & DISK EXPRESSION" and 
15075           "DATESTAMP EXPRESSION".
15076         * man/amadmin.8.in: Document new usage.
15077         * man/amflush.8.in: Document new usage.
15078         * man/amcheck.8.in: Document new usage.
15079         * man/amdump.8.in: Document new usage.
15080         * man/amrestore.8: Document new usage.
15081         * server-src/amadmin.c: Fix usage.
15082         * server-src/amflush.c: Fix usage.
15083         * server-src/amcheck.c: Fix usage.
15084
15085 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15086
15087         * server-src/diskfile.c (match_disklist): Return if no args.
15088
15089 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15090
15091         * server-src/diskfile.c (match_disklist): Fix.
15092
15093 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15094
15095         * server-src/diskfile.c (match_disklist): Updated for
15096           [host [disk]*]* syntax.
15097
15098 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15099
15100         * common-src/match.c (match_datestamp): New function.
15101         * common-src/amanda.h (match_datestamp): Prototype.
15102         * server-src/amflush.c: Use match_datestamp.
15103         * restore-src/amrestore.c: Use match_datestamp.
15104
15105 2001-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15106
15107         * common-src/match.c (match_word): Support for leading ^ and
15108           trailing $.
15109
15110 2001-01-04 John R. Jackson <jrj@purdue.edu>
15111
15112         * common-src/error.c (error): If the debug file pointer is set, log
15113           any fatal error message to it and close the file so it has a good
15114           trace of what happened and when.
15115
15116 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15117
15118         * taper-src/am-dd.c: include "tapeio.h", fix debug warning.
15119         * taper-src/am-mt.c: include "tapeio.h", fix debug warning.
15120         * taper-src/output-rait.c: include "tapeio.h", new define for
15121            rait_debug
15122         * taper-src/tapeio.c(many): Remove unused tfd variable.
15123         * taper-src/tapeio.h (tape_unload,tape_status): Prototype.
15124
15125 2001-01-04 John R. Jackson <jrj@purdue.edu>
15126
15127         * client-src/killpgrp.c: Calls to error() do not need a newline.
15128
15129 2001-01-04 John R. Jackson <jrj@purdue.edu>
15130
15131         * man/amanda.8.in: Try to make it clearer that dumpcycle and maxdumps
15132           changes in the main part of the config file must appear before any
15133           dumptype definitions, and also that inherited dumptypes must appear
15134           before their reference.
15135
15136 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15137
15138         * server-src/driver.c (continue_dumps): Don't reduce est_size if
15139           it is already larger than holding space allocated.
15140         * server-src/dumper.c: Remove all code for FILE_DUMP command.
15141         * server-src/chunker.c: Better handling of ENOSPC from
15142           write_tapeheader().
15143
15144 2001-01-04 John R. Jackson <jrj@purdue.edu>
15145
15146         * server-src/conffile.c (main): Fix conffile test program so it builds
15147           and works again.
15148
15149 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15150
15151         * changer-src/scsi-defs.h (ChangerCMD_T): replace array function
15152           pointer by enumerated pointers.
15153         * changer-src/scsi-changer-driver.c: Use new calling convention.
15154
15155 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15156
15157         * server-src/amstatus.pl.in: Better support for TRY-AGAIN and
15158           ABORT-FINISHED result.
15159
15160 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15161
15162         * server-src/amflush.c: Use getopt to parse argument.
15163         * server-src/amflush.c: New [-D date]* argument.
15164         * man/amflush.8.in: Document it.
15165
15166 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15167         Patch by Andreas F Mueller <afm@othello.ch>
15168
15169         * server-src/amadmin.c (force_no_bump_one): Fix message.
15170
15171 2001-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15172
15173         * tape-src/am-dd.c: include "amanda.h"
15174         * tape-src/am-mt.c: include "amanda.h"
15175         * tape-src/am-mt.c (main): res is int.
15176         * tape-src/output-rait.c: include "amanda.h", do not define stderr.
15177         * tape-src/tapeio.c (xxx_tapefd_read, plain_tapefd_read): second
15178           argument should be "char *"
15179         * tape-src/tapeio.c (xxx_tapefd_write, plain_tapefd_write): second
15180           argument should be "const char *"
15181
15182 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15183
15184         * server-src/find.c (find_match): Use todo bit.
15185         * server-src/find.c (find_dump): No arguments.
15186         * server-src/find.h (find_dump): Change prototype.
15187         * server-src/amadmin.c (find): New [host disk]* pair arguments.
15188         * server-src/amindexd.c: Change call to find_dump().
15189         * server-src/amtrmidx.c: Change call to find_dump().
15190
15191 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15192
15193         * configure.in: Don't check krb5 include if krb5 is not selected.
15194
15195 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15196
15197         * tape-src/Makefile.am (noinst_HEADERS): Add output-rait.h
15198
15199 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15200
15201         * server-src/amadmin.c (diskloop): typo.
15202
15203 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15204
15205         * server-src/amadmin.c (diskloop): New [host disk]* pair arguments.
15206         * server-src/amadmin.c (diskloop, reuse, noreuse): use get_pname()
15207         instead of argv[0].
15208
15209 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15210
15211         * server-src/amflush.c (main):log DISK after checking if logfile exist.
15212
15213 2000-12-30 John R. Jackson <jrj@purdue.edu>
15214
15215         * common-src/bsd-security.c: Improve the .rhosts/.amandahosts messages
15216           when things go wrong.  Add support for "bsdsecurity" test program
15217           in common-src.
15218         * common-src/Makefile.am: Ditto.
15219         * common-src/amanda.h: Ditto.
15220         * restore-src/amidxtaped.c: Ditto.
15221         * server-src/amindexd.c: Ditto.
15222
15223 2000-12-30 John R. Jackson <jrj@purdue.edu>
15224
15225         * ChangeLog: Bring Jean-Louis into the right month :-).
15226         * changer-src/scsi-changer-driver.c: Untested changes to at least
15227           get the code to compile on Solaris and to remove some warnings.
15228         * changer-src/scsi-defs.h: Ditto.
15229         * changer-src/scsi-solaris.c: Ditto.
15230
15231 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15232
15233         * server-src/diskfile.c (add_disk): New function.
15234         * server-src/diskfile.h (add_disk): Prototype.
15235         * server-src/logfile.h (logtype_e): add L_DISK.
15236         * server-src/logfile.c (logtype_str): add "DISK".
15237         * server-src/amflush.c (main): log DISK.
15238         * server-src/planner.c (main): log DISK.
15239         * server-src/reporter.c: use DISK if available.
15240
15241 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15242
15243         * server-src/amcheck.c: New [host disk]* pair arguments.
15244         * server-src/amflush.c: Ditto.
15245         * server-src/planner.c: Ditto.
15246         * server-src/amdump.sh.in: Ditto.
15247         * server-src/amrestore.c: Use new host/disk matcher.
15248         * man/amcheck.8.in: Document new [host disk]* pair arguments.
15249         * man/amflush.8.in: Ditto.
15250         * man/amdump.8.in: Ditto.
15251
15252 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15253
15254         * server-src/diskfile.c (match_disklist): new function.
15255         * server-src/diskfile.h (struct disk_s): new field todo.
15256         * server-src/diskfile.h (match_disklist): prototype.
15257
15258 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15259
15260         * common-src/match.c (match_word, match_host, match_disk): 
15261         new functions.
15262         * common-src/amanda.h (match_host, match_disk): prototype.
15263
15264 2000-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15265
15266         * server-src/planner.c (analyze_estimate): pick incremental level
15267         if no estimate of level 0.
15268
15269 2000-12-28 Marc W. Mengel <mengel@fnal.gov>
15270         * changer-src/chg-juke.sh.in: New File
15271         * changer-src/Makefile.am: Added support for chg-juke.
15272         * docs/TAPE.CHANGERS: Likewise.
15273         * configure.in: Likewise.
15274
15275 2000-12-24 John R. Jackson <jrj@purdue.edu>
15276
15277         * server-src/getconf.c: Fix free() of static text string (BUGGY) when
15278           the parameter being looked up is bad.
15279
15280 2000-12-23 David Wolfskill  <dhw@whistle.com>
15281
15282         * server-src/amcheck.c (start_server_check): Change directory
15283           writable check to be for the tapelist directory instead of
15284           the config file directory.  Remove config file directory test.
15285         * man/amcheck.8.in: Add mention of tapelist directory and do
15286           some other directory writable cleanup.
15287
15288 2000-12-12 John R. Jackson <jrj@purdue.edu>
15289
15290         * client-src/sendbackup-gnutar.c: Fix regex pattern to accept blanks
15291           or tabs.
15292
15293 2000-12-12 John R. Jackson <jrj@purdue.edu>
15294
15295         * Makefile.am: Work around problem with automake 1.4 not including
15296           pkgdata_DATA.
15297         * docs/Makefile.am: Include RAIT and VTAPE-API in distribution.
15298           Work around problem with automake 1.4 not including pkgdata_DATA.
15299         * tape-src/rait.h: Renamed to rait.h.
15300         * tape-src/rait.c: Renamed to rait.c.
15301         * tape-src/output-rait.h: Renamed from rait.h.
15302         * tape-src/output-rait.c: Renamed from rait.c.
15303         * tape-src/Makefile.am: Reflect the new rait.[ch] names.
15304         * tape-src/tapeio.c: Use output-rait.h name.  Minor typo changes.
15305
15306 2000-12-08 Marc Mengel <mengel@fnal.gov>
15307
15308         * docs/RAIT: New file.
15309         * docs/VTAPE-API: New file.
15310         * tape-src/rait.c: New File providing RAIT virtual tape type.
15311         * tape-src/tapeio.c: Major Surgery.
15312           (vtable): New static table of virtual tape types.
15313           (fdtable): New static table mapping file descriptors.
15314           (tapefd_fsf_ioctl): Renamed tapefd_fsf, with added ioctl argument.
15315           (tapefd_rewind_ioctl): Likewise.
15316           (tapefd_unload_ioctl): Likewise.
15317           (tapefd_weof_ioctl): Likewise.
15318           (tapefd_status_ioctl): Likewise.
15319           (tape_open): Now is a virtual tape table lookup and call.
15320           (tape_access): Now is a switch through virtual tape table.
15321           (tape_stat): Likewise.
15322           (tapefd_close): Likewise.
15323           (tapefd_fsf): Likewise.
15324           (tapefd_read): Likewise.
15325           (tapefd_rewind): Likewise.
15326           (tapefd_resetofs): Likewise.
15327           (tapefd_unload): Likewise.
15328           (tapefd_status): Likewise.
15329           (tapefd_weof): Likewise.
15330           (tapefd_write): Likewise.
15331           (plain_tape_access): Rename of tape_access.
15332           (plain_tape_open): Likewise.
15333           (plain_tapefd_read): Likewise.
15334           (plain_tape_stat): Likewise.
15335           (plain_tapefd_write): Likewise.
15336           (plain_tapefd_close): Likewise.
15337           (plain_tapefd_fsf): Now calls tapefd_fsf_ioctl with &ioctl().
15338           (plain_tapefd_rewind): Likewise.
15339           (plain_tapefd_resetofs): Likewise.
15340           (plain_tapefd_unload): Likewise.
15341           (plain_tapefd_status): Likewise.
15342           (plain_tapefd_weof): Likewise.
15343
15344 2000-12-04 John R. Jackson  <jrj@purdue.edu>
15345
15346         * server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami
15347           problem.
15348
15349 2000-12-04 John R. Jackson  <jrj@purdue.edu>
15350
15351         * server-src/conffile.c (read_conffile_recursively): If the file name
15352           for the includefile directive is not absolute, make it relative to
15353           the configuration directory.
15354
15355 2000-12-03 John R. Jackson  <jrj@purdue.edu>
15356
15357         * restore-src/amrestore.c: Fix header when compression is included.
15358           Use "fast" option for -c and add new -C option to get "best".
15359         * man/amrestore.8: Document the new option, the compression level,
15360           and clean up some nroff issues.
15361
15362 2000-11-30 Marc Mengel <mengel@fnal.gov>
15363
15364         * changer-src/chg-chio.pl.in: Use am-mt and am-dd versus mt and dd.
15365         * changer-src/chg-chs.sh.in: Likewise.
15366         * changer-src/chg-manual.sh.in: Likewise.
15367         * changer-src/chg-mtx.sh.in: Likewise.
15368         * changer-src/chg-multi.sh.in: Likewise.
15369         * changer-src/chg-rth.pl.in: Likewise.
15370         * changer-src/chg-zd-mtx.sh.in:  Likewise.
15371         * tape-src/am-dd.c: New file. Replacement for dd.
15372         * tape-src/am-mt.c: New file. replacement for mt.
15373         * tape-src/Makefile.am: Add build for am-mt and am-dd.
15374         * tape-src/tapeio.c (tape_unload, tapefd_unload, tape_status, 
15375           tapefd_status): New functions.
15376           (tape_rewind, tape_fsf, tape_rdlabel): Change error message 
15377                 for tape being offline so it matches online/offline regex 
15378                 in changer scripts.
15379           (tape_open): Ifdef-out mode flag clearing, so you can pass 
15380                 O_TRUNC, etc.  in for am-dd.
15381
15382 2000-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15383
15384         * common-src/util.c: #include "../tape-src/tapeio.h"
15385         * tape-src/tapeio.c(tapefd_write): second arg is const.
15386         * tape-src/tapeio.h(tapefd_write): Likewise.
15387         * common-src/event.c(event_loop): declare entry if ASSERT is defined.
15388         * changer-src/chg-scsi.c: Fix compiler warning.
15389         * changer-src/scsi-aix.c: Likewise.
15390         * changer-src/scsi-bsd.c: Likewise.
15391         * changer-src/scsi-cam.c: Likewise.
15392         * changer-src/scsi-changer-driver.c: Likewise.
15393         * changer-src/scsi-defs.h: Likewise.
15394         * changer-src/scsi-hpux.c: Likewise.
15395         * changer-src/scsi-hpux_new.c: Likewise.
15396         * changer-src/scsi-irix.c: Likewise.
15397         * changer-src/scsi-linux.c: Likewise.
15398         * changer-src/scsi-solaris.c: Likewise.
15399         * changer-src/sense.c: Likewise.
15400
15401 2000-11-22 John R. Jackson  <jrj@purdue.edu>
15402
15403         * contrib/dbbackup.ksh: Deal with adm being a symlink.
15404         * contrib/dbbackup.tcl: Update for Tcl 8.3 and newer Oratcl versions.
15405
15406 2000-11-22 John R. Jackson  <jrj@purdue.edu>
15407
15408         * Makefile.am: Forgot to add contrib/sst/README.Amanda to the list
15409           of files to put in a distribution.
15410
15411 2000-11-21 John R. Jackson  <jrj@purdue.edu>
15412
15413         * recover-src/extract_list.c (extract_files_child): Add support for
15414           XFSRESTORE.
15415
15416 2000-11-21 John R. Jackson  <jrj@purdue.edu>
15417
15418         * server-src/amcheck.c: Minor message wording changes.
15419
15420 2000-11-21 John R. Jackson  <jrj@purdue.edu>
15421
15422         * configure.in: Forgot to check in this part of new amgetconf.8.in.
15423
15424 2000-11-21 John R. Jackson  <jrj@purdue.edu>
15425
15426         * contrib/sst/README.Amanda: New file of Amanda specific sst notes.
15427         * contrib/sst/sst.c: Attempt at letting gcc compile sst.
15428
15429 2000-11-21 John R. Jackson  <jrj@purdue.edu>
15430
15431         * man/amgetconf.8.in: New man page.
15432         * man/Makefile.am: Add support for amgetconf.8.in.
15433         * man/amadmin.8.in: Update for 2.4.2 and do general cleanup.
15434         * man/amanda.8.in: Ditto.
15435         * man/amcheck.8.in: Ditto.
15436         * man/amcheckdb.8.in: Ditto.
15437         * man/amcleanup.8.in: Ditto.
15438         * man/amdump.8.in: Ditto.
15439         * man/amflush.8.in: Ditto.
15440         * man/amlabel.8.in: Ditto.
15441         * man/amrecover.8.in: Ditto.
15442         * man/amreport.8.in: Ditto.
15443         * man/amrestore.8: Ditto.
15444         * man/amrmtape.8.in: Ditto.
15445         * man/amstatus.8.in: Ditto.
15446         * man/amtape.8: Ditto.
15447         * man/amtoc.8.in: Ditto.
15448         * man/amverify.8.in: Ditto.
15449
15450 2000-11-21 John R. Jackson  <jrj@purdue.edu>
15451
15452         * contrib/sst/sst.c (sst_ioctl): Allow non-root users to use sst.
15453
15454 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15455
15456         * server-src/amdump.sh.in: exit if amgetconf exit with status != 0.
15457         * server-src/amcleanup.sh.in: ditto
15458         * server-src/amstatus.pl.in: ditto
15459
15460 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15461
15462         * server-src/driver.c (start_some_dumps): don't check free_kps if
15463         curusage == 0.
15464         * server-src/driver.c (free_kps): remove the kludge.
15465
15466 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15467
15468         * server-src/conffile.c: It's an error to have a negative chunksize.
15469         * man/amanda.8.in: remove documentation of negative chunksize.
15470         * example/amanda.conf.in: ditto
15471         * example/amanda.conf.chg-scsi.in:ditto
15472         * NEWS: negative chunksize is no longer supported.
15473
15474 2000-11-03 John R. Jackson  <jrj@purdue.edu>
15475
15476         * server-src/driver.c (handle_taper_result): the holding disk entry
15477         should not be removed just because taper could not write it out in
15478         the "too many taper retries" case.  It should be left for amflush.
15479
15480 2000-11-01 John R. Jackson  <jrj@purdue.edu>
15481
15482         * server-src/amverify.sh.in: use common form for getting the first
15483         line of a file/pipe.  Sed is more portable than head.
15484
15485 2000-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15486
15487         * client-src/selfcheck.c (check_disk): Write an appropriate
15488         message if the disk name start with '//' and the program is DUMP
15489         or SAMBA is not compiled in.
15490
15491 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15492
15493         * server-src/driver.c (handle_chunker_result): The dumpsize is
15494         the third argument, not the fourth.
15495
15496 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15497
15498         * server-src/driver.c (handle_chunker_result): don't check
15499         pending_aborts, call event_release() ob ABORT-FINISHED.
15500
15501 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15502
15503         * server-src/chunker.c (databuf_flush): workaround to prevent a
15504         hang on a ABORT command.
15505
15506 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15507
15508         * server-src/driver.c (continue_dumps): set estimate to more than 
15509         what is already use instead of setting no_hold=1 when a disk
15510         don't fit on holding disk.
15511
15512 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15513
15514         * server-src/chunker.c: chunker was broken after RQ-MORE-DISK.
15515
15516 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15517
15518         * server-src/amstatus.pl.in: add '&' when calling &usage() 
15519         or &dump_size().
15520
15521 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15522         reported by The Hermit Hacker <scrappy@hub.org>
15523
15524         * changer-src/chg-chio.pl.in: remove unused $libexecdir.
15525
15526 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15527         reported by The Hermit Hacker <scrappy@hub.org>
15528
15529         * changer-src/chg-chio.pl.in: remove comma after LOG, 
15530         typo: r should be 0.
15531
15532 2000-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15533
15534         * docs/INDEXING: doc updated.
15535
15536 2000-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15537
15538         * AUTHORS: add Thomas Hepper.
15539
15540 2000-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15541
15542         * server-src/driverio.c (chunker_cmd): send ABORT command.
15543
15544 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15545
15546         * server-src/amverify.sh.in: grep only the first line of the header.
15547
15548 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15549
15550         * server-src/amverify.sh.in: verify with tar even if the
15551         server and the client are not configured with the same path.
15552
15553 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15554
15555         * NEWS: A new `ctimeout' keyword in amanda.conf to replace 
15556         the CHECK_TIMEOUT constant in amcheck.c.
15557
15558 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15559
15560         * server-src/amlabel.c: Don't set tape_ok to 0 if 
15561         tape_wrlabel is successful.
15562
15563 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15564
15565         * server-src/taper.c: amfree(strclosing).
15566
15567 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15568
15569         * server-src/driver.c: typo.
15570
15571 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15572
15573         * configure.in: --with-samba-user is deprecated.
15574         * docs/SAMBA: the username is now on the amandapass file.
15575         * NEWS: the username is now on the amandapass file.
15576         * client-src/findpass.c (findpass): accept "*" as diskname.
15577         * client-src/selfcheck.c (check_disk): call to samba changed.
15578         * client-src/sendsize.c (getsize_smbtar): ditto.
15579         * client-src/sendbackup-gnutar.c (start_backup): ditto.
15580         * recover-src/extract_list.c (extract_files_child): ditto.
15581
15582 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15583
15584         * server-src/taper.c: give better message when failing 
15585         to open a chunk.
15586
15587 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15588
15589         * server-src/diskfile.c (headqueue_disk): new function to
15590         insert at the head of the queue.
15591         * server-src/diskfile.h (headqueue_disk): prototype.
15592         * server-src/driver.c (taper_queuedisk): insert with
15593         headqueue_disk() if disk already attempted.
15594
15595 2000-10-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15596
15597         * AUTHORS: fix my email address.
15598
15599 2000-09-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15600
15601         * server-src/amcheck.c: Don't accept -m or -M option if MAILER
15602         is not defined.
15603         * server-src/reporter.c: Need a -f optionn if MAILER is not defined.
15604
15605 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15606         patch by <jeg@time.ucsc.edu>
15607
15608         * server-src/reporter.c (output_summary): check for tape_labels.
15609
15610 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15611
15612         * server-src/amindexd.c: use strcasecmp to compare hostname.
15613
15614 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15615
15616         * server-src/amstatus.pl.in: fix plural misuse.
15617
15618 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15619
15620         * man/amanda.8.in: add all pages in the SEE ALSO section.
15621
15622 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15623
15624         * man/amreport.8.in: amreport does not rotate the log.
15625         * man/amrestore.8: note on holdingdisk.
15626         * restore-src/amrestore.c: update usage.
15627         * server-src/amrmtape.sh.in: update usage.
15628         * server-src/amverify.sh.in.usage: update usage.
15629
15630 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15631
15632         * server-src/amoverview.pl.in: update usage information,
15633         -config is no longer needed for ccompatibility with other program.
15634         * man/amoverview.8.in: -config is no longer needed.
15635
15636 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15637
15638         * example/amanda.conf.in: chunk should not be larger than
15639         MAX_FILE_SIZE - 1Mb.
15640
15641 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15642
15643         * client-src/sendsize.c (getsize_smbtar): remove unused debug_level
15644         variable.
15645         * server-src/amlabel.c (main): init errstr to NULL, 
15646         fix compiler warning.
15647
15648 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15649         patch by jason Thomas <jet@users.sourceforge.net>
15650
15651         * tape-src/tapetype.c: fix help message.
15652
15653 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15654         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
15655
15656         * common-src/file.c (mkpdir): check p != NULL
15657         * man/amstatus.8.in: typo
15658
15659 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15660         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
15661
15662         * client-src/calcsize.c:sets correct program name,
15663         prevent coredumps and some improrer command line error mesages
15664
15665 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15666
15667         * common-src/amanda.h: prototype clean_regex().
15668         * common-src/match.c: new function clean_regex() that escape
15669         all non-alphanumeric character.
15670         * recover-src/extract_list.c (add_file, delete_file): use clean_regex().
15671
15672 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15673
15674         * server-src/amcheck.c: (start_server_check): check for the oldlog
15675         directory.
15676
15677 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15678
15679         * server-src/amtrmlog.c: better check of the oldlog directory.
15680
15681 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15682
15683         * server-src/amcheck.c: (start_server_check): don't check the tape
15684         if tapedev is /dev/null.
15685
15686 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15687
15688         * server-src/reporter.c (output_tapeinfo): test reversed for run_tapes.
15689
15690 2000-07-31 Thomas Hepper <th@ant.han.de>
15691         * changer-src/chg-scsi.c: Rework of the device handling.
15692         Every device is opend for an operation and than closed.
15693         This will hopefully fix the problems with openening the tape device
15694         and the SCSI control device for the tape
15695         new option emubarcode (see docs/TAPE.CHANGERS)
15696         * changer-src/scsi-cam.c: Changed to work with the new device handling.
15697         * changer-src/scsi-hpux_new.c: Changed to work with the new device handling.
15698         * changer-src/scsi-irix.c: Changed to work with the new device handling. (Not tested)
15699         * changer-src/scsi-solaris.c: Changed to work with the new device handling. (Not tested)
15700         * changer-src/scsi-linux.c: Changed to work with the new device handling.
15701         * changer-src/scsi-changer-driver.c: Changed to work with the new device handling
15702         * changer-src/scsi-defs.h: Changed to work with the new device handling
15703 2000-07-18 John R. Jackson  <jrj@purdue.edu>
15704
15705         * changer-src/chg-chio.pl.in (do_time): fix chg-chio.pl timestamp
15706         function to return a string instead of writing to stdout.
15707
15708 2000-07-18 John R. Jackson  <jrj@purdue.edu>
15709
15710         * server-src/taper.c (file_reader_side): detach and destroy shared
15711         memory areas on an error condition.  Found by Patrik Andersin
15712         <cat@iki.fi>.
15713
15714 2000-07-17 Thomas Hepper <th@ant.han.de>
15715         * docs/TAPE.CHANGERS: Added some notes for the cam driver
15716         * changer-src/scsi-cam.c: New syntax for telling scsi ids
15717         (bus:target:lun)
15718         SCSI_ExecuteCommand now returns the correct sense buffer.
15719
15720 2000-07-17 Thomas Hepper <th@ant.han.de>
15721         * configure.in: Added check for BSD SCSI CAM Support
15722         * changer-src/scsi-cam.c: New, functions for SCSI CAM Support
15723         ( at the moment for FreeBSD 4.0)
15724         * changer-src/Makefile.am: added scsi-cam.s to the list of sources
15725         * changer-src/chg-scsi.c: The structs for the OpenFiles_T is now
15726         allocated in chg-scsi and passed to OpenDevice.
15727         * changer-src/scsi-changer-driver.c: New Parameter for OpenDevice
15728         (OpenFiles_T)
15729
15730 2000-07-10 Marc Mengel <mengel@fnal.gov>
15731         * tape-src/tapeio.c -- add tape_{stat,access}, allow "plain:" prefix
15732                 on tape device names
15733         * tape-src/tapeio.h -- add tape_{stat,access} prototypes
15734         * common-src/util.c -- call tape_{read,write}() in full{read,write}()
15735         * restore-src/amidxtaped.c -- use tape_stat() on tapename
15736         * restore-src/amrestore.c -- use tape_stat() on tapename
15737         * server-src/amcheck.c -- use tape_access() on tapename
15738         * client-src/Makefile.am -- now needs libamtape.a twice
15739         * server-src/Makefile.am -- now needs libamtape.a twice
15740         * recover-src/Makefile.am -- now needs libamtape.a twice
15741         * Makefile.am -- tape-src before client-src
15742
15743 2000-07-05 Thomas Hepper <th@ant.han.de>
15744         * changer-src/chg-scsi.c: fixed an core dump if tapeident was set
15745         * changer-src/scsi-changer-driver.c (OpenFile):
15746          if the ident ist set in the config set this in the internal device 
15747          struct too.
15748         * changer-src/scsi-changer-driver.c (GenerciSenseHandler):
15749          changed the type for the info text from char * to char ** which
15750          is passwd to Sense2Action
15751         * changer-src/scsi-changer-driver.c (ChangerStatus):
15752          fixed the bug which causes an core dump for chg-scsi -status robot
15753          if an bar code reader is detected. Fixed also the bug that the
15754          mapping Label -> Barcode was not displayed.
15755         * changer-src/scsi-defs.h: Changed the prototype for Sense2Action
15756         * changer-src/sense.c: Added the defs for the Spectra TreeFrog lib
15757         * changer-src/sense.c (Sense2Action); Fixed the handling if no match
15758          was found (fall back to the generic description)
15759
15760 2000-06-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15761
15762         * server-src/list_dir.c (add_dir_list_item): add at head of list.
15763
15764 2000-06-24 Thomas Hepper <th@ant.han.de>
15765         * changer-src/chg-scsi-chio.c: Merged changes from 2.4.2 
15766         * changer-src/chg-scsi.c: Merged changes from 2.4.2
15767         * changer-src/sense.c: New file. Contains an table and function for the 
15768           mapping of sense/ASC/ASCQ conditions from the SCSI sense.
15769         * changer-src/scsi-changer-driver.c: Merged changes from 2.4.2
15770           Changed handling for the sense keys. Now there is only one function
15771           to decide what to do with an sense/ASC/ASCQ conditon (abort,retry ..)
15772         * changer-src/Makefile.am: Added sense.c to the source list.
15773         * changer-src/scsi-solaris.c: Merged changes from 2.4.2 
15774         * changer-src/scsi-linux.c: Merged changes from 2.4.2 
15775         * changer-src/scsi-irix.c: Merged changes from 2.4.2 
15776         * changer-src/scsi-hpux_new.c: Merged changes from 2.4.2 
15777         * changer-src/scsi-defs.h: Merged changes from 2.4.2 
15778         
15779 2000-06-12  Jeroen Ruigrok van der Werven  <asmodai@wxs.nl>
15780
15781         * server-src/amlabel.c (main): Do not amfree(config_name).
15782
15783 2000-06-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15784
15785         * server-src/holding.c (pick_datestamp): convert ch to upper.
15786
15787 2000-05-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15788
15789         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
15790           delay call to dumper_result().
15791
15792 2000-05-28  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15793
15794         * client-src/sendbackup-gnutar.c: Ignore `socket ignored' GNU tar
15795         messages.
15796
15797 2000-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15798
15799         * chunker.c: allow chunk to be written on different holding disk.
15800         * server-src/driver.c: allow chunk to be written on different
15801           holding disk.
15802         * server-src/conffile.c: make sure that disksize and chunksize
15803           are multiple of TAPE_BLOCK_SIZE.
15804         * server-src/conffile.h: disksize and chunksize are long.
15805         * server-src/diskfile.c (find_disk): new function to see if a
15806           given disk is contained in a list structure.
15807         * server-src/diskfile.h (find_disk): prototype.
15808         * server-src/driverio.h (RQ_MORE_DISK): Added message.
15809         * server-src/driverio.h (free_assignedhd): prototype.
15810         * server-src/driverio.h (assignedhd_t): new data structure.
15811         * server-src/driverio.c (cmdstr): added comamnd RQ-MORE-DISK.
15812         * server-src/driverio.c (free_assignedhd): new function to free an
15813           array of assignedhd_t.
15814         
15815 2000-05-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15816
15817         * server-src/driver.c (chunker_program): new variable.
15818
15819 2000-04-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15820
15821         * server-src/amstatus.pl.in: handle chunker line.
15822
15823 2000-04-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15824
15825         * recover-src/Makefile.am (LDADD): Removed libamtape.
15826         Reported by Paul Yeatman <pyeatman@ucsd.edu>
15827
15828 2000-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15829
15830         * server-src/chunker.c: new file for the chunker program.
15831         * server-src/Makefile.am: compile it.
15832         * server-src/driver.c: many modification.
15833         * server-src/driverio.c: many modification.
15834         * server-src/driverio.c (startup_chunk_process, chunker_cmd):
15835         new functions.
15836         * server-src/driverio.h: prototype them.
15837         * server-src/driverio.h (struct chunker_s): new structure.
15838         * server-src/logfile.c: handle chunker log.
15839         * server-src/logfile.h: ditto.
15840         * server-src/reporter.c: ditto.
15841         * server-src/taper.c: size reduced by TAPE_BLOCK_SIZE.
15842
15843 2000-04-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15844
15845         * server-src/taper.c: don't crash if the tapelist file
15846         doesn't exist.
15847
15848 2000-04-09  Frank Wojcik  <fwojcik@lucent.com>
15849
15850         * server-src/taper.c (detach_buffers): Fixed typo in error message.
15851
15852         * server-src/amrmtape.sh.in: Fix occurrence of `Infofile', that
15853         should have been `InfoFile'.
15854
15855 2000-04-09  Davide Marchignoli  <marchign@di.unipi.it>
15856   
15857         * server-src/conffile.h (confparm_t): Added CTIMEOUT.
15858         * server-src/conffile.c: Added ctimeout support.  Default to 30.
15859         * example/amanda.conf.in: Likewise.
15860         * man/amanda.8.in: Documented it.
15861         * server-src/amcheck.c: Use ctimeout from configuration file instead
15862         of CHECK_TIMEOUT.
15863
15864 2000-04-09  Stan Brown  <stanb@awod.com>
15865
15866         * recover-src/amrecover.c (guess_disk): Omit DEV_PREFIX only if
15867         it is actually a prefix of fsname.
15868
15869 2000-04-09  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15870
15871         * server-src/amlabel.c (main): Check label *after* writing end mark.
15872
15873 2000-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15874
15875         * server-src/amlabel.c: don't crash if the tapelist file 
15876         doesn't exist.
15877
15878 2000-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15879
15880         * server-src/amstatus.pl.in: "0 dumpers busy" should be "0 dumper busy".
15881
15882 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15883
15884         * server-src/amadmin.c (force_one, force_bump_one): FORCE_FULL
15885         and FORCE_BUMP are mutually exclusive.
15886
15887 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15888
15889         * server-src/driver.c (main): use the holding disk even if the
15890         datestamped directory already exist.
15891
15892 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15893
15894         * server-src/amstatus.pl.in (prefix, exec_prefix): Refer to them
15895         twice to avoid warnings of possible typo.
15896
15897         * amplot/amplot.awk: Ignore dumper's RQ-MORE-DISK.
15898         Reported by David Wolfskill <dhw@whistle.com>
15899         * amplot/amplot.awk: Handle taper's TRY-AGAIN like TAPE-ERROR.
15900
15901         * server-src/amstatus.pl.in: Compute and display TRY-AGAIN tape
15902         errors.
15903         Reported by David Wolfskill <dhw@whistle.com>
15904
15905         * man/amtoc.8.in: Document -w.
15906
15907 2000-01-21  David Wolfskill  <dhw@whistle.com>
15908
15909         * server-src/amtoc.pl.in: Add `-w' to add new lines and form feeds.
15910
15911 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15912
15913         * man/amlabel.8.in: Tapes are no longer requested in reverse order
15914         of amlabeling.
15915         Reported by Brad Guillory <round@baileylink.net>
15916
15917         * server-src/amstatus.pl.in: New option --stats, to display
15918         statistics about dumpers and taper.
15919         * man/amstatus.8.in: Document it.
15920
15921 2000-01-21  David Wolfskill  <dhw@whistle.com>
15922
15923         * server-src/amstatus.pl.in: Sort dumpers by number.
15924
15925 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15926
15927         * server-src/amstatus.pl.in: Remove bogus (?) line `$$host=1'.
15928
15929         * configure.in (MAILER): Warn or print an error if not found,
15930         depending on whether server code is disabled or not.
15931
15932         * server-src/reporter.c (output_tapeinfo): Report used tapes
15933         regardless of tape errors.
15934
15935         * config/acinclude.m4i (CF_WAIT): Simplify the test.  Declare wait()
15936         in the global scope.
15937
15938 2000-01-21  Garrett Wollman  <wollman@khavrinen.lcs.mit.edu>
15939
15940         * config/acinclude.m4i (CF_WAIT): Avoid warnings on systems
15941         where `union wait' works but is deprecated.
15942
15943 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15944
15945         * recover-src/uscan.l (settape): Recognize it.
15946         * recover-src/uparse.y: Parse it.
15947         * recover-src/amrecover.h (set_tape): Declare it.
15948         * recover-src/set_commands.c (set_tape): Implement it.
15949         * recover-src/help.c (help_list): Document it.
15950         * man/amrecover.8.in: Likewise.
15951         * recover-src/extract_list.c (extract_files): Warn if tape device is
15952         /dev/null.
15953         * recover-src/amrecover.c (tape_device_name): Default to
15954         server-determined default.
15955
15956 2000-01-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15957
15958         * configure.in: Recognize alpha*-*-linux-* and sparc*-*-linux-*.
15959
15960         * tape-src/Makefile.am (../common-src/libamanda.$(LIB_EXTENSION)):
15961         Allow for `make tapetype' before libamanda is built.
15962
15963         * server-src/amoverview.pl.in: Year doesn't take just 2 bytes.
15964
15965 2000-01-06  David Wolfskill  <dhw@whistle.com>
15966
15967         * docs/TAPETYPES: Typo.
15968         
15969 2000-01-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15970
15971         * docs/TAPETYPES: Removed all tapetype entries.  Pointed to
15972         example/amanda.conf, to the mailing list archives and to the on-line
15973         tapetype list.  Explained the meaning of length, filemark and speed,
15974         and how to build and use the tapetype utility.
15975
15976 1999-12-12 John R. Jackson  <jrj@purdue.edu>
15977
15978         * configure.in: egrep was having trouble with quoting on some systems.
15979         Broke it apart into multiple unquoted statements.  Also, changed the
15980         script to run the steps on all dump tests and added "Label" as another
15981         line to ignore.
15982
15983 1999-12-12 John R. Jackson  <jrj@purdue.edu>
15984
15985         * tape-src/tapetype.c: tweak the algorithm to write files in both
15986         passes and compute the tape mark size as the difference.  Never
15987         report a negative tape mark size.  Various other minor cleanup.
15988
15989 1999-11-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15990
15991         * client-src/sendbackup-gnutar.c (re_table): #if out the debugging
15992         Samba messages unless SAMBA_VERSION < 2.
15993
15994 1999-11-29  John E.P.Hynes  <john@hytronix.ne.mediaone.net>
15995
15996         * client-src/sendbackup-gnutar.c (re_table): Update for Samba 2.0.6.
15997
15998 1999-11-25 John R. Jackson  <jrj@purdue.edu>
15999
16000         * server-src/amflush.c (main): conf_logdir should not be free'd
16001           (found by Espen H Wiborg <espenhw@infotek.no>).
16002
16003 1999-11-10 John R. Jackson  <jrj@purdue.edu>
16004
16005         * recover-src/extract_list.c: report the tape server host in the
16006           message to check the amidxtaped.debug file.   If extract_list_child
16007           fails (such as when amidxtaped fails to read the tape), ask if
16008           things should continue instead of aborting.
16009
16010 1999-11-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16011
16012         * server-src/driverio.c (update_info_dumper): Discard information on
16013         older same- or higher-level dumps.
16014         * server-src/driver.c (dump_to_tape): Add comment that _dumper must
16015         be called before _taper.
16016
16017         * docs/FAQ: Sometimes FQDNs are wrong for amandahosts.
16018
16019 1999-11-10 John R. Jackson  <jrj@purdue.edu>
16020
16021         * server-src/amindexd.c (build_disk_table): need to clear the old
16022           disk history list before building a new one.
16023
16024 1999-11-10 John R. Jackson  <jrj@purdue.edu>
16025
16026         * server-src/taper.c (label_tape): issue a warning when tapedev is
16027           set to /dev/null.
16028         * server-src/amcheck.c (start_server_check): make warning message
16029           text the same for amcheck and taper when tapedev is /dev/null.
16030
16031 1999-11-10 John R. Jackson  <jrj@purdue.edu>
16032
16033         * server-src/amcleanupdisk.c (main): try to remove empty holding disk
16034           areas.
16035         * server-src/holding.c (scan_holdingdisk): do not automatically remove
16036           empty holding disk areas since this function is called by various
16037           utilities and a dump might be in progress.
16038
16039 1999-11-10  James FitzGibbon  <james@targetnet.com>
16040
16041         * server-src/infofile.c (put_info): d.size should have been
16042         d.dsize.
16043
16044 1999-11-09 John R. Jackson  <jrj@purdue.edu>
16045
16046         * server-src/amcheck.c (start_server_check): test tapedev for
16047           "/dev/null" and issue warning that dumps will be thrown away.
16048
16049 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
16050
16051         * server-src/amadmin.c (main): Second occurrence of CNF_TAPELIST
16052         should have been CNF_INFOFILE; fixed.
16053
16054 1999-11-02  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16055
16056         * common-src/amflock.c (struct flock): Do not assume the fields are
16057         declared in any particular order.
16058         Reported by Sean Kelly <kelly@plutotech.com>
16059
16060         * Makefile.am (EXTRA_DIST): Added contrib/set_prod_link.pl.
16061         * docs/INSTALL: Likewise.
16062
16063 1999-11-02  Ricardo Malta  <rmalta@bigfoot.com>
16064         
16065         * contrib/set_prod_link.pl: Create the links for a configuration
16066         with --with-suffix.
16067
16068 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
16069
16070         * common-src/rsh-security.c (net_writev): The result of a cast is
16071         not an lvalue; fixed.
16072
16073 1999-10-26  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
16074
16075         * server-src/amtoc.pl.in: Correct a bug for total report.
16076
16077 1999-11-01 John R. Jackson  <jrj@purdue.edu>
16078
16079         * server-src/amcleanupdisk.c (main): do not free the config name (it
16080           was never alloc-d).
16081
16082 1999-10-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16083
16084         * common-src/debug.c: Do not assume stderr is a compile-time
16085         constant.  On glibc 2.2 (RedHat Linux 6.1), it is not.
16086
16087 1999-10-11  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
16088
16089         * server-src/amtoc.pl.in: Add new options -i and -t.  Print original
16090         size, instead of size on tape.
16091
16092 1999-10-07 John R. Jackson  <jrj@purdue.edu>
16093
16094         * common-src/stream.c (stream_server): remove reference to portrange
16095           variable.  Compliments of Randy Dees <rrd@amherst.com>.
16096
16097 1999-10-03 John R. Jackson  <jrj@purdue.edu>
16098
16099         * server-src/driver.c (main): now that multiple results can come back
16100           from taper and dumper without a handshake (e.g. NO-ROOM), we need to
16101           process them all rather than just the first one.  Call the new
16102           areads_dataready() function to peek and see if more data is ready.
16103         * common-src/amanda.h: declare areads_dataready().
16104         * common-src/file.c: define areads_dataready().  Fix some variable
16105           types.  Fix a buffer expansion problem.  Add code to the test
16106           program to force buffer expansion to be checked out.
16107
16108 1999-10-03 John R. Jackson  <jrj@purdue.edu>
16109
16110         * common-src/file.c (areads_getbuf): fix a buffer allocation problem.
16111
16112 1999-10-03 John R. Jackson  <jrj@purdue.edu>
16113
16114         * common-src/amflock.c (main): do not use aclose() in the configure
16115           test case.  During configure we do not have areads_relbuf()
16116           available and it makes configure think all the tests have failed.
16117
16118 1999-10-03 John R. Jackson  <jrj@purdue.edu>
16119
16120         * common-src/amanda.h: protect the close macros and areads* from
16121           out of range file descriptors.
16122         * common-src/file.c: ditto.
16123
16124 1999-10-02 John R. Jackson  <jrj@purdue.edu>
16125
16126         * server-src/amindexd.c (build_disk_table): only "OK" results from
16127           find_dump should be considered.
16128
16129 1999-10-02 John R. Jackson  <jrj@purdue.edu>
16130
16131         * common-src/file.c (areads): when NO-ROOM became advisory and didn't
16132           participate in a full handshake, it exposed a problem in areads()
16133           where a static buffer was shared among all I/O.  Changed it to use
16134           a separate buffer for each file descriptor.  Enhanced the test
16135           program to check out the code.
16136         * common-src/amanda.h: ditto
16137         * restore-src/amidxtaped.c: minor areads/agets comment typo.
16138         * server-src/amindexd.c: ditto
16139
16140 1999-10-02 John R. Jackson  <jrj@purdue.edu>
16141
16142         * server-src/amlogroll.c: fix minor memory leak.
16143
16144 1999-09-29 John R. Jackson  <jrj@purdue.edu>
16145
16146         * server-src/dumper.c (do_dump): closed the dump messages file too
16147           soon.
16148
16149 1999-09-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16150
16151         * recover-src/extract_list.c (samba_extract_method): Default to
16152         SAMBA_TAR, for similarity with other restore programs.
16153         (extract_files_child): If restore with SMBCLIENT is enabled, explain
16154         that Samba shares will be restored to the SMB share.
16155
16156 1999-09-22 John R. Jackson  <jrj@purdue.edu>
16157
16158         * configure.in: wrong variable when processing LIBRARY_DIRS.  Fix
16159           compliments of John M. Vogtle <jmvogtle@kodak.com>.
16160
16161 1999-09-20 John R. Jackson  <jrj@purdue.edu>
16162
16163         * server-src/Makefile.am: use new amlogroll utility to rename the log
16164           file to the datestamped name.
16165         * server-src/amcheck.c: ditto.
16166         * server-src/amcleanup.sh.in: ditto and call all utilities with the
16167           config file name as an argument.
16168         * server-src/amdump.sh.in: ditto and call all utilities with the
16169           config file name as an argument.
16170         * server-src/amflush.c: ditto.
16171         * server-src/amlogroll.c: new utility.
16172         * server-src/driverio.c: ditto and call all utilities with the
16173           config file name as an argument.
16174         * server-src/reporter.c: ditto.
16175
16176 1999-09-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16177
16178         * amlogroll.c: It was missing; copied from the 2.4.2 branch.
16179
16180         * configure.in (AMANDA_TMPDIR): Added comment for config.h.in.
16181
16182 1999-09-19 John R. Jackson  <jrj@purdue.edu>
16183
16184         * server-src/amverify.sh.in: this script is important enough it should
16185           not depend on having perl installed.  Clean up the AIX "mt status"
16186           code.  Test for presense of other restore programs and check that
16187           they are executable during processing.
16188
16189 1999-09-19 John R. Jackson  <jrj@purdue.edu>
16190
16191         * server-src/amverify.sh.in: put back an "mt status" wait loop I
16192           erroneously removed, but protect it from AIX.
16193
16194 1999-09-19 John R. Jackson  <jrj@purdue.edu>
16195
16196         * common-src/util.c: fix math in bind_portrange so ports requested
16197           are between those the caller passed and make sure port 0 does not
16198           accidentally get requested, which returns a non-privileged port.
16199         * common-src/dgram.c: bind_portrange last port argument is inclusive.
16200         * common-src/stream.c: ditto.
16201         * recover-src/amrecover.c: ditto.
16202         * recover-src/extract_list.c: ditto.
16203
16204 1999-09-19 John R. Jackson  <jrj@purdue.edu>
16205
16206         * server-src/driver.c: do not send a FILE_WRITE to the taper when the
16207           tape queue is empty during a TRYAGAIN (driver core dumped).
16208
16209 1999-09-19 John R. Jackson  <jrj@purdue.edu>
16210
16211         * server-src/taper.c: fix protocol problems when out of tape.  Add
16212           FAKE_TAPE_ERROR debugging code to simulate tape errors.  Fix problem
16213           with command line argument processing.
16214
16215 1999-09-18 John R. Jackson  <jrj@purdue.edu>
16216
16217         * configure.in: several compress/uncompress variables were not being
16218           set properly.
16219
16220 1999-09-18 John R. Jackson  <jrj@purdue.edu>
16221
16222         * client-src/sendbackup.c: pclose returns a child exit status of the
16223           pipe, not an errno, so do not try to strerror it.
16224           Have the index child process exit with the pclose exit code.
16225           Treat index failures as strange rather than fatal so the dump gets
16226           fully processed.  It's more important to have the dump image than
16227           to skip it just because indexing had a (possibly unrelated) problem.
16228
16229 1999-09-15 John R. Jackson  <jrj@purdue.edu>
16230
16231         * server-src/amtoc.pl.in: handle an image failing on one tape and
16232           succeeding on the next.
16233
16234 1999-09-15 John R. Jackson  <jrj@purdue.edu>
16235
16236         * server-src/amstatus.pl.in: generalize the "driver: state" parsing
16237           so it can handle current and future information.
16238
16239 1999-09-15 John R. Jackson  <jrj@purdue.edu>
16240
16241         * common-src/bsd-security.c: if the user field is not present in the
16242           .amandahosts file, it should default to the local user, not the
16243           remote user.  For our purposes, that is CLIENT_USER, not the user
16244           we are running as (although they should be the same).
16245
16246 1999-09-14 John R. Jackson  <jrj@purdue.edu>
16247
16248         * configure.in: Add --with-tmpdir to ./configure and use it for
16249           all Amanda temporary files.  Default --with-dbgdir to --with-tmpdir.
16250           Move libexec/getconf to sbin/amgetconf and add an optional
16251           config parameter.  Add optional config parameter to several
16252           other programs.
16253           Add debugging to chg-chio.
16254           Call new safe_cd() function in most programs to cd to --with-tmpdir
16255           so if they drop core, it goes to a known spot.  Rename existing
16256           core files so more than one failure may be tracked.  Remove most
16257           chdir() and umask() calls (umask is set in safe_cd).
16258         * amplot/amplot.sh.in: ditto.
16259         * changer-src/chg-chio.pl.in: ditto.
16260         * changer-src/chg-chs.sh.in: ditto.
16261         * changer-src/chg-manual.sh.in: ditto.
16262         * changer-src/chg-mtx.sh.in: ditto.
16263         * changer-src/chg-multi.sh.in: ditto.
16264         * changer-src/chg-rth.pl.in: ditto.
16265         * changer-src/chg-scsi-chio.c: ditto.
16266         * changer-src/chg-scsi.c: ditto.
16267         * changer-src/chg-zd-mtx.sh.in: ditto.
16268         * client-src/amandad.c: ditto.
16269         * client-src/calcsize.c: ditto.
16270         * client-src/killpgrp.c: ditto.
16271         * client-src/rundump.c: ditto.
16272         * client-src/runtar.c: ditto.
16273         * client-src/selfcheck.c: ditto.
16274         * client-src/sendbackup-gnutar.c: ditto.
16275         * client-src/sendbackup.c: ditto.
16276         * client-src/sendsize.c: ditto.
16277         * common-src/alloc.c: ditto.
16278         * common-src/amanda.h: ditto.
16279         * common-src/amflock.c: ditto.
16280         * common-src/bsd-security.c: ditto.
16281         * common-src/debug.c: ditto.
16282         * common-src/file.c: ditto.
16283         * common-src/genversion.c: ditto.
16284         * restore-src/amidxtaped.c: ditto.
16285         * server-src/Makefile.am: ditto.
16286         * server-src/amadmin.c: ditto.
16287         * server-src/amcheck.c: ditto.
16288         * server-src/amcheckdb.sh.in: ditto.
16289         * server-src/amcleanup.sh.in: ditto.
16290         * server-src/amcleanupdisk.c: ditto.
16291         * server-src/amdump.sh.in: ditto.
16292         * server-src/amflush.c: ditto.
16293         * server-src/amfreetapes.sh.in: ditto.
16294         * server-src/amindex.c: ditto.
16295         * server-src/amindex.h: ditto.
16296         * server-src/amindexd.c: ditto.
16297         * server-src/amlabel.c: ditto.
16298         * server-src/amrmtape.sh.in: ditto.
16299         * server-src/amstatus.pl.in: ditto.
16300         * server-src/amtape.c: ditto.
16301         * server-src/amtrmidx.c: ditto.
16302         * server-src/amtrmlog.c: ditto.
16303         * server-src/amverify.sh.in: ditto.
16304         * server-src/changer.c: ditto.
16305         * server-src/changer.h: ditto.
16306         * server-src/conffile.c: ditto.
16307         * server-src/conffile.h: ditto.
16308         * server-src/diskfile.c: ditto.
16309         * server-src/driver.c: ditto.
16310         * server-src/driverio.c: ditto.
16311         * server-src/dumper.c: ditto.
16312         * server-src/find.c: ditto.
16313         * server-src/getconf.c: ditto.
16314         * server-src/holding.c: ditto.
16315         * server-src/infofile.c: ditto.
16316         * server-src/logfile.c: ditto.
16317         * server-src/planner.c: ditto.
16318         * server-src/reporter.c: ditto.
16319         * server-src/tapefile.c: ditto.
16320         * server-src/taper.c: ditto.
16321
16322 1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16323
16324         * common-src/bsd-security.c (bsd_stream): fn should take an ssize_t.
16325         (bsd_stream_read): Likewise, declaration.
16326         * common-src/rsh-security.c (rsh_stream): Likewise.
16327         (rsh_stream_read): Likewise, declaration and definition.
16328         * common-src/krb4-security.c (dummy): Compile when disabled.
16329         * common-src/krb5-security.c (dummy): Likewise.
16330
16331         * server-src/reporter.c (sDivZero): Change from float to double, to
16332         build with DEC cc.
16333
16334         * configure.in: Get snapshot date from SNAPSHOT file, if it exists.
16335         (VERSION): Add the date to it.
16336         (SNAPSHOT_STAMP): AC_SUBST to the SNAPSHOT file, if it exists.
16337         * Makefile.am (EXTRA_DIST): Added $(SNAPSHOT_STAMP).
16338         (config.status): Depend on $(SNAPSHOT_STAMP).
16339         (SNAPSHOT): Dummy rule to allow reconfigure if it's removed.
16340
16341         * config/Makefile.am: Remove all traces of acconfig.h.
16342
16343         * server-src/changer.c (changer_command): Fix for amwait_t != int.
16344
16345 1999-09-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16346
16347         * config/acinclude.m4i: Added comments for config/config.h.in to all
16348         AC_DEFINEs.
16349         * configure.in: Likewise.
16350         * config/acconfig.h: Deleted.
16351         * autogen: Updated.
16352
16353 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16354
16355         * changer-src/chg-chio.pl.in: add -w to #! line to catch more errors.
16356         * recover-src/display_commands.c: fix some compiler warnings.
16357         * recover-src/extract_list.c: fix some compiler warnings.
16358         * restore-src/amrestore.c: fix some compiler warnings.
16359         * server-src/planner.c: fix some compiler warnings.
16360
16361 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16362
16363         * recover-src/extract_list.c: add VRESTORE and VXRESTORE support.
16364
16365 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16366
16367         * common-src/stream.c: make sure errno is returned properly from
16368           stream_client() and stream_server().
16369         * server-src/taper.c: report errors from stream_server() and
16370           abort.
16371         * recover-src/extract_list.c: make sure errno is preserved.
16372
16373 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16374
16375         * configure.in: make sure the dump and restore programs are defined
16376           in pairs, do not allow just the dump program without restore.
16377         * client-src/sendbackup-dump.c: assume restore program is present
16378           if dump program is.
16379         * common-src/genversion.c: assume restore program is present if
16380           dump program is.
16381
16382 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16383
16384         * common-src/genversion.c: CLIENT_LOGIN has to be defined so there
16385           is no point testing for it.
16386         * server-src/conffile.c: ditto.
16387
16388 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16389
16390         * server-src/amverify.sh.in: add SMBCLIENT, VRESTORE, VXRESTORE
16391           and XFSRESTORE support.
16392
16393 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16394
16395         * server-src/conffile.c: add several common abbreviations to config
16396           file processing.
16397
16398 1999-09-01 John R. Jackson  <jrj@purdue.edu>
16399
16400         * server-src/amtoc.pl.in: allow multiple -s entries.
16401
16402 1999-09-01 John R. Jackson  <jrj@purdue.edu>
16403
16404         * server-src/reporter.c: handle/report a common columnspec syntax
16405           error instead of dumping core.
16406
16407 1999-09-01 John R. Jackson  <jrj@purdue.edu>
16408
16409         * man/amanda.8.in: typo in columnspec description.
16410
16411 1999-09-01 John R. Jackson  <jrj@purdue.edu>
16412
16413         * common-src/dgram.h: expressions in #define should be protected by
16414           parenthesis.
16415
16416 1999-08-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
16417
16418         * changer-src/chg-chs.sh.in (changerdev): Pass it as -f flag to CHS.
16419         * docs/TAPE.CHANGERS: Document it.
16420         Reported by Mike Horansky <moho@stanford.EDU>
16421
16422         * server-src/conffile.c (read_dumptype): Renamed from get_dumptype.
16423         Extended to support reading a named dumptype from a specified FILE.
16424         (get_dumptype): Use read_dumptype.
16425         (main): Read disklist, so that custom dumptypes are shown.
16426         * server-src/conffile.h (read_dumptype): Declare.
16427         * server-src/diskfile.c (parse_diskline): Get line_num and line by
16428         reference.  New argument diskf.  Use read_dumptype if dumptype
16429         starts with `{'.
16430         (main): Update.
16431         * man/amanda.8.in (disklist): Document it.
16432         * NEWS: Likewise.
16433         * example/disklist: Exemplify it.
16434
16435 1999-08-23 John R. Jackson  <jrj@purdue.edu>
16436
16437         * recover-src/amrecover.c (main): fix test for IPPORT_RESERVED.
16438         * recover-src/extract_list.c (extract_files_setup): ditto.
16439
16440 1999-08-23 John R. Jackson  <jrj@purdue.edu>
16441
16442         * server-src/reporter.c (copy_template_file): make sure all data is
16443           written to label template pipeline.
16444
16445 1999-08-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
16446
16447         * common-src/Makefile.am: Replace .o with OBJEXT.  List sources
16448         explicitly, instead of LDADDing the corresponding objects.
16449         (OBJ_EXTENSION): Wipe out, use OBJEXT.
16450
16451         * configure.in: Call AC_OBJEXT.
16452         (LTLIBOBJS, LTALLOCA): Define, according to ac_objext.
16453         * common-src/Makefile.am (libamanda_la_LIBADD): Use them.
16454         (libamanda_a_LIBADD): Use LIBOBJS and ALLOCA.
16455
16456         * common-src/Makefile.am (genversion.o): Revert last change, it was
16457         just a bug in automake's --disable-dependency-tracking.
16458
16459 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
16460
16461         * README (platforms): Added OpenBSD.
16462         Reported by Ian Darwin <ian@sq.com>
16463         (platforms): Added SunOS 5.7.
16464
16465 1999-08-15  Derek Ney <derek@hipgraphics.com>, Alexandre Oliva  <oliva@dcc.unicamp.br>
16466
16467         * client-src/sendsize.c (SAMBA_DEBUG_LEVEL): New macro, "0" for
16468         Samba >= 2, "3" for older ones.
16469         (getsize_smbtar): Use `du' if SAMBA_VERSION >= 2, and the
16470         appropriate SAMBA_DEBUG_LEVEL.
16471
16472 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
16473
16474         * common-src/Makefile.am (genversion.o): Depend on genversion.c
16475         too.  It seems that IRIX's make doesn't work without it.
16476         Reported by Brian Cuttler <brian@wadsworth.org>
16477
16478 1999-08-15  Jon LaBadie  <jon@jgcomp.com>
16479         
16480         * tape-src/tapetype.c: Speed it up by using larger sections in the
16481         second pass.
16482
16483 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
16484
16485         * man/amanda.8.in (skip-full, incronly): Document existing bugs.
16486
16487         * server-src/conffile.c (init_defaults): Default disksize to 0.
16488         * man/amanda.8.in (holdingdisk use): Document it.
16489         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
16490
16491         * server-src/planner.c (setup_estimate): Typo.
16492         (next_level0): Typo.
16493
16494         * config/ltconfig, config/ltmain.sh: Update from libtool 1.3.3.
16495
16496         * example/amanda.conf.in: Clarify holdingdisk::use 0.
16497
16498         * config/missing: Update from automake 1.4a.
16499
16500 1999-07-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16501
16502         * man/amanda.8.in: typo.
16503
16504 1999-06-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
16505
16506         * man/amrestore.8: Document holding-file usage.
16507
16508 1999-06-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
16509
16510         * Makefile.am (pkgdata_DATA): Install COPYRIGHTs.
16511         (EXTRA_DIST): Remove docs/*.
16512         * docs/Makefile.am: New file.
16513         (pkgdata_DATA): Install all docs.
16514         * configure.in: Output docs/Makefile.
16515         Suggested by Paul L. Lussier <plussier@baynetworks.com>
16516
16517         * docs/FAQ (selfcheck time-out): NIS services, inetd rebooting,
16518         keyboard time-out, lsof.
16519
16520         * server-src/amverify.sh.in (HEADER): Use `sed 1q'  instead of the
16521         not-that-portable `head -1'.
16522         Reported by Andrew Lare <lare@eos913c.gsfc.nasa.gov>
16523
16524 1999-06-19  Alexander Zangerl  <az@Austria.EU.net>
16525
16526         * client-src/sendbackup-dump.c (re_table): Match Solaris vxdump
16527         output.
16528
16529 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16530
16531         * server-src/dumper.c (read_indexfd): typo
16532
16533 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16534
16535         * server-src/dumper.c (do_dump): Close the indexout fh and wait
16536         for the completion of the index compress process.
16537         * server-src/dumper.c (read_mesgfd,read_datafd): Call stop_dump only
16538         if the index fd is already shut down.
16539         * server-src/dumper.c (read_indexfd): On EOF, call stop_dump() if both
16540         the mesg and data fd are shut down.
16541
16542 1999-06-15  Adam Hammer  <hammer@math.purdue.edu>
16543
16544         * server-src/amverify.sh.in: Wait until device becomes ready after
16545         rewinding.
16546
16547 1999-06-15  Björn Brezger <Bjoern.Brezger@uni-konstanz.de>, Alexandre Oliva  <oliva@dcc.unicamp.br>
16548
16549         * client-src/calcsize.c (ROUND): Rewrite, it was broken.
16550         Reported by Erik Lindahl <erik@theophys.kth.se>
16551
16552 1999-06-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
16553
16554         * server-src/conffile.h: Changed all `long's to `int's, as they
16555         broke get_number et al on 64bit platforms.
16556         Reported by Erik Lindahl <erik@theophys.kth.se>
16557
16558         * configure.in (bcopy, bzero): Oops, ICE_CHECK_DECL already checks
16559         for availability.
16560
16561         * configure.in (bcopy, bzero): Check whether they're available.
16562         * common-src/amanda.h (bcopy, bzero): If not, use memmove and
16563         memset.
16564         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
16565
16566         * server-src/amcheck.c (start_server_check): If info file does not
16567         exist, explain that it is supposed to be created on the next run.
16568
16569 1999-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
16570
16571         * server-src/tapefile.c (lookup_last_reusable_tape): Fix order of
16572         arguments in match() invocation.
16573         From Anthony Worrall <Anthony.Worrall@reading.ac.uk>
16574
16575 1999-06-08  Mike Grupenhoff <kashmir@munge.com>
16576
16577         * restore-src/amrestore.c: second arg to restore() is a char *, not
16578         a string_t.  Adjust prototype accordingly.
16579
16580 1999-06-07  Mike Grupenhoff <kashmir@munge.com>
16581
16582         * common-src/util.c (bind_portrange): function that attempts
16583         to bind a network connection to a port in a given range.
16584         * common-src/util.h: prototype bind_portrange().
16585         * common-src/dgram.c (bind_reserved): remove, superceeded by
16586         bind_portrange().
16587         (dgram_bind): use bind_portrange() instead of bind_reserved(), and
16588         try user specified ports first, then reserved ports, then regular
16589         ports.
16590         * common-src/dgram.h: remove prototype for bind_reserved().
16591         * common-src/stream.c (stream_server, stream_client): use
16592         bind_portrange() instead of bind_reserved(), and try user
16593         specified ports first, then reserved ports, then regular
16594         ports.
16595         * recover-src/amrecover.c (main): use bind_portrange() instead
16596         of bind_reserved(), and verify that the port it gives us is
16597         a reserved one.
16598         * recover-src/extract_list.c (extract_files_setup): use
16599         bind_portrange() instead of bind_reserved(), and verify that
16600         the port it gives us is a reserved one.
16601
16602 1999-06-07  Mark F. Vlems  <mvlems@vbox.xs4all.nl>
16603
16604         * server-src/amindexd.c (reply, lreply, fast_lreply): Return code 0
16605         of printf does not imply an error on some systems (Openstep) even if
16606         the number of written characters is more than 0.  The weakened error 
16607         check has no implication for the correct implementations of printf.
16608
16609 1999-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
16610
16611         * server-src/driver.c (dump_to_tape): Tell hard from soft
16612         (retryable) failures in both dumper and taper results, and behave
16613         accordingly.
16614
16615         * docs/SYSTEM.NOTES: On Trusted Solaris, the format of inetd.conf is 
16616         slightly different.
16617         Reported by Julian Stevens <julian.stevens@baedsl.co.uk>
16618
16619 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
16620
16621         * common-src/util.c (fullread, fullwrite): versions of
16622         read()/write() that keep looping until the buffer is
16623         completely read/written, or an error occurs.
16624         * common-src/Makefile.am: build util.c/util.h
16625         * common-src/fileheader.c, common-src/fileheader.h
16626         (fill_buffer): remove, replaced with fullread()
16627         * server-src/holding.c: use fullread() instead of fill_buffer().
16628         * common-src/bsd-security.c, restore-src/amrestore.c,
16629         server-src/amcheck.c, server-src/driverio.c, server-src/dumper.c,
16630         server-src/logfile.c, server-src/taper.c: use fullread/fullwrite
16631         instead of doing the retry loops manually.
16632
16633 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
16634
16635         * server-src/dumper.c (read_mesgfd, read_datafd): upon EOF,
16636         close the stream.  If the other stream is also closed, shut
16637         down.
16638
16639 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
16640
16641         * client-src/amandad.c (REP_TIMEOUT): bump up to six hours, for slow
16642         machines.
16643         (exit_check): remove waitpid(), let the service reap its own
16644         children.
16645         (s_repwait): rename 'err' to 'errstr' to avoid conflict with
16646         function in some libcs.
16647         (s_ackwait): if no pipes were opened by this service, then shut
16648         it down here.
16649         (process_netfd): on EOF, be sure to also close the network
16650         stream.  Also, if this is the last stream to be closed, shut
16651         down the service.
16652         (allocstream): correct a comment
16653         (service_delete): only close the security handle if it is still
16654         open.  Reap our children here instead of in exit_check().
16655
16656 1999-06-01  Mike Grupenhoff <kashmir@munge.com>
16657
16658         * server-src/taper.c (write_buffer): assert properly
16659
16660 1999-06-01  John Williams  <williams@morinda.com>
16661
16662         * changer-src/scsi-hpux.c (eject_tape): Enable it, it works.
16663
16664 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
16665
16666         * docs/INSTALL: Point to the patches page.  Update version numbers.
16667
16668         * example/config.site: Document UDPPORTRANGE.
16669
16670 1999-06-01  Jens Persson  <jens.persson@btj.se>
16671
16672         * configure.in (UDPPORTRANGE): Set from --with-udpportrange.
16673         * config/acconfig.h: Add UDPPORTRANGE.
16674         * common-src/dgram.c: Implement it.
16675
16676 1999-05-27  Mike Grupenhoff <kashmir@munge.com>
16677
16678         * common-src/alloc.c (alloc, debug_alloc, newalloc, debug_newalloc):
16679         make the size argument a size_t.
16680         (alloc): if an allocation fails, in the error message print how
16681         many bytes we tried to alloc.  This helps us determine if the
16682         alloc call was errant, or we really were out of memory.
16683         * common-src/amanda.h: update alloc/newalloc prototypes for
16684         size_t changes.
16685
16686 1999-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
16687
16688         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
16689         to libtool 1.3.2 plus a few patches.
16690         * config/config.guess, config/config.sub: Ditto.
16691
16692 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
16693
16694         * common-src/protocol.c: retry connection failures three times,
16695         waiting five seconds between each attempt.  Also, fix a lot
16696         of untrue comments.
16697
16698 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
16699
16700         * client-src/amandad.c: add a lot more dbprintfs so we know what's
16701         going on.
16702         (service_new): use error() instead of dbprintf(); exit()
16703
16704
16705 1999-05-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
16706
16707         * docs/FAQ (tar-patch): Mention sparse file problem.
16708
16709         * recover-src/uscan.l: #undef `ECHO' after #include amanda.h; some
16710         system header files may define it.
16711         Reported by Dan Lipofsky <danlip@cyc.com>
16712
16713         * */Makefile.am: Do not define ACLOCAL_M4, COMPILE or
16714         AMANDA_CFLAGS.
16715         * Makefile.am: Create acinclude.m4 in the top-level directory.
16716         * config/Makefile.am: Create link to acconfig.h in the top-level
16717         directory.
16718         * configure.in: Add AMANDA_CFLAGS to CFLAGS.  Set DUMPER_DIR without 
16719         trying to run it.
16720         * common-src/Makefile.am: Create genversion.h with #defines, to
16721         avoid genversion-specific CPPFLAGS.
16722         * common-src/genversion.c: #include genversion.h
16723
16724 1999-05-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16725
16726         * server-src/amandad.c (state2str): string "s_processrep" is 13
16727         caracters.
16728
16729 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
16730
16731         * server-src/amcheck.c (main): if we reap a bogus pid, print
16732         out the error message we generate, instead of whatever junk
16733         happens to be in the buffer.
16734
16735 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
16736
16737         * common-src/bsd-security.c (bsd_stream_read): remove old
16738         code that was part of something that ended up not happening.
16739         (stream_read_callback): use ssize_t.
16740
16741 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
16742
16743         * common-src/event.c (event_register): restructure asserts, and
16744         for EV_READFD/EV_WRITEFD, assert that the fd is < FD_SETSIZE.
16745
16746 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
16747
16748         * common-src/queue.h: move the multiple-inclusion #defines
16749         into application namespace.  #undef each macro before defining
16750         it, in case the OS has an identical macro.
16751
16752 1999-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
16753
16754         * server-src/amindex.h: Keep P macro expression in a single line.
16755         Reported by Patrick Harrold <patrickh@nasco-inc.com>
16756
16757         * common-src/Makefile.am (statfs_LDADD): Added alloc.obj.
16758
16759         * common-src/statfs.c (STATFS_SCALE, sys/statvfs.h): If f_frsize is
16760         zero, use f_bsize.  It now works with GNU libc 2.1.
16761         Reported by Heikki Vatiainen <hessu@cs.tut.fi>
16762
16763 1999-05-22 Alex Pilosov <alex@pilosoft.com>
16764
16765         * server-src/amindexd.c (is_dump_host_valid): sanitize_name(host)
16766         before doing a stat.
16767         * server-src/tapefile.c (lookup_nb_tape): init pos to 0.
16768
16769 1999-05-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16770
16771         * server-src/reporter.c: take the orig size from the SUCCESS line.
16772         use value from the infofile only the datestamp are equal.
16773         Write all available value.
16774
16775 1999-05-18  Mike Grupenhoff <kashmir@munge.com>
16776
16777         * common-src/strerror.c (strerror): restructure so that it doesn't
16778         need to malloc.
16779
16780 1999-05-17  Mike Grupenhoff <kashmir@munge.com>
16781
16782         * common-src/genversion.c (prvar): prototype declared it static,
16783         but actual function was still extern.
16784
16785 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16786
16787         * server-src/planner.c (pick_inclevel): check for base_level+1 if
16788         we don't have estimate for base_level. Needed for FORCE_BUMP.
16789         * server-src/planner.c (promote_highest_priority_incremental):
16790         Don't promote if we don't have level 0 estimate. No more need
16791         to check for skip_full, DS_NOFULL, DS_INCRONLY or FORCE_BUMP.
16792
16793 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16794
16795         * server-src/amflush.c: ignore SIGPIPE
16796         * server-src/driver.c: ignore SIGPIPE
16797         * server-src/driverio.c (taper_cmd, dumper_cmd): return 0 on error, 
16798         1 on success.
16799         * server-src/driverio.h (taper_cmd, dumper_cmd): prototype.
16800
16801 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16802
16803         * server-src/dumper.c: make prototypes consistent, (putresult):
16804         make first arg const.
16805
16806 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16807
16808         * server-src/conffile.c (getconf_byname): islower takes an int
16809         for an arg.
16810         * server-src/diskfile.c (upcase): islower takes an int for an
16811         arg.
16812         * server-src/driver.c (update_failed_dump_to_tape): prototype.
16813         * server-src/holding.c (insert_dirname, scan_holdingdisk):
16814         prototype and make static, (is_datestr): isdigit takes an int
16815         for an arg.
16816
16817 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16818
16819         * client-src/calcsize.c (basename): make static, prototype, and
16820         only include if BUILTIN_EXCLUDE_SUPPORT is defined and
16821         HAVE_BASENAME is not defined.
16822         * client-src/getfsent.c (dev2rde, samefile): prototype and
16823         make static.
16824         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c
16825         (start_backup, end_backup): prototype.
16826         * client-src/sendbackup.c (index_closed, save_fd): prototype
16827         and make static.
16828         * client-src/versionsuffix.c (main): prototype.
16829         * common-src/alloc.c (internal_vstralloc): prototype.
16830         * common-src/file.c (mk1dir): prototype, make static, and make
16831         first arg const.
16832         * server-src/amadmin.c (check_dumpuser): prototype.
16833         * server-src/amflush.c (get_letter_from_user): prototype and make
16834         static.
16835         * server-src/amindexd.c: prototype and make static numerous local
16836         functions.
16837         * server-src/amlabel.c (main): prototype.
16838         * server-src/amtrmidx.c (main): prototype.
16839         * server-src/changer.c (report_bad_resultstr, run_changer_command):
16840         prototype.
16841         * server-src/conffile.h: properly prototype getconf_holdingdisks()
16842         * server-src/driverio.h: properly prototype init_driverio().
16843         * server-src/find.c (find_compare, parse_taper_datestamp_log):
16844         prototype.
16845         * server-src/infofile.c (zero_info, open_txinfofile,
16846         close_txinfofile, read_txinfofile, write_txinfofile,
16847         delete_txinfofile): prototype and make static.
16848         * server-src/planner.c (main, askfor): prototype.
16849
16850 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16851
16852         * server-src/server_util.c: include server_util.h for prototypes
16853         * server-src/tapefile.h: properly prototype lookup_nb_tape()
16854         * server-src/driverio.c (childstr): make static, make return
16855         val const.
16856
16857 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16858
16859         * server-src/find.h: properly prototype find_log()
16860         * server-src/amtrmlog.c (main): prototype.  find_log() takes
16861         no arguments.
16862
16863 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16864
16865         * server-src/reporter.c: make all functions and globals
16866         static.  Prototype all functions, and make them consistent wrt
16867         K&R.  Place all prototypes together.  Place data type
16868         declarations before the prototypes that use them.  Remove
16869         unused sort_by_time().
16870
16871 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16872
16873         * server-src/dumper.c (process_dumpline): clean up the error
16874         return code
16875         * server-src/dumper.c (log_msgout): no need to reuse errf global,
16876         it makes me nervous.  Also, use amfree instead of free.
16877
16878 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16879
16880         * common-src/packet.c (pkt_cat): remove a bogus assert - len is
16881         a size_t, which is unsigned, so it will always be >= 0.
16882
16883 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16884
16885         * client-src/amandad.c (action_t): consolidate A_PKTTIMEOUT and
16886         A_REPTIMEOUT into just A_TIMEOUT.
16887
16888 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16889
16890         * common-src/amanda.h, common-src/alloc.c, common-src/event.c,
16891         common-src/rsh-security.c, server-src/driver.c,
16892         server-src/dumper.c: (min, max): consolidate all min/max
16893         definitions into amanda.h
16894
16895 1999-05-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
16896
16897         * docs/TAPE.CHANGERS (chg-rth): URL for chs is no longer valid.
16898
16899 1999-05-12  Mike Grupenhoff <kashmir@munge.com>
16900
16901         * common-src/amanda.h, common-src/alloc.c, common-src/file.c:
16902         const the filename arg to all of the dbmalloc versions of
16903         alloc and io functions
16904
16905 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
16906
16907         * common-src/protocol.c (proto_t): don't need prev and next ptrs
16908         anymore
16909
16910 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
16911
16912         * common-src/amanda.h, common-src/alloc.c: remove the static
16913         buffer manager - nothing uses it.  It can be resurrected in
16914         the future if needed.
16915
16916 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
16917
16918         * common-src/amanda.h: define stringconcat() macros that
16919         concatenate two const strings together
16920         * common-src/versuff.c.in (versionsuffix, version): generate
16921         data at compile time using stringconcat().
16922         * common-src/genversion.c: simplify, don't need to alloc anything
16923         * common-src/Makefile.am (genversion_LDADD): this doesn't need
16924         alloc.o or error.o anymore
16925
16926 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
16927
16928         * common-src/security.c (security_handleinit, security_streaminit):
16929         change default error message "unknown error" to "unknown protocol
16930         error" or "unknown stream error" to help identify where an
16931         messageless error was triggered.
16932
16933 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
16934
16935         * client-src/amandad.c (main): call initgroups(), and also set
16936         the real gid.
16937
16938 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
16939
16940         * server-src/driver.c (start_some_dumps): if a dumper is
16941         constrained, and some dumpers or the taper are active, register
16942         a EV_WAIT event.
16943         * server-src/driver.c (handle_taper_result,
16944         handle_dumper_result):  wakeup constrained dumpers after we
16945         have freed some resources.
16946
16947 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
16948
16949         * common-src/fileheader.c, common-src/fileheader.h: rework the
16950         fileheader parse and format code to remove a lot of duplicated
16951         code (in the F_DUMPFILE and F_CONT_DUMPFILE cases), consting
16952         arguments, and simplifying parse code.
16953
16954 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
16955
16956         * client-src/sendsize.c (getsize_dump): print out the strerror
16957         if we can't exec killpgrp.
16958
16959 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
16960
16961         * server-src/dumper.c (add_msg_data): first two arguments
16962         to memmove() were backwards.
16963
16964 1999-05-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16965
16966         * example/amanda.conf.in: typo
16967
16968 1999-05-07  Mike Grupenhoff <kashmir@munge.com>
16969
16970         * common-src/alloc.c (safe_env): allow DISPLAY into the
16971         environment for purify.
16972         * server-src/holding.c (rename_tmp_holding): if fill_buffer
16973         returns 0, don't try to parse a nonexistant header.
16974         * server-src/taper.c (file_reader_side): init datestamp to
16975         NULL, and don't try to free it if it's still NULL on exit.
16976
16977 1999-05-06  Mike Grupenhoff <kashmir@munge.com>
16978
16979         * server-src/driver.c (start_some_dumps): sleep_time is an
16980         offset, not an absolute.  Leave it that way when we return from
16981         this function.
16982
16983 1999-05-05  Mike Grupenhoff <kashmir@munge.com>
16984
16985         * server-src/amverify.sh.in (pecho): new function.  Like echo
16986         but doesn't append newline, and supports \r, etc.  Implemented
16987         using perl.
16988         * server-src/amverify.sh.in: use pecho where we used to use echo -n,
16989         etc.  It's nearly impossible to figure out which echo needs what
16990         flags and also know if it supports \r.  So we just punt and use
16991         perl.
16992
16993 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
16994
16995         * server-src/driver.c: convert to use event handler.
16996         (some_dumps_in_progress, lookup_dumper): nuke.
16997         (sleep_time): make a time_t and static.
16998         (IDLE_NO_DUMPERS): give a lower precedence than IDLE_START_WAIT.
16999         (start_some_dumps): make this work on one dumper instead of all.
17000         Call when a dumper is finished and needs more work.
17001         (handle_idle_wait): callback for dumpers waiting for delayed
17002         disks to start up.
17003         * server-src/driverio.c: initialize event handles for dumpers
17004         and the taper.  Nuke addfd().
17005         * server-src/driverio.h: add event handles for each dumper, and
17006         one global one for the taper.  Nuke maxfd and readset globals.
17007
17008 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
17009
17010         * server-src/driver.c (taper_queuedisk): new function that takes
17011         a disk_t, and, if the taper is not busy, tells it to write it out,
17012         or else adds it to the tapeq.  Make use_lffo global static.
17013         * server-src/driver.c (handle_taper_result, handle_dumper_result):
17014         call taper_queuedisk() instead of queueing ourself.
17015
17016 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
17017
17018         * server-src/driver.c: make all local functions static.
17019         Exposed two prototypes for nonexistant functions
17020         (diskname2filename, driver_main), and one function (dump_state)
17021         that was never called.  #if 0 out dump_state.
17022         Nuke inside_dump_to_tape global - it's value was never used.
17023         Make pending_aborts global a static local in handle_dumper_result.
17024
17025 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
17026
17027         * server-src/driverio.h (dumper_t): merge infd and outfd into
17028         just 'fd'.  Comment the other members of the struct.
17029         * server-src/driverio.c: infd/outfd -> fd
17030         * server-src/driver.c (handle_dumper_result): merge some common
17031         code between the FAILED and TRYAGAIN cases.  Comment the
17032         ABORT_FINISHED case.  Also infd/outfd -> fd.
17033
17034 1999-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17035
17036         * server-src/planner.c (when_overwrite): return a big number (1024)
17037         if the tape is not reusable.
17038
17039 1999-04-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
17040
17041         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
17042         from libtool 1.3.
17043
17044 1999-04-29  Mike Grupenhoff <kashmir@munge.com>
17045
17046         * server-src/driver.c (handle_dumper_result): remove FATAL_TRYAGAIN
17047         case, nothing uses it.
17048         * server-src/driverio.c, server-src/driverio.h: garbage collect
17049         FATAL_TRYAGAIN.  static & const cmdstr.
17050
17051 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
17052
17053         * server-src/diskfile.c (read_diskfile): rework to take a
17054         disklist_t * as an argument, and return -1 on error, or 0 on
17055         success.  const the filename argument.  Kill a few globals.
17056         * server-src/diskfile.c (lookup_host, lookup_disk): const
17057         arguments
17058         * server-src/diskfile.h: adjust prototypes for above changes
17059         * server-src/amadmin.c, server-src/amcheck.c,
17060         server-src/amcleanupdisk.c, server-src/amflush.c,
17061         server-src/amindexd.c, server-src/amtrmidx.c,
17062         server-src/amtrmlog.c, server-src/driver.c,
17063         server-src/planner.c, server-src/reporter.c: adjust calls to
17064         read_diskfile() to deal with convention
17065
17066 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
17067
17068         * server-src/dumper.c (read_mesgfd, read_indexfd): on EOF, just
17069         stop reading these streams.  We let EOF on the data stream cause
17070         the entire dump to be stopped.
17071
17072 1999-04-27  Mike Grupenhoff <kashmir@munge.com>
17073
17074         * common-src/rsh-security.c (conn_read_callback): cast
17075         event_wakeup() arg to event_id_t.
17076
17077 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
17078
17079         * common-src/versuff.c.in: Adjust constness to match version.h.
17080
17081         * docs/SYSTEM.NOTES: Recommend GNU tar for Linux.
17082
17083 1999-04-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17084
17085         * server-src/amdump.sh.in: execute amtrmlog.
17086
17087 1999-04-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17088
17089         * client-src/sendbackup.c: rename write_tapeheader to info_taperheader
17090         we already have a write_tapeheader function in dumper.c
17091         * client-src/sendbackup.h: ditto
17092         * client-src/sendbackup-dump.c: ditto
17093         * client-src/sendbackup-gnutar.c: ditto
17094
17095 1999-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17096
17097         * dumper-src/gnutar.pl.in: add debuging code.
17098         * server-src/planner.c (getsize): send optionstr() for estimate 
17099         with a wrapper.
17100         * client-src/selfcheck.c: init program_is_wrapper to 0.
17101         * client-src/sendsize.c: implement DUMPER-API, support only
17102          estimate-direct.
17103
17104 1999-04-22 John R. Jackson  <jrj@purdue.edu>
17105
17106         * configure.in: add --with-broken-fsf to use a read() loop instead
17107         of the fsf ioctl on some broken systems.
17108         * config/acconfig.h: ditto
17109         * tape-src/tapeio.c (tapefd_fsf): ditto
17110
17111 1999-04-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
17112
17113         * docs/SYSTEM.NOTES: Typo
17114         * docs/SAMBA: Update on samba-largefs patch.
17115         * docs/FAQ: New FAQ about promotion of full dumps.
17116
17117 1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
17118
17119         * tape-src/tapeio.c (tape_open): Retry after EBUSY and EINTR too.
17120         Comment out test that would set filename to /dev/null.
17121
17122 1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
17123
17124         * docs/WISHLIST: Global reformat.  Removed fixed issues.  Added
17125         auto-flush mode.
17126
17127 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17128
17129         * server-src/server_util.c: use snprintf instead of ap_snprintf.
17130
17131 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17132
17133         * server-src/server_util.c: new file for utility function.
17134         New function construct_datestamp.
17135         * server-src/server_util.h: ditto
17136         * server-src/Makefile.am: link server_util.c with libamserver.
17137         * amcleanupdisk.c (construct_datestamp): remove function.
17138         * server-src/driver.c: ditto
17139         * server-src/dumper.c: ditto
17140         * server-src/amflush.c: ditto
17141         * server-src/planner.c: ditto
17142
17143 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
17144
17145         * common-src/bsd-security.c: this doesn't need queue.h
17146
17147 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
17148
17149         * common-src/event.c: Insert new events at the head of the eventq,
17150         not the tail, so we don't loop forever if a newly registered
17151         event has the same type as the one currently firing.  Noticed
17152         and diagnosed by Jean-Louis Martineau.
17153         Use a LIST for the eventq, instead of a TAILQ, since we don't need
17154         to do tail insertions anymore.
17155         Make the eventq_* functions take a queue name so we can also use
17156         them for the handle cache.  Rename eventq_append() to eventq_add().
17157
17158 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17159
17160         * dumper-src/gnutar.pl.in: add DUMPER_DIR to INC.
17161
17162 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17163
17164         * client-src/selfcheck.c: Implement DUMPER-API.
17165         * dumper-src/gnutar.pl.in (command_selfcheck): print OK, the function
17166         is not implemented.
17167         * dumper-src/generic-dumper.pl.in (parse_options): option are
17168         separated by ;
17169
17170 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
17171
17172         * server-src/dumper.c: make dumpsize and headersize static.  Rename
17173         nb_header_block to headersize and also make it static.  headersize
17174         now counts bytes instead of blocks, just like the other two.
17175         Use SEEK_SET in an lseek instead of hardcoding 0.
17176
17177 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
17178
17179         * configure.in: implement --with-cflags to allow turning on
17180         compiler warnings and optimizations
17181
17182 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
17183
17184         * common-src/event.c (gethandle, puthandle): new functions that
17185         keep a cache of handles to reduce calls to malloc/free.
17186
17187 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
17188
17189         * common-src/alloc.c (dbmalloc_caller_loc): const the file
17190         arg, use the queue macros to maintain the list.
17191
17192 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
17193
17194         * common-src/versuff.c.in: const the return str of version()
17195         and versionsuffix.  Bump copyright to 1999.
17196
17197 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
17198
17199         * client-src/amandad.c, client-src/amandad.h,
17200         client-src/sendbackup-dump,c, client-src/sendbackup-gnutar.c,
17201         client-src/sendbackup.c, common-src/bsd-security.c,
17202         common-src/dgram,c, common-src/dgram.h, common-src/event.c,
17203         common-src/event.h, common-src/krb4-security.c,
17204         common-src/krb5-security.c, common-src/packet.c,
17205         common-src/packet.h, common-src/protocol.c, common-src/security.c,
17206         common-src/security.h, server-src/amcheck.c, server-src/conffile.c,
17207         server-src/conffile.h, server-src/dumper.c:
17208         update copyright to 1999 on things I've touched this year.
17209
17210 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
17211
17212         * common-src/amanda.h: remove version_info extern.  Bump
17213         copyright to 1999
17214         * common-src/genversion.c: constify version_info.  Emit
17215         {KRB4,KRB5,RSH}_SECURITY.  Bump copyright.
17216         * common-src/version.h: const VERSION_COMMENT and version_info.
17217         const return str and fully prototype versionsuffix() and version()
17218         prototypes.  Bump copyright.
17219         * server-src/planner.c (main): iterate through version_info using
17220         an index instead of a pointer.
17221
17222 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
17223
17224         * server-src/conffile.c: explicitly give the seen_columnspec global
17225         an int type instead of letting the compiler default to it.
17226
17227 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
17228
17229         * common-src/event.h (event_id_t): a new typedef for the
17230         first arg to event_register.  Should be wide enough to
17231         reasonably hold an int or a pointer (but it is ok to trunc
17232         the pointer if necessary).  Update proto for event_register()
17233         and event_wakeup().
17234         * common-src/event.c: struct event_handle->data is now an
17235         event_id_t.
17236         (event_register, event_wakeup): adjust args for event_id_t)
17237         (event_register): event_id_t is unsigned, no need to assert
17238         positivity anymore.
17239         * common-src/rsh-security.c (rsh_stream_read): cast first arg to
17240         event_register() to event_id_t.
17241
17242
17243 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
17244
17245         * common-src/event.c (release): nuke, and inline into event_loop.
17246         * common-src/event.c (event_loop): flesh out the timeout comment.
17247         Combone the EV_WAIT and EV_DEAD empty cases in the post-select loop.
17248         * common-src/event.h: flesh out the event_type_t comment.
17249
17250 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
17251
17252         * common-src/event.c (fire): inline this with a macro.  Remove
17253         timestamp arg.  eh->lastfired is now only valid for EV_TIME
17254         events.  Removes several time() systems from the critical path.
17255         * common-src/event.c (event_wakeup): have this fire EV_WAIT events
17256         directly instead of deferring back to the event loop.  Removes the
17257         sequencing restriction for event_wakeup.
17258
17259 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
17260
17261         * server-src/planner.c (getsize): put the hosts disks on the waitq
17262         before sending the request, not after.
17263
17264 1999-04-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
17265
17266         * docs/UPGRADE: Update URL for archived message.
17267
17268 1999-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17269
17270         * server-src/amcheck.c (main): should not set real uid to 0.
17271
17272 1999-04-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17273
17274         * common-src/bsd-security.c (bsd_connect): dgram_bind return the port
17275         number, we don't need ntohs().
17276
17277 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
17278
17279         * common-src/dgram.c,common-src/dgram.h: nothing uses dgram_alloc()
17280         anymore, gc them.
17281
17282 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
17283
17284         * server-src/amindexd.c: dgram.h not needed
17285
17286 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
17287
17288         * common-src/event.c: fix a bunch of inaccurate comments.
17289         * common-src/event.c (event_loop): prune dead events in the
17290         pre-select pass instead of in the EV_WAIT pass.
17291         * common-src/event.c (fire): factor out all code that fires
17292         events into a 'fire' function.
17293         * common-src/event.c (signal_handler): bounds check the signal
17294         number against the size of sigtable instead of assuming sigtable
17295         is NSIG big.
17296
17297 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
17298
17299         * client-src/amandad.c (allocstream): if security_stream_server()
17300         fails, dbprintf the error.
17301
17302 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
17303
17304         * configure.in: implement --with-rsh-security
17305         * common-src/rsh-security.c: first attempt at using rsh or a rsh-like
17306         command for dump transport and authentication.  Still has lots
17307         of "issues"
17308         * common-src/Makefile.am: build rsh-security.c
17309         * common-src/security.c: add rsh_security_driver to the drivers array
17310         * config/acconfig.h: define RSH_SECURITY
17311
17312 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
17313
17314         * server-src/dumper.c (runcompress): use the proper end of the pipe
17315         for writing and reading.  Also, grab errno early on fork error
17316         before calling close.
17317         * server-src/dumper.c (sendbackup_response): make sure the client
17318         at least send us a mesgfd and datafd.
17319
17320 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
17321
17322         * client-src/amandad.c (main): don't dup stdout to db_fd - it might
17323         be needed by the security driver
17324         * client-src/amandad.c (s_ackwait, allocstream,): on error, don't
17325         attempt to event_release a handle we haven't attached yet.
17326
17327 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
17328
17329         * ap_snprintf -> snprintf, ap_vsnprintf -> vsnprintf
17330
17331 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17332
17333         * client-src/Makefile.am (noinst_HEADERS): add amandad.h
17334
17335 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17336
17337         * common-src/Makefile.am (libamanda_la_SOURCES): build
17338         krb4-security.c
17339
17340 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17341
17342         * configure.in: implement --with-dbmalloc=[dir], where dir is
17343         where the dist is unpacked and built.  This could be improved on,
17344         because it doesn't handle the case where it's installed.
17345
17346 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17347
17348         * client-src/sendbackup.c: security changes:
17349         remove krb4 code and NAUGHTY_BITS macros.
17350         (parse_options): don't look for krb4 options
17351         (main): don't close pipes that were handed to us from amandad.
17352         Don't open stream directly - just use the pipes given to us.
17353         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c:
17354         Remove krb4 code and NAUGHTY_BITS macros.
17355
17356 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17357
17358         * client-src/amandad.h: new file describing the pipes between
17359         amandad and children.
17360         * client-src/amandad.c: rewrite for security changes.  Can
17361         now handle multiple requests simultaneously, and has a state
17362         machine to deal with each active request.
17363         This handles all network transmissions and authentication.
17364         Each child process (sendbackup, selfcheck) gets three general
17365         purpose pipes to amandad which it may allocate for anything.
17366         amandad relays these pipes to equivalent security_streams.
17367         Lots of other stuff.
17368         Finally, NEED_KEYPIPE stuff removed.
17369
17370 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17371
17372         * server-src/dumper.c: security changes:
17373         Remove krb4 includes and NAUGHTY_BITS macros.
17374         Remove no-longer-true comment about DATABUF_SIZE ==
17375         TAPE_BLOCK_BYTES for krb4
17376         Remove file descriptor and event handle from streams array.  Add
17377         a security_stream_t.
17378         Remove global read buffer.
17379         (check_options): remove krb4 code.
17380         (service_ports_init): remove, now handled by individual security
17381         drivers.
17382         (main): remove dgram usage.
17383         (do_dump): remove DUMPER_SOCKET_BUFFERING - now handled in the
17384         bsd driver.  schedule reads on the streams using
17385         security_stream_read.
17386         (read_mesgfd,read_datafd,read_indexfd): adapt to
17387         security_stream_read callback interface.
17388         (stop_dump): just call security_stream_close on all non-null
17389         streams.
17390         (sendbackup_response): adapt to new protocol layer error return.
17391         Remove krb4 code.
17392         (startup_dump): stinky hack to parse the security driver string out of
17393         the options passed to us from driver.
17394         Lookup the security driver with said string.
17395         Remove krb4 code.
17396         Free request after calling protocol_sendreq().
17397
17398 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17399
17400         * server-src/planner.c: security changes:
17401         (main): Remove dgram usage.  Call protocol_init().  Remove
17402         krb4 code.
17403         (getsize): remove krb4 code.  Handle protocol layer api changes.
17404         Lookup security driver/complain if not found.  Free request
17405         after calling sendreq.  All hosts get put on the waitq since
17406         sendreq never returns an error.
17407         (handle_result): deal with new protocol layer error semantics.
17408         Remove krb4 code.
17409
17410 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17411
17412         * server-src/conffile.c: remove INTERFACE undef hack.  Our
17413         namespace isn't polluted by krb4 headers anymore, so it's
17414         unneeded.
17415
17416 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17417
17418         * server-src/amcheck.c: security changes:
17419         (main): ignore SIGPIPE - some security drivers might get it.
17420         Remove all usages of dgram.
17421         Make our real uid root and our effective uid amanda so we can
17422         get back to root later (on most os's :()
17423         (start_client_checks): remove krb4 bits.
17424         The dump user check should check the effective uid.
17425         Get the name of the security driver for this host out of
17426         host->diskp->security_driver.
17427         Free req after calling protocol_sendreq() because it will internalize
17428         it.
17429         protocol_sendreq doesn't return any errors - they're all returned
17430         via handle_response.
17431         (handle_result): renamed from handle_response for consistency.
17432         The protocol layer doesn't pass us a proto_t anymore, so detect
17433         errors based on pkt being NULL.
17434         Remove krb4 bits - security violations will be indicated by a 
17435         NULL pkt.
17436
17437 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17438
17439         * common-src/protocol.[ch]: rewrite for security api.  The entry
17440         points now have the 'protocol' prefix.  See protocol.h for more
17441         info.
17442         * common-src/security.c: rewrite for security api.  This now contains
17443         the functions for the 'base class' or some approximation of it.
17444         See security.h for the entry points, or docs/SECURITY-API.
17445
17446 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17447
17448         * common-src/amanda.h: rip out krb4 defines, headers, and
17449         prototypes.  Also, make assert() abort() after calling error().
17450         * common-src/krb4-security.c: stub file that pulls in the real
17451         krb4-security out of amanda-krb-2 if KRB4_SECURITY is defined.
17452
17453 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17454
17455         * server-src/conffile.h: aggregate all of the compress defines
17456         (COMP_{NONE,FAST,BEST,...}) into an enum and typedef it to comp_t.
17457         Make dumptype_t->compress a comp_t.
17458         * server-src/dumper.c: make srvcompress global a comp_t.
17459         * server-src/dumper.c (runcompress): add a comp_t third arg
17460         that specifies the level of compression for this fd.
17461         * server-src/dumper.c (do_dump): always compress index files
17462         with COMP_BEST compression, as pointed out by Jean-Louis Martineau.
17463         * server-src/dumper.c (read_indexfd): read the indexfd, not the
17464         datafd.  Also noted by Jean-Louis Martineau.
17465
17466 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17467
17468         * server-src/planner.c (main): ignore SIGPIPE.  tcp based
17469         security drivers may get this while getting estimates.
17470         Set the real uid to root, and the effective uid to the amanda
17471         user, so we can get back to root later if needed.
17472         * server-src/planner.c (handle_result): rework error logic
17473         so we don't need to use p->state, which will eventually go
17474         away.
17475
17476 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
17477
17478         * server-src/dumper.c: rewrite to use the event handler instead
17479         of a select loop.  Also, compress the index output using
17480         runcompress() instead of forking a compress ourselves.
17481
17482 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
17483
17484         * server-src/dumper.c (sendbackup_response): don't krb4 authenticate
17485         streams if krb4_auth if false.
17486
17487 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
17488
17489         * server-src/dumper.c (do_dump): some formatting cleanups.  Nuke
17490         'killerr' - we can do without it.
17491
17492 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
17493
17494         * server-src/dumper.c (do_dump): store compresspid inside of
17495         the databuf
17496
17497 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
17498
17499         * server-src/dumper.c (parse_info_line): parse info lines
17500         from sendbackup directly into the 'file' global.  Eliminate
17501         the backup_name, recover_cmd, and compress_suffix globals.
17502         * server-src/dumper.c (finish_tapeheader): nuke usage
17503         of above globals.  Nuke unneeded explicit nul terminations (we
17504         memset the whole thing in fn_init).
17505
17506 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
17507
17508         * server-src/dumper.c (process_dumpline): rewrite to use strtok
17509         and const the argument.
17510         * server-src/dumper.c (make_tapeheader): rename to finish_tapeheader
17511         and prototype it.  Remove the 'type' arg, since it's always
17512         F_DUMPFILE.  Remove call to fn_init().
17513         * server-src/dumper.c (do_dump): call fh_init on 'file' while
17514         initializing globals.  Call finish_tapeheader after getting info
17515         endline.
17516
17517 1999-04-07 John R. Jackson  <jrj@purdue.edu>
17518
17519         * tape-src/tapeio.c: allow tapedev to be /dev/null.
17520         * server-src/taper.c: allow tapedev to be /dev/null.
17521         * man/amanda.8.in: allow tapedev to be /dev/null.
17522
17523 1999-04-07  Mike Grupenhoff <kashmir@munge.com>
17524
17525         * server-src/dumper.c: collect got_info_endline, got_sizeline,
17526         got_endline, and header_done into one bitmask global, and make it
17527         static.  Also, make 'file' static.
17528
17529 1999-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17530
17531         * server-src/reporter.c (TextRule): Fix to write the full string.
17532
17533 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17534
17535         * configure.in: MIT krb5 has libk5crypto, Cygnus kerbnet 1.2
17536         calls it libcrypto.  Check for both.
17537
17538 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17539
17540         * common-src/bsd-security.c (check_user): if an .amandahosts
17541         file is missing or unreadable, log this fact to the debug file
17542         instead of claiming that a user doesn't have permission.
17543         * common-src/bsd-security.c (bsd_stream_client): if
17544         DUMPER_SOCKET_BUFFERING is defined, set the socket read buffer to
17545         be twice the size of our read buffer.
17546
17547 1999-04-06  David Mankins <dm@k12-nis-2.bbn.com>
17548
17549         * common-src/security.c (bsd_security_ok): if an .amandahosts
17550         file is missing or unreadable, log this fact to the debug file
17551         instead of claiming that a user doesn't have permission.
17552
17553 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17554
17555         * server-src/dumper.c: put all of the streams (data,mesg,index)
17556         into an array with a name tag.
17557         * server-src/dumper.c (stop_dump): new function that cleans up
17558         and shuts down all of the streams.
17559         * server-src/dumper.c (sendbackup_response): make static, pass
17560         response_error through p->datap instead of making it global.
17561         Rewrite the parsing to use strtok() and take advantage of the
17562         streams array instead of repeading code for all three streams.
17563
17564 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17565
17566         * server-src/dumper.c (main): keep our real uid as 0, and make
17567         our effective uid nonprivlidged, so we can get back to root
17568         later.  Don't print what port we bound to.  This info won't
17569         always be available or even applicable.
17570         * server-src/dumper.c (do_dump): create the stats line with one
17571         snprintf instead of a huge amount of code.
17572
17573 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17574
17575         * server-src/dumper.c (startup_dump): make static, and const all
17576         of the string args
17577         * server-src/dumper.c (do_dump): make static
17578
17579 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17580
17581         * server-src/dumper.c (do_dump): no need to have a separate buffer
17582         to read the mesgfd - just reuse the one we used for data reads.
17583         Gets rid of one more global.  Also, we don't need to leave
17584         space for a NUL anymore.
17585         * server-src/dumper.c (main): wait for children after closing
17586         our fds.  Some children may be blocked waiting for EOF on outfd,
17587         effectively causing deadlock between dumper and child.
17588
17589 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17590
17591         * server-src/dumper.c (add_msg_data): now takes a 'len' arg, and
17592         doesn't expect the data to be nul terminated.  Also, move
17593         the buffer from global scope into the function, and have a NULL
17594         arg flush it out if there is leftover data at the end.  Finally,
17595         resize the buffer in 256 byte chunks.
17596
17597 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17598
17599         * common-src/stream.c, common-src/stream.h (stream_client): add
17600         yet another arg - if nonzero, do a nonblocking connect
17601         * server-src/dumper.c: catch up with extra arg to stream_client()
17602
17603 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17604
17605         * common-src/bsd-security.c, common-src/security.h: attempt
17606         to decouple security streams from security handles.  Lots of
17607         other restructuring.
17608
17609 1999-04-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17610
17611         * server-src/amcheck.c: -t should read the tapelist to validate
17612         the label.
17613
17614 1999-03-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
17615
17616         * patches/samba-largefs.patch: updated to patch that ended up
17617         installed in the Samba CVS tree
17618
17619         * patches/tar-1.12.patch: patch the configure script so that it
17620         requires autoconf and autoheader to be run; improve the
17621         printf_long_long test so that it doesn't get false positives because 
17622         of endianness
17623
17624         * changer-src/scsi-chio.c: since we do not support FreeBSD 3's
17625         camlib.h interface, #ifdef out all the code
17626         Reported by Francis Lam <Francis.Lam@Leitch.com>
17627
17628         * configure.in (VXSYSLOCPATH): apparently a complex path expression
17629         gets AC_PATH_PROGS confused; set the path beforehand
17630         Reported by Francis Lam <Francis.Lam@Leitch.com>
17631
17632 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17633
17634         * server-src/reporter.c: compiler warning.
17635
17636 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17637
17638         * server-src/amtrmlog.c: new program to move unused log 
17639         to logdir/oldlog.
17640         * server-src/Makefile.am: install amtrmlog.
17641         * server-src/find.h: declare find_log().
17642         * server-src/find.c(find_log): new function to return an array of
17643         all the logfile name that are still needed.
17644         * server-src/find.c(search_logfile): special case if output_find==NULL,
17645         return 1 if it the logfile fir the label.
17646
17647 1999-03-25  Neil Crellin  <neil@wallaby.cc>
17648
17649         * docs/TAPE.CHANGERS (chg-chs): URL for chs
17650
17651 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>, Tom Schutter  <tom@platte.com>, Cloyce D. Spradling  <cloyce@headgear.org>
17652
17653         * patches/samba-largefs.patch: updated for Samba 2.0.*
17654
17655 1999-03-25  Charles Owens  <owensc@enc.edu>
17656
17657         * changer-src/chg-chio.pl.in (changeTape): do not print status to
17658         both stdout and stderr; this causes failures on FreeBSD
17659
17660 1999-03-23  Mike Grupenhoff <kashmir@munge.com>
17661
17662         * common-src/stream.c, common-src/stream.h (stream_client):
17663         const the hostname arg
17664
17665 1999-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17666
17667         * configure.in: AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
17668         * dumper-src/gnutar.pl.in: use @GNUTAR_LISTED_INCREMENTAL_DIR@
17669
17670 1999-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17671
17672         * configure.in: default for DUMPER_DIR is $exec_prefix/dumper.
17673         * Makefile.am: make dumper-src directory
17674         * dumper-src: directory for program that implement the DUMPER-API.
17675         * dumper-src/Makefile.am:
17676         * dumper-src/generic-dumper.pl.in: first draft of a generic wrapper.
17677         * dumper-src/gnutar.pl.in: first draft of a gnutar wrapper.
17678
17679 1999-03-21  Elmar Bartel  <bartel@Informatik.TU-Muenchen.DE>
17680
17681         * conffile.h, conffile.c: new columnspec option
17682         * reporter.c: use it
17683         * man/amanda.8.in: description and example
17684         * example/amanda.conf.in: ditto
17685
17686 1999-03-20  Dahn Nilsson <dahn.nilsson@maxlab.lu.se>
17687
17688         * configure.in: SAMBA_VERSION is not set correctly.
17689
17690 1999-03-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
17691
17692         * client-src/sendbackup-dump.c (re_table): generalize a bit some of
17693         the regular expressions, so as to make us more adaptable to future
17694         minor changes and bugfixes the the output format of some dumps
17695
17696 1999-03-16 Thomas Hepper <th@ant.han.de>
17697         * changer-src/chg-scsi.c: If the open of the TapeDevice fails
17698         the programm is not terminated.
17699         * changer-src/scsi-aix.c: The wrong ident string was checked
17700         for 0 termination.
17701         * changer-src/scsi-bsd.c: see scsi-aix.c
17702         * changer-src/scsi-linux.c: see scsi-aix.c
17703         * changer-src/scsi-solaris.c: see scsi-aix.c
17704         * changer-src/scsi-changer-driver.c: Added some more debug prints.
17705         Wrong fd passwd to LogSense.
17706         * docs/TAPE.CHANGERS: added note about linux and aha1542
17707
17708 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
17709
17710         * common-src/packet.h: explicitly list the numeric values for
17711         the pktype_t enum, so we can use them on the wire
17712
17713 1999-03-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
17714
17715         * config/ltconfig, config/ltmain.sh: updated from libtool 1.2f
17716         * config/libtool.m4i, config/config.guess, config/config.sub: ditto
17717         * configure.in: dropped AC_PROG_RANLIB, as suggested by libtoolize
17718
17719 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
17720
17721         * common-src/bsd-security.c (recv_security_ok): bring over
17722         increased verbosity change from common-src/security.c
17723
17724 1999-03-14  Mathias Herberts  <Mathias.Herberts@ago.fr>
17725
17726         * man/amrecover.8.in: document mode and setmode
17727
17728 1999-03-14  Jon Stevens  <jon@clearink.com>
17729
17730         * common-src/security.c (bsd_security_ok): increase the verbosity of 
17731         failed authentication messages
17732
17733 1999-03-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
17734
17735         * configure.in (powerpc-*-linux-*): supported platform
17736         * README: ditto
17737         Reported by Jon Stevens <jon@clearink.com>
17738
17739 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17740
17741         * configure.in: new option --with-dumperdir=DIR to specify the 
17742         directory for the dumpers (dumper api).
17743         * config/acconfig.h: add def of DUMPER_DIR
17744
17745 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17746
17747         * server-src/conffile.c: accept any string for the program.
17748         * server-src/amcheck.c: add the keyword DUMPER to the request if 
17749         the program is not DUMP or GNUTAR.
17750         * server-src/planner.c: ditto
17751         * server-src/dumper.c: ditto
17752
17753 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17754
17755         * server-src/dumper.c (startup_dump): rename dumpname to progname.
17756         the function will use the parameter progname instead of the
17757         global variable.
17758
17759 1999-03-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
17760
17761         * configure.in (openbsd): according to Ralf Gebhart
17762         <rgebhart@cybernet-ag.net>, sparc-unknown-openbsd2.3 is supported;
17763         I assume other openbsd platforms work too.
17764
17765 1999-03-06 Thomas Hepper <th@ant.han.de>
17766
17767         * client-src/sendbackup-gnutar.c: Replaced #fi with #endif
17768         * changer-src/: Get in sync with 2.4.2 Version
17769
17770 1999-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17771
17772         * configure.in: set SAMBA_VERSION
17773         * client-src/sendbackup-gnutar.c (start_backup): use -q flag
17774         if SAMBA_VERSION >= 2
17775
17776 1999-03-05 Mathias Herberts <Mathias.Herberts@ago.fr>
17777
17778         * recover-src/amrecover.h (set_mode, show_mode) declare new functions.
17779         * recover-src/amrecover.h (SAMBA_SMBCLIENT, SAMBA_TAR) define new 
17780         constant.
17781         * recover-src/extract_list.c: declare variable samba_extract_method.
17782         * recover-src/extract_list.c (extract_files_child): set dumptype
17783         according to samba_extract_method.
17784         * recover-src/help.c (help_list): print help for new command mode
17785         and showmode.
17786         * recover-src/set_commands.c (set_mode, show_mode): new functions.
17787         * recover-src/uscan.l:
17788         * recover-src/uparse.y:
17789
17790 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
17791
17792         * common-src/amanda.h: use ssize_t in writev return value
17793         * common-src/bsd-security.c (bsd_stream_write,bsd_stream_read):
17794         use ssize_t over int
17795         * common-src/file.c (areads): use ssize_t to hold read() return val
17796         * common-src/fileheader.c (fill_buffer): usse ssize_t to hold read()
17797         return val
17798         * common-src/security.h: stream_read's callback now takes a ssize_t
17799         as the third argument.
17800         * common-src/writev.c (writev): return a ssize_t
17801
17802 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
17803
17804         * configure.in: check for ssize_t, make it int if not present
17805         * config/acconfig.h: add def for ssize_t
17806
17807 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
17808
17809         * common-src/base64.c (base64encode): don't cast away a const
17810         needlessly.
17811
17812 1999-03-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17813
17814         * common-src/bsd-security.c (stream_read_callback): change n to int
17815         since ssize_t doesn't exist on all OS.
17816
17817 1999-03-03  Ralf Fassel <ralf@akutech.de>
17818
17819         * common-src/conffile.h: bit field of length 1 should be unsigned int,
17820         not int.
17821
17822 1999-03-03  Ralf Fassel <ralf@akutech.de>
17823
17824         * common-src/bsd-security.c (stream_read_callback): n should be ssize_t.
17825
17826 1999-03-03  Ralf Fassel <ralf@akutech.de>
17827
17828         * changer-src/scsi-changer-driver.c (CloseDevice): wrong assignment.
17829
17830 1999-03-03  Ralf Fassel <ralf@akutech.de>
17831
17832         * common-src/base64.c (base64encode): remove warning from sgi cc
17833         compiler.
17834
17835 1999-03-03  Mike Grupenhoff <kashmir@munge.com>
17836
17837         * common-src/bsd-security.c: use EV_WAIT events instead of
17838         maintaining a queue of listeners.  Refcnt the dgram read event
17839         handle.
17840
17841 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17842
17843         * server-src/driverio.h: new parameter level to update_info_taper().
17844         * server-src/driverio.c (update_info_taper): use parameter instead
17845         of sched(dp)->level.
17846         * server-src/driver.c: call update_info_taper with level parameter.
17847         * server-src/amflush.c: call update_info_taper with level parameter.
17848         no longer need to create a sched_t struct.
17849
17850 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17851
17852         * server-src/driverio.h: remove declaration of inparallel, cmdstr()
17853         and childstr(), declare init_driverio(), add inparallel parameter
17854         to startup_dump_processes().
17855         * server-src/driverio.c (init_driverio): new function to initialize
17856         dmptable and taper.
17857         * server-src/driverio.c (childstr): scan for all dumpers (MAX_DUMPERS)
17858         instead of only inparallel
17859         * server-src/driverio.c (startup_dump_processes): new parameter
17860         inparallel is used instead of global variable.
17861         * server-src/driver.c (main): call init_driverio.
17862         * server-src/driver.c (main): call startup_dump_processes with 
17863         inparallel parameter.
17864         * server-src/amflush.c (main): call init_driverio.
17865
17866 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17867
17868         * server-src/amrmtape.sh.in: work with "last_level" and
17869         "consecutive_runs" in the ouput of "amadmin export".
17870
17871 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
17872
17873         * common-src/security.h: implement security_connect callback and
17874         security_status_t changes
17875
17876 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
17877
17878         * common-src/bsd-security.c (bsd_connect): properly munge the uids
17879         to get a reserved port
17880         * common-src/bsd-security.c: adapt to the security_connect
17881         callback changes
17882         * common-src/bsd-security.c (bsd_sendpkt): dgram_cat is varargs now,
17883         so skip the vstralloc
17884
17885 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
17886
17887         * common-src/event.c: implement EV_WAIT events.  Implement macros
17888         for adding/removing/traversing the event queue
17889         * common-src/event.h: define EV_WAIT, and prototype event_wakeup()
17890
17891 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17892
17893         * docs/WISHLIST: protocol between the driver and dumpers.
17894
17895 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17896
17897         * server-src/amtoc.pl.in: output the datestamp of each dump, because
17898         amflush can flush the same disk multiple date.
17899
17900 1999-02-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17901
17902         * server-src/holding.h: declare struct holding_t.  Remove 
17903         declaration of insert_dirname, scan_holdingdisk.  Declare 
17904         new function free_holding_list.  pick_datestamp and 
17905         pick_all_datestamp now return (holding_t *).
17906         * server-src/holding.c (insert_dirname): new parameter holding_list
17907         where we add the name. Can add more than MAX_DIRS name.
17908         * server-src/holding.c (free_holding_list): new function to free
17909         a holding list.
17910         * server-src/holding.c (scan_holdingdisk): new parameter holding_list.
17911         * server-src/holding.c (pick_all_datestamp, pick_datestamp): return
17912         a list instead of a (char **).
17913         * server-src/find.c (search_holding_disk): use the list return by
17914         pick_all_datestamp.
17915         * server-src/amflush.c: use the list return by pick_datestamp.
17916         * server-src/amcleanupdisk.c (check_disks): use the list return by
17917         pick_all_datestamp.
17918
17919 1999-02-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17920
17921         * server-src/driverio.c (addfd): bug fixe.
17922
17923 1999-02-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
17924
17925         * client-src/sendbackup-gnutar.c: new regexp for SAMBA
17926         Reported by Grzegorz Mucha <grzegorz.mucha@solidex.com.pl>
17927
17928 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
17929
17930         * server-src/amtoc.pl.in: minor fixes for multi-tape runs
17931
17932 1999-02-17  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
17933
17934         * server-src/amtoc.pl.in: complete, backward-incompatible rewrite;
17935         command-line arguments changed
17936         * man/amtoc.8.in: ditto
17937
17938 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
17939
17940         * changer-src/chg-multi.sh.in: minor portability changes
17941         * docs/TAPE.CHANGERS: originally by James da Silva
17942
17943 1999-02-17  Jean-Francois Dockes <dockes@cdkit.remcomp.fr>
17944
17945         * changer-src/chg-multi.sh.in: various portability changes and
17946         general fixes, particularly for multieject; new cycle mode
17947         * docs/TAPE.CHANGERS: detailed description of chg-multi
17948         * example/chg-multi.conf: updated; added reference to
17949         docs/TAPE.CHANGERS for details
17950
17951 1999-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17952
17953         * server-src/driverio.h: remove declaration of addfd.
17954         * server-src/driverio.c (addfd): 2 new arguments, readset and maxfd,
17955         don't use global variable.
17956         * server-src/driverio.c (startup_tape_process, startup_dump_process):
17957         call addfd with new argument.
17958
17959 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17960
17961         * server-src/driverio.c (startup_tape_process): new taper_program
17962         argument.
17963         * server-src/driverio.h: remove declaration of taper_program.
17964         * server-src/driver.c (main): declare taper_program.
17965         * server-src/driver.c: call startup_tape_process with the new 
17966         taper_program argument.
17967         * server-src/amflush.c (run_dumps): declare taper_program.
17968         * server-src/amflush.c (run_dumps): call startup_tape_process with 
17969         the new taper_program argument.
17970
17971 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17972
17973         * server-src/driverio.c (startup_dump_process, startup_dump_processes):
17974         new dumper_program argument.
17975         * server-src/driverio.h: remove declaration of dumper_program.
17976         * server-src/driver.c: declare dumper_program.
17977         * server-src/driver.c: call startup_dump_process and
17978         startup_dump_processes with the new dumper_program argument.
17979
17980 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17981
17982         * server-src/list_dir.h: remove global variable dir_list, declare
17983         new function get_dir_list.
17984         * server-src/list_dir.c (get_dir_list): new function to return dir_list.
17985         * server-src/amindexd.c (opaque_ls): use get_dir_list.
17986
17987 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17988
17989         * server-src/holding.h: remove declaration of get_letter_from_user()
17990         and select_dir().
17991         * server-src/holding.c: remove function get_letter_from_user() and
17992         select_dir().
17993         * server-src/holding.c (pick_datestamp): return empty array instead
17994         of calling exit if no directory are found.
17995         * server-src/amflush.c (get_letter_from_user): new function copied
17996         from holding.c.
17997         * server-src/amflush.c (confirm): write a message and exit if no
17998         directory were found.
17999
18000 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18001
18002         * server-src/amflush.c (flush_holdingdisk): don't update the database
18003         when flushing a partial dump.
18004
18005 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18006
18007         * server-src/holding.h (get_dumpfile): new function
18008         * server-src/holding.c (get_dumpfile): new function to fill a 
18009         dumpfile_t struct from a holding file.
18010
18011 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18012
18013         * server-src/amlabel.c: compiler warning: too many arguments for format
18014
18015 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18016
18017         * server-src/amlabel.c: remove the label from the tapefile in
18018         case it was already there (-f).
18019
18020 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18021
18022         * server-src/dumper.c: make sure holding files are not larger
18023         that chunksize.
18024
18025 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18026
18027         * server-src/amcleanupdisk.c: new program to scan and find temporary
18028         file on holding disks.
18029         * server-src/Makefile.am (libexec_PROGRAMS): add amcleanupdisk.
18030         * server-src/amcleanup.sh.in: call amcleanupdisk.
18031
18032 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18033
18034         * server-src/holding.c (pick_all_datestamp): new function to return
18035         all datestamp in the holding disks.
18036         * server-src/holding.h: declare pick_all_datestamp.
18037
18038 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18039
18040         * server-src/diskfile.h (host_t): new start_t field.
18041         * server-src/diskfile.c (read_diskline): set start_t to 0.
18042         * server-src/driver.c (start_some_dumps): Don't start a dump if
18043         the host->start_t > now.
18044         * server-src/driver.c (start_some_dumps): set host->start_t to 15 sec
18045         in the future when starting a FILE_DUMP.
18046         * server-src/driver.c (dump_to_tape): set host->start_t to 15 sec in
18047         the future when starting a PORT_DUMP.
18048
18049 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
18050
18051         * server-src/amlabel.c (main): try to read just-written tape label
18052         back; if wrendmark overwrote the label, suggest using a
18053         non-rewinding device
18054         * tape-src/tapeio.c (tape_wrendmark): would not close tape device if 
18055         wrendmark failed
18056
18057 1999-02-10  Paul Bijnens  <Paul.Bijnens@lant.be>
18058
18059         * server-src/amoverview.pl.in: Y2K fix in output to user
18060         * server-src/amtoc.pl.in (print_info): ditto
18061
18062 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
18063
18064         * client-src/sendsize.c (getsize_dump): do not redirect standard
18065         output of estimator to /dev/null if we HAVE_DUMP_ESTIMATE
18066
18067 1999-02-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
18068
18069         * NEWS: fix description of incronly: it won't really perform full
18070         backups
18071
18072         * NEWS: support for ufsdump -S, incronly strategy and new chunksize
18073         default
18074
18075         * server-src/conffile.c (init_holdingdisk_defaults, chunksize):
18076         default to 1Gb
18077         * example/amanda.conf.in: ditto
18078         * man/amanda.8.in: ditto
18079
18080         * configure.in (amanda_cv_dump_estimate): check for support for -S
18081         too, and define HAVE_DUMP_ESTIMATE as the estimate switch, if any
18082         * client-src/sendsize.c (re_size): new regexps for Solaris ufsdump
18083         -S and Samba `du'.  Restrict regexp that matched Digital Unix'
18084         dump -E so that it doesn't match smbclient's output any more.
18085         Move some regexps around, and only define them if the corresponding
18086         dump program is available
18087
18088 1999-02-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
18089
18090         * example/amanda.conf.in: document the behavior of relative
18091         exclude-list files
18092         * man/amanda.8.in: ditto
18093
18094         * man/amanda.8.in (exclude list): the GNU tar flag is
18095         --exclude-from, not --exclude-list
18096         Reported by Tom Schutter <tom@platte.com>
18097
18098         * client-src/sendbackup-gnutar.c (re_table): ignore `session request 
18099         to' message printed by Samba 2.0.0
18100
18101 1999-01-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
18102
18103         * man/amanda.8.in (comprate): it is not used when there is history
18104         information; useful for large disks that compress little
18105         Reported by job bogan <job@piquin.uchicago.edu>
18106
18107         * Makefile.am: select which SUBDIRS to descend to here
18108         * client-src/Makefile.am: removed if WANT_CLIENT
18109         * tape-src/Makefile.am: removed if WANT_TAPE
18110         * server-src/Makefile.am: removed if WANT_SERVER
18111         * changer-src/Makefile.am: ditto
18112         * restore-src/Makefile.am: removed if WANT_RESTORE
18113         * recover-src/Makefile.am: removed if WANT_RECOVER
18114         * amplot/Makefile.am: removed if WANT_AMPLOT
18115
18116 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
18117
18118         * NEWS: chg-scsi ports, Samba 2.0.0 support and SECURITY API
18119
18120         * configure.in (USE_AMANDAHOSTS): enable by default
18121         * example/config.site: ditto
18122         * docs/INSTALL: ditto
18123         * NEWS: ditto
18124
18125         * docs/INSTALL: updated URLs for GNU packages and Samba
18126         * docs/SAMBA: note that Samba 2.0.0 is supported
18127
18128         * docs/SYSTEM.NOTES (HP/UX): what does `Link severed' mean?
18129
18130 1999-01-27  Thomas Hepper <th@ant.han.de>
18131         * changer-src/scsi-changer-driver.c SCSI_ReadElementStatus
18132         A while loop has to start with while, not if .....
18133
18134 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
18135
18136         * Makefile.am (EXTRA_DIST): sst was added within contrib
18137
18138         * ltmain.sh, ltconfig, libtool.m4i: updated from libtool CVS
18139         * configure.in: AC_SUBST LIBTOOL_DEPS
18140         * Makefile.am: regen libtool if neded
18141
18142         * Makefile.am: declare that we want automake 1.4 and we're a foreign 
18143         package
18144
18145         * configure.in: require autoconf 2.13, and use
18146         AC_VALIDATE_CACHED_SYSTEM_TUPLE instead of
18147         AC_VALIDATE_CACHE_SYSTEM_TYPE
18148         * config/acinclude.m4i: removed AC_VALIDATE_CACHE_SYSTEM_TYPE
18149
18150         * configure.in (SAMBA_CLIENT): updated check for smbclient to
18151         support Samba 2.0.0
18152
18153 1999-01-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
18154
18155         * server-src/amdump.sh.in (runuser): set to LOGNAME if defined, and
18156         to the output of whoami otherwise
18157         Reported by Tom Schutter <tom@platte.com>
18158
18159 1999-01-26  Thomas Hepper <th@ant.han.de>
18160         * Makefile.am Added sst driver files to EXTRA_DIST
18161
18162 1999-01-26      Thomas Hepper <th@ant.han.de>   
18163         * changer-src/Makefile.am added to LDADD 
18164         ../tape-src/libamtape.$(LIB_EXTENSION)
18165         * changer-src/chg-scsi.c If statfile is not set try to get the info
18166         about the current loaded tape direct from the changer.
18167         Fixed debug output for the eject value if > 1
18168         * changer-src/libscsi.h Prototype for GetCurrentSlot
18169         * changer-src/scsi-aix.c If the Device we open is not a changer or tape
18170         return NULL, so that the above function can abort. New eject per mtio ioctl.
18171         * changer-src/scsi-bsd.c see scsi-aix.c
18172         * changer-src/scsi-linux.c see scsi-aix.c
18173         * changer-src/scsi-hpux_new.c see scsi-aix.c
18174         * changer-src/scsi-irix.c see scsi-aix.c
18175         * changer-src/scsi-solaris.c see scsi-aix.c and added a retry loop for
18176         the execution of SCSI commands.
18177         * changer-src/scsi-changer-driver.c New Function SCSI_ReadElementStatus
18178         split ReadElementStatus in device and device independed part
18179         New EXB120ElementStatus, renamed ReadElementStatus in GenericElementStatus
18180         added EXB 120 and DLT7000 to the devices list.
18181         Removed the linked list for the element status. Now every element
18182         type has its own array allocated in the *ElementStatus functions.
18183         Check in the functions which sends SCSI commands if the fd is able to
18184         receive SCSI commands.
18185         In GenericEject check which type of eject to use (ioctl/SCSI)
18186         New GetCurrentSlot, try to get the info about the loaded tape direct from
18187         the changer.
18188         * changer-src/scsi-chio.c Add function GetCurrentSlot (not well tested yet)
18189         * changer-src/scsi-defs.h Added missing decl. in MediumTransportElementDescriptor_T
18190         for LITTLE_ENDIAN_BITFIELDS
18191         new field from in ElementInfo_T
18192         * changer-src/sci-hpux.c EMpty function GetCurrentSlot, do we still need scsi-hpux.c ?
18193         * docs/TAPE.CHANGERS added some notes for HP-UX, expanded list of tested devices
18194         
18195 1999-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18196
18197         * server-src/conffile.c (init_defaults): default value of runspercycle
18198         is 0.
18199         * server-src/amadmin.c (balance): use default value of runspercycle.
18200         * server-src/planner.c (main): use default value of runspercycle.
18201
18202 1999-01-22  Martin Apel <apel@tecmath.de>
18203
18204         * example/amanda.conf.in: explanation of incronly strategy.
18205         * man/amanda.8.in: explanation of incronly strategy.
18206         * server-src/amadmin.c: recognize incronly strategy
18207         * server-src/conffile.c: read the incronly strategy in the
18208         configuration file.
18209         * server-src/conffile.h: definition of DS_INCRONLY
18210         * server-src/planner.c: Do planning for incronly strategy:
18211         If the force flag is set perform a full dump, otherwise do
18212         normal incremental processing but avoid full dumps.
18213         * server-src/tapefile.c: Bugfix so only tapes which match
18214         the regular expression for tape labels in the current 
18215         configuration are considered for writing.
18216
18217 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
18218
18219         * common-src/bsd-security.c (check_user): there was no uid variable
18220         here; replace with getuid()
18221
18222 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
18223
18224         * server-src/planner.c (output_scheduleline): removed `or historical
18225         data' from `no estimate' message; historical data doesn't matter any 
18226         more
18227         Reported by Giorgos Vlachos <Giorgos.Vlachos@eurodyn.com>
18228
18229 1999-01-20  Todd Pfaff  <pfaff@mcmaster.ca>
18230         
18231         * client-src/sendbackup-gnutar.c: more Samba 2.0.0 messages
18232
18233         * client-src/sendbackup-gnutar.c: new Samba 2.0.0 message 
18234
18235 1999-01-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18236
18237         * server-src/amflush.c: use ap_snprintf instead of snprintf.
18238         * server-src/amflush.c: rotation of new amflush log was broken.
18239
18240 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18241
18242         * server-src/reporter.c: always call output_stats(), the problem is
18243         that degraded_mode is set if amflush fills the tape.
18244
18245 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18246
18247         * server-src/amflush.c: write debuging info to $logdir/amflush
18248         instead of /dev/null if we run in background.
18249         * server-src/amcleanup.sh.in: rename $logdir/amflush.
18250
18251 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
18252
18253         * server-src/dumper.c (make_tapeheader): explicitly compare
18254         srvcompress against srvcomp_none instead of assuming that
18255         srvcomp_none's value is 0.
18256
18257 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
18258
18259         * server-src/dumper.c: move max() macro to top of file.  Add min()
18260         * server-src/dumper.c (databuf_write): use min() to determine the
18261         copy size
18262         * server-src/dumper.c (databuf_flush): more clearly calculate the
18263         buffer offset in the write loop
18264
18265 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
18266
18267         * server-src/dumper.c (databuf_write): Egads!  Also increment the
18268         source pointer doing a partial buf copy
18269
18270 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
18271
18272         * common-src/bsd-security.c (check_user): use getpwnam(CLIENT_LOGIN)
18273         instead of getpwuid(getuid()), in case our caller has not done
18274         the setuid().
18275
18276 1999-01-12  Mike Grupenhoff <kashmir@munge.com>
18277
18278         * server-src/dumper.c (add_msg_data): properly check for half-sent
18279         msg lines.
18280
18281 1999-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18282
18283         * server-src/amstatus.pl.in: fix a divide by zero error.
18284
18285 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
18286
18287         * server-src/dumper.c (add_msg_data): clarify and comment.  Remove
18288         'len' arg.  Const 'str' arg.
18289         * server-src/dumper.c (do_dump): compresspid and indexpid should
18290         be pid_t's.  Also, remove len from add_msg_data call.
18291
18292 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
18293
18294         * server-src/fileheader.c (parse_file_header): const the buffer
18295         argument
18296         * server-src/fileheader.h: update parse_file_header proto for const
18297         change
18298
18299 1999-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18300
18301         * server-src/amstatus.pl.in: report the current dump when reporting
18302         the busy time of each dumper.
18303
18304 1998-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18305
18306         * server-src/dumper.c: open temporary holding file with O_TRUNC flags
18307         and with mode 0600.
18308
18309 1998-12-28  John R. Jackson  <jrj@purdue.edu>
18310
18311         * server-src/reporter.c: do not drop core generating labels if the
18312         tape label is not defined, e.g. in degraded mode (compliments of
18313         Jan L. Peterson <jlp@Part.NET>).
18314
18315 1998-12-28  John R. Jackson  <jrj@purdue.edu>
18316
18317         * server-src/amtape.c: initialize two strings to NULL to avoid a
18318         core dump, compliments of G. Allen Morris III <gam3@acm.org>.
18319
18320 1998-12-27  John R. Jackson  <jrj@purdue.edu>
18321
18322         * man/amreport.8.in: remove reference to 8.5x11 paper size for the
18323         3-hole binder.
18324
18325 1998-12-27  John R. Jackson  <jrj@purdue.edu>
18326
18327         * example/3hole.ps: new lbl-templ file for 3 hole punch reports
18328         * example/Makefile.am: add 3hole.ps
18329
18330 1998-12-22  Thomas Hepper <th@icem.de>
18331
18332         * docs/TAPE.CHANGERS Update notes about chg-scsi
18333         * changer-src/chg-scsi.c Added new config option tapestatus,
18334         if set the tape log pages are written to this file.
18335         changed parameter list for get_clean_state/ask_clean,
18336         * changer-src/libscsi.h changed parameter list for get_clean_state
18337         * changer-src/scsi-changer-driver.c Added new functions OpenDevice
18338         CloseDevice LookupDevice. 
18339         Added new functions to read and decode the Tape LOG Pages.
18340         Tape Eject and ready check is now done by SCSI calls
18341
18342         * changer-src/scsi-aix.c
18343         * changer-src/scsi-bsd.c
18344         * changer-src/scsi-hpux_new.c
18345         * changer-src/scsi-hpux.c
18346         * changer-src/scsi-irix.c
18347         * changer-src/scsi-solaris.c
18348         Changed all SCSI_OpenDevice/SCSI_CloseDevice functions so that they
18349         fit to the new OpenDevice/CloseDevice calls. Removed mtio.h from 
18350         includes, remove Tape_Ready and Tape_Eject
18351         * changer-src/scsi-chio.c
18352         * changer-src/scsi-defs.h
18353
18354         For all changer-src files, removed tabs, run indent (from xemacs)
18355         Added emacs variables to the end (no tab, gnu style)
18356
18357 1998-12-21  John R. Jackson  <jrj@purdue.edu>
18358
18359         * man/amanda.8.in: document the lbl-templ tapetype option.
18360
18361 1998-12-21  John R. Jackson  <jrj@purdue.edu>
18362
18363         * man/amreport.8.in: fix formatting problem.
18364
18365 1998-12-20  John R. Jackson  <jrj@purdue.edu>
18366
18367         * configure.in: define NEED_RESETOFS unless LFS (large file system
18368         support) is available.
18369         * config/acconfig.h: add NEED_RESETOFS tag.
18370         * server-src/taper.c: only reset the tape offset if NEED_RESETOFS
18371         is defined and only once per 2 GBytes.
18372
18373 1998-12-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
18374
18375         * server-src/amlabel.c (main): datestamp for new tapes is now 0
18376         * server-src/tapefile.c (reusable_tape): recognize datestamp 0 as
18377         reusable
18378         * man/amlabel.8.in: document that tapes are added to tapelist
18379
18380 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
18381
18382         * server-src/dumper.c (runcompress): new function.  Given an output
18383         file descriptor, inserts a gzip/compress in front of that descriptor.
18384         * server-src/dumper.c (do_dump): if srvcompress is true, insert
18385         the gzip (using runcompress) in front of the output fd instead
18386         of the input fd.  Only do this after the tapeheader has been written.
18387
18388 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
18389
18390         * server-src/dumper.c (startup_chunker): new function.  When doing
18391         chunking, fork a piped subprocess that reads in a fileheader and
18392         a data stream, and writes out the headered, chunked files.  This
18393         allows us to treat unchunked, chunked, and port-dump dumps exactly
18394         the same.
18395         * server-src/dumper.c (main): file-dump: if chunksize > 0,
18396         call startup_chunker for our outfd.  Otherwise, open the
18397         holding file directly.
18398
18399 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
18400
18401         * server-src/dumper.c (struct databuf): add a chunk_size member,
18402         the size of each chunk.  Remove chunksize global.
18403         * server-src/dumper.c (main): add a chunksize local var
18404         * server-src/dumper.c (databuf_init): init the chunk_size member
18405         with the same value as split_size
18406         * server-src/dumper.c (databuf_flush): increment db->split_size
18407         by the amount in db->chunk_size instead of the global chunksize
18408
18409 1998-12-19  John R. Jackson  <jrj@purdue.edu>
18410
18411         * server-src/amstatus.pl.in: instead of just displaying why no
18412         dumpers were busy, display reason(s) why N+1 were not busy.
18413
18414 1998-12-18  John R. Jackson  <jrj@purdue.edu>
18415
18416         * server-src/amstatus.pl.in: add statistics about how much time
18417         taper and each dumper is busy, how much time N dumpers are busy
18418         and why no dumpers were busy.
18419
18420 1998-12-18  Mike Grupenhoff <kashmir@munge.com>
18421
18422         * server-src/dumper.c (struct databuf): add 'filename', 'filename_seq',
18423         and 'split_size' members to replace the equivalent globals.  Nuke
18424         those globals.
18425         * server-src/dumper.c (databuf_init): add 'filename' and 'split_size'
18426         args to init those members.  Init filename_seq to 0.
18427         * server-src/dumper.c (main): declare and init the databuf here
18428         * server-src/dumper.c (databuf_flush): refer to split_size, filename,
18429         and filename_seq in the databuf instead of the globals.
18430         * server-src/dumper.c (do_dump): now takes a databuf instead of an
18431         output file descriptor.
18432
18433 1998-12-18  John R. Jackson  <jrj@purdue.edu>
18434
18435         * server-src/amstatus.pl.in: fix two perl warnings.
18436
18437 1998-12-18  John R. Jackson  <jrj@purdue.edu>
18438
18439         * server-src/amstatus.pl.in: fix two minor typos.  Add percentage
18440         display to the summary comparing real and estimated size and real
18441         versus total estimate (showing how well the estimates are doing and
18442         a rough guess at how far along the run is).  Also the percentage of
18443         total holding disk space in use.
18444
18445 1998-12-18  John R. Jackson  <jrj@purdue.edu>
18446
18447         * server-src/amstatus.pl.in: take the --file argument as is if it
18448         is an absolute path.
18449
18450 1998-12-18  John R. Jackson  <jrj@purdue.edu>
18451
18452         * server-src/driver.c: call short_dump_state() one last time before
18453         quitting so amstatus gets a last good status.  Tell taper to quit
18454         after the dumpers since it writes more information to the amdump
18455         file (helps prevent mixed messages).
18456
18457 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
18458
18459         * server-src/dumper.c (databuf_flush): return 0 on success
18460
18461 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
18462
18463         * server-src/dumper.c (databuf_flush): new function.  Writes
18464         the contents of the databuf out to its backing file, doing splitting
18465         if necessary
18466         * server-src/dumper.c (databuf_write): call databuf_flush when the
18467         databuf fills up.  Fully complete all writes (no short writes)
18468         * server-src/dumper.c (do_dump): databuf_write now guarantees complete
18469         writes, so remove retry loop.  Call databuf_flush() when eof is hit.
18470         Do not close datafd on eof, because our caller (main) passed it to
18471         us and therefore owns it (and main does close it again).
18472
18473 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
18474
18475         * server-src/dumper.c (databuf_init): new function, initializes
18476         a struct databuf.
18477         * server-src/dumper.c (update_dataptr): rename to databuf_write,
18478         and have it take a buffer and a size, and return how many bytes
18479         of the buffer were written
18480         * server-src/dumper.c (do_dump): use databuf_init to initialize db.
18481         Use databuf_write to add incomign data to the databuf.
18482         Make size1 and size2 local to the blocks they are used in.
18483
18484 1998-12-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
18485
18486         * common-src/Makefile.am (noinst_DATA): removed; bogus
18487         * config/config.guess, config/config.sub: config/install-sh,
18488         config/mkinstalldirs: updated to current pre-2.13 autoconf CVS tree
18489         * patches/autoreconf.patch: removed
18490         * config/libtool/libtool.m4: renamed to config/libtool.m4i
18491         * config/acinclude.m4: renamed to config/acinclude.m4i
18492         * config/Makefile.am (EXTRA_DIST): updated to reflect changes
18493         * autogen: build config/acinclude.m4  by concatenating acinclude.m4i
18494         and libtool.m4i
18495         * configure.in: no longer test whether libtool is installed; require 
18496         newer autoconf
18497         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: updated to
18498         libtool 1.2d
18499         * amplot/Makefile.am (EXTRA_DIST): no longer needed
18500         * changer-src/Makefile.am (chg_scsi_SOURCE): move scsi-defs.h closer 
18501         to the beginning of the list
18502         * docs/INSTALL: fixed URL to gnuplot; recommend autoconf and
18503         automake from CVS
18504
18505 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18506
18507         * common-src/genversion.c (main): rip out krb4 defines.  If we
18508         need this info, each driver will have to do it individually.
18509
18510 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18511
18512         * server-src/conffile.c: remove KRB4_AUTH, BSD_AUTH tokens, auth
18513         element from dumptype_t, and get_auth() lookup func.  Add
18514         security_driver to dumptype_t and parse value of AUTH keyword
18515         as a string.
18516         * server-src/conffile.h: nuke auth_t.  Remove auth_t auth, int s_auth
18517         from typetype_t; add char *security_driver, int s_security_driver.
18518         * server-src/diskfile.c: nuke auth_t auth from disk_t, add
18519         char *security_driver.  Inherit security_driver from the dumptype_t
18520         for this disk.
18521         * server-src/diskfile.h: ditto
18522         * server-src/amadmin.c (disklist_one): output the security-driver
18523         string in place of the auth type
18524         * server-src/amcheck.c (start_client_checks, handle_response):
18525         enum type hostp->disks->auth is gone.  check the string in the
18526         security_driver for this disk for krb4 auth.
18527         * server-src/planner.c (getsize, handle_result): check the string
18528         in hostp->disks->security_driver for the auth type.
18529
18530 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18531
18532         * server-src/amindexd.c: no need to include protocol.h
18533
18534 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18535
18536         * server-src/amindexd.c: remove duplication inclusion of version.h.
18537         Include tapefile.h to get read_tapelist() prototype
18538         * server-src/amindexd.c (build_disk_table): remove a plethora of
18539         unused local vars
18540         * server-src/amindexd.c (main): rename security_ok() call to
18541         check_security(), and define check_security() locally.  security_ok
18542         will disappear when the new security api goes in
18543
18544 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18545
18546         * server-src/changer.c (changer_label): make it return void
18547         to keep gcc warning about control reaching the end of a nonvoid
18548         function.
18549         * server-src/changer.c: update changer_label's proto for previous
18550
18551 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18552
18553         * common-src/amanda.h: define SET, CLR, ISSET macros for dealing
18554         with bitmasks
18555         * server-src/amadmin.c: use the bitmask macros for setting
18556         and clearing the bits in the infofile command word
18557         * server-src/planner.c: ditto.  This fixes a bug in the code that
18558         tried to clear FORCE_FULL with an xor expression that was
18559         never assigned (x ^ FORCE_FULL)
18560
18561 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18562
18563         * common-src/bsd-security.c (bsd_sendpkt): cast uid's to long and
18564         use %ld to print them.
18565
18566 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18567
18568         * common-src/dgram.h: mark dgram_cat with gcc's printf attribute
18569         * common-src/packet.h: ditto for pkt_cat
18570         * common-src/security.h: likewise for security_seterror
18571
18572 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18573
18574         * common-src/error.c (error): const the format arg
18575         * common-src/amanda.h: mark error with gcc's noreturn attribute, and
18576         const its format arg
18577
18578 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18579
18580         * common-src/debug.c (debug_printf): const the format arg
18581         * common-src/amanda.h: const debug_printf's format arg
18582
18583 1998-12-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
18584
18585         * configure.in (BSD SCSI): test ... -a ... is not portable, and less 
18586         so when written test ... -a test ... :-)
18587
18588 1998-12-14  Thomas Hepper <th@icem.de>
18589
18590         * changer-src/Makefile.am Added scsi-bsd.c
18591         * changer-src/chg-scsi.c Initialize *scsitapedevice
18592         * changer-src/scsi-changer-driver.c remove LITTLE_ENDIAN_BITFILEDS
18593         defenition
18594         changed RequestSense to pRequestSense (there is a function 
18595         called RequestSense)
18596         changed error handling in ResetStatus (fix for IRIX)
18597         FIxed length handling for the pages in ReadElemtStatus
18598         * changer-src/scsi-chio.c get_clean_state only returns 0, the
18599         ioctl to get the clean flag is not portable ;-(
18600         changed all (f)printf to dbprintf
18601
18602         * changer-src/scsi-defs.h ElementStatusData_T is for BIG and
18603         LITTLE endian the same ...
18604
18605         * changer-src/scsi-bsd.c New file for FreeBSD
18606
18607         * changer-src/scsi-irix.c Clean up in the return handling
18608         changed RequestSense to pRequestSense
18609         Removed unused function TapeStatus
18610
18611         * changer-src/scsi-linux.c changed RequestSense to pRequestSense
18612         Removed unused function TapeStatus
18613
18614         * changer-src/scsi-solaris.c changed RequestSense to pRequestSense
18615         Removed unused function TapeStatus
18616
18617         * config/acconfig.h added def for BSD_LIKE_SCSI
18618
18619         * configure.in Added check for ENDIAN type AC_C_BIGENDIAN
18620         added sys/scsiio.h and check for BSD SCSI interface
18621
18622 1998-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18623
18624         * server-src/driver.c (handle_dumper_result): rename .tmp files
18625         when receiving ABORT_FINISHED.
18626
18627 1998-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18628
18629         * server-src/driver.c (start_some_dumps): Use the holdp returned
18630         by find_diskspace for a big_dumper in degraded mode.
18631
18632 1998-12-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
18633
18634         * docs/SYSTEM.NOTES (Ultrix): recommend gcc or egcs
18635         (IRIX): patch for xfsdump estimates
18636
18637 1998-12-10  John R. Jackson  <jrj@purdue.edu>
18638
18639         * common-src/amflock.c (main): remove call set_pname() for
18640         CONFIGURE_TEST since error.o is not linked in.
18641
18642 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
18643
18644         * server-src/dumper.c (struct databuf): add a fd member - the file
18645         descriptor that we are buffering
18646         * server-src/dumper.c (update_dataptr): remove
18647         outf arguments, use the fd in the passed databuf.  Return 0 on
18648         success, and -1 on error.
18649         * server-src/dumper.c (update_dataptr): rework and comment the
18650         chunk code a bit.  Get rid of the cont_filename global.
18651         * server-src/dumper.c (do_dump): init the fd member of the databuf
18652         * server-src/dumper.c (write_dataptr): fold back into update_dataptr
18653
18654 1998-12-10  John R. Jackson  <jrj@purdue.edu>
18655
18656         * common-src/amflock.c (main): report CONFIGURE_TEST error messages to
18657         stderr.
18658
18659 1998-12-10  John R. Jackson  <jrj@purdue.edu>
18660
18661         * common-src/amflock.c (main): call set_pname() for CONFIGURE_TEST.
18662         * configure.in: do not set up pname global for lnlock CONFIGURE_TEST.
18663
18664 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
18665
18666         * server-src/dumper.c (update_dataptr): remove pointless backups
18667         of the databuf and associated vars when creating next chunk.
18668         Remove duplicate setting of file.cont_filename.
18669
18670 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
18671
18672         * server-src/dumper.c (main): reuse outfd to clear the open files
18673         passed to us.  Nuke the fd var.
18674         * server-src/dumper.c (update_dataptr): nuke 'split' argument - it
18675         was always set to 1
18676
18677 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
18678
18679         * server-src/dumper.c (write_tapeheader): kill dead code
18680         * server-src/dumper.c (main): remove useless amfree of datestamp.
18681         Add missing break to 'default' case in command loop.
18682         * server-src/dumper.c: kill databuf, spaceleft, and dataptr globals.
18683         Create a 'struct databuf' that holds all three.
18684         * server-src/dumper.c (write_dataptr, update_dataptr): make
18685         these take a 'struct databuf *' as an argument, and have them
18686         operate on its contents instead of the aforementioned globals
18687         * server-src/dumper.c (do_dump): declare a 'struct databuf' here.
18688         Make it static, because it's large.  Use it instead of the
18689         globals.
18690
18691 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
18692
18693         * server-src/dumper.c (main): rework the command loop a bit.
18694         Consolidate all duplicated error cleanup into one place at the
18695         end of the loop after each command has been processed.  Exit
18696         with exit(), not return.
18697
18698 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
18699
18700         * server-src/dumper.c (main, getcmd, write_dataptr): kill argc and
18701         argv globals, pass them as arguments to getcmd() via struct cmdargs.
18702         * server-src/dumper.c (getcmd): make the command lookup table driven.
18703         * server-src/dumper.c (write_dataptr): restructure the command
18704         logic a bit to hopefully clarify things.
18705
18706 1998-12-09  Henning P. Schmiedehausen  <henning@tanstaafl.de>
18707
18708         * client-src/sendbackup.c (parse_options): Added check whether the
18709         pathname of the exclude file is relative and if yes, use the
18710         mountpoint of the filesystem as anchor.  So you can put your exclude
18711         file in the root of the filesystem to backup.
18712         * client-src/sendsize.c (getsize_gnutar): added the same check as
18713         above so sendsize uses the same exclude file.
18714
18715 1998-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18716
18717         * server-src/holding.c (size_holding_files): return size in KB.
18718         * server-src/driver.c (adjust_diskspace): use KB returned by
18719         size_holding_files.
18720         * server-src/driver.c: rename .tmp file
18721         * server-src/dumper.c: do not rename .tmp file. let the driver do it.
18722
18723 1998-12-09  John R. Jackson  <jrj@purdue.edu>
18724
18725         * common-src/stream.c (stream_server): do not request a reserved port
18726         if we are root but PORTRANGE is defined.  Also, clean up the code
18727         and make sure *portp is -1 on all error returns.
18728
18729 1998-12-08  John R. Jackson  <jrj@purdue.edu>
18730
18731         * Makefile.am: add the user-contributed area.
18732         * contrib/README: describe the user-contributed area.
18733         * contrib/dbbackup.README: README for Oracle database backup system.
18734         * contrib/dbbackup.ksh: Oracle database backup system wrapper.
18735         * contrib/dbbackup.sql: Oracle database backup system setup commands.
18736         * contrib/dbbackup.tcl: Oracle database backup system main body.
18737
18738 1998-12-08  John R. Jackson  <jrj@purdue.edu>
18739
18740         * amplot/Makefile.am: fix install rule when DESTDIR is non-null,
18741         compliments of Henning P. Schmiedehausen <hps@tanstaafl.de>.
18742
18743 1998-12-08  John R. Jackson  <jrj@purdue.edu>
18744
18745         * configure.in: fix reversed code for --with-amrecover, compliments
18746         of Yar Tikhiy <yar@radio-msu.net>.
18747
18748 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18749
18750         * common-src/fileheader.h (dumpfile_t): new is_partial field.
18751         * common-src/fileheader.c: add codee for new is_partial field.
18752         * server-src/holding.h (rename_tmp_holding): declare new function.
18753         * server-src/holding.c (rename_tmp_holding): new function.
18754         * server-src/dumper.c (do_dump): return 1 if succeded, otherwise 0.
18755         * server-src/dumper.c (main): open .tmp when dumping to disk, 
18756         rename .tmp if do_dump return 1.
18757         * server-src/dumper.c (update_dataptr): open .tmp for new chunk.
18758         * server-src/amstatus.pl.in (dump_size): return size of .tmp file.
18759
18760 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
18761
18762         * server-src/amtape.c (main, usage): make command lookup and usage
18763         table-driven
18764
18765 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
18766
18767         * server-src/amadmin.c: make command lookup and usage table-driven
18768         * server-src/amadmin.c (balance, tape, bumpsize): add
18769         argc/argv arguments to make them like the rest
18770         * server-src/amadmin.c (show_version): new function, implements
18771         the version command, so it is done like the other commands
18772         * server-src/amadmin.c (main): iterate through cmdtab[] when
18773         looking up the command, instead of a huge if/then/else
18774         * server-src/amadmin.c (usage): iterate through cmdtab[] when
18775         displaying usage strings.  Display the "disklist" usage string.
18776
18777 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18778
18779         * config/acconfig.h: add "#undef HAVE_WRITEV_DECL".
18780
18781 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18782
18783         * NEWS: document new force-bump, force-no-bump and unforce-bump
18784         command in amadmin.
18785
18786 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18787
18788         * server-src/holding.c (size_holding_files): new function to
18789         return the sum of the size of all chunk of an image.
18790         * server-src/holding.h (size_holding_files): declare.
18791         * server-src/driver.c (adjust_diskspace): use size_holding_files
18792         instead of doing a stat of only the first chunk.
18793
18794 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18795
18796         * server-src/amadmin.c: new force-bump, force-no-bump and unforce-bump
18797         command.
18798         * man/amadmin.8.in: document them.
18799
18800 1998-12-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
18801
18802         * docs/FAQ (large filesystems): fixed reference to results missing
18803         (results missing): updated to 64Kb UDP packets
18804
18805 1998-12-04  Mike Grupenhoff <kashmir@munge.com>
18806
18807         * common-src/amanda.h: implement WIFSIGNALED() if not already
18808         defined
18809         * server-src/amcheck.c: ream out compat definitions of WEXITSTATUS(),
18810         WTERMSIG(), and WIFSIGNALED().  These are already handled in amanda.h
18811         * server-src/changer.c: ditto
18812
18813 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
18814
18815         * common-src/bsd-security.c (recv_security_ok): only check for
18816         a reserved port for REQ packets
18817
18818 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
18819
18820         * common-src/bsd-security.c (recvpkt_callback): only compare
18821         the sin_addr and sin_port fields in the sockaddr when determining
18822         what handle an incoming packet belongs to.
18823         * common-src/bsd-security.c (pkthdr2str): use %s for the handle,
18824         since it's a string.
18825
18826 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
18827
18828         * common-src/bsd-security.c (bsd_sendpkt): newline-terminate
18829         the 'SECURITY USER' line in the packet
18830         * common-src/bsd-security.c (check_user): fix many bugs
18831         in the USE_AMANDAHOSTS case
18832
18833 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
18834
18835         * configure.in: AC_REPLACE_FUNCS(writev)
18836
18837 1998-12-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18838
18839         * server-src/infofile.h: rename PLANNER_FORCE to FORCE_FULL
18840         * server-src/planner.c: rename PLANNER_FORCE to FORCE_FULL
18841         * server-src/amadmin.c: rename PLANNER_FORCE to FORCE_FULL
18842
18843 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18844
18845         * config/acconfig.h: add KRB5_SECURITY.  Update comment above
18846         krb4 define to make clear that they are for krb4
18847
18848 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18849
18850         * configure.in: if we're doing krb4 and -lcom_err is there, pull
18851         it in
18852         * configure.in: implement --with-krb5-security.
18853
18854 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18855
18856         * common-src/dgram.c (dgram_cat): now can take printf-style
18857         arguments
18858         * common-src/dgram.g (dgram_cat): update prototype
18859
18860 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18861
18862         * common-src/bsd-security.c: wrap entire file in #ifdef BSD_SECURITY
18863         * common-src/bsd-security.c (bsd_connect): catch up with
18864         security interface changes - upper layer now allocates our handle
18865         Also, pass up useful error message about why connects failed
18866         via the handle we are given
18867         * common-src/bsd-security.c (gethandle): rename to inithandle,
18868         since we are now passed the handle's memory.  No need to allocate
18869         memory or initialize the error msg pointer
18870         * common-src/bsd-security.c (bsd_close): now an empty function - no
18871         memory to free
18872         * common-src/bsd-security.c (recvpkt_callback): allocate the handle
18873         before calling inithandle() (nee gethandle()).
18874         * common-src/bsd-security.c (stream_read_callback): put
18875         strerror(errno) in the handle's error buffer before passing a
18876         read error up to the caller
18877
18878 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18879
18880         * common-src/krb5-security.c: new stub file that pulls in the
18881         krb5 bits from the amanda-krb-2 tree if KRB5_SECURITY is
18882         defined
18883
18884 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18885
18886         * common-src/base64.{c,h}: new files, implement base64 encoding
18887         and decoding.  Implementation based on routines in bind, and so
18888         copyright is held by ISC and IBM (but is BSD-like).
18889
18890 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18891
18892         * common-src/security.h: add 'handlesize' to the driver struct, also
18893         make the connect function pointer return int and take a handle
18894         argument
18895         * common-src/security.h (security_connect): addd a 'const char **'
18896         errmsg argument for returning connect errors
18897
18898 1998-12-01  John R. Jackson  <jrj@purdue.edu>
18899
18900         * server-src/amcheck.c: make -t mean do the tape checks, add new -l
18901         option for doing just the local server (non-tape) checks.  Have -w
18902         turn on -t.  Have -cs (or -sc) do both server and client checks.
18903         * man/amcheck.8.in: document above changes and clean up some minor
18904         formatting issues.
18905
18906 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
18907
18908         * common-src/event.c (release): nuke bogus comment about signal
18909         handler release
18910         * common-src/event.c (event_loop): move the reentrancy assert
18911         after the empty queue check.  Otherwise, calling event_loop()
18912         with an empty event queue would cause the entry count to get
18913         out of sync.  Also, on exit, assert that the entry count has
18914         gone to 0
18915         * common-src/event.c (event_loop): fix bogus comment about event
18916         removal
18917
18918 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
18919
18920         * common-src/arglist.h: implement arglist_function3()
18921
18922 1998-11-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18923
18924         * server-src/driver.c (start_some_dumps): In degraded mode,
18925         a big dumper should do high priority dump before low priority.
18926         * server-src/driver.c (sort_by_priority_reversed): sort by
18927         time if priority is equal.
18928
18929 1998-11-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18930
18931         * server-src/infofile.h: declare FORCE_BUMP and FORCE_NO_BUMP
18932         as command.
18933         * server-src/amadmin.c (force_one,unforce_one,info_one): work
18934         with info.command with bit operator.
18935         * server-src/planner.c (setup_estimate): work with info.command
18936         with bit operator, support for FORCE_BUMP and FORCE_NO_BUMP command.
18937
18938 1998-11-27  Thomas Hepper    <th@icem.de>
18939
18940         * changer-src/scsi-aix.c Some changes in the error handling in
18941         scsi command execution
18942         * changer-src/scsi-changer-driver.c More debug prints.
18943         removed Endian16/Endian24 (replaced with macros)
18944         * changer-src/scsi-chio.c make get_clean_state work on linux
18945         * changer-src/scsi-defs.h  added macros for converting from/to
18946         SCSI CDB MSB type
18947         * docs/TAPE.CHANGERS add note about AIX and chg-scsi
18948
18949 1998-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18950
18951         * server-src/amadmin.c(export_one): export the last_level and
18952         consecutive_runs field.
18953         * server-src/amadmin.c(import_one): import the last_level and
18954         consecutive_runs field.
18955
18956 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
18957
18958         * common-src/amanda.h: uhh, every other decl has a leading
18959         'extern' so writev() should as well
18960
18961 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
18962
18963         * common-src/amanda.h: if no writev() decl exists, declare one
18964
18965 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
18966
18967         * configure.in: check for <sys/uio.h>, check for a writev() decl
18968         in <unistd.h> and/or <sys/uio.h>
18969
18970 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
18971
18972         * common-src/writev.c (writev): new file, implements writev for
18973         systems that lack it
18974
18975 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
18976
18977         * common-src/amanda.h: include <sys/uio.h> if it exists.  Otherwise,
18978         define struct iovec
18979
18980 1998-11-24  John R. Jackson  <jrj@purdue.edu>
18981
18982         * server-src/amlabel.c: insist on being run as the dump user (ala
18983         amlabel) to keep permissions straight.
18984
18985 1998-11-24  John R. Jackson  <jrj@purdue.edu>
18986
18987         * server-src/amadmin.c: fix minor message format problem.
18988
18989 1998-11-24  John R. Jackson  <jrj@purdue.edu>
18990
18991         * server-src/amlabel.c: insist on being run as the dump user (ala
18992         amflush) to keep permissions straight.
18993
18994 1998-11-24  John R. Jackson  <jrj@purdue.edu>
18995
18996         * server-src/amrmtape.sh.in: insist on being run as the dump user (ala
18997         amdump) to keep permissions straight.
18998
18999 1998-11-24  John R. Jackson  <jrj@purdue.edu>
19000
19001         * server-src/amadmin.c: issue a warning for update commands that might
19002         leave ownership incorrect.
19003
19004 1998-11-24  John R. Jackson  <jrj@purdue.edu>
19005
19006         * server-src/amcheck.c: add a "-t" option to disable tape tests in the
19007         server checks.  This lets server checks be done without mounting a
19008         tape.  Add lots more sanity checks, in particular, ownership and
19009         permissions of the index area and text format database.  Warn if
19010         amcheck is not run as the dump user listed in amanda.conf.  Minor
19011         consistency cleanup in the messages.
19012         * man/amcheck.8.in: document the changes.
19013
19014 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
19015
19016         * common-src/dgram.c (dgram_bind): always try to get a reserved
19017         port, even if KRB4_SECURITY is defined
19018
19019 1998-11-23  Mike Grupenhoff <kashmir@munge.com>
19020
19021         * common-src/bsd-security.c (struct bsd_handle): change 'int handle'
19022         to 'char proto_handle[32]' because the remote client might generate
19023         handles that aren't completely numerical
19024         * common-src/bsd-security.c (gethandle, str2pkthdr): the 'handle' arg
19025         is now a string
19026         * common-src/bsd-security.c (bsd_connect): convert our generated
19027         handle into a string to pass to gethandle()
19028         * common-src/bsd-security.c (str2pkthdr): rewrite to parse with
19029         strtok().  Parse the handle as a string instead of trying to
19030         convert it into a number
19031
19032 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
19033
19034         * server-src/amcleanup.sh.in (logdir/amdump): arrange that it is
19035         renamed if it exists, even if no log file could be found.
19036
19037 1998-11-20  Mike Grupenhoff <kashmir@munge.com>
19038
19039         * common-src/bsd-security.c: define STREAM_BUFSIZE to be
19040         the size of the tcp socket buffers
19041         * common-src/bsd-security.c (bsd_stream_server, bsd_stream_client):
19042         adapt to the stream_server() interface changes.  Set socket
19043         buffers to STREAM_BUFSIZE.
19044
19045 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
19046
19047         * config/ltmain.sh, config/ltconfig, config/libtool/libtool.m4:
19048         updated to current CVS libtool
19049
19050 1998-11-19  John R. Jackson  <jrj@purdue.edu>
19051
19052         * server-src/conffile.c (get_holdingdisk, init_holdingdisk_defaults):
19053         set the default chunksize and the "0" and "-1" special chunksizes
19054         to 64 KBytes less than the maximum to allow the final read at EOF.
19055         * server-src/dumper.c (main): leave the chunksize as it is when it
19056         comes in except to truncate it to a 32 KByte boundary.
19057         * man/amanda.8.in: add some chunksize comments and clean up a few
19058         minor odds and ends.
19059
19060 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
19061
19062         Give amrecover its own security bits.  It has different needs
19063         and a different protocol than the rest of amanda, so it shouldn't
19064         try to reuse the security bits
19065         * recover-src/amrecover.c (get_security): new function, implements
19066         bsd security
19067         * recover-src/amrecover.c (main): call get_security()
19068         * recover-src/amrecover.h: get_security() prototype
19069         * recover-src/extract_list.c (extract_files_setup): call
19070         get_security()
19071         * restore-src/amidxtaped.c (check_security): new function, implements
19072         * restore-src/amidxtaped.c (main): call check_security()
19073
19074 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
19075
19076         * common-src/stream.c (stream_server, stream_client): cast 4th
19077         arg of setsockopt() to (void *) to quash a compiler warning
19078         under solaris.
19079
19080 1998-11-19  John R. Jackson  <jrj@purdue.edu>
19081
19082         * recover-src/amrecover.c (main): use set_host to find the initial
19083         host name so we get the same alias resolution at startup as the
19084         sethost command.
19085         * recover-src/set_commands.c (set_host): report alternate names being
19086         attempted and only clear the directory list if a host is found.
19087
19088 1998-11-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
19089
19090         * server-src/driverio.c (update_info_dumper): do not update
19091         compression or dump rates when called from
19092         update_failed_dump_to_date
19093         Reported by Michael Schmitz <mschmitz@sema.de>
19094
19095 1998-11-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19096
19097         * server-src/dumper.c (main): reduce the size of the chunksize by
19098         2 blocks.
19099
19100 1998-11-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
19101
19102         * configure.in: hack for paxutils was not working; fixed
19103
19104 1998-11-18  Michael Povel  <mcp@ladyada.han.de>
19105
19106         * server-src/changer.h added new functions:changer_query
19107         ,changer_search,changer_find, changer_label
19108         * server-src/changer.c added changer_query, changer_search,
19109         changer_find, changer_label
19110         * server-src/amcheck.c (taper_scan) now uses changer_find 
19111         * server-src/amtape.c (load_label and taper_scan) now use changer_find
19112         * server-src/taper.c (taper_scan) now uses changer_find
19113         * server-src/amlabel.c (main) added call to changer_label
19114         which is only an empty dummy at the moment
19115
19116 1998-11-18  Thomas Hepper <th@icem.de>
19117
19118         * changer-src/chg-scsi.c Added debug print option
19119         * changer-src/chg-scsi.c If the load fails do not continue
19120         * changer-src/scsi-aix.c changed #include <config.h> to <amanda.h>
19121         * changer-src/scsi-aix.c Added debug prints to SCSI_ExecuteCommand
19122         * changer-src/scsi-changer-driver.c changed #include <config.h> to 
19123         #include <amanda.h>
19124         * changer-src/scsi-changer-driver.c Added debugging prints
19125         * changer-src/scsi-changer-driver.c Remove unused funktion TestUnitReady
19126         * changer-src/scsi-chio.c added missing funktion Tape_Ready
19127         * changer-src/scsi-hpux.c removed #include "config.h", is already done
19128         in amanda.h
19129         * changer-src/scsi-hpux_new.c  changed #include <config.h> to 
19130         #include <amanda.h>
19131         * changer-src/scsi-irix.c changed #include <config.h> to 
19132         #include <amanda.h>
19133         * changer-src/scsi-linux.c changed #include <config.h> to 
19134         #include <amanda.h>
19135         * changer-src/scsi-solaris.c changed #include <config.h> to 
19136         #include <amanda.h>
19137
19138 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
19139
19140         * client-src/sendsize.c: disable HAVE_DUMP_ESTIMATE if SAMBA_CLIENT
19141         is defined
19142
19143 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19144
19145         * server-src/tapefile.c (lookup_last_reusable_tape): Wrong order
19146         to shift the tpsave array.
19147
19148 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
19149
19150         * example/amanda.conf.in: document that infofile is supposed to be a
19151         directory with the default database format
19152         * docs/FAQ: New questions: `infofile update failed' and `using the
19153         same host in different configurations'
19154
19155 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19156
19157         changer-src/scsi-linux.c (Tape_Ready): typo, the argument Device
19158         to the SCSI_CloseDevice() is not defined, I changed it to tapedev.
19159
19160 1998-11-17  Brendan M Coffey <bcoffey@connix.com>
19161
19162         * common-src/stream.c (stream_server): add requested send and receive
19163         socket size parameters.
19164         * common-src/stream.h (stream_server): ditto
19165         * server-src/taper.c (file_reader_side): set a large receive socket
19166         buffer size.
19167         * client-src/sendbackup.c (main): set a large send and receive socket
19168         buffer size for the data path, use defaults for the message and index
19169         paths.
19170
19171 1998-11-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
19172
19173         * changer-src/scsi-solaris.c (Tape_Ready): typo in Thomas' patch
19174
19175 1998-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19176
19177         * server-src/infofile.h (get_dumpdate): rename record parameter to info.
19178         * server-src/infofile.h (get_info): rename record parameter to info.
19179         * server-src/infofile.h (put_info): rename record parameter to info.
19180         * server-src/infofile.c (get_dumpdate): rename rec parameter to info.
19181         * server-src/infofile.c (zero_info): rename ip parameter to info.
19182         * server-src/infofile.c (get_info): rename record parameter to info.
19183         * server-src/infofile.c (put_info): rename record parameter to info.
19184         * server-src/infofile.c (dump_rec): rename r parameter to info.
19185         * server-src/infofile.c (dump_db): rename record variable to info.
19186         * server-src/planner.c (last_level): rename ip parameter to info.
19187         * server-src/planner.c (next_level0): rename ip parameter to info.
19188         * server-src/planner.c (runs_at): rename ip parameter to info.
19189         * server-src/planner.c (askfor): rename inf parameter to info.
19190         * server-src/planner.c (setup_estimate): rename inf variable to info.
19191         * server-src/driverio.c (update_info_dumper): rename inf parameter 
19192         to info.
19193         * server-src/driverio.c (update_info_taper): rename inf parameter 
19194         to info.
19195         * server-src/amadmin.c (next_level0): rename ip parameter to info.
19196         * server-src/amadmin.c (force_one): rename inf variable to info.
19197         * server-src/amadmin.c (unforce_one): rename inf variable to info.
19198         * server-src/amadmin.c (delete_one): rename inf variable to info.
19199         * server-src/amadmin.c (info_one): rename inf variable to info.
19200         * server-src/amadmin.c (due_one): rename inf variable to info.
19201         * server-src/amadmin.c (balance): rename inf variable to info.
19202
19203 1998-11-11  Thomas Hepper <th@icem.de>
19204
19205         * configure.in: amanda_cv_hpux_scsi was double defined.
19206         Replaced it in the chio check with amanda_cv_hpux_scsi_chio
19207         * docs/TAPE.CHANGERS: update the notes about chg-scsi
19208         * changer-src/chg-scsi.c: Unload the cleaning tape only
19209         if it is loaded
19210         Pass the changerdev and tapedev Tape_Ready, so we can check
19211         if changerdev=tapedev. In this case the fd is already open.
19212         * changer-src/scsi-aix.c: cleanup and first parts are running :-)
19213         * changer-src/scsi-changer-driver.c: Pass back the scsi status
19214         field to the calling function, not the result from the ioctl
19215         if the return form the ioctl is >= 0
19216         * changer-src/scsi-hpux.c: Add additional param to Tape_Ready
19217         fill Tape_Ready with live 
19218         * changer-src/scsi-hpux_new.c: Return the scsi status if 
19219         the ioctl result is >=0. Add new Parameter to Tape_Ready
19220         * changer-src/scsi-irix.c: same as scsi-hpux_new.c
19221         * changer-src/scis-linux.c: Add additional param to Tape_Ready
19222         * changer-src/scsi-solaris.c: same as scsi-hpux_new.c
19223
19224 1998-11-11  Mike Grupenhoff <kashmir@munge.com>
19225
19226         * server-src/security.h: add driver entry points and macros
19227         for security_stream_accept() and security_stream_auth()
19228         * server-src/bsd-security.c: implement security_stream_accept()
19229         and security_stream_auth() for bsd security
19230
19231 1998-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19232
19233         * server-src/driver.c (main): redo my patch about total_disksize that
19234         Alexendre has undone, only the 2.4.1 branch was broken.
19235
19236 1998-11-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
19237
19238         * server-src/driver.c (main): total_disksize was only added after
19239         the loop terminated, i.e., when hdp was NULL -> crash.  fixed.
19240
19241 1998-11-09  John R. Jackson  <jrj@purdue.edu>
19242
19243         * server-src/reporter.c (main): ignore SIGPIPE so if a child process
19244         dies we do not also go away.  Also fix a core dump if amanda.conf
19245         cannot be processed, and clean up a few error messages.
19246
19247 1998-11-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19248
19249         * server-src/infofile.h (struct info_s): add last_level and 
19250         consecutive_runs.
19251         * server-src/infofile.c: support new last_level and consecutive_runs
19252         * server-src/planner.c (last_level): return ip->last_level.
19253         * server-src/planner.c (runs_at): return ip->consecutive_runs.
19254         * server-src/driverio.c (update_info_dumper): update inf.last_level
19255         and inf.consecutive_runs.
19256         
19257 1998-11-09  Mike Grupenhoff <kashmir@munge.com>
19258
19259         * client-src/sendbackup-dump.c (start_backup): don't close indexf
19260         if it was never open
19261         * client-src/sendbackup-gnutar.c (start_backup): ditto
19262
19263 1998-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19264
19265         * server-src/driver.c (main): add hdp->disksize to total_disksize
19266         even when we create the datestamp dir. (reserve was unusable).
19267
19268 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
19269
19270         * Makefile.am (EXTRA_DIST): added EVENT-API, SECURITY-API and
19271         STRATEGY-API
19272         * docs/STRATEGY-API: new file
19273
19274         * configure.in (GNUTAR): accept tar from Free paxutils, the new name
19275         of GNU tar
19276
19277 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
19278
19279         * changer-src/scsi-solaris.c: added missing #endif
19280
19281         * configure.in: merge with camlib.h patch from Oct 31
19282         remove all uses of test ... -a ...; this is not portable.
19283         (AC_CHECK_HEADERS) added header files for Linux and Solaris
19284
19285 1998-11-07  Thomas Hepper  <th@icem.de>
19286
19287         * changer-src/chg-scsi: Add config option scsidev
19288         * changer-src/chg-scsi: Remove function tape_ready
19289         * changer-src/chg-scsi: Add new parameter tapedev to function
19290         ask_clean
19291         * changer_src/scsi-hpux.c: changed HAVE_HPUX_SCSI to 
19292         HAVE_HPUX_SCSI_CHIO, changed in configure.in too
19293         * changer-src/libscsi.h: Expand definition for get_clean_state
19294         * new files in /changer-src:
19295         scsi-aix.c, scsi-changer-driver.c, scsi-defs.h
19296         scsi-hpux_new.c, scsi-irix.c, scsi-linux.c, scsi-solaris.c
19297         * configure.in checks for scsi ioctl added, check for header files
19298         for the scsi suport added
19299         * config/acconfig.h new:
19300         HAVE_HPUX_LIKE_SCSI, HAVE_HPUX_SCSI_CHIO, HAVE_LINUX_LIKE_SCSI
19301         HAVE_IRIX_LIKE_SCSI, HAVE_SOLARIS_LIKE_SCSI, HAVE_AIX_LIKE_SCSI
19302                removed: HAVE_HPUX_SCSI
19303         * changer-src/Makefile.am: New conditional for building chg-scsi-chio
19304         and chg-scsi. chg-scsi-chio is the old chg-scsi
19305
19306 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
19307
19308         * common-src/bsd-security.c (bsd_stream_write): callback's third
19309         arg should now be an int.
19310         * common-src/bsd-security.c: quash some gcc -Wall warnings
19311
19312 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
19313
19314         * common-src/security.h: the callback to stream_read should
19315         take signed type as its 'length' argument so errors can be
19316         expressed as a negative number.
19317
19318 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
19319
19320         * common-src/bsd-security.c (stream_read_callback): do reads into
19321         a buffer of size TAPE_BLOCK_BYTES, instead of 256, and place the
19322         buffer in the stream handle instead of on the stack, since it's
19323         huge
19324
19325 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
19326
19327         * common-src/event.c (event_loop): Consider error conditions on
19328         file descriptors as read or write events.  The caller will be
19329         able to differentiate when they call read or write and it
19330         fails.
19331
19332 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
19333
19334         * common-src/event.c (event_loop): print out WHY select failed
19335
19336 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
19337
19338         * common-src/bsd-security.c: adjust for the recvpkt timeout
19339         interface changes
19340         * common-src/bsd-security.c (handleq_remove): add a missing ; after
19341         an assertion
19342         * common-src/bsd-security.c (gethandle): initialize the error buffer
19343         in the security handle, since errors may be set before the handle
19344         is passed up to the general security layer
19345         * common-src/bsd-security.c (bsd_recvpkt_cancel): allow it to be
19346         called several times, or when no recvpkt was scheduled
19347
19348 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
19349
19350         * common-src/security.h: define security_recvpkt_status_t
19351         * common-src/security.h: security_driver_t->recvpkt() now
19352         takes a timeout argument, and its callback takes a
19353         security_recvpkt_status_t
19354         * common-src/security.h: adjust the security_recvpkt() macro
19355         for the above changes
19356
19357 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
19358
19359         * common-src/event.c (event_loop): assert that we are not firing
19360         a dead event
19361
19362 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19363
19364         * recover-src/amrecover.c: remove declaration of errstr.
19365
19366 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19367
19368         * server-src/amindexd.c (build_disk_table): call find_dump() instead
19369         of popen("amadmin <conf> find ...")
19370
19371 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19372
19373         * server-src/holding.h: rename dir_list to holding_list because
19374         dir_list is also declared in amflush.c
19375         * server-src/holding.c: ditto
19376         * server-src/find.c: ditto
19377
19378 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19379
19380         * server-src/amstatus.pl.in: remove warning.
19381
19382 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
19383
19384         * common-src/event.c (event_register): delete some improper debug
19385         code that shouldn't have made it in
19386
19387 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
19388
19389         * common-src/bsd-security.c: new file: security driver that
19390         implements "BSD" security.
19391
19392 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
19393
19394         * common-src/security.h: new file: the security api header
19395
19396 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
19397
19398         * common-src/event.c: new file: the event handler.  Handles file
19399         descriptor io, signals, and timed events.
19400         * common-src/event.h: new file: interface for the event handler.
19401
19402 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
19403
19404         * common-src/packet.c: new file: description of pkt_t's and routines
19405         for formatting
19406         * common-src/packet.h: new file: header for common-src/packet.c
19407
19408 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
19409
19410         * common-src/queue.h: new file: the 4.4BSD queue macros, with
19411         additions from NetBSD
19412
19413 1998-11-04  John R. Jackson  <jrj@purdue.edu>
19414
19415         * server-src/amverify.sh.in: tolerate extra amtape output.
19416
19417 1998-11-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
19418
19419         * configure.in: bumped to 2.5.0
19420
19421         * server-src/taper.c (read_file): if a new tape cannot be found,
19422         report a no-tape error to the log file and exit, just like it does
19423         for the first tape
19424
19425 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19426
19427         * server-src/planner.c (pick_inclevel): return base_level even
19428         when the estimate failed.
19429         * server-src/planner.c (output_scheduleline): test for degr_size
19430         instead of degr_level.
19431
19432 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19433
19434         * server-src/planner.c (last_level): update last_date otherwise only
19435         level 0 or the highest is returned.
19436
19437 1998-11-03  Mike Grupenhoff  <kashmir@munge.com>
19438
19439         * common-src/alloc.c: const arguments to the stralloc functions
19440         * common-src/amanda.h: update stralloc prototypes for const
19441         poisoning
19442
19443 1998-11-03  John R. Jackson  <jrj@purdue.edu>
19444
19445         * server-src/dumper.c (do_dump): do not report FAILED back to driver
19446         when it sent us ABORT.  Clean up and send back ABORT-FINISHED.
19447
19448 1998-11-03  John R. Jackson  <jrj@purdue.edu>
19449
19450         * server-src/driver.c (handle_dumper_result): do not abort a dumper
19451         that reports NO-ROOM if taper is busy since some holding disk space
19452         will eventually be released (this code it not used when PORT-DUMP is
19453         in progress).
19454
19455 1998-11-03  John R. Jackson  <jrj@purdue.edu>
19456
19457         * server-src/taper.c (write_buffer): calling lseek after every tape
19458         write is wasteful and makes utilities like lsof less useful.  Only
19459         reset the offset when the amount written is about to go over 2 GBytes.
19460
19461 1998-11-02  John R. Jackson  <jrj@purdue.edu>
19462
19463         * server-src/driver.c (main, start_degraded_mode): fix rounding problem
19464         that made the code think there was a little room for full dumps in
19465         degraded mode, and fix the code that decides whether to do a full dump
19466         in degraded mode.
19467
19468 1998-11-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19469
19470         * server-src/amstatus.pl.in: initialize variable to remove warning.
19471
19472 1998-11-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
19473
19474         * client-src/Makefile.am (CLIENT_SCRIPTS): rename to
19475         CLIENT_SCRIPTS_OPT, because *_SCRIPTS is interpreted by automake
19476         * configure.in (CLIENT_SCRIPTS): ditto
19477         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
19478
19479         * configure.in (LIBTOOL_M4): no longer defined
19480         (LIBTOOL_M4_MACRO_DIR): defined assuming CWD is top_srcdir
19481         * Makefile.am (ACLOCAL_M4_FROM_SRCDIR): relative to srcdir
19482         (ACLOCAL_M4): defined and created using ACLOCAL_M4_FROM_SRCDIR
19483         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
19484         
19485         * client-src/sendbackup.c (backup_program): rename to
19486         gnutar_program, that's the name it should have had from the
19487         beginning
19488         * client-src/sendbackup-gnutar.c (backup_program): ditto
19489
19490 1998-10-31  Michael Schmitz <mschmitz@iname.com>
19491
19492         * configure.in: let configure check whether strcasecmp is
19493         present
19494         * common-src/strcasecmp.c: new file which contains a definition
19495         of strcasecmp
19496         * common-src/amanda.h: added code to declare strcasecmp in
19497         case it's not declared in a standard header
19498
19499 1998-10-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
19500
19501         * configure.in (snprintf): arrange that it is included in the
19502         distribution automatically
19503         * common-src/Makefile.am (EXTRA_DIST): removed, not needed
19504
19505         * changer-src/Makefile.am (libexec_SCRIPTS): would only be enabled
19506         if WANT_CHG_SCSI
19507
19508         * configure.in (NO_SCSI_CHANGER_MODE): chg-scsi does not support the
19509         new FreeBSD 3.0 chio.h, so disable it if camlib.h is found.
19510         * docs/SYSTEM.NOTES (FreeBSD 3.0): add a note about this
19511         (SunOS 4.x): libtool will no longer find incorrect library versions
19512
19513 1998-10-30  John R. Jackson  <jrj@purdue.edu>
19514
19515         * common-src/security.c (bsd_security_ok): change error message to
19516         reflect that it is a host name we were looking up rather than an
19517         address (also makes the two similar messages unique).
19518
19519 1998-10-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
19520
19521         * docs/SYSTEM.NOTES: Debian 2's dump uses /var/lib/dumpdates 
19522
19523 1998-10-28  John R. Jackson  <jrj@purdue.edu>
19524
19525         * recover-src/set_commands.c (set_host): if the host given by the user
19526         does not work, try the canonical name and aliases returned by
19527         gethostbyname.
19528
19529 1998-10-28  John R. Jackson  <jrj@purdue.edu>
19530
19531         * configure.in: use "df /" instead of just "df" when trying to find
19532         the device that has the root file system to avoid things like NFS
19533         hangs that df sometimes suffers from.
19534
19535 1998-10-27  Mike Grupenhoff <kashmir@munge.com>
19536
19537         * common-src/stream.c (stream-client): add a 'localport' argument
19538         in which we can get the port this stream is bound to locally
19539         * common-src/stream.h (stream-client): update prototype
19540         * server-src/dumper.c: update stream-client calls
19541
19542 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19543
19544         * client-src/amandad.c (main): better logging of received packet,
19545         do not send a P_ACK when the received packet is not a P_REQ.
19546
19547 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19548
19549         * client-src/amandad.c (main): terminate immediately if started
19550         by a P_ACK packet without sending a P_NAK packet.
19551
19552 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19553
19554         * server-src/conffile.h (dtimeout): new keyword 
19555         * server-src/conffile.c (dtimeout): ditto
19556         * server-src/dumper.c: use dtimeout instead of READ_TIMEOUT
19557         * example/amanda.conf.in: document it
19558         * man/amanda.8.in: ditto
19559         * NEWS: ditto
19560
19561 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19562
19563         * server-src/dumper.c (sendbackup_response): a nak error will
19564         be a TRY-AGAIN instead of a FAILED.
19565
19566 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19567
19568         * server-src/amlabel.c: move declaration of vtbl_no, datestr
19569         and slotcommand to the main function.
19570
19571 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19572
19573         * server-src/amlabel.c: remove declaration of pname.
19574
19575 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19576
19577         * server-src/amcheckdb.sh.in: modify to match new tapelist file
19578         format (keyword reuse and no-reuse). Probably no-one use this
19579         program.
19580
19581 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19582
19583         * server-src/driver.c (handle_dumper_result): Add sleep time
19584         when a dumper failed, it could be a temporary network problem,
19585         such as NIS or NFS, better wait a few seconds before retrying.
19586
19587 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19588
19589         * server-src/driverio.h: remove declaration of argc et argv.
19590         * server-src/driverio.h (getresult): add parameters result_argc, 
19591         result_argv and max_arg.
19592         * server-src/driverio.c (getresult): use new parameters.
19593         * server-src/amflush.c (flush_holdingdisk, run_dumps): declare
19594         and use result_argc and result_argv instead of global variables
19595         argc and argv.
19596         * server-src/driver.c (main, handle_taper_result, 
19597         handle_dumper_result, dump_to_tape): ditto
19598
19599 1998-10-24  John R. Jackson  <jrj@purdue.edu>
19600
19601         * server-src/amstatus.pl.in: do not be quite so accurate in matching
19602         the log file lines since messages may be intermixed.  Turn on perl
19603         -w switch and make first cut at cleaning up warnings.
19604
19605 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19606
19607         * server-src/driverio.h: remove datestamp declaration.
19608         * server-src/amcheck.c: remove 'extern' to datestamp declaration.
19609         * server-src/amflush.c: declare datestamp.
19610         * server-src/amtape.c: remove 'extern' to datestamp declaration.
19611         * server-src/driver.c: declare datestamp.
19612         * server-src/dumper.c: remove 'extern' to datestamp declaration.
19613         * server-src/reporter.c: remove 'extern' to datestamp declaration.
19614
19615 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19616
19617         * server-src/driverio.h: remove declaration of tok.
19618         * server-src/amflush.c (flush_holdingdisk,run_dumps): declare
19619         tok locally.
19620         * server-src/driver.c (main, handle_taper_result, handle_dumper_result,
19621         dump_to_tape): declare tok locally.
19622
19623 1998-10-23  John R. Jackson  <jrj@purdue.edu>
19624
19625         * configure.in: disable the -E and -h dump estimate checks if $DUMP
19626         is not executable.
19627
19628 1998-10-19  John R. Jackson  <jrj@purdue.edu>
19629
19630         * server-src/amindexd.c (is_config_valid): fix core dump by moving
19631         amfree of conf_dir later in case it is needed in an error message.
19632
19633 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19634
19635         * server-src/reporter.c: remove declaration of curlinenum,
19636         curlog, curprog and curstr.
19637
19638 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19639
19640         * server-src/amflush.c (main): move declaration of diskqp from
19641         global to local.
19642
19643 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19644
19645         * server-src/amcheck.c (main): move declaration of mailout and 
19646         tempfname from global to local.
19647
19648 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19649
19650         * server-src/amadmin.c (search_logfile): remove declaration
19651
19652 1998-10-15  Mike Grupenhoff <kashmir@munge.com>
19653
19654         * server-src/amadmin.c (reuse, no-reuse): don't core dump if tape
19655         label not found
19656
19657 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19658
19659         * server-src/conffile.h: remove declaration of holdingdisks and 
19660         num_holdingdisks, declare getconf_holdingdisks().
19661         * server-src/conffile.c: define getconf_holdingdisks(),
19662         * server-src/holding.c: use getconf_holdingdisks
19663         * server-src/find.c: ditto
19664         * server-src/amcheck.c: ditto
19665         * server-src/amflush.c: ditto
19666         * server-src/driver.c ditto
19667
19668 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19669
19670         * server-src/driver.c: remove verbose and force_parameters
19671         variables.
19672
19673 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19674
19675         * server-src/dumper.c: remove declaration of pid.
19676         * server-src/dumper.c(do_dump): move declaration of runtime, 
19677         dumptime, compresspid, indexpid and killerr from global to local.
19678
19679 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19680
19681         * server-src/planner.c: remove declaration of total_waiting and
19682         result_socket.
19683         * server-src/planner.c(main): move declaration of initial_size from
19684         global to local.
19685
19686 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19687
19688         * server-src/driverio.h,server-src/driver.c: move declaration
19689         of big_dumpers, degraded_mode and reserved_space from 
19690         driverio.h to driver.c
19691
19692 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19693
19694         * server-src/driverio.h (optionstr): remove declaration
19695
19696 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19697
19698         * configure.in (SAMBA_CLIENT): fix typo
19699
19700 1998-10-14  John R. Jackson  <jrj@purdue.edu>
19701
19702         * restore-src/amrestore.c (read_file_header): make a couple of error
19703         messages clearer that they refer to problems with a header rather
19704         than the image data.
19705
19706 1998-10-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
19707
19708         * client-src/Makefile.am (libamclient_a_SOURCES): missing since
19709         clean-up; re-added
19710
19711 1998-10-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19712
19713         * docs/INTERNALS (driver and dumper): document <dumpdate> in 
19714         FILE-DUMP and PORT-DUMP request, document <chunksize> in 
19715         FILE-DUMP request.
19716
19717 1998-10-12  John R. Jackson  <jrj@purdue.edu>
19718
19719         * server-src/amtape.c (usage, main, show_device): apply patch from
19720         Chris Jones <cjones@clydesdale.math.montana.edu> to support "device"
19721         as an option to return the drive device name as reported by the
19722         changer.
19723         * man/amtape.8: document the new "device" option.
19724         * server-src/amverify.sh.in: use the new amtape "device" option to
19725         better handle tape changers.  Overhaul for general cleanup and some
19726         security issues, plus amverify now tries to support non-tar images.
19727         * man/amverify.8.in: document non-tar image issues.
19728
19729 1998-10-08  John R. Jackson  <jrj@purdue.edu>
19730
19731         * example/amanda.conf.in: fix runspercycle example and comments
19732
19733 1998-10-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
19734
19735         * configure.in (SAMBA_CLIENT): try to find it by default; minimal
19736         checking
19737         * client-src/Makefile.am (WANT_SAMBA): use automake conditionals to
19738         enable findpass.o
19739         * docs/SAMBA: document that --with-smbclient is no longer required
19740         to enable SAMBA support
19741         
19742         * docs/FAQ: about inconsistencies in active filesystems
19743
19744 1998-10-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19745
19746         * docs/DUMPER-API: add `no-record' option to the `backup' command.
19747
19748 1998-10-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19749
19750         * docs/DUMPER-API: subdivise section 3.1.
19751
19752 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19753
19754         * docs/DUMPER-API: New `index-<mode>' options.
19755         define `support parse-estimate' and `support parse-backup' subcommand.
19756         New 'estimate-direct', `estimate-parse', `backup-direct' and
19757         `backup-parse' options.
19758         Remove PARSE keyword from estimate and backup command.
19759
19760 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19761
19762         * docs/DUMPER-API: define PARSE keyword in stderr of the backup
19763         command
19764
19765 1998-10-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
19766
19767         * man/Makefile.am (EXTRA_DIST): make sure the man-pages that are not 
19768         generated by autoconf get into the distribution
19769
19770 1998-10-02  Josef Karthauser  <joe@pavilion.net>
19771
19772         * changer-src/chg-chio.pl.in (getTapeParams): fix regular expression 
19773         for $line; the trailing `s' of slots was missing
19774
19775 1998-10-02  John R. Jackson  <jrj@purdue.edu>
19776
19777         * server-src/amstatus.pl.in: fix error message.
19778
19779 1998-10-02  John R. Jackson  <jrj@purdue.edu>
19780
19781         * server-src/taper.c (write_file): fix a problem with tha taper
19782         stats where the times were all the same.  The wallclock_str function
19783         returns a pointer to a static area so it cannot be called more
19784         than once as an argument to a function.
19785
19786 1998-10-01  John R. Jackson  <jrj@purdue.edu>
19787
19788         * common-src/protocol.c (parse_integer): allow negative numbers.
19789
19790 1998-10-01  John R. Jackson  <jrj@purdue.edu>
19791
19792         * server-src/amstatus.pl.in: add timestamps.
19793
19794 1998-10-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
19795
19796         * docs/DUMPER-API: define `support index', to be used instead of the
19797         previous `index-*' sub-commands
19798
19799 1998-09-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
19800
19801         * server-src/Makefile.am (libexec_PROGRAMS, sbin_SCRIPTS): don't use 
19802         backslashes for continuation; this seems to break automake :-(
19803
19804 1998-09-30  John R. Jackson  <jrj@purdue.edu>
19805
19806         * man/amanda.8.in: minor typo in "reserve" description.
19807
19808 1998-09-29  John R. Jackson  <jrj@purdue.edu>
19809
19810         * server-src/taper.c (end_tape): do not rewind the tape when done.
19811
19812 1998-09-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
19813
19814         * configure.in (WANT_CLIENT, WANT_RESTORE, WANT_SERVER, 
19815         WANT_RECOVER, WANT_TAPE, WANT_AMPLOT, WANT_CHG_SCSI): automake
19816         conditionals
19817         * amplot/Makefile.am: use them
19818         * changer-src/Makefile.am: ditto
19819         * client-src/Makefile.am: ditto
19820         * common-src/Makefile.am: ditto
19821         * man/Makefile.am: ditto
19822         * recover-src/Makefile.am: ditto
19823         * restore-src/Makefile.am: ditto
19824         * server-src/Makefile.am: ditto
19825         * tape-src/Makefile.am: ditto
19826
19827         * Makefile.am: don't print commands that work around old aclocal bug
19828
19829         * docs/DUMPER-API: remove environment variables, and mention a
19830         program that will help translating disklist entries to device names, 
19831         mount points and filesystem types
19832
19833         * recover-src/extract_list.c (extract_files_child): do not crash
19834         after failing to read the dump file header
19835         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
19836
19837 1998-09-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
19838
19839         * server-src/taper.c (taperscan_slot): initialize scan_datestamp, to
19840         avoid amfree of uninitialized pointer
19841         Reported by Lance A. Brown <brown9@niehs.nih.gov>
19842
19843 1998-09-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
19844
19845         * docs/DUMPER-API (USER, GROUP): detailed security mechanisms
19846         (estimate, estimate-parse): can print `KILL' after the estimate
19847         
19848         * docs/DUMPER-API: various suggestions from Eric Siegerman
19849         <erics@now.com> and some explanations added
19850         
19851 1998-09-27  Andy Farkas  <andyf@speednet.com.au>
19852
19853         * man/amlabel.8.in (labelstr): fix typo
19854
19855 1998-09-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
19856
19857         * recover-src/extract_list.c (extract_files_child): fix-up
19858         no_initial_params if password or domain information is not found
19859         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
19860
19861         * docs/DUMPER-API: extended `index' to `index-from-output' or
19862         `index-from-image', as suggested by Dale Hagglund <rdh@best.com>.
19863         Explained that the dumptype option `program' is the name of the
19864         wrapper program
19865
19866 1998-09-25  John R. Jackson  <jrj@purdue.edu>
19867
19868         * configure.in: fix --with-dump-honor-nodump test.  Patch by
19869         Jonas Oberg <jonas@coyote.org>.
19870
19871 1998-09-24  John R. Jackson  <jrj@purdue.edu>
19872
19873         * example/disklist: document the "spindle" and "interface" fields.
19874         Reported by Brendan M Coffey <bcoffey@connix.com>.
19875
19876 1998-09-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
19877
19878         * docs/DUMPER-API: added draft description of the DUMPER API
19879         * Makefile.am (EXTRA_DIST): add it to the distribution
19880
19881         * config/acinclude.m4 (AC_VALIDATE_CACHE_SYSTEM_TYPE): make sure
19882         cached values for host, build and target system types match with the
19883         guessed ones
19884         * configure.in: use it
19885
19886 1998-09-23  John R. Jackson  <jrj@purdue.edu>
19887
19888         * server-src/amstatus.pl.in: sort the host and partition names.
19889         From David Wolfskill <dhw@whistle.com>.
19890
19891 1998-09-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
19892
19893         * server-src/taper.c (getcmd): typo in last DEBUGging patch
19894
19895 1998-09-22  Tim Perkins  <Tim.Perkins@ddg.phar.cam.ac.uk>,  Alexandre Oliva <oliva@dcc.unicamp.br>
19896
19897         * client-src/selfcheck.c (check_disk): fix VDUMP auto-detection
19898
19899 1998-09-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
19900
19901         * changer-src/chg-mtx.sh.in: replace rew with rewind
19902         * changer-src/chg-zd-mtx.sh.in: ditto
19903         Reported by Henning Holtschneider <hh@loca.net>
19904
19905         * client-src/sendsize.c: remove usage of #error
19906         Reported by Jay Orr <orr@vss.fsi.com>
19907
19908 1998-09-21  John R. Jackson  <jrj@purdue.edu>
19909
19910         * man/amanda.8.in: document the new "tapebufs" parameter.
19911
19912 1998-09-21  Kelly Setzer  <setzer@telalink.net>
19913
19914         * server-src/taper.c (NBUFS): replaced with conf_tapebufs
19915         (THRESHOLD): now means `empty bufs' instead of `full bufs'
19916         * server-src/conffile.c: add support for the "tapebufs" option
19917         * server-src/planner.c: ditto
19918         * examples/amanda.conf.in: add sample "tapebufs" entry
19919
19920         * server-src/amlabel.c (main): adds entry to tapelist with date
19921         19700101
19922
19923 1998-09-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
19924
19925         * server-src/taper.c (getcmd): print DEBUGging output to stderr
19926         Reported by Henning Holtschneider <hh@loca.net>
19927
19928 1998-09-19  Eric Doutreleau <Eric.doutreleau@int-evry.fr>
19929
19930         * server-src/driverio.h (MAX_DUMPERS): increased from 15 to 63 in
19931         order to launch more dumper in parallel
19932         * example/amanda.conf.in (inparallel): Add the fact that it is
19933         limited by MAX_DUMPERS
19934
19935 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
19936
19937         * common-src/Makefile.am (libamanda_la_LDFLAGS): use libtool
19938         -release instead of -version_info, so as to encode the Amanda
19939         release number in the library name.  Problems related with
19940         pre-installed libraries should disappear, and separate releases can
19941         now be installed into the same directory without the risk of one
19942         using libraries from the other.
19943
19944 1998-09-18  Michael C. Povel  <Michael.Povel@hub.de>
19945
19946         * changer-src/chg-scsi.c (wait_ready): new function; keeps retrying
19947         until success or timeout
19948         (ask_clean, main): use it
19949
19950 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
19951
19952         * client-src/selfcheck.c (check_options): don't require runtar for
19953         SAMBA backups
19954         
19955         * client-src/rundump.c: fix support for VDUMP-only installation
19956         * client-src/selfcheck.c (check_options): fix detection of advfs
19957         * client-src/sendsize.c (getsize_dump): ditto
19958         * client-src/sendbackup-dump.c (start_backup): ditto
19959         Reported by Tim Perkins <Tim.Perkins@ddg.phar.cam.ac.uk>
19960
19961 1998-09-16  John R. Jackson  <jrj@purdue.edu>
19962
19963         * man/amadmin.8.in: document that "hostname" is optional for "info".
19964         Reported by David Wolfskill <dhw@whistle.com>.
19965
19966 1998-09-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
19967
19968         * docs/FAQ: common compile-time and link-time errors
19969
19970 1998-09-11  John R. Jackson  <jrj@purdue.edu>
19971
19972         * server-src/tapefile.c (lookup_last_reusable_tape): use new
19973         calling sequence that passes how old a tape to return.  Remove
19974         lookup_previous_reusable_tape().
19975         * server-src/tapefile.h (lookup_last_reusable_tape): use new
19976         calling sequence that passes how old a tape to return.  Remove
19977         lookup_previous_reusable_tape().
19978         * server-src/amadmin.c (tape): use new lookup_last_reusable_tape
19979         calling sequence.
19980         * server-src/amcheck.c (taper_scan, start_server_check): use new
19981         lookup_last_reusable_tape calling sequence.
19982         * server-src/amflush.c (confirm): use new lookup_last_reusable_tape
19983         calling sequence.
19984         * server-src/amtape.c (taper_scan): use new lookup_last_reusable_tape
19985         calling sequence.
19986         * server-src/reporter.c (output_tapeinfo): use new
19987         lookup_last_reusable_tape calling sequence.
19988         * server-src/taper.c (taper_scan): use new lookup_last_reusable_tape
19989         calling sequence.
19990
19991 1998-09-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
19992
19993         * client-src/sendbackup-gnutar.c (re_table): ignore
19994         `load_client_codepage' message from SAMBA
19995
19996 1998-09-11  John R. Jackson  <jrj@purdue.edu>
19997
19998         * server-src/amstatus.pl.in (all): fix USE_VERSION_SUFFIXES=yes
19999         problems.  Reported by David Eckelkamp <davide@locutus.tradewave.com>.
20000
20001         * man/amstatus.8.in (all): fix minor typos.
20002
20003 1998-09-10  John R. Jackson  <jrj@purdue.edu>
20004
20005         * configure.in (LFS): add code that might support configuring large
20006         files on HP-UX.
20007
20008 1998-09-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
20009
20010         * server-src/conffile.c (dump_configuration): runspercycle is not a
20011         member of dumptype_t
20012         (init_holdingdisk_defaults): init chunksize with documented default,
20013         not -1, because it wouldn't be recalculated
20014
20015         * docs/INSTALL: URL for SAMBA was broken; note about 1.9.18p10 bug
20016
20017 1998-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20018
20019         * docs/SAMBA: 1.9.18p10 has a bug
20020
20021 1998-09-09  Terje Malmedal  <tm@funcom.com>
20022
20023         * common-src/stream.c (stream_server, stream_client): added
20024         SO_KEEPALIVE option so we get an error if the other side crashes
20025
20026 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
20027
20028         * configure.in (CHIO): look for chio and AC_SUBST it
20029         (MT, CHS): if not found, use just the program name
20030         
20031 1998-09-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20032
20033         * server-src/planner.c (last_level): return the last level
20034         even it is still on holding disk if reserve < 100.
20035
20036 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
20037
20038         * server-src/reporter.c (divzero, divzero_wide): print `#'s on
20039         overflow
20040
20041         * server-src/amtape.c (show_init): no longer print `scanning'
20042         message
20043         (show_init_show, current_init_all): call show_init, then print the
20044         appropriate `scanning' message
20045         Reported by David Wolfskill <dhw@whistle.com>
20046
20047         * changer-src/chg-scsi.c (main): use new multi-configuration
20048         mechanism only if tape_device contains only a single digit
20049
20050 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20051
20052         * server-src/planner.c (setup_estimate): Don't write a
20053         "mismatch: no tapelist record, but curinfo next_level0" message
20054         and force a level 0 when reserve < 100.
20055
20056 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20057
20058         * server-src/holding.h (get_amanda_names): return a filetype_t
20059         instead of an int.
20060         * server-src/holding.c (get_amanda_names): return the filetype_t
20061         of the file or F_UNKNOWN if it's not an amanda file.
20062         * server-src/find.c (search_holding_disk): Use the new return 
20063         type of get_amanda_names.
20064         * server-src/amflush.c (flush_holdingdisk): Don't write a
20065         "ignoring cruft file" message for chunk files,
20066         filetype is F_CONT_DUMPFILE.
20067
20068 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20069
20070         * recover-src/extract_list.c (extract_files_child): don't write
20071         the samba password to the debug file.
20072
20073 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20074
20075         * server-src/driverio.c (update_info_dumper): set inf.command to
20076         NO_COMMAND if reserve< 100 because if you force a level 0 with
20077         'amadmin force', it will do level 0 every days until you flush them
20078         to tape.
20079
20080 1998-09-03  Matthias Urlichs    <smurf@noris.net>
20081
20082         * recover-src/uscan.l: recognize "?" as alias for "help"
20083
20084         * configure.in (MAILER): recognize "mail" as well as "Mail" and
20085         "mailx"
20086
20087         * client-src/calcsize.c (add_file_dump, add_file_unknown): only get
20088         sizes of directories and files
20089
20090         * client-src/amandates.c (start_amandates): create amandates if
20091         error is either EINTR or ENOENT
20092
20093         * common-src/dgram.c (dgram_send_addr): handle ECONNREFUSED by not
20094         dying when receiving, and retrying when sending, a packet.  The
20095         server may get this error when a client reboots and hasn't started
20096         inetd yet.
20097         * common-src/protocol.c (handle_incoming_packet): ditto
20098
20099         * server-src/driver.c (read_schedule): catch cases when the time
20100         goes negative.  Some operators have the bad habit of syncing clocks
20101         late at night. ;-)
20102
20103         * common-src/dgram.h (MAX_DGRAM): increased to 64Kb
20104         * NEWS: ditto
20105         * client-src/amandad.c (main): read the pipe from the child
20106         incrementally: the pipe buffer of many OSes is shorter than
20107         MAX_DGRAM.  Instead of SIGCHLD, note end-of-data by way of
20108         end-of-file
20109         (sigchild_jump, sigchild_flag): removed
20110         * client-src/sendbackup.c (main): instead of fork-and-exit, tell
20111         amandad to process our data by closing our end of the pipe
20112         
20113 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
20114
20115         * NEWS: another typo (too late :-(
20116
20117 1998-09-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20118
20119         * server-src/driver.c: amanda will not use an holding disk
20120         if the directory with the datestamp already exist.
20121
20122 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
20123
20124         * Amanda 2.4.1 released
20125         
20126 1998-08-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20127
20128         * NEWS: typo
20129
20130 1998-08-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
20131
20132         * docs/INSTALL: update some version numbers; SAMBA 1.9.18p10 has
20133         fixed the bug in p8; using p8 is not recommended any more
20134         * docs/SAMBA: ditto
20135
20136         * config/config.guess: updated to libtool 1.2b's, in order to
20137         auto-detect some recent architectures
20138         * config/config.sub: ditto
20139
20140         * server-src/amcleanup.sh.in (sbindir): amreport now lives in
20141         sbindir; added it to PATH and removed full pathnames to binaries
20142
20143 1998-08-27  Blair Zajac  <blair@gps.caltech.edu>
20144
20145         * configure.in: Add the directory /usr/lib/fs/vxfs to the search
20146         path where configure looks for vxdump and vxrestore.  This is for
20147         Solaris so it can automatically handle vxfs filesystems.
20148         * client-src/sendbackup-dump.c: add missing last NULL argument to
20149         newvstralloc().
20150         * server-src/dumper.c: add missing last NULL argument to
20151         newvstralloc().
20152         * NEWS: reorder 2.4.1 items into most to least important for most
20153         users.
20154         * config/acconfig.h: update comment for VXDUMP and VXRESTORE to
20155         include systems where the Veritas filesystem is used.
20156
20157 1998-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
20158
20159         * man/amanda.8.in (nofull): only level 1 incrementals
20160
20161 1998-08-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
20162
20163         * changer-src/chg-mtx.sh.in (PATH): added /usr/local/bin
20164
20165         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): added chg-zd-mtx
20166         (AC_OUTPUT): ditto
20167         * changer-src/Makefile.am (EXTRA_SCRIPTS): ditto
20168         * docs/TAPE.CHANGERS (chg-zd-mtx): documented it
20169         (chg-mtx): mentioned chg-zd-mtx
20170
20171 1998-08-20  Eric Doutreleau  <Eric.Doutreleau@int-evry.fr>
20172
20173         * changer-src/chg-zd-mtx.sh.in: new changer script for
20174         Zubkoff/Dandelion version of mtx.
20175
20176 1998-08-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
20177
20178         * docs/SAMBA: updated; documented new patch (sambatar.diff,
20179         available in the patches page) and requirements about backup user.
20180         * docs/INSTALL: documented new patch
20181
20182 1998-08-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
20183
20184         * client-src/sendsize.c (regex_s): refuse to compile if SAMBA_CLIENT
20185         and HAVE_DUMP_ESTIMATE are both defined: the regexp that matches the
20186         estimate from DU 4.0's dump also matches an output line from
20187         smbclient, that provides an incorrect estimate.
20188         * docs/SYSTEM.NOTES: document the problem
20189
20190 1998-08-14  John R. Jackson  <jrj@purdue.edu>
20191
20192         * docs/TAPE.CHANGERS: describe "advance" and clean up some spelling.
20193
20194 1998-08-13  Alexandre Oliva  <oliva@dcc.unicamp.br>, Marcel Hild  <hild@id-pro.de>
20195
20196         * configure.in (--with-portrange): validate and define PORTRANGE
20197         * example/config.site: document it
20198         * config/acconfig.h (PORTRANGE): prepare for configure define
20199         * common-src/stream.c (stream_server): use PORTRANGE to limit TCP
20200         unreserved server sockets
20201
20202 1998-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
20203
20204         * docs/FAQ: working around `dumps way too big'
20205
20206 1998-08-11  Alexandre Oliva  <oliva@dcc.unicamp.br>, Gunnar Gunnarsson  <gunnar@ki.ericsson.se>
20207
20208         * common-src/token.h (rxquote, shquote): new functions
20209         * common-src/token.c (rxquote) quotes a string into an equivalent
20210         regular expression
20211         (shquote): quotes all shell special meta-characters, so that a
20212         string can be safely passed down for shell interpretation in
20213         system() or popen()-like calls
20214         * server-src/amindexd.c (build_disk_table): quote the disk_name with 
20215         both rxquote and shquote
20216
20217 1998-08-11  John R. Jackson  <jrj@purdue.edu>
20218
20219         * changer-src/chg-manual.sh.in: put the debug file in DEBUG_DIR for
20220         security.  Clean up and enhance logging.  Fix locations of the
20221         changer files.  Source the changerfile into the script so it can
20222         override the request() function and allow alternatives to /dev/tty
20223         (e.g. E-mail, syslog).  Issue rewind before status (Solaris does
20224         not give a good status report right after a tape is loaded).
20225
20226 1998-08-10  Nick Hibma  <nick.hibma@jrc.it>
20227
20228         * changer-src/chg-chio.pl.in: move to first slot if last is unused
20229
20230 1998-08-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
20231
20232         * example/Makefile.am (EXTRA_DIST): add DIN-A4.ps
20233
20234 1998-08-07  Günter Felkel  <G.Felkel@edelmann.de>
20235
20236         * example/DIN-A4.ps: new file
20237
20238 1998-08-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
20239
20240         * tape-src/tapetype.c (initrandombytes): use random() instead of
20241         rand(), its low-order bits are more random
20242         (main): call srandom(seed) instead of srand(seed)
20243         (USE_RAND): if defined, reverts to using rand() and srand(seed)
20244
20245         * docs/FAQ: some notes about driving real tape changers
20246
20247 1998-08-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
20248
20249         * man/amreport.8.in (SYNOPSIS): replace `amtoc' with `amreport'
20250
20251 1998-08-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
20252
20253         * client-src/sendsize.c: revert 1998-08-01's change, it wouldn't
20254         even compile, as amfree() expands to a statement, not an expression, 
20255         so it cannot be used as the `increment' part of a for loop.
20256
20257         * server-src/planner.c (main): if runs_per_cycle is set to zero or
20258         negative, set it to 1, in order to avoid division by zero.
20259         * server-src/amadmin.c (balance): ditto
20260
20261 1998-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
20262
20263         * client-src/sendsize.c: replace free(line) with amfree(line),
20264         because line is not ensured to be non-NULL
20265         
20266         * docs/FAQ: amandad: error receiving message
20267         
20268         * docs/FAQ: difference between skip-full and strategy nofull
20269
20270 1998-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
20271
20272         * docs/FAQ: software or hardware compression?
20273
20274         * server-src/driver.c (adjust_diskspace): do not abort just because
20275         a holding disk file is missing
20276         (main): report warning if holding disk directory could not be
20277         created, and do not use it
20278         Reported by Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
20279
20280         * example/Makefile.am (EXTRA_DIST): add 8.5x11.ps to the
20281         distribution
20282         Reported by Jason L Tibbitts III <tibbs@hpc.uh.edu>
20283
20284         * server-src/conffile.c (get_holdingdisk): define chunksize 0 as
20285         INT_MAX/1024, and chunksize -1 as -INT_MAX/1024
20286         * server-src/driver.c (find_diskspace): accept negative chunksizes
20287         as the maximum size (in modulus) for using the holding disk
20288         * man/amanda.8.in (chunksize): document the usage of negative
20289         values, and improve the explanation of chunking
20290         * example/amanda.conf.in: ditto
20291
20292 1998-07-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
20293
20294         * docs/FAQ: disk offline
20295
20296 1998-07-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
20297
20298         * restore-src/amidxtaped.c (main): use tape_rewind() instead of
20299         running `mt'
20300
20301         * server-src/amcleanup.sh.in (reporter): update to call amreport.
20302         (amdump.<n>) update to use the same renaming technique introduced in
20303         June 30's change to amdump.
20304
20305 1998-07-25  Michael Graff  <explorer@vix.com>
20306
20307         * changer-src/Makefile.am (install-exec-hook): support $(DESTDIR)
20308         * client-src/Makefile.am (install-exec-hook): ditto
20309         * man/Makefile.am (install-data-hook): ditto
20310         * recover-src/Makefile.am (install-exec-hook): ditto
20311         * restore-src/Makefile.am (install-exec-hook): ditto
20312         * server-src/Makefile.am (install-exec-hook): ditto
20313
20314         * configure.in: link krb5 and com_err in for Kerberos support, if
20315         they exist
20316
20317 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20318
20319         * server-src/reporter.c (copy_template_file): add braces to 
20320         remove warning
20321         * tape-src/tapeio.h: declare is_zftape to remove warning in
20322         amlabel.c and taper.c
20323
20324 1998-07-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
20325
20326         * server-src/driver.c (any_delayed_disk): new variable, to ensure
20327         that we do not leave the main driver loop if there are delayed disks 
20328         but there are no active dumpers
20329         (main): instead of checking whether idle_reason is IDLE_START_WAIT,
20330         check whether there is any_delayed_disk for remaining in the loop
20331         (start_degraded_mode): set any_delayed_disk when needed
20332         Reported by Peter Walker <peter@talarian.com>
20333
20334 1998-07-23  John R. Jackson  <jrj@purdue.edu>
20335
20336         * server-src/reporter.c (main): handle LPRCMD being undefined.
20337
20338 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20339
20340         * client-src/selfcheck.c (check_suid): new function to check if a
20341         program is SUID root.
20342         * client-src/selfcheck.c (check_overall): check that runtar and
20343         rundump are SUID root.
20344
20345 1998-07-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
20346
20347         * configure.in: version number set to 2.4.1
20348
20349         * recover-src/Makefile.am (LDADD): libamtape imports symbols from
20350         libamanda, so it must be listed first
20351
20352         * changer-src/Makefile.am (LDADD): remove duplication of libamserver
20353         and libamanda, as they no longer provide symbols for each other
20354         * server-src/Makefile.am (LDADD): ditto
20355         
20356 1998-07-21  Blair Zajac  <blair@gps.caltech.edu>
20357
20358         * server-src/amrmtape.sh.in: now use amanda.conf's tapelist variable
20359         * server-src/amcheckdb.sh.in:  now use amanda.conf's tapelist variable
20360         * server-src/amfreetapes.sh.in: now use amanda.conf's tapelist variable
20361         * server-src/amtoc.pl.in: now use amanda.conf's tapelist variable,
20362         make perl4 compatible
20363
20364 1998-07-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
20365
20366         * docs/FAQ (results missing): suggestions to work around the UDP
20367         packet size limit
20368
20369 1998-07-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
20370
20371         * docs/FAQ (amrecover): a config name may have to be specified
20372         Reported by digital messiah <dmessiah@silcon.com>
20373
20374 1998-07-15  Blair Zajac  <blair@gps.caltech.edu>
20375
20376         * server-src/reporter.c (main): declare optind
20377
20378 1998-07-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
20379
20380         * configure.in: created Amanda 2.4.1 branch
20381
20382         * example/amanda.conf.in: strategy noinc is not implemented yet
20383
20384 1998-07-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20385
20386         * NEWS: new runspercycle keyword
20387         * server-src/conffile.h: new runspercycle keyword
20388         * server-src/conffile.c: new runspercycle keyword
20389         * server-src/amadmin.c (balance): new runspercycle keyword
20390         * server-src/planner.c (main): new runspercycle keyword
20391         * man/amanda.8.in: document new runspercycle keyword
20392         * example/amanda.conf.in: example for new runspercycle keyword
20393
20394 1998-07-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
20395
20396         * docs/FAQ: What to do if DUMP program is not available.
20397         * client-src/selfcheck.c (check_overall): if a needed program is
20398         missing, print an error message.
20399         Reported by Klaus Hoffmann <handatalog@csi.com>
20400
20401         * */Makefile.am: checked library version numbers, no need for update
20402         
20403         * configure.in: version number set to 2.4.1b1
20404
20405 1998-07-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
20406
20407         * docs/FAQ: new entries: how to label tapes, (not) spanning large
20408         filesystems across tapes, how to enable index generation,
20409         overwriting selected tapes, cleaning up databases, selecting tape
20410         changer.
20411         
20412 1998-07-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
20413
20414         * man/Makefile.am (EXTRA_DIST): amreport.8 is built from .8.in
20415
20416         * configure.in (AC_OUTPUT): generate chg-chio.pl
20417         * changer-src/Makefile.am (EXTRA_DIST): removed chg-chio.c
20418         * changer-src/chg-chio.c: removed, as it was confusing make
20419         
20420 1998-07-10  Nick Hibma  <nick.hibma@jrc.it>, Alexandre Oliva <oliva@dcc.unicamp.br>
20421
20422         * changer-src/chg-chio.pl.in: new script, created to replace old
20423         chg-chio written in C
20424         * docs/TAPE.CHANGERS (chg-chio): document it
20425         * changer-src/Makefile.am (EXTRA_SCRIPTS): add chg-chio
20426         (EXTRA_DIST): still include chg-chio.c, just in case it is useful
20427         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): add chg-chio
20428         
20429 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
20430
20431         * server-src/reporter.c (main): if no arguments are given, preserve
20432         original behavior; require config name otherwise.  Perform better
20433         argument checking.
20434         * example/DLT.ps (DrawHost): discard additional argument introduced
20435         in Steven Freed's modification
20436         * example/EXB-8500.ps (DrawHost): ditto
20437         * example/HP-DAT.ps (DrawHost): ditto
20438
20439         * server-src/Makefile.am (amreport_SOURCES): build from reporter.c
20440         (driver_SOURCES) removed, no longer needed
20441         * man/Makefile.am (EXTRA_DIST): added amreport.8
20442
20443 1998-07-08  Steven Freed  <sfreed@gilasoft.com>
20444
20445         * server-src/reporter.c (usage): new function
20446         (main): accept command-line arguments for selecting config name,
20447         output file, log file name to read from, postscript file to write
20448         to.
20449         (output_summary): print tape labels list, tape section numbers and
20450         dump sizes.
20451         * server-src/amdump.sh.in: run amreport
20452         * server-src/amflush.c (main): ditto
20453         (run_dumps): ditto
20454         * configure.in (BUILD_SERVER_PROGS_SBIN): add amreport
20455         (BUILD_SERVER_PROGS_LIBEXEC): remove reporter
20456         * man/amreport.8.in: new file
20457         * man/Makefile.am (man_MANS): added amreport.8
20458         * example/8.5x11.ps: new file
20459
20460 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
20461
20462         * Makefile.am (ACLOCAL_M4): fix ||/&& precedence problem
20463
20464 1998-07-07  John R. Jackson  <jrj@purdue.edu>
20465
20466         * changer-src/scsi-chio.c: move #include's so this will compile on
20467         systems without <sys/mtio.h> (e.g. AIX).
20468
20469 1998-07-06  John R. Jackson  <jrj@purdue.edu>
20470
20471         * client-src/sendsize.c (handle_dumpline): allow the dump block
20472         count estimate to be negative.  Found by Lance A. Brown
20473         <brown9@niehs.nih.gov> on NeXT.
20474
20475         * common-src/Makefile.am, common-src/security.c: add TEST code to
20476         security.c so people can do "make security" and have a test program
20477         to track down why they are getting "access as XXX not allowed from
20478         YYY@ZZZ".
20479
20480         * common-src/security.c (bsd_security_ok): allow the remote user
20481         field in .amandahosts to be empty ala .rhosts.
20482
20483 1998-07-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20484
20485         * server-src/amcheck.c (start_server_check): report space use for
20486         holding disk if a negative value is given in the use parameter.
20487
20488         * server-src/driver.c (main): compute holding disk space if 
20489         a negative value is given in the use parameter..
20490
20491         * man/amanda.8.in (use) : document negative use paramater for 
20492         holding disk.
20493
20494         * example/amanda.conf.in (use): document negative use paramater for
20495         holding disk..
20496
20497 1998-07-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
20498
20499         * man/amanda.8.in (reserve): document it
20500         * example/amanda.conf.in (reserve, gigabytes): ditto
20501         (etimeout) negative number stands for total estimate time
20502
20503         * NEWS: documented major changes since amanda 2.3.0.4
20504
20505         * docs/INSTALL: refer to patch-system for editing services and
20506         inetd.conf
20507
20508         * docs/FAQ: added entries for common amdump and amcheck errors
20509
20510         * COPYRIGHT: updated to 1998, refer to Amanda Development Team
20511         * AUTHORS: who is the Amanda Development Team
20512
20513 1998-07-03  John R. Jackson  <jrj@purdue.edu>
20514
20515         * docs/SYSTEM.NOTES: add comment about using the variable device name
20516         on IRIX.  Otherwise, IRIX will write 4KByte physical blocks, which
20517         it appears to read OK, but not if you take the tape to some other
20518         system that does what you tell it.  Discovered by Steve E. Khoo
20519         (steve@gordian.com).
20520
20521 1998-07-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
20522
20523         * server-src/planner.c (setup_estimate): handle new disks with
20524         skip-full correctly.
20525
20526         * Makefile.am (aclocal.m4): must depend on libtool.m4, so as to
20527         force it to be newer on distributions.
20528
20529 1998-07-01  John R. Jackson  <jrj@purdue.edu>
20530
20531         * server-src/driverio.h: change reserved_space to unsigned long to
20532         match free_space() and avoid a compiler warning.
20533
20534 1998-06-30  John R. Jackson  <jrj@purdue.edu>
20535
20536         * man/amanda.8.in: fix amrecover synopsis and add a short description.
20537         Noted by Brendan M Coffey <bcoffey@connix.com>.
20538
20539         * example/amanda.conf.in: make tapecycle example fit dumpcycle value
20540         better.  Noted by Tom.Croll@radisys.com and suggested comments from
20541         Alexandre Oliva <oliva@dcc.unicamp.br>.
20542
20543 1998-06-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
20544
20545         * server-src/amdump.sh.in (maxdays): set up with tapecycle+2
20546         (days): loops from 1 to $maxdays, but stops if amdump.$days does not 
20547         exist, so that we only rename amdump log files that exist.  This
20548         prevents too long loops in case of an infinite tapecycle.
20549         Reported by Nick Hibma <nick.hibma@jrc.it>
20550
20551 1998-06-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
20552
20553         * common-src/security.c (bsd_security_ok): accept case mismatches
20554         when comparing hostnames and usernames from amandahosts, and assume
20555         localuser if username is missing.
20556         * docs/INSTALL: clarify BSD security and amandahosts, WRT to
20557         non-FQDNs.
20558         Reported by Chris Shenton <chris@absinthe.shenton.org>
20559
20560         * server-src/reporter.c (output_tapeinfo): degraded mode no longer
20561         implies incremental dumps only.
20562         Reported by Randy Dees <rrd@amherst.com>
20563
20564 1998-06-26  John R. Jackson  <jrj@purdue.edu>
20565
20566         * configure.in: fix BSD/OS Kerberos include file location.
20567
20568 1998-06-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
20569
20570         * config/ltmain.sh: install official patch to libtool 1.2a
20571
20572         * configure.in: do not set max file size for Solaris 2.6, it is no
20573         longer used.
20574
20575 1998-06-26  Tim McNerney  <mumbly@netcom.com>
20576
20577         * common-src/fileheader.c (parse_file_header): accept missing
20578         PROGRAM in tape section header, for backward compatibility.
20579
20580 1998-06-25  Blair Zajac  <blair@gps.caltech.edu>
20581
20582         * server-src/amflush.c: fix mismatch arguments to error()
20583
20584 1998-06-24  Steven Freed  <sfreed@gilasoft.com>
20585
20586         * configure.in (dump-honor-nodump): fix test for `-h' support
20587
20588 1998-06-24  Scott Mesches  <mesches@allison.Colorado.EDU>
20589
20590         * example/DLT.ps: new file
20591         * example/Makefile.am (EXTRA_DIST): add DLT.ps
20592
20593 1998-06-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
20594
20595         * Makefile.am (EXTRA_DIST): moved CHANGES into ChangeLog
20596
20597         * recover-src/extract_list.c (extract_files_child): handle
20598         IS_UNKNOWN dumptype as IS_DUMP
20599
20600         * client-src/sendsize.c (getsize_dump): always create pipe for
20601         killpgrp.
20602
20603         * client-src/amandad.c (sendnak): report `UNKNOWN' error if str is
20604         NULL.
20605
20606         * amplot/amplot.awk: ignore `interface-state'
20607         Reported by Peter Walker <peter.walker@talarian.com>
20608
20609 1998-06-24 Alexandre Oliva <oliva@dcc.unicamp.br>
20610
20611         * server-src/amrmtape.sh.in: enable verbose by default; implement -q 
20612         for quiet.
20613         * man/amrmtape.8.in: ditto
20614         Suggested by Nick Hibma  <nick.hibma@jrc.it>
20615         
20616 1998-06-24  Nick Hibma  <nick.hibma@jrc.it>
20617
20618         * server-src/amrmtape.sh.in: better error reporting for incorrect
20619         database entries
20620
20621 1998-06-24  Dan Swartzendruber <dswartz@druber.com>
20622         
20623         * server-src/conffile.h (RESERVE): new keyword.
20624         * server-src/conffile.c (RESERVE): ditto.
20625         (getconf_seen): recognize "reserve" keyword.
20626         (getconf_int): return value of "reserve" keyword.
20627         (read_confline): parse "reserve" line.
20628         * server-src/driverio.h (reserved_space): new global
20629         * server-src/driver.c (main): compute holding disk space to reserve
20630         for degraded dumps.
20631         (start_degraded_mode): if we haven't hit degraded mode reservation
20632         limit, allow full dump.
20633         
20634 1998-06-18  Blair Zajac <blair@gps.caltech.edu>
20635
20636         * config/ltconfig: update to 1.2a
20637         * config/ltmain.sh: update to 1.2a
20638         * config/libtool/libtool.m4: update to 1.2a
20639
20640 1998-06-17  John R. Jackson  <jrj@purdue.edu>
20641
20642         * server-src/dumper.c (write_tapeheader): comment out some variables
20643         to get rid of a compiler warning.
20644
20645 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20646
20647         * server-src/amadmin.c (bumpsize): write wrong equation for bump
20648         threshold.
20649
20650 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20651
20652         * man/amanda.8.in: add info about the chunksize parameter
20653         of the holdingdisk.
20654         * man/amanda.8.in: add info about amstatus command
20655
20656 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
20657
20658         * common-src/Makefile.am (libamanda_version): updated
20659         * tape-src/Makefile.am (libtape_version): updated
20660         * client-src/Makefile.am (libclient_version): updated
20661         * server-src/Makefile.am (libserver_version): updated
20662
20663         * server-src/taper.c (read_file): if switching to the next file
20664         fails or there's no next file, do not send a `W' to taper writer.
20665
20666         * server-src/changer.h (changer_clean): new function
20667         * server-src/changer.c (changer_clean): ditto
20668
20669 1998-06-13  Michael C. Povel  <mcp@ladyada.han.de>
20670
20671         * changer-src/chg-scsi.c: added ejetct_tape and sleep for external
20672         tape devices, and changed some code to allow multiple drives to use
20673         their own slots. Also added support for reserverd slots.
20674         * changer-src/libscsi.h (get_clean_state, eject_tape): new functions 
20675         * changer-src/scsi-chio.c (get_clean_state, eject_tape): implemented 
20676         using Linux ioctls
20677         * changer-src/scsi-hpux.c (get_clean_state, eject_tape): do nothing, 
20678         until someone implements them
20679         * changer-src/scsi-proto.c (get_clean_state, eject_tape): new
20680         functions
20681         * docs/TAPE.CHANGERS: document new configuration file format
20682         * example/chg-scsi.conf: sample configuration file
20683         * example/Makefile.am: add chg-scsi.conf to the distribution
20684         * server-src/amtape.c: add support for `clean' command
20685
20686 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
20687
20688         * docs/SYSTEM.NOTES: clean-up
20689
20690         * docs/FAQ: new file
20691         * docs/SUNOS4.BUG: removed
20692         * Makefile.am: remove docs/SUNOS4.BUG and add docs/FAQ
20693         
20694         * example/amanda.conf.in (bumpmult): fixed equation for threshold
20695         * man/amanda.8.in (bumpsize): fix threshold example.
20696         problem reported by Brian McEntire <brianm@fsg1.nws.noaa.gov>
20697
20698         * server-src/logfile.c (open_log): open log file with mode 0600.
20699
20700         * server-src/amdump.sh.in: refuse to run if either amdump or log
20701         exist in logdir.
20702         * server-src/amflush.c (main): refuse to run if log exists.
20703         * server-src/amcheck.c (start_server_check): do not perform tape
20704         testing if amdump and/or log exist in logdir.
20705
20706 1998-06-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20707
20708         * restore-src/amrestore.c (restore): fixed -p flag (and amrecover)
20709         should not dup2( A, B ); aclose(A) when A == B
20710
20711 1998-06-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
20712
20713         * client-src/sendsize.c (getsize_dump): use killpgrp
20714         unconditionally, so we're not bitten by setuid dump programs.
20715         * client-src/killpgrp.c: enable unconditionally.
20716
20717         * tape-src/tapetype.c: new program: calculates tapetype parameters.
20718         * tape-src/Makefile.am (EXTRA_PROGRAMS): added tapetype.
20719         * example/amanda.conf.in: point to tapetype program.
20720
20721 1998-06-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
20722
20723         * docs/SAMBA: added notes about (not) backing up registry files and
20724         ACLs with SAMBA.
20725         * docs/INSTALL: point to docs/SAMBA for usage and limitations
20726
20727 1998-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
20728
20729         * configure.in (amanda_cv_print_command): removed; using PRINT
20730         instead.
20731
20732 1998-06-07  Todd Kover <kovert@omniscient.com>
20733
20734         * add --with-owner option to allow installed binaries to be owned
20735         by someone other than the amanda user
20736
20737         * add GB as valid holding disk size.
20738
20739 1998-06-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20740
20741         * server-src/amadmin.c (info): don't need to specify an host.
20742
20743         * server-src/amadmin.c (due): new due command to write when a
20744         filesystem is due ffor next level 0 or how much days it is
20745         overdue.
20746
20747         * server-src/amstatus.pl.in (dump_size): new function to report
20748         the size of a dump split on multiple files.
20749
20750 1998-06-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20751
20752         * recover-src/extract_list.c (read_buffer): write a message
20753         when amrecover timeout waiting for amrestore to send the dump.
20754
20755 1998-06-04  John R. Jackson  <jrj@purdue.edu>
20756
20757         * client-src/getfsent.c (main): use a dynamically allocated string
20758         for the lookups since dev2rdev alters it on the fly and some systems
20759         drop core for trying to write into read only memory.  Also add the
20760         capability of passing additional lookups on the command line.
20761
20762         * common-src/Makefile.am, common-src/file.c (main),
20763         common-src/token.c (main), server-src/conffile.c (dump_configuration,
20764         main), server-src/diskfile.c (main), server-src/infofile.c (main):
20765         Clean up compiler warnings in the test programs and make them all
20766         work again.
20767
20768 1998-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
20769
20770         * amplot/amplot.sh.in: modified command line argument parsing
20771         mechanism, so as to prevent shell quoting problems and unportable
20772         constructs.
20773         Reported by Chris Jones <cjones@clydesdale.math.montana.edu>
20774
20775 1998-06-02  John R. Jackson  <jrj@purdue.edu>
20776
20777         * server-src/amcheck.c (main), server-src/reporter.c (main): make
20778         sure internal errors, such as the mail command failing, get
20779         reported.  In the case of amcheck, they go to stderr even if -m is
20780         set since there didn't seem to be anyplace better to do so and if
20781         this is running from a cron job it might get back to a real user.
20782         For reporter, the errors go to .../amdump along with everything
20783         else from the amdump script, and they should also go to .../log,
20784         except since it's reporter that's having the trouble, they probably
20785         will not make it into the mail report.
20786
20787 1998-06-01  John R. Jackson  <jrj@purdue.edu>
20788
20789         * client-src/killpgrp.c: clean up minor compiler warnings by not
20790         building term_kill_{soft,hard} unless they are needed.
20791
20792         * server-src/driverio.c (dumper_cmd): clean up compiler warning
20793         in printf format by forcing argument to always be long and using %ld.
20794
20795         * server-src/driver.c: include <holding.h> to get declaration for
20796         unlink_holding_files and avoid a compiler warning.
20797
20798         * common-src/amanda.h, common-src/match.c (validate_glob, match_glob,
20799         glob_to_regex), recover-src/amrecover.h, recover-src/extract_list.c
20800         (add_glob, add_regex, add_file, delete_glob, delete_regex,
20801         delete_file), recover-src/help.c (help_list), recover-src/uparse.y,
20802         recover-src/uscan.l, man/amrecover.8.in: add shell wildcard support
20803         for the add/delete amrecover commands.  Add addx/deletex commands
20804         that use regular expressions.  Support more characters in path names.
20805
20806 1998-06-01  Dan Swartzendruber  <dswartz@druber.com> via John R. Jackson
20807
20808         * server-src/amlabel.c (main): check argc before referencing too
20809         far into argv for "-f".
20810
20811 1998-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
20812
20813         * docs/SYSTEM.NOTES: advise Linux users to use dump without
20814         setuid/setgid
20815
20816         * docs/INDEXING: update dumptype syntax
20817
20818 1998-05-29  John R. Jackson  <jrj@purdue.edu>
20819
20820         * server-src/amindexd.c (uncompress_file, process_ls_dump,
20821         build_disk_table, is_dir_valid_opaque, opaque_ls): fix file
20822         descriptor leak, log the amadmin find command, fix error reporting
20823         from routines that do not generate system errors.
20824         * common-src/amanda.h: make sure errno is saved through amfree().
20825
20826 1998-05-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
20827
20828         * docs/SYSTEM.NOTES: GNU tar must be patched on HP/UX.
20829         * patches/tar-1.12.patch: ditto.
20830
20831         * server-src/taper.c (endtape): do not log amount of used tape after 
20832         entering degraded mode.
20833
20834         * client-src/sendsize.c (getsize_dump): pass at least argv[0] to
20835         killpgrp.
20836
20837 1998-05-28  Paul R. Johnson  <prj@mit.edu>
20838
20839         * client-src/sendbackup.c (check_status): when checking whether
20840         return status 1 is valid for dump, make sure it was *not* tar that
20841         was running.
20842
20843 1998-05-28  Tom Lear <toml@accesscom.com>, John R. Jackson  <jrj@purdue.edu>
20844
20845         * man/amcheck.8.in: document new -Maddress command line flag.
20846         * server-src/amcheck.c (usage, main): add -Maddress command line
20847         flag to send mail to a specific address instead of mailto from
20848         amanda.conf.
20849
20850 1998-05-27  John R. Jackson  <jrj@purdue.edu>
20851
20852         * man/amrestore.8: update for host/disk/date triplets.
20853         * recover-src/extract_list.c (extract_files_setup): pass datestamp
20854         argument in new position and without -d.
20855         * restore-src/amidxtaped.c (main): remove -d checks.
20856         * restore-src/amrestore.c (restore, usage, main): fix file descriptor
20857         leak, move datestamp to host/disk triplet and allow all to be repeated.
20858
20859 1998-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
20860
20861         * client-src/killpgrp.c (main): wait for either SIGTERM or EOF on
20862         stdin.
20863
20864         * client-src/sendsize.c (getsize_dump): close the other end of
20865         killpgrp's stdin pipe before trying to kill it, because we just
20866         can't kill it.
20867
20868         * configure.in (HAVE_HPUX_SCSI): check whether sys/scsi.h actually
20869         supports HP/UX-like changer commands.
20870
20871         * config/acconfig.h (HAVE_HPUX_SCSI): indicates HP/UX-like changer
20872         interface is supported.
20873
20874         * changer-src/scsi-hpux.c: check for HAVE_HPUX_SCSI instead of
20875         HAVE_SYS_SCSI_H.
20876
20877 1998-05-25  Allen Briggs  <briggs@canolog.ninthwonder.com>
20878
20879         * changer-src/chg-manual.sh.in (ONLINEREGEX): add `^er=0$' for
20880         NetBSD's mt
20881
20882 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
20883
20884         * client-src/sendsize.c (getsize_dump): killpgrp must be direct
20885         child of sendsize, otherwise sendsize won't be able to kill it.
20886
20887 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
20888
20889         * configure.in (bcopy, bzero, fread, fwrite, vfprintf, vprintf,
20890         vsprintf): check for these in stdlib.h
20891         (memmove): check for it in strings.h
20892         
20893         * common-src/amanda.h (memmove): fix declaration of memmove, so as
20894         to be compatible with the ones in common-src/memmove.c and
20895         regex-src/fake/memmove.c
20896         
20897         reported by Tim Potter <tpot@acsys.anu.edu.au>
20898
20899 1998-05-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
20900
20901         * client-src/sendbackup.c (check_status): when checking whether dump 
20902         returned 1, make sure it was not tar; #ifdef'ed out the code that
20903         ignores exit status 2 from gnutar (will be compiled in only if
20904         IGNORE_TAR_ERRORS is defined)
20905         * client-src/sendbackup-gnutar.c (GNUTAR active filesystem errors): 
20906         updated comment; compile in GNUTAR error messages as DMP_NORMAL if
20907         IGNORE_TAR_ERRORS is defined; compile in SMBCLIENT error messages as 
20908         DMP_NORMAL if IGNORE_SMBCLIENT_ERRORS is defined.
20909         
20910 1998-05-20  Tom Lear  <toml@accesscom.com>
20911
20912         * client-src/sendbackup.h (tarpid): new variable, used to check
20913         whether it is gnutar that is running
20914         * client-src/sendbackup-gnutar.c (start_backup): set tarpid when
20915         starting gnutar
20916         * client-src/sendbackup.c (check_status): if gnutar returns 2,
20917         ignore the error
20918
20919 1998-05-19  Jean-Louis Martineau <martineau@IRO.UMontrealCA>
20920
20921         * client-src/amandad.c: set parse_errmsg when unexpected packet
20922         * recover-src/amrecover.c: overflow in clean_pathname()
20923         * recover-src/extract_list.c: add log in delete_file().
20924         small bug when call clean_pathname()
20925         * server-src/amindexd.c: ORLD command is not working
20926         * server-src/dumper.c: fixe overflow
20927
20928 1998-05-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
20929
20930         * configure.in: do not check for MAXFILESIZE
20931         * config/acconfig.h: do not define MAXFILESIZE
20932         * server-src/conffile.c: use INT_MAX instead of MAXFILESIZE
20933         * example/amanda.conf.in: ditto
20934
20935         * server-src/driver.c (interface_state): new function; print the
20936         free bandwidth for each interface.
20937         (short_dump_state): call interface_state before holdingdisk_state
20938
20939         * ChangeLog: renamed from CHANGES.  Original entries follow.
20940
20941         fix skip-incr handling so that reporter reports SKIPPED
20942         instead of missing result.
20943         -Jim Simmons <s4i@sws6.ctd.ornl.gov>
20944
20945         split big dumps ( > MAXFILESIZE ) in multiple files on holding disk. 
20946         new chunksize parameter in holdingdisk description of 
20947         the amanda.conf file.
20948         -J-L Martineau <martineau@IRO.UMontreal.CA>
20949
20950         an amstatus command that give the current state of a run.
20951         -J-L Martineau <martineau@IRO.UMontreal.CA>
20952
20953         possibility to amflush multiple runs on one tape.
20954         possibility to select dump by datestamp in amrestore (-d datestamp).
20955         -J-L Martineau <martineau@IRO.UMontreal.CA>
20956
20957         amidxtrm keep index of all active tapes as listed in tapelist file.
20958         -J-L Martineau <martineau@IRO.UMontreal.CA>
20959
20960         the tapelist file keep every active tapes.
20961         "amadmin reuse" and "amadmin no-reuse" to mark tapes you want
20962         to keep for a long time.
20963         -J-L Martineau <martineau@IRO.UMontreal.CA>
20964
20965         amlabel will not overwrite an amanda tape.
20966         The -f flag allow to overwriting an amanda tape.
20967         -J-L Martineau <martineau@IRO.UMontreal.CA>
20968
20969         be consistent and use 1048576 as a dump size everyplace instead of
20970         100000 in some places (mostly cosmetic).  -JJ
20971
20972         negative numbers are now accepted in the configuration file
20973         parser.  -oliva
20974
20975         allow a total estimate time-out to be specified.  -oliva
20976         Suggested by Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
20977
20978         fix amtoc behavior in case of failed reads.
20979         -Niek Rijnbout <niek@knoware.nl>
20980
20981         index files are now stored in a directory tree ala curinfo instead
20982         of a flat namespace. -JJ
20983
20984         amrecover will now restore files using SAMBA.
20985         -Rob Riggs <rob@devilsthumb.com>
20986
20987         VXDUMP needs not be run as root, so it no longer enables
20988         rundump automatically.  -oliva
20989
20990         new `killpgrp' setuid-root program.  It is used to kill
20991         VDUMP, VXDUMP and XFSDUMP or with-rundump DUMP estimates in a
20992         safe manner.
20993         -Joerg Behrens <jbehren@umpa06.gwdg.de> & oliva
20994
20995         fixed amrmtape so that it will delete from tapelist only the
20996         entry that corresponds to the specified tape, not others that
20997         contain the tape name as a substring.
20998         -Nick Hibma <nick.hibma@jrc.it> & oliva
20999
21000         Added support for FreeBSD dump -h flag (honor nodump).
21001         -James E. Housley <housley@pr-comm.com>
21002
21003         Added support for ZFTAPE on Linux.
21004         -Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
21005
21006         Added support for printing tape labels.
21007         -Scott Mesches <mesches@allison.Colorado.EDU>
21008
21009         Do not let amrecover die because of SIGPIPE if the pager terminates
21010         early during a long listing.  Use the PAGER environment variable if
21011         available, else "more".  -JJ
21012
21013         Change log() calls to log_add() so it does not conflict with the math
21014         function of the same name.  Replace pname global variable with two
21015         functions to set/get.  Get rid of libamnolog.  -JJ
21016
21017         chg-chio was renamed to chg-scsi, and now it will support not
21018         only chio.h, but also tape changer interfaces available on
21019         HPUX, Solaris 2.5, IRIX and possibly others.  Currently, only
21020         chio and HPUX are implemented.
21021         -Eric Schnoebelen <eric@cirr.com>
21022
21023         Numerous bugs/errors were fixed in chg-chio/chg-scsi.  it now
21024         properly responds to -eject requests, among other things.
21025         -Eric Schnoebelen <eric@cirr.com>
21026
21027 Version 2.4.0p1
21028
21029         updated to libtool 1.2a.  -oliva
21030
21031         fix kerberos encryption to work.  -Chris Ross <cross@uu.net>
21032
21033         add --with-owner option to optionally not have things owned by
21034         the amanda user.  (meant to be in 2.4.0) -kovert
21035
21036         only call initgroups() if it is available.  -oliva
21037
21038         check whether GNUTAR_LISTED_INCREMENTAL_DIR is a directory.
21039         -oliva, reported by J.A. Gutierrez <spd@gtc1.cps.unizar.es>
21040
21041         amindexd no longer considers prefixes of hostnames as valid
21042         hostnames. -oliva
21043
21044         fix strappend2 so that it accepts a NULL first argument.
21045         -Rob Riggs <rob@devilsthumb.com>
21046
21047         pass kerberos encryption switch to client.
21048         -Fredrik Jönsson <fjo@nada.kth.se>
21049
21050         rename afree to amfree, to work around IRIX 6.4's afree.
21051         -oliva, reported Stephan P. Martin <smartin@schlund.de>
21052
21053         implement `strategy skip' just like `ignore'.
21054         -oliva,
21055         reported by Michael O'Shaughnessy <mikeo@emg.sms.siemens.com>
21056
21057         amcheck now checks whether COMPRESS_PATH is executable, which
21058         would prevent server-compression and indexing from working.
21059         -oliva, reported by Peter Schultze <peter@mbi.ucla.edu>
21060
21061         fixed dump estimate regular expression for DU 4.0.
21062         -Andreas Schmitz <schmitz@theorie.physik.uni-wuppertal.de>
21063
21064 Version 2.4.0
21065
21066         fixed memory corruption error in amtape.
21067         -oliva
21068
21069         fixed VXDUMP support.
21070         -Andrew Ivanov <ivanov@mics.msu.su> & oliva
21071
21072         typos fixed in chg-chs.
21073         -David Barr <dbarr@simplex.com>
21074
21075         chg-mtx now prints error message if tapedev or changerdev must
21076         be defined.
21077         -Adrian T. Filipi-Martin <atf3r@cs.virginia.edu>
21078
21079         fixed amflush problem, reported by Dietmar Goldbeck
21080         <dietmar@telemedia.de>  -oliva
21081
21082 Version 2.4.0-980319
21083
21084         chg-mtx should use changer-dev if specified.
21085         -Steve Khoo <steve@gordian.com>
21086
21087         flex-related backward-compatibility problem fixed.
21088         -Norman K Scherer <nsche@seros-48.hac.com>
21089
21090         ported to RISCOS 4BSD.  -Harlan Stenn <Harlan.Stenn@pfcs.com>
21091
21092         when amrecover starts up, it will warn you $CWD is not the root
21093         of the selected filesystem.  -oliva
21094
21095         removed all uses of #elif, because some C compilers won't
21096         handle it correctly. -Gunther Felkel <G.Felkel@edelmann.de>
21097
21098         fixed VDUMP-only (no DUMP defined) estimates.
21099         -Joern Behrens <jbehren@umpa05.gwdg.de>
21100
21101         ported to UnixWare.  -Jeff Moscow <jeff@rtr.com>
21102
21103         improved vxdump support so that rundump will be used for vxfs
21104         filesystems only, and it will be enabled automatically.  -oliva
21105
21106         various portability problems fixed.
21107
21108         taper will now log reason for tape error to log.<DATE> file,
21109         in addition to amdump.<n>.
21110         -Liudvikas Bukys <bukys@cs.rochester.edu>
21111
21112         amflush now correctly updates the info database.  -oliva
21113         reported by Liudvikas Bukys <bukys@cs.rochester.edu>
21114
21115         sendsize now wait()s for tar and samba child processes.  -oliva
21116         reported by Brian Morris <brian@mvhs.fuhsd.org>
21117
21118         ensure that `amadmin find' reports multiple backups performed on
21119         the same day in the correct sequence.
21120         -Liudvikas Bukys <bukys@cs.rochester.edu>
21121
21122         if backup server has multiple IP addresses, security code
21123         might reject it.  -Gunnar Gunnarsson <gunnar@ki.ericsson.se>
21124
21125         vdump would not work.  -oliva
21126
21127         kerberos support was broken.  -mike
21128
21129 Version 2.4.0-980222
21130
21131         retry tape open on AIX if it fails with EAGAIN errno.
21132         -Francois Morris <Francois.Morris@lmcp.jussieu.fr>
21133
21134         fix amrmtape so that it behaves well when files to amflush
21135         remain.  Reported by Dietmar Goldbeck <dietmar@telemedia.de>
21136
21137         retry tape rewind on FreeBSD.  -Bob Willcox <bob@prm.com>
21138
21139         read all output from amrestore otherwise, instead of the
21140         beginning of the next tape section, it would read garbage.
21141         -Terje Malmedal <tm@odin.funcom.com> & oliva
21142
21143         formatting error in amoverview fixed.
21144         -Terje Malmedal <tm@odin.funcom.com>
21145
21146 Version 2.4.0b6p4
21147
21148         use vdump to dump advfs filesystems only.  add support for vdump
21149         indexes.
21150         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk> & oliva
21151
21152         change index generation commands so that they are less prone
21153         to be fooled by blanks or strange characters in filenames.
21154         -oliva
21155
21156         check whether exclude-list file exists before calling gnutar.
21157         If it does not, log a message to debugging file and discard it.
21158         selfcheck should check for that too, and print a warning message,
21159         but this is left for a future version.  -oliva
21160
21161         fix sendbackup-gnutar crashing problem.  -oliva
21162
21163         ensure that, in case of tape failure when dumping to tape, no
21164         incremental relative to the failed backup is performed.
21165         -oliva & Liudvikas Bukys <bukys@cs.rochester.edu>
21166
21167         Fix buffer use and write() error handling in the index pipeline.
21168         -Dietmar Goldbeck <dietmar@telemedia.de>
21169         & Lars Fenneberg <lf@elemental.net>
21170
21171         new index generation commands.  -oliva
21172
21173 Version 2.4.0b6p3
21174
21175         accept curses and ncurses in addition to termcap for readline
21176         support, just as readline itself does.  -oliva
21177
21178         fix NO-ROOM handling when Kerberos encryption is enabled.
21179         -oliva & Eric Siegerman <erics@now.com>
21180
21181         patch file for automake 1.2d provided. -oliva
21182
21183         sendbackup.debug now contains the argument list of child
21184         processes. -oliva
21185
21186         wait() for child processes, such as server compressor, before
21187         accepting other commands.
21188         -Liudvikas Bukys <bukys@cs.rochester.edu>
21189
21190         amrecover will print an error message if it is not run by root.
21191         It will not crash if you `pwd' before selecting a disk.  -oliva
21192
21193         updated to libtool 1.0i. -oliva
21194
21195         fixed tape block size of vxdump on HPUX 10.20.
21196         -Andrew Ivanov <ivanov@mics.msu.su>
21197
21198         Use "a" mode instead of "w" for the fdopen of the debug file.
21199         -David Lamkin <drl@net-tel.co.uk>
21200
21201         allow multiple concurrent gnutar backups, by fixing amandates
21202         locking mechanism.
21203         -Liudvikas Bukys <bukys@cs.rochester.edu>
21204
21205         amdump should check for a hold file, as says the man-page.
21206         -oliva
21207
21208         fix automatic enabling of USE_RUNDUMP for systems that require
21209         this.  xfsdump support no longer requires USE_RUNDUMP to be
21210         defined, rundump will be enabled and used for xfs filesystems
21211         even if USE_RUNDUMP is not defined, unless XFSDUMP is not defined.
21212         This seems to have completely solved the xfsdump problems.
21213         -oliva
21214
21215         when USE_RUNDUMP is enabled, instead of checking for read or write
21216         access in selfcheck, just test for the existence of disk devices.
21217         -oliva
21218
21219         fixed code that computed the dump size when incomplete
21220         writes occurred in dumper.  -Eric Siegerman <erics@now.com>
21221
21222         amplot no longer crashes if there's no holding disk. -oliva
21223
21224 Version 2.4.0b6p2
21225
21226         fix xfsdump index generation command.
21227         -Robert Tarrall <tarrall@bamboo.colorado.edu>
21228
21229         tape device wouldn't rewind if opened O_WRONLY.
21230         -Palle Girgensohn <girgen@partitur.se> & oliva
21231
21232         use setpgid instead of setpgrp if available
21233         -Mark Woodford <woodford@uniprise.com> & oliva
21234
21235         chg-mtx will check whether slot 6 is a cleaning tape or not.
21236         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
21237
21238         amrmtape updated to text database.  -oliva
21239
21240         incorrect NO-ROOM error when dumping directly to tape fixed.
21241         -oliva
21242
21243         --with-user and --with-group become are now required.  -oliva
21244
21245         patch-system script much more configurable.  -oliva
21246
21247         amindexd must get an exact match for diskname.
21248         -Richard Kail <e8903122@student.tuwien.ac.at> & oliva 
21249
21250         fix serial number message in amflush
21251         -Liudvikas Bukys <bukys@cs.rochester.edu>
21252
21253         removed backslashes from inside macro calls.
21254         un-indented # directives.
21255         -Gregory Neil Shapiro <gshapiro@WPI.EDU>
21256
21257         bsd-security is now enabled by default.  -oliva
21258
21259         fixed estimate command for XFSDUMP.
21260         -Mark Radleigh <radleigh@image.ucr.edu>
21261         & Jeff Moskow <jeff@rtr.com>
21262
21263 Version 2.4.0b6p1
21264
21265         documented etimeout configuration option.  -oliva&jrj
21266
21267         prevent a few crashes in dumper and reporter.  -jrj
21268
21269         reporter would report the same host and disk for RESULTS MISSING.
21270         -martineau
21271
21272         fix a few file-locking configure bugs.  -oliva
21273
21274         chg-multi updates and bugfixes.
21275         -Liudvikas Bukys <bukys@cs.rochester.edu>
21276
21277 Version 2.4.0b6
21278
21279         amindexd bugfix -Jos Alsters <Jos.Alsters@sci.kun.nl>
21280
21281         New --disable-libtool configure option, for those who really don't
21282         want libraries to be installed.  Shared libraries won't be
21283         built, of course.  -oliva
21284
21285         samba-related bugfixes.
21286         -Klaus Thiele <kth@becker-software.com>
21287
21288         xfsdump, DNS and amidxtaped bugfixes. -martineau
21289
21290         exclude-list support was broken, the filename was not copied
21291         to the gnutar argument list.
21292         -Stefan Bohm <Stefan.Bohm@rp-online.de>
21293
21294         chg-chio still thought it was seagate-changer, and contained a
21295         few bugs.  -Tim Tsai <tim@futuresouth.com>
21296
21297         New file docs/RESTORE, by Daniel Moore <dmoore@jeffco.k12.co.us>
21298
21299 Version 2.4.0b5
21300
21301         Make sure amverify waits for the tape device to be ready before it
21302         starts reading each section. -oliva
21303
21304         Fix amrecover so that it accepts filenames with blanks.
21305         -J. Shirk <jshirt@ksu.edu> & oliva
21306
21307         Add a TIMEOUT config file parameter to replace the hard coded value
21308         in planner.  -Daniel David Benson <bensond@ucdavis.edu>
21309
21310         Change amrecover/amindexd/amidxtaped to require a SECURITY
21311         exchange if --with-bsd-security is enabled.  It is done on a
21312         reserved port, which means amrecover must be run as root and that
21313         amindexd/amidxtaped need an entry for the incoming amrecover in
21314         either .rhosts or .amandahosts (Kerberos is not yet supported).  --JJ
21315
21316         Make our internal TEXTDB the default database style for the infofile.
21317         If you wish to keep using a dbm style database use the configure
21318         option "--with-db={db,dbm,gdbm,ndbm}".
21319         -scott
21320
21321         Sanitise the disk name in the TEXTDB code.
21322         **NOTE** if your infofile database uses TEXTDB (which has only been
21323                  available since Amanda-2.4.0b1) and you have '/'s in the
21324                  first field in disklist you will need to 'amadmin export'
21325                  the data using the old version of Amanda, 'mv' the old
21326                  database out of the way and 'amadmin import' it back again
21327                  using the new version.  When you are happy with the new
21328                  version you may delete the old database.
21329         -scott
21330
21331         Get rid of DEV_ROOT/DEV_RROOT and figure out the raw name on the
21332         fly by trying a leading 'r' before each path element one at a time
21333         until we find a character device.  This should handle all the current
21334         cases plus things like Solaris DiskSuite that have /dev/md/rdsk/xxx
21335         names.  -JJ
21336
21337         Change kill logic in sendsize to try TERM first, then KILL if that
21338         does not get dump's attention.  This fixes a problem on AIX 4.x
21339         where dump was always getting a KILL and leaving orphaned message
21340         queues, which would eventually run the system out of resources.  -JJ
21341
21342         Extensive buffer management, bug and defensive coding overhaul
21343         including:
21344             * Use proper fgets/fread/read buffer size.
21345             * Wrote agets and areads to get a line without buffer overflow
21346               and changed most gets/fgets and some read calls to use it.
21347             * Replaced all *scanf("...%s...") with explicit pointer work.
21348             * Replaced most fixed size buffers with dynamic ones.  This has
21349               no doubt introduced some memory leaks.
21350             * Replaced most sprintf calls with vstralloc (new routine).
21351             * Added overflow checks to some remaining explicit buffer
21352               management.
21353             * Made almost all read() and write() calls into loops to handle
21354               short and broken up transfers.
21355             * Fixed potentially uninitialized fstype field.
21356             * Added more sanity checks when parsing various things, including
21357               converting some assert() calls to real code.
21358             * The pattern amtrmidx used to find old index files to delete
21359               thought the date field was YYYY-MM-DD, but it is YYYYMMDD,
21360               so no files were being deleted.
21361             * Limited the number of directories listed by amflush to 26 to
21362               avoid funny characters in the user prompt.
21363             * Changed some of the amrecover routines to soak up the rest of
21364               the continuation lines after an error.
21365             * If a dumper dies, driver still tries to send a QUIT command
21366               which fails because the file descriptor has been closed.
21367             * Wrote afree macro that calls free and then sets the pointer
21368               to NULL.  Changed most free calls to afree.
21369             * Wrote aclose/afclose/apclose macros to do the associated close
21370               and then set the argument to something invalid (-1 or NULL).
21371             * Check the file descriptor before calling FD_ISSET in dumper.
21372               Otherwise it goes to -1 on EOF and FD_* doesn't like that.
21373             * Call aclose() after FD_CLR (so the descriptor is not -1).
21374         Odds and ends:
21375             * Added some TEXTDB support code to the infofile test program.
21376             * Set it up so -DPROTO_DEBUG could come from the compiler command
21377               line instead of having to modify the source.
21378             * Added -t command line flag code to sendbackup.c to support some
21379               limited debugging.
21380             * Added a test to amcheck to see if the log file is writable
21381               (if it already exists).  During debugging, I keep leaving one
21382               around owned by root :-).
21383             * Changed upper limit on close loops from 255 to FD_SETSIZE.
21384               This probably needs some more study.
21385         -JJ
21386
21387         If krb4 auth was compiled in but not enabled, clients would hang
21388         forever.  -Aidan Cully <aidan@panix.com>
21389
21390         Make sure SAMBA will not clear archive bits when performing an
21391         incremental backup, so any incremental will be a level 1.
21392         -martineau
21393
21394         Add a LOGDIR option to amanda.conf and use it to replace the
21395         --with-logdir option to configure (this was only used for the
21396         amdump files) and the logfile option in amanda.conf.  Log
21397         files are now LOGDIR/log and amdump files are LOGDIR/amdump.
21398         Note: if there is a LOGFILE option in amanda.conf it has its
21399         filename removed and is used as the LOGDIR (eg, if you have
21400         "logfile /usr/adm/amanda/log" in amanda.conf it is translated to
21401         "logdir /usr/adm/amanda" instead).  This should not cause a
21402         problem for most sites.
21403         -scott
21404
21405         Remove --with-dbdir option from configure.  This was only used
21406         to setup things for the man pages and example files.  Oh.. and
21407         amrmtape.  Fix this as well.
21408         -scott
21409
21410         Remove --with-indexdir option from configure.  This is obtained
21411         from amanda.conf at run time.  Also fix things so that it *is*
21412         obtained from amanda.conf in all cases.
21413         -scott
21414
21415         This is no longer tested on configure.in, since it is
21416         expressly forbidden to include kernel headers under glibc,
21417         according to Matthias Urlichs <smurf@noris.de>.  However, Eric
21418         Doutreleau <ed@cti.ecp.fr> said he needed to include this
21419         header file in order to build amanda on
21420         sparc-unknown-linux-gnu.  -oliva
21421
21422         It is now possible to specify a username to be used to backup
21423         up with samba.
21424         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
21425
21426         Make sure dumper replies with ABORT_FINISHED when a PORT-DUMP
21427         is aborted because of tape error.
21428         -Michael C. Povel <Michael.Povel@hub.de>
21429
21430         Amcheck checks only for the needed features.
21431         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
21432
21433         Performance and memory-usage improvements to amrecover.
21434         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
21435
21436         Use extended regular expressions.
21437         -Noel Hunt <noel@jpmorgan.com>
21438
21439         Fixed regular expressions for samba support.
21440         -Brian Fernald <fernald@nsi.edu>
21441
21442         Fixed a few bugs that caused arithmetic exceptions in planner.
21443         -Bob Willcox <bob@luke.pmr.com>, Evan Champion
21444         <evanc@synapse.net>, scott and oliva
21445
21446         amrecover should now be able to handle GNUtar restores.
21447         -Jean-Louis Martineau <martinea@iro.umontreal.ca>, plus
21448         incremental (-G) patch by Lars Fenneberg <lf@elemental.net>
21449
21450         Ported to SINIX (Reliant Unix V5.43).
21451         -Michael Schmitz <mschmitz@iname.com>
21452
21453         Configure now looks for large file support and will use it under
21454         Solaris 2.6 and above.
21455         -Blair Zajac <blair@gps.caltech.edu>
21456
21457         Compatibility problems fixed for:
21458                 SCO OpenServer 5.0.2: Paul Gampe <paulg@twics.com>
21459
21460 Version 2.4.0b4
21461
21462         New changerfile and changerdev configuration keywords, that
21463         allow changer scripts to be configured in the main amanda
21464         configuration file.  Each changer script has been adapted, so
21465         that it uses those flags whenever possible.  Also,
21466         documentation about built-in scripts has been added to
21467         docs/TAPE.CHANGERS.  -oliva & Eric Schnoebelen
21468         <eric@egsner.cirr.com>
21469
21470         --with-debugging now accepts a directory name, where debugging
21471         files should be stored.  -John R. Jackson <jrj@cc.purdue.edu>
21472
21473         Compatibility problems fixed for:
21474                 NextStep 3.3: Fabrice GAILLARD <gaillard@ina.fr>
21475                 SCO OpenServer V5: Christopher B. Olsen <colsen@compus.com>
21476                 AIX: Georg Rehfeld <georg@wmd.de>
21477
21478         Planner would core dump if it had to delay dumps.  -Georg
21479         Rehfeld <georg@wmd.de>
21480
21481         Added patch for samba to support very long filenames.  -Todd
21482         Pfaff <todd@edge.cis.mcmaster.ca>
21483
21484         Added VXDUMP support to estimate program.  -oliva & John
21485         R. Jackson <jrj@cc.purdue.edu>
21486
21487         Fixed amflush so that it cd's to the configuration directory
21488         before invoking reporter.  -oliva
21489
21490         driver no longer opens the infofile, so a deadlock is
21491         prevented.  -oliva & John R. Jackson <jrj@cc.purdue.edu>
21492
21493         Fixed typo in sendbackup-dump that would prevent compilation
21494         if either xfsdump or vxdump were enabled.  -oliva
21495
21496         Debugging messages produced by sendbackup are no longer
21497         included in the dump stream.  -oliva
21498
21499         amrestore should wait for the child process to die before
21500         re-opening the tape device.  -Dietmar Braun
21501         <dietmar@tin-lizzy.hig>
21502
21503 Version 2.4.0b3 
21504
21505         fixed race condition in debug file open operation.  -oliva and
21506         Thomas Schmeidl
21507
21508         exclude-list and exclude-file are correctly handled by
21509         sendsize.  -oliva and Johann Klasek <jk@auto.tuwien.ac.at>
21510
21511         fix some kerberos4 problems; no longer require low ports for
21512         kerberized connections; now use amanda@REALM instead of
21513         amanda.amanda@REALM in .klogin's.  -kovert
21514
21515         amrecover no longer depends on GNU flex library.  -oliva
21516
21517         Ensure that malloc(0) is not called.  -Wolfram Schmidt
21518         <Wolfram.Schmidt@iao.fhg.de>
21519
21520         Compression is now performed where specified, and server
21521         compress best specifications are obeyed. -oliva
21522
21523         genversion now correctly recognizes the selected locking scheme.
21524         -Thomas Schmeidl <schmeidl@nwp.kwu.siemens.de>
21525
21526 Version 2.4.0b2
21527
21528         Several bugfixes by John R. Jackson <jrj@cc.purdue.edu>
21529
21530         AIX's restore support added to amrecover.  -David B. Anderson
21531         <dbanders@mail.physics.utah.edu>
21532
21533         Dump process would not be killed unless it supported the -E
21534         flag (flipped #ifdef): fixed.  -Steve Bower <sbower@raytheon.com>
21535
21536         --with-testing now supports a trailing argument, that
21537         specifies the a string to be appended to service names.  -oliva
21538
21539         Recent versions of Samba require additional arguments so that
21540         estimates and total sizes are logged to stdout, not to syslog.
21541         -Ernie Oporto <ernie_oporto@MENTORG.COM> & Norbert Holzknecht
21542         <Holzknecht@fs31.vdeh-bfi.de>
21543
21544 Version 2.4.0b1
21545
21546         Improved planner backup-delaying mechanism.  -scott
21547
21548         Concurrent estimates are now supported.  -oliva
21549
21550         Shared library support included with GNU libtool.  -oliva
21551
21552         New hard-link-based locking mechanism for operating systems
21553         that do not support standard locking system calls.  -scott
21554
21555         New configuration file format, simpler and easier to
21556         extend.  -scott
21557
21558         New curinfo database format that uses only text files.  The
21559         old dbm format is used by default, though.  -scott
21560
21561         DGUX support. -Brian Harvey <bharvey@raven.phs.com>
21562
21563         Tentative HPUX vxdump support.  -oliva
21564
21565         Integrated amgetidx into dumper/sendbackup protocol.  This
21566         ***breaks backward compatibility***!  -oliva
21567
21568         Have sendbackup-dump and sendbackup-gnutar list the actual
21569         program that should be used to restore a file from a backup
21570         instead of just listing restore or gtar. -blair&oliva
21571
21572         Have configure check for the initgroups() declaration in
21573         unistd.h in addition to grp.h and sys/types.h, which is where
21574         some OSes have the declaration. -blair
21575
21576         SAMBA backups wouldn't succeed if GNUTAR listed incrementals
21577         were enabled.  SAMBA password file can now specify workgroup
21578         and may contain comments.  -oliva
21579
21580         Fixed xfsdump support. -oliva
21581
21582         Fixed srvcompress option. -oliva
21583
21584         Fixed exclude/exclude-list support. -oliva
21585
21586         Change umask to 066 before creating index file in /tmp. -oliva
21587
21588         Fixed autoconf for gdbm on linux. -oliva
21589
21590         configure now seeks out a few possible locations for
21591         kerberos4 includes and tries to find the correct path if
21592         the kerberos bits have been installed.  It's possible for
21593         someone to just specify the root of a kerberos tree for
21594         where the bits live, as well. -kovert
21595
21596 Version 2.3.0.4
21597
21598         Have bsd_security_ok() in amandad return 1 when BSD security is
21599         not turned on.  Patch from Michael C. Grant
21600         <mcgrant@rascals.Stanford.EDU>.
21601
21602         Add a configure option, --with-db, which lets the user specify
21603         the database library to use.  The available codes to look for
21604         are db,dbm,gdbm,ndbm.  The new configure code goes to a lot
21605         more length to find pairs of header files and libraries.  If a
21606         header file exists and the library does not, but dbm_open() is
21607         found by linking against -lc, then that header file is used.
21608         Patch from Blair Zajac <blair@gps.caltech.edu>.
21609
21610         Fixed bug at line 158 where selfcheck was testing that the
21611         result returned by open() was nonzero.  The correct thing to do
21612         is check for non-negative values returned by open().  Changed
21613         the "ERROR" in line 169 to "OK" to prevent selfcheck from
21614         flagging the non-existence of /etc/amandapass as an error.
21615         Using "OK" in this line flags this condition as an informative
21616         statement rather than an error - which is to say this will be
21617         reported along with other errors but it isn't enough in itself
21618         to generate an error report.  The reason that I think this is
21619         the right fix is because although every Amanda client is
21620         capable of backing up PCs using smbclient it isn't the case
21621         that we will back up PCs with every Amanda client.  This also
21622         implies that we don't want to have /etc/amandapass files on all
21623         these machines either.  If an Amanda client does have a samba
21624         "//host/share" entry in its disklist file then selfcheck will
21625         flag the non-existence of the /etc/amandapass file on line 105
21626         when it attempts to check that partition, so I believe that
21627         this is a safe fix.  Patch from Michael Brantley
21628         <Michael-Brantley@deshaw.com>.
21629
21630         Have all calls to gethostname() leave the result in character
21631         arrays of length 1025.  This will make sure that gethostname
21632         behaves correctly.  Patch from  blair Zajac
21633         <blair@gps.caltech.edu>.
21634
21635         Have amrecover.c include history.h or readline/history.h if
21636         configure finds it.  Patch from blair Zajac
21637         <blair@gps.caltech.edu>.
21638
21639         Have Amanda use cat if gzip and compress cannot be found.  In
21640         this case, do not #define COMPRESS_FAST_OPT, COMPRESS_BEST_OPT,
21641         or UNCOMPRESS_OPT as "" since cat will look look for a file by
21642         the name of "".  Place #ifdef's around code that uses any of
21643         the _OPT defines.  Patch from Blair Zajac
21644         <blair@gps.caltech.edu>.
21645
21646         Rewrite amgetidx to use amandad instead of rsh/rcp.  amgetidx
21647         now only gets the index files from a given day.  It now takes
21648         two optionally arguments <on day> or <ago days>.  <on day> lets
21649         the user specify the day in one of the forms YYYYMMDD MMDD DD
21650         YYYY-MM-DD --MM-DD ---DD.  <ago days> gets the files from days
21651         days ago.  Have configure look for an appropriate directory to
21652         use for the temporary files on the clients.  Use /var/tmp, then
21653         /usr/tmp, and if neither of those exist, then use /tmp.  Have
21654         selfcheck check if the index holding directory has enough space
21655         in it.  Add a new program called sendindex which sends the
21656         index files.  Add the file docs/INDEXING which describes the
21657         index code.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
21658
21659         Have configure set up mt to use either the -f or the -t option
21660         depending upon the operating system.  Patch from Blair Zajac
21661         <blair@gps.caltech.edu>.
21662
21663         Include the amanda_tapetypes.txt file as docs/TAPETYPES.  File
21664         composed by Chris Stacey <chris@snrc.uow.edu.au>.
21665
21666         Allow certain dumptypes to be kicked off at specific times.
21667         Add a new, optional, parameter to the dumptype description in
21668         the config file.  The parameter is called "starttime" and takes
21669         one argument which is a time of day (local timezone) formated
21670         as either hhmm or hmm (no `.'s, no `:'s, just an integer).
21671                 define dumptype comp-user-2am {
21672                         comment "Non-root partitions on fast machines"
21673                         options compress-fast
21674                         priority medium
21675                         starttime 0200
21676                 }
21677         Any partitions listed in disklist with this dumptype will be
21678         fired off no earlier than 2am.  If 2am today is less than 43200
21679         seconds past (12 hours ago) it will assume you meant 2am today
21680         and fire the dumps off right away.  But if 2am today is more
21681         than 12 hours in the past, it will wait till 2am tomorrow.
21682         Patch from Brad Huntting <huntting@misc.glarp.com>.
21683
21684         Totally rewrite the socket buffering code for dumper.
21685         Eliminate SO_SNDTIMEO and SO_RCVTIMEO setsockopt calls.  Remove
21686         the check for HAVE_SO_SNDTIMEO from configure.  Add a new
21687         option to configure named --enable-buffered-dump to enable this
21688         code.  Patch from Brad Huntting <huntting@misc.glarp.com>.
21689
21690         Have amflush call setsid() to detach amflush from the
21691         controlling terminal.  Patch from Ken Laprade
21692         <klaprade@harris.com>.
21693
21694         Have configure correctly work on systems where dbm_open is in
21695         libc.  Patch from Farzad Farid <farzy@sgip.fr>.
21696
21697         Patches to amrmtape which remove C style comments and let the
21698         script remove a tape if there is only one tape in the tapelist
21699         file.  Patch from Andrew A. Ivanov <IVANOV@mics.msu.su>.
21700
21701         Sprintf formatting error in amgetidx fixed.  Patch from Yossi
21702         Gottlieb <yogo@xpert.com>.
21703
21704         I'm using a Sony SDT/STL-7000 4mm DAT changer.  I could not
21705         find any method of directly controlling the device, except for
21706         simply using the 'offline' mt command for advancing to the next
21707         tape.  Using this method, however, I could not go beyond the
21708         last cassette (that is, to roll back to the first one).  This
21709         means the device is currently being used as a simple gravity
21710         changer, only able to change forward.  The chg-generic.conf
21711         should list the default tape device for all slots, disable
21712         'needeject', enable 'gravity' and enable the new option named
21713         'multieject'.  Patch from Yossi Gottlieb <yogo@xpert.com>.
21714
21715         Update the example chg-generic.conf file to include comments
21716         that describe how to use the multieject feature of the script.
21717         Patch from Yossi Gottlieb <yogo@xpert.com>.
21718
21719         Protocol seems to loop when a A_TIMEOUT occurs because
21720         p->reqtries was not being decremented.  Problem noted by Neal
21721         Becker <neal@ctd.comsat.com>.
21722
21723         About half the calls to gethostname() in Amanda fail to
21724         null-terminate properly.  This patch makes them all
21725         consistent.  In addition it updates sendbackup-dump and
21726         sendbackup-gnutar so they handle USE_FQDN is a way consistent
21727         with the amindex stuff.  In particular when USE_FQDN is set,
21728         the dump clients will not truncate their hostname before
21729         putting it in the dump headers.  My patches to amflush are
21730         already in the Amanda betas so amflush should be able to match
21731         up both FQDN and non-FQDN clients against FQDN and non-FQDN
21732         disklist files.  I also fixed an error message that was
21733         attributed to gethostname when it actually came from
21734         getpeername.  Patches from James Mathiesen
21735         <james@nyc.deshaw.com>.
21736
21737         I have run into the problem, on a Linux system, where the first
21738         time I run configure it generates valid Makefiles and Amanda
21739         compiles without problem.  If I run configure again, or I alter
21740         a Makefile.in or something which causes autoconf to be called,
21741         the resulting Makefiles are no good - the programs in
21742         server-src don't finish linking because there is no dbm
21743         library.  That is, the first time through configure -lgdbm is
21744         added to LIBS but the second, and any subsequent times, it is
21745         not.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
21746
21747         I've just found a bug that has prevented Amanda from running on
21748         my site for almost one week.  Just after a dumper replied that
21749         it timed-out, the driver would send it another dump request.
21750         Then the driver would log to amdump an event of receiving a
21751         message from the dumper, but that message would be empty, the
21752         holding file for the requested filesystem would not exist, and
21753         driver would quit.  It turned out that the problem was that
21754         dumper started to close its sockets (datafd, mesgfd and outfd)
21755         since release 2.3.0.4b3.  outfd is initialized before invoking
21756         startup_dump, but it is sendbackup_response, intended to be
21757         invoked by the amandad protocol driver, that opens sockets and
21758         initializes datafd and mesgfd.  If sendbackup_response is never
21759         run (because the amandad request times out), datafd and mesgfd
21760         will not be initialized, so they may contain already closed
21761         (and possibly already reopened) file descriptor numbers or
21762         still be uninitialized, containing any garbage, but usually 0
21763         --- but 0 is stdin, used for reading commands from the driver,
21764         it should not be closed!  I've solved the problem by
21765         initializing them to -1 in startup_dump.  Patch from Alexandre
21766         Oliva <oliva@dcc.unicamp.br>.
21767
21768         Include declarations for select(), bind(), connect(), fread(),
21769         fwrite(), getopt(), getpeername(), getsockname(), getsockopt(),
21770         initgroups(), listen(), lstat(), mktemp(), mktime(), puts(),
21771         recvfrom(), select(), sendto(), setpgrp(), setsockopt(),
21772         shmat(), shmctl(), shmdt(), shmget(), socketpair(), sscanf(),
21773         strftime(), strncasecmp(), system() if the system does not
21774         declare these in any header files.  Patch from Blair Zajac
21775         <blair@gps.caltech.edu>.
21776
21777         Have configure correctly substitute for DB_DIR and LOG_DIR in
21778         example/amanda.conf when --prefix was not used.  Problem noted
21779         by Philippe Charnier <charnier@xp11.frmug.org>.
21780
21781         Include seagate-changer.c from Larry D. Pyeatt
21782         <pyeatt@cs.colostate.edu>.  This program was written to control
21783         the Seagate/Conner/Archive autoloading DAT drive.  This drive
21784         normally has 4 tape capacity but can be expanded to 12 tapes
21785         with an optional tape cartridge.  This program may also work on
21786         other drives.  This program works for me under Linux with Gerd
21787         Knorr's <kraxel@cs.tu-berlin.de> SCSI media changer driver
21788         installed as a kernel module.  The kernel module is available
21789         at
21790         http://sunsite.unc.edu/pub/Linux/kernel/patches/scsi/scsi-changer*
21791         Since the Linux media changer is based on NetBSD, this program
21792         should also work for NetBSD, although I have not tried it.  It
21793         may be necessary to change the IOCTL calls to work on other
21794         OS's.
21795
21796         Add a new configure option, --with-group, which tells Amanda
21797         the group to install all files as.  Patch from Alexandre Oliva
21798         <oliva@dcc.unicamp.br>.
21799
21800         If --with-bsd-security was not set, then dumper would not find
21801         the amanda/udp port to use to connect to clients.  Patch from
21802         Alan McIvor <alan@auck.irl.cri.nz>.
21803
21804         The order of dump programs to search for (ufsdump, vdump, dump,
21805         backup) didn't work on AIX systems, where backup should be used
21806         but a program named dump exists on the system.  Patch by Blair
21807         Zajac <blair@gps.caltech.edu>.
21808
21809         The configure --with-mmap was not working properly since
21810         configure was using the wrong variable to see if the system had
21811         a working mmap().  Problem noted by Keith Mitchell
21812         <kmitch@weenix.guru.org>.
21813
21814 Version 2.3.0.4b3
21815
21816         Save the results of getchar() into int's instead of char's in
21817         amidxtaped.c.  Patch by Blair Zajac <blair@gps.caltech.edu>.
21818
21819         Fix sendbackup-gnutar so that it can be compiled with a K&R
21820         compiler.  Patch by Blair Zajac <blair@gps.caltech.edu>.
21821
21822         Since I installed Amanda 2.3.0.4b3, I noticed some annoying
21823         messages in amdump:
21824                 dumper: pid 8696 setsockopt(SO_SNDTIMEO): Invalid argument
21825         This is because Solaris 2.5 does declare SO_SNDTIMEO in
21826         sys/socket.h, but fails to setsockopt with the given
21827         arguments.  Unfortunately, it is not documented, so I could not
21828         find out the correct way to do this, so I just added a test in
21829         configure to check whether SO_SNDTIMEO works as expected or
21830         not.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
21831
21832         Include amplot-2.2.6 written by Olafur Gudmundsson
21833         <ogud@tis.com> into Amanda.  Have amplot be configured using
21834         configure instead of amplot.conf.  It will be installed if
21835         gnuplot and the version of awk configure finds can handle
21836         variable assignment from the command line.  I also changed some
21837         of the command line options so that the amdump files will not
21838         be compressed unless amplot is told to do so on the command
21839         line.  It also takes a new command line option, -t, which lets
21840         the user set the time of the right side of the plot.  Work done
21841         by Blair Zajac <blair@gps.caltech.edu>.
21842
21843         Made rth-changer check all system calls for valid returns.
21844         Patch by Blair Zajac <blair@gps.caltech.edu>.
21845
21846         amrestore.c and sendbackup-common.c would do an ifdef on
21847         HAVE_GZIP, which was no longer being defined if Amanda was
21848         using gzip.  Now, define HAVE_GZIP if gzip is being used.
21849         Patch by Blair Zajac <blair@gps.caltech.edu>.
21850
21851         Include a script, amoverview, that outputs an overview of all
21852         of the backups done on all of the disks.  Script written by
21853         Dave Disser <disser@sdd.hp.com>.
21854
21855         The prototype for amname_to_fstype() is missing in
21856         createindex-dump.c when xfsdump is available.  Patch from Ken
21857         Laprade <klaprade@harris.com>.
21858
21859         Apparently SGI provides a dummy libsun.a that does not really
21860         have anything in it.  I guess this tricks configure into adding
21861         it to the Makefile.  Have configure not check for libsun.a on
21862         SGI systems.  Patch from Ken Laprade <klaprade@harris.com>.
21863
21864         The global variable overwrite in amcheck.c apparently is seen
21865         as a potential conflict with the overwrite() curses function
21866         which is apparently in SGI's libtermcap.a.  Declaring the
21867         variable static eliminates the warning.  Patch from Ken Laprade
21868         <klaprade@harris.com>.
21869
21870         Add a new configure option, --with-fqdn, which allows Amanda to
21871         back up systems in different domains.  This requires that the
21872         disklist file have the fully qualified domain names (FQDNs)
21873         listed.  Patch from Joe Ammond <Joe.Ammond@ee.gatech.edu>.
21874
21875         Include rundump, a setuid program that runs dump as root.  This
21876         is used under OSF1 systems.  Patch from Alexandre Oliva
21877         <oliva@dcc.unicamp.br>.
21878
21879         Install setuid files executable only by the owner and group of
21880         the files.  This stops other users from running these programs,
21881         making security tighter.  Patch from Alexandre Oliva
21882         <oliva@dcc.unicamp.br>.
21883
21884         On FreeBSD 3.0, amanda.h needs to include <sys/types.h> before
21885         <dirent.h>.  Problem noted by Keith Mitchell
21886         <kmitch@weenix.guru.org>.
21887
21888         Amanda had a bug regarding the recent addition of support for
21889         excluding files in GNUTAR.  planner and sendsize did not
21890         understand each other about empty exclusion lists, so there
21891         were failures using gnutar, as dump does not support excludes.
21892         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
21893
21894         Fixed a problem in configure where DUMP was being set to
21895         /no/restore/available when no restore program could be found
21896         instead of setting RESTORE to this.  Patch from Alexandre Oliva
21897         <oliva@dcc.unicamp.br>.
21898
21899         Have no-changer and hp-changer check for the existence of the
21900         logging directory before trying to use it.  Patch by Blair
21901         Zajac <blair@gps.caltech.edu>.
21902
21903         Patches to have nicer looking Samba support code.  Patch from
21904         Michael Zucchi <cismpz@cis.unisa.edu.au>.
21905
21906         Got Amanda to compile fine on a m88k-motorola-sysv4 system.
21907         Patches from Blair Zajac <blair@gps.caltech.edu>.
21908
21909         In amandad.c, pk_t dupmsg was conflicting with dupmsg in
21910         /usr/include/sys/stream.h on an m88k-motorola-sysv4 system.
21911         Rename dupmsg to dup_msg.  To keep things consistent, rename
21912         inmsg to in_msg and outmsg to out_msg.  Patch by Blair Zajac
21913         <blair@gps.caltech.edu>.
21914
21915         Check for the dbm_open declaration in any header file that may
21916         contain it.  If it doesn't exist, then declare it and all of
21917         the other dbm_ functions.  Check if struct datum is declared in
21918         any header files and if it isn't then declare it.  Patch from
21919         Blair Zajac <blair@gps.caltech.edu>.
21920
21921         Have runtar make sure that it is being invoked by the
21922         CLIENT_LOGIN user, since it is a suid executable.  Patch from
21923         Alexandre Oliva <oliva@dcc.unicamp.br>.
21924
21925         Have selfcheck check for /etc/vdumpdates if vdump is being
21926         used.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
21927
21928         If we're on an Ultrix system, then define STATFS_ULTRIX.  Patch
21929         by Blair Zajac <blair@gps.caltech.edu>.
21930
21931         amadmin export produces a full version number (2.3.0.4b2, for
21932         instance), while amadmin import expects three integers
21933         separated by dots, so it fails to import an exported file by
21934         itself.  Patch by Alexandre Oliva <oliva@dcc.unicamp.br>.
21935
21936         Sendsize.c would loop forever if debugging was not turned on.
21937         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
21938
21939         Define STATFS_OSF1 if we are on a *-dec-osf-* system.  Change
21940         ifdef OSF1_HANG_BUG to ifdef OSF1_VDUMP, since I'd rather not
21941         have too many defines floating around.  Patch by Blair Zajac
21942         <blair@gps.caltech.edu>.
21943
21944         There was a bug in selfcheck.c when Blair installed the Samba
21945         support.  I deleted an extra space that was added after
21946         SAMBA_CLIENT when the command was being put together.  Fix by
21947         Michael Zucchi <cismpz@cis.unisa.edu.au>.
21948
21949         Add a needed ; to client-src/Makefile.am and
21950         server-src/Makefile.am.  Patch from Alexandre Oliva
21951         <oliva@dcc.unicamp.br>.
21952
21953         Have planner.c and amcheck.c always get the amanda port number
21954         even if BSD security is turned off.  Patch by Blair Zajac
21955         <blair@gps.caltech.edu>.
21956
21957         Change the way amgetidx caches host up/down information.  It
21958         used to stralloc() a string depending on if the host was up or
21959         down.  Now, create two static character arrays, one holding
21960         "down" and the other holding "up" and simply point the
21961         hostinfo->up pointer to one of the two arrays.  This should
21962         save a little memory.  Patch by Blair Zajac
21963         <blair@gps.caltech.edu>.
21964
21965         The Bourne shell in FreeBSD can't handle setting IFS to : and
21966         expanding $LOCPATH:$SYSPATH.  Create two new variables before
21967         their use called $LOCSYSPATH and $SYSLOCPATH.  Patch by Blair
21968         Zajac <blair@gps.caltech.edu>.
21969
21970         Have open_fstab for BSD systems return the value of setfsent.
21971         Patch by Blair Zajac <blair@gps.caltech.edu>.
21972
21973         Configure was searching for the dump program in the following
21974         order: ufsdump, vdump, backup, dump.  On HP-UX systems,
21975         configure would find backup, which is a valid program but does
21976         not do what dump does.  So switch the order of the programs to
21977         ufsdump, vdump, dump, backup.  Patch by Blair Zajac
21978         <blair@gps.caltech.edu>.
21979
21980         Fixed some dbprintf(()) bugs in amgetidx.c.  Patch by Blair
21981         Zajac <blair@gps.caltech.edu>.
21982
21983         Have amrecover.c always declare
21984             extern char *optarg;
21985             extern int optind;
21986         This makes amrecover.c compile on Ultrix systems.  Problem
21987         noted by Scott Gasch <scott@cray-ymp.acm.stuorg.vt.edu>.
21988
21989         Patch to configure to have it recognize gnutar version 1.11.2.
21990         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
21991
21992 Version 2.3.0.4b2
21993
21994         Have amcleanup, no-changer, and hp-changer find out where the
21995         logging directory, or amdump error file is from getconf instead
21996         of using @LOG_DIR@ or @DB_DIR@ from configure.  Problem noted
21997         by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
21998
21999         Remove VarDir=@DB_DIR@ from amrmtape.sh.in, since amrmtape
22000         figures out where the curinfo files are from the amanda.conf
22001         file.  Problem noted by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
22002
22003         Include rth-changer, a tape changer script for the Robotic Tape
22004         Handling system OEM'd by Andataco (RTH-406).  Script written by
22005         Erik Frederick <edf@tyrell.mc.duke.edu>.
22006
22007         Add a new configure option called --with-pid-debug-files which
22008         has Amanda append the process ID to the debugging files placed
22009         in /tmp.  The PID will not be appended unless this option is
22010         used.  Suggestion by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
22011
22012         Add a new #define UNCOMPRESS_OPT to pass to UNCOMPRESS_PATH to
22013         get compressed standard input decompressed and pass it to
22014         standard output.  The configure script only recognized gzip and
22015         compress right now, so it will set UNCOMPRESS_OPT to -dc and
22016         set UNCOMPRESS_PATH to the same value as COMPRESS_PATH.  Edit
22017         all of the files that make use of UNCOMPRESS_PATH to also make
22018         use of UNCOMPRESS_OPT now.  Patch by Blair Zajac
22019         <blair@gps.caltech.edu>.
22020
22021         The readline() substitute in amrecover.c when the real
22022         readline() code is not available did not return to the caller
22023         what the user typed in.  It now does so.  Patch from Blair
22024         Zajac <blair@gps.caltech.edu>.
22025
22026         Avoid -lnsl on Irix.  On IRIX 5.x and 6.x systems that have the
22027         svr4net module installed, there will be a /usr/lib/libnsl.so
22028         present on the system. The configure script looks for this and
22029         tosses into the library list if it's there.  It is not
22030         advisable to link against libnsl on IRIX unless you really need
22031         it for SVR4 networking (TLI/STREAMS). If you _do_ link against
22032         it, you should use include '-lc' _before_ '-lnsl'. The reason
22033         for this is that libnsl.so also contains the SysV TI-RPC code,
22034         which is RPC based on STREAMS/TLI rather than sockets. (Solaris
22035         2.x now uses this by default.) TI-RPC has some compatibility
22036         functions with the same names as older RPC functions, such as
22037         clnt_call(), clnt_create(), clnt_destroy(), and these conflict
22038         with the functions in libc.so. The main place this will hose
22039         you is NIS: NIS v2 expects the underlying RPC code to use
22040         sockets, not STREAMS, and it fails if the TI-RPC symbols in
22041         libnsl.so override the RPC symbols in libc.so.  Again, you
22042         don't need libnsl.so unless you're actually using STREAMS/TLI
22043         or TI-RPC, so in Amanda's case it's safe to just ignore it. If
22044         you _do_ need it, you must do 'cc -o foo foo.c -lc -lnsl' in
22045         order to make sure the linker resolves the RPC symbol
22046         references correctly. The primary symptom of this problem is
22047         that things like getpwent(), getgrent() and getnetgrent() stop
22048         working in an NIS environment.  To make a long story short: on
22049         IRIX, avoid using libnsl. Amanda doesn't need it anyway. So far
22050         I haven't encountered a problem with this, but you never know.
22051         Note from Bill Paul <wpaul@ctr.columbia.edu>.
22052
22053         Include patches to have Amanda do incrementals of gnutar based
22054         backups.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
22055
22056         Delete the GNUTAR_BROKEN_PIPE from configure and acconfig.h
22057         since no code was testing for it.  Patch by Blair Zajac
22058         <blair@gps.caltech.edu>.
22059
22060         Have configure check for the number of arguments that
22061         gettimeofday takes and have clock.c use the appropriate number
22062         of arguments.  Patch by Blair Zajac <blair@gps.caltech.edu>.
22063
22064         Have sendbackup-common.c include tapeio.h instead of defining
22065         BUFFER_SIZE.  Fix by Philip Guenther <guenther@gac.edu>.
22066
22067         Put in more support for AIX by defining AIX_BACKUP if the
22068         system is an AIX system.  Fix createindex-dump.c to pass the -B
22069         flag to restore to have it read from standard input.  Problem
22070         noted by Bill Paul <wpaul@ctr.columbia.edu>.  Patch by Blair
22071         Zajac <blair@gps.caltech.edu>.
22072
22073         Add a regexp for AIX 4's backup in sendbackup-dump.c and
22074         sendsize.c.  Patch from Bill Paul <wpaul@ctr.columbia.edu>.
22075
22076         Add a comment to tapeio.h about BUFFER_SIZE and what it is used
22077         for and how people should not change it.  Noted by Bill Paul
22078         <wpaul@ctr.columbia.edu>.
22079
22080         Added a --with-mmap option to force the use of mmap() instead
22081         of shared memory support.  Requested by wpaul@ctr.columbia.edu
22082         <Bill Paul>.  Patch by Blair Zajac <blair@gps.caltech.edu>.
22083
22084         On FreeBSD 2.x and 3.x, the SO_SNDTIMEOUT value is too large in
22085         dumper.c.  Looking at the kernel source, the maximum value for
22086         tv_sec is about 227.  The value used is READ_TIMEOUT/4, or
22087         (30*60)/4 == 450 seconds.  This causes setsockopt() to return
22088         EDOM (Numerical argument out of domain), and again everything
22089         grinds to a halt.  I changed the value from READ_TIMEOUT/4 to
22090         READ_TIMEOUT/8, which reduces the SO_SNDTIMEO value to 225.  I
22091         haven't extensively tested this yet, but based on eyeballing
22092         the kernel source it should work.  Patch from Bill Paul
22093         <wpaul@ctr.columbia.edu>.
22094
22095         In dumper.c:do_dump(), there is code to set the transmission
22096         timeout, receive buffer size and receive low water mark on the
22097         data socket using setsockopt().  For SO_RECVBUF, the receive
22098         buffer size (recbuf) is set to DATABUF_SIZE * 4, which is
22099         32*1024*4, or 131072.  On SunOS 4.1.x, this value is too
22100         large:  dumper generates a 'no buffer space available' error
22101         and everything grinds to a halt.  I took away the '*4', which
22102         reduces the size to 32767 bytes, which seems to work.  I'm
22103         surprised nobody else has noticed this since it breaks SunOS
22104         Amanda servers.  I can only surmise that people aren't using
22105         SunOS machines as servers these days. :)   Patch from Bill Paul
22106         <wpaul@ctr.columbia.edu>.
22107
22108         Have Amanda include either readline.h or readline/readline.h
22109         Fix suggested by Neal Becker <neal@ctd.comsat.com>.
22110
22111         Have --with-includes put the -I flags into $CPPFLAGS and
22112         $CFLAGS so that AC_CHECK_HEADERS will find other include
22113         files.  Problem noted by Neal Becker <neal@ctd.comsat.com>.
22114
22115         Fixed common-src/Makefile.am to put the extra libamanda.a
22116         sources into the EXTRA_libamanda_a_SOURCES variable instead of
22117         EXTRA_DIST.  Fix from Tom Tromey <tromey@drip.Colorado.EDU>.
22118
22119         When compiling amgetidx.c with some compilers, trigraph
22120         substitutions were being made when they should not have been.
22121         Protect the code from this.  Patch from Blair Zajac
22122         <blair@gps.caltech.edu>.
22123
22124         Test for flock support in the following order:
22125                 1) POSIX fcntl file locking
22126                 2) flock locking
22127                 3) lockf locking
22128         The common-src/flock.c file will only be used if the lockf type
22129         locking is needed on this system.  Patch from Blair Zajac
22130         <blair@gps.caltech.edu>.
22131
22132         Have Samba support compile in only if requested by the user.
22133         Patch from Blair Zajac <blair@gps.caltech.edu>.
22134
22135         Configure was not using $CFLAGS and $CPPFLAGS when trying to
22136         calculate the select argument type.  Patch from Blair Zajac
22137         <blair@gps.caltech.edu>.
22138
22139         Updated amanda.h to include alloca.h if the system has it and
22140         if it's ok to include.  Also protect more include files with
22141         #ifdefs found by configure.  Patch from Blair Zajac
22142         <blair@gps.caltech.edu>.
22143
22144         Linux does not use the raw device names to do backups.
22145         configure now checks to see if it can find a raw disk device
22146         file whose name is built from root's mount point.  If it can't,
22147         then set RDEV_PREFIX to use /dev/ instead of /dev/r.  Fix
22148         suggested by Brian <brian.s.mogged@uwrf.edu> and Ken Latta
22149         <latta@parc.xerox.com>.
22150
22151         Fixed const cast message from regex.c.  Problem noted by Ken
22152         Laprade <klaprade@harris.com>.  Patch from Blair Zajac
22153         <blair@gps.caltech.edu>.
22154
22155         Configure was not checking for the OSF1_VDUMP #ifdef used in
22156         Amanda.  It now will set OSF1_VDUMP if vdump is found on the
22157         system.  However, it does not check if the system is really a
22158         OSF system.  Patch from Blair Zajac <blair@gps.caltech.edu>.
22159
22160         Have configure check for asm/byteorder.h for
22161         sparc-unknown-linux-gnu.  Problem noted by Eric Doutreleau
22162         <ed@cti.ecp.fr>.
22163
22164         Remove the check for libintl.h from configure.  It was only
22165         being used for regex.c, which really didn't need it.  Patch
22166         from Blair Zajac <blair@gps.caltech.edu>.
22167
22168         Convert all code to K&R C by trying to compile Amanda using
22169         /usr/bin/cc on a SunOS 4.1.1 machine.  Have configure check if
22170         the compiler can handle the volatile keyword and if it can't,
22171         #define it to empty in the config.h file.  Patch from Blair
22172         Zajac <blair@gps.caltech.edu>.
22173
22174         Move the contents of versuff.h into version.h and remove
22175         versuff.h.  Add a new function called version() which returns
22176         the version string.  Use version() in some of the programs.
22177         Patch from Blair Zajac <blair@gps.caltech.edu>.
22178
22179         m88k-motorola-sysv4 systems define L_FAIL, which is used by
22180         logfile.h.  Undefine it in logfile.h.  Patch from Blair Zajac
22181         <blair@gps.caltech.edu>.
22182
22183         Include amindex-1.0 from Alan McIvor.  It includes these
22184         improvements over 0.3:
22185                 Amrecover now provides the ability to restore files
22186                 from the tapes, via the "extract" command.
22187
22188                 Support for gnutar based index generation (but not file
22189                 restoration yet).
22190
22191                 Numerous bug fixes.
22192
22193         Have amgetidx try to open a socket to the shell/tcp port on the
22194         remote machine and cache if it succeeds.  If it connection
22195         attempt succeeds, then attempt to get the index files over from
22196         the client.  Patch from Blair Zajac <blair@gps.caltech.edu>.
22197
22198         Update patch-system to include the amidxtape service at
22199         10083/tcp.  Patch from Blair Zajac <blair@gps.caltech.edu>.
22200
22201         Configure said that the server configuration was OK and then
22202         next said it wasn't.  Remove these checks.  Patch from Blair
22203         Zajac <blair@gps.caltech.edu>.
22204
22205         Fixed building Amanda for multiple architectures in
22206         subdirectories of Amanda.  Problem noted by Thomas Hepper
22207         <Thomas.Hepper@icem.de>.
22208
22209 Version 2.3.0.4b1
22210
22211         Fix a problem with `amadmin <conf> balance' dumping core.  If
22212         some disks are overdue, they are stored in the sequence array
22213         with a negative index.  This has the potential to cause memory
22214         corruption, and it makes the reported balance figures not add up
22215         to the same as the total.  Since overdue disks are really going
22216         to be candidated for today's backups, they are thrown in the
22217         bin for those.  Patch from Ken Laprade <klaprade@harris.com>.
22218
22219         Add Samba client support using smbclient to Amanda.  Samba must
22220         be patched with the file patches/samba-1.9.16p2.1.patch - this
22221         is a patch for 1.9.16p2 of Samba, and modifies the way the
22222         'dir' command works, and adds totals to both the dir command
22223         and the tar command, via stderr.  These are used by amanda to
22224         estimate and count backup sizes.  This should be installed on
22225         an amanda 'client' host, that will act as the 'samba server'
22226         host.  This will most likely be the same machine as the Amanda
22227         master server.  Patches from Michael Zucchi
22228         <zucchi@cis.unisa.edu.au>.
22229
22230         Amrmtape converted from Bash to Bourne shell.  Patch from Blair
22231         Zajac <blair@gps.caltech.edu>.
22232
22233         Fix the indexing code to use "arglist.h" instead of <stdarg.h>
22234         Patch from Blair Zajac <blair@gps.caltech.edu>.
22235
22236         Have amdump call amgetidx and amtrmidx.  Put amgetidx and
22237         amtrmidx into the libexec directory instead of the bin
22238         directory, since Amanda users will not use these by hand.
22239         Patch from Blair Zajac <blair@gps.caltech.edu>.
22240
22241         Modified diskfile.c to match hostname in the backup header
22242         against the fully qualified domain name in disklist file,
22243         because amflush fails in a multidomain backup environment, as
22244         backup headers have only the hostname.  Patch from Karl
22245         Lehenbauer <karl@neosoft.com>.
22246
22247         Have autoconf figure out if some functions are not declared and
22248         if they are not, then declare them.  Patch from Blair Zajac
22249         <blair@gps.caltech.edu>.
22250
22251         Add security fixes to amandad.c.  It now checks the forward and
22252         reverse DNS names for consistency.  Added a configure option
22253         --amandahosts to use Michael's code to use .amandahosts instead
22254         of .rhosts.  Patch from Michael Douglass <mikedoug@texas.net>.
22255
22256         Add amverify, a simple shell script to check Amanda tapes -
22257         gnutar driven backups only.  Patch from Thomas Hepper
22258         <Thomas.Hepper@icem.de>.
22259
22260         Add the version option to amadmin (eg amadmin <conf> version).
22261         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
22262
22263         Add the current option to amtape (eg amtape <conf> current).
22264         This let's you the label of the current tape only without using
22265         dd.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
22266
22267         Gnutar support for amindex added.  Patch from Thomas Hepper
22268         <Thomas.Hepper@icem.de>.
22269
22270         Calcsize supports exclude-list (gtar).  The source was
22271         extracted from gnutar itself to be 100% compatible.  Patch from
22272         Thomas Hepper <Thomas.Hepper@icem.de>.
22273
22274         Calcsize checks the file type and ignores special files and
22275         pipes.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
22276
22277         Calcsizes calculation for gnu tar archives had a bug (gtar file
22278         blocks always are a multiple of 2k).  Patch from Thomas Hepper
22279         <Thomas.Hepper@icem.de>.
22280
22281         `amandates.c': amdandad suffered by missing AMANDATES_FILE.
22282         Now it creates this file before missing it.  Patch from Thomas
22283         Hepper <Thomas.Hepper@icem.de>.
22284
22285         `createindex-gnutar.c' added.  Patch from Thomas Hepper
22286         <Thomas.Hepper@icem.de>.
22287
22288         alloca(), strdup.c and getcwd added for those system who don't
22289         have them.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
22290
22291         A dirty hack for BSD based systems without sigaction(), see
22292         amanda.h.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
22293  
22294         Add two scripts, hp-changer and no-changer. hp-changer is a
22295         tape changer script for a HP DAT changer. Every 10th tape a
22296         taper clean runs.  no-changer is a changer-like script for
22297         single tape streamer.  It makes Amanda see a tape changer unit
22298         with an infinite count of tapes (and requires an operator to
22299         change the tapes :-)). Every 10 tapes the operator is
22300         recommended to insert a cleaning tape.  Patch from Thomas
22301         Hepper <Thomas.Hepper@icem.de>.
22302
22303         The version suffix adding is done with a seperate function
22304         versionsuffix() also available as standalone program.  Patch
22305         from Thomas Hepper <Thomas.Hepper@icem.de>.
22306
22307         Several files got debug support. Patch from Thomas Hepper
22308         <Thomas.Hepper@icem.de>.
22309
22310         Added an idle type file-too-large to driver.c to avoid dumping
22311         files to the holding disk(s) which exceed the maximum file size
22312         (2 GB on the most 32-bit machines).  Patch from Thomas Hepper
22313         <Thomas.Hepper@icem.de>.
22314
22315         Some minor bug fixes, mostly regarding missing or wrong casts
22316         confusing c compilers (shmat()/shmdt(), select()).  Patch from
22317         Thomas Hepper <Thomas.Hepper@icem.de>.
22318
22319         Genversion gives some more information.  Patch from Thomas
22320         Hepper <Thomas.Hepper@icem.de>.
22321
22322         getfsent.c and statfs.c have been cleaned up. The have to be
22323         checked on non-Irix/Solaris/NextStep/HPUX/AIX/Linux-systems.
22324         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
22325
22326         Simple support if readline.a is missing.  NEVER TESTED!  Patch
22327         from Thomas Hepper <Thomas.Hepper@icem.de>.
22328
22329         Linux requires libdb.a and ndbm.h to handle database files. Not
22330         really what I expected.  Patch from Thomas Hepper
22331         <Thomas.Hepper@icem.de>.
22332  
22333         Here's a simple patch which fixes a problem that causes amflush
22334         to erroneously complain "ignoring cruft file" about good dump
22335         files on the holding disk, and fail to flush them to tape.
22336         This happens if your holding disk directory has a long name,
22337         and the dump file also has a long name (i.e. if you use
22338         filesystem mount points in disklist).  The problem occurs if
22339         the holding directory + filename exceeds 80 bytes.  The patch
22340         still leaves a length limitation, but at least it matches the
22341         size limit imposed by driver (and thus dumper & taper) of 128
22342         bytes.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
22343
22344         Use regex.h and regex.c from
22345         ftp://prep.ai.mit.edu/sh-utils-1.15.tar.gz instead of the regex
22346         checking code in the system.  This code includes re_comp and
22347         re_exec calls, so it will work on any system.  Patch by Blair
22348         Zajac <blair@gps.caltech.edu>.
22349
22350         Amadmin find reports the wrong tape file numbers after when a
22351         dump is amflush'ed to tape.  Patch by Ralf Fassel
22352         <ralf@atg.venture.de>.
22353
22354         Fix a bug where dumps of disks on the Amanda server are counted
22355         against the available network bandwidth.  Patch from Marion
22356         Hakanson <hakanson@cse.ogi.edu>.
22357
22358         Tell gnutar to not exit with a nonzero value if a read failed.
22359         This prevents backups from aborting if a file disappeared
22360         before gnutar could save it.  Patch from Hal Snyder
22361         <hal@vailsys.com>.
22362
22363         Fix dumper which can cause the entire amdump run to hang after
22364         dumper issues a "TRY-AGAIN" message to driver while dumping
22365         directly to tape.  Patch from Marion Hakanson's
22366         <hakanson@cse.ogi.edu>.
22367
22368         Added Marion Hakanson's <hakanson@cse.ogi.edu> patches to fix
22369         problems when amanda dumps directly to tape (i.e. when holding
22370         space is full, or you're backing up a huge filesystem, etc.).
22371         The bug occurs in the way taper determines it has succeeded
22372         when doing a PORT-WRITE operation (i.e. dumping directly to
22373         tape).  It used to assume that an EOF meant no more data --
22374         true if it's reading from a file, but when reading from a port
22375         (i.e. directly from a dump process), an EOF could signal
22376         abnormal exit as well as a normal one.  So, I extended the
22377         protocol between driver and taper when dumping directly to tape
22378         (see dump_to_tape() in driver.c) so the taper will wait for the
22379         driver to pass PORT-WRITE-SUCCESS or PORT-WRITE-FAILURE to the
22380         taper (since driver gets OK/not-OK from the dumper) before the
22381         taper records success or failure.  Note that this change
22382         affects only the PORT-WRITE case in taper.  FYI, the bug
22383         resulted in the curinfo database for a failed port-dump to have
22384         the tape-label & file-number fields updated with the location
22385         of the failed dump, even though the timestamp & dump statistics
22386         still have the values of the last successful dump (the latter
22387         fields are updated by dumper itself).
22388
22389         Patches from George Scott <George.Scott@cc.monash.edu.au> to
22390         fix the following problems in planner.c.
22391         1) Initialise total_size, total_lev0 and balanced_size.  They
22392         are updated in analyze_estimates() but never initialised.  Zero
22393         them before the first call.
22394         2) Remove oversize dumps.   If there is a dump whose estimated
22395         size is larger than the tape the planner would tend to throw
22396         away all the other dumps and then probably generate an
22397         unworkable plan anyway.  (The standard 2.2.6 planner probably
22398         tossed these dumps fairly quickly for other reasons, but my
22399         next fix made this one almost mandatory!)  The fix is to drop
22400         these enormous dumps right at the begining.  This shouldn't be
22401         triggered for anyone with a sane configuration.
22402         3) Promote hills.  There are two ways to create a balanced
22403         cycle.  The first is to fill in any holes and the second is to
22404         remove any hills.  The original planner is good at doing the
22405         first but doesn't even attempt the second.  A quick look at
22406         "amadmin balance" would show big hills quite clearly.  This fix
22407         effectively does an "amadmin balance" and promotes a dump from
22408         one of the "hills".  This type of promotion is quite
22409         restricted:
22410           - don't bother if we already plan to do any level 0 dumps
22411           - don't promote a dump if it was going to be the only level 0
22412             to be done on that run (ie, ignore hills that are only one
22413             dump high)
22414           - only promote one level 0 by this method
22415           - don't exceed tape_length
22416         The key to it is the first restriction.  Large sites (with
22417         large numbers of disks and a large balanced_size) will have at
22418         least one level 0 scheduled for each day in the dump cycle and
22419         will already have a balanced cycle.  This code will not
22420         activate for them.  Small sites will probably not have a level
22421         0 scheduled and will benefit.  The second restriction will stop
22422         Amanda from constantly promoting dumps when the schedule is as
22423         balanced as it will go.  The third restriction will stop Amanda
22424         over reacting.  Promoting one dump by this method would take
22425         total_lev0 larger that balanced_size.  If it wouldn't then the
22426         first stage promotion didn't work like it should.
22427         4) Initialise got_estimate for all cases.  This fix was from
22428         der Mouse <mouse@collatz.mcrcim.mcgill.edu>.  "got_estimate"
22429         wasn't being initialised for skipped disks.  Later in the code
22430         it was being used in all cases.  The fix is to move its
22431         initialisation up a few lines.
22432         5) Explicitly ignore off-line disks.  If a disk is off-line
22433         when the planner is run it gets -1 for all dump sizes.  These
22434         were ignored at a later stage.  This fix explicitly ignores
22435         them up front.
22436         6) Ignore down machines.  If a machine is down when the planner
22437         is run it guesses from historical data what the size of
22438         tonights dump is likely to be and schedules a dump anyway.  The
22439         dumper then usually discovers that the machine is still down
22440         and ends up with a half full tape.  Unfortunately the planner
22441         had to delay another dump because it thought that the tape was
22442         full.  The fix here is for the planner to discard unavailable
22443         machines totally rather than just ignore the fact that they are
22444         unavailable.
22445         7) Keep at least one total.  Amanda moves level 0 dumps back to
22446         incrementals to try and fit everything onto the tape.
22447         Unfortunately if all your incrementals are too big (or your
22448         tape too small) it can move all of your level 0 dumps.  This
22449         ends up being a kind of deadlock since, unless a level 0 gets
22450         done, the incrementals will not reduce in size and until the
22451         incrementals reduce in size there will not be enough room to
22452         fit in a level 0.  (This is not quite accurate since a level 4
22453         dump can get bumped to a level 5 which reduces its size.
22454         However, this deadlock has happened to me and for many days in
22455         a row.)  The fix is to pick on the highest priority level 0 and
22456         not let it be moved.  This change will not affect users with
22457         reasonably sized tapes since Amanda would not have moved all
22458         their disks to incrementals.
22459         8) Make usage of total_lev0 consistent.  "total_lev0" is a
22460         double and doesn't include tape_mark's.  Make it so.
22461
22462         Add a fflush(outf) to amcheck.c.  Patch from Mike Russell
22463         <Michael_Russell@Brown.EDU>.
22464
22465         Fix problems with amhpfixdevs.  Patch from Michael Schmitz
22466         <mschmitz@iname.com>.
22467
22468         Have DEC OSF1 use installbsd instead of install.  Patch from
22469         Rainer Landes <rlandes@fphws01.physik.uni-karlsruhe.de>.
22470
22471         Have amcontrol take the first command line argument as the
22472         configuration to use.  If there are no command line arguments,
22473         then use daily.  Patch from Thomas Schmeidl
22474         <schmeidl@nwp.kwu.siemens.de>.
22475
22476         Removed --atime-preserve from sendbackup-gnutar.c so that
22477         incremental backups of filesystems will work.  Patch from
22478         Alexandre Oliva <oliva@dcc.unicamp.br>.
22479
22480         Change all #if __STDC__ to #ifdef __STDC__ for those systems
22481         that define __STDC__ to 0, such as Solaris using cc -Xt, cc
22482         -Xa.  Patch from Blair Zajac <blair@gps.caltech.edu>.
22483
22484         Increase the socket buffer size, and set a low watter mark at
22485         32k.  This cut the number of syscalls done to process one 32k
22486         block from dozens down to 4 (select, read, lseek, write).
22487         Patch from Brad Huntting <huntting@glarp.com>.
22488
22489         Include amindex-0.3 from Alan McIvor <alan@salan.auck.irl.cri.nz>.
22490
22491         Add the "srvcompress" option to compress dumps on the tape host
22492         instead of on the client machines.  This may be useful when a
22493         fast tape host is backing up slow clients.  The patches add a
22494         dump-type option, analogous to "compress-fast" or
22495         "compress-best" - the way to use it is to create a new dumptype
22496         in your amanda.conf that includes "srvcompress" and use the new
22497         dumptype for those filesystems you wish to have compressed on
22498         the tape server. For example, in amanda.conf:
22499             define dumptype srvcomp-user {
22500             comment "Partitions on slow machines, compressed on tapehost"
22501             options srvcompress
22502             priority medium
22503         }
22504         Patches from Eric Volpe <epv@panix.com>.
22505
22506         Increase the planner timeout for one estimate from 30 seconds
22507         to 120 seconds.  Patch from Michael Schmitz
22508         <mschmitz@iname.com>.
22509
22510         The select(2) prototype on HPUX specifies 'int' as argument
22511         type of the filedescriptor arguments. All other systems I know
22512         of use 'fd_set'. This has been fixed by having configure check
22513         the argument type to select and adding casts to the select(2)
22514         calls.  Patch from Michael Schmitz  <mschmitz@iname.com>.
22515
22516         Improve the diagnostic output and increase the robustness of
22517         the system by adding better error checking on communication
22518         between taper & driver, and among the two taper processes.
22519         Patches from Marion Hakanson <hakanson@cse.ogi.edu>.
22520
22521         Convert all flock() calls to use POSIX-style locks via the
22522         fcntl(2) call.  This operation was prompted by the fact that
22523         the flock() emulation in the Amanda-provided common-src/flock.c
22524         was broken for read-only file descriptors, and the fcntl(2)
22525         locks are widely available.  This patch makes it possible to
22526         have a read-only lock on the /etc/amandates file on systems
22527         which want to use it.  I've built and tested the patched code
22528         on Amanda servers running on Digital Unix v3.2B (on Alpha
22529         hardware) and on SPARC Solaris-2.5.1.  It's also been compiled
22530         here on SPARC's running SunOS-4.1.3u1b, HP-UX 9.0[345], and
22531         NeXTstep-3.3 (NeXT hardware).  Note that the patches also
22532         remove all trace of the NEED_FLOCK define, and I have removed
22533         the file common-src/flock.c from our source tree here.  Patch
22534         from Marion Hakanson <hakanson@cse.ogi.edu>.
22535
22536         For disk/filesystem names which are wider than 14 characters,
22537         have reporter print out the rightmost characters of the disk
22538         name, which is usually more meaningful in a daily backup
22539         summary.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
22540
22541         Lets amflush work in a wider variety of cases than was
22542         previously true (it used to work if the disklist contains only
22543         the first token of each hostname).  sendbackup-dump.c and
22544         sendbackup-gnutar.c now do not trim the domain name from the
22545         host name that is sent back to the server.  amflush now looks
22546         for an exact match, in the database.  If it can't find one it
22547         strips the last token off the dump header hostname and keeps
22548         trying until it finds a match in the disklist or runs out of
22549         tokens.  This also has the advantage that if gethostname()
22550         returns FQDNs and you specify the same FQDNs in the disklist,
22551         then amflush will always work.  It will also work as long as
22552         the disklist and gethostname() on the clients return enough
22553         information to be unambiguous.  Patch from James Mathiesen
22554         <james@deshaw.com>.
22555
22556         Increase the READ_TIMEOUT in dumper.c to 30 minutes.  This
22557         needs to be longer than the longest amount of time dump will
22558         not produce output.  People have observed dumps taking more
22559         than 10 minutes to finish mapping some of the passes
22560         sometimes.  Patch from James Mathiesen <james@deshaw.com>.
22561         
22562         Added Adrian T. Filipi-Martin's <atf3r@cs.virginia.edu>
22563         amrmtape script, which allows you to invalidate the contents of
22564         an existing backup tape within the Amanda current tape
22565         database.  This is meant as a recovery mecanism for when a good
22566         backup is damaged either by faulty hardware or user error,
22567         i.e.  the tape is eaten by the tape drive, or the tape has been
22568         overwritten.  Blair Zajac wrote a quick little manual page for
22569         this script.
22570
22571         amrmtape was using the return value from amadmin and amadmin
22572         was exiting with a non-zero value, causing amrmtape to quit.
22573         Added a return 0 statement to amadmin.c.  Patch from Blair
22574         Zajac <blair@gps.caltech.edu>.
22575
22576         Went through all of the files and changed void main()'s to int
22577         main()'s.  Patch from Blair Zajac <blair@gps.caltech.edu>.
22578
22579         Removed the 50 tape file limit in amcleanup and amdump.
22580
22581         createindex-dump and sendbackup-dump did not always take into
22582         account the version suffix.  This is now handled.  Patch from
22583         Philippe Charnier <charnier@lirmm.fr>
22584
22585         Compile and install amrecover and amrestore as client programs,
22586         not a server program.  The motovation for this is that
22587         amrecover is truly a program for all of the users on the
22588         system, while the remaining amanda programs could be used by
22589         only the system administrator.  Patch from Alexandre Oliva
22590         <oliva@dcc.unicamp.br>.
22591
22592         The program amtrmidx fails to close some of the pipes it uses,
22593         and this can lead to failure on systems with large numbers of
22594         disks with incomplete database sets, and file descriptor
22595         ulimits set.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
22596
22597 Version 2.3.0.3
22598
22599         Expanded the width of the DISK column from the reporter
22600         output.  I like to use mount points like /export/home?? instead
22601         of device names to back up.  Since the width of the disk name
22602         field from reporter's output is pretty small, I couldn't easily
22603         figure out the statistics for a particular partition.  Patch
22604         from Blair Zajac <blair@gps.caltech.edu>.
22605
22606         Included Eric Doutreleau <ed@cti.ecp.fr> patch's for amadmin to
22607         handle multiple tapes better.  The patch that he posted on used
22608         a hardwired value of 6 for runtapes, which I changed.
22609
22610         Included Marion Hakanson's <hakanson@cse.ogi.edu> patches to
22611         amadmin.c and amadmin.8 to let amadmin use the same disk
22612         regular expression matching as amrestore.  So now "^/$" will
22613         match only the root partition, not all of the disks.
22614
22615         Added a patch from George.Scott@cc.monash.edu.au which makes
22616         new disks and forces dump with a higher priority.
22617
22618         Changed tools/munge to delete blank lines and the commented
22619         lines that the C preprocessor generates (i.e. # 123).  We also
22620         remove the space after the = sign that can be generated by cpp
22621         on some systems.
22622
22623         Installed amindex-0.2 from Alan McIvor <alan@auck.irl.cri.nz>
22624         with the following patches:
22625
22626                 Fix problem so that rsh'ing on a hpux host works.
22627                 Patch from Neal Becker <neal@ctd.comsat.com>.  This
22628                 patch includes a new #define for RSH_COMMAND, which is
22629                 set to rsh in config-common.h and defined as remsh in
22630                 config.h-hpux.
22631
22632                 Fix bugs in createindex-dump.c when comparing errno to
22633                 EINTR.  The code was using = instead of ==.  Patch from
22634                 Neal Becker <neal@ctd.comsat.com>.  I'm guessing this
22635                 might fix some of the runaway createindex-dump
22636                 processes that I have seen on my system.
22637
22638                 On my system, we use MAE which likes to generate path
22639                 names with spaces in them.  I patched
22640                 createindex-dump.c so that filenames with spaces have
22641                 the whole filename listed.  Patch from Blair Zajac
22642                 <blair@gps.caltech.edu>.
22643
22644                 Patch amtrmidx.c so that backups using the mount points
22645                 for disks instead of the device name have the /'s
22646                 replaced with _'s.  Patch from Blair Zajac
22647                 <blair@gps.caltech.edu>.
22648
22649 Version 2.3.0.2
22650
22651         Changed the signals being sent to xfsdump for Irix so that it
22652         will be killed without dumping a core.
22653
22654         Fixed a typo in the definition of XFSDUMP in config.h-irix.
22655
22656         Removed the extra option.s-* and copied options.h to
22657         options.h-vanilla.
22658
22659         Moved the amrestore manual page into the man directory so it
22660         would get installed.
22661
22662 Version 2.3.0.1
22663
22664         amindex-0.1 written by Alan McIvor <alan@kauri.auck.irl.cri.nz>
22665         installed.  amindex generates an index of all of the files that
22666         were dumped.  It is nice to see what files were dumped before
22667         you restore a whole bunch of tapes looking for a file.  I
22668         patched some of this code.  Here are some of the changes:
22669
22670                 Switched the Imakefile to Makefile and Makefile.in to
22671                 be more consistent with the system used by the rest of
22672                 amanda.
22673
22674                 Moved the configuration #defines out of the specific
22675                 files (such as amrecover.c) into options.h, so that
22676                 people installing this version of amanda would be able
22677                 to see the required changes more easily and not have to
22678                 edit multiple files.
22679
22680                 Made some changes to the codes to remove #include's
22681                 where amanda.h would include them and also check if the
22682                 system had the particular include file.
22683
22684                 Added code to set_commands.c and amgetidx.c to change
22685                 /'s in disk names to _'s.
22686
22687                 Added code to amrecover.c to properly compile on
22688                 Solaris hosts.
22689
22690                 With the -Xc compiler option on Solaris and with
22691                 amindex, the sigaction structure was not being
22692                 declared.  Added -D__EXTENSIONS__ to config.h-sunos5 so
22693                 that sigaction would be declared.
22694
22695                 I changed a bunch of fprintf to perrors.
22696
22697         Include Sean Kelly's <kelly@fsl.noaa.gov> patch for tools/munge
22698         for FreeBSD-2.1.5.
22699
22700         Used Peter Lackner's <plo@came.sbg.ac.at> patches for DU 4.0.
22701
22702         Installed Ken Laprade's <klaprade@harris.com> patches for
22703         amanda to handle both EFS and XFs file systems on the same
22704         client.  The only change from his patch is to #ifdef XFSDUMP
22705         the kill(-dumppid, SIGTERM) so the SIGTERM signal will be used
22706         on other systems, while SIGQUIT will be used on Irix systems.
22707
22708         Installed Marion Hakanson's <hakanson@cse.ogi.edu> patches for
22709         the main config file to include subsidiary config files.
22710
22711         On Solaris, sometimes the hdr->handle variable in amandad.c
22712         would be null, causing core dumps when it was used in a sprintf
22713         statement.  The code now checks if hdr->handle is null and
22714         prints a "" if it is null.  This was only done in amandad.c.
22715
22716         Fix a problem where new disks would be added but not backed up
22717         concurrently.  Changes to diskfile.c.  I forgot who put this
22718         patch up on the mailing list.
22719
22720         I made some changes to options.h to allow the user to more
22721         easily install the programs under a different user.  This meant
22722         defining two new #defines, MK_AMANDA_USER and
22723         MK_QUOTED_AMANDA_USER which are used in the appropriate
22724         Makefiles.
22725
22726         Used Marion Hakanson's <hakanson@cse.ogi.edu> patch for taper.c
22727         for multiple tapes.
22728
22729         Included Joachim Loehr's <Joachim.Loeh@stadt-mh.de>
22730         script to automatically figure out which kind of HP-UX file
22731         system is being dumped.  Look in tools for the script and a
22732         README.
22733
22734 Local Variables:
22735 mode: change-log
22736 left-margin: 8
22737 fill-column: 76
22738 End: