working on rules file, still needs work
[debian/amanda] / ChangeLog
1 2009-01-22  Jean-Louis Martineau <martineau@zmanda.com>
2         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.1")
3         * packaging/deb/rules, packaging/deb/buildpkg, packaging/deb/changelog,
4           packaging/rpm/buildpkg,
5           packaging/rpm/amanda.spec: Change version to 2.6.1.
6
7 2009-01-22  Jean-Louis Martineau <martineau@zmanda.com>
8         * man/xml-source/amstar.8.xml: Typo.
9
10 2009-01-21  Jean-Louis Martineau <martineau@zmanda.com>
11         * server-src/driver.c: Add call to short_dump_state().
12
13 2009-01-21  Jean-Louis Martineau <martineau@zmanda.com>
14         * server-src/reporter.c: Set exit_status to STATUS_TAPE if taper crash.
15
16 2009-01-21  Jean-Louis Martineau <martineau@zmanda.com>,
17             Dustin J. Mitchell <dustin@zmanda.com>
18         * common-src/fileheader.c: Remove strquotedstr function.
19         * common-src/quoting-test.c: Test strquotedstr function.
20         * common-src/util.c: Add prototype for strquotedstr function.
21         * common-src/util.h: Add new strquotedstr function.
22
23 2009-01-21  Jean-Louis Martineau <martineau@zmanda.com>
24         * application-src/Makefile.am: Typo
25
26 2009-01-21  Dustin J. Mitchell <dustin@zmanda.com>
27         Patch suggested by Ingo Schaefer <ingo@ingo-schaefer.de>
28         * packaging/rpm/amanda.spec: detect and properly support suse11.1,
29           with a temporary hack to support suse11, too
30
31 2009-01-21  Jean-Louis Martineau <martineau@zmanda.com>
32         * packaging/rpm/amanda.spec: Typo.
33
34 2009-01-21  Jean-Louis Martineau <martineau@zmanda.com>
35         * server-src/amstatus.pl: Fix use of %free and %qlen keys.
36
37 2009-01-20 Dan Locks <dwlocks@zmanda.com>
38         * packaging/rpm/amanda.spec: add missing BuildRequires, conditionalize 
39           libtermcap.so.2 for fedora, change tar requirement to %{tarver}
40
41 2009-01-20 Dan Locks <dwlocks@zmanda.com>
42         * packaging/rpm/amanda.spec: add %{PERLSITELIB} to %files section to
43           install perl for the client package add "directory mode" to defattr
44           statements where appropriate.
45
46 2009-01-19  Jean-Louis Martineau <martineau@zmanda.com>
47         * server-src/diskfile.c: Use dp->hostnext to scan dles of a host.
48
49 2009-01-19  Jean-Louis Martineau <martineau@zmanda.com>
50         * device-src/vfs-device.c: robust_open can return fd 0.
51
52 2009-01-19  Tom Robinson <tom.robinson@constantstream.com>
53         * server-src/amoverview.pl: fix parsing of filenames containing colons
54
55 2009-01-19  Jean-Louis Martineau <martineau@zmanda.com>
56         * application-src/amzfs-sendrecv.pl: Handle incremental,
57                                              new KEEP-SNAPSHOT property.
58         * man/xml-source/amzfs-sendrecv.8.xml: Document it.
59         * application-src/teecount.c: New program.
60         * application-src/Makefile.am: Add teecount.
61         * perl/Amanda/Application/Zfs.pm: Work with 'current' snapshot.
62         * common-src/amanda.h: include "safe-read.h"
63
64 2009-01-17  Jean-Louis Martineau <martineau@zmanda.com>
65         * server-src/amstatus.pl: Don't add 'dump to tape' in the 'dumped'
66                                   result.
67
68 2009-01-16 Dan Locks <dwlocks@zmanda.com>
69         * packaging/rpm/amanda.spec: fix the fedora 10 fix for other distros
70
71 2009-01-16  Dustin J. Mitchell <dustin@zmanda.com>
72         * device-src/vfs-device.c: don't cache the dir_handle, as
73           such caching does not work on some network filesystems
74
75 2009-01-16  Jean-Louis Martineau <martineau@zmanda.com>
76         * packaging/rpm/amanda.spec: Fix for fedora 10.
77
78 2009-01-16  Dustin J. Mitchell <dustin@zmanda.com>
79         * device-src/amtapetype.pl: remove call to old device function
80
81 2009-01-16  Jean-Louis Martineau <martineau@zmanda.com>
82         * server-src/driver.c: Use bitwise NOT for taper_state.
83
84 2009-01-16  Jean-Louis Martineau <martineau@zmanda.com>
85         * server-src/taper.c: Go to next tape if device_start_file fail.
86         * device-src/tape-device.c: write a filemark when a file is finished.
87         * device-src/tape-device.h (TapeDevice): Remove first_file.
88
89 2009-01-16  Jean-Louis Martineau <martineau@zmanda.com>
90         * client-src/sendbackup.c: Fix for no index with application.
91         * application-src/amstar.c: Improve error reporting.
92         * application-src/amgtar.c: Improve error reporting.
93
94 2009-01-14  Jean-Louis Martineau <martineau@zmanda.com>
95         * application-src/amgtar.c: Add TAR-BLOCKSIZE property.
96         * man/xml-source/amgtar.8.xml; document TAR-BLOCKSIZE property.
97
98 2009-01-13  Jean-Louis Martineau <martineau@zmanda.com>
99         * server-src/amcheck.c: Check fallback_splitsize is smaller than
100                                 physmem_total().
101         * server-src/taper-mem-port-source.c: Dont; check physmem_available.
102
103 2009-01-12  Jean-Louis Martineau <martineau@zmanda.com>
104         * server-src/server_util.c: New get_pending_cmd function.
105         * server-src/server_util.h: get_pending_cmd prototype.
106         * server-src/driver.c: Send message to dumper in ABORT command.
107         * server-src/driverio.c: Send message to dumper in ABORT command.
108         * server-src/dumper.c: Check for ABORT cmd.
109         * server-src/reporter.c: Don't log duplicate
110                                  'Not enough holding disk space' error
111
112 2009-01-12  Jean-Louis Martineau <martineau@zmanda.com>
113         * server-src/driver.c: Fix result_argv subscript.
114
115 2009-01-08  Jean-Louis Martineau <martineau@zmanda.com>
116         * restore-src/amfetchdump.c: Write to stderr.
117
118 2009-01-06  Jean-Louis Martineau <martineau@zmanda.com>
119         * device-src/tape-device.c (tape_device_seek_file): Set is_eof to FALSE
120           after it is use.
121
122 2009-01-06  Jean-Louis Martineau <martineau@zmanda.com>
123         * server-src/taper.c: Don't call changer_label() if a changer is not
124                               in use.
125
126 2009-01-06  Jean-Louis Martineau <martineau@zmanda.com>
127         * server-src/driverio.c: Set *result_argv to NULL on EOF.
128         * server-src/taper-mem-port-source.c: Set an error if the memory can't
129           be allocated for the memory buffer.
130
131 2009-01-05  Dustin J. Mitchell <dustin@zmanda.com>
132         * client-src/runtar.c: remove unnecessary check for existence of
133           CLIENT_LOGIN
134
135 2009-01-05  Jean-Louis Martineau <martineau@zmanda.com>
136         * perl/Amanda/Archive.swg, perl/Amanda/Device.swg,
137           perl/Amanda/Xfer.swg: Fix compiler warning.
138
139 2009-01-05  Jean-Louis Martineau <martineau@zmanda.com>
140         * config/automake/scripts.am: Remove 'use lib' line before doing check.
141
142 2008-12-22  Jean-Louis Martineau <martineau@zmanda.com>
143         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.1b2")
144         * packaging/deb/rules, packaging/deb/buildpkg,
145           packaging/deb/changelog, packaging/rpm/buildpkg,
146           packaging/rpm/amanda.spec: Change version to 2.6.1b2.
147
148 2008-12-22  Paul Yeatman <pyeatman@zmanda.com>
149         * man/entities/global.entities.in: added author/email entity for me
150         * man/xml-source/amanda-auth.7.xml: newly added man page
151         * man/Makefile.am: added amanda-auth to section 7
152         * man/xml-source/amanda.conf.5.xml: removed details on auth parameter
153         and added link to amanda-auth man page 
154         * man/xml-source/amanda.conf.5.xml: moved AUTHORIZATION section to
155         amanda-auth and added link to amanda-auth man page 
156
157 2008-12-22  Nikolas Coukouma <atrus@zmanda.com>
158         * device-src/s3.c: retry on CURLE_GOT_NOTHING (52) to handle "connection reset by peer"
159
160 2008-12-22  Dustin J. Mitchell <dustin@zmanda.com>
161         * device-src/s3.c: translate error code 0 to "None", not NULL
162
163 2008-12-22  Dustin J. Mitchell <dustin@zmanda.com>
164         * application-src/amgtar.c,
165           application-src/amstar.c: Use sizeof(line) for argument to fgets.
166
167 2008-12-22  Jean-Louis Martineau <martineau@zmanda.com>
168         * man/xml-source/amarchiver.8.xml: amanda-archive-format man page is
169                                            in section 5.
170
171 2008-12-22  Dustin J. Mitchell <dustin@zmanda.com>
172         * installcheck/Installcheck/Dumpcache.pm
173           installcheck/Installcheck/Run.pm installcheck/amdump.pl
174           installcheck/pp-scripts.pl: move amdump_diag to Installcheck::Run, fix
175           it, and use it in amdump and pp-scripts
176         * application-src/amlog-script.pl: don't pretend to be script-email
177         * man/Makefile.am: amanda-archive-format should be section 5
178         * man/xml-source/amanda-archive-format.5.xml: small tweaks
179         * man/xml-source/amanda-changers.7.xml: fix authorship
180         * man/xml-source/amanda.8.xml: add link to amvault(8)
181         * man/xml-source/amvault.8.xml: enumerate limitations of this version
182         * perl/Amanda/Config.swg: fix mem leak in config_dir_relative wrapper
183
184 2008-12-22  Dustin J. Mitchell <dustin@zmanda.com>
185         * config/amanda/dirs.m4: add --with-amdatadir
186         * example/Makefile.am: use it for examples and templates
187         * perl/Amanda/Paths.pm.in: add $amdatadir
188         * server-src/amserverconfig.pl: use it
189         * packaging/deb/rules packaging/rpm/amanda.spec: packaging changes
190           so that built packages still put examples and templates in
191           /var/lib/amanda
192
193 2008-12-22  Jean-Louis Martineau <martineau@zmanda.com>
194         * application-src/amstar.c: Use fgets to read star output.
195         * application-src/amgtar.c: Use fgets to read gtar output.
196
197 2008-12-22  Jean-Louis Martineau <martineau@zmanda.com>, 
198             Dustin J. Mitchell <dustin@zmanda.com>
199         * common-src/util.c: Convert underscore in application and script
200                              property name to dash.
201         * device-src/property.c: Make underscore and dash equal in device
202                                  property name.
203         * installcheck/Amanda_Device.pl: Check device property name with
204                                          mixed case and dash.
205         * installcheck/pp-scripts.pl: Check property name with underscore.
206
207 2008-12-22  Jean-Louis Martineau <martineau@zmanda.com>
208         * server-src/reporter.c: Fix reporting of FLUSH.
209
210 2008-12-19  Nikolas Coukouma <atrus@zmanda.com>, Dustin J. Mitchell <dustin@zmanda.com>
211         * device-src/s3-device.c, device-src/s3.c, device-src/s3.h:
212           Reset read and write when retrying a failed request
213
214 2008-12-19  Jean-Louis Martineau <martineau@zmanda.com>
215         * server-src/holding.c (holding_get_file_chunks): Set fullpaths to 1.
216
217 2008-12-18  Jean-Louis Martineau <martineau@zmanda.com>
218         * common-src/security-util.c: Don't free 'rc'.
219
220 2008-12-18  Jean-Louis Martineau <martineau@zmanda.com>
221         * man/xml-source/amgtar.8.xml: Improve documentation of regex.
222
223 2008-12-18  Jean-Louis Martineau <martineau@zmanda.com>
224         * common-src/conffile.h (anonymous_value): New prototype.
225         * common-src/conffile.c (anonymous_value): New function.
226         * common-src/conffile.c: Use anonymous_value.
227         * server-src/diskfile.c: Use anonymous_value.
228
229 2008-12-17  Jean-Louis Martineau <martineau@zmanda.com>
230         * perl/Amanda/Script_App.pm: Fix infinite loop.
231         * perl/Amanda/Application/Zfs.pm: Fix for freebsd.
232
233 2008-12-17  Jean-Louis Martineau <martineau@zmanda.com>
234         * server-src/planner.c: Run script only if todo is set.
235
236 2008-12-17  Jean-Louis Martineau <martineau@zmanda.com>
237         * installcheck/amfetchdump.pl: chdir() before rmtree().
238
239 2008-12-17  Jean-Louis Martineau <martineau@zmanda.com>
240         * common-src/pipespawn.c: Remove bogus g_debug().
241
242 2008-12-17  Jean-Louis Martineau <martineau@zmanda.com>
243         * installcheck/amarchiver.pl: chdir() before rmtree().
244         * installcheck/amcheckdump.pl: Add reason to BAIL_OUT.
245         * installcheck/amdevcheck.pl: Add reason to BAIL_OUT.
246
247 2008-12-07  Satya Ganga <gsat@zmanda.com>
248         * changer-src/chg-lib.sh.in: Remove dependency on ggrep and use mtx
249           offline command instead of "eject" which is not supported on solaris.
250
251 2008-12-17 Dan Locks <dwlocks@zmanda.com>
252         * config/amanda/changer.m4: update AC_CHECK_HEADERS to get rid of
253           "present but cannot be compiled" warning during debian packaging.
254
255 2008-12-17 Dan Locks <dwlocks@zmanda.com>
256        * packaging/rpm/amanda.spec: add detection for SLES11 (Beta)
257
258 2008-12-17  Dustin J. Mitchell <dustin@zmanda.com>
259         * man/xml-source/amgtar.8.xml: atime_preserve -> atime-preserve
260         * installcheck/pp-scripts.pl: add atime-preserve property, remove
261           references to Installcheck::Dumpcache, which isn't in this release
262
263 2008-12-16  Dustin J. Mitchell <dustin@zmanda.com>
264         * man/xslt/html.xsl.in: add <div class="refentry" /> for the benefit
265           of amanda.css.
266
267 2008-12-16  Jean-Louis Martineau <martineau@zmanda.com>
268         * common-src/security-util.c: Don't close if it's not open.
269
270 2008-12-16  Jean-Louis Martineau <martineau@zmanda.com>
271         * application-src/Makefile.am: Add amlog-script.
272         * application-src/amlog-script.pl: New scripts.
273         * server-src/amcheck.c , server-src/planner.c,
274           server-src/server_util.c, server-src/server_util.h,
275           server-src/driver.c: Add level argument to run_server_scripts().
276           The script is executed with that level argument.
277         * installcheck/pp-scripts.pl: Check scripts.
278         * installcheck/Makefile.am: Add pp-scripts.
279
280 2008-12-16  Dustin J. Mitchell <dustin@zmanda.com>
281         * man/Makefile.am man/xml-source/amanda-changers.7.xml
282           man/xml-source/amanda-devices.7.xml man/xml-source/amanda.8.xml
283           man/xml-source/amanda.conf.5.xml: new documentation
284         * perl/Amanda/Changer.pm: not finished yet!
285         * perl/Amanda/Changer/compat.pm: fix error message
286         * server-src/changer.c changer-src/chg-glue.pl:
287           better error handling
288
289 2008-12-16  Dustin J. Mitchell <dustin@zmanda.com>
290         * changer-src/chg-glue.pl: add labelling support
291         * perl/Amanda/Changer/compat.pm: only call '-label' on chg-zd-mtx if
292           the changer is not seekable (hack to make slotinfofile work)
293         * changer-src/chg-zd-mtx.sh: provide optional slotinfofile mapping
294           slots to labels on a best-information-available basis
295
296 2008-12-15  Jean-Louis Martineau <martineau@zmanda.com>
297         * amandad-src/amandad.c: Set wait_30s to 0 for local auth.
298
299 2008-12-15  Dustin J. Mitchell <dustin@zmanda.com>
300         * installcheck/Amanda_Config.pl: work around buggy sort() in perl-5.6
301         * installcheck/Amanda_DB_Catalog.pl installcheck/Amanda_Logfile.pl:
302           stringify bigints in is_deeply arguments
303         * perl/Amanda/Archive.swg: grok_number is not in perl-5.6
304         * perl/Amanda/BigIntCompat.pm: additional overloads and methods for
305           BigIntCompat for perl-5.6 compatibility
306
307 2008-12-14  Dustin J. Mitchell <dustin@zmanda.com>
308         * man/Makefile.am: change manpage build process
309         * man/entities/global.entities.in: generate with config.status
310         * man/xslt/html.xsl.in: new templates to handle authors
311         * man/xslt/man.xsl.in: new templates to handle authors
312         * man/xml-source/*.xml: change specification of authors
313         * man/xml-source/amanda-applications.7.xml: add links to apps
314         * man/xml-source/amanda-scripts.7.xml: add links to scripts
315
316 2008-12-12  John Hein <jhein@timing.com>
317         * server-src/amdump.sh: fix Open3 invocation to work on
318           FreeBSD-4.x
319
320 2008-12-12  Jean-Louis Martineau <martineau@zmanda.com>
321         * man/xml-source/amanda.conf.5.xml: Fix use of <programlisting>, it must
322                                             always be at the beginning of the line.
323
324 2008-12-12  Jean-Louis Martineau <martineau@zmanda.com>
325         * application-src/amgtar.c: Fix coredump if GNUTAR is not set.
326
327 2008-12-12  Dustin J. Mitchell <dustin@zmanda.com>
328         * client-src/sendbackup-dump.c: fix previous commit to not use
329           precompiler directives in the middle of a macro invocation
330
331 2008-12-12  Jean-Louis Martineau <martineau@zmanda.com>
332         * NEWS, ReleaseNotes: Add amzfs-sendrecv.
333         * client-src/sendbackup.c: Fix indexd test.
334         * man/Makefile.am: Add amzfs-sendrecv.8.
335         * man/xml-source/amzfs-snapshot.8.xml: Add DLE format example.
336         * man/xml-source/amanda-applications.7.xml: Add amzfs-sendrecv.8.
337         * man/xml-source/amanda.8.xml: Add amzfs-sendrecv.8.
338         * man/xml-source/amzfs-sendrecv.8.xml: New man page.
339         * application-src/amzfs-sendrecv.pl: New application.
340         * application-src/amzfs-snapshot.pl: Fix to use
341                                              Amanda::Application::Zfs
342         * application-src/Makefile.am: Add amzfs-sendrecv.
343         * perl/Amanda/Script_App.pm: Exit instead of die.
344         * perl/Amanda/Application/Zfs.pm: New perl module for zfs.
345         * perl/Makefile.am: Add Amanda/Application and
346                             Amanda/Application/Zfs.pm
347
348 2008-12-12  Jean-Louis Martineau <martineau@zmanda.com>
349         * recover-src/extract_list.c: Wait to read at least one byte from the
350                                       data stream before forking the child.
351
352 2008-12-12  Jun Kuriyama <kuriyama@freebsd.org>, Göran Löwkran
353         * changer-src/chg-zd-mtx.sh: fix bashisms
354         * client-src/sendbackup-dump.c: use -L on systems that support it
355
356 2008-12-11  Jean-Louis Martineau <martineau@zmanda.com>
357         * NEWS, ReleaseNotes: Add amsamba.
358
359 2008-12-11  Jean-Louis Martineau <martineau@zmanda.com>
360         * server-src/driver.c: Check start_t before doing a dump to tape.
361
362 2008-12-09  C R Ritson.
363         * server-src/reporter.c: Add threshold to small and big estimate.
364
365 2008-12-09  Jean-Louis Martineau <martineau@zmanda.com>
366         * client-src/client_util.c: Parse RECOVER-MODE application support.
367         * client-src/client_util.h (backup_support_option_t):
368                                    Add smb_recover_mode.
369         * client-src/sendsize.c: Fix size.
370         * man/Makefile.am: Add amsamba.8.
371         * man/xml-source/amsamba.8.xml: New man page.
372         * man/xml-source/amanda-applications.7.xml: List amsamba.
373         * man/xml-source/amanda.8.xml: List amsamba.
374         * application-src/Makefile.am (CHECK_PERL): Add amsamba
375         * application-src/amsamba.pl: New application.
376         * recover-src/extract_list.c: Get support option from application
377           and set --recover-mode if needed.
378         * recover-src/amrecover.h: Remove some "#ifdef SAMBA_CLIENT".
379         * recover-src/set_commands.c: Remove some "#ifdef SAMBA_CLIENT".
380         * perl/Amanda/Paths.pm.in: Add $sysconfdir.
381         * perl/Amanda/Util.swg: Add skip_quoted_string.
382
383 2008-12-09  Jean-Louis Martineau <martineau@zmanda.com>
384         * man/xml-source/amstar.8.xml: Typo.
385
386 2008-12-09  Jean-Louis Martineau <martineau@zmanda.com>
387         * man/xml-source/amanda.conf.5.xml: Fix plugin location.
388
389 2008-12-07  Dustin J. Mitchell <dustin@zmanda.com>
390         * server-src/Makefile.am server-src/amvault.pl: new, experimental
391           script to copy data from secondary to tertiary volumes
392         * common-src/fileheader.c: strip spurious ' ' from headers
393         * man/Makefile.am man/xml-source/amvault.8.xml: docs
394         * perl/Amanda/DB/Catalog.pm: add kbps calculation
395         * perl/Amanda/Device.swg: add volume_header() method
396
397 2008-12-05  Dustin J. Mitchell <dustin@zmanda.com>
398         * server-src/taper.c: remove dead code that can cause compiler errors
399
400 2008-12-05  Jean-Louis Martineau <martineau@zmanda.com>
401         * server-src/driverio.c: Send a message with NO-NEW-TAPE.
402         * server-src/driver.c: Generate message for NO-NEW-TAPE, call
403           start_degraded_mode when sending NO-NEW-TAPE, Fix a subscript error 
404           for INPUT-ERROR and TAPE-ERROR
405         * server-src/taper.c: Get message from NO-NEW-TAPE command and log it.
406
407 2008-12-03  Jean-Louis Martineau <martineau@zmanda.com>
408         * man/xml-source/amanda.conf.5.xml: Provide default unit.
409
410 2008-12-03  Jean-Louis Martineau <martineau@zmanda.com>
411         * server-src/amcheckdump.pl: Use GNUTAR to validate smbclient image.
412
413 2008-12-01  Nikolas Coukouma <atrus@zmanda.com>
414         * device-src/s3.c: fix signedness
415
416 2008-12-01  Dustin J. Mitchell <dustin@zmanda.com>
417         * common-src/util.c: fix mishandling of trailing backslash in
418           unquote_string
419
420 2008-12-01  Nikolas Coukouma <atrus@zmanda.com>
421         * device-src/s3.c, device-src/s3.h: Fix segmentation fault within s3_make_bucket
422           by adding some "null-op" read and write functions.
423
424 2008-11-27  Jean-Louis Martineau <martineau@zmanda.com>
425         * server-src/amstatus.pl: Correctly parse degraded size.
426
427 2008-11-26  Jean-Louis Martineau <martineau@zmanda.com>
428         * client-src/sendbackup.c: Set application in extraction command.
429
430 2008-11-25  Jean-Louis Martineau <martineau@zmanda.com>
431         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.1b1")
432         * ReleaseNotes: Release notes for 2.6.1b1.
433         * NEWS: News for 2.6.1b1.
434         * packaging/deb/rules, packaging/deb/buildpkg,
435           packaging/rpm/buildpkg,
436           packaging/rpm/amanda.spec: Change version to 2.6.1b1.
437
438 2008-11-25  Jean-Louis Martineau <martineau@zmanda.com>
439         * config/amanda/bsd-security.m4: Fix.
440         * config/amanda/bsdtcp-security.m4: Enable --with-bsdtcp-secutiy by
441                                             default.
442         * config/amanda/ssh-security.m4: Enable --with-ssh-security by default.
443
444 2008-11-25  Dustin J. Mitchell <dustin@zmanda.com>
445         * changer-src/Makefile.am changer-src/chg-glue.pl:
446           add new c-to-perl glue script
447         * server-src/changer.c: interface with new script
448         * server-src/amtape.c man/xml-source/amtape.8.xml:
449           remove 'slot last' and 'slot prev'
450         * perl/Amanda/Changer.pm perl/Amanda/Changer/compat.pm
451           perl/Amanda/Changer/disk.pm perl/Amanda/Changer/single.pm: updates to
452           new Changer API
453         * installcheck/Amanda_Changer.pl installcheck/Amanda_Changer_compat.pl
454           installcheck/Amanda_Changer_disk.pl installcheck/Amanda_Changer_single.pl
455           installcheck/Makefile.am: tests for all of it
456
457 2008-11-25  Dustin J. Mitchell <dustin@zmanda.com>
458         * example/template.d/advanced.conf.in: don't imply that
459           maxdumpsize is in bytes
460
461 2008-11-21  Nikolas Coukouma <atrus@zmanda.com>
462         * device-src/s3.c: work around a bug in Amazon's HTTP implementation
463           by avoiding HEAD requests.
464
465 2008-11-21  Jean-Louis Martineau <martineau@zmanda.com>
466         * server-src/diskfile.c (clean_dle_str_for_client): Return NULL if
467                                                             argument is NULL.
468         * restore-src/restore.c: Also check for F_EMPTY.
469
470 2008-11-21  Jean-Louis Martineau <martineau@zmanda.com>
471         * amandad-src/amandad.c: Wait up to 5 seconds dwfor only for process
472                                  that should terminate.
473
474 2008-11-21  Dustin J. Mitchell <dustin@zmanda.com>
475         * restore-src/restore.c: Continue if setting PROPERTY_READ_BUFFER_SIZE
476                                  fail.
477
478 2008-11-20  Jean-Louis Martineau <martineau@zmanda.com>
479         * server-src/server_util.c: Skip one field in parsing INFO pid line.
480
481 2008-11-20  Jean-Louis Martineau <martineau@zmanda.com>
482         * oldrecover-src/extract_list.c: Use config.
483         * server-src/dumper.c: Check dle_str for NULL.
484
485 2008-11-20  Jean-Louis Martineau <martineau@zmanda.com>
486         * server-src/amdump.sh: Run amreport if the 'log' file already exist.
487
488 2008-11-20  Urs Schurer <urs@sitb.de>
489         * server-src/amindexd.c: remove unnecessary stralloc()/free() calls
490           in process_ls_dump
491
492 2008-11-19 Satya Ganga <gsat@zmanda.com>
493         * example/inetd.conf.amandaserver.in: Add serverconfig file
494         * configure.in,example/Makefile.am: Include inetd.conf.amandaserver
495
496 2008-11-18 Dan Locks <dwlocks@zmanda.com>
497         * packaging/rpm/amanda.spec: removed conditionals around
498           perl(ExtUtils::Embed) so that buildrequires applies to all platforms
499
500 2008-11-18  Satya Ganga <gsat@zmanda.com>
501         * device-src/tape-device.c: Remove O_NONBLOCK flag from all tape open calls.
502
503 2008-11-18  Jean-Louis Martineau <martineau@zmanda.com>
504         * application-src/amstar.c: Free qdisk after the loop.
505         * application-src/amgtar.c: Free qdisk after the loop.
506
507 2008-11-17  Jean-Louis Martineau <martineau@zmanda.com>
508         * man/xml-source/amgtar.8.xml: Update for ATIME-PRESERVE default.
509
510 2008-11-17  Jean-Louis Martineau <martineau@zmanda.com>
511         * server-src/taper.c: Fix formating.
512
513 2008-11-17  Jean-Louis Martineau <martineau@zmanda.com>
514         * server-src/amstatus.pl: Parse "taper: using label ..." line.
515         * server-src/driver.c: Print tape size.
516         * server-src/amtoc.pl: Fix for new log format.
517         * server-src/reporter.c: Increase field width.
518         * server-src/taper.c: Print number of kbytes written to each tape.
519
520 2008-11-14  Dustin J. Mitchell <dustin@zmanda.com>
521         * device-src/s3-device.c: eliminate an extra buffer copy in the
522           common case where the caller supplies a large enough buffer
523         * device-src/s3.h: tweak a comment
524
525 2008-11-14  Jean-Louis Martineau <martineau@zmanda.com>
526         * server-src/holding.h: Improve comment.
527         * server-src/reporter.c: Print holding disk size in displyaunit.
528
529 2008-11-14  Jean-Louis Martineau <martineau@zmanda.com>
530         * client-src/client_util.c: Get stderr of scripts and send it to
531                                     server.
532         * client-src/client_util.h: Add err in client_script_result_t.
533         * client-src/sendbackup.c: Call run_client_scripts with mesgstream.
534         * client-src/sendsize.c: Fix.
535         * server-src/planner.c: Get WARNING line from client.
536         * server-src/reporter.c: Don't mark the dumper as FAILED if the
537                                  planner FAILED.
538         * common-src/amfeatures.h (fe_sendsize_rep_warning): New amfeature
539         * common-src/amfeatures.c: Add fe_sendsize_rep_warning.
540
541 2008-11-12  Dustin J. Mitchell <dustin@zmanda.com>
542         * man/xml-source/amfetchdump.8.xml: fix ugly HTML formatting
543
544 2008-11-11  Jean-Louis Martineau <martineau@zmanda.com>
545         * amandad-src/amandad.c: Check that something is ready to be read
546                                  before calling errfd_recv.
547
548 2008-11-11  Dustin J. Mitchell <dustin@zmanda.com>
549         * changer-src/chg-manual.sh: fix typo
550
551 2008-11-11 Dan Locks <dwlocks@zmanda.com>
552         * packaging/rpm/amanda.spec: add fedora 9 detection, add
553           BuildRequires: perl(ExtUtils::Embed), fix %{dist}=unknown when
554           undetected instead of at all times
555
556 2008-11-11  Dustin J. Mitchell <dustin@zmanda.com>
557         * installcheck/Makefile.am installcheck/amfetchdump.pl: build all
558           active test scripts; add a DLE in the amfetchdump installcheck
559
560 2008-11-11  Dustin J. Mitchell <dustin@zmanda.com>
561         * config/macro-archive/ac_perl_module_version.m4: new macro
562         * config/amanda/swig.m4: check for ExtUtils::Embed
563
564 2008-11-11  Dustin J. Mitchell <dustin@zmanda.com>
565         * installcheck/amarchiver.pl: quote $sbindir from regexp
566           interpretation
567
568 2008-11-11  Jean-Louis Martineau <martineau@zmanda.com>
569         * perl/Makefile.am: Don't add Amanda/Script_App.pm and Amanda/Script.pm
570                             to DISTCLEANFILES.
571
572 2008-11-11  Jean-Louis Martineau <martineau@zmanda.com>
573         * installcheck/amdump.pl: Set property "ATIME-PRESERVE" to "NO" in
574                                   amgtar application.
575
576 2008-11-11  Jean-Louis Martineau <martineau@zmanda.com>
577         * client-src/selfcheck.c: fix.
578         * amandad-src/amandad.c: Read stderr of server and report it to server.
579         * server-src/planner.c: Keep first line only.
580
581 2008-11-10  Dustin J. Mitchell <dustin@zmanda.com>
582         * amar-src/amarchiver.c: fix filesize printf conversion
583
584 2008-11-10  Jean-Louis Martineau <martineau@zmanda.com>
585         * client-src/sendbackup.c, client-src/selfcheck.c: Check return
586                                                            value of pipe.
587
588 2008-11-10  Dustin J. Mitchell <dustin@zmanda.com>
589         * installcheck/Installcheck/Run.pm: change default DLEs
590         * installcheck/amcheckdump.pl: add DLE explicitly
591         * installcheck/amdevcheck.pl: add DLE explicitly
592         * installcheck/amdump.pl: use the amgtar application in a dump
593
594 2008-11-10  Dustin J. Mitchell <dustin@zmanda.com>
595         * installcheck/Makefile.am: only test amfetchdump if it was built
596         * installcheck/amfetchdump.pl: use arguments in the right order
597
598 2008-11-10  Dustin J. Mitchell <dustin@zmanda.com>
599         * perl/Amanda/Archive.swg amar-src/amar.c amar-src/amar.h: bugfixes
600         * man/Makefile.am man/xml-source/amarchiver.8.xml
601           amar-src/Makefile.am amar-src/amarchiver.c: new application
602         * installcheck/Makefile.am installcheck/amarchiver.pl: tests
603
604 2008-11-10  Dustin J. Mitchell <dustin@zmanda.com>
605         * installcheck/Installcheck/Run.pm: add Expect support
606         * installcheck/Makefile.am installcheck/amfetchdump.pl: amfetchdump
607           installcheck, using Expect support
608
609 2008-11-10  Dustin J. Mitchell <dustin@zmanda.com>
610         * common-src/amgetconf.pl: don't setup_application() in dbclose
611
612 2008-11-10  Jean-Louis Martineau <martineau@zmanda.com>
613         * perl/Makefile.am: Build Amanda::Application only if WANT_CLIENT.
614
615 2008-11-08  Dustin J. Mitchell <dustin@zmanda.com>
616         * perl/Amanda/Changer.pm perl/Amanda/Changer/compat.pm
617           perl/Amanda/Changer/disk.pm perl/Amanda/Changer/single.pm
618           perl/Makefile.am: entirely new perl-based changer API
619         * perl/Amanda/Config.swg common-src/conffile.c common-src/conffile.h:
620           add changer subsections
621         * man/xml-source/amanda.conf.5.xml: document them
622         * server-src/amcheckdump.pl: use the new changer API
623         * installcheck/Amanda_Changer.pl installcheck/Amanda_Changer_Compat.pl
624           installcheck/Amanda_Changer_Single.pl installcheck/Amanda_Config.pl
625           installcheck/Installcheck/Config.pm installcheck/Makefile.am
626           installcheck/Amanda_Changer_Disk.pl: new/updated tests
627
628 2008-11-07  Jean-Louis Martineau <martineau@zmanda.com>
629         * application-src/amstar.c: fix.
630
631 2008-11-07  Jean-Louis Martineau <martineau@zmanda.com>
632         * perl/Amanda/Application.swg: Remove %init.
633
634 2008-11-07  Jean-Louis Martineau <martineau@zmanda.com>
635         * application-src/amgtar.c, application-src/amgtar_perl.pl,
636           application-src/amstar.c: Write backup image to fd3 and index to fd4.
637         * perl/Amanda/Script_App.pm: Use $self->{mesgout}.
638         * recover-src/extract_list.c: Add more check.
639         * client-src/client_util.c (backup_support_option): Get stderr of
640           application and put it in errarray,
641         * client-src/client_util.h (backup_support_option): New prototype.
642         * client-src/selfcheck.c, client-src/sendbackup.c,
643           client-src/sendsize.c: Get stderr of application and send it to
644                                  server.
645         * server-src/dumper.c: Log the first error message.
646         * server-src/planner.c: Log the first error message.
647         * server-src/reporter.c: Don't print some error in report.
648
649 2008-11-07  Jean-Louis Martineau <martineau@zmanda.com>
650         * client-src/client_util.c: Parse CALCSIZE and MULTI-ESTIMATE.
651         * client-src/client_util.c (run_calcsize): New function.
652         * client-src/client_util.h (run_calcsize): Prototype.
653         * client-src/sendbackup.c: Update amandates.
654         * client-src/sendsize.c: Handling of calcsize and multi-estimate.
655         * client-src/selfcheck.c: Check calcsize for application.
656         * application-src/amgtar_perl.pl, application-src/amstar.c,
657         * application-src/amgtar.c: handling of calcsize and multi-estimate.
658         * perl/Amanda/Script_App.pm: Add a check.
659         * perl/Amanda/Application.swg: Add run_calcsize.
660         * perl/Amanda/Application.pm: Delete
661         * perl/Makefile.am: Built from Application.swg
662         * client-src/calcsize.c: Handling of STAR program.
663
664 2008-11-06  Jean-Louis Martineau <martineau@zmanda.com>
665         * man/xml-source/amgtar.8.xml: Document new properties.
666         * application-src/amgtar.c: Remove ifdef IGNORE_TAR_ERRORS.
667
668 2008-11-06  Jean-Louis Martineau <martineau@zmanda.com>
669         * changer-src/chg-zd-mtx.sh: Return first line of mtx output if mtx
670                                      exit with a status != 0.
671         * server-src/amtape.c: Display changer error.
672
673 2008-11-06  Jean-Louis Martineau <martineau@zmanda.com>
674         * application-src/amgtar.c: Add exit-handling property.
675
676 2008-11-06  Jean-Louis Martineau <martineau@zmanda.com>
677         * application-src/amgtar.c: Add normal, ignore and strange property.
678
679 2008-11-04  Jean-Louis Martineau <martineau@zmanda.com>
680         * server-src/amcheck.c: Check tape_splitsize < tape length.
681
682 2008-10-30  Dustin J. Mitchell <dustin@zmanda.com>
683         * server-src/find.c server-src/find.h man/xml-source/amadmin.8.xml:
684           add new sort key, 'w', for write_timestamp
685         * server-src/amadmin.c: use it
686         * server-src/amindexd.c restore-src/amfetchdump.c: use 'w' to prefer
687           the oldest-written copy of a dump
688
689 2008-10-30  Jean-Louis Martineau <martineau@zmanda.com>
690         * application-src/amgtar_perl.pl, application-src/amstar.c,
691           application-src/amgtar.c: Implement validate command.
692         * server-src/amcheckdump.pl: Execute the validate command of an
693                                      application.
694         * perl/Amanda/Script_App.pm (print_to_server): Add validate.
695         * perl/Amanda/Application.pm (known_commands): Add validate.
696         * common-src/security-util.c: Fix typo.
697
698 2008-10-29  Dustin J. Mitchell <dustin@zmanda.com>
699         * man/xml-source/amanda.conf.5.xml
700           man/xml-source/amanda-devices.7.xml: improve device property
701           documentation
702
703 2008-10-29  Dustin J. Mitchell <dustin@zmanda.com>
704         * man/xml-source/amanda.conf.5.xml: taperflush params can be
705           greater than 100%
706
707 2008-10-27  Jean-Louis Martineau <martineau@zmanda.com>
708         * common-src/fileheader.c (dumpfile_free_data): New function.
709         * common-src/fileheader.h (dumpfile_free_data): New prototype.
710         * server-src/cmdline.c, server-src/dumper.c,
711           server-src/planner.c, server-src/amadmin.c,
712           server-src/amflush.c, server-src/holding.c,
713           server-src/driver.c, server-src/find.c,
714           server-src/taper-source.c, server-src/taper-file-source.c
715           server-src/taper.c: Call dumpfile_free or dumpfile_free_data.
716
717 2008-10-27  Dustin J. Mitchell <dustin@zmanda.com>
718         * common-src/glib-util.c: check library version at runtime
719
720 2008-10-27  Jean-Louis Martineau <martineau@zmanda.com>
721         * perl/Amanda/Device.swg (start_file): Remove const for jobInfo.
722
723 2008-10-24  Dustin J. Mitchell <dustin@zmanda.com>
724         * installcheck/Amanda_Archive.pl: fix to also test for identity of
725           $user_data on perls that recognize such things
726
727 2008-10-24  Dustin J. Mitchell <dustin@zmanda.com>
728         * amar-src/amar-test.c: don't ignore the return value of write()
729
730 2008-08-14  Nikolas Coukouma <atrus@zmanda.com>
731             Jean-Louis Martineau <martineau@zmanda.com>
732         * amar-src/amar.c: fix mis-aligned memory accesses
733         * amar-src/amar-test.c: fix test_pipe
734
735 2008-10-24  Jean-Louis Martineau <martineau@zmanda.com>
736         * perl/Amanda/Script_App.pm: New base module for script and application.
737         * perl/Amanda/Script.pm: New base module for script.
738         * perl/Amanda/Application.pm: New base module for application.
739         * perl/Makefile.am: Add Amanda::Script_app, Amanda::Script And
740                                 Amanda::Application.
741         * application-src/generic-dumper.pl: Remove file.
742         * application-src/generic-script.pl: Remove file.
743         * application-src/script-email.pl: Use Amanda::Script.
744         * application-src/amgtar_perl.pl: Use Amanda::Application.
745         * application-src/amzfs-snapshot.pl: Use Amanda::Script.
746         * application-src/Makefile.am: Remove generic-*.pl files.
747
748 2008-10-24  Dustin J. Mitchell <dustin@zmanda.com>
749         * perl/Amanda/Archive.swg perl/Makefile.am: add a Perl interface to
750           libamar
751         * installcheck/Amanda_Archive.pl installcheck/Makefile.am: test it.
752
753 2008-10-24  Dustin J. Mitchell <dustin@zmanda.com>
754         * */Makefile.am: change @AMLINT@ to $(AMLINT), similarly for
755           $(AMLINTFLAGS), and strip $(EXEEXT) from program names when running
756           lint
757         * config/amanda/libs.m4: put GLIB_CFLAGS in AMANDA_CPPFLAGS
758
759 2008-10-23  Dustin J. Mitchell <dustin@zmanda.com>
760         * amar-src/Makefile.am: add amar.h to noinst_HEADERS
761
762 2008-10-23  Dustin J. Mitchell <dustin@zmanda.com>
763         * configure.in Makefile.am amar-src/Makefile.am: new directory
764         * amar-src/amar.c amar-src/amar.h: amanda archive library
765         * amar-src/amar-test.c: tests for library
766         * common-src/security-util.c common-src/security-util.h
767           common-src/util.c common-src/util.h: move net_writev to
768           util.c, rename to full_writev
769         * man/Makefile.am man/xml-source/amanda-archive-format.7.xml
770           man/xml-source/amanda.8.xml: new manpage to describe the format
771
772 2008-10-20 Nikolas Coukouma <atrus@zmanda.com>
773         * configure.in: add tests for more headers, plus some defines
774           for the presence of Amanda's headers
775         * device-src/s3-util.c, device-src/s3-util.h: Use defines to switch between
776           POSIX regex API and a GRegex (PCRE) call-compatability layer.
777         * device-src/s3.c, device-src/s3.h: Add a curl progress callback.
778           Use callbacks to write and read data. Provide callbacks for
779           memory buffers and files. The callbacks for files are currently
780           Windows-specific.
781         * device-src/s3-device.c: update to use new API
782
783 2008-10-20  Dustin J. Mitchell <dustin@zmanda.com>
784         * perl/Makefile.am: remove spurious variables
785
786 2008-10-17  Jean-Louis Martineau <martineau@zmanda.com>
787         * changer-src/chg-multi.sh: Check permission on the statefile and its
788                                     directory.
789
790 2008-10-17  Jean-Louis Martineau <martineau@zmanda.com>
791         * server-src/planner.c: Set i to 0.
792
793 2008-10-17  Jean-Louis Martineau <martineau@zmanda.com>
794         * server-src/amcheck.c, server-src/dumper.c
795           server-src/planner.c: Don't send appliaciton-api request if the
796                                 client doesn't use the xml protocol.
797
798 2008-10-15  Jean-Louis Martineau <martineau@zmanda.com>
799         * server-src/reporter.c: print space instead of N/A, dumper stats are
800                                  set to "FLUSH" if it is a flush.
801
802 2008-10-13  Dustin J. Mitchell <dustin@zmanda.com>
803         * device-src/vfs-device.c: re-open the dir handle on every
804           device start or read label
805         * installcheck/Amanda_Device.pl: adjust tests to degrade the
806           VFS device *after* it is started
807
808 2008-10-13  Jean-Louis Martineau <martineau@zmanda.com>
809         * perl/Makefile.am: Moce EXTRA_DIST out of conditionals.
810
811 2008-10-13  Jean-Louis Martineau <martineau@zmanda.com>
812         * installcheck/Makefile.am: revert previous commit.
813         * config/automake/scripts.am: Check for a server perl module.
814
815 2008-10-13  Jean-Louis Martineau <martineau@zmanda.com>
816         * installcheck/Makefile.am: SCRIPTS_PERL = $(tests).
817
818 2008-10-13  Jean-Louis Martineau <martineau@zmanda.com>
819         * perl/Makefile.am: Don't check Amanda/Config files.
820
821 2008-10-11  Jean-Louis Martineau <martineau@zmanda.com>
822         * perl/Makefile.am: Check file in top_srcdir if they are not
823                             in top_builddir.
824
825 2008-10-10  Jean-Louis Martineau <martineau@zmanda.com>
826         * common-src/amgetconf.pl: remove 'use Amanda::Device qw( :constants);'
827
828 2008-10-10  Jean-Louis Martineau <martineau@zmanda.com>
829         * perl/Makefile.am: test for libConfig.so before doing check.
830
831 2008-10-10  Jean-Louis Martineau <martineau@zmanda.com>
832         * config/automake/scripts.am: Check perl scripts on compilation.
833           Add -I... to 'make check' to access perl module in build tree.
834           Add installcheck rules to check perl scripts with installed perl
835           modules.
836         * application-src/amstar_perl.pl: Remove file.
837         * device-src/Makefile.am, application-src/Makefile.am,
838           server-src/Makefile.am, installcheck/Makefile.am,
839           common-src/Makefile.am: Move most perl scripts to CHECK_PERL.
840         * installcheck/Makefile.am:
841           Add "CHECK_PERL_FLAGS=-I$(top_srcdir)/installcheck".
842         * perl/Makefile.am: Add rules to check all .pm files for check-local.
843         * device-src/amtapetype.pl, server-src/amaddclient.pl,
844           common-src/amgetconf.pl: Fix syntax errors.
845
846 2008-10-10  Jean-Louis Martineau <martineau@zmanda.com>
847         * application-src/amzfs-snapshot.pl, application-src/amoracle.pl
848           application-src/script-email.pl, application-src/amgtar_perl.pl:
849             fix typos.
850
851 2008-10-10  Nick Smith <nick.smith@techop.ch>
852         * application-src/amzfs-snapshot.pl: fix typos
853
854 2008-10-08  Dustin J. Mitchell <dustin@zmanda.com>
855         * perl/Amanda/DB/Catalog.pm: manage the tapelist internally
856         * perl/Amanda/Tapelist.swg: fix error message, re-read C tapelist
857           after writing
858         * server-src/amcheckdump.pl: don't read tapelist
859         * installcheck/Amanda_DB_Catalog.pl: don't read tapelist first
860
861 2008-10-08  Nick Smith <nick.smith@techop.ch>
862         * server-src/driver.c: set degr_mesg to NULL when not degraded
863
864 2008-10-06  Jean-Louis Martineau <martineau@zmanda.com>
865         * application-src/amzfs-snapshot.pl: Accept execute-where argument.
866         * application-src/script-email.pl: Accept execute-where argument.
867         * client-src/client_util.c: Send execute-where argument to script.
868         * server-src/server_util.c: Send execute-where argument to script.
869
870 2008-10-06  Jean-Louis Martineau <martineau@zmanda.com>
871         * application-src/amzfs-snapshot.pl: Add PFEXEC-PATH and PFEXEC
872                                              properties.
873         * man/xml-source/amzfs-snapshot.8.xml: Document new properties.
874
875 2008-10-03  Dustin J. Mitchell <dustin@zmanda.com>
876         * perl/Amanda/Util.swg: add Amanda::Util::generate_timestamp
877         * common-src/timestamp.c: add comment
878
879 2008-10-02  Dustin J. Mitchell <dustin@zmanda.com>
880         * perl/Amanda/DB/Catalog.pm: add rudimentary ability to read logfiles
881         * installcheck/Amanda_DB_Catalog.pl: test it
882         * perl/Amanda/Logfile.swg: fix typo
883
884 2008-10-01  Nikolas Coukouma <atrus@zmanda.com>
885         * device-src/s3-device.c, device-src/s3.c, device-src/s3.h:
886           Add new property, S3_SSL, to control the use of SSL/TLS when
887           connecting to Amazon S3
888         * man/xml-source/amanda-devices.7.xml:
889           document S3_SSL and S3_BUCKET_LOCATION
890
891 2008-10-01  Nikolas Coukouma <atrus@zmanda.com>
892         * device-src/s3-util.c: Re-implement s3_hex_encode() to avoid OpenSSL weirdness.
893
894 2008-10-01  Dustin J. Mitchell <dustin@zmanda.com>
895         * common-src/amanda.h common-src/conffile.c
896           oldrecover-src/extract_list.c recover-src/extract_list.c
897           server-src/amcheck.c server-src/amflush.c server-src/planner.c:
898           use g_ascii_isspace, as we assume ASCII (for now) and isspace()
899           is affected by locale and encoding settings.  Thanks to Michael
900           Reuland for helping track this down.
901
902 2008-09-30  Jean-Louis Martineau <martineau@zmanda.com>
903         * server-src/diskfile.h (xml_optionstr): New prototype.
904         * server-src/diskfile.h (clean_dle_str_for_client): Prototype.
905         * server-src/amindexd.c: Pass 0 to new argument of xml_optionstr.
906         * server-src/amcheck.c: Pass 0 to new argument of xml_optionstr.
907         * server-src/planner.c: Pass 0 to new argument of xml_optionstr.
908         * server-src/driverio.c: Pass 1 to new argument of xml_optionstr.
909         * server-src/dumper.c: Call clean_dle_str_for_client.
910         * server-src/diskfile.c (xml_optionstr): Work for ENCRYPT_SERV_CUST.
911         * server-src/diskfile.c (clean_dle_str_for_client): New function.
912         * restore-src/restore.c: Call clean_dle_str_for_client.
913         * common-src/amxml.c: Fix parsing.
914         * common-src/amanda.h (match_no_newline): Prototype.
915         * common-src/match.c (match_no_newline): New function.
916
917 2008-09-30  Dustin J. Mitchell <dustin@zmanda.com>
918         * restore-src/restore.c: set data.flags for use by the changer_find
919           callback
920
921 2008-09-30  Dustin J. Mitchell <dustin@zmanda.com>
922         * perl/Amanda/MainLoop.swg: add call_later()
923         * installcheck/Amanda_MainLoop.pl: test it
924
925 2008-09-30  Dustin J. Mitchell <dustin@zmanda.com>
926         * device-src/rait-device.c: fix typos
927
928 2008-09-30  Dustin J. Mitchell <dustin@zmanda.com>
929         * common-src/semaphore.h: fix typo
930         * device-src/rait-device.c: add a private threadpool-like
931           implementation for old glibs, where GThreadPool is susceptible to
932           deadlock
933
934 2008-09-29  Dustin J. Mitchell <dustin@zmanda.com>
935         * device-src/device.c device-src/device.h device-src/null-device.c
936           device-src/property.c device-src/property.h device-src/rait-device.c
937           device-src/s3-device.c device-src/tape-aix.c device-src/tape-device.c
938           device-src/tape-device.h device-src/tape-ops.h device-src/tape-posix.c
939           device-src/tape-uware.c device-src/tape-xenix.c
940           device-src/vfs-device.c: add a 'configure' method to the Device API;
941           revamp device property handling to add source and surety and make
942           implementation easier
943         * device-src/rait-device.h device-src/rait-device.c: make RAIT device
944           calculate block sized based on child devices, if they were configured
945           explicitly.
946         * man/xml-source/amanda-devices.7.xml: note that common properties are
947           not implemented on all devices
948         * common-src/glib-util.c common-src/glib-util.h: add helpers for
949           case-insensitive hashes
950         * changer-src/scsi-changer-driver.c installcheck/Amanda_Device.pl
951           perl/Amanda/Device.swg restore-src/restore.c server-src/amcheck.c
952           server-src/amlabel.c server-src/amtape.c server-src/taper.c
953           server-src/taperscan.c: use new API
954
955 2008-09-29  Dustin J. Mitchell <dustin@zmanda.com>
956         * server-src/find.c: handle find_result->label == NULL
957         * perl/Amanda/DB/Catalog.pm: filter out bogus results with NULL label
958
959 2008-09-26  Dustin J. Mitchell <dustin@zmanda.com>
960         * perl/amglue/ghashtable.c: #include conffile.h, not conffile.c (!)
961
962 2008-09-26  Jean-Louis Martineau <martineau@zmanda.com>
963         * server-src/driver.c: Parse dumpsize from taper result.
964
965 2008-09-26  Jean-Louis Martineau <martineau@zmanda.com>
966         * client-src/selfcheck.c: Set qdevice on common_exit path.
967
968 2008-09-25  Dustin J. Mitchell <dustin@zmanda.com>
969         * common-src/fileheader.c: fix headers_are_equal
970
971 2008-09-25  Dustin J. Mitchell <dustin@zmanda.com>
972         * common-src/fileheader.c common-src/fileheader.h: allow blocksize=0
973         * device-src/device.c device-src/device.h: set blocksize in tape
974           header
975         * device-src/null-device.c device-src/s3-device.c
976           device-src/tape-device.c device-src/vfs-device.c: set blocksize
977           in headers when starting files
978         * device-src/rait-device.c: duplicate headers for child devices, since
979           they are no longer const
980         * server-src/dumper.c: set blocksize on holding-disk files to
981           DISK_BLOCK_BYTES
982
983 2008-09-25  Dustin J. Mitchell <dustin@zmanda.com>
984         * device-src/tape-device.c: mark device as non-appendable temporarily,
985           since file numbers are incorrect when appending
986         * installcheck/Amanda_Device.pl: handle non-appendable devices
987
988 2008-09-24  Jean-Louis Martineau <martineau@zmanda.com>
989         * server-src/driverio.c (dumper_cmd, chunker_cmd): Take new mesg
990           argument.
991         * server-src/server_util.h (dumper_cmd, chunker_cmd): New prototype.
992         * server-src/chunker.c: Get mesg from ABORT cmd and log it.
993         * server-src/driver.c: Add the mesg argument to all dumper_cmd and
994                                chunker_cmd.
995
996 2008-09-24  Jean-Louis Martineau <martineau@zmanda.com>
997         * server-src/planner.c: Set degr_mesg and send it to driver.
998         * server-src/driverio.h (sched_t): Add degr_mesg field.
999         * server-src/driver.c: Parse message if no degraded estimate.
1000
1001 2008-09-23  Dustin J. Mitchell <dustin@zmanda.com>
1002         * common-src/conffile.c common-src/conffile.h: store a struct
1003           containing both filename and line number for each parameter, and use
1004           it when reporting errors and warnings
1005
1006 2008-09-23  Dustin J. Mitchell <dustin@zmanda.com>
1007         * device-src/device.c: make 'unimplemented method' an assertion
1008
1009 2008-09-23  Dustin J. Mitchell <dustin@zmanda.com>
1010         * device-src/s3.c: use max_keys, instead of maximum body size (which
1011           doesn't work) to limit the number of keys listed
1012
1013 2008-09-22  Jean-Louis Martineau <martineau@zmanda.com>
1014         * common-src/fileheader.c (fh_init): Set default type to F_EMPTY.
1015         * changer-src/chg-zd-mtx.sh: Allow to remove barcode from barcode file.
1016         * server-src/taperscan.c: Check type != F_EMPTY.
1017         * server-src/taper.c: Call changer_label().
1018         * server-src/amlabel.c: iCheck type != F_EMPTY. Call changer_label().
1019
1020 2008-09-22  Jean-Louis Martineau <martineau@zmanda.com>
1021         * device-src/device.c: Don't g_value_unset a bzero value.
1022
1023 2008-09-22  Jean-Louis Martineau <martineau@zmanda.com>
1024         * server-src/driver.c: Set result_argv=NULL, Fix typo.
1025
1026 2008-09-22  Dustin J. Mitchell <dustin@zmanda.com>
1027         * config/amanda/ps.m4: give up on runtime detection and just special-
1028           case the 'ps' arguments for various systems
1029         * perl/Amanda/Constants.pm.in: add $PS
1030         * perl/Amanda/Process.pm: use $PS
1031
1032 2008-09-19  Jean-Louis Martineau <martineau@zmanda.com>
1033         * server-src/reporter.c (addline): Done it constant time.
1034
1035 2008-09-19  Dustin J. Mitchell <dustin@zmanda.com>
1036         * common-src/Makefile.am common-src/quoting-test.c: new tests
1037         * common-src/token.c common-src/token.h: removed
1038         * common-src/util.c common-src/util.h: new home for quoting functions
1039         * configure.in: don't check for shquote
1040         * man/xml-source/amanda.conf.5.xml: info on quoting
1041         * perl/Amanda/Config/Server.pm: note about incompatibility
1042         * server-src/amcheck.c server-src/amindexd.c server-src/chunker.c
1043           server-src/driver.c server-src/driverio.c server-src/driverio.h
1044           server-src/dumper.c server-src/infofile.c server-src/server_util.c
1045           server-src/server_util.h server-src/taper-file-source.c
1046           server-src/taper-port-source.c server-src/taper.c: use new/updated
1047           quoting functions
1048
1049 2008-09-19  Nick Smith <nick.smith@techop.ch>
1050         * example/amanda.conf.in: fix incorrect execute_on examples
1051
1052 2008-09-18  Jean-Louis Martineau <martineau@zmanda.com>
1053         * server-src/dumper.c: Call security_close_connection before
1054                                checking if pkt == NULL.
1055
1056 2008-09-18  Jean-Louis Martineau <martineau@zmanda.com>
1057         Patch by Nick Smith
1058         * server-src/diskfile.c: Fix vstrextend use, Patch by Nick Smith.
1059         * server-src/diskfile.c: Init xml_app.result to stralloc("").
1060
1061 2008-09-16 Dan Locks <dwlocks@zmanda.com>
1062         * packaging/rpm/amanda.spec:  Added detection of CentOS 4 and 5 as 
1063           suggested by dswartz.  added graceful failure when Distro/version is 
1064           not detected correctly
1065
1066 2008-09-15  Dustin J. Mitchell <dustin@zmanda.com>
1067         * common-src/conffile.c: uninit apps, pp_scripts, and device_configs
1068
1069 2008-09-14  Dustin J. Mitchell <dustin@zmanda.com>
1070         * server-src/tapefile.c server-src/tapefile.h: add comments to
1071           tapelist
1072         * perl/Amanda/Tapelist.swg: perl tapelist parser, too
1073         * installcheck/Amanda_Tapelist.pl: tests
1074         * man/xml-source/tapelist.5.xml: docs
1075         * server-src/amlabel.c: no initial comments when labeling
1076         * server-src/taper.c: maintain comment when relabeling
1077
1078 2008-09-12  Jean-Louis Martineau <martineau@zmanda.com>
1079         * amandad-src/amandad.c: Fix typo: authetication -> authentication.
1080
1081 2008-09-05  Dustin J. Mitchell <dustin@zmanda.com>
1082         * man/xml-source/amanda.conf.5.xml: fix inequalities; thanks to
1083           Mike McConnell for spotting these
1084
1085 2008-09-05  Dustin J. Mitchell <dustin@zmanda.com>
1086         * server-src/taper.c: improve handling of device errors in taper
1087
1088 2008-09-02  Jean-Louis Martineau <martineau@zmanda.com>
1089         * restore-src/amrestore.c: Load a default server config.
1090
1091 2008-08-29  Dustin J. Mitchell <dustin@zmanda.com>
1092         * autogen: revert glib's configure-time requirement for
1093           pkg-config-0.16
1094
1095 2008-08-28  Dustin J. Mitchell <dustin@zmanda.com>
1096         * device-src/tape-device.c: use the correct blocksize while reading
1097         * device-src/rait-device.c: fix typo
1098         * installcheck/Amanda_Device.pl: use the VFS device in RAIT tests, not
1099           the tape device
1100
1101 2008-08-28  Jean-Louis Martineau <martineau@zmanda.com>
1102         * server-src/dumper.c: Reset the MESG buffer for a new dump.
1103
1104 2008-08-27  Dustin J. Mitchell <dustin@zmanda.com>
1105         * server-src/amcheck.c: make the check for tapelist result in a NOTE,
1106           not a failure
1107         * server-src/tapefile.c: make a missing tapelist equivalent to an
1108           empty one
1109
1110 2008-08-27  Dustin J. Mitchell <dustin@zmanda.com>
1111         * config/amanda/types.m4: always include sys/types.h, if it exists,
1112           before trying other headers (fixes builds of FreeBSD-4.x); thanks
1113           to John Hein <jhein@timing.com>
1114         * perl/Amanda/MainLoop.swg server-src/driverio.h: include amanda.h
1115           before event.h
1116
1117 2008-08-22  Dustin J. Mitchell <dustin@zmanda.com>
1118         * perl/amglue/bigint.c: add #include "stdint.h"
1119
1120 2008-08-22  Dustin J. Mitchell <dustin@zmanda.com>
1121         * config/amanda/ps.m4: search multiple ps invocations; thanks
1122           to John Hein <jhein@timing.com>
1123
1124 2008-08-22  Jean-Louis Martineau <martineau@zmanda.com>
1125         * server-src/amadmin.ci (tape): Correctly print next tape to use.
1126         * server-src/tapefile.c (print_new_tapes): New function to print new
1127                                                    tapes.
1128         * server-src/tapefile.h (print_new_tapes): Prototype.
1129         * server-src/reporter.c: Correctly print next tape to use.
1130
1131 2008-08-22  Dustin J. Mitchell <dustin@zmanda.com>
1132         * common-src/conffile.c common-src/conffile.h perl/Amanda/Config.swg:
1133           add new 'define device' config section
1134         * perl/Makefile.am perl/Amanda/Config/Server.pm
1135           perl/Amanda/Config/Server/Devices.pm
1136           perl/Amanda/Config/Server/Grammar: ditto
1137         * device-src/device.c device-src/device.h: configure devices from
1138           device definitions, with better error handling
1139         * device-src/rait-device.c: handle child devices better
1140         * installcheck/Amanda_Config.pl installcheck/Amanda_Config_Server.pl
1141           installcheck/Amanda_Xfer.pl installcheck/Installcheck/Config.pm
1142           installcheck/amgetconf.pl: new tests, modifications to work with the
1143           new system
1144         * man/xml-source/amanda-devices.7.xml
1145           man/xml-source/amanda.conf.5.xml: corresponding documentation updates
1146         * perl/Amanda/Changer.pm perl/Amanda/Device.swg
1147           restore-src/amrestore.c restore-src/restore.c server-src/amcheck.c
1148           server-src/amcheckdump.pl server-src/amdevcheck.pl
1149           server-src/amlabel.c server-src/amtape.c server-src/taper.c
1150           server-src/taperscan.c: remove calls to
1151           set_startup_properties_from_config
1152         * device-src/vfs-test.c: load config before trying to use a device
1153         * common-src/conffile.c: fix use of uninitialized variable
1154
1155 2008-08-22  Dustin J. Mitchell <dustin@zmanda.com>
1156         * changer-src/chg-disk.sh: replace == with =
1157         * changer-src/chg-lib.sh.in: fix sed invocation for BSD's sed
1158
1159 2008-08-22  Jean-Louis Martineau <martineau@zmanda.com>
1160         * server-src/reporter.c: Fix computation of compression ratio.
1161
1162 2008-08-22  Jean-Louis Martineau <martineau@zmanda.com>
1163         * client-src/sendbackup.h: Add DMP_IGNORE and AM_IGNORE_RE.
1164         * application-src/amgtar.c, application-src/amgtar_perl.pl:
1165           Ignore "Directory is new" and "Directory has been renamed".
1166
1167 2008-08-21  Jean-Louis Martineau <martineau@zmanda.com>
1168         * common-src/krb5-security.c: Fix security_seterror use.
1169
1170 2008-08-19  Dustin J. Mitchell <dustin@zmanda.com>
1171         * configure.in: check for getgrgid_r and getpwuid_r
1172         * common-src/security-util.c: conditionalize on checks
1173
1174 2008-08-18  Dustin J. Mitchell <dustin@zmanda.com>
1175         * common-src/version.h: remove #include of config.h
1176         * device-src/vfs-device.c: #include amanda.h first
1177
1178 2008-08-18  Dustin J. Mitchell <dustin@zmanda.com>
1179         * device-src/Makefile.am device-src/amtapetype.pl: new perl amtapetype
1180         * installcheck/Installcheck/Run.pm: report exit status
1181         * installcheck/Makefile.am installcheck/amtapetype.pl: new test
1182         * man/xml-source/amtapetype.8.xml: updated manpage
1183         * device-src/s3-device.c device-src/vfs-device.c
1184           device-src/tape-device.c: add compression property
1185         * perl/Amanda/Xfer.swg: add POD for the cancel() method
1186         * xfer-src/dest-device.c: add a default for max_memory
1187
1188 2008-08-18  Dustin J. Mitchell <dustin@zmanda.com>
1189         * common-src/conffile.c: make find_multiplier case-insensitive
1190         * device-src/device.c: reorder assertions
1191         * device-src/tape-device.c: don't set access_mode twice, but
1192           set in_file = FALSE in start
1193         * device-src/s3-device.c: fix property registration
1194         * perl/Amanda/MainLoop.swg: remove attach() from example
1195         * perl/Amanda/Xfer.swg: more detail in POD
1196         * xfer-src/source-pattern.c: operate byte-for-byte, like the random
1197           source, instead of using lots of memcpys and reallocs
1198         * xfer-src/source-random.c: remove redundant check
1199
1200 2008-08-18  Dustin J. Mitchell <dustin@zmanda.com>
1201         * configure.in Makefile.am tape-src/*: remove tape-src
1202         * changer-src/Makefile.am: don't link with libamtape
1203         * changer-src/chg-scsi.c: don't use libamtape
1204         * changer-src/scsi-changer-driver.c: don't use libamtape
1205         * config/amanda/tape.m4: fix comment
1206         * example/amanda.conf.in example/template.d/tapetypes: fix outdated
1207           comments
1208         * man/Makefile.am man/xml-source/amdd.8.xml man/xml-source/ammt.8.xml:
1209           remove amdd and ammt manpages
1210         * restore-src/Makefile.am: remove refs to tape-src/
1211         * server-src/Makefile.am: remove refs to tape-src/
1212
1213 2008-08-18  Dustin J. Mitchell <dustin@zmanda.com>
1214         * common-src/krb4-security.c common-src/krb5-security.c
1215           config/amanda/tape.m4 common-src/amanda.h: remove
1216           --with-maxtapeblocksize
1217         * common-src/conffile.c: deprecate file-pad
1218         * device-src/device-queueing.c device-src/device-queueing.h
1219           device-src/device.c device-src/device.h device-src/null-device.c
1220           device-src/property.c device-src/property.h device-src/rait-device.c
1221           device-src/s3-device.c device-src/tape-device.c
1222           device-src/tape-device.h device-src/vfs-device.c server-src/amcheck.c
1223           server-src/taper.c tape-src/tapeio.c xfer-src/dest-device.c
1224           xfer-src/source-device.c perl/Amanda/Device.swg: devices have
1225           {min,max,current} block sizes; remove the short_block parameter from
1226           device_write_block; fix property initialization; rename
1227           PROPERTY_MEDIUM_TYPE to PROPERTY_MEDIUM_ACCESS_TYPE
1228         * device-src/rait-device.c: set child block sizes explicitly
1229         * installcheck/Amanda_Device.pl: tests; better S3 test count
1230           calculations
1231         * installcheck/Amanda_Xfer.pl: tests
1232         * man/xml-source/amanda-devices.7.xml: update block sizes
1233           documentation
1234         * man/xml-source/amanda.conf.5.xml: refer to block size properties
1235         * restore-src/amrestore.c: use set_restore_device_read_buffer_size
1236         * restore-src/restore.h restore-src/restore.c: add
1237           set_restore_device_read_buffer_size
1238
1239 2008-08-16  Dustin J. Mitchell <dustin@zmanda.com>
1240         * server-src/driver.c: handle taper_{input,tape}_error memory
1241           correctly, and add taper_tape_error to the trace log
1242
1243 2008-08-16  Dustin J. Mitchell <dustin@zmanda.com>
1244         * application-src/amzfs-snapshot.pl application-src/script-email.pl:
1245           remove unnecessary 'use Amanda::Device'
1246
1247 2008-08-16  Dustin J. Mitchell <dustin@zmanda.com>
1248         * common-src/amgetconf.pl: use filename-safe characters for $appname
1249         * installcheck/amgetconf.pl: test it
1250
1251 2008-08-16  Dustin J. Mitchell <dustin@zmanda.com>
1252         * man/entities/global.entities: add manpage refs
1253         * packaging/rpm/amanda_enterprise.spec
1254           packaging/rpm/amanda_enterprise_client.spec
1255           man/xml-source/disklist.5.xml man/xml-source/tapelist.5.xml
1256           man/Makefile.am: add disklist(5), tapelist(5)
1257         * man/xml-source/amaddclient.8.xml man/xml-source/amadmin.8.xml
1258           man/xml-source/amanda-client.conf.5.xml man/xml-source/amanda.8.xml
1259           man/xml-source/amanda.conf.5.xml man/xml-source/amcheck.8.xml
1260           man/xml-source/amcheckdb.8.xml man/xml-source/amdevcheck.8.xml
1261           man/xml-source/amflush.8.xml man/xml-source/amlabel.8.xml
1262           man/xml-source/amrecover.8.xml man/xml-source/amrmtape.8.xml:
1263           - remove references to "output drivers" in favor of "device drivers"
1264           - add more inter-page references
1265           - fix typos
1266           - add client_login to amanda-client.conf(5)
1267           - reformat informaltables, which don't render well in HTML or nroff,
1268             into variablelists, with fixes for bad xml->man conversion
1269           - fix funky replacement entities in HTML output
1270         * perl/Amanda/DB/Catalog.pm: mention $dump->{kb} and ->{sec}
1271         * perl/Amanda/Device.swg: fix typo
1272         * perl/Amanda/MainLoop.swg: add hints for writing async functions
1273         * perl/Amanda/Types.swg: fix bad POD
1274         * perl/Amanda/Util.swg: POD fix: use $CONTEXT_* rather than strings
1275         * perl/Amanda/Xfer.swg: tweaks
1276         * server-src/taper.c: fix typo
1277         * server-src/taperscan.c: remove "(previously non-amanda)", as Amanda
1278           will no longer overwrite such tapes
1279
1280 2008-08-16  Dustin J. Mitchell <dustin@zmanda.com>
1281         * common-src/debug.c: lock debug logging on a per-line basis
1282
1283 2008-08-16  Dustin J. Mitchell <dustin@zmanda.com>
1284         * device-src/rait-device.c: parse RAIT names with internal {..}
1285         * installcheck/Amanda_Device.pl: light testing
1286
1287 2008-08-15  Dustin J. Mitchell <dustin@zmanda.com>
1288         * common-src/debug.c: include backtraces on fatal errors
1289         * config/amanda/debugging.m4: look for glibc's backtrace support
1290         * configure.in: ditto
1291
1292 2008-08-14  Dustin J. Mitchell <dustin@zmanda.com>
1293         * device-src/tape-aix.c device-src/tape-ops.h device-src/tape-uware.c
1294           device-src/tape-xenix.c: bring non-POSIX tape-ops implementations up
1295           to date with function signatures
1296
1297 2008-08-14  Dustin J. Mitchell <dustin@zmanda.com>,
1298             Nikolas Coukouma <atrus@zmanda.com>
1299         * xfer-src/*: add support for asynchronous cancellation of transfers
1300           and use it for error-handling
1301         * perl/Amanda/Xfer.swg: reflect into perl
1302         * installcheck/Amanda_Xfer.pl: test cancellation
1303
1304 2008-08-12  Dustin J. Mitchell <dustin@zmanda.com>
1305         * common-src/Makefile.am: clean up svn-info.h on maintainer-clean
1306         * man/Makefile.am: remove config.log after running config.status
1307
1308 2008-08-07 Nikolas Coukouma <atrus@zmanda.com>
1309         * common-src/conffile.c: cleaner fix for signed compared to unsigned
1310           errors on older versions of GCC.
1311
1312 2008-08-06  Dustin J. Mitchell <dustin@zmanda.com>
1313         * common-src/Makefile.am: second fix
1314
1315 2008-08-06  Dustin J. Mitchell <dustin@zmanda.com>
1316         * common-src/Makefile.am: don't syntax-check amgetconf, since
1317           it uses Amanda::* modules
1318
1319 2008-08-06 Nikolas Coukouma <atrus@zmanda.com>
1320         * server-src/amgetconf.pl, common-src/amgetconf.pl:
1321           Add --execute-where=client|server and --client options
1322           to make amgetconf query the client configuration
1323           instead. Move from server-src to common-src.
1324         * man/xml-source/amgetconf.8.xml: Document the new options.
1325         * installcheck/amgetconf.pl: Test the new options.
1326         * server-src/Makefile.am, common-src/Makefile.am:
1327           Updated Makefiles for move.
1328         * packaging/deb/amanda-enterprise-backup-client.install,
1329           packaging/sun-pkg/i386/client/prototype:
1330           Add amgetconf to client packages.
1331
1332 2008-08-04 Dan Locks <dwlocks@zmanda.com>
1333         * packaging/rpm/amanda.spec:  add %{tarver} macro and set the correct
1334           minimum version per distro (Thanks to Jesse Angell for the rhel4 tip)
1335
1336 2008-08-04  Dustin J. Mitchell <dustin@zmanda.com>
1337         * common-src/conffile.c: workaround gcc<4.1.0 problems with long
1338           constants, don't use G_MAXINT64 in precompiler expressions
1339
1340 2008-08-03  Dustin J. Mitchell <dustin@zmanda.com>
1341         * server-src/amrmtape.sh: use shell redirection with shell functions
1342
1343 2008-08-03  Dustin J. Mitchell <dustin@zmanda.com>
1344         * common-src/util.c: if !WORKING_IPV6, request AF_INET, not AF_NATIVE
1345         * common-src/dgram.c: address family debugging
1346         * common-src/stream.c: address family debugging
1347
1348 2008-08-03  Dustin J. Mitchell <dustin@zmanda.com>
1349         * common-src/amanda.h common-src/conffile.c common-src/conffile.h
1350           installcheck/Amanda_Config.pl perl/Amanda/Config.swg
1351           server-src/planner.c: replace am64 type with gint64; also replace
1352           some uses of off_t
1353
1354 2008-08-01 Nikolas Coukouma <atrus@zmanda.com>
1355         * perl/Amanda/BigIntCompat.pm: Add a module to make 'Math::BigInt's
1356           stringify consistently (no '+' prefixing positive numbers).
1357         * perl/Makefile.am: Add Amanda/BigIntCompat.pm for installation, etc.
1358         * installcheck/bigint.pl, perl/amglue/bigint.c:
1359           Use Amanda::BigIntCompat everywhere we use bigint.
1360
1361 2008-08-01 Nikolas Coukouma <atrus@zmanda.com>
1362         * common-src/match.c: Correct array index to be within bounds
1363
1364 2008-08-01 Nikolas Coukouma <atrus@zmanda.com>
1365         * config/amanda/flags.m4: Rename AMANDA_TEST_GCC_WARNING_FLAG to
1366           AMANDA_TEST_GCC_FLAG and use AMANDA_ENABLE_GCC_WARNING where
1367           appropriate. Add AMANDA_DISABLE_GCC_FEATURE. Disable strict-aliasing
1368           (which causes errors).
1369
1370 2008-07-30  Dustin J. Mitchell <dustin@zmanda.com>
1371         * installcheck/Amanda_Config.pl: add + to avoid perl-5.6.0 parsing bug
1372         * installcheck/amgetconf.pl: ditto
1373
1374 2008-07-29 Dan Locks <dwlocks@zmanda.com>
1375         * packaging/rpm/amanda.spec:  Merged fixes from enterprise .spec for
1376           parsing redhat-release for fedora versions correctly.
1377
1378 2007-07-28 Nikolas Coukouma <atrus@zmanda.com>
1379         * config/amanda/flags.m4: Add proper detection of flags for GCC 4.3+
1380
1381 2007-07-28 Nikolas Coukouma <atrus@zmanda.com>
1382         * device-src/s3.c: Calculate and send the MD5 hash when uploading data.
1383           Also check the returned ETag to make sure it matches the sent MD5 hash.
1384           Use simpler s3_base64_encode() instead of base64_encode().
1385           Correct the use of character classes in several regular expressions.
1386         * device-src/s3-util.h, device-src/s3-util.c: Add utility functions
1387           s3_base64_encode(), s3_hex_encode(), and s3_compute_md5_hash() as well
1388           as some constants. Move regexec_wrap() into this and rename it to
1389           s3_regexec_wrap().
1390         * device-src/Makefile.am: add s3-util.c and s3-util.h
1391
1392 2008-07-28  Dustin J. Mitchell <dustin@zmanda.com>
1393         * installcheck/Installcheck/Config.pm: don't set default tapetype
1394           unless not set explicitly.
1395         * installcheck/Amanda_Config.pl: test changes
1396         * man/xml-source/amanda-client.conf.5.xml
1397           man/xml-source/amanda.conf.5.xml: encourage, but don't require,
1398           quoted identifiers
1399
1400 2008-07-28  Dustin J. Mitchell <dustin@zmanda.com>
1401         * server-src/amserverconfig.pl: apply perltidy, factor some common
1402           code, and create the config dir and changer conf only after the check
1403           for mtx is performed
1404
1405 2008-07-28  Dustin J. Mitchell <dustin@zmanda.com>
1406         * device-src/tests/semaphore-test.c: move function call out of
1407           variable initialization
1408
1409 2008-07-25 Dan Locks <dwlocks@zmanda.com>
1410         * packaging/deb/control: added alternative dependency of libssl0.9.8 for
1411           Ubuntu 8.x builds.  Added build dependencies for debhelper, fakeroot,
1412           libcurl-dev, libssl-dev.  Updated server and client dependency for curl
1413           to libcurl3
1414
1415 2008-07-18 Dan Locks <dwlocks@zmanda.com>
1416         *  configure.in:  add format-security to gcc compile flags
1417         *  server-src/amindexd.c,
1418            server-src/dumper.c,
1419            server-src/reporter.c,
1420            restore-src/restore.c,
1421            common-src/security-util.c,
1422            common-src/bsd-security.c:  replacemented unquoted strings in
1423            function arguments with "%s", arg.  jrfranks's suggestion, dustin provided
1424            syntax for the fix.
1425
1426 2008-07-17 Dan Locks <dwlocks@zmanda.com>
1427         * packaging/debian/amanda-enterprise-backup-*.install: added entries for
1428           applications and devices man pages.
1429           
1430 2008-07-17  Jean-Louis Martineau <martineau@zmanda.com>
1431         * man/Makefile.am: Add amzfs-snapshot.8
1432         * man/xml-source/amzfs-snapshot.8.xml: New man page.
1433         * man/xml-source/amanda.8.xml: Add amzfs-snapshot.8
1434         * man/xml-source/amanda-scripts.7.xml: Add amzfs-snapshot.8
1435         * application-src/amzfs-snapshot.pl: New script
1436         * application-src/Makefile.am: Add amzfs-snapshot
1437         * perl/Amanda/Util.swg: Add sanitise_filename.
1438
1439 2008-07-17  Jean-Louis Martineau <martineau@zmanda.com>
1440         * amandad-src/amandad.c: amandad must be run by root for krb5 auth.
1441
1442 2008-07-16  Jean-Louis Martineau <martineau@zmanda.com>
1443         * server-src/driver.c: Improve message in failure to dump in degraded
1444                                mode.
1445
1446 2008-07-16 Dan Locks <dwlocks@zmanda.com>
1447         * packaging/deb/control,
1448           packaging/rpm/amanda.spec: added explicit dependency on openssl, and a 
1449           build dependency for openssl and curl development files.
1450
1451 2008-07-15  Dustin J. Mitchell <dustin@zmanda.com>
1452         * example/xinetd.amandaserver.in example/xinetd.amandaclient.in:
1453           specifying both IPv{4,6} does not work; remove IPv4
1454
1455 2008-07-15  Jean-Louis Martineau <martineau@zmanda.com>
1456         * man/Makefile.am: Add new man pages.
1457         * man/xml-source/script-email.8.xml: New man page.
1458         * man/xml-source/amanda.8.xml: List new man pages.
1459         * man/xml-source/amanda-scripts.7.xml: New man page.
1460
1461 2008-07-15  Dustin J. Mitchell <dustin@zmanda.com>
1462         * configure.in: generate (x)inetd files
1463         * example/inetd.conf.amandaclient.in example/xinetd.amandaclient.in
1464           example/xinetd.amandaserver.in: give appropriate path for amandad,
1465           from configure (fixes builds on 64-bit machines)
1466 2008-07-15  Dustin J. Mitchell <dustin@zmanda.com>
1467         * client-src/client_util.c: #include "glib-util.h"
1468         * common-src/glib-util.c: New g_ptr_array_foreach fucntion.
1469         * common-src/glib-util.h: Prototype of g_ptr_array_foreach.
1470         * device-src/rait-device.c: Remove g_ptr_array_foreach.
1471
1472 2008-07-15  Jean-Louis Martineau <martineau@zmanda.com>
1473         * client-src/client_util.c: Read stdout of scripts.
1474         * client-src/client_util.h: New prototype for run_client_scripts,
1475                                     New client_script_result_t struct.
1476         * client-src/sendbackup.c: Send scripts properties to application.
1477         * client-src/sendsize.c: Send scripts properties to application.
1478         * client-src/selfcheck.c: Send scripts properties to application.
1479         * recover-src/extract_list.c: Send scripts properties to application.
1480         * common-src/amxml.h (script_t) Add field to keep result of script.
1481         * common-src/amxml.c: Set script->result to NULL.
1482
1483 2008-07-14 Dan Locks <dwlocks@zmanda.com>
1484         * packaging/rpm/amanda.spec: fix macro detection of fedora version
1485
1486 2008-07-14 Dan Locks <dwlocks@zmanda.com>
1487         * packaging/rpm/amanda.spec: fix distribution detection, add
1488         activate-devpay to server files list
1489
1490 2008-07-11  Dustin J. Mitchell <dustin@zmanda.com>
1491         * installcheck/Amanda_Changer.pl: set up and parse a config, now that
1492           Amanda::Changer needs one
1493
1494 2008-07-11  Dustin J. Mitchell <dustin@zmanda.com>
1495         * perl/Amanda/Changer.pm: set device properties when testing device
1496           labels in the changer
1497
1498 2008-07-11  Jean-Louis Martineau <martineau@zmanda.com>
1499         * application-src/amgtar.c: Add a DIRECTORY property.
1500         * man/xml-source/amgtar.8.xml: Document DIRECTORY property.
1501
1502 2008-07-11  Dustin J. Mitchell <dustin@zmanda.com>
1503         * changer-src/chg-lib.sh.in: remove bogus Log() invocations
1504
1505 2008-07-11  Dustin J. Mitchell <dustin@zmanda.com>
1506         * man/xml-source/amanda.8.xml: fix amanda(8) formatting and add links
1507           to new manpages
1508
1509 2008-07-11  Dustin J. Mitchell <dustin@zmanda.com>
1510         * installcheck/Amanda_Device.pl: be more liberal in the flags that are
1511           accepted from S3's read_label; this will reduce false failures
1512
1513 2008-07-11  Jean-Louis Martineau <martineau@zmanda.com>
1514         * client-src/client_util.c: Remove unused output_tool_property function.
1515         * client-src/client_util.h: Remove output_tool_property prototype.
1516         * man/xml-source/amanda-client.conf.5.xml: Add application and script
1517                                                    sections.
1518         * man/xml-source/amanda.conf.5.xml: Improve application and script
1519                                             sections.
1520         * device-src/device.c: Fix for new property_t.
1521         * server-src/diskfile.h: Change prototype for xml_application and
1522                                  xml_scripts.
1523         * server-src/diskfile.c: Add <priority> tag if client support it.
1524         * server-src/amindexd.c: Fix call to xml_application.
1525         * server-src/amcheck.c: Fix call to xml_application.
1526         * server-src/planner.c: Fix call to xml_application.
1527         * server-src/driverio.c: Fix call to xml_application.
1528         * server-src/server_util.c: Remove code to write property to stdin of
1529                                     script.
1530         * perl/Amanda/Config.swg: Fix for new property_t.
1531         * perl/amglue/amglue.h: Prototype for g_hash_table_to_hashref_property.
1532         * perl/amglue/ghashtable.c: New g_hash_table_to_hashref_property
1533                                     function.
1534         * installcheck/Amanda_Config.pl: Fix for new property_t.
1535         * common-src/util.c: Remove unused output_tool_proplist fucntion,
1536                              Fix for new property_t.
1537         * common-src/util.h: Remove output_tool_proplist prototype.
1538         * common-src/amxml.c:Fix for new property_t, parse priority of property.
1539         * common-src/conffile.c: Parse priority of a property,
1540                           Add application and script to amanda-client.conf.
1541         * common-src/conffile.h: New property_t struct.
1542         * common-src/amfeatures.h: New fe_xml_property_priority amfeature.
1543         * common-src/amfeatures.c: New fe_xml_property_priority amfeature.
1544
1545 2008-07-11  Jean-Louis Martineau <martineau@zmanda.com>
1546         * man/entities/global.entities: Add ENTITY email.jlm.
1547         * man/Makefile.am (CLIENT_MAN_PAGES): Set to amanda-applications.7,
1548           amgtar.8 and amstar.8.
1549         * man/xml-source/amanda.conf.5.xml: Fix </programlisting>, it must be
1550                                             at the begining of a line.
1551         * man/xml-source/amanda-applications.7.xml: New page.
1552         * man/xml-source/amgtar.8.xml: New page.
1553         * man/xml-source/amstar.8.xml: New page.
1554
1555 2008-07-09  Ian Turner <ian@zmanda.com>
1556         * device-src/device.h: Clarify documentation of device_read_label().
1557         * device-src/s3-device.c, device-src/tape-device.c,
1558           device-src/vfs-device.c (device_read_label): Always clear volume
1559           labels, even if device is in error.
1560         * device-src/rait-device.c: Ditto; also properly handle properties
1561           that change device labels.
1562
1563 2007-07-09 Nikolas Coukouma <nikolas@zmanda.com>
1564         * man/xml-source/amanda-devices.7.xml: Document the S3_BUCKET_LOCATION
1565           property (for setting location constraints).
1566
1567 2008-07-08  Dustin J. Mitchell <dustin@zmanda.com>
1568         * device-src/vfs-device.c device-src/tape-device.c: do not autofinish
1569           when EOF occurs on writing
1570
1571 2008-07-08  Dustin J. Mitchell <dustin@zmanda.com>, 
1572             Nikolas Coukouma <nikolas@zmanda.com>,
1573             Ian Turner <ian@zmanda.com>,
1574             Jean-Louis Martineau <martineau@zmanda.com>
1575         Amanda has been analyzed with Klocwork source code analysis, the most
1576         accurate and comprehensive tool for finding critical programming
1577         errors and security vulnerabilities.
1578         * amandad-src/amandad.c changer-src/chg-scsi.c
1579           client-src/client_util.c client-src/selfcheck.c
1580           client-src/sendbackup.c client-src/sendsize.c common-src/amfeatures.c
1581           common-src/bsd-security.c common-src/fileheader.c
1582           common-src/local-security.c common-src/queueing.c
1583           common-src/security-util.c device-src/property.c
1584           device-src/rait-device.c device-src/tape-device.c
1585           device-src/vfs-device.c recover-src/set_commands.c
1586           restore-src/amidxtaped.c restore-src/amrestore.c restore-src/restore.c
1587           server-src/amadmin.c server-src/amcheck.c server-src/amindexd.c
1588           server-src/changer.c server-src/chunker.c server-src/cmdline.c
1589           server-src/driver.c server-src/holding.c server-src/logfile.c
1590           server-src/reporter.c server-src/server_util.c
1591           server-src/taper-file-source.c: fix many issues identified
1592           by Klockwork, ranging in severity from stylistic to minor.
1593            - many memory leaks in error paths and application shutdown
1594            - better handling of incorrect commandline arguments
1595            - better resource management (file descriptors, etc.)
1596
1597 2008-07-07 Nikolas Coukouma <nikolas@zmanda.com>
1598         * device-src/Makefile.am: conditionalize activate-devpay on
1599           WANT_S3_DEVICE
1600
1601 2007-07-06 Nikolas Coukouma <nikolas@zmanda.com>
1602         * device-src/s3-device.c, device-src/s3.c, device-src/s3.h,
1603           device-src/activate-devpay.c, device-src/Makefile.am:
1604           Allow both regular S3 and S3-with-DevPay to be used in
1605           the same installation. Remove WANT_DEVPAY macro.
1606         * device-src/s3-device.c: Added a flag, is_devpay, to the device
1607           and handled divergent cases. Removed useless device_error_set calls.
1608         * device-src/s3.c: Use DevPay authentication iff user_token is set.
1609           Replaced some if statements about non-NULL pointers with assertions.
1610         * config/amanda/s3-device.m4, device-src/Makefile.am:
1611           remove devpay flag and WANT_DEVPAY definition.
1612         * installcheck/Amanda_Device.pl: add tests for DevPay, refactor
1613           other S3 tests.
1614
1615 2007-07-06 Nikolas Coukouma <nikolas@zmanda.com>
1616         * device-src/s3.c: wait for bucket to appear after creation, treat
1617           missing bucket as temporary error, increase retries from 5 to 14
1618           (about 3min), explicitly handle HTTP verbs as libcurl expects.
1619         * installcheck/Amanda_Device.pl: remove (now-irrelvant) note about
1620           buckets taking too long to appear.
1621
1622 2008-07-06 Dan Locks <dwlocks@zmanda.com>
1623         * packaging/deb/amanda-backup-server.postrm
1624           packaging/deb/amanda-backup-client.postrm: removed unused
1625           code
1626         * packaging/deb/postrm: fixed typo in deluser command
1627         * packaging/deb/rules: added specific preinst and postrm scripts for
1628           client and server.
1629
1630 2008-07-03  Dustin J. Mitchell <dustin@zmanda.com>
1631         * man/Makefile.am man/amanda.css man/index.php man/xslt/html.xsl.in:
1632           new files for HTML output
1633         * man/xslt/man.xsl.in: substitute XSLT_VERS
1634         * man/xml-source/amanda-devices.7.xml: tweaks
1635         * man/xml-source/amanda.8.xml: tweaks
1636         * man/xml-source/amanda.conf.5.xml: tweaks
1637         * man/xml-source/amgetconf.8.xml: tweaks
1638         * man/xml-source/amtoc.8.xml: tweaks
1639
1640 2008-07-03  Dustin J. Mitchell <dustin@zmanda.com>
1641         * common-src/genversion.c: correctly represent available amflock
1642           implementations
1643
1644 2008-07-03  Jean-Louis Martineau <martineau@zmanda.com>
1645         * perl/Amanda/Xfer.swg: #include "glib-util.h"
1646
1647 2008-07-02  Dustin J. Mitchell <dustin@zmanda.com>
1648         * device-src/rait-device.c: don't use self->device_name in open_device
1649
1650 2008-07-02  Dustin J. Mitchell <dustin@zmanda.com>
1651         * installcheck/amgetconf.pl: supply a plugin for scripts
1652
1653 2008-07-02  Jean-Louis Martineau <martineau@zmanda.com>
1654         * server-src/diskfile.c: Check an application is set if
1655                                  program == "APPLICATION".
1656         * common-src/amxml.c: Check plugin is set for application and script.
1657         * common-src/conffile.c: Check plugin is set for application and script
1658
1659 2008-07-02  Jean-Louis Martineau <martineau@zmanda.com>
1660         * server-src/amstatus.pl: Fix printing of config path on error.
1661
1662 2008-07-02  Dustin J. Mitchell <dustin@zmanda.com>
1663         * installcheck/Amanda_Device.pl: test that start(READ) without first
1664           reading the label doesn't cause errors 
1665         * device-src/s3-device.c: call s3_device_read_label directly
1666
1667 2008-07-02  Ian Turner <ian@zmanda.com>
1668         * man/xml-source/amanda.8.xml: Document how to override device
1669           properties.
1670
1671 2008-07-02  Ian Turner <ian@zmanda.com>
1672         Dustin J. Mitchell <dustin@zmanda.com> contributed code and thoughts
1673         to this patch.
1674         * man/xml-source/amanda-devices.7.xml: Document new ERROR flag
1675           to start RAIT device in degraded mode.
1676         * device/device.c: Be a little more forgiving of NULL devices.
1677         * device-src/vfs-device.c: Fix a bug where vfs_device_start()
1678           would sometimes throw an erroneous assertion.
1679         * device-src/rait-device.c: Be much more robust in error handling;
1680           new feature to start a RAIT device in degraded mode.
1681         * installcheck/Amanda_Device.pl: Enable more RAIT device tests.
1682
1683 2008-07-02  Dustin J. Mitchell <dustin@zmanda.com>
1684         * common-src/amanda.h: remove unused #include <alloca.h>
1685
1686 2008-07-02  Dustin J. Mitchell <dustin@zmanda.com>
1687         * device-src/tape-device.c: add "user" and "good" to feature flags
1688         * man/xml-source/amanda-devices.7.xml: document it
1689
1690 2008-07-01  Dustin J. Mitchell <dustin@zmanda.com>
1691         * device-src/device.h: fix comments to reflect removal of
1692           autofinishing
1693         * device-src/tape-device.c: remove autofinishing
1694
1695 2008-07-01  Dustin J. Mitchell <dustin@zmanda.com>
1696         * changer-src/chg-lib.sh.in: also handle bare tape dev names
1697
1698 2008-07-01  Dustin J. Mitchell <dustin@zmanda.com>
1699         * changer-src/chg-lib.sh.in: fix tape_device_filename to not use perl
1700         * changer-src/chg-zd-mtx.sh: always use the unqualified hostname to
1701           open the debug file
1702
1703 2008-06-30  Dustin J. Mitchell <dustin@zmanda.com>
1704         * common-src/match.c: fix multiple bugs in match_datestamp
1705
1706 2008-06-29  Dustin J. Mitchell <dustin@zmanda.com>
1707         * perl/Amanda/Changer.pm perl/Amanda/Cmdline.swg
1708           perl/Amanda/Config.swg perl/Amanda/DB/Catalog.pm
1709           perl/Amanda/Device.swg perl/Amanda/Logfile.swg 
1710           perl/Amanda/Util.swg: POD cleanup
1711         * perl/Makefile.am: new files, rules to make HTML
1712         * perl/amperl.css: CSS file for online POD
1713         * perl/make_html.pl: make online POD
1714
1715 2008-06-29  Dustin J. Mitchell <dustin@zmanda.com>
1716         * installcheck/Makefile.am installcheck/amstatus.pl: new check
1717
1718 2008-06-27  Ian Turner <ian@zmanda.com>
1719         * server-src/taper.c: fix printing a NULL pointer in the error path
1720
1721 2008-06-27  Dustin J. Mitchell <dustin@zmanda.com>
1722         * device-src/device.c: check for and fail on multiple
1723           short writes to the same file
1724         * device-src/null-device.c device-src/rait-device.c
1725           device-src/s3-device.c device-src/tape-device.c
1726           device-src/vfs-device.c: do not autofinish files
1727         * installcheck/Amanda_Device.pl installcheck/Amanda_Xfer.pl: don't
1728           expect devices to autofinish anymore
1729         * server-src/taper.c xfer-src/dest-device.c: finish files explicitly
1730         * device-src/device-queueing.c: comments
1731         * xfer-src/xfer-element.h: comments
1732
1733 2008-06-27  Nikolas Coukouma <atrus@zmanda.com>
1734         * device-src/s3.c device-src/s3.h device-src/s3-device.c installcheck/Amanda_Device.pl:
1735           Add support for bucket location constraints
1736         * device-src/s3-device.c: Add S3_BUCKET_LOCATION device property
1737         * device-src/s3.c device-src/s3.h device-src/s3-device.c:
1738           Checks for libcurl and bucket name compatability with location constraints
1739         * device-src/s3.c: make s3_init() threadsafe,
1740           refactor regex compilation and calling,
1741           refactor perform_request() functions to construct URL later,
1742           use GString to tidy string generation
1743         * installcheck/Amanda_Device.pl: Add tests for location constraints
1744
1745 2008-06-27  Ian Turner <ian@zmanda.com>
1746         * device-src/rait-device.c: Fix a memory corruption issue on the last
1747           block of a file.
1748
1749 2008-06-27  Ian Turner <ian@zmanda.com>
1750         * device-src/rait-device.c: Fix a memory corruption issue on the last
1751           block of a file.
1752
1753 2008-06-27  Ian Turner <ian@zmanda.com>
1754         * device-src/rait-device.c: Track file numbers properly when child
1755           devices change them (that is, in rait_device_start_file() and
1756           rait_device_seek_file()).
1757         * installcheck/Amanda_Device.pl: Enable primary set of RAIT tests.
1758
1759 2008-06-27  Jean-Louis Martineau <martineau@zmanda.com>
1760         * device-src/s3-device.c (s3_device_read_label): Don't set
1761           volume_header if nothing is read.
1762
1763 2008-06-27  Jean-Louis Martineau <martineau@zmanda.com>
1764         * device-src/device.c: Don't log is flag is DEVICE_STATUS_SUCCESS.
1765
1766 2008-06-27  Dustin J. Mitchell <dustin@zmanda.com>
1767         * device-src/tape-posix.c: return DEVICE_ERROR|DEVICE_BUSY on EIO
1768         * changer-src/chg-lib.sh.in: keep waiting for a device if it *might*
1769           be busy or offline
1770
1771 2008-06-26  Jean-Louis Martineau <martineau@zmanda.com>
1772         * application-src/amstar.c: Use local start_time variable.
1773         * application-src/amgtar.c: Use local start_time variable.
1774         * common-src/clock.h: Remove times_zero and start_time extern.
1775         * common-src/clock.c: Remove times_zero.
1776
1777 2008-06-25  Jean-Louis Martineau <martineau@zmanda.com>
1778         * server-src/diskfile.c: Don't send encryption in xml req packet for
1779                                  server encryption.
1780
1781 2008-06-25  Dustin J. Mitchell <dustin@zmanda.com>
1782         * application-src/amgtar.c: revert --atime-preserve change
1783
1784 2008-06-22  Dustin J. Mitchell <dustin@zmanda.com>
1785         * application-src/amgtar.c: change --atime-preserve=system to
1786           --atime-preserve
1787
1788 2008-06-20  Dustin J. Mitchell <dustin@zmanda.com>
1789         * installcheck/amdump.pl: fix checks to refresh the test configuration
1790
1791 2008-06-20  Dustin J. Mitchell <dustin@zmanda.com>, Ian Turner <ian@zmanda.com>
1792         * server-src/amdump.sh: correctly handle error exits from planner
1793         * server-src/planner.c: fail if planning fails
1794         * installcheck/amdump.pl: test changes
1795
1796 2008-06-20 Dan Locks <dwlocks@zmanda.com>
1797         * packaging/rpm/amanda.spec: typo amanda-devices.7.gz
1798
1799 2008-06-20 Dan Locks <dwlocks@zmanda.com>
1800         * packaging/rpm/amanda.spec: added %{MANDIR}/man7/amanda-device.7.gz
1801
1802 2008-06-20  Jean-Louis Martineau <martineau@zmanda.com>
1803         * client-src/client_util.c: Call check_access() only
1804                                     if getuid() == geteuid().
1805         * application-src/amgtar.c: check_dir(argument->dle.device, R_OK)
1806
1807 2008-06-19  Jean-Louis Martineau <martineau@zmanda.com>
1808         * server-src/amcleanup.pl: Correctly rename amdump files.
1809
1810 2008-06-19  Dustin J. Mitchell <dustin@zmanda.com>, Ian Turner <ian@zmanda.com>
1811         * man/Makefile.am man/xml-source/amanda-devices.7.xml: new manpage
1812         * man/entities/global.entities: emails for dustin and ian
1813         * man/xml-source/amanda.8.xml: refer to new manpage
1814         * man/xml-source/amanda.conf.5.xml: refer to new manpage
1815         * man/xml-source/amrecover.8.xml: refer to new manpage
1816         * server-src/amcheck.c: fix message regarding WORM media
1817
1818 2008-06-19  Dustin J. Mitchell <dustin@zmanda.com>
1819         * server-src/amgetconf.pl: fail on bad parameters or subsections, but
1820           not empty values or subsection lists
1821         * perl/Amanda/Config.swg: publish a list of subsections
1822         * installcheck/amgetconf.pl: test it
1823
1824 2008-06-19  Dustin J. Mitchell <dustin@zmanda.com>
1825         * example/template.d/amanda-single-tape.conf.in
1826           example/template.d/amanda-harddisk.conf.in
1827           example/template.d/amanda-tape-changer.conf.in
1828           example/template.d/dumptypes example/template.d/amanda-S3.conf.in:
1829           use application amgtar instead of program GNUTAR
1830
1831 2008-06-19  Dustin J. Mitchell <dustin@zmanda.com>
1832         * config/amanda/net.m4: AC_SUBST port ranges; update comments
1833
1834 2008-06-19  Satya Ganga <gsat@zmanda.com>
1835         * example/template.d/amanda-single-tape.conf.in
1836           example/template.d/advanced.conf.in: update displayunit to "g" and
1837           remove chg-manual for single tape configurations.
1838
1839 2008-06-19  Ian Turner <ian@zmanda.com>
1840         * device-src/rait-device.c (rait_device_start): Check for consistent
1841           volume label on all child devices, fail with
1842           DEVICE_STATUS_DEVICE_ERROR otherwise.
1843         * installcheck/Amanda_Device.pl: Test for foregoing.
1844
1845 2008-06-19  Paddy Sreenivasan <paddy@zmanda.com>
1846         * device-src/s3.h: use "https://ls.amazonaws.com/" as STS endpoint
1847
1848 2008-06-19  Dustin J. Mitchell <dustin@zmanda.com>
1849         * installcheck/Makefile.am: remove test_utils from SCRIPTS_PERL
1850         * config/automake/scripts.am: explain why
1851
1852 2008-06-18  Jean-Louis Martineau <martineau@zmanda.com>
1853         * changer-src/chg-manual.sh: Make it interruptible.
1854
1855 2008-06-18  Jean-Louis Martineau <martineau@zmanda.com>
1856         * application-src/amgtar.c: Remove check for amandates file.
1857
1858 2008-06-18  Jean-Louis Martineau <martineau@zmanda.com>
1859         * common-src/amanda.h: Fix skip_quoted_string for "\\".
1860         * common-src/file.c: Fix debug_agets for "\\".
1861
1862 2008-06-18  Jean-Louis Martineau <martineau@zmanda.com>
1863         * server-src/amstatus.pl: Report size of PART taped on 'dump to tape'.
1864
1865 2008-06-18  Jean-Louis Martineau <martineau@zmanda.com>
1866         * client-src/sendsize.c: Report error from application to server.
1867         * application-src/amgtar.c: Report exit status of tar.
1868
1869 2008-06-16  Dustin J. Mitchell <dustin@zmanda.com>
1870         * perl/Amanda/Xfer.swg xfer-src/Makefile.am xfer-src/xfer-element.h
1871           xfer-src/dest-device.c xfer-src/source-device.c: new elements
1872           Amanda::Xfer:{Dest,Source}::Device
1873         * perl/Amanda/Xfer.swg: POD fix for Amanda::Xfer:Filter::Xor
1874         * installcheck/Amanda_Xfer.pl: tests for new elements
1875
1876 2008-06-16  Dustin J. Mitchell <dustin@zmanda.com>
1877         * installcheck/amservice.pl: add invocations of selfcheck for GNUTAR
1878           and amgtar
1879         * installcheck/amservice.pl: put -f switches first
1880
1881 2008-06-15  Dustin J. Mitchell <dustin@zmanda.com>
1882         * installcheck/Amanda_Config.pl: test config overwrites
1883         * common-src/conffile.c: don't segfault applying config overwrites
1884           after config_init(0, NULL)
1885
1886 2008-06-13  Jean-Louis Martineau <martineau@zmanda.com>
1887         * client-src/sendbackup.c: Run compression and encryption for
1888                                    application-api.
1889
1890 2008-06-13  Jean-Louis Martineau <martineau@zmanda.com>
1891         * perl/Amanda/Util.swg: Expose get_original_cwd.
1892         * application-src/amgtar_perl.pl, application-src/amoracle.pl:
1893           chdir(get_original_cwd()) before restore.
1894
1895 2008-06-13  Dustin J. Mitchell <dustin@zmanda.com>
1896         * device-src/property.c device-src/property.h: remove tape properties
1897         * device-src/tape-device.c device-src/tape-device.h: add tape
1898           properties
1899
1900 2008-06-12 Dan Locks <dwlocks@zmanda.com>
1901         * packaging/rpm/amanda_enterprise.spec,
1902           packaging/rpm/amanda_enterprise_client.spec,
1903           packaging/deb/rules: install amgtar and amstar suid root
1904
1905 2008-06-12  Jean-Louis Martineau <martineau@zmanda.com>
1906         * client-src/selfcheck.c: Typo.
1907
1908 2008-06-11  Jean-Louis Martineau <martineau@zmanda.com>
1909         * client-src/sendsize.c: Check MAX-LEVEL from application.
1910         * server-src/planner.c: Ask for estimate even if SERVER, estimate is
1911           valid if client return -1 and invelid if client return -2.
1912         * common-src/amfeatures.h: New fe_xml_estimate amfeature.
1913         * common-src/amxml.c: Parse <estimate> tag.
1914         * common-src/amxml.h (dle_t): New estimate field.
1915         * common-src/amfeatures.c: Set fe_xml_estimate.
1916
1917 2008-06-11  Jean-Louis Martineau <martineau@zmanda.com>
1918         * client-src/client_util.c (application_property_add_to_argv):
1919                                    Add include and exclude.
1920         * client-src/client_util.h (application_property_add_to_argv):
1921                                    New prototype.
1922         * client-src/sendbackup.c, client-src/sendsize.c,
1923           client-src/selfcheck.c, recover-src/extract_list.c:
1924           Add bsu param to application_property_add_to_argv.
1925         * client-src/selfcheck.c: Check if application support includ/exclude.
1926         * application-src/amgtar_perl.pl: Don't support include/exclude.
1927         * application-src/amgtar.c: Support include-optional and
1928                                     exclude-optional.
1929         * common-src/amxml.c: Fix include/exclude parsing.
1930
1931 2008-06-11  Jean-Louis Martineau <martineau@zmanda.com>
1932         * application-src/Makefile.am: Install amgtar and amstar suid root.
1933
1934 2008-06-11  Jean-Louis Martineau <martineau@zmanda.com>
1935         * client-src/selfcheck.c: Print cmdline before execing the application.
1936         * application-src/generic-dumper.pl: Cleanup.
1937         * application-src/script-oracle.pl: Cleanup.
1938         * application-src/script-email.pl: Cleanup.
1939         * application-src/amgtar_perl.pl: Cleanup.
1940         * application-src/generic-script.pl: Cleanup.
1941         * application-src/Makefile.am: Remove all scripts from CHECK_PERL.
1942         * perl/Amanda/Debug.swg: Typo.
1943
1944 2008-06-10  Dustin J. Mitchell <dustin@zmanda.com>
1945         * common-src/Makefile.am: don't use $(builddir), fix comparison
1946         * installcheck/Makefile.am: don't use $(builddir)
1947
1948 2008-06-10  Ian Turner <ian@zmanda.com>
1949         * common-src/fileheader.c: Silence a compiler warning.
1950         * device-src/rait-device.c: ditto.
1951
1952 2008-06-10  Dustin J. Mitchell <dustin@zmanda.com>
1953         * device-src/rait-device.c: hack around glib bug in versions <2.10.2
1954           using the precompiler macro instead of glib_check_version, which
1955           doesn't exist in every version of glib
1956
1957 2008-06-10 Dan Locks <dwlocks@zmanda.com>
1958         * packaging/rpm/amanda.spec:  Replaced individual SBINDIR/am... entries 
1959           with SBINDIR/am* in %%files
1960
1961 2008-06-10  Jean-Louis Martineau <martineau@zmanda.com>
1962         * man/xml-source/amanda.conf.5.xml: Add pre&post recover scripts.
1963
1964 2008-06-09 Dan Locks <dwlocks@zmanda.com>
1965         * packaging/rpm/buildpkg: added "|| exit 1" to any command which should
1966           cause the script to fail.
1967
1968 2008-06-09 Dan Locks <dwlocks@zmanda.com>
1969         * packaging/rpm/amanda.spec: Changed individual SBINDIR/am... entries to
1970           use a single SBINDIR/am* entry in %files
1971
1972 2008-06-09  Dustin J. Mitchell <dustin@zmanda.com>
1973         * common-src/fileheader.c: correctly free dle_str
1974         * device-src/device.c device-src/device.h: add volume_header Device
1975           attributes
1976         * device-src/rait-device.c device-src/s3-device.c
1977           device-src/tape-device.c device-src/vfs-device.c: populate
1978           volume_header
1979         * server-src/amlabel.c: use volume_header to detect a non-empty tape
1980           and require a force (-f) to overwrite it
1981         * server-src/taperscan.c: use volume_header to detect a non-empty tape
1982           and require 'amlabel -f' to overwrite it
1983         * device-src/tape-device.c device-src/vfs-device.c: fix read_label
1984           return values and remove useless chain-up calls
1985
1986 2008-06-09  Jean-Louis Martineau <martineau@zmanda.com>
1987         * server-src/amservice.c: Open input file in read mode, prepend
1988                                   get_original_cwd() to relative path.
1989         * installcheck/Makefile.am: Check amservice only on server.
1990
1991 2008-06-09  Dustin J. Mitchell <dustin@zmanda.com>
1992         * installcheck/Amanda_Device.pl: skip all RAIT tests temporarily
1993
1994 2008-06-09  Dustin J. Mitchell <dustin@zmanda.com>
1995         * man/xml-source/amanda.8.xml: add links to amservice
1996
1997 2008-06-07  Dustin J. Mitchell <dustin@zmanda.com>
1998         * config/amanda/ipv6.m4: remove redundant AC_SOCKADDR_STORAGE
1999         * configure.in: don't call AC_SOCKADDR_STORAGE
2000
2001 2008-06-07  Dustin J. Mitchell <dustin@zmanda.com>
2002         * installcheck/Amanda_Xfer.pl: make AMANDA_TMPDIR if it doesn't exist
2003
2004 2008-06-07  Dustin J. Mitchell <dustin@zmanda.com>
2005         * installcheck/Installcheck/Run.pm: fix Installcheck::Run vtape
2006           handling so that checks can load/unload vtapes "manually"
2007
2008 2008-06-07  Dustin J. Mitchell <dustin@zmanda.com>
2009         * server-src/amdevcheck.pl: apply config_overwrites before printing
2010           config errors
2011
2012 2008-06-07  Dustin J. Mitchell <dustin@zmanda.com>
2013         * application-src/amgtar_perl.pl application-src/amstar_perl.pl
2014           application-src/generic-dumper.pl application-src/generic-script.pl
2015           application-src/script-email.pl server-src/amgetconf.pl: add GPL
2016           notice
2017
2018 2008-06-06  Jean-Louis Martineau <martineau@zmanda.com>
2019         * server-src/amservice.c: Exit with 1 if the connection fail.
2020         * man/xml-source/amservice.8.xml: Document exit code.
2021
2022 2008-06-06  Dustin J. Mitchell <dustin@zmanda.com>
2023         * device-src/device.c: make device_set_error bulletproof to NULLs
2024         * device-src/tape-posix.c: fix compilation error when GMT_ONLINE is
2025           not defined
2026
2027 2008-06-06  Jean-Louis Martineau <martineau@zmanda.com>
2028         * man/Makefile.am: Add amservice.8.
2029         * man/xml-source/amservice.8.xml: New man page for amservice.
2030         * server-src/amservice.c: New program to execute an amanda service
2031                                   on a client.
2032         * server-src/Makefile.am: Add amservice
2033         * installcheck/amservice.pl: New check for amservice program.
2034         * installcheck/Makefile.am: Add amservice
2035
2036 2008-06-06  Jean-Louis Martineau <martineau@zmanda.com>
2037         * server-src/dumper.c: Don't quote dle_str.
2038         * common-src/fileheader.c: DLE= in header is like heredoc.
2039
2040 2008-06-06  Dustin J. Mitchell <dustin@zmanda.com>
2041         * device-src/*: major overhaul:
2042           - add device_set_error to set error status and message for Device
2043           - every error return from a device API method sets error status
2044           - device_status_error is now threadsave
2045           - a device in an error state will not perform further operations
2046           - ensure Device attributes are set correctly by member functions
2047           - device_open never returns NULL, but may return a null device with
2048             error status set
2049           - clearly define $device_name="$device_type:$device_node"
2050           - send RAIT logging to the debug log
2051           - vfs, tape devices don't touch the device until read_label or start
2052           - on out-of-space in write, set is_eof, finish the file, and return
2053             FALSE
2054           - use accessor functions in Amanda::Device
2055           - move device-specific properties to live with their devices
2056           - change g_return_val_if_fail to g_assert or explicit checks
2057           - remove most default Device methods, as they were more confusing
2058             than helpful
2059           - misc. other cleanup
2060         * device-src/null-device.h device-src/rait-device.h
2061           device-src/s3-device.h device-src/vfs-device.h: removed to make most
2062           device class declarations local to the source file
2063         * perl/Amanda/Device.swg: new error handling
2064         * perl/Amanda/Changer.pm restore-src/amrestore.c restore-src/restore.c
2065           server-src/amcheck.c server-src/amcheckdump.pl
2066           server-src/amdevcheck.pl server-src/amlabel.c server-src/amtape.c
2067           server-src/taperscan.c: use new device error-handling
2068         * server-src/taper-file-source.c server-src/taper-port-source.c
2069           server-src/taper-source.c: rename GObject constants (typo)
2070         * server-src/taper-source.h:
2071         * server-src/taper.c: handle opening devices better, log on EOM
2072         * common-src/glib-util.c: g_english_strjoinv: handle one-element lists
2073           correctly
2074         * installcheck/amdevcheck.pl: volume-unlabeled message has changed
2075         * installcheck/Amanda_Device.pl perl/Amanda/Tests.swg: test all device
2076           classes
2077         * configure.in device-src/tests/: removed
2078         * device-src/vfs-test.c: moved from device-src/tests/
2079
2080 2008-06-06  Jean-Louis Martineau <martineau@zmanda.com>
2081         * client-src/sendbackup.c: Don't write the uncompression program if
2082                                    it is not client compressed.
2083
2084 2008-06-05  Jean-Louis Martineau <martineau@zmanda.com>
2085         * server-src/taper.c: Log no-tape line.
2086
2087 2008-06-05  Jean-Louis Martineau <martineau@zmanda.com>
2088         * server-src/reporter.c: Improve formating.
2089
2090 2008-06-05  Jean-Louis Martineau <martineau@zmanda.com>
2091         * server-src/driver.c: start the degraded mode if it receive
2092                                NO-NEW-TAPE from taper.
2093
2094 2008-06-05  Jean-Louis Martineau <martineau@zmanda.com>
2095         * server-src/amcheckdump.pl: Check log fiels in directory if find_log
2096                                      find no log for the timestamps.
2097
2098 2008-06-05  Dustin J. Mitchell <dustin@zmanda.com>
2099         * common-src/conffile.c common-src/conffile.h: expose config_add_error
2100         * server-src/diskfile.c server-src/diskfile.h: use config_add_error
2101           to send diskfile errors to conffile's error-handling mechanism
2102         * restore-src/amfetchdump.c server-src/amadmin.c server-src/amcheck.c
2103           server-src/amcleanupdisk.c server-src/amflush.c server-src/amindexd.c
2104           server-src/amtrmidx.c server-src/amtrmlog.c server-src/driver.c
2105           server-src/planner.c: parse disklist along with config
2106
2107 2008-06-04  Jean-Louis Martineau <martineau@zmanda.com>
2108         And Dustin J. Mitchell <dustin@zmanda.com>
2109         * man/xml-source/amanda-client.conf.5.xml: Document property.
2110         * installcheck/Amanda_Config.pl: Add test for client property.
2111         * common-src/conffile.c (client_var): Add CONF_PROPERTY.
2112
2113 2008-06-03  Jean-Louis Martineau <martineau@zmanda.com>
2114         * perl/Amanda/Types.swg: Add dle_str to dumpfile_t.
2115         * common-src/fileheader.c: Don't print NULL dle_str.
2116
2117 2008-06-03  Jean-Louis Martineau <martineau@zmanda.com>
2118         * common-src/amfeatures.h: Rename fe_amrecover_dle to fe_amindexd_DLE,
2119                                    add fe_amrecover_dle_in_header.
2120         * common-src/amfeatures.c: Set fe_amrecover_dle_in_header.
2121         * recover-src/set_commands.c: Use fe_amindexd_DLE.
2122         * server-src/dumper.c: Set dle_str and add it to the header.
2123         * restore-src/restore.c: Remove dle_str is client doesn't have
2124                                  fe_amrecover_dle_in_header.
2125         * common-src/fileheader.c: Parse and set dle_str from header.
2126         * common-src/fileheader.h: Add dle_str in dumpfile_t.
2127
2128 2008-06-03  Jean-Louis Martineau <martineau@zmanda.com>
2129         * man/xml-source/amdump.8.xml, man/xml-source/amreport.8.xml,
2130           man/xml-source/amcheck.8.xml, man/xml-source/amflush.8.xml,
2131           man/xml-source/amstatus.8.xml: Add "EXIT CODE" section".
2132
2133 2008-06-03  Jean-Louis Martineau <martineau@zmanda.com>
2134         * common-src/conffile.c (parm_key_info): Don't fold '-' to '_' in
2135                                                  subsec_name.
2136         * installcheck/amgetconf.pl: Fix and add more tests.
2137
2138 2008-06-03  Dustin J. Mitchell <dustin@zmanda.com>
2139         * common-src/amxml.c: give parse error on an empty "disk" element
2140         * server-src/diskfile.c: give parse error on an empty "disk" element
2141
2142 2008-05-30  Jean-Louis Martineau <martineau@zmanda.com>
2143         * common-src/security-util.c: Remove unneeded pointer cast.
2144         * common-src/stream.c: Fix compiler error.
2145
2146 2008-05-30  Dustin J. Mitchell <dustin@zmanda.com>
2147         * installcheck/Installcheck/Config.pm: fix subsection inheritance
2148
2149 2008-05-30  Dustin J. Mitchell <dustin@zmanda.com>
2150         * common-src/amanda.h, common-src/bsd-security.c,
2151           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
2152           common-src/dgram.c, common-src/dgram.h, common-src/krb5-security.c,
2153           common-src/security-util.c, common-src/security-util.h,
2154           common-src/sockaddr-util.c, common-src/sockaddr-util.h,
2155           common-src/stream.c, common-src/util.c, common-src/util.h,
2156           restore-src/amidxtaped.c, server-src/amindexd.c: add sockaddr_union,
2157           change all relevant functions to use it, to avoid aliasing violations
2158
2159 2008-05-30  Jean-Louis Martineau <martineau@zmanda.com>
2160         * common-src/conffile.c (lookup_keyword): Use temporary variable.
2161         * installcheck/Amanda_Config.pl:  Check insentivity of -/_ in amanda
2162                                           keyword.
2163         * installcheck/Installcheck/Config.pm: Adjust to make the subsection
2164                                                inheritance work.
2165
2166 2008-05-30  Jean-Louis Martineau <martineau@zmanda.com>
2167         * recover-src/extract_list.c: Send properties from dump_dle to
2168                                       application plugin.
2169
2170 2008-05-30  Jean-Louis Martineau <martineau@zmanda.com>
2171         * client-src/client_util.c: New *-RECOVER scripts.
2172         * application-src/script-email.pl: Add new *-RECOVER scripts.
2173         * application-src/generic-script.pl: Add new *-RECOVER scripts.
2174         * application-src/amstar.c: Fix.
2175         * application-src/amgtar.c: Fix.
2176         * recover-src/amrecover.c: Add a global dump_dle variable.
2177         * recover-src/extract_list.c: Call run_client_scripts for *-RECOVER
2178                                       scripts.
2179         * recover-src/amrecover.h: Add an extern dump_dle variable.
2180         * recover-src/set_commands.c: Send to amindexd the DLE command.
2181         * server-src/amindexd.c: Handle the DLE command.
2182         * server-src/server_util.c: Add *-RECOVER scripts, they can't be
2183                                     executed on server.
2184         * server-src/diskfile.c (xml_scripts): Add *-RECOVER scripts.
2185         * common-src/amfeatures.h: New fe_amrecover_dle amfeature.
2186         * common-src/amfeatures.c (am_init_feature_set): Add fe_amrecover_dle.
2187         * common-src/amxml.c: Add *-RECOVER scripts.
2188         * common-src/conffile.c: Add *-RECOVER scripts.
2189         * common-src/conffile.h: Add *-RECOVER scripts.
2190
2191 2008-05-29  Dustin J. Mitchell <dustin@zmanda.com>
2192         * common-src/conffile.c: make config insensitive to
2193           differences between '-' and '_'
2194         * man/xml-source/amanda-client.conf.5.xml
2195           man/xml-source/amanda.conf.5.xml 
2196           man/xml-source/amgetconf.8.xml: document it
2197         * installcheck/Amanda_Config.pl installcheck/amgetconf.pl: update
2198           tests
2199
2200 2008-05-29  Orion Poplawski <orion@cora.nwra.com>
2201         * server-src/chunker.c: fix buffer overrun
2202
2203 2008-05-29  Jean-Louis Martineau <martineau@zmanda.com>
2204         * common-src/conffile.c (client_keytab): Remove "DEVICE-PROPERTY".
2205
2206 2008-05-28  Dustin J. Mitchell <dustin@zmanda.com>
2207         * device-src/rait-device.c: rait-device returns correct size when
2208           blocksize is too small
2209
2210 2008-05-28  Jean-Louis Martineau <martineau@zmanda.com>
2211         * server-src/reporter.c: Fix ignoring pid line.
2212
2213 2008-05-27  Jean-Louis Martineau <martineau@zmanda.com>
2214         * config/amanda/ps.m4: Define PS_ARGUMENT to CYGWIN on cygwin.
2215         * perl/Amanda/Process.pm: Works with PS_ARGUMENT eq "CYGWIN".
2216
2217 2008-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2218         * server-src/amstatus.pl: use lib '@amperldir@';
2219         * perl/Amanda/Process.pm: use Amanda::Constants;
2220
2221 2008-05-26  Dustin J. Mitchell <dustin@zmanda.com>
2222         * device-src/rait-device.c: temporarily remove the call to set the
2223           BLOCK_SIZE property on all RAIT children, as it fails with VFS
2224           devices
2225         * device-src/rait-device.c: rewrite g_ptr_array_union_robust to
2226           correctly detect and handle child device failures
2227         * common-src/fileheader.c: fix parse_file_header to be threadsafe
2228
2229 2008-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2230         * device-src/tape-aix.c, device-src/tape-xenix.c
2231           device-src/tape-posix.c: tape_is_ready take a (TapeDevice *) argument
2232         * device-src/tape-posix.c (tape_is_ready): Check for broken_gmt_online.
2233         * device-src/property.c: Add broken_gmt_online property.
2234         * device-src/property.h: Add PROPERTY_BROKEN_GMT_ONLINE.
2235         * device-src/tape-device.c: Use broken_gmt_online property.
2236         * device-src/tape-device.h (TapeDevice): Add broken_gmt_online field.
2237         * device-src/tape-ops.h (tape_is_ready): Change prototype.
2238
2239 2008-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2240         * changer-src/chg-zd-mtx.sh: Fix logging.
2241
2242 2008-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2243         * packaging/rpm/amanda.spec: Fix output message.
2244
2245 2008-05-25  Dustin J. Mitchell <dustin@zmanda.com>
2246         * common-src/Makefile.am common-src/simpleprng.c
2247           common-src/simpleprng.h: new simple PRNG module for
2248           reproducible use in tests (bitlength bug fixed).
2249         * xfer-src/dest-null.c: verify stream against PRNG
2250         * xfer-src/source-random.c: use PRNG to create stream
2251         * installcheck/Amanda_Xfer.pl: verify streams in xfers
2252         * perl/Amanda/Xfer.swg: use PRNG
2253         * xfer-src/xfer-element.h xfer-src/xfer-test.c: use
2254           PRNG to test glue elements
2255
2256 2008-05-23  Dustin J. Mitchell <dustin@zmanda.com>
2257         * installcheck/Amanda_MainLooop.pl: handle SIGCHILD while
2258           reading from dying child
2259
2260 2008-05-22  Dustin J. Mitchell <dustin@zmanda.com>
2261         * xfer-src/xfer-test.c: don't try to write to a file in the
2262           source directory
2263
2264 2008-05-22  Jean-Louis Martineau <martineau@zmanda.com>
2265         * perl/Amanda/Process.pm (load_ps_table): Fix split.
2266
2267 2008-05-22  Jean-Louis Martineau <martineau@zmanda.com>
2268         * configure.in: Call AMANDA_PS_ARGUMENT
2269         * config/amanda/ps.m4 (AMANDA_PS_ARGUMENT): New macro to find ps
2270                                                     argument.
2271         * perl/Amanda/Constants.pm.in: Add PS_ARGUMENT.
2272         * perl/Amanda/Process.pm (load_ps_table): Use PS_ARGUMENT.
2273
2274 2008-05-22  Jean-Louis Martineau <martineau@zmanda.com>
2275         * perl/Amanda/Process.pm: process_alive return '' if the process is
2276                                   dead.
2277         * installcheck/Amanda_Process.pl: New module to check Amanda::Process.
2278         * installcheck/Makefile.am (server_tests): Add Amanda_Process.
2279
2280 2008-05-21  Jean-Louis Martineau <martineau@zmanda.com>
2281         * server-src/amstatus.pl: Add "failed: killed while" to some status if
2282                                   the driver process is dead.
2283         * perl/Amanda/Process.pm: New process_alive function.
2284
2285 2008-05-21  Jean-Louis Martineau <martineau@zmanda.com>
2286         * server-src/dumper.c server-src/planner.c, server-src/chunker.c,
2287           server-src/amflush.c, server-src/driver.c, server-src/taper.c,
2288           restore-src/amidxtaped.c, restore-src/restore.c,
2289           restore-src/amfetchdump.c: Convert all pid_t to long before printing.
2290
2291 2008-05-21  Jean-Louis Martineau <martineau@zmanda.com>
2292         * man/xml-source/amcleanup.8.xml: Document new -p option.
2293         * server-src/logfile.c (program_str): Add many programs.
2294         * server-src/logfile.h (program_e): Add many programs.
2295         * server-src/dumper.c, server-src/planner.c,
2296           server-src/chunker.c, server-src/amflush.c,
2297           server-src/driver.c, server-src/taper.c,
2298           restore-src/amidxtaped.c, restore-src/restore.c,
2299           restore-src/amfetchdump.c,
2300           server-src/amdump.sh: Log pid and pid-done lines, call run_amclenup.
2301         * server-src/server_util.c (run_amcleanup): New function to run
2302                                                     amcleanup.
2303         * server-src/server_util.c (get_master_process): New function get the
2304                                  name of the first pid line in a log file.
2305         * server-src/server_util.h (run_amcleanup): Prototype.
2306         * server-src/server_util.h (get_master_process): Prototype.
2307         * server-src/reporter.c: Ignore pid and pid-done lines.
2308         * server-src/amcleanup.pl: New amcleanup program written in perl.
2309         * server-src/Makefile.am: Move amcleanup from SCRIPTS_SHELL to
2310                                   SCRIPTS_PERL.
2311         * server-src/amcleanup.sh: Old program removed.
2312         * perl/Amanda/Process.pm: New module to hanlde amanda process.
2313         * perl/Makefile.am: Add Amanda/Process.pm to Amanda_DATA and EXTRA_DIST
2314
2315 2008-05-21  Jean-Louis Martineau <martineau@zmanda.com>
2316         * server-src/driver.c: Fix quoting of diskname.
2317
2318 2008-05-20  Dustin J. Mitchell <dustin@zmanda.com>
2319         * configure.in config/amanda/socklen_t_equiv.m4: detect the type (not
2320           necessarily socklen_t used by getpeername et al.
2321         * amandad-src/amandad.c server-src/amindexd.c restore-src/amidxtaped.c
2322           common-src/util.c common-src/bsdtcp-security.c common-src/amanda.h
2323           common-src/krb5-security.c common-src/dgram.c common-src/stream.c:
2324           use the type instead of socklen_t
2325
2326 2008-05-20  Jean-Louis Martineau <martineau@zmanda.com>
2327             Dustin J. Mitchell <dustin@zmanda.com>
2328             John Franks <jrfranks@zmanda.com>
2329         * server-src/amstatus.pl: quote disknames in amstatus
2330         * server-src/Makefile.am: don't check amstatus (since it
2331           uses Amanda::* libs)
2332         * perl/Amanda/Util.swg: add (un)quote_string
2333         * installcheck/Amanda_Util.pl installcheck/Makefile.am: test it
2334
2335 2008-05-16  Jean-Louis Martineau <martineau@zmanda.com>
2336         * common-src/conffile.c: Fix conf_parserror use.
2337
2338 2008-05-15  Dustin J. Mitchell <dustin@zmanda.com>
2339         * perl/Makefile.am installcheck/Makefile.am Makefile.am: only build
2340           XFA in server builds
2341
2342 2008-05-15  Jean-Louis Martineau <martineau@zmanda.com>
2343         * common-src/conffile.c: Parse send-amreport-on.
2344         * common-src/conffile.h (send_amreport_t): New enum for possible value
2345                                                    of send-amreport-on.
2346         * server-src/reporter.c: Use send-amreport-on setting.
2347         * perl/Amanda/Config.swg: Define send_amreport_on_t constants.
2348         * man/xml-source/amanda.conf.5.xml: Document send-amreport-on.
2349
2350 2008-05-15  Jean-Louis Martineau <martineau@zmanda.com>
2351         * client-src/client_util.c (application_property_argv_size): New
2352           function to count the number of argument needed to store all
2353           properties of an application for + * a dle in an ARGV.
2354         * client-src/client_util.c (application_property_add_to_argv): New
2355           function to add all properties of an application for a dle to an ARGV.
2356         * client-src/client_util.h (application_property_argv_size,
2357                                   application_property_add_to_argv): Prototype.
2358         * client-src/sendbackup.c, client-src/sendsize.c,
2359           client-src/selfcheck.c: Use new functions to pass properties as
2360                                   argument to application plugin.
2361         * application-src/script-email.pl, application-src/amstar.c,
2362           application-src/generic-script.pl,
2363           application-src/amgtar.c: Get properties from command line.
2364         * server-src/server_util.c: Use new functions to pass properties as
2365                                     argument to pre/post script.
2366         * common-src/util.c (count_proplist): Callback function to count the
2367                                               number of values of a property.
2368         * common-src/util.c (proplist_add_to_argv): callback function to store a
2369                                         property and it's value in an ARGV.
2370         * common-src/util.h (count_proplist, proplist_add_to_argv): Prototype.
2371         * common-src/conffile.c (property_argv_size): New function to count the
2372                                                       number of properties.
2373         * common-src/conffile.c (property_add_to_argv): New function to store a
2374                                         property and it's value in an ARGV.
2375         * common-src/conffile.h (property_argv_size,
2376                                  property_add_to_argv): Prototype.
2377
2378 2008-05-15  Dustin J. Mitchell <dustin@zmanda.com>
2379         * xfer-src/Makefile.am: add element-glue.h to the distribution
2380         * xfer-src/element-glue.h: add 'extern'
2381         * xfer-src/xfer-test.c: fix test elements
2382         * xfer-src/xfer.c: don't use the sometimes-undefined constant
2383           G_MAXINT32
2384         * xfer-src/source-random.c: Only use 'prolong' for threads, not
2385           push/pull methods
2386         * installcheck/Amanda_Xfer.pl: Check the content of $msg->{message} in
2387           XMSG_INFO
2388
2389 2008-05-14  Dustin J. Mitchell <dustin@zmanda.com>
2390         * xfer-src/xfer-element.h xfer-src/xfer.c xfer-src/dest-null.c
2391           xfer-src/source-random.c xfer-src/xfer-test.c
2392           xfer-src/element-glue.c xfer-src/xmsg.h xfer-src/dest-fd.c
2393           xfer-src/source-fd.c xfer-src/element-glue.h
2394           xfer-src/Makefile.am xfer-src/filter-xor.c
2395           xfer-src/xfer-element.c perl/Amanda/Xfer.swg: new organization
2396           of transfer mechansims and new algorithm for linking xfers, with
2397           expanded unit tests to exercise new glue elements
2398         * installcheck/Amanda_Xfer.pl: updated installchecks
2399         * common-src/semaphore.h: fix comment typo
2400         * common-src/testutils.c common-src/testutils.h: optionally skip
2401           timeouts (-t), and only show g_debug messages if -d is given
2402
2403 2008-05-14  Dustin J. Mitchell <dustin@zmanda.com>
2404         * client-src/amhpfixdevs.sh client-src/Makefile.am
2405           client-src/amsinixfixdevs.sh config/amanda/devprefix.m4:
2406           permanently remove amsinixfixdevs and amhpfixdevs
2407
2408 2008-05-12  Jean-Louis Martineau <martineau@zmanda.com>
2409           Patch by Orion Poplawski
2410         * server-src/planner.c: Warn about overwrite of last level 1, and
2411           force backup of level 1 if overwrite on this run.
2412
2413 2008-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2414         * common-src/conffile.c: Define default tapetype.
2415
2416 2008-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2417         * device-src/tape-device.c (tape_validate_properties): New function to
2418           validate properties.
2419
2420 2008-05-07  Jean-Louis Martineau <martineau@zmanda.com>
2421         * man/xml-source/amdevcheck.8.xml: Add an OUTPUT section.
2422
2423 2008-05-07  Jean-Louis Martineau <martineau@zmanda.com>
2424         * common-src/conffile.c: Check the tapetype is defined.
2425
2426 2008-05-07  Jean-Louis Martineau <martineau@zmanda.com>
2427         * device-src/tape-device.c: Allow user to set "read_buffer_size"
2428                                     property.
2429         * restore-src/amrestore.c: Don't limit blocksize to
2430                                    --with-maxtapeblocksize.
2431         * common-src/conffile.c: Increase readblocksize to blocksize.
2432           blocksize and readblocksize can be bigger than
2433           --with-maxtapeblocksize.
2434
2435 2008-05-06  Jean-Louis Martineau <martineau@zmanda.com>
2436         * common-src/conffile.c: Add a 'mailer' config parameter.
2437         * common-src/conffile.h: Add CNF_MAILER.
2438         * changer-src/chg-scsi-chio.c, changer-src/chg-scsi.c
2439           changer-src/chg-manual.sh, application-src/script-email.pl
2440           server-src/amcheck.c server-src/amgetconf.pl
2441           server-src/reporter.c: Use mailer from config.
2442         * perl/Amanda/Config.swg: amglue_add_constant(CNF_MAILER, confparm_key)
2443         * config/amanda/progs.m4: Set DEFAULT_MAILER.
2444         * common-src/amanda-sh-lib.sh.in: Don't set MAILER.
2445         * man/xml-source/amanda-client.conf.5.xml,
2446           man/xml-source/amanda.conf.5.xml,
2447           man/xml-source/amgetconf.8.xml: Update man pages.
2448
2449 2008-05-02 Dan Locks <dwlocks@zmanda.com>
2450         * packaging/rpm/amanda.spec:  Replace ${ with %{ where applicable.
2451  
2452 2008-05-02 Dan Locks <dwlocks@zmanda.com>
2453         *  packaging/deb/amanda-enterprise-backup-server.postinst
2454            packaging/rpm/amanda_enterprise.spec:  Change .am_passphrase to a
2455            semi-random number in both packages. 
2456
2457 2008-04-29  Dustin J. Mitchell <dustin@zmanda.com>
2458         * config/amanda/dirs.m4: note that --with-dumperdir is 
2459           deprecated in ./configure --help
2460
2461
2462 2008-04-24  Jean-Louis Martineau <martineau@zmanda.com>
2463         * restore-src/restore.c: Fix test for DEVICE_STATUS_SUCCESS.
2464
2465 2008-04-28  Dustin J. Mitchell <dustin@zmanda.com>
2466         * xfer-src/Makefile.am xfer-src/xfer-element.h xfer-src/dest-fd.c
2467           xfer-src/source-fd.c perl/Amanda/Xfer.swg: add new
2468           Amanda::Xfer::Source::Fd, Amanda::Xfer::Dest::Fd
2469         * xfer-src/source-random.c xfer-src/xfer.c xfer-src/dest-null.c
2470           xfer-src/xfer.h xfer-src/filter-xor.c xfer-src/xfer-element.c:
2471           reorganize detection of transfer completion, to handle cases where
2472           elements don't do any active processing
2473         * installcheck/Amanda_Xfer.pl: test it all
2474
2475 2008-04-24  Jean-Louis Martineau <martineau@zmanda.com>
2476         * server-src/reporter.c: Correctly print truncated quoted diskname.
2477
2478 2008-04-23  Dustin J. Mitchell <dustin@zmanda.com>
2479         * installcheck/Amanda_MainLoop.pl common-src/event-test.c
2480           common-src/queueing-test.c: try to make tests more resilient
2481           to heavily-loaded, slow machines
2482
2483 2008-04-23  Jean-Louis Martineau <martineau@zmanda.com>
2484         * common-src/security-util.c: Typo.
2485
2486 2008-04-23  Jean-Louis Martineau <martineau@zmanda.com>
2487         * server-src/driver.c: Always sent a FAILED to taper if dumper failed.
2488         * common-src/event.c: Check event is not dead before fire it.
2489
2490 2008-04-23  Jean-Louis Martineau <martineau@zmanda.com>
2491         * server-src/planner.c: Fix vstrextend use.
2492
2493 2008-04-23  Dustin J. Mitchell <dustin@zmanda.com>
2494         * common-src/event.c: use internal child_watch_source
2495           for glib <2.6.0; versions 2.4.0 to 2.6.0 use unreliable
2496           signals and are thus unreliable
2497
2498 2008-04-22  Dustin J. Mitchell <dustin@zmanda.com>
2499         * perl/Amanda/Logfile.swg server-src/find.c server-src/find.h: add
2500           parsing of 'sec' and 'kb' from logfile messages
2501         * perl/Amanda/DB/Catalog.pm perl/Makefile.am: new module
2502         * installcheck/Amanda_DB_Catalog.pl installcheck/Makefile.am: checks
2503           for new module
2504
2505 2008-04-22  Dustin J. Mitchell <dustin@zmanda.com>
2506         * common-src/event.c: on glib <2.4.0, use a simple polling 
2507           child_watch_source; on more recent glib, use glib's own
2508           child_watch_source
2509
2510 2008-04-22  Dustin J. Mitchell <dustin@zmanda.com>
2511         * xfer-src/source-random.c xfer-src/xmsg.c xfer-src/xfer-element.h
2512           xfer-src/xfer-dest.c xfer-src/xfer-test.c xfer-src/xmsg.h
2513           xfer-src/xfer.c xfer-src/xfer-dest.h xfer-src/dest-null.c
2514           xfer-src/xfer.h xfer-src/filter-xor.c xfer-src/xfer-element.c:
2515           - flatten XferElement hierarchy to one level
2516           - change test element argument order
2517           - rename XMsg.src to Xmsg.elt
2518           - Improve memory management (refcounting, perl interface)
2519         * perl/Amanda/Changer.pm perl/Amanda/Xfer.swg
2520           perl/Amanda/MainLoop.swg perl/Makefile.am
2521           perl/amglue/amglue.h perl/amglue/source.c:
2522           - rewrite handling of amglue_Source for better refcounting
2523           - Amanda::MainLoop callbacks get the event source as 1st argument,
2524             and will be called even if the event source goes out of scope in
2525             perl
2526           - MainLoop.swg significantly rewritten to get refcounting right
2527         * installcheck/Amanda_Xfer.pl: new checks (without excessive use of
2528           file descriptors)
2529         * installcheck/Amanda_MainLoop.pl installcheck/Makefile.am: updated
2530            checks
2531
2532 2008-04-22  Jean-Louis Martineau <martineau@zmanda.com>
2533         * device-src/tape-posix.c: Don't return DEVICE_STATUS_VOLUME_MISSING
2534                                    on ioctl error.
2535         * changer-src/chg-lib.sh.in (amdevcheck_status): return 1 only if the
2536                          possible errors are VOLUME_MISSING or DEVICE_BUSY.
2537
2538 2008-04-22  Kevin Zembower <kzembowe@jhuccp.org>
2539         * man/xml-source/amflush.8.xml: add amflush example
2540
2541 2008-04-22  Jean-Louis Martineau <martineau@zmanda.com>
2542         * device-src/tape-device.c: Move all device access from
2543           tape_device_open_device to tape_device_read_label.
2544           tape_device_start read the label if it is not already read.
2545         * device-src/vfs-device.c (vfs_device_open_device): remove read of the
2546                                                             label.
2547
2548 2008-04-22  Jean-Louis Martineau <martineau@zmanda.com>
2549         * device-src/tape-device.c (check_resetofs): Compilation fix if
2550                                                      NEED_RESETOFS is defined.
2551         * device-src/tape-posix.c: Handle no ENOMEDIUM.
2552
2553 2008-04-21  Dan Locks <dwlocks@zmanda.com>
2554         * packaging/deb/buildpkg: modified build script to create unsigned
2555           packages
2556
2557 2008-04-21  Jean-Louis Martineau <martineau@zmanda.com>
2558         * changer-src/chg-lib.sh.in (amdevcheck_status):
2559           Set amdevcheck_message.
2560         * changer-src/chg-chs.sh, changer-src/chg-juke.sh,
2561           changer-src/chg-manual.sh, changer-src/chg-zd-mtx.sh,
2562           changer-src/chg-multi.sh: Output amdevcheck_message
2563         * device-src/device.c: Set errmsg and status.
2564           device_open always return a device, the status and errmsg are set.
2565         * device-src/device.h: Define DeviceStatusFlags.
2566         * device-src/null-device.c, device-src/s3-device.c,
2567           device-src/tape-device.c, device-src/vfs-device.c,
2568           device-src/rait-device.c: Set errmsg and status.
2569         * device-src/tape-posix.c: Return status for VOLUME_MISSING.
2570         * device-src/tape-ops.h: Remove TapeCheckResult.
2571         * server-src/taper-source.h (_TaperSource): Add errmsg.
2572         * server-src/taper-source.c: Set errmsg
2573         * server-src/amcheck.c, server-src/amtape.c, server-src/amlabel.c,
2574           server-src/taperscan.c, restore-src/amrestore.c,
2575           restore-src/restore.c: Use status and errmsg of a device.
2576         * server-src/taper-disk-port-source.c: Set errmsg.
2577         * server-src/reporter.c: Fix parsing of taper PARTIAL line.
2578         * server-src/taper.c: Use errmsg for device and _TaperSource.
2579         * server-src/taper-file-source.c: Set errmsg.
2580         * server-src/amcheckdump.pl,
2581           server-src/amdevcheck.pl: Use status and errmsg from device.
2582         * perl/Amanda/Changer.pm: Fix for DEVICE_STATUS_*.
2583         * perl/Amanda/Device.swg: New interface.
2584         * installcheck/Makefile.am: Don't print some commands.
2585         * installcheck/Amanda_Device.pl: Check new device api.
2586         * common-src/queueing.c: Use new queue_fd_t.
2587         * common-src/queueing.h (queue_fd_t): new struct.
2588         * common-src/amanda-sh-lib.sh.in: Fix bug.
2589         * common-src/queueing-test.c: Use queue_fd_t.
2590
2591 2008-04-21  Dustin J. Mitchell <dustin@zmanda.com>
2592         * installcheck/amgetconf.pl: properly quote filenames in
2593           regex, to avoid spurious failures when e.g., '+' appears
2594           in the filename
2595
2596 2008-04-18  Dustin J. Mitchell <dustin@zmanda.com>
2597         * perl/Amanda/Changer.pm: rewrite Amanda::Changer to use
2598           Amanda::MainLoop, allowing asynchronous operation of 
2599           changers
2600         * server-src/amcheckdump.pl: use new Amanda::Changer 
2601           interface (synchronously, until we have Amanda::Xfer)
2602         * installcheck/Amanda_Changer.pl: test new interface
2603
2604 2008-04-18  Dustin J. Mitchell <dustin@zmanda.com>
2605         * installcheck/Makefile.am: build $(full_tests) too
2606
2607 2008-04-18  Cyrille Bollu <Cyrille.Bollu@fedasil.be>
2608         * client-src/sendsize.c: use --numeric-owner during 'sendsize'
2609
2610 2008-04-17  Dustin J. Mitchell <dustin@zmanda.com>
2611         * installcheck/Makefile.am: segregate installchecks that require
2612           both client and server components
2613
2614 2008-04-17  Dustin J. Mitchell <dustin@zmanda.com>
2615         * common-src/debug.c: add Amanda version to debug logs
2616
2617 2008-04-16  Dustin J. Mitchell <dustin@zmanda.com>
2618         * perl/Amanda/Util.swg common-src/util.c common-src/util.h: add
2619           process type and context process attributes
2620         * perl/Amanda/Debug.swg common-src/debug.c common-src/debug.h: add
2621           debug_init to set up debugging according to the process context, and
2622           log nothing in CONTEXT_SCRIPTUTIL
2623         * server-src/amgetconf.pl server-src/amdevcheck.pl:
2624           CONTEXT_SCRIPTUTIL
2625         * server-src/amcheckdump.pl: use new $CONSTANT_CMDLINE variable
2626         * installcheck/Amanda_Debug.pl: add comment
2627
2628 2008-04-16  Dan Locks <dwlocks@zmanda.com>
2629         * Fixes to debian package reported by daniel_P
2630         * packaging/deb/preinst: remove spaces near ${amanda_group}
2631         * packaging/deb/amanda-backup-server.dirs
2632           packaging/deb/amanda-backup-client.dirs: added var/amanda and
2633           usr/share/lintian/overrides
2634         * packaging/deb/rules: added logic to find PERLSITELIB and append that
2635           to amanda-backup-server.install, removed broken brace expansion
2636         * packaging/deb/buildpkg: removed extraneous configure step
2637         * packaging/deb/amanda-backup-server.postinst: added check for correct
2638           permissions on /tmp/amanda
2639
2640 2008-04-16  Dan Locks <dwlocks@zmanda.com>
2641         * packaging/deb/rules packaging/rpm/amanda.spec: remove --with-gnutar=
2642           from configure invocation.  no longer necessary.
2643
2644 2008-04-16  Dustin J. Mitchell <dustin@zmanda.com>
2645         * device-src/s3.c config/amanda/s3-device.m4: test curl features
2646           at runtime, instead of compile time, and always use SSL if it
2647           is available.
2648
2649 2008-04-16  Jean-Louis Martineau <martineau@zmanda.com>
2650         * server-src/amadmin.c: Improve message.
2651         * man/xml-source/amanda.conf.5.xml: Fix man page.
2652         * server-src/planner.c: Fix DS_INCRONLY and FORCE_FULL.
2653
2654 2008-04-16  Dustin J. Mitchell <dustin@zmanda.com>
2655         * config/amanda/dumpers.m4: continue searching for gnutar if we
2656           find a binary claiming to be gnu tar that is not.  This gets
2657           around serious breakage on Ubuntu, where star is installed as
2658           /bin/gnutar, but /bin/tar is actually GNU Tar.
2659
2660 2008-04-15  Dustin J. Mitchell <dustin@zmanda.com>
2661         * common-src/file.c(mk1dir): fix reversed conditional to handle 
2662           a race condition
2663
2664 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
2665         * common-src/debug.c (debug_logging_handler, debug_printf): Don't print
2666           msg_timestamp() to stderr.
2667
2668 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
2669         * server-src/dumper.c: Call error() only after set_logerror is done.
2670         * server-src/planner.c: Call error() only after set_logerror is done.
2671         * server-src/chunker.c: Report a better error message.
2672         * common-src/stream.c: Set errno to ETIMEDOUT after a timeout.
2673
2674 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
2675         * server-src/find.c (dumps_match_dumpspecs): New function to only keep
2676           dumps that match a dumpspecs, using it simplify amfetchdump.
2677         * server-src/find.h (dumps_match_dumpspecs): Prototype.
2678         * restore-src/amrestore.c: Add a first_restored_file to
2679           search_a_tape(), to allow restore ot stop after the first image.
2680         * restore-src/restore.c: Set first_restored_file, it was never set,
2681           it's needed to stop after the first image.
2682         * restore-src/restore.c (restore_from_tapelist): break if piping to
2683           stdout.
2684         * restore-src/amfetchdump.c: Use dumps_match_dumpspecs.
2685         * restore-src/amfetchdump.c: If -p, the keep only one dump.
2686         * perl/Amanda/Logfile.swg (dumps_match_dumpspecs): New prototype.
2687         * perl/Amanda/Cmdline.swg: cmdline_parse_dumpspecs.
2688         * perl/amglue/dumpspecs.swg: Map dumpspecs to perl.
2689         * perl/Makefile.am (AMGLUE_SWG): Add amglue/dumpspecs.swg.
2690         * installcheck/Amanda_Logfile.pl: Add many tests.
2691
2692 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
2693         * tape-src/tapetype.c: Initialize an default config.
2694
2695 2008-04-15  Jean-Louis Martineau <martineau@zmanda.com>
2696         * common-src/util.c (connect_portrange, connect_port, bind_portrange):
2697           Return the latest errno reported.
2698
2699 2008-04-08  Dustin J. Mitchell <dustin@zmanda.com>
2700         * common-src/conffile.c common-src/conffile.h 
2701           perl/Amanda/Config.swg installcheck/Amanda_Config.pl:
2702           new interface for config errors, re-introduce rawtapedev for
2703           deprectation purposes
2704         * installcheck/Installcheck/Config.pm: support test
2705           amanda-client.conf files
2706         * installcheck/Installcheck/Run.pm: add get_stdout, get_stderr
2707         * client-src/client_util.c client-src/client_util.h: add
2708           config_errors_to_error_string
2709         * server-src/dumper.c server-src/planner.c: handle ERRORs and NAKs
2710           better, so users see client-side config errors
2711         * oldrecover-src/amrecover.c changer-src/chg-scsi-chio.c
2712           changer-src/chg-scsi.c client-src/sendbackup.c client-src/sendsize.c
2713           client-src/selfcheck.c amandad-src/amandad.c application-src/amstar.c
2714           application-src/amgtar.c recover-src/amrecover.c
2715           server-src/amlogroll.c server-src/amindexd.c server-src/amcheck.c
2716           server-src/amgetconf.pl server-src/chunker.c server-src/amadmin.c
2717           server-src/amtape.c server-src/amcheckdump.pl
2718           server-src/amcleanupdisk.c server-src/amflush.c server-src/amtrmlog.c
2719           server-src/driver.c server-src/reporter.c server-src/taper.c
2720           server-src/amdevcheck.pl server-src/amtrmidx.c server-src/diskfile.c
2721           server-src/amlabel.c installcheck/Amanda_Changer.pl
2722           installcheck/Amanda_Device.pl installcheck/Amanda_Logfile.pl
2723           installcheck/Amanda_Tapelist.pl restore-src/amidxtaped.c
2724           restore-src/amrestore.c restore-src/amfetchdump.c: adapt to new config
2725           error interface
2726
2727 2008-04-08  Dustin J. Mitchell <dustin@zmanda.com>
2728         * server-src/diskfile.c: improve messages when client does not
2729           support required features
2730
2731 2008-04-08  Dustin J. Mitchell <dustin@zmanda.com>
2732         * installcheck/Amanda_Config.pl common-src/conffile.c
2733           common-src/conffile.h: fix deprecation of keywords to
2734           actually issue a warning.  'netusage' is no longer
2735           deprecated.
2736
2737 2008-04-08  Dustin J. Mitchell <dustin@zmanda.com>
2738         * common-src/event.c: use SA_RESTART for child_watch_source
2739
2740 2008-04-07  Dustin J. Mitchell <dustin@zmanda.com>
2741         * perl/Amanda/MainLoop.swg perl/amglue/source.c
2742           installcheck/Amanda_MainLoop.pl: wrap GMainLoop and the 
2743           GSources defined in event.c, using an extensible model
2744         * common-src/event.c: check whether child_watch_source's signal
2745           handler has been replaced, and issue a warning if it has.
2746
2747 2008-04-07  Dustin J. Mitchell <dustin@zmanda.com>
2748         * common-src/queueing.c: fix condition (thanks to Jean-Louis
2749           Martineau)
2750
2751 2008-04-07  Dustin J. Mitchell <dustin@zmanda.com>
2752         * common-src/Makefile.am common-src/queueing-test.c: new tests
2753         * device-src/tests/queue_test.c device-src/tests/Makefile.am: remove
2754         * common-src/queueing.c: fix two bugs:
2755           - spurious in-place memmove on every buffer copy
2756           - silent discard of a final packet if the consumer does not
2757             completely consume it
2758         * common-src/queueing.h: update comments
2759         * common-src/testutils.h: add header-protection macros
2760
2761 2008-04-07  Dustin J. Mitchell <dustin@zmanda.com>
2762         * installcheck/Makefile.am installcheck/Amanda_Device.pl: Add tests
2763           for Amanda::Device
2764
2765 2008-04-07  Dustin J. Mitchell <dustin@zmanda.com>
2766         * man/xml-source/amanda.conf.5.xml: fix typos
2767
2768 2008-04-04  Jean-Louis Martineau <martineau@zmanda.com>
2769         * man/xml-source/*.xml: Use ulink tag to link to wiki.zmanda.com.
2770
2771 2008-04-04  Jean-Louis Martineau <martineau@zmanda.com>
2772         * restore-src/restore.c: Check last_header->type != F_UNKNOWN.
2773
2774 2008-04-01  Dustin J. Mitchell <dustin@zmanda.com>
2775         Suggested by Sunil Sawant <sunil@zmanda.com>
2776         * man/xml-source/amrecover.8.xml: suggest including a config in the
2777           amrecover command line
2778
2779 2008-04-01  John Franks <jfranks@zmanda.com>
2780         * gnulib/regenerate/regenerate gnulib/regenerate/no-restrict.patch:
2781           Patches to reapply after gnulib updates.
2782         * gnulib/inet_ntop.c gnulib/inet_ntop.h gnulib/string.in.h
2783           gnulib/gettimeofday.c gnulib/sys_time.in.h gnulib/base64.c
2784           gnulib/getaddrinfo.c gnulib/Makefile.am gnulib/base64.h
2785           gnulib/getaddrinfo.h:
2786           Remove restricted keywords from source files.
2787
2788 2008-04-01  Satya Ganga <gsat@zmanda.com>
2789         * example/template.d/amanda-S3.conf.in: S3 device should have
2790           "infinite" tape length
2791
2792 2008-03-31  John Franks <jfranks@zmanda.com>
2793         * common-src/stream.c
2794           Fix warning about ininitialized variables.
2795
2796 2008-03-31  John Franks <jfranks@zmanda.com>
2797         * oldrecover-src/Makefile.am xfer-src/Makefile.am
2798           recover-src/Makefile.am server-src/Makefile.am
2799           restore-src/Makefile.am:
2800           Fix build problems with multiply defined symbols.
2801
2802 2008-03-31  Dan Locks <dwlocks@zmanda.com>
2803         * packaging/deb/buildpkg
2804           packaging/rpm/buildpkg: added -p to cp to preserve file timestamps.
2805
2806 2008-03-31  Dustin J. Mitchell <dustin@zmanda.com>, Jean-Louis Martineau <martineau@zmanda.com>
2807         * client-src/sendbackup-gnutar.c client-src/sendsize.c
2808           client-src/selfcheck.c: update amandates whenever possible, but only
2809           complain when it is really needed: when using calcsize, or when
2810           using GNUTAR and --without-gnutar-listdir.
2811         * client-src/amandates.c: Set errno before return of start_amandates
2812         * perl/Amanda/Paths.pm.in: always terminate a perl mod with '1;'
2813
2814 2008-03-31  Jean-Louis Martineau <martineau@zmanda.com>
2815         * server-src/amgetconf.pl: Parse config after setup_applccation call.
2816
2817 2008-03-31  Jean-Louis Martineau <martineau@zmanda.com>
2818         * server-src/amcheck.c: Check errno after full_read.
2819
2820 2008-03-31  Dan Locks <dwlocks@zmanda.com>
2821         * packaging/Makefile.am: add deb subdirectory.
2822
2823 2008-03-31  Dustin J. Mitchell <dustin@zmanda.com>
2824         * common-src/rsh-security.c common-src/ssh-security.c: improve error
2825           messages for resolve_hostname calls
2826
2827 2008-03-27  Dustin J. Mitchell <dustin@zmanda.com>
2828         * common-src/util.c common-src/util.h: remove fullread(), fullwrite()
2829         * gnulib/regenerate/regenerate gnulib/Makefile.am
2830           config/gnulib/gnulib-cache.m4: add full-read, full-write modules
2831         * oldrecover-src/extract_list.c client-src/noop.c
2832           client-src/sendbackup-gnutar.c client-src/sendbackup.c
2833           client-src/sendsize.c client-src/selfcheck.c amandad-src/amandad.c
2834           application-src/amgtar.c recover-src/extract_list.c
2835           server-src/changer.c server-src/logfile.c server-src/amindexd.c
2836           server-src/amcheck.c server-src/dumper.c server-src/chunker.c
2837           server-src/taper-port-source.c server-src/driverio.c
2838           server-src/holding.c server-src/driver.c
2839           server-src/taper-file-source.c restore-src/restore.c
2840           common-src/security-util.c common-src/amanda.h 
2841           tape-src/output-file.c: use gnulib full_read, full_write functions,
2842           which have slightly different error semantics than the corresponding
2843           Amanda functions.
2844
2845 2008-03-27  Jean-Louis Martineau <martineau@zmanda.com>
2846         * application-src/amgtar.c: Add 'CHECK-DEVICE' property.
2847
2848 2008-03-27  Jean-Louis Martineau <martineau@zmanda.com>
2849         * device-src/activate-devpay.c (parse_commandline): Always return.
2850
2851 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
2852         * config/amanda/readline.m4: Don't add READLINE_LIBS to LIBS.
2853         * oldrecover-src/Makefile.am (LDAAD): Add READLINE_LIBS.
2854         * recover-src/Makefile.am (LDAAD): Add READLINE_LIBS.
2855         * config/amanda/swig.m4: AM_CONDITIONAL(WANT_CYGWIN_COPY_PERL_DLL)
2856         * config/amanda/swig.m4: Add library to PERLEXTLIBS on cygwin.
2857         * config/amanda/syshacks.m4: Add '-no-undefined' to AMANDA_ADD_LDFLAGS.
2858         * amandad-src/Makefile.am,
2859         * client-src/Makefile.am, device-src/Makefile.am,
2860           server-src/Makefile.am, server-src/server_util.c,
2861           tape-src/Makefile.am: Add library to many *_LIBADD.
2862         * perl/Makefile.am (install-data-hook): Copy cygwin ddl if
2863           WANT_CYGWIN_COPY_PERL_DLL.
2864
2865 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
2866         * common-src/conffile.c: Fix typo and remove unused prefix.
2867
2868 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
2869         * server-src/reporter.c: Check difference between origsize and outsize
2870           to find if the image is compressed.
2871
2872 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
2873         Greg Troxel reported the bug and possible solution.
2874         * common-src/stream.c (stream_server): New family argument, it is used
2875                                                to create the socket.
2876         * common-src/stream.h (stream_server): New prototype.
2877         * server-src/chunker.c, server-src/taper.c: Call stream_server with
2878           family of 'localhost', it's the name dumper use to contact them.
2879         * restore-src/amidxtaped.c: Call stream_server with AF_INET.
2880         * common-src/bsd-security.c, common-src/security-util.c: Call
2881           stream_server with family of incoming packet.
2882
2883 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
2884         Davor Ocelic reported the problem.
2885         * application-src/Makefile.am: Use applicationexec_PROGRAMS and
2886           applicationexec_SCRIPTS to install executable.
2887
2888 2008-03-25  Jean-Louis Martineau <martineau@zmanda.com>
2889         * common-src/security-util.c (show_stat_info): Use getpwuid_r
2890                                                        and getgrgid_r.
2891 2008-03-25  Dustin J. Mitchell <dustin@zmanda.com>
2892         * config/amanda/swig.m4: fix the fix to the fix for FreeBSD systems'
2893           peculiar linking of threading libraries.
2894
2895 2008-03-20  Dan Locks <dwlocks@zmanda.com>
2896         * packaging/deb/control: removed grep dependency
2897         * packaging/deb/amanda-backup-client.postinst 
2898           packaging/deb/amanda-backup-server.postinst 
2899           packaging/deb/amanda-backup-server.postrm
2900           packaging/deb/amanda-backup-client.postrm:  removed call to
2901           ldconfig to satisfy lintian
2902         * packaging/deb/amanda-backup-server.lintian
2903           packaging/deb/amanda-backup-client.lintian: sorted and added new
2904           overrides
2905         * packaging/deb/amanda-backup-client.dirs: removed var/amanda
2906
2907 2008-03-18  Dustin J. Mitchell <dustin@zmanda.com>
2908         * device-src/activate-devpay.c: fix type warning
2909
2910 2008-03-17  Jean-Louis Martineau <martineau@zmanda.com>
2911         * server-src/diskfile.c: Correctly check if two hosts map to the same
2912                                  name.
2913
2914 2008-03-15  Dustin J. Mitchell <dustin@zmanda.com>
2915         * perl/Makefile.am perl/amglue/mainloop.c perl/amglue/amglue.h
2916           perl/amglue/source.c: rename mainloop.c to source.c to avoid
2917           conflicts with MainLoop.c on case-insensitive filesystems
2918
2919 2008-03-14  Dan Locks <dwlocks@zmanda.com>
2920         * Initial debian release: This package is based on Bdale Garbee's
2921           work as the official debian maintainer for amanda.
2922
2923 2008-03-14  Jean-Louis Martineau <martineau@zmanda.com>
2924         * man/xml-source/amanda.conf.5.xml: Document global and by dumptype
2925                                             property.
2926         * server-src/server_util.c: Rename _proplist to _property.
2927         * server-src/diskfile.c: Rename _proplist to _property.
2928         * server-src/amadmin.c (disklist_one): Print property.
2929         * perl/Amanda/Config.swg: Add new constants to Amanda::Config
2930         * installcheck/Amanda_Config.pl: Test global property.
2931         * common-src/conffile.c: Add global and by dumptype property.
2932         * common-src/conffile.h: Add global and by dumptype property.
2933
2934 2008-03-14  Dustin J. Mitchell <dustin@zmanda.com>
2935         * perl/Amanda/MainLoop.swg perl/Makefile.am: new perl module
2936         * perl/amglue/amglue.h perl/amglue/mainloop.c: support for new module
2937         * installcheck/Amanda_MainLoop.pl installcheck/Makefile.am: tests for
2938           new module
2939         * common-src/event.h: fix typo in comment
2940
2941 2008-03-14  Dustin J. Mitchell <dustin@zmanda.com>
2942         * xfer-src/dest-null.c: fix Solaris 8 compilation problem: isprint()
2943           expects an int, not a char.
2944
2945 2008-03-13  Dan Locks <dwlocks@zmanda.com>
2946         * packaging/rpm/amanda.spec: changed the PKG_CONFIG_PATH macro so that
2947           it works with rpm versions earlier than 4.4
2948
2949 2008-03-13  Dustin J. Mitchell <dustin@zmanda.com>
2950         * device-src/device-queueing.c device-src/device-queueing.h
2951           server-src/taper-source.c server-src/taper-source.h
2952           server-src/taper-source-test.c server-src/taper.c
2953           common-src/queueing.c common-src/queueing.h: change ints in
2954           consumer/producer to (s)size_t
2955         * device-src/device.c device-src/device-queueing.c
2956           device-src/tests/semaphore-test.c device-src/tests/Makefile.am
2957           device-src/queueing.c device-src/semaphore.c
2958           device-src/device-queueing.h device-src/queueing.h
2959           device-src/Makefile.am device-src/semaphore.h
2960           device-src/property.h server-src/taper.c common-src/queueing.c
2961           common-src/queueing.h common-src/semaphore-test.c
2962           common-src/semaphore.c common-src/semaphore.h
2963           common-src/Makefile.am: move queueing and semaphore into
2964           common-src, along with their tests
2965         * configure.in xfer-src/source-random.c xfer-src/xfer-element.h
2966           xfer-src/xfer-dest.c xfer-src/xfer-test.c xfer-src/xfer.c
2967           xfer-src/xfer-dest.h xfer-src/amxfer.h xfer-src/dest-null.c
2968           xfer-src/Makefile.am xfer-src/xfer.h xfer-src/xfer-element.c
2969           xfer-src/filter-xor.c Makefile.am: introduce transfer architecture
2970         * xfer-src/xmsg.c xfer-src/xfer-element.h xfer-src/xfer-test.c
2971           xfer-src/xmsg.h xfer-src/xfer.c xfer-src/amxfer.h
2972           xfer-src/Makefile.am xfer-src/xfer.h: support for sending
2973           and receiving XMsgs.
2974         * common-src/event.c common-src/event.h: add default_event_loop().
2975         * device-src/device.c server-src/taper-source-test.c common-src/util.c
2976           common-src/util.h common-src/glib-util.c common-src/glib-util.h:
2977           create new glib_init() to do g_type_init(), initialize threads, etc.
2978
2979 2008-03-13  Jean-Louis Martineau <martineau@zmanda.com>
2980         * client-src/sendsize.c: Don't use sscanf for est->qamname because it
2981                                  can have a '%'.
2982         * server-src/diskfile.c: Clean the diskname before using it as a regex.
2983         * common-src/protocol.c: Fix bug if packet have a '%' character.
2984
2985 2008-03-13  Jean-Louis Martineau <martineau@zmanda.com>
2986         * installcheck/Installcheck/Run.pm: Increase size of TAPE.
2987
2988 2008-03-12  Dustin J. Mitchell <dustin@zmanda.com>
2989         * common-src/event.c: Use %jd to print a pid_t, since it may be
2990           larger on some platforms.
2991
2992 2008-03-12  Jean-Louis Martineau <martineau@zmanda.com>
2993         * common-src/conffile.c: Fix solaris 8 cc warning.
2994
2995 2008-03-12  Jean-Louis Martineau <martineau@zmanda.com>
2996         * client-src/sendbackup.c: Set stroptions to "".
2997
2998 2008-03-12  Dustin J. Mitchell <dustin@zmanda.com>
2999         * common-src/event.c common-src/event.h common-src/event-test.c:
3000           add two new GSources: child_watch_source (sends events when a child
3001           dies) and fdsource (sends events when file descriptors match
3002           conditions).  Thanks to Jean-Louis Martineau for finding and fixing
3003           a race condition.
3004
3005 2008-03-12  Dustin J. Mitchell <dustin@zmanda.com>
3006         * gnulib/regenerate/regenerate gnulib/Makefile.am DEVELOPING: update
3007           documentation to reflect use of gnulib's git repository
3008
3009 2008-03-12  Jean-Louis Martineau <martineau@zmanda.com>
3010         * installcheck/Makefile.am: Remove CONFIG_CLOBBER_MY_CONFIG,
3011                                     it is done automaticaly.
3012         * config/amanda/defaults.m4: AC_SUBST(CONFIG_CLOBBER_MY_CONFIG) to not
3013                                      conflict with make CLOBBER_MY_CONFIG.
3014
3015 2008-03-12  Jean-Louis Martineau <martineau@zmanda.com>
3016         * installcheck/Makefile.am: Use CONFIG_CLOBBER_MY_CONFIG for Makefile
3017                                     variable.
3018
3019 2008-03-11  Dan Locks <dwlocks@zmanda.com>
3020         * packaging/rpm/buildpkg: made the script quieter
3021
3022 2008-03-12  Dan Locks <dwlocks@zmanda.com>
3023         * packaging/rpm/amanda.spec: fixed a number of complaints from rpmlint,
3024           added --quiet to the configure invocation
3025
3026 2008-03-10  Jean-Louis Martineau <martineau@zmanda.com>
3027         * gnulib: Update to latest version, add getopt module.
3028
3029 2008-03-07  Jean-Louis Martineau <martineau@zmanda.com>
3030         * oldrecover-src/Makefile.am, example/Makefile.am,
3031           amandad-src/Makefile.am, recover-src/Makefile.am,
3032           restore-src/Makefile.am, Makefile.am: Include config/automake/vars.am.
3033         * installcheck/Amanda_Config.pl: Check config_filename.
3034         * installcheck/Installcheck/Config.pm: Use local amandates and
3035                                                gnutar_listdir.
3036         * installcheck/Makefile.am: Take a copy of amanda-client.conf
3037         * config/amanda/defaults.m4: AC_SUBST(CLOBBER_MY_CONFIG)
3038         * config/automake/scripts.am: DISTCLEANFILES += $(SCRIPTS_INCLUDE)
3039         * config/automake/installperms.am: installperms.sh in top_builddir,
3040                                            DISTCLEANFILES += $(installperms_sh)
3041         * Makefile.am: add '--without-amperldir CLOBBER_MY_CONFIG=OK' to
3042                        DISTCHECK_CONFIGURE_FLAGS.
3043         * common-src/Makefile.am: distclean-local: remove svn-info.h.
3044
3045 2008-03-07  Dan Locks <dwlocks@zmanda.com>
3046         * packaging/rpm/buildpkg:  Simplified usage of packaging script by
3047           creating a tarball from existing source.
3048
3049 2008-03-06  Jean-Louis Martineau <martineau@zmanda.com>
3050         * installcheck/Installcheck/Run.pm: merge from application-api.
3051         * installcheck/Installcheck/Config.pm: merge from application-api.
3052
3053 2008-03-06  Jean-Louis Martineau <martineau@zmanda.com>
3054         * merge application-api
3055
3056 2008-03-06  Jean-Louis Martineau <martineau@zmanda.com>
3057         * common-src/Makefile.am: dest=$(amlibexecdir).
3058
3059 2008-03-06  Jean-Louis Martineau <martineau@zmanda.com>
3060         * changer-src/Makefile.am: Rename SCRIPTSDATA to SCRIPTS_INCLUDE,
3061                                    Add chg-lib.sh.in to EXTRA_DIST.
3062         * dumper-src/Makefile.am: Rename SCRIPTSDATA to SCRIPTS_INCLUDE,
3063                                   Add generic-dumper.pl to EXTRA_DIST.
3064         * common-src/Makefile.am: Add amanda-sh-lib.sh to SCRIPTS_INCLUDE,
3065                                   Add amanda-sh-lib.sh.in to EXTRA_DIST.
3066
3067 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3068         * changer-src/Makefile.am: Move chg-lib.sh to SCRIPTSDATA.
3069         * dumper-src/Makefile.am: Move generic-dumper to SCRIPTSDATA.
3070
3071 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3072         * config/amanda/swig.m4: Check for *freebsd[123456]*
3073
3074 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3075         * changer-src/chg-scsi-chio.c: Compile fix.
3076         * changer-src/scsi-chio.c: Compile fix.
3077         * config/amanda/changer.m4: Check for linux/chio.h
3078
3079 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3080         * packaging/rpm/amanda.spec: Give CFLAGS after ./configure
3081
3082 2008-03-05  Dustin J. Mitchell <dustin@zmanda.com>
3083         * config/amanda/swig.m4: With many thanks to John E. Hein
3084           <jhein@timing.com>, fix the comment and make the change committed
3085           yesterday apply to all FreeBSD < 7.0.
3086
3087 2008-03-05  Dustin J. Mitchell <dustin@zmanda.com>
3088         * config/amanda/summary.m4: quote all warning messages that will be
3089           included in heredocs, to avoid spurious interpretation of backquotes
3090
3091 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3092         * packaging/rpm/amanda.spec: Add %{PERLSITELIB} in %files sections.
3093
3094 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3095         * restore-src/amidxtaped: Use default config if amrecover doesn't send
3096                         a config name.  (amoldrecover doesn't send a config).
3097         * restore-src/restore.c: amrecover from 2.4.5 doesn't send the filenum,
3098           so desired_tape->numfiles == 0.
3099           If amidxtaped is launched directly from xinetd, then
3100           flags->pipe_to_fd == STDOUT_FILENO, but this test should only
3101           succeed for amrestore of amfetchdump.
3102
3103 2008-03-05  Jean-Louis Martineau <martineau@zmanda.com>
3104         * device-src/tape-device.c: Set d_self->is_eof to FALSE.
3105
3106 2008-03-04  Dustin J. Mitchell <dustin@zmanda.com>
3107         * perl/Makefile.am config/amanda/swig.m4: add a special case for
3108           FreeBSD-6.2: include -lpthread in the linking of each perl
3109           extension, because libgthread does not pull in libpthread as
3110           it does on other platforms.
3111
3112 2008-03-03  Jean-Louis Martineau <martineau@zmanda.com>
3113         * common-src/security-util.c: getnameinfo return != 0 on error.
3114
3115 2008-03-03  Jean-Louis Martineau <martineau@zmanda.com>
3116         * config/amanda/dumpers.m4: Typo.
3117
3118 2008-03-03  Jean-Louis Martineau <martineau@zmanda.com>
3119         * device-src/tests/vfs_test.c, common-src/event-test.c: Fix ignoring
3120           return value of 'pipe', declared with attribute warn_unused_result.
3121
3122 2008-02-29  Dustin J. Mitchell <dustin@zmanda.com>
3123         * common-src/amanda.h: add <stdint.h>
3124
3125 2008-02-28  Dustin J. Mitchell <dustin@zmanda.com>
3126         * config/automake/installperms.am: --without-installperms now
3127           generates a shell-parsable list of desired permissions
3128         * Makefile.am: erase installperms.sh before beginning a 'make 
3129           install'
3130         * oldrecover-src/Makefile.am client-src/Makefile.am
3131           recover-src/Makefile.am server-src/Makefile.am: give mode
3132           bits in octal
3133
3134 2008-02-28  Dustin J. Mitchell <dustin@zmanda.com>
3135         Thanks to John E. Hein <jhein@timing.com> for identifying this problem
3136         * perl/Amanda/Tests.swg: expose sizeof(size_t) to perl
3137         * installcheck/Amanda_Config.pl: use a properly-sized constant to
3138           check parsing of large configuration values
3139
3140
3141 2008-02-28  Jean-Louis Martineau <martineau@zmanda.com>
3142         * server-src/amindexd.c: Compute maxpart, call clean_dump.
3143         * server-src/disk_history.h (DUMP_ITEM): Add maxpart field.
3144         * server-src/disk_history.h (add_dump): New prototype,
3145                                                 add maxpart argument.
3146         * server-src/disk_history.c (add_dump): Remove a DUMP_ITEM if the
3147                                         previous part is not already added.
3148         * server-src/disk_history.c (clean_dump): New function to remove
3149                                         DUMP_ITEM if all part are not added.
3150         * common-src/tapelist.h (tapelist_t): Add partnum field.
3151         * common-src/tapelist.h (append_to_tapelist): New prototype,
3152                                                       add partnum argument.
3153         * common-src/tapelist.c (append_to_tapelist): New partnum argument.
3154         * restore-src/amfetchdump.c: Use new append_to_tapelist prototype.
3155
3156 2008-02-28  Jean-Louis Martineau <martineau@zmanda.com>
3157         * common-src/security-util.c: Don't write unclaimed warning if we have
3158                                       an accept function.
3159
3160 2008-02-27  Dustin J. Mitchell <dustin@zmanda.com>
3161         * common-src/testutils.c common-src/testutils.h
3162           common-src/Makefile.am: add libtestutils.la
3163         * common-src/event-test.c common-src/amflock-test.c:
3164           use libtestutils.la
3165
3166 2008-02-27  Jean-Louis Martineau <martineau@zmanda.com>
3167         * server-src/find.c: Use sort_key in switch statement.
3168
3169 2008-02-26  Jean-Louis Martineau <martineau@zmanda.com>
3170         * NEWS, ReleaseNotes: Document --with-amlibdir.
3171         * config/amanda/dirs.m4: Add AS_HELP_STRING for --without-amlibdir and
3172                                  --without-amlibexecdir,
3173                                  Set AMPERLLIB to $amlibdir/perl.
3174
3175 2008-02-26  Dustin J. Mitchell <dustin@zmanda.com>
3176         * common-src/event-test.c: a more robust and effective test of
3177           EV_READFD; thanks to Jean-Louis Martineau for the suggestions.
3178
3179 2008-02-26  Dustin J. Mitchell <dustin@zmanda.com>
3180         * perl/Makefile.am config/amanda/dirs.m4 config/amanda/summary.m4:
3181           add --with-amperldir, --without-amperldir, and install perl modules
3182           in Perl's installsitearch by default; thanks to Orion Poplawski
3183           <orion@cora.nwra.com> for help and suggestions.
3184
3185 2008-02-26  Jean-Louis Martineau <martineau@zmanda.com>
3186         * client-src/getfsent.c: Don't fail if stat of mount point fail.
3187
3188 2008-02-26  Jean-Louis Martineau <martineau@zmanda.com>
3189         * common-src/util.c: Don't log a note if CLIENT_LOGIN == dumpuser for
3190                              RUNNING_AS_DUMPUSER_PREFERRED.
3191
3192 2008-02-25  Jean-Louis Martineau <martineau@zmanda.com>
3193         * server-src/reporter.c: Report size of data on holding disk.
3194
3195 2008-02-20  Jean-Louis Martineau <martineau@zmanda.com>
3196         * config/amanda/dirs.m4: Add --with-amlibdir and --with-amlibexecdir.
3197
3198 2008-02-20  Jean-Louis Martineau <martineau@zmanda.com>
3199         * server-src/amcheck.c, server-src/dumper.c,
3200           server-src/planner.c: Call waitpid to cleanup defunct process.
3201
3202 2008-02-20  Dustin J. Mitchell <dustin@zmanda.com>
3203         * device-src/tape-posix.c: keep ioctl error message in
3204           debug log
3205
3206 2008-02-19  Jean-Louis Martineau <martineau@zmanda.com>
3207         * device-src/device.c, device-src/null-device.c,
3208           device-src/s3.c, device-src/tape-device.c,
3209           device-src/queueing.h, device-src/s3.h,
3210           device-src/vfs-device.c, device-src/rait-device.c,
3211           server-src/taper-source-test.c, server-src/server_util.c,
3212           server-src/taper-disk-port-source.c, perl/Amanda/Device.swg,
3213           perl/amglue/integers.swg, restore-src/restore.c,
3214           common-src/glib-util.c: Fix solaris compiler warning.
3215
3216 2008-02-19  Jean-Louis Martineau <martineau@zmanda.com>
3217         * common-src/util.c (quote_string): Quote single quote (').
3218         * server-src/find.c:Correctly compute length of diskname.
3219
3220 2008-02-15  Dustin J. Mitchell <dustin@zmanda.com>
3221         * configure.in config/amanda/progs.m4 config/amanda/flags.m4:
3222           use AC_PROG_EGREP instead of the Amanda version
3223         * server-src/find.c: fix compiler warning on Solaris 8
3224
3225 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
3226         * packaging/rpm/amanda.spec: Remove amverify*
3227
3228 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
3229         * oldrecover-src/Makefile.am: Build all files in the build directory.
3230         * recover-src/Makefile.am: Build all files in the build directory.
3231         * config/amanda/config.m4: Use $srcdir to buld common-src/svn-info.h
3232         * configure.in: execute AMANDA_GET_SVN_INFO after AC_OUTPUT because
3233           AC_OUTPUT create the common-src directory.
3234
3235 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
3236         * server-src/amadmin.c: Use 'long long' and '%lld' to sscanf.
3237         * file server-src/infofile.c: Use %jd to print intmax_t value.
3238         * file server-src/driver.c: Use 'long long' and '%lld' to sscanf.
3239
3240 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
3241         * packaging/rpm/amanda.spec: Fix typo.
3242
3243 2008-02-15  Jean-Louis Martineau <martineau@zmanda.com>
3244         * server-src/amdump.sh: Don't use 'date -d', use sed.
3245
3246 2008-02-14  Dustin J. Mitchell <dustin@zmanda.com>
3247         * installcheck/Installcheck/Run.pm: run test dumps of a smaller
3248           directory, to avoid overflowing test tapes
3249
3250 2008-02-14  Dustin J. Mitchell <dustin@zmanda.com>
3251         * dumper-src/amstar.pl dumper-src/amgtar.pl
3252           device-src/tests/get-activation-key.pl server-src/amcheckdump.pl
3253           server-src/amdevcheck.pl: add GPL header
3254
3255 2008-02-14  Dustin J. Mitchell <dustin@zmanda.com>
3256         * installcheck/Makefile.am installcheck/amdump.pl: add a check
3257           that runs 'amdump' directly, since that fails often
3258
3259 2008-02-14  Dustin J. Mitchell <dustin@zmanda.com>
3260         * common-src/event-test.c: make tests more robust to environmental
3261           variations, clean up forked children
3262
3263 2008-02-13  Dustin J. Mitchell <dustin@zmanda.com>
3264         * common-src/security-util.c 
3265           common-src/security-util.h: don't cast pointers to
3266           integers for tcp_conn event id's
3267
3268 2008-02-13  Dan Locks <dwlocks@zmanda.com>
3269         * packaging/rpm/amanda.spec: added a check for PKG_CONFIG_PATH in the
3270           build environment as well as if provided on rpmbuild commandline.
3271           Conditionalized this var to handle cross compiling on FC8.
3272
3273 2008-02-12  Dustin J. Mitchell <dustin@zmanda.com>
3274         * amandad-src/amandad.c: use sizeof() instead of strlen()
3275           in a constant expression
3276
3277 2008-02-12  Dustin J. Mitchell <dustin@zmanda.com>
3278         * amandad-src/amandad.c: initialize as->service
3279         * common-src/event.c common-src/event.h: new GMainLoop-based
3280           version of the event library, allowing GMainLoop-based and 
3281           event-based processes to co-exist peacefully
3282
3283 2008-02-12  Dustin J. Mitchell <dustin@zmanda.com>
3284         * installcheck/amcheckdump.pl: fix typo
3285
3286 2008-02-12  Jean-Louis Martineau <martineau@zmanda.com>
3287         * server-src/dumper.c: Fail if no header or no data.
3288
3289 2008-02-12  Jean-Louis Martineau <martineau@zmanda.com>
3290         * server-src/amstatus.pl: Report failure if dumper succeed and
3291                                   chunker failed.
3292
3293 2008-02-12  Jean-Louis Martineau <martineau@zmanda.com>
3294         * common-src/conffile.h (config_name, config_dir, config_filename):
3295                                  Remove extern declaration.
3296         * common-src/conffile.h (get_config_name, get_config_dir,
3297                                  get_config_filename): New prototype.
3298         * common-src/conffile.c (config_name, config_dir, config_filename):
3299                                  Declare static.
3300         * common-src/conffile.h (get_config_name, get_config_dir,
3301                                  get_config_filename): New functions.
3302         * perl/Amanda/Config.swg: Don't inline the functions.
3303         * oldrecover-src/extract_list.c, client-src/sendbackup.c,
3304           client-src/sendsize.c, client-src/selfcheck.c,
3305           recover-src/amrecover.c, recover-src/extract_list.c,
3306           server-src/changer.c, server-src/amlogroll.c,
3307           server-src/amindexd.c, server-src/amcheck.c,
3308           server-src/dumper.c, server-src/planner.c,
3309           server-src/chunker.c, server-src/amadmin.c,
3310           server-src/amtape.c, server-src/amcleanupdisk.c,
3311           server-src/amflush.c, server-src/amtrmlog.c,
3312           server-src/driverio.c, server-src/driver.c,
3313           server-src/reporter.c, server-src/taper.c,
3314           server-src/amtrmidx.c, server-src/diskfile.c,
3315           server-src/amlabel.c,
3316           restore-src/amfetchdump.c: Use new functions.
3317
3318 2008-02-12  Dustin J. Mitchell <dustin@zmanda.com>
3319         * common-src/event-test.c common-src/Makefile.am: add checks
3320           for the event module
3321
3322 2008-02-12  Dustin J. Mitchell <dustin@zmanda.com>
3323         * server-src/dumper.c server-src/server_util.c
3324           server-src/infofile.c server-src/amtrmlog.c common-src/debug.c
3325           common-src/file.c: Always call mkpdir without the 02000 bit set,
3326           as it is not needed and causes problems on MacOS X.
3327
3328 2008-02-11  Dustin J. Mitchell <dustin@zmanda.com>
3329         * all source files: update GPL dates
3330         * perl/*: use LGPL instead of GPL
3331
3332 2008-02-11  Dustin J. Mitchell <dustin@zmanda.com>
3333         * amandad-src/amandad.c: fix use of non-constant array size
3334
3335 2008-02-11  Dustin J. Mitchell <dustin@zmanda.com>
3336         * amandad-src/amandad.c: add hack to avoid a race condition in
3337           sendbackup operation
3338         * common-src/security-util.c: issue debug log message when data
3339           tokens are dropped by the security API
3340
3341 2008-02-07  Jean-Louis Martineau <martineau@zmanda.com>
3342         * recover-src/amrecover.c: Use tapedev from server if it is not set
3343                                    in amanda.client.conf
3344         * example/amanda-client.conf.in: Document it.
3345
3346 2008-02-07  Jean-Louis Martineau <martineau@zmanda.com>
3347         * device-src/tape-device.c (tape_device_init): Init min_block_size
3348           and fixed_block_size to 32768.
3349
3350 2008-02-07  Dustin J. Mitchell <dustin@zmanda.com>
3351         * packaging/rpm/amanda_enterprise.spec man/Makefile.am
3352           man/xml-source/amverify.8.xml man/xml-source/amverifyrun.8.xml
3353           man/xml-source/amcheckdump.8.xml server-src/amverifyrun.sh
3354           server-src/amverify.sh server-src/Makefile.am: remove amverify*
3355         * server-src/amdevcheck.pl: tweak @ARGV parsing
3356         * server-src/amcheckdump.pl installcheck/Installcheck/Run.pm
3357           installcheck/amcheckdump.pl: significant rewrite to catch more errors
3358           and not loop for ever on some errors.
3359
3360 2008-02-01  Dustin J. Mitchell <dustin@zmanda.com>
3361         * server-src/amgetconf.pl installcheck/amgetconf.pl
3362           common-src/conffile.c: fix and test amgetconf to allow extra
3363           command-line arguments (undocumented), to allow -o options without a
3364           space, and to correctly return empty results for empty build
3365           variables
3366
3367 2008-02-01  Dan Locks <dwlocks@zmanda.com>
3368         * packaging/rpm/amanda.spec: added amdumpcheck.8.gz to the %files list
3369           for both client and server, removed amplot from client, added missing
3370           directory %{SYSCONFDIR}/amanda
3371
3372 2008-01-29  Dan Locks <dwlocks@zmanda.com>
3373         * packaging/rpm/amanda.spec: changed %{SYSCONFDIR} to %{LOCALSTATEDIR}
3374           where amanda/amandates is concerned.  also added %{LOCALSTATEDIR} to
3375           the %files list.
3376
3377 2008-01-29  Dan Locks <dwlocks@zmanda.com>
3378         * man/xml-source/* added http://wiki.zmanda.com to the "see also"
3379           section
3380
3381 2008-01-29  Jean-Louis Martineau <martineau@zmanda.com>
3382         * client-src/sendbackup.c: Check for g_options.
3383         * client-src/sendsize.c: Check for g_options.
3384         * client-src/selfcheck.c: Check for g_options.
3385         * amandad-src/amandad_util.c (free_g_options): Check g_options != NULL.
3386
3387 2008-01-28  Jean-Louis Martineau <martineau@zmanda.com>
3388         * server-src/amstatus.pl: Fix "Use of uninitialized value in string".
3389
3390 2008-01-28  Dustin J. Mitchell <dustin@zmanda.com>
3391         * installcheck/Amanda_Config.pl common-src/conffile.c: uppercase
3392           displayunit, and add a unit test to be sure.
3393
3394 2008-01-28  Jean-Louis Martineau <martineau@zmanda.com>
3395         * server-src/amstatus.pl: handle lowercase displayunit.
3396
3397 2008-01-28  Dustin J. Mitchell <dustin@zmanda.com>
3398         * configure.in config/amanda/ipv6.m4 common-src/amanda.h: check
3399           for netinet/in.h and in_port_t, and define the latter if 
3400           necessary.  Thanks to Craig Dewick <cdewick@lios.apana.org.au>
3401           for the suggestion.
3402
3403 2008-01-28  Paddy Sreenivasan <paddy@zmanda.com>
3404         * man/xml-source/amanda.8.xml: Update amanda(8) to reflect 2.6.0
3405           status
3406
3407 2008-01-28  Jean-Louis Martineau <martineau@zmanda.com>
3408         * amandad-src/amandad.c: Send service stderr to amandad debug file,
3409           Wait for service termination and send error message to server.
3410
3411 2008-01-28  Jean-Louis Martineau <martineau@zmanda.com>
3412         * device-src/device.c: Set PROPERTY_BLOCK_SIZE with a G_TYPE_INT
3413                                Set PROPERTY_READ_BUFFER_SIZE with a G_TYPE_UINT
3414
3415 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3416         * man/Makefile.am man/xml-source/amcheckdump.8.xml: new manpage
3417         * server-src/amcheckdump.pl: fix usage message
3418
3419 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3420         * configure.in config/amanda/userid.m4: add --with-single-userid
3421
3422 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3423         * server-src/amfreetapes.sh: remove unused script
3424
3425 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3426         * perl/amglue/amglue.h perl/amglue/bigint.c: Include integer limits
3427           for all amglue files where they are missing from glib headers
3428
3429 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3430         * installcheck/Makefile.am: condition installchecks on the selected
3431           components
3432
3433 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3434         * installcheck/Makefile.am Makefile.am: distribute
3435           installcheck/Installcheck scripts, make sure enough parameters
3436           are passed along to distcheck for it to succeed, and also clean
3437           up properly after tests are run.
3438
3439 2008-01-22  Dustin J. Mitchell <dustin@zmanda.com>
3440         * config/amanda/dumpers.m4: eliminate strange warning when
3441           --without-smbclient is given
3442
3443 2008-01-18  Dustin J. Mitchell <dustin@zmanda.com>
3444         * server-src/amgetconf.pl perl/Amanda/Constants.pm.in
3445           installcheck/Amanda_Types.pl installcheck/Amanda_Config.pl
3446           installcheck/Amanda_Tapelist.pl installcheck/Amanda_Debug.pl
3447           installcheck/Amanda_Changer.pl installcheck/amdevcheck.pl
3448           installcheck/Installcheck/Config.pm
3449           installcheck/Amanda_Cmdline.pl installcheck/amcheckdump.pl
3450           installcheck/Amanda_Logfile.pl installcheck/amgetconf.pl:
3451           accumulated tweaks and updates to installchecks
3452
3453 2008-01-18  Dustin J. Mitchell <dustin@zmanda.com>
3454         * perl/Amanda/Tests.swg perl/Makefile.am installcheck/bigint.pl
3455           installcheck/Makefile.am: new tests for integer-handling
3456           SWIG support, including an installed module (Amanda::Test) that
3457           is not used except by this test.
3458
3459 2008-01-18  Dustin J. Mitchell <dustin@zmanda.com>
3460         * installcheck/Amanda_Types.pl
3461           installcheck/Amanda_Config.pl installcheck/Amanda_Changer.pl
3462           installcheck/Amconfig.pm.in installcheck/amdevcheck.pl
3463           installcheck/Installcheck installcheck/Installcheck/Run.pm
3464           installcheck/Installcheck/Config.pm installcheck/Makefile.am
3465           installcheck/amcheckdump.pl installcheck/Amanda_Logfile.pl
3466           installcheck/amgetconf.pl: tweaks:
3467            - Move installcheck utilities to the Installcheck::* namespace
3468            - add Installcheck::Run to help with setting up amdump runs, and
3469              running applications in general
3470            - Add complete runs to amdevcheck, amcheckdump
3471            - Return a nonzero exit status from amgetconf when an invalid 
3472              configuration parameter is specified.
3473
3474 2008-01-18  Dustin J. Mitchell <dustin@zmanda.com>
3475         * perl/Amanda/Tapelist.swg perl/Amanda/Tapefile.swg perl/Makefile.am:
3476           new module (Tapelist) replaces old stub (Tapefile)
3477         * installcheck/Amanda_Tapelist.pl installcheck/Makefile.am: test new
3478           module
3479         * server-src/amcheckdump.pl installcheck/Amanda_Logfile.pl: use new
3480           module
3481
3482 2008-01-18  Dustin J. Mitchell <dustin@zmanda.com>
3483         * perl/Makefile.am perl/Amanda/Debug.swg: handle die() and warn() with
3484           critical() and warning(), respectively
3485         * server-src/amgetconf.pl server-src/amcheckdump.pl
3486           server-src/amdevcheck.pl: use die()
3487         * installcheck/Amanda_Config.pl installcheck/Amanda_Changer.pl
3488           installcheck/Amanda_Debug.pl installcheck/Makefile.am: new/updated
3489           unit tests
3490
3491 2008-01-18  Dustin J. Mitchell <dustin@zmanda.com>
3492         * man/xml-source/amgetconf.8.xml server-src/amgetconf.pl
3493           server-src/getconf.c server-src/Makefile.am: rewrite amgetconf in
3494           Perl, and add the ability to list available build variables.
3495         * config/amanda/krb4-security.m4 config/amanda/krb5-security.m4
3496           config/amanda/bsd-security.m4 config/amanda/dumpers.m4
3497           config/amanda/bsdtcp-security.m4 config/amanda/userid.m4
3498           config/amanda/rsh-security.m4 config/amanda/ssh-security.m4
3499           config/amanda/bsdudp-security.m4 config/amanda/compress.m4
3500           config/amanda/debugging.m4 config/amanda/flock.m4: AC_SUBST a bunch
3501           of constants for use in Amanda::Constants
3502         * perl/Makefile.am perl/Amanda/Paths.pm.in
3503           perl/Amanda/Constants.pm.in: add new constants
3504         * perl/Amanda/Config.swg: add getconf_byname_strs
3505         * installcheck/amgetconf.pl: check new functionality
3506         * perl/Amanda/Util.swg common-src/util.c common-src/util.h: add
3507           RUNNING_AS_ANY
3508
3509 2008-01-17  Jean-Louis Martineau <martineau@zmanda.com>
3510         * packaging/rpm/buildpkg, packaging/rpm/amanda.spec,
3511           configure.in: Set for release 2.6.1alpha.
3512
3513 2008-01-16  Dustin J. Mitchell <dustin@zmanda.com>
3514         * installcheck/Makefile.am: Require user to specify
3515           CLOBBER_MY_CONFIG=OK when running installchecks
3516
3517 2008-01-16  Jean-Louis Martineau <martineau@zmanda.com>
3518         * packaging/rpm/amanda.spec: Don't set PKG_CONFIG_PATH.
3519
3520 2008-01-16  Jean-Louis Martineau <martineau@zmanda.com>
3521         * oldrecover-src/extract_list.c, client-src/sendbackup.c,
3522           client-src/sendsize.c, client-src/selfcheck.c,
3523           recover-src/extract_list.c, server-src/changer.c,
3524           server-src/amflush.c, server-src/driverio.c,
3525           common-src/pipespawn.c: Call safe_fd before exec*.
3526
3527 2008-01-15  Jean-Louis Martineau <martineau@zmanda.com>
3528         * packaging/rpm/amanda.spec: Remove build_host.
3529
3530 2008-01-15  Dustin J. Mitchell <dustin@zmanda.com>
3531         * perl/Amanda/Types.swg perl/Amanda/Config.swg perl/Amanda/Device.swg
3532           perl/amglue/integers.swg: fix typos and compiler warnings
3533
3534 2008-01-15  Jean-Louis Martineau <martineau@zmanda.com>
3535         * packaging/Makefile.am: New file.
3536         * packaging/README: New file.
3537         * packaging/rpm/buildpkg: New file.
3538         * packaging/rpm/amanda.spec: New file.
3539         * configure.in
3540         * config/amanda/dirs.m4 (AMANDA_WITH_DUMPERDIR): Give a warning if used.
3541         * config/amanda/dirs.m4 (AMANDA_EXPAND_DIRS): Expand DUMPER_DIR to
3542                                          ${amlibexecdir}/application
3543         * Makefile.am (SUBDIRS): Add packaging.
3544         * amanda.spec: Remove file.
3545
3546 2008-01-15  Jean-Louis Martineau <martineau@zmanda.com>
3547         * device-src/Makefile.am (AM_CFLAGS): Set to $(AMANDA_WARNING_CFLAGS)
3548         * device-src/tape-device.c, device-src/tape-posix.c,
3549           device-src/vfs-device.c: include "util.h"
3550         * device-src/rait-device.c: fix compiler warning.
3551
3552 2008-01-14  Dustin J. Mitchell <dustin@zmanda.com>
3553         * perl/amglue/bigint.c: fix the range-checking mechanics for large
3554           integers, since the precompiler seems to get confused by large
3555           constants.
3556
3557 2008-01-14  Dustin J. Mitchell <dustin@zmanda.com>
3558         * config/amanda/krb5-security.m4: abort configure run if krb5
3559           is requested by libraries aren't found
3560
3561 2008-01-13  Dustin J. Mitchell <dustin@zmanda.com>
3562         * man/xml-source/amanda.conf.5.xml: use &#215; instead of &times;
3563
3564 2008-01-11  Paddy Sreenivasan <paddy@zmanda.com>
3565         * device-src/Makefile.am: Don't install queueing.h and device.h
3566
3567 2008-01-11  Dustin J. Mitchell <dustin@zmanda.com>
3568         * perl/Amanda/Config.swg perl/Amanda/Debug.swg: complete documentation
3569
3570 2008-01-11  Jean-Louis Martineau <martineau@zmanda.com>
3571         * amandad-src/Makefile.am: Install amandad in $libexecdir/amanda
3572         * installcheck/amgetconf.pl: usetimestamps defaults to yes.
3573         * NEWS, ReleaseNotes: Notes about make installcheck.
3574
3575 2008-01-11  Jean-Louis Martineau <martineau@zmanda.com>
3576         * NEWS: Add amcryptsimple, amgpgcrypt, amserverconfig and amaddclient.
3577         * ReleaseNotes: Ditto.
3578
3579 2008-01-11  Jean-Louis Martineau <martineau@zmanda.com>
3580         * ReleaseNotes: Update for amanda-2.6.0
3581         * News: Update for amanda-2.6.0
3582         * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0b1")
3583         * Makefile.am (pkgdata_DATA): Add NEWS, ChangeLog and amanda.spec
3584         * amanda.spec: %{!?amanda_version: %define amanda_version 2.6.0b1}
3585
3586 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3587         * common-src/conffile.c (usetimestamps): Default ot yes.
3588         * man/xml-source/amanda.conf.5.xml (usetimestamps): Document it.
3589
3590 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3591         * server-src/amverifyrun.sh, server-src/amverify.sh,
3592           tape-src/ammt.c, tape-src/amdd.c: Write deprecated message.
3593
3594 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3595         * config/amanda/defaults.m4: Set amandates to $localstatedir/amanda/amandate
3596
3597 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3598         * server-src/amfreetapes.sh: Use amlibexecdir.
3599
3600 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3601         * config/amanda/dirs.m4: Set amlibexecdir to $libexecdir/amanda.
3602         * amandad-src/amandad.c, amplot/amplot.sh,
3603           amplot/Makefile.am, changer-src/chg-chs.sh,
3604           changer-src/chg-disk.sh, changer-src/chg-juke.sh,
3605           changer-src/chg-lib.sh.in, changer-src/chg-manual.sh,
3606           changer-src/chg-mcutil.sh, changer-src/chg-mtx.sh,
3607           changer-src/chg-multi.sh, changer-src/chg-null.sh,
3608           changer-src/chg-rait.sh, changer-src/chg-rth.pl,
3609           changer-src/chg-zd-mtx.sh, changer-src/Makefile.am,
3610           client-src/Makefile.am, client-src/patch-system.sh,
3611           client-src/selfcheck.c, client-src/sendbackup-dump.c,
3612           client-src/sendbackup-gnutar.c, client-src/sendsize.c,
3613           common-src/amaespipe.sh, common-src/amanda-sh-lib.sh.in,
3614           common-src/amcrypt-ossl-asym.sh, common-src/amcrypt-ossl.sh,
3615           common-src/amcrypt.sh, common-src/genversion.c,
3616           common-src/local-security.c, common-src/Makefile.am,
3617           common-src/rsh-security.c, common-src/ssh-security.c,
3618           dumper-src/amgtar.pl, example/xinetd.amandaclient,
3619           example/xinetd.amandaserver, installcheck/amgetconf.pl,
3620           perl/Amanda/Changer.pm, perl/Amanda/Paths.pm.in,
3621           restore-src/Makefile.am, server-src/amcheck.c,
3622           server-src/amcheckdb.sh, server-src/amcleanup.sh,
3623           server-src/amdump.sh, server-src/amflush.c,
3624           server-src/amoverview.pl, server-src/amrmtape.sh,
3625           server-src/amverifyrun.sh, server-src/amverify.sh,
3626           server-src/changer.c, server-src/driver.c,
3627           server-src/getconf.c, server-src/Makefile.am,
3628           tape-src/Makefile.am: Use amlibexecdir.
3629
3630 2008-01-10  Jean-Louis Martineau <martineau@zmanda.com>
3631         * config/amanda/flags.m4 (AMANDA_STATIC_FLAGS):
3632           Set AMANDA_STATIC_LDFLAGS to '-static' if set.
3633         * configure.in: Call AMANDA_STATIC_FLAGS.
3634         * amandad-src/Makefile.am, changer-src/Makefile.am,
3635           client-src/Makefile.am, common-src/Makefile.am,
3636           dumper-src/Makefile.am, oldrecover-src/Makefile.am,
3637           recover-src/Makefile.am, restore-src/Makefile.am,
3638           server-src/Makefile.am,
3639           tape-src/Makefile.am(AM_LDFLAGS): Set to AMANDA_STATIC_LDFLAGS.
3640
3641 2008-01-09  Jean-Louis Martineau <martineau@zmanda.com>
3642         * configure.in (AC_CONFIG_FILES): Add example/template.d/amanda-S3.conf
3643         * example/Makefile.am (dist_template_DATA): Add
3644                                                     template.d/amanda-S3.conf
3645
3646 2008-01-09  Jean-Louis Martineau <martineau@zmanda.com>
3647         * changer-src/scsi-solaris.c: Cleanup.
3648
3649 2008-01-09  Ian Turner <ian@zmanda.com>
3650         * changer-src/chg-zd-mtx.sh.in: Don't write a corrupt changerfile
3651           when a tape has no barcode label.
3652
3653 2008-01-08  Dustin J. Mitchell <dustin@zmanda.com>
3654         * server-src/amcheckdump.pl: call critical() rather than
3655           using die().
3656
3657 2008-01-08  Jean-Louis Martineau <martineau@zmanda.com>
3658         * server-src/amcheckdump.pl: Parse 'amflush: starttime' and
3659                                      'planner: timestamp' line.
3660         * server-src/amflush.c: Print correct starttime line.
3661
3662 2008-01-08  Ian Turner <ian@zmanda.com>
3663         Most of this work was done by Dustin J. Mitchell
3664         <dustin@zmanda.com>, with contributions by Ian Turner <ian@zmanda.com>.
3665         * example/template.d/amanda-S3.conf.in: Example configuration
3666           using Amazon S3.
3667         * device-src/device.c: Register the S3 device.
3668         * device-src/tests/get-activation-key.pl: Tool to retrieve 
3669           a DevPay activation key.
3670         * device-src/s3-device.c, device-src/s3-device.h: S3 device driver.
3671         * device-src/s3.c, device-src/s3.h: Network support for S3 driver.
3672         * device-src/property.c, device-src/property.h: Register S3
3673           authentication properties.
3674         * device-src/activate-devpay.c: Tool to convert a devpay 
3675           activation key into user tokens.
3676         * device-src/Makefile.am: Support all these new files.
3677         * configure.in: Check S3 prerequesites.
3678         * config/amanda/s3-device.m4: Check if the S3 device should be
3679           built.
3680         * config/amanda/libs.m4: Code to check for libcurl version and
3681           features.
3682         * common-src/util.c: Use libcurl header.
3683
3684 2008-01-08  Dustin J. Mitchell <dustin@zmanda.com>
3685         * server-src/amcheckdump.pl: call critical() rather than
3686           using die().
3687
3688 2008-01-08  Jean-Louis Martineau <martineau@zmanda.com>
3689         * common-src/local-security.c: New 'local' security driver.
3690         * common-src/security.c (drivers): Add local_security_driver
3691         * common-src/Makefile.am (libamanda_la_SOURCES): Add local-security.c
3692         * man/xml-source/amanda.conf.5.xml,
3693           man/xml-source/amanda-client.conf.5.xml,
3694           example/amanda-client.conf.in,
3695           example/template.d/dumptypes: Document 'local' security driver.
3696
3697 2008-01-08  Dustin J. Mitchell <dustin@zmanda.com>
3698         * server-src/amcheckdump.pl perl/Amanda/Util.swg: don't use
3699           the C safe_fd, which kills the Perl debugger; just check
3700           that fd's 0-2 are open
3701
3702 2008-01-08  Dustin J. Mitchell <dustin@zmanda.com>
3703         * perl/Amanda/Types.swg perl/Makefile.am: add new Amanda::Types module
3704         to contain data structures common to several other modules.
3705         * perl/Amanda/Device.swg: move dumpfile_t to Amanda::Types
3706         * installcheck/Amanda_Types.pl installcheck/Makefile.am: simple tests
3707           for the new module
3708         * common-src/fileheader.c common-src/fileheader.h: build_header
3709           now takes a precise size, not a minimum.
3710
3711 2008-01-08  Jean-Louis Martineau <martineau@zmanda.com>
3712         * recover-src/amrecover.c: Call apply_config_overwrites before
3713                                    config_init(CONFIG_INIT_EXPLICIT_NAME ...)
3714
3715 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
3716         * common-src/util.c (strquotedstr, hexdump): Remove function.
3717         * common-src/util.h (strquotedstr, hexdump): Remove prototype.
3718         * common-src/fileheader.c (strquotedstr, hexdump): Add function.
3719         * common-src/fileheader.c (strquotedstr): Fix.
3720
3721 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
3722         * perl/Amanda/Changer.pm: Use Amanda::Config::get_config_dir().
3723
3724 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
3725         * config/automake/scripts.am: Don't set CHECK_PERL.
3726         * changer-src/Makefile.am: Set CHECK_PERL.
3727         * client-src/Makefile.am: Set CHECK_PERL.
3728         * dumper-src/Makefile.am: Set CHECK_PERL.
3729         * common-src/Makefile.am: Set CHECK_PERL.
3730
3731 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
3732         * common-src/krb5-security.c: Fix argument to resolve_hostname.
3733         * config/amanda/krb4-security.m4: Check .a or .so lib.
3734         * config/amanda/krb5-security.m4: Check .a or .so lib.
3735
3736 2008-01-07  Jean-Louis Martineau <martineau@zmanda.com>
3737         * device-src/Makefile.am: Merge typo.
3738         * example/Makefile.am: Merge Typo.
3739
3740 2007-12-27  Dustin J. Mitchell <dustin@zmanda.com>
3741         * configure.in config/amanda/printf.m4: remove unused
3742           configure checks
3743
3744 2007-12-27  Paddy Sreenivasan <paddy@zmanda.com>
3745         * server-src/reporter.c: Check for NULL mailto
3746
3747 2007-12-27  Satya Ganga <gsat@zmanda.com>
3748         * server-src/amserverconfig.pl: holding disk will be created
3749           only if we have at least 1G free space in the Amanda home dir
3750
3751 2007-12-27  Ian Turner <ian@zmanda.com>
3752         * server-src/taperscan.c server-src/taper.c: only print error_message
3753           if it is non-NULL
3754
3755 2007-12-27  Dustin J. Mitchell <dustin@zmanda.com>
3756         * server-src/amrmtape.sh: remove @DB_EXT@, which no longer
3757           exists (since 2007-10-09).
3758
3759 2007-12-26  Dustin J. Mitchell <dustin@zmanda.com>
3760         * server-src/amverify.sh: fix multiple non-portable shell
3761           techniques
3762
3763 2007-12-23  Dustin J. Mitchell <dustin@zmanda.com>
3764         Large-scale merge of perl interface to Amanda, along with
3765         a fleet of related changes.  Patch authors are given for
3766         changes not made by Dustin.
3767
3768         * perl/Makefile.am config/amanda/swig.m4: use
3769           ExtUtils::Embed::perl_inc() to get the include directory
3770           and let Amanda's compiler/linker flags and libtool take
3771           care of the rest
3772         * perl/Amanda/Config.swg: use accessors for config_name, 
3773           config_filename, and config_dir 
3774         * server-src/amcheckdump.pl server-src/amdevcheck.pl
3775           perl/Amanda/Util.swg installcheck/Amanda_Config.pl: use
3776           new accessors
3777         * perl/Amanda/Util.swg common-src/amanda.h: use a .-relative
3778           path in two #include directives to avoid accidentally 
3779           including perl's headers of the same name; this is a temporary
3780           hack until a larger-scale overhaul of Amanda's headers is done.
3781         * config/amanda/swig.m4: error out if shared libraries are disabled
3782         * server-src/amcheckdump.pl: Use timestamp from latest
3783           amdump.1 or amflush.1 log file.  (Jean-Louis Martineau
3784           <martineau@zmanda.com>)
3785         * server-src/amcheckdump.pl: Output partnum.  (Jean-Louis
3786           Martineau <martineau@zmanda.com>)
3787         * server-src/amcheckdump.pl: Add a '/' after the config name.
3788         (Jean-Louis Martineau <martineau@zmanda.com>)
3789         * perl/Amanda/Logfile.swg perl/Amanda/Device.swg perl/Makefile.am
3790           perl/amglue/integers.swg perl/amglue/amglue.h
3791           perl/amglue/amglue.swg perl/amglue/glib.swg
3792           perl/amglue/bigint.c: Always use Math::BigInt to convert numeric 
3793           quantities from C to Perl, to avoid integer overflow and automatic
3794           promotion to double.
3795         * perl/Amanda/Debug.swg client-src/versionsuffix.c
3796           common-src/util.c common-src/util.h common-src/debug.c
3797           common-src/debug.h common-src/conffile.c
3798           common-src/conffile.h common-src/file.c common-src/file.h:
3799           - move get_/set_pname to util.c
3800           - rename RunningAsWho to running_as_flags
3801           - cache original cwd before changing it in safe_cd, and use the
3802             cached value in conffile
3803         * server-src/logfile.c: call set_logerror in open_log
3804         * client-src/runtar.c common-src/debug.c common-src/amanda.h
3805           common-src/file.c common-src/file.h: replace client_uid,
3806           client_gid globals with functions, to eliminate the need
3807           for initialization
3808         * server-src/logfile.c: Update warning about globals
3809         * server-src/find.c: Update search_logfile to possibly search
3810           all tapes in a logfile. Also, other miscellaneous
3811           refactoring.  (Ian Turner <ian@zmanda.com>)
3812         * server-src/find.h: Document new interface.
3813         * server-src/amindexd.c, server-src/amadmin.c,
3814           server-src/amtrmidx.c, restore-src/amfetchdump.c: Use new
3815           find_dump interface.
3816         * common-src/util.c, common-src/util.h: New function
3817           compare_possibly_null_strings, which is like strcmp() but
3818           orders NULL pointers before non-null strings.
3819         * Makefile.am: reflect BINARY_OWNER into distcheck-triggered
3820           ./configure
3821         * common-src/conffile.c common-src/conffile.h: completely
3822           new API, almost complete rewrite
3823         * common-src/columnar.c common-src/columnar.h
3824           common-src/Makefile.am: new files, extracted from
3825           conffile.[ch]
3826         * oldrecover-src/amrecover.c oldrecover-src/extract_list.c
3827           changer-src/chg-scsi-chio.c changer-src/chg-scsi.c
3828           client-src/sendbackup.c client-src/sendsize.c
3829           client-src/selfcheck.c amandad-src/amandad.c
3830           device-src/device.c recover-src/amrecover.c
3831           recover-src/extract_list.c server-src/diskfile.h
3832           server-src/logfile.c server-src/amlogroll.c
3833           server-src/amindexd.c server-src/amcheck.c
3834           server-src/dumper.c server-src/planner.c
3835           server-src/chunker.c server-src/amadmin.c
3836           server-src/amtape.c server-src/amcleanupdisk.c
3837           server-src/getconf.c server-src/amflush.c
3838           server-src/amtrmlog.c server-src/driverio.c
3839           server-src/holding.c server-src/driverio.h
3840           server-src/driver.c server-src/reporter.c server-src/taper.c
3841           server-src/find.c server-src/amindex.c server-src/amtrmidx.c
3842           server-src/diskfile.c server-src/amlabel.c
3843           perl/Amanda/Config.swg config/amanda/defaults.m4
3844           restore-src/amidxtaped.c restore-src/amrestore.c
3845           restore-src/restore.c restore-src/amfetchdump.c
3846           common-src/util.h common-src/glib-util.c tape-src/tapeio.c
3847           common-src/amanda.h tape-src/tapeio.h: use new conffile API
3848         * installcheck/Makefile.am installcheck/Amconfig.pm.in
3849           installcheck/Installdirs.pm.in installcheck/Amanda_Config.pl
3850           installcheck/Amanda_Changer.pl installcheck/Amanda_Cmdline.pl
3851           installcheck/Amanda_Logfile.pl installcheck/amcheckdump.pl
3852           installcheck/amdevcheck.pl installcheck/amgetconf.pl:
3853           new unit tests for new modules, applications
3854         * server-src/amdevcheck.pl server-src/amcheckdump.pl: new pure-
3855           Perl applications; amcheckdump.pl is by Ian Turner
3856           <ian@zmanda.com>
3857         * perl/Amanda perl/Makefile.am perl/Amanda/Paths.pm.in
3858           perl/Amanda/Logfile.swg perl/Amanda/Changer.pm
3859           perl/Amanda/Config.swg perl/Amanda/Debug.swg
3860           perl/Amanda/Tapefile.swg perl/Amanda/Cmdline.swg
3861           perl/Amanda/Util.swg perl/Amanda/Device.swg: new directory
3862           containing perl interfaces to Amanda modules
3863         * perl/amglue perl/amglue/integers.swg perl/amglue/amglue.h
3864           perl/amglue/exports.swg perl/amglue/ghashtable.c
3865           perl/amglue/amglue.swg perl/amglue/constants.swg
3866           perl/amglue/glib.swg perl/amglue/bigint.c: functions and
3867           macros to glue Amanda to perl
3868
3869 2007-12-21  Satya Ganga <gsat@zmanda.com>
3870         * server-src/amserverconfig.pl: correct holding disk size
3871           validation logic so that it works on solaris too
3872
3873 2007-12-21  Satya Ganga <gsat@zmanda.com>
3874         * server-src/amserverconfig.pl: amserverconfig needs to create a empty
3875           changer.conf file
3876
3877 2007-12-21  Jean-Louis Martineau <martineau@zmanda.com>
3878         Bug reported by Tim Bunnell.
3879         * client-src/getfsent.c (dev2rdev): Do it only for block device.
3880
3881 2007-12-21  Jean-Louis Martineau <martineau@zmanda.com>
3882         * server-src/taper.c: Unquote holding_disk_file.
3883
3884 2007-12-20  Dustin J. Mitchell <dustin@zmanda.com>
3885         * common-src/debug.h: fix (cosmetic, but confusing) typo
3886
3887 2007-12-19  Jean-Louis Martineau <martineau@zmanda.com>
3888         * common-src/util.c (quote_string): Quote ':'.
3889
3890 2007-12-19  Ian Turner <ian@zmanda.com>
3891         * server-src/taper.c: Don't crash if there is a problem writing a
3892           brand new tape.
3893
3894 2007-12-19  Jean-Louis Martineau <martineau@zmanda.com>
3895         * server-src/planner.c: Correctly set planner_timestamp if
3896                                 usetimestamps is set to no.
3897
3898 2007-12-18  Jean-Louis Martineau <martineau@zmanda.com>
3899         * server-src/driverio.c (childstr): Check dumper->chunker.
3900
3901 2007-12-14  Ian Turner <ian@zmanda.com>
3902         * device-src/tape-device.c: Try to open tape devices as O_NONBLOCK
3903           at first; if the device is not ready, we will let the changer script
3904           retry, instead of having the kernel do it for us.
3905         * device-src/tape-ops.h, device-src/tape-aix.c,
3906           device-src/tape-uware.c, device-src/tape-xenix.c,
3907           device-src/tape-posix.c: Add new tape_is_ready() function.
3908
3909 2007-12-14  Jean-Louis Martineau <martineau@zmanda.com>
3910         * config/amanda/dumpers.m4: Don't set STAR in AMANDA_PROG_SAMBA_CLIENT.
3911
3912 2007-12-14  Jean-Louis Martineau <martineau@zmanda.com>
3913         * server-src/find.c (search_logfile): Parse taper result line before
3914                                               merging part_find.
3915
3916 2007-12-14  Jean-Louis Martineau <martineau@zmanda.com>
3917         * server-src/find.c (find_log): Result should not have duplicate
3918                                         logfile.
3919
3920 2007-12-10  Jean-Louis Martineau <martineau@zmanda.com>
3921         * server-src/amstatus.pl: Parse NEW-TAPE line
3922         * server-src/taper.c: Add the handle in NEW-TAPE result.
3923         * server-src/driver.c: Check number of arguments in NEW-TAPE result.
3924
3925 2007-12-10  Jean-Louis Martineau <martineau@zmanda.com>
3926         * config/amanda/progs.m4: Define AMLINT To 'echo;false' to no lint
3927                                   are found.
3928
3929 2007-12-10  Jean-Louis Martineau <martineau@zmanda.com>
3930         * common-src/bsdudp-security.c: Loop over all address until a bind
3931                                         is successful.
3932         * common-src/bsd-security.c: Loop over all address until a bind
3933                                      is successful.
3934         * common-src/stream.c: Loop over all address until a connect is
3935                                successful.
3936
3937 2007-12-07  Jean-Louis Martineau <martineau@zmanda.com>
3938         * server-src/amindexd.c: Don't use duplicate part.
3939
3940 2007-12-07  Jean-Louis Martineau <martineau@zmanda.com>
3941         * restore-src/amfetchdump.c: Don't use duplicate part.
3942
3943 2007-12-07  Jean-Louis Martineau <martineau@zmanda.com>
3944         * server-src/holding.c (holding_get_all_datestamps): Don't add
3945           duplicate datestamp.
3946
3947 2007-12-07  Jean-Louis Martineau <martineau@zmanda.com>
3948         * server-src/amcheck.c: Don't complain about correct unlabeled
3949                                 volumes.
3950
3951 2007-12-06  Jean-Louis Martineau <martineau@zmanda.com>
3952         * client-src/sendbackup.c, client-src/sendsize.c,
3953           client-src/selfcheck.c, client-src/calcsize.c,
3954           amandad-src/amandad.c, device-src/device.c,
3955           device-src/vfs-device.c, server-src/changer.c,
3956           server-src/dumper.c, server-src/planner.c,
3957           server-src/chunker.c, server-src/server_util.c,
3958           server-src/taperscan.c, server-src/driver.c,
3959           server-src/taper.c, server-src/find.c,
3960           server-src/diskfile.c, common-src/pipespawn.c,
3961           common-src/util.c, common-src/conffile.c: Fix memory leak.
3962
3963 2007-12-06  Jean-Louis Martineau <martineau@zmanda.com>
3964         * server-src/find.c (search_logfile): Parse PARTPARTIAL line.
3965
3966 2007-12-06  Jean-Louis Martineau <martineau@zmanda.com>
3967         * server-src/taper.c: Use g_strdup if pointer can be NULL.
3968
3969 2007-12-05  Jean-Louis Martineau <martineau@zmanda.com>
3970         * server-src/taperscan.c: Don't output the latest changer result.
3971
3972 2007-12-05  Jean-Louis Martineau <martineau@zmanda.com>
3973         * common-src/util.c (resolve_hostname): Take a new socktype argument.
3974         * common-src/util.h (resolve_hostname): New prototype.
3975         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
3976           common-src/bsdudp-security.c, common-src/krb5-security.c,
3977           common-src/rsh-security.c, common-src/security-util.c,
3978           common-src/ssh-security.c, common-src/stream.c,
3979           recover-src/set_commands.c, server-src/amcheck.c,
3980           server-src/dumper.c: Call resolve_hostname with socktype argument.
3981
3982 2007-12-05  Jean-Louis Martineau <martineau@zmanda.com>
3983         * common-src/util.c (resolve_hostname): Don't return V4MAPPED address.
3984         * common-src/amanda.h (AI_V4MAPPED, AI_ALL): Don't define.
3985
3986 2007-12-04  Ian Turner <ian@zmanda.com>
3987         * server-src/taperscan.c, server-src/taperscan.h: Support persistence
3988           between invocations of taper_scan(), so that you can get second-best
3989           and further tapes.
3990         * server-src/amcheck.c, server-src/amtape.c: Use the new taperscan 
3991           interface.
3992         * server-src/taper.c: Do the right thing if there is an error writing
3993           the tape label.
3994
3995 2007-12-04  Jean-Louis Martineau <martineau@zmanda.com>
3996         * server-src/amtape.c: Correctly output the result of taper scan.
3997
3998 2007-12-04  Jean-Louis Martineau <martineau@zmanda.com>
3999         * server-src/amcheck.c, server-src/dumper.c
4000           server-src/planner.c: Don't crash is securoty driver is not found.
4001
4002 2007-12-04  Jean-Louis Martineau <martineau@zmanda.com>
4003         * server-src/changer.c: Print better message if the changer script
4004                                 has no output.
4005
4006 2007-12-03  Jean-Louis Martineau <martineau@zmanda.com>
4007         * man/xml-source/amserverconfig.8.xml: Fix indentation.
4008
4009 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4010         * server-src/taper-mem-port-source.c, server-src/taper-file-source.c
4011           server-src/taper.c: Cast guint64 to uintmax_t and use %ju to print.
4012
4013 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4014         * man/xml-source/amanda.conf.5.xml: Improve documentation.
4015         * example/amanda.conf.in: Ditto.
4016
4017 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4018        * server-src/server_util.c (cmdstr): Remove SPLIT-NEEDNEXT
4019                                             and SPLIT-CONTINUE
4020        * server-src/server_util.h (cmd_t): Remove SPLIT_NEEDNEXT
4021                                            and SPLIT_CONTINUE.
4022        * server-src/taper.c: Send part_kbyte in PARTDONE result.
4023        * server-src/amstatus.pl: Parse part_kbyte in PARTDONE result line.
4024                                  Parse REQUEST-NEW_TAPE line.
4025        * common-src/conffile.h: CONF_FLUSH_THRESHOLD_DUMPED,
4026                                 CONF_FLUSH_THRESHOLD_SCHEDULE, CONF_TAPERFLUSH.
4027        * common-src/conffile.c: CNF_FLUSH_THRESHOLD_DUMPED,
4028                                 CNF_FLUSH_THRESHOLD_SCHEDULE, CNF_TAPERFLUSH.
4029        * server-src/driverio.h: Add Many globals.
4030        * server-src/driver.c: Split runq in runq and directq.
4031                               Implement flush-threshold-*/taperflush.
4032        * example/amanda.conf.in: Example for flush-threshold-* and taperflush.
4033        * man/xml-source/amanda.conf.5.xml: Document flush-threshold-*
4034                                            and taperflush.
4035
4036 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4037         * server-src/taperscan.c: Fix output formating.
4038
4039 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4040         * recover-src/set_commands.c: Add a terminating '/' in cd_regex.
4041                                       Never add it in cd_dir.
4042
4043 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4044         * config/automake/scripts.am: Build of the scripts also depend on
4045                                       $(top_builddir)/config.status
4046
4047 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4048         * server-src/amdump.sh: Pass a --startime argument to planner.
4049         * server-src/planner.c: Get the --starttime command line argument.
4050
4051 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4052         * server-src/amstatus.pl: New --locale-independent-date-format option.
4053         * man/xml-source/amstatus.8.xml: Document it.
4054         * server-src/amflush.c: Output a "starttime-locale-independent" line.
4055         * server-src/amdump.sh: Output a "starttime-locale-independent" line.
4056
4057 2007-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4058         * server-src/find.c: Remove seen_chunk_of function.
4059
4060 2007-11-28  Jean-Louis Martineau <martineau@zmanda.com>
4061         * config/macro-archive/docbook-dtd.m4: Check return code of 5.
4062
4063 2007-11-28  Dustin J. Mitchell <dustin@zmanda.com>
4064         * installcheck/Amconfig.pm.in: fix quoting error leading to
4065         directories named '"'
4066
4067 2007-11-28  Dustin J. Mitchell <dustin@zmanda.com>
4068         * common-src/file.c: only chown new directories when running as root
4069
4070 2007-11-28  Dustin J. Mitchell <dustin@zmanda.com>
4071         * config/automake/installperms.am: strip directory names from build
4072           filenames when setting permissions; fixes errors from examples/
4073           install
4074
4075 2007-11-28  Dustin J. Mitchell <dustin@zmanda.com>
4076         * man/Makefile.am: Allow installs, but not tarballs, without
4077           manpages
4078
4079 2007-11-27  Jean-Louis Martineau <martineau@zmanda.com>
4080         * server-src/planner.c: Check dp->todo before using (est)->dp.
4081
4082 2007-11-27  Jean-Louis Martineau <martineau@zmanda.com>
4083         * device-src/device.c (default_device_start): Overwrite label only
4084                                                       if mode == ACCESS_WRITE.
4085
4086 2007-11-20  Ian Turner <ian@zmanda.com>
4087         * device-src/device.c, device-src/device.h
4088           device-src/tape-device.c, device-src/rait-device.c: Change API
4089           semantics with respect to label reading. This patch makes it
4090           possible to open and read a volume with properties while only
4091           reading its label once. Thanks to Jean-Louis Martineau
4092           <martineau@zmanda.com> for suggesting this change.
4093
4094 2007-11-20  Ian Turner <ian@zmanda.com>
4095         * device-src/vfs-device.c: Be more thourough about updating volume
4096           usage statistics.
4097
4098 2007-11-20  Ian Turner <ian@zmanda.com>
4099         * changer-src/chg-lib.sh.in: Use a more robust check for MT path.
4100         * server-src/amverify.sh.in: Use amrestore instead of amdd/ammt.
4101
4102 2007-11-09  Ian Turner <ian@zmanda.com>
4103         * server-src/taperscan.c: Fix a memory allocation bug and be a little
4104           more paranoid.
4105
4106 2007-11-06  Ian Turner <ian@zmada.com>
4107         * server-src/taperscan.c: Print a proper message if there is
4108           only one flag from device_read_label().
4109
4110 2007-11-26  Dustin J. Mitchell <dustin@zmanda.com>
4111         * configure.in config/amanda/config.m4 common-src/genversion.c
4112           common-src/Makefile.am: explicitly generate svn info at configure
4113           time, rather than relying on svn keywords
4114
4115 2007-11-26  Ian Turner <ian@zmanda.com>
4116         * server-src/Makefile.am: Move amdevcheck from libexec/ to sbin/.
4117           Thanks to Satya Ganga <gsat@zmanda.com> for noticing this problem.
4118         
4119 2007-11-26  John Franks <jrfranks@zmanda.com>
4120         * common-src/debug.c    For cygwin builds: change to
4121           close and reopen log file handle on successful rename.
4122           This is to ensure that Windows has no possibility of
4123           preventing access to the original file name if processes
4124           collide.
4125                 
4126 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
4127         * server-src/amflush.c: Send config option (-o) to child process.
4128
4129 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
4130         * server-src/planner.c: Don't set est(dp)->state before testing it.
4131
4132 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
4133         * config/amanda/readline.m4: Include termcap, curses or ncurese in LIBS.
4134
4135 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
4136         * server-src/diskfile.c (match_disklist): Fix for disk not found.
4137
4138 2007-11-23  Jean-Louis Martineau <martineau@zmanda.com>
4139         * server-src/driver.c: Don't release taper_ev_read in
4140                                start_degraded_mode.
4141
4142 2007-11-20  Paddy Sreenivasan <paddy@zmanda.com>
4143         * amanda.spec: Added calls to Zmanda
4144         * example/amanda-client.conf.in: Switch to bsdtcp
4145
4146 2007-11-14  Jean-Louis Martineau <martineau@zmanda.com>
4147         * server-src/amstatus.pl: Handle taper FAILED message.
4148
4149 2007-11-14  Jean-Louis Martineau <martineau@zmanda.com>
4150         * config/amanda/userid.m4: Use $enableval in AC_ARG_ENABLE.
4151
4152 2007-11-07  Paddy Sreenivasan <paddy@zmanda.com>
4153         * server-src/amserverconfig.pl server-src/amaddclient.pl: 
4154           new configuration tools
4155         * common-src/amgpgcrypt.pl common-src/amcryptsimple.pl: 
4156           new encryption plugins
4157         * man/xml-source/amaddclient.8.xml man/xml-source/amgpgcrypt.8.xml 
4158           man/xml-source/amcryptsimple.8.xml 
4159           man/xml-source/amserverconfig.8.xml: man pages for new tools
4160         * example/template.d/* - Configuration file templates
4161         * example/amanda-client.conf.in: Updated amanda configuration file
4162         * example/Makefile.am man/Makefile.am server-src/Makefile.am
4163           common-src/Makefile.am: Added amserverconfig, amaddclient, 
4164           amgpgcrypt and amcryptsimple
4165         * device-src/Makefile.am: Fixed libamdevice version
4166         * configure.in: Added template files
4167         * amanda.spec: Updated spec file for new utilities
4168
4169 2007-11-01  Dustin J. Mitchell <dustin@zmanda.com>
4170         * config/automake/installperms.am: new method of specifying
4171           permissions on installed files
4172         * config/amanda/userid.m4 configure.in: add --disable-installperms
4173           to disable any permsisions settings (useful for packaging builds)
4174         * oldrecover-src/Makefile.am example/Makefile.am
4175           changer-src/Makefile.am amplot/Makefile.am
4176           client-src/Makefile.am amandad-src/Makefile.am man/Makefile.am
4177           dumper-src/Makefile.am recover-src/Makefile.am
4178           server-src/Makefile.am restore-src/Makefile.am
4179           Makefile.am support/Makefile.am common-src/Makefile.am
4180           tape-src/Makefile.am: use installperms.am
4181
4182 2007-11-01  Dustin J. Mitchell <dustin@zmanda.com>
4183         Suggested by Jon LaBadie
4184         * config/automake/precompile.am: new rule to make
4185           precompiler output files; useful for debugging
4186         * */Makefile.am: include precompile.am
4187
4188 2007-11-01  Jean-Louis Martineau <martineau@zmanda.com>
4189         * AUTHORS: Add Dustin J. Mitchell.
4190
4191 2007-10-31  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
4192         * most C files, amanda.h: Switch to using the g_printf family, which
4193           supports a consistent set of %-conversions, including the 'z'
4194           (size_t) and 'j' (intmax_t) size specifiers.  Convert various
4195           printf format strings accordingly.
4196
4197 2007-10-31  Dustin J. Mitchell <dustin@zmanda.com>
4198         * common-src/genversion.c common-src/Makefile.am: fix BUILD_REV
4199           and BUILD_BRANCH to work even when packages are built from
4200           distribution tarballs
4201
4202 2007-10-31  Ian Turner <ian@zmanda.com>
4203         * server-src/taperscan.c: Don't segfault if there is an error opening
4204           a device during taperscan.
4205
4206 2007-10-30  Dustin J. Mitchell <dustin@zmanda.com>
4207         * docs autogen INSTALL UPGRADING configure.in 
4208           DEVELOPING Makefile.am: remove docs/ directory in favor of
4209           manpages and online reference; most docs/* were outdated
4210
4211 2007-10-29  Dustin J. Mitchell <dustin@zmanda.com>
4212         * changer-src/chg-zd-mtx.sh: fix typo
4213
4214 2007-10-29  Ian Turner <ian@zmanda.com>
4215         * restore-src/restore.c: Don't mention slot numbers when running
4216           without a changer.
4217
4218 2007-10-29  Ian Turner <ian@zmanda.com>
4219         * man/xml-source/amfetchdump.8.xml: Remove documentation for
4220           amfetchdump -i.
4221
4222 2007-10-26  Dustin J. Mitchell <dustin@zmanda.com>
4223         Add support for post-install tests, which can be more thorough than
4224         unit tests.
4225         * configure.in Makefile.am installcheck/*: new directory
4226         * installcheck/amgetconf.pl: test some of amgetconf's functionality
4227         * docs/developing.txt: notes on various test mechanisms
4228         * config/automake/scripts.am: add CHECK_PERL_FLAGS
4229         * common-src/debug.c: only try to chown debug files if running as root
4230
4231 2007-10-25  Dustin J. Mitchell <dustin@zmanda.com>
4232         * config/mkinstalldirs config/depcomp config/config.guess
4233           config/ltmain.sh config/config.sub config/missing
4234           config/install-sh config/ylwrap: update files with automake-1.10, 
4235           libtool-1.5.24
4236         * autogen: don't call automake with --add-missing, as it stomps all
4237           over the working copy
4238
4239 2007-10-25  Dustin J. Mitchell <dustin@zmanda.com>
4240         * gnulib/* config/*: updated to latest gnulib
4241         * gnulib/regenerate/regenerate: update gnulib date
4242         * gnulib/regenerate/getaddrinfo-cygwin.patch: update to patch new
4243           getaddrinfo.c
4244         * device-src/tests/vfs_test.c: mkdtemp.h no longer exists
4245
4246 2007-10-24  Jean-Louis Martineau <martineau@zmanda.com>
4247         * client-src/Makefile.am: Remove duplicate entry for
4248                                   libamclient_la_SOURCES.
4249
4250 2007-10-23  Dustin J. Mitchell <dustin@zmanda.com>
4251         * config/automake/scripts.am: rules to build (substitute) scripts
4252         * config/automake/vars.am: define empty variables for later appending
4253         * config/automake/check-perl.am config/automake/check-shell.pm:
4254           removed
4255         * changer-src/Makefile.am amplot/Makefile.am client-src/Makefile.am
4256           dumper-src/Makefile.am server-src/Makefile.am 
4257           common-src/Makefile.am: Use new include files
4258         * configure.in: remove now-unnecessary AC_CONFIG_FILES
4259         * *.sh.in *.pl.in *.awk.in: renamed
4260
4261 2007-10-20  Jean-Louis Martineau <martineau@zmanda.com>
4262         * server-src/reporter.c: Always call sort_disks.
4263
4264 2007-10-20  Jean-Louis Martineau <martineau@zmanda.com>
4265         * man/xml-source/amanda.conf.5.xml: Correctly document portrange.
4266         * common-src/conffile.c: Fix portrange.
4267
4268 2007-10-20  Jean-Louis Martineau <martineau@zmanda.com>
4269         * common-src/conffile.c: Allow reserved-udp-port and reserved-tcp-port
4270                                  in amanda-client.conf.
4271
4272 2007-10-17  Dustin J. Mitchell <dustin@zmanda.com>
4273         * common-src/amanda.h: remove amflock cruft
4274
4275 2007-10-16  Dustin J. Mitchell <dustin@zmanda.com>
4276         * config/amanda/defaults.m4: Change EXAMPLE_TAPEDEV to use the 'tape:'
4277         syntax, and to indicate "you need to change this!" more explicitly
4278
4279 2007-10-16  Ian Turner <ian@zmanda.com>
4280         * common-src/glib-util.c: Allow use of units in parsing GValues; in
4281           particular, this allows use of units when specifying device
4282           properties in the configuration file.
4283         * common-src/conffile.c, common-src/conffile.h: Make unit suffixes
4284           available outside of conffile.c.
4285
4286 2007-10-16  Ian Turner <ian@zmanda.com>
4287         * device-src/device.c: Fix a compilation error in
4288           device_set_startup_properties_from_config().
4289
4290 2007-10-16  Ian Turner <ian@zmanda.com>
4291         * man/xml-source/amanda.conf.5.xml, server-src/taper.c,
4292           common-src/conffile.c, common-src/conffile.h: Add new
4293           configuration directive device_output_buffer_size to replace
4294           tapebufs.
4295
4296 2007-10-15  Ian Turner <ian@zmanda.com>
4297         * device-src/device.c: Don't complain about problems setting
4298           MAX_VOLUME_USAGE; do complain about problems setting
4299           READ_BUFFER_SIZE.
4300
4301 2007-10-16  Jean-Louis Martineau <martineau@zmanda.com>
4302         * client-src/sendbackup-gnutar.c: Use GNUTAR.
4303
4304 2007-10-15  Dustin J. Mitchell <dustin@zmanda.com>
4305         * device-src/device.c: do not fall back to tape:/foo if the tape
4306           device is not available (WANT_TAPE_DEVICE is not set)
4307
4308 2007-10-12  Dustin J. Mitchell <dustin@zmanda.com>
4309         * changer-src/chg-mtx.sh.in changer-src/chg-zd-mtx.sh.in
4310           changer-src/chg-multi.sh.in: add missing definition of prefix
4311
4312 2007-10-12  Jean-Louis Martineau <martineau@zmanda.com>
4313         * common-src/protocol.c (s_repwait): return PA_FINISH on P_NAK.
4314
4315 2007-10-11  Dustin J. Mitchell <dustin@zmanda.com>
4316         * config/amanda/tape.m4: fix typo (have_MTIOCTOP -> HAVE_MTIOCTOP)
4317
4318 2007-10-10  Dustin J. Mitchell <dustin@zmanda.com>
4319         * common-src/amflock-test.c common-src/amflock-lnlock.c: don't use
4320           AMANDA_TMPDIR during build-time testing
4321
4322 2007-09-14  Dustin J. Mitchell <dustin@zmanda.com>
4323         * recover-src/uscan.l recover-src/extract_list.c 
4324           recover-src/uparse.y recover-src/amrecover.h 
4325           recover-src/help.c recover-src/set_commands.c: deprecate
4326           'settape', add 'setdevice'
4327         * man/xml-source/amrecover.8.xml: corresponding doc update
4328         * example/amanda.conf.in: update comments in example config, 
4329           change default value of amrecover_changer from the confusing
4330           "/dev/null"
4331
4332 2007-10-09  Dustin J. Mitchell <dustin@zmanda.com>
4333         * common-src/amflock-test.c: lock files in the cwd, rather than /tmp,
4334           and pay attention to errors from unlink()
4335
4336 2007-10-09  Dustin J. Mitchell <dustin@zmanda.com>
4337         * gnulib/regenerate/regenerate gnulib/mkdtemp.c gnulib/mkdtemp.h
4338           gnulib/gettimeofday.c gnulib/sys_time_.h gnulib/tempname.c
4339           gnulib/tempname.h gnulib/stat_.h gnulib/Makefile.am
4340           device-src/tests/vfs_test.c config/gnulib/mkdtemp.m4
4341           config/gnulib/sys_time_h.m4 config/gnulib/tempname.m4
4342           config/gnulib/gnulib-comp.m4 config/gnulib/sys_stat_h.m4
4343           config/gnulib/gnulib-cache.m4 config/gnulib/gettimeofday.m4:
4344           add 'mkdtemp' gnulib module, use it in vfs_test.c
4345
4346 2007-10-09  Jean-Louis Martineau <martineau@zmanda.com>
4347         * common-src/util.c (portable_readdir): Don't use reentrant function.
4348
4349 2007-10-08  Dustin J. Mitchell <dustin@zmanda.com>
4350         * autogen configure.in config/macro-archive/*.m4
4351           config/amanda/*.m4 config/libtool/*.m4: move most autoconf
4352           checks to macros in .m4 files.  Hilights of changes along the way:
4353           - use AC_REQUIRES to enforce check ordering
4354           - Add a post-configure summary of important results
4355           - use AM_CONDITIONAL to control conditional compilation of whole
4356             files, instead of preprocessor macros
4357           - correct spelling of PRINCIPLE -> PRINCIPAL
4358           - remove support for dbmalloc (we use valgrind, coverity, etc. now)
4359           - remove support for infofiles in anything but text format
4360           - change DONT_SUID_ROOT to !WANT_SETUID_ROOT
4361           - remove unused --with-broken-fsf
4362           - remove multiple unused function and header checks, the defines
4363             from which do not appear in any source file
4364           - remove LTLIBOBJS cruft based on
4365             http://www.delorie.com/gnu/docs/autoconf/autoconf_165.html
4366           - remove unused LTALLOCA definition based on
4367             http://www.delorie.com/gnu/docs/libtool/libtool_30.html
4368           - use autoconf macro archive's
4369             AC_DEFINE_DIR to expand $prefix, etc. in directory variables
4370           - do not *require* --with-{user,group}; this allows 'make distcheck'
4371             to run successfully
4372         * docs/developing.txt: describe how to update gnulib, libtool, and
4373           gettext
4374         * po/reautopoint.patch po/reautopoint: script to update gettext,
4375           parallel to gnulib/regenerate/regenerate
4376         * amandad-src/amandad.c changer-src/scsi-aix.c
4377           changer-src/scsi-bsd.c changer-src/scsi-cam.c
4378           changer-src/scsi-changer-driver.c changer-src/scsi-chio.c
4379           changer-src/scsi-hpux.c changer-src/scsi-hpux_new.c
4380           changer-src/scsi-irix.c changer-src/scsi-linux.c
4381           changer-src/scsi-proto.c changer-src/scsi-solaris.c
4382           changer-src/sense.c client-src/calcsize.c client-src/getfsent.c
4383           client-src/selfcheck.c client-src/sendbackup.c
4384           client-src/sendsize.c common-src/alloc.c common-src/amanda.h
4385           common-src/conffile.c common-src/debug.c common-src/file.c
4386           common-src/genversion.c common-src/krb4-security.c
4387           common-src/writev.c device-src/tape-posix.c server-src/amadmin.c
4388           server-src/amcheck.c server-src/amlabel.c server-src/amlogroll.c
4389           server-src/amtape.c server-src/amtrmidx.c server-src/amtrmlog.c
4390           server-src/changer.c server-src/chunker.c server-src/diskfile.c
4391           server-src/driver.c server-src/dumper.c server-src/getconf.c
4392           server-src/infofile.c server-src/infofile.h server-src/planner.c
4393           server-src/reporter.c tape-src/output-tape.c: changes corresponding
4394           to simplifications and fixes in autoconf
4395         * gnulib/regenerate/no-error.patch gnulib/regenerate/regenerate: no
4396           need to create gnulib.m4i anymore
4397
4398 2007-10-08  Kevin Till <ktill@zmanda.com>  (merged by dustin@zmanda.com)
4399         * example/amanda.conf.in: add segate LTO tapetype
4400
4401 2007-10-08  Paddy Sreenivasan <paddy@zmanda.com>
4402         * changer-src/chg-lib.sh.in
4403           changer-src/chg-null.sh.in changer-src/chg-disk.sh.in
4404           changer-src/chg-juke.sh.in changer-src/chg-rait.sh.in
4405           changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in
4406           amplot/amplot.sh.in client-src/patch-system.sh.in
4407           server-src/amcheckdb.sh.in server-src/amverifyrun.sh.in
4408           server-src/amrmtape.sh.in server-src/amverify.sh.in
4409           server-src/amfreetapes.sh.in server-src/amcleanup.sh.in
4410           server-src/amdump.sh.in common-src/amanda-sh-lib.sh.in
4411           common-src/amcrypt-ossl-asym.sh.in common-src/amcrypt.sh.in
4412           common-src/amaespipe.sh.in common-src/Makefile.am
4413           common-src/amcrypt-ossl.sh.in: move amanda-sh-lib.sh from
4414           $libexecdir/amanda to just $libexecdir
4415
4416 2007-10-04  Dustin J. Mitchell <dustin@zmanda.com>
4417         * device-src/tests/Makefile.am device-src/tests/vfs_test.c: add a test
4418           for the vfs device
4419         * device-src/property.c device-src/vfs-device.c: add
4420           PROPERTY_FREE_SPACE
4421
4422 2007-10-04  Dan Locks <dwlocks@zmanda.com>
4423         * amanda.spec: add .spec file Zmanda uses for community builds
4424         
4425 2007-10-04  Dustin J. Mitchell <dustin@zmanda.com>
4426         * device-src/device.c device-src/Makefile.am configure.in: add
4427           WANT_TAPE_DEVICE conditional, for machines that have no tape
4428           support whatsoever (Mac OS X)
4429
4430 2007-10-03  Dan Locks <dwlocks@zmanda.com>
4431         * configure.in: Added /opt/local/bin AC_PATH_PROG(PKG_CONFIG.. for 
4432           mac osx and macports
4433
4434 2007-10-03  Jean-Louis Martineau <martineau@zmanda.com>
4435         * server-src/driver.c: Go in degraded mode after out of tape.
4436
4437 2007-10-02  Jean-Louis Martineau <martineau@zmanda.com>
4438         * man/xml-source/amanda.conf.5.xml: Fix indentation.
4439
4440 2007-10-02  Dustin J. Mitchell <dustin@zmanda.com>
4441         * server-src/amcheck.c: Fix typo in merge found by
4442           martineau@zmanda.com
4443
4444 2007-10-01  Ian Turner <ian@zmanda.com>
4445         * device-src/rait-device.c, device-src/queueing.c,
4446           device-src/tests/device_test.c, device-src/device.h,
4447           device-src/device.c: Remove device_is_eof() function in favor of
4448           accessing is_eof member directly.
4449
4450 2007-10-01  Dustin J. Mitchell <dustin@zmanda.com>
4451         Coverity bug #237
4452         * amandad-src/amandad.c: fix a use-after-free
4453
4454 2007-10-01  Ian Turner <ian@zmanda.com>
4455         * device-src/device.c: Automatically register the CANONICAL_NAME
4456           property for all devices.
4457
4458 2007-10-01  Ian Turner <ian@zmanda.com>
4459         * device-src/tape-posix.c: Use MTEOD on systems that have it but not
4460           MTEOM.
4461
4462 2007-10-01  Ian Turner <ian@zmanda.com>
4463         * device-src/device.c, device-src/vfs-device.c,
4464           device-src/rait-device.c: Use g_strdup() instead of strdup().
4465
4466 2007-10-01  Ian Turner <ian@zmanda.com>
4467         * changer-src/chg-lib.sh.in: Fix some compilation problems on
4468           Solaris 10.
4469
4470 2007-09-25  Dan Locks <dwlocks@zmanda.com>
4471         * common-src/util.c: cast uid_t to long long for printf formatting
4472
4473 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4474         * oldrecover-src/Makefile.am changer-src/Makefile.am
4475           client-src/Makefile.am amandad-src/Makefile.am
4476           recover-src/Makefile.am server-src/Makefile.am
4477           restore-src/Makefile.am common-src/Makefile.am
4478           tape-src/Makefile.am: replace -I../config with 
4479           -I$(top_builddir)/config
4480         * device-src/tests/Makefile.am: Replace -I.. with 
4481           -I$(top_srcdir)/device-src
4482
4483 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4484         * client-src/sendsize.c: change "smbclient" to SAMBA_CLIENT to allow
4485           configurable name
4486
4487 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4488         * common-src/amflock-flock.c common-src/amflock-posix.c
4489           common-src/amflock-lockf.c common-src/amflock-lnlock.c
4490           common-src/amflock.c: use G_GNUC_UNUSED to avoid compiler
4491           warnings
4492
4493 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4494         * common-src/amanda.h common-src/file.h: move declaration of 
4495           canonicalize_pathname to file.h
4496
4497 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4498         * common-src/util.c common-src/util.h: only check euid==uid
4499           if not RUNNING_AS_UID_ONLY; set_root_privs() checks that euid=0
4500         * client-src/runstar.c client-src/noop.c client-src/runtar.c
4501           client-src/sendbackup.c client-src/killpgrp.c
4502           client-src/sendsize.c client-src/selfcheck.c
4503           client-src/rundump.c amandad-src/amandad.c
4504           server-src/amlogroll.c server-src/amindexd.c
4505           server-src/amcheck.c server-src/dumper.c server-src/planner.c
4506           server-src/chunker.c server-src/amadmin.c server-src/amtape.c
4507           server-src/amcleanupdisk.c server-src/amflush.c
4508           server-src/amtrmlog.c server-src/amdevcheck.c
4509           server-src/driver.c server-src/reporter.c server-src/taper.c
4510           server-src/amtrmidx.c server-src/amlabel.c
4511           restore-src/amidxtaped.c restore-src/amfetchdump.c:
4512           remove RUNNING_WITHOUT_SETUID and change RUNNING_AS_SETUID_ROOT
4513           to RUNNING_AS_UID_ONLY (with corresponding checks for root-ness)
4514         * client-src/calcsize.c: drop root privs immediately, and only
4515           regain them for stat() and opendir() operations
4516
4517 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4518         * device-src/property.c device-src/property.h: create VERBOSE property
4519
4520 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4521         * device-src/device.h device-src/queueing.h: expand comments
4522         * tape-src/output-rait.h tape-src/output-null.c 
4523           tape-src/output-null.h tape-src/output-file.c 
4524           tape-src/output-file.h tape-src/output-tape.c 
4525           tape-src/output-tape.h tape-src/output-rait.c: add deprecation
4526           comment
4527
4528 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4529         * changer-src/chg-zd-mtx.sh.in: Don't pass stripped device names back
4530           to Amanda.
4531
4532 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4533         * changer-src/chg-mtx.sh.in, changer-src/chg-manual.sh.in,
4534           changer-src/chg-zd-mtx.sh.in, changer-src/chg-juke.sh.in,
4535           changer-src/chg-chs.sh.in, changer-src/chg-multi.sh.in: Don't use
4536           ammt for anything; use system mt and only for device operations that
4537           require it.
4538         * changer-src/chg-lib.sh.in: Support for above change.
4539
4540 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4541         * device-src/tape-device.c: Fix a border case bug where
4542           tape_device_robust_read() would abort when called with a buffer
4543           exactly equal to the minimum read size.
4544
4545 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4546         * device-src/tape-device.c: Use g_strdup() instead of strdup().
4547
4548 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4549         * device-src/vfs-device.h, device-src/fd-device.c,
4550           device-src/tape-device.c, device-src/Makefile.am,
4551           device-src/fd-device.h, device-src/tape-device.h,
4552           device-src/vfs-device.c: Delete the FdDevice and make TapeDevice
4553           and VfsDevice direct descendants of Device. Also, correct all
4554           reading and writing of volume and part labels for both drivers.
4555         * server-src/amcheck.c: Unlabeled tapes are OK, at least with
4556           label_new_tapes_option.
4557
4558 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4559         * server-src/taperscan.c: Fix the order of arguments to
4560           scan_read_label(). Patch by Dustin J. Mitchell <dustin@zmanda.com>.
4561
4562 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4563         * restore-src/restore.c: Change "no tapedev specified" message.
4564
4565 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4566         * server-src/amtape.c: changer_label should be called only on success.
4567
4568 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4569         * restore-src/restore.c: init cur_tapedev.
4570
4571 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4572         * gnulib/regenerate/regenerate gnulib/* config/gnulib/*: add
4573           gnulib module 'fsusage'
4574         * common-src/statfs-test.c common-src/statfs.c
4575           common-src/statfs.h common-src/Makefile.am: remove old statfs
4576         * client-src/selfcheck.c client-src/calcsize.c
4577           server-src/amcheck.c server-src/driver.c: use fsusage instead of
4578           statfs
4579
4580 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4581         * common-src/alloc.c: Do away with debug_amfree(), which makes invalid
4582           assumptions about the way system malloc() works.
4583         * common-src/amanda.h: Update definition of amtable_free() accordingly.
4584
4585 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4586         * server-src/amadmin.c: Allow 'f' sort order.
4587         * server-src/find.c: Fix parsing of log files.
4588         * server-src/find.h (DEFAULT_SORT_ORDER): Set to "hkdlpbf".
4589
4590 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4591         * server-src/driverio.h (sched_t): Split attempted in dump_attempted
4592                                            and taper_attempted.
4593         * server-src/driver.c: Split attempted in dump_attempted
4594                                and taper_attempted.
4595         * server-src/driver.c (file_taper_result): Retry dump if INPUT-ERROR.
4596
4597 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4598         * server-src/dumper.c (add_msg_data): Remove bogus handling of "
4599                                               in mesg stream.
4600
4601 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4602         * server-src/taper-file-source.c: If there's a problem reading the
4603           holding disk, log the error as we get it from the OS.
4604
4605 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4606         * server-src/taper-source.c, server-src/taper.c: Do the right thing
4607           if the connection to dumper is severed before we recieve a header.
4608
4609 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4610         * server-src/taper-source.c, server-src/taper-source.h,
4611           server-src/taper-source-test.c, server-src/taper-port-source.c,
4612           server-src/taper-port-source.h: Don't have TaperPortSource track
4613           the control FD, and make it responsible for closing the data FD.
4614         * server-src/taper.c: ditto, plus close control socket correctly.
4615
4616 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4617         * server-src/vfs-device.c: Fix a bug where all VFS device volumes
4618           were thought unlabeled. Also do the right thing when there are
4619           extra files in the VFS volume directory.
4620         * server-src/amlabel.c: Fail if there is a problem re-reading the
4621           volume label.
4622
4623 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4624         * device-src/device.c: Set the device name before reading the label.
4625         * device-src/fd-device.c: An invalid header indicates an unlabeled
4626           volume, not a volume error.
4627         * device-src/taper-device.c: Insufficient buffer space causes
4628           ENOMEM, not ENOSPC, at least on Linux.
4629         * server-src/amlabel.c: Correctly handle the case where
4630           device_read_label() returns exactly 1 set bit.
4631
4632 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4633         * server-src/taper-source.c, server-src/taper-disk-port-source.c,
4634           server-src/taper.c: Be careful not to use strings from getcwd()
4635           past the next invocation of getcwd().
4636
4637 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4638         * device-src/vfs-device.c: Use old VFS device specification.
4639
4640 2007-09-25  Ian Turner <ian@zmanad.com> (merged by dustin@zmanda.com)
4641         * server-src/amlabel.c: Don't dump core on successful labeling.
4642
4643 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4644         * device-src/tests/semaphore-test.c device-src/tests/Makefile.am:
4645           test semaphore module
4646         * device-src/semaphore.c: bugfixes, optimizations
4647         * device-src/semaphore.h: inline documentation
4648
4649 2007-09-25  Nikhil Bandiwadekar <nikhil@zmanda.com> (merged by dustin@zmanda.com)
4650         * server-src/driver.c: Added quoting to directory name while logging
4651             in statistics section
4652         * server-src/reporter.c: Handled quoted string for directory name in
4653             statistics section
4654
4655 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4656         * device-src/device.c, device-src/device.h, device-src/s3-device.c,
4657           device-src/fd-device.c, device-src/tape-device.c,
4658           device-src/vfs-device.c, device-src/rait-device.c: Implement new,
4659           more nuanced device_read_label() interface.
4660         * server-src/amcheck.c, server-src/amtape.c, server-src/taperscan.c,
4661           server-src/amlabel.c, restore-src/amrestore.c,
4662           restore-src/restore.c: Use new interface.
4663         * common-src/glib-util.c, common-src/glib-util.h: New Flags->string
4664           interface.
4665         * server-src/amdevcheck.c: New tool to check device/volume status.
4666         * man/xml-source/amdevcheck.8.xml: Document it.
4667         * server-src/Makefile.am: Add amdevcheck
4668         * man/Makefile.am: Add amdevcheck.8
4669
4670 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4671         * device-src/s3-device.c: adjust glib logging calls to match debug.h's
4672           definitions.
4673         * common-src/debug.c: typo
4674         * common-src/debug.h: add definitions for g_info() and g_debug() if
4675           they are missing
4676
4677 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4678         Thanks to Pavel Pragin <ppragin@zmanda.com> for finding these issues.
4679         * server-src/amtape.c: Update the changer database in 'amtape update'.
4680           Thanks to Dustin J. Mitchell <dustin@zmanda.com> for this fix.
4681         * server-src/taperscan.c: Update the changer database during the
4682           taper scan algorithm.
4683
4684 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4685         Thanks to Jean-Louis Martineau <martineau@zmanda.com> for these fixes:
4686         * server-src/dumper.c: Log packet to debug file.
4687         * server-src/planner.c: Improve quoting.
4688         * server-src/driver.c: Don't call free_serial if we still need it.
4689         * server-src/driver.c: Wait for dumper result if taper fail.
4690         * server-src/amstatus.pl.in: Improve parsing of initial schedule.
4691
4692 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4693         * device-src/tape-device.c: Use the right default block size for
4694           reading.
4695
4696 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4697         * device-src/vfs-device.c: add forgotten device_add_property() call
4698
4699 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4700         * server-src/taper.c: Remove an erroneous assertion. Thanks to
4701           Jean-Louis Martineau <martineau@zmanda.com> for noticing this issue.
4702
4703 2007-09-25  Patch by Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4704         * server-src/driverio.h server-src/driver.c: Record
4705           information from first PARTDONE result.  Remove duplicate
4706           update_info_dumper.  Call update_info_taper as needed.
4707
4708 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4709         * restore-src/restore.c: Don't send text to prompt_out if amidxtaped.
4710
4711 2007-09-25  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
4712         * restore-src/amfetchdump.c: Fix a bug where amfetchdump will never
4713                                      try to use the changer.
4714
4715 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4716         * restore-src/amfetchdump.c: Fix a bug where amfetchdump will
4717           still try to use the changer even with the -d parameter.
4718
4719 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4720         * man/xml-source/amadmin.8.xml server-src/amadmin.c: add an
4721           'outd' column to 'amadmin CONF holding list -l', indicating
4722           an "outdated" dump, and a '-d' option to list only outdated
4723           holding disk files.  Outdated dumps are described in the
4724           amadmin documentation.
4725
4726 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4727         * client-src/sendsize.c configure.in server-src/getconf.c
4728           restore-src/amrestore.c restore-src/amfetchdump.c
4729           common-src/util.c common-src/genversion.c common-src/util.h
4730           common-src/debug.c common-src/error.c common-src/amanda.h
4731           common-src/Makefile.am:
4732           - support the glib logging infrastructure by feeding messages
4733             into debug logs
4734           - merge the error module into the debug module
4735           - document debug.h with verbose comments
4736           - call g_critical() for error() and g_error() for errordump()
4737           - remove double dgettext() call in debug_printf
4738           - remove --without-debugging (so debugging is always on)
4739           - remove mostly unused debug prefix support
4740           - remove onerror(), replacing its few uses with alternatives
4741
4742 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4743         * device-src/tests/device_test.c configure.in
4744           recover-src/extract_list.c recover-src/uparse.y
4745           server-src/amlogroll.c server-src/dumper.c server-src/reporter.c
4746           common-src/conffile.c common-src/amanda.h common-src/getcwd.c
4747           common-src/getcwd.h common-src/Makefile.am: Replace calls
4748           to safe_getcwd with calls to g_get_current_dir(), which
4749           has the same signature and semantics.
4750
4751 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4752         * restore-src/restore.c: Fix a bug where amfetchdump would not
4753           restore anything when given the -p option. Thanks to Jean-Louis
4754           Martineau <martineau@zmanda.com> for help in the development of
4755           this patch.
4756
4757 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4758         * man/xml-source/amanda.conf.5.xml: note that includefile can
4759           take relative paths
4760         * server-src/amcleanupdisk.c: fix local variable shadowing 
4761           config_dir
4762
4763 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4764         * server-src/holding.c (holding_walk_file): amfree(filename).
4765
4766 2007-09-25  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
4767         * man/Makefile.am: fixes for conditional compiles
4768
4769 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4770         * common-src/conffile.c: Clean up some bad warning suppression and
4771           obselete unused code.
4772
4773 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4774         * example/config.site man/xml-source/amanda.conf.5.xml
4775           device-src/device.c device-src/device.h device-src/property.c
4776           device-src/fd-device.c device-src/tape-device.c
4777           device-src/property.h device-src/tape-device.h
4778           device-src/tape-ops.h server-src/amcheck.c server-src/amtape.c
4779           server-src/taperscan.c server-src/taper.c server-src/amlabel.c
4780           restore-src/amrestore.c restore-src/restore.c:
4781           This patch adds a new property READ_BUFFER_SIZE which is used
4782           only by the tape device. The VFS device still uses BLOCK_SIZE
4783           for reading; other devices don't need the property.
4784
4785 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4786         * server-src/amcheck.c: remove debugging message
4787         * device-src/tape-posix.c: fix compilation
4788           errors when MTCOMPRESSION is not defined
4789
4790 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4791         * Makefile.am config/Makefile.am config/ax_create_stdint_h.m4i
4792           autogen configure.in: remove AX_CREATE_STDINT_H
4793         * configure.in: add system-specific glib configuration
4794         * changer-src/scsi-cam.c device-src/device.c
4795           device-src/device.h device-src/tests/device_test.c
4796           device-src/rait-device.c server-src/amcheck.c
4797           server-src/taper.c server-src/amlabel.c
4798           restore-src/amrestore.c restore-src/restore.c
4799           common-src/glib-util.c common-src/security-util.c
4800           common-src/amanda.h common-src/krb4-security.c:
4801           replace references to stdint types and defines with glib
4802           equivalents
4803
4804 2007-09-25  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4805         * device-src/s3.c, device-src/tape-device.c,
4806           device-src/rait-device.c: Fix a number of compiler warnings, some
4807           legimate, others not. Thanks to Dustin J. Mitchell
4808           <dustin@zmanda.com> and Jean-Louis Martineau <martineau@zmanda.com>
4809           for help identifying warnings that need fixing.
4810
4811 2007-09-25  Dustin J. Mitchell <dustin@zmanda.com>
4812         * man/xml-source/amcleanup.8.xml server-src/amcleanupdisk.c
4813           server-src/amcleanup.sh.in: add -v option for verbose output
4814         * server-src/holding.c server-src/holding.h: rewrite 
4815           implementation of the holding API to use functors
4816         * server-src/driver.c: modifications to holding API changes
4817
4818 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4819         * device-src/device.c: Suppress a compiler warning.
4820
4821 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4822         * device-src/device.h, device-src/device.c, device-src/fd-device.c,
4823           device-src/tape-device.c, device-src/vfs-device.c,
4824           device-src/rait-device.c: Update the seek_file API skip missing
4825           files. Thanks to Dustin J. Mitchell <dustin@zmanda.com> and
4826           Jean-Louis Martineau <martineau@zmanda.com> for help with this patch.
4827         * restore-src/restore.c: Use the new API.
4828
4829 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4830         * client-src/Makefile.am, device-src/tests/Makefile.am,
4831           device-src/Makefile.am, configure.in, common-src/Makefile.am,
4832           tape-src/Makefile.am: Use AM_CFLAGS and LDFLAGS when
4833           compiling. These changes by Dustin J. Mitchell <dustin@zmanda.com>.
4834         * device-src/device.c, device-src/null-device.c,
4835           device-src/device.c, device-src/queueing.c, device-src/property.c,
4836           device-src/fd-device.c, device-src/s3-device.c,
4837           device-src/semaphore.h, device-src/property.h,
4838           device-src/vfs-device.c: Fix compiler warnings revealed by above
4839           change. Thanks to Jean-Louis Martineau Jean-Louis Martineau
4840           <martineau@zmanda.com> for help with these fixes.
4841
4842 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
4843         * restore-src/restore.c restore-src/restore.h:
4844         Allow NULLs in arguments to dump_match(); make it a static
4845         function.
4846
4847 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
4848         * device-src/device.c device-src/vfs-device.h
4849           device-src/rait-device.h device-src/device.h
4850           device-src/null-device.c device-src/tape-aix.c
4851           device-src/tape-uware.c device-src/null-device.h
4852           device-src/tape-xenix.c device-src/queueing.c
4853           device-src/semaphore.c device-src/property.c
4854           device-src/fd-device.c device-src/tape-device.c 
4855           device-src/queueing.h device-src/semaphore.h
4856           device-src/property.h device-src/tape-posix.c
4857           device-src/fd-device.h device-src/tape-device.h
4858           device-src/vfs-device.c device-src/rait-device.c
4859           device-src/tape-ops.h common-src/glib-util.c
4860           common-src/glib-util.h: restrict to GPLv2
4861
4862 2007-09-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
4863         * Correct Cygwin build errors:
4864           common-src/Makefile.am
4865           common-src/amanda.h
4866
4867 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
4868         * server-src/cmdline.c server-src/planner.c server-src/amadmin.c
4869           server-src/amcleanupdisk.c server-src/amflush.c
4870           server-src/holding.c server-src/holding.h server-src/driver.c
4871           server-src/find.c common-src/glib-util.c common-src/glib-util.h:
4872           remove 'verbose' flag, remove holding directories from API (they 
4873           will be gone soon anyway), and rework the holding module to use 
4874           glib data structures
4875
4876 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
4877         * gnulib/regenerate/regenerate gnulib/Makefile.am
4878           device-src/tests/Makefile.am device-src/Makefile.am
4879           server-src/taper-mem-port-source.c server-src/taper.c
4880           config/gnulib/gnulib-comp.m4 config/gnulib/gnulib-cache.m4
4881           config/gnulib.m4i common-src/physmem.c common-src/physmem.h
4882           common-src/amanda.h common-src/base64.c common-src/Makefile.am
4883           common-src/base64.h: move base64, physmem into gnulib and set
4884           device API to include libgnu.
4885
4886 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
4887         * common-src/Makefile.am: remove redundant use of EXTRA_DIST
4888
4889 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
4890         * device-src/device.c device-src/tests/device_test.c
4891           device-src/rait-device.c server-src/amcheck.c
4892           server-src/amtape.c server-src/taperscan.c server-src/taper.c
4893           server-src/amlabel.c restore-src/restore.c: device_open() no
4894           longer free()s the device name it is given.
4895
4896 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
4897         * restore-src/restore.c: fix uninitialized value error
4898
4899 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
4900         * server-src/changer.c server-src/amindexd.c
4901           restore-src/amidxtaped.c common-src/debug.c common-src/amanda.h
4902           common-src/alloc.c: fix support for builds without --with-debugging
4903
4904 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
4905         * device-src/tests/queue_test.c: simplify signal handling to
4906           be more portable
4907
4908 2007-09-24  Dustin J. Mitchell <dustin@zmanda.com>
4909         * server-src/cmdline.c server-src/cmdline.h:
4910           Optionally parse datestamps and levels
4911         * server-src/amadmin.c: pass flags to cmdline functions
4912         * server-src/find.c restore-src/amidxtaped.c
4913           restore-src/amrestore.c restore-src/restore.c
4914           restore-src/restore.h restore-src/amfetchdump.c:
4915           Use cmdline module in amrestore, amidxtaped, and amfetchdump
4916
4917 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4918         * restore-src/amrestore.c: Fix a segmentation fault that occurs
4919           when the user specifies hostname, diskname, and date. Thanks to
4920           Jean-Louis Martineau <martineau@zmanda.com> for finding and 
4921           fixing this bug.
4922
4923 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4924         * device-src/device.c (device_set_startup_properties_from_config):
4925           Use tapetype parameters as well as device_property directives.
4926         * device-src/device.h: ditto.
4927         * common-src/conffile.c: Use a new macro DEFAULT_TAPE_LENGTH
4928           as default tapetype length.
4929         * common-src/conffile.h: ditto.
4930         * restore-src/amrestore.c: Use new interface to
4931           devic_set_startup_properties_from_config().
4932         * restore-src/restore.c: ditto.
4933         * server-src/amcheck.c: ditto.
4934         * server-src/amlabel.c: ditto.
4935         * server-src/amtape.c: ditto.
4936         * server-src/taper.c: ditto.
4937         * server-src/taperscan.c: ditto.
4938
4939 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4940         * server-src/amcheck.c: Return 0 if everything is good with the
4941           tape. Thanks to Dustin Mitchell <dustin@zmanda.com> for 
4942           reporting this issue, and to Jean-Louis Martineau 
4943           <martineau@zmanda.com> for suggesting the form of the fix.
4944
4945 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4946         * server-src/restore.c: Only restore files matching requested
4947           disknames. Report and patch by Jean-Louis Martineau
4948           <martineau@zmanda.com>.
4949
4950 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4951         * server-src/restore.c: Drop some globals, use data types
4952           responsibly.
4953         
4954 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4955         * server-src/taper.c: Be slightly more rigorous in sanity-checking
4956           the expected number of splits.
4957         * server-src/taper-file-source.c: Correctly predict the number
4958           of splits.
4959         
4960 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4961         * device-src/vfs-device.c: Accept device names without a
4962           terminating '/'.
4963         
4964 2007-09-24  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
4965         Merge in new Device API. Thanks to Jean-Louis and Dustin for their
4966         code contributions to this patch.
4967
4968 2007-09-20  Dustin J. Mitchell <dustin@zmanda.com>
4969         * oldrecover-src/extract_list.c recover-src/extract_list.c: 
4970           change stralloc2 to newstralloc2 to avoid possible memory
4971           leak (coverity bug #214)
4972
4973 2007-09-17  Jean-Louis Martineau <martineau@zmanda.com>
4974         * client-src/client_util.c: Parse kencrypt in option string.
4975         * client-src/sendbackup.c: Send KENCRYPT keyword in REP packet.
4976         * client-src/client_util.h: Add kencrypt field in option_t.
4977         * amandad-src/amandad.c: Enable kencrypt.
4978         * server-src/dumper.c: Enable kencrypt.
4979         * common-src/security.h (accept): New prototype, add conf_fn and datap.
4980         * common-src/bsdtcp-security.c (bsdtcp_accept): Use new param.
4981         * common-src/ssh-security.c (ssh_connect): Set rh->rc->conf_fn and
4982                                                    rh->rc->datap
4983         * common-src/security-util.c (sec_accept): Set rc->conf_fn and
4984                                                    rc->datap
4985         * common-src/amanda.h (kencrypt_type): New enum.
4986         * common-src/bsdudp-security.c (bsdudp_accept): Use new param.
4987         * common-src/security-util.h (sec_accept): New prototype.
4988         * common-src/krb5-security.c: encryption enabled based on kencrypt.
4989         * common-src/bsd-security.c (bsd_accept):  Use new param.
4990
4991 2007-09-14  Dustin J. Mitchell <dustin@zmanda.com>
4992         * common-src/util.c common-src/util.h: add euid checks to
4993           check_running_as
4994         * client-src/runstar.c client-src/noop.c client-src/runtar.c
4995           client-src/sendbackup.c client-src/killpgrp.c
4996           client-src/sendsize.c client-src/selfcheck.c
4997           client-src/rundump.c client-src/calcsize.c
4998           amandad-src/amandad.c configure.in server-src/amlogroll.c
4999           server-src/amindexd.c server-src/dumper.c server-src/planner.c
5000           server-src/chunker.c server-src/amadmin.c server-src/amtape.c
5001           server-src/amcleanupdisk.c server-src/amflush.c
5002           server-src/amtrmlog.c server-src/amdevcheck.c
5003           server-src/driver.c server-src/reporter.c server-src/taper.c
5004           server-src/amtrmidx.c server-src/amlabel.c
5005           restore-src/amidxtaped.c restore-src/amfetchdump.c: use them
5006         * common-src/krb5-security.c: remove unused variable
5007
5008 2007-09-14  Dustin J. Mitchell <dustin@zmanda.com>
5009         * server-src/getconf.c: Don't check running_as in amgetconf, as
5010           it may not have a configuration file (e.g., for build params)
5011
5012 2007-09-12  Dustin J. Mitchell <dustin@zmanda.com>
5013         Bug identified by Satya Ganga <gsat@zmanda.com>
5014         * common-src/util.c: handle bad call to check_running_as correctly
5015
5016 2007-09-11  Dustin J. Mitchell <dustin@zmanda.com>
5017         Bug reported by Bill Bartlett; patch by Jean-Louis Martineau
5018         <martineau@zmanda.com>
5019         * common-src/statfs.c: fix error in available-space calculations
5020
5021 2007-09-10  Dustin J. Mitchell <dustin@zmanda.com>
5022         * server-src/amcheck.c: quiet compiler warnings when SINGLE_USERID is
5023           defined
5024
5025 2007-09-10  Dustin J. Mitchell <dustin@zmanda.com>
5026         * configure.in: change FORCE_USERID to CHECK_USERID, add SINGLE_USERID
5027           (when all of Amanda runs as the same userid) and WANT_SETUID_CLIENT
5028           (clint binaries should be setuid-root), currently only used on
5029           Cygwin.
5030         * common-src/util.c common-src/util.h: utility functions for userid
5031           checks and manipulations
5032         * oldrecover-src/amrecover.c client-src/runstar.c
5033           client-src/noop.c client-src/runtar.c client-src/sendbackup.c
5034           client-src/killpgrp.c client-src/sendsize.c
5035           client-src/selfcheck.c client-src/rundump.c
5036           client-src/calcsize.c amandad-src/amandad.c
5037           recover-src/amrecover.c server-src/amlogroll.c
5038           server-src/amindexd.c server-src/amcheck.c server-src/dumper.c
5039           server-src/planner.c server-src/chunker.c server-src/amadmin.c
5040           server-src/amtape.c server-src/amcleanupdisk.c
5041           server-src/getconf.c server-src/amflush.c server-src/amtrmlog.c
5042           server-src/amdevcheck.c server-src/driver.c
5043           server-src/reporter.c server-src/taper.c server-src/amdump.sh.in
5044           server-src/amtrmidx.c server-src/amlabel.c common-src/genversion.c 
5045           restore-src/amidxtaped.c restore-src/amfetchdump.c
5046           common-src/bsdtcp-security.c common-src/bsdudp-security.c
5047           common-src/krb5-security.c common-src/krb4-security.c
5048           common-src/bsd-security.c: use utility functions to check userids.
5049
5050 2007-09-07  Dustin J. Mitchell <dustin@zmanda.com>
5051         Change by Paul Bijnens
5052         * man/xml-source/amanda.conf.5.xml: Clarify 'etimeout'
5053
5054 2007-09-07  Dustin J. Mitchell <dustin@zmanda.com>
5055         * gnulib/regenerate/no-error.patch gnulib/Makefile.am: remove
5056           spurious sign-compare warnings from gnulib
5057
5058 2007-09-05  Dustin J. Mitchell <dustin@zmanda.com>
5059         Bug identified downstream in Debian packaging
5060         * changer-src/chg-null.sh.in: fix typo
5061
5062 2007-08-29  Dustin J. Mitchell <dustin@zmanda.com>
5063         * common-src/genversion.c common-src/Makefile.am: add subversion revision 
5064           and branch info to 'amadmin x version'
5065
5066 2007-08-23  Dustin J. Mitchell <dustin@zmanda.com>
5067         sf bug #1775316 reported by joerg <altix@users.sourceforge.net>
5068         * configure.in: use 'sed' instead of shell substitutions to C-quote
5069           ssh arguments
5070
5071 2007-08-22  Dustin J. Mitchell <dustin@zmanda.com>
5072         * common-src/Makefile.am: adjust dependencies so that 'make dist' can
5073           run without a 'make all'
5074
5075 2007-08-20  Dustin J. Mitchell <dustin@zmanda.com>
5076         * client-src/sendbackup-gnutar.c client-src/sendsize.c: use
5077           sanitized, canonicalized, and quoted filenames where necessary
5078         * server-src/driver.c: quote diskname in logfile
5079         * common-src/amanda.h common-src/file.c: Add ':' to the list
5080           of characters sanitised when constructing filenames from
5081           disknames; add canonicalize_pathname()
5082
5083 2007-08-14  Dustin J. Mitchell <dustin@zmanda.com>
5084         * common-src/amanda.h common-src/util.h: move readline headers
5085           out of amanda.h and into util.h, since the corresponding
5086           functions are in util.c
5087         * common-src/util.c: comments
5088         * configure.in: check for both headers and libraries and define
5089           HAVE_READLINE if both are found; add new --with-readline
5090           to require readline and --without-readline to not search
5091           for it at all.
5092         * oldrecover-src/Makefile.am recover-src/Makefile.am: remove explicit
5093           use of READLINE_LIBS
5094
5095 2007-08-09  Dustin J. Mitchell <dustin@zmanda.com>
5096         Patch by C R Ritson <c.r.ritson@newcastle.ac.uk>
5097         * server-src/amverifyrun.sh.in: "lock" the logfile by creating a 
5098           symlink.
5099
5100 2007-08-06  Dustin J. Mitchell <dustin@zmanda.com>
5101         * example/DLT-A4.ps example/Makefile.am: add new template contributed
5102           by Terry Burton <tez@terryburton.co.uk>.
5103
5104 2007-08-01  Dustin J. Mitchell <dustin@zmanda.com>
5105         Patch by Satya Ganga <gsat@zmanda.com>
5106         * server-src/amcleanup.sh.in: shell-compatibility fixes for bash-2.03
5107           (Solaris 8)
5108
5109 2007-07-31  Dustin J. Mitchell <dustin@zmanda.com>
5110         * common-src/statfs-test.c common-src/statfs.c common-src/statfs.h
5111           common-src/Makefile.am: Add a statfs-test to make sure that
5112           statfs works on target systems.
5113
5114 2007-07-27  Ian Turner <ian@zmanda.com>
5115         * restore-src/amfetchdump.c: Check for required arguments in
5116           all cases.
5117
5118 2007-07-27  Dustin J. Mitchell <dustin@zmanda.com>
5119         * config/automake/check-perl.am: new automake fragment to check perl scripts
5120         * config/automake/check-shell.am: new automake fragment to check shell scripts
5121         * configure.in changer-src/Makefile.am client-src/Makefile.am dumper-src/Makefile.am
5122           server-src/Makefile.am common-src/Makefile.am: use new checks
5123         * changer-src/chg-lib.sh.in: add newline for Solaris's 'bash'
5124         * changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in: fix errors found by
5125           new checks
5126
5127 2007-07-26  Ian Turner <ian@zmanda.com>
5128         * restore-src/restore.c: If tpchanger is not defined, then (duh)
5129           don't use the changer. This patch by Jean-Louis Martineau 
5130           <martineau@zmanda.com>.
5131
5132 2007-07-24  Dustin J. Mitchell <dustin@zmanda.com>
5133         * changer-src/chg-lib.sh.in common-src/amanda-sh-lib.sh.in
5134           configure.in common-src/Makefile.am: new general-purpose
5135           shell-script library
5136         * configure.in: check for prog 'gettext'
5137         * changer-src/chg-null.sh.in
5138           changer-src/chg-manual.sh.in changer-src/chg-disk.sh.in
5139           changer-src/chg-juke.sh.in changer-src/chg-rait.sh.in
5140           changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in
5141           amplot/amplot.sh.in client-src/patch-system.sh.in
5142           server-src/amcheckdb.sh.in server-src/amverifyrun.sh.in
5143           server-src/amrmtape.sh.in server-src/amverify.sh.in
5144           server-src/amfreetapes.sh.in server-src/amcleanup.sh.in
5145           server-src/amdump.sh.in common-src/amcrypt-ossl-asym.sh.in
5146           common-src/amcrypt.sh.in common-src/amaespipe.sh.in
5147           common-src/amcrypt-ossl.sh.in: use new library to function
5148           correctly even when gettext is missing.
5149
5150 2007-07-23  Jean-Louis Martineau <martineau@zmanda.com>
5151         * common-src/conffile.c: Set MaxWidth for numerical value
5152         * server-src/reporter.c: Calculate the size if a numerical value.
5153
5154 2007-07-20  Jean-Louis Martineau <martineau@zmanda.com>
5155         Patch by Dimitri Gorokhovik
5156         * changer-src/chg-multi.sh.in: Typo.
5157
5158 2007-07-18  Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
5159         * changer-src/chg-lib.sh.in, changer-src/chg-zd-mtx.sh.in: Correctly
5160           accept the use of tape:/dev/nst0 notation in chg-zd-mtx.
5161
5162 2007-07-18  Dustin J. Mitchell <dustin@zmanda.com>
5163         * server-src/reporter.c: fix reporting of STRANGE messages
5164
5165 2007-07-16  Dustin J. Mitchell <dustin@zmanda.com>
5166         * changer-src/chg-zd-mtx.sh.in: check for validity of 'mt' and 'mtx'
5167           binaries early, and produce appropriate error messages
5168
5169 2007-07-13  Dustin J. Mitchell <dustin@zmanda.com>
5170         * configure.in: add /usr/sfw/bin to SYSPATH for Solaris 10
5171
5172 2007-07-13  Jean-Louis Martineau <martineau@zmanda.com>
5173         * changer-src/chg-lib.sh.in: Remoce duplicate amdd, add ammt.
5174
5175 2007-07-12  Dustin J. Mitchell <dustin@zmanda.com>
5176         * autogen config/Makefile.am config/ax_compare_version.m4i
5177           Makefile.am: new m4 file
5178         * config/docbook-xslt-min.m4i config/docbook-dtd.m4i
5179           config/docbook-xslt.m4i: major bug fixing
5180
5181 2007-07-11  Dustin J. Mitchell <dustin@zmanda.com>
5182         * recover-src/amrecover.c recover-src/extract_list.c: Add detailed
5183           logging of the amrecover user conversation.
5184
5185 2007-07-11  Jean-Louis Martineau <martineau@zmanda.com>
5186         Patch by Paul Bijnens
5187         * changer-src/chg-multi.sh.in: Typo.
5188
5189 2007-07-10  Dustin J. Mitchell <dustin@zmanda.com>
5190         * configure.in: an empty 'MAILER' is no longer an error, just a
5191           warning
5192         * changer-src/chg-manual.sh.in changer-src/chg-scsi-chio.c
5193           changer-src/chg-scsi.c server-src/amverify.sh.in
5194           server-src/getconf.c common-src/genversion.c: conditionalize
5195           references to MAILER, to handle the situation when it is not
5196           set.
5197
5198 2007-07-09  Dustin J. Mitchell <dustin@zmanda.com>
5199         Documentation patch as suggested by Chris Hoogendyk and Olivier
5200         Nicole.
5201         * man/xml-source/amanda.8.xml: add better documentation about the 
5202           -o command-line option for configuration override.
5203
5204 2007-07-09  Jean-Louis Martineau <martineau@zmanda.com>
5205         * restore-src/restore.c: Don't do superfluous fsf,
5206                                  improve error handling.
5207
5208 2007-07-05  Dustin J. Mitchell <dustin@zmanda.com>
5209         * server-src/amadmin.c: correct misalignment of 'amadmin x balance'
5210           output, as reported by Stefan G. Weichinger <sgw@amanda.org>.
5211
5212 2007-07-03  Dustin J. Mitchell <dustin@zmanda.com>
5213         * common-src/amanda.h common-src/amflock.c: remove unused 
5214           CONFIGURE_TEST conditionals
5215
5216 2007-06-28  Dustin J. Mitchell <dustin@zmanda.com>
5217         * common-src/security-util.c: Change authorization error message to
5218         "Please add the line "HOST USER SERVICE" to AMANDAHOSTS on the client"
5219         as suggested by Paddy Sreenivasan <paddy@zmanda.com>.
5220
5221 2007-06-28  Dustin J. Mitchell <dustin@zmanda.com>
5222         * configure.in common-src/amflock-flock.c
5223           common-src/amflock-posix.c common-src/amanda.h
5224           common-src/amflock-lockf.c common-src/amflock-test.c
5225           common-src/amflock-lnlock.c common-src/amflock.c
5226           common-src/amflock.h common-src/Makefile.am:
5227           refactor file locking support into multiple implementations,
5228           only test for availability (not functionality) at configure
5229           time, and add a 'make check' test script.  Fixes a bug reported
5230           by Paul Crittenden.  Chris Hoogendyk, Jon LaBadie, and Jean-Louis
5231           Martineau helped track it down.
5232
5233 2007-06-27  Dustin J. Mitchell <dustin@zmanda.com>
5234         * autogen config/ax_create_stdint_h.m4i config/acinclude.m4i
5235           Makefile.am: use updated version of ax_create_stdint_h.m4
5236           from http://autoconf-archive.cryp.to/ax_create_stdint_h.html.
5237           Original by Guido U. Draheim <guidod@gmx.de>, patched locally
5238           to avoid spurious "command not found" on Solaris 10.
5239         * config/Makefile.am: add ax_create_stdint_h.m4i
5240
5241 2007-06-25  Dustin J. Mitchell <dustin@zmanda.com>
5242         * server-src/cmdline.c server-src/cmdline.h server-src/taperscan.c
5243           server-src/taperscan.h config/docbook-dtd.m4i
5244           config/docbook-xslt-min.m4i config/docbook-xslt.m4i
5245           config/xsltproc.m4i common-src/sockaddr-util.c
5246           common-src/sockaddr-util.h common-src/amaespipe.sh.in:
5247           restrict to GPLv2
5248
5249 2007-06-25  Dustin J. Mitchell <dustin@zmanda.com>
5250         * client-src/sendbackup.c client-src/killpgrp.c
5251           client-src/sendsize.c client-src/selfcheck.c
5252           server-src/amcheck.c server-src/reporter.c common-src/util.c
5253           common-src/util.h common-src/security-util.c: add str_exit_status()
5254           to interpret the status resulting from wait(), use it throughout
5255           the codebase.
5256
5257 2007-06-20  Dustin J. Mitchell <dustin@zmanda.com>
5258         * server-src/planner.c common-src/bsdudp-security.c
5259           common-src/krb5-security.c common-src/bsd-security.c:
5260           remove dead/unused code
5261
5262 2007-06-20  Dustin J. Mitchell <dustin@zmanda.com>
5263         * client-src/sendsize.c: call dbfn(), not debug_fn()
5264         * common-src/amanda.h: make dbfn() return a meaningful string
5265           when debugging is disabled
5266
5267 2007-06-19  Dustin J. Mitchell <dustin@zmanda.com>
5268         * tape-src/tapetype.c: close and re-open tape after rewind
5269           (patch from Franz Fischer <amanda@franz-fischer.de>, modified
5270           by Jean-Louis Martineau <martineau@zmanda.com>)
5271
5272 2007-06-06  Jean-Louis Martineau <martineau@zmanda.com>
5273         * restore-src/restore.c: accept all header with size >= DISK_BLOCK_BYTES
5274
5275 2007-06-18  Jean-Louis Martineau <martineau@zmanda.com>
5276         * server-src/amstatus.pl.in: Set and use chunk_time.
5277
5278 2007-06-07  Dustin J. Mitchell <dustin@zmanda.com>
5279         * server-src/amcleanupdisk.c: don't try to clean up holding disks
5280           if they are empty.
5281
5282 2007-06-06  Dustin J. Mitchell <dustin@zmanda.com>
5283         * client-src/sendbackup.c: remove bogus check for unknown program
5284
5285 2007-06-07  Jean-Louis Martineau <martineau@zmanda.com>
5286         Christopher McCrory found the cause of the problem.
5287         * server-src/find.c: Send ouput to stderr.
5288
5289 2007-06-07  Jean-Louis Martineau <martineau@zmanda.com>
5290         * configure.in: detect GNU tar's 'backup' and ignore it.  Thanks
5291           to Jeanna Geier <jeanna@webteam.net> for spotting this.
5292
5293 2007-06-05  Jean-Louis Martineau <martineau@zmanda.com>
5294         * common-src/util.c: Don't use -w flags for od execution.
5295
5296 2007-06-05  Dustin J. Mitchell <dustin@zmanda.com>
5297         * client-src/selfcheck.c: fix formatting typo
5298         * common-src/security.h: fix prototypes in comments
5299         * common-src/security-util.c common-src/util.c: fix 
5300           vstralloc errors
5301         * common-src/debug.c common-src/amanda.h: remove 
5302           debug_prefix_time
5303         * changer-src/scsi-linux.c changer-src/chg-scsi-chio.c
5304           changer-src/scsi-cam.c client-src/calcsize.c
5305           recover-src/amrecover.c server-src/driver.c
5306           client-src/sendbackup-gnutar.c server-src/find.c
5307           server-src/diskfile.c : format string / i18n tweaks
5308         * common-src/amcrypt-ossl.sh.in: fix shell quoting
5309
5310 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5311         * changer-src/sense.c server-src/driver.c server-src/reporter.c
5312           server-src/amadmin.c server-src/amtape.c common-src/amanda.h:
5313           use T_() instead of _T() as the macro flagging static strings
5314           in need of translation; fixes compilation error on Mac OS X, where
5315           _T is defined in the system headers.
5316
5317 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5318         * changer-src/chg-zd-mtx.sh.in changer-src/chg-multi.sh.in:
5319           use chg-lib.sh fully, fix i18n problems.
5320
5321 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5322         * common-src/krb5-security.c common-src/bsdtcp-security.c
5323           common-src/security-util.c: check results from getnameinfo()
5324           correctly
5325
5326 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5327         * server-src/amstatus.pl.in: use perl flags -Tw
5328
5329 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5330         * common-src/debug.c common-src/error.c: fix compilation errors
5331           on strict platforms.
5332
5333 2007-06-04  Jean-Louis Martineau <martineau@zmanda.com>
5334         * common-src/bsd-security.c common-src/bsdudp-security.c: 
5335           Make bsd, bsdudp open an IPv4 and an IPv6 socket; fixes bug reported
5336           by Marc Muehlfeld.
5337
5338 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5339         * oldrecover-src/Makefile.am changer-src/Makefile.am
5340           amplot/Makefile.am client-src/Makefile.am
5341           amandad-src/Makefile.am dumper-src/Makefile.am
5342           recover-src/Makefile.am restore-src/Makefile.am
5343           tape-src/Makefile.am: add quotes to allow spaces in user
5344           and group names
5345
5346 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5347         * changer-src/chg-scsi.c: use long int for tape sleep time
5348         * client-src/selfcheck.c: error out if no calcsize program is found
5349         * server-src/amindexd.c: run 'sort' in the C locale
5350         * server-src/amcheck.c: flag localhost not resolving as an error
5351         * server-src/diskfile.c: improve error handling
5352         * common-src/amcrypt.sh.in common-src/amcrypt-ossl-asym.sh.in
5353           common-src/amcrypt-ossl.sh.in: search /opt/csw/bin for openssl
5354           binaries; improve error handling
5355
5356 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
5357         * server-src/planner.c server-src/amcleanupdisk.c
5358           server-src/amflush.c server-src/holding.c server-src/holding.h:
5359           do not assume anything about the names of holding
5360           directories; use holding disk files themselves to discover
5361           dump time/datestamps
5362
5363 2007-06-04  Jean-Louis Martineau <martineau@zmanda.com>
5364         * common-src/krb5-security.c: Typo.
5365
5366 2007-06-01  Ian Turner <ian@zmanda.com>
5367         * restore-src/restore.c: Set flags->fsf = 0 by default.
5368
5369 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
5370         * server-src/driver.c: Check dumper->down.
5371         * server-src/dumper.c (sendbackup_response): Only call
5372           security_close_connection if pkt != NULL.
5373
5374 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
5375         * server-src/amstatus.pl.in: Use compressed size.
5376
5377 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
5378         * server-src/planner.c: Don't report overwrite if no label.
5379
5380 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
5381         * changer-src/chg-manual.sh.in: Don't reset the slot to 0 on eject.
5382
5383 2007-05-25  Kevin Till <ktill@zmanda.com>
5384         * example/amanda.conf.in: ditto
5385         * man/xml-source/amanda.conf.5.xml: ditto
5386         * common-src/conffile.c: ditto
5387
5388 2007-05-24  Dustin J. Mitchell <dustin@zmanda.com>
5389         * changer-src/scsi-changer-driver.c changer-src/scsi-cam.c
5390           client-src/sendbackup.c client-src/selfcheck.c
5391           recover-src/extract_list.c server-src/amindexd.c
5392           server-src/amcheck.c server-src/driver.c server-src/dumper.c
5393           server-src/planner.c server-src/amadmin.c server-src/diskfile.c
5394           contrib/set_prod_link.pl common-src/krb5-security.c
5395           common-src/bsd-security.c common-src/security-util.c
5396           common-src/conffile.c common-src/bsdudp-security.c:
5397           trivial changes to add _(), etc. -- harmonization of branch
5398           divergence caused by manual resolution of merge conflicts
5399
5400 2007-05-24  Satya Ganga <gsat@zmanda.com> (merged by dustin@zmanda.com)
5401         * server-src/amcleanup.sh.in: rewrite to find all the active
5402         process/children for a given configuration
5403
5404 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5405         * common-src/fileheader.c:
5406           Remove ".exe" extension from program name is tape header.
5407
5408 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5409         * config/gettext-macros/gettext.m4
5410         config/gettext-macros/inttypes-pri.m4:
5411           Change name gl_HEADER_INTTYPES_H to gl_AC_HEADER_INTTYPES_H
5412
5413 2007-05-24  Dustin J. Mitchell <dustin@zmanda.com>
5414         * configure.in: add configure.in recognition for Mac OS X
5415
5416 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5417         * configure.in: IPV6 on cygwin only partially works.
5418                 Force WORKING_IPV6 to false.
5419
5420 2007-05-24  Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
5421         * server-src/driver.c: use amanda text domain in driver
5422
5423 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5424         * config/libtool.m4i:
5425                 Fix to pass loader variables correctly on Solaris systems
5426                 with a gcc that does not use -static or -shared.
5427
5428 2007-05-24  Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
5429         * server-src/amstatus.pl.in: parse directory and holding_disk_dir with
5430           space correctly
5431
5432 2007-05-24  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5433         * client-src/sendbackup.c client-src/sendsize.c client-src/sendbackup-star.c
5434           configure.in server-src/amindexd.c server-src/taper.c server-src/diskfile.c
5435           config/acinclude.m4i common-src/amanda.h common-src/util.c
5436           common-src/security-util.c:
5437                 Fix compilation problems using GCC on solaris.
5438
5439 2007-05-24  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
5440         * server-src/reporter.c: Split FAILED and STRANGE section.
5441
5442 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5443         * common-src/conffile.c: Fix windows compilation warning.
5444
5445 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5446         * po/Makefile.am changer-src/scsi-changer-driver.c changer-src/sense.c
5447           client-src/unctime.c server-src/amadmin.c server-src/amtape.c
5448           server-src/driver.c server-src/reporter.c common-src/amanda.h
5449           tape-src/tapeio.h tape-src/tapetype.c:
5450                 Change _() gettext macro to call gettext()
5451                 Create _T() to allow gettext translation of static strings.
5452         * common-src/security.c:  Create larger buffers for error messages.
5453
5454 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5455         * configure.in: Prevent annoying lint usage message from
5456           being displayed in configure console output.
5457
5458 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5459         * autogen:
5460                 Fix problem of not generating po/Makefile.in on fresh checkout.
5461         * server-src/logfile.c:
5462                 Always output to logfile in "C" locale.
5463         * amandad-src/amandad.c changer-src/chg-scsi-chio.c
5464           changer-src/chg-scsi.c client-src/calcsize.c client-src/getfsent.c
5465           client-src/killpgrp.c client-src/noop.c client-src/rundump.c
5466           client-src/runstar.c client-src/runtar.c client-src/selfcheck.c
5467           client-src/sendbackup.c client-src/sendsize.c
5468           client-src/versionsuffix.c common-src/amfeatures.c
5469           common-src/amflock.c common-src/file.c common-src/genversion.c
5470           common-src/statfs.c common-src/token.c oldrecover-src/amrecover.c
5471           recover-src/amrecover.c restore-src/amfetchdump.c
5472           restore-src/amidxtaped.c restore-src/amrestore.c server-src/amadmin.c
5473           server-src/amcheck.c server-src/amcleanupdisk.c server-src/amflush.c
5474           server-src/amindexd.c server-src/amlabel.c server-src/amlogroll.c
5475           server-src/amtape.c server-src/amtrmidx.c server-src/amtrmlog.c
5476           server-src/chunker.c server-src/diskfile.c server-src/driver.c
5477           server-src/dumper.c server-src/getconf.c server-src/infofile.c
5478           server-src/planner.c server-src/reporter.c server-src/taper.c
5479           tape-src/amdd.c tape-src/ammt.c tape-src/tapeio.c tape-src/tapetype.c:
5480                 Change back to always run in "C" locale.
5481
5482 2007-05-23  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
5483         * changer-src/chg-manual.sh.in: Fix quoting; fix gettext usage.
5484
5485 2007-05-23  John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5486         * configure.in:
5487                 New gettext routines.
5488         * server-src/amcheckdb.sh.in server-src/amcleanup.sh.in
5489           server-src/amverifyrun.sh.in server-src/amrmtape.sh.in
5490           server-src/amverify.sh.in server-src/amdump.sh.in
5491           server-src/amfreetapes.sh.in amplot/amplot.sh.in
5492           changer-src/chg-mtx.sh.in changer-src/chg-null.sh.in
5493           changer-src/chg-manual.sh.in changer-src/chg-zd-mtx.sh.in
5494           changer-src/chg-disk.sh.in changer-src/chg-juke.sh.in
5495           changer-src/chg-rait.sh.in changer-src/chg-scsi.c
5496           changer-src/chg-chs.sh.in changer-src/chg-multi.sh.in
5497           changer-src/chg-mcutil.sh.in client-src/patch-system.sh.in
5498           common-src/amcrypt.sh.in common-src/amaespipe.sh.in
5499           common-src/amcrypt-ossl-asym.sh.in common-src/amcrypt-ossl.sh.in:
5500                 Internationalize shell messages
5501         * autogen config/gettext-macros/nls.m4
5502           config/gettext-macros/lib-link.m4:
5503                 Update for autoconf version 2.6 autogen
5504         * oldrecover-src/amrecover.c recover-src/amrecover.c
5505           server-src/amflush.c server-src/logfile.c server-src/amtrmlog.c
5506           server-src/amlogroll.c server-src/amindexd.c server-src/amcheck.c
5507           server-src/driver.c server-src/dumper.c server-src/chunker.c
5508           server-src/planner.c server-src/reporter.c server-src/amadmin.c
5509           server-src/amtape.c server-src/taper.c server-src/server_util.c
5510           client-src/versionsuffix.c client-src/runtar.c
5511           server-src/amtrmidx.c server-src/amcleanupdisk.c
5512           server-src/getconf.c server-src/diskfile.c
5513           changer-src/chg-scsi-chio.c client-src/noop.c server-src/infofile.c
5514           server-src/amlabel.c client-src/sendbackup.c client-src/getfsent.c
5515           client-src/killpgrp.c client-src/sendsize.c client-src/selfcheck.c
5516           client-src/rundump.c client-src/calcsize.c restore-src/amidxtaped.c
5517           restore-src/amrestore.c restore-src/amfetchdump.c Makefile.am
5518           amandad-src/amandad.c common-src/genversion.c common-src/debug.c
5519           common-src/error.c common-src/statfs.c common-src/amflock.c
5520           common-src/file.c common-src/token.c common-src/security-util.c
5521           common-src/conffile.c common-src/amanda.h common-src/amfeatures.c
5522           tape-src/ammt.c tape-src/amdd.c tape-src/tapeio.c
5523           tape-src/tapetype.c:
5524                 Use amanda domain for LC_MESSAGES.
5525
5526 2007-05-22  Maitreyee Karmarkar <maitreyee@zmanda.com> (merged by dustin@zmanda.com)
5527         * server-src/amcheck.c : Changed some amcheck messages
5528         * common-src/conffile.c : Changed some amcheck messages
5529         
5530 2007-05-22  Maitreyee Karmarkar <maitreyee@zmanda.com> (merged by dustin@zmanda.com)
5531         * client-src/selfcheck.c, server-src/changer.c, server-src/amcheck.c,
5532           server-src/taperscan.c, server-src/diskfile.c,
5533           common-src/conffile.c:
5534           Change in some amcheck error messages
5535
5536 2007-05-22   John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5537         * common-src/krb5-security.c common-src/security-util.c
5538           server-src/taper.c server-src/taperscan.c:
5539                 Fix botched *vstrallocf conversions.
5540         * oldrecover-src/extract_list.c server-src/amlogroll.c
5541           server-src/chunker.c server-src/driver.c server-src/dumper.c
5542           server-src/getconf.c server-src/holding.c server-src/planner.c
5543           server-src/reporter.c server-src/taper.c:
5544                 Add errno text when printing getcwd() error message.
5545
5546 2007-05-22  Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
5547         * configure.in: move crypt scripts to common-src since they are needed
5548           by both server and client
5549         * common-src/Makefile.am: ditto
5550         * server-src/Makefile.am: ditto
5551
5552 2007-05-17   John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5553         * configure.in oldrecover-src/amrecover.c
5554           oldrecover-src/extract_list.c oldrecover-src/display_commands.c
5555           oldrecover-src/help.c oldrecover-src/set_commands.c
5556           recover-src/amrecover.c recover-src/extract_list.c
5557           recover-src/display_commands.c recover-src/help.c
5558           recover-src/set_commands.c server-src/amflush.c
5559           server-src/changer.c server-src/taperscan.c server-src/logfile.c
5560           server-src/amtrmlog.c server-src/driverio.c
5561           server-src/amlogroll.c server-src/tapefile.c
5562           server-src/amindexd.c server-src/driver.c server-src/amcheck.c
5563           server-src/dumper.c server-src/chunker.c server-src/planner.c
5564           server-src/reporter.c server-src/server_util.c
5565           server-src/amadmin.c server-src/amtape.c server-src/taper.c
5566           server-src/amcleanupdisk.c server-src/find.c
5567           server-src/amtrmidx.c server-src/getconf.c
5568           server-src/diskfile.c server-src/infofile.c
5569           server-src/amlabel.c changer-src/scsi-linux.c
5570           changer-src/chg-scsi-chio.c changer-src/scsi-chio.c
5571           changer-src/scsi-hpux.c changer-src/scsi-changer-driver.c
5572           changer-src/scsi-cam.c changer-src/chg-scsi.c
5573           changer-src/scsi-bsd.c changer-src/scsi-irix.c
5574           changer-src/scsi-solaris.c changer-src/sense.c
5575           changer-src/scsi-aix.c changer-src/scsi-hpux_new.c
5576           autogen client-src/unctime.c client-src/versionsuffix.c
5577           client-src/noop.c client-src/client_util.c client-src/runtar.c
5578           client-src/sendbackup-gnutar.c client-src/getfsent.c
5579           client-src/sendbackup.c client-src/sendbackup-dump.c
5580           client-src/killpgrp.c client-src/sendsize.c
5581           client-src/selfcheck.c client-src/rundump.c
5582           client-src/calcsize.c client-src/amandates.c
5583           restore-src/amidxtaped.c restore-src/amrestore.c
5584           restore-src/restore.c restore-src/amfetchdump.c Makefile.am
5585           amandad-src/amandad_util.c amandad-src/amandad.c
5586           common-src/rsh-security.c common-src/pipespawn.c
5587           common-src/security.c common-src/krb5-security.c
5588           common-src/util.c common-src/genversion.c
5589           common-src/bsdtcp-security.c common-src/debug.c
5590           common-src/fileheader.c common-src/dgram.c
5591           common-src/stream.c common-src/match.c
5592           common-src/protocol.c common-src/ssh-security.c
5593           common-src/statfs.c common-src/krb4-security.c
5594           common-src/amflock.c common-src/bsd-security.c
5595           common-src/file.c common-src/token.c common-src/event.c
5596           common-src/security-util.c common-src/conffile.c
5597           common-src/amanda.h common-src/bsdudp-security.c
5598           common-src/alloc.c common-src/clock.c common-src/amfeatures.c
5599           tape-src/ammt.c tape-src/amdd.c tape-src/output-file.c
5600           tape-src/tapeio.c tape-src/tapeio.h tape-src/output-tape.c
5601           tape-src/tapetype.c tape-src/output-rait.c:
5602           o First stage of internationalization.
5603             - Add GNU gettext to configuration.
5604             - Add _() macro to flag translatable strings and modify
5605               code to use it.  Macros like SSIZE_T_FMT are included in
5606               this call, even though xgettext will not parse them; this
5607               will be fixed later.
5608             - Add plural() function for selecting singular or plural form
5609               of string and modify code to use it.
5610             - Add amanda.po target to Makefile.
5611
5612 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5613         * server-src/amcheck.c: Remove bogus amfree(newtapefile).
5614
5615 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5616         * server-src/amcheck.c: Check all tapelist filename.
5617
5618 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5619         * server-src/dumper.c (read_datafd): Reset timeout after the write.
5620
5621 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5622         * amplot/amplot.sh.in: Remove function keyword.
5623         * changer-src/chg-lib.sh.in: Remove function keyword.
5624         * changer-src/chg-multi.sh.in: Remove function keyword.
5625         * changer-src/chg-zd-mtx.sh.in: Remove function keyword.
5626
5627 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5628         * server-src/diskfile.c: Fix double free.
5629
5630 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5631         * common-src/amanda.h: define sockaddr_storage and ss_family.
5632         * common-src/amanda.h: define INET_ADDRSTRLEN.
5633         * config/acinclude.m4i (AC_SOCKADDR_STORAGE): New macro.
5634         * configure.in: AC_SOCKADDR_STORAGE.
5635
5636 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5637         * common-src/amanda.h: Define AI_V4MAPPED and AI_ALL.
5638
5639 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
5640         * util.c (cmp_sockaddr): un-map V4mapped address before comparison.
5641         * common-src/security-util.c: add debugging.
5642
5643 2007-05-17  Dustin J. Mitchell <dustin@zmanda.com> (merged by dustin@zmanda.com)
5644         * common-src/amanda.h: fix typo (missing 'extern') in erroutput_type
5645
5646 2007-05-16      John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5647         * oldrecover-src/amrecover.c oldrecover-src/extract_list.c
5648           oldrecover-src/display_commands.c oldrecover-src/set_commands.c
5649           recover-src/amrecover.c recover-src/extract_list.c
5650           recover-src/display_commands.c recover-src/set_commands.c
5651           server-src/changer.c server-src/taperscan.c
5652           server-src/amtrmlog.c server-src/amindexd.c server-src/driver.c
5653           server-src/amcheck.c server-src/dumper.c server-src/chunker.c
5654           server-src/planner.c server-src/reporter.c server-src/taper.c
5655           server-src/amtrmidx.c changer-src/scsi-linux.c
5656           changer-src/chg-scsi-chio.c changer-src/scsi-chio.c
5657           changer-src/scsi-hpux.c changer-src/scsi-cam.c
5658           changer-src/scsi-changer-driver.c changer-src/chg-scsi.c
5659           changer-src/scsi-bsd.c changer-src/scsi-irix.c
5660           changer-src/scsi-solaris.c changer-src/sense.c
5661           changer-src/scsi-aix.c changer-src/scsi-hpux_new.c
5662           client-src/client_util.c client-src/runtar.c
5663           client-src/sendbackup-gnutar.c client-src/sendbackup.c
5664           client-src/sendbackup-dump.c client-src/killpgrp.c
5665           client-src/sendsize.c client-src/selfcheck.c
5666           client-src/rundump.c client-src/calcsize.c
5667           client-src/amandates.c restore-src/amidxtaped.c
5668           restore-src/restore.c amandad-src/amandad_util.c
5669           amandad-src/amandad.c common-src/rsh-security.c
5670           common-src/sockaddr-util.c common-src/pipespawn.c
5671           common-src/security.c common-src/krb5-security.c
5672           common-src/util.c common-src/util.h common-src/bsdtcp-security.c
5673           common-src/tapelist.c common-src/debug.c common-src/fileheader.c
5674           common-src/error.c common-src/dgram.c common-src/stream.c
5675           common-src/protocol.c common-src/ssh-security.c
5676           common-src/krb4-security.c common-src/bsd-security.c
5677           common-src/event.c common-src/security-util.c
5678           common-src/conffile.c common-src/amanda.h
5679           common-src/bsdudp-security.c common-src/security-util.h
5680           common-src/alloc.c tape-src/output-file.c tape-src/tapeio.c
5681           tape-src/output-tape.c:
5682                 - Change dbprintf() to use __VA_ARGS__. (Remove extra parens)
5683                 - Prepend program name and nano second accuracy time stamp
5684                   to each line in debug file.
5685                 - Emove any resulting duplicate timestamps from functions that
5686                   inserted them in each dbprintf() line.
5687                 - Fix dballoc compilation.
5688                 - Fix dbmalloc compilation.
5689                 - Fix amfree() to report file and line # of amfree line during
5690                   errors.
5691                 - Add vstrallocf() and newvstrallocf() functions. These are
5692                   the same as vstralloc() and newvstralloc() except they use
5693                   printf style format strings.  (Required to eliminate
5694                   untranslateable string concatenations in messages.)
5695                 - Change files to use *allocf() functions where it seemed
5696                   appropriate..
5697                 - Fix kerberos 4 compilation.
5698                 - Fix kerberos 5 compilation.
5699
5700 2007-05-16  Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
5701         * common-src/debug.c (debug_rename): Fix for cygwin: rename
5702           will not overwrite an existing file
5703
5704 2007-05-15   John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
5705         * client-src/sendbackup.c common-src/dgram.c common-src/event.c
5706           server-src/changer.c server-src/driverio.c:
5707                 Cast FD_SETSIZE to int to avoid compilation problems.
5708
5709 2007-05-15   Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
5710         * common-src/debug.c: dbrename patch by Jean-Louis Martineau to
5711           unlink the target of the rename operation before renaming.
5712
5713 2007-05-15  Dustin J. Mitchell <dustin@zmanda.com>
5714         * client-src/sendsize.c: fix parsing of include/excludes for 
5715           old clients
5716
5717 2007-05-11  Jean-Louis Martineau <martineau@zmanda.com>
5718         * server-src/amcrypt-ossl-asym.sh.in: Use CLIENT_LOGIN.
5719         * server-src/amcrypt-ossl.sh.in: Use CLIENT_LOGIN.
5720
5721 2007-05-08  Jean-Louis Martineau <martineau@zmanda.com>
5722         * common-src/krb5-security.c: Fix compilation.
5723
5724 2007-05-09      Dustin J. Mitchell <dustin@zmanda.com>
5725         * common-src/stream.c: add errno's to stream_client_internal
5726
5727 2007-05-09      Dustin J. Mitchell <dustin@zmanda.com>
5728         * server-src/amadmin.c server-src/infofile.c
5729           common-src/security-util.c common-src/krb5-security.c:
5730           fix type-punning warnings
5731
5732 2007-05-09      Dustin J. Mitchell <dustin@zmanda.com>
5733         * recover-src/set_commands.c server-src/amcheck.c
5734           server-src/dumper.c common-src/rsh-security.c
5735           common-src/krb5-security.c common-src/util.c common-src/util.h
5736           common-src/bsdtcp-security.c common-src/stream.c
5737           common-src/ssh-security.c common-src/bsd-security.c
5738           common-src/security-util.c common-src/bsdudp-security.c
5739           common-src/security-util.h: Add IPv6-savvy resolve_hostname() and use it
5740           everywhere
5741
5742 2007-05-08  Jean-Louis Martineau <martineau@zmanda.com>
5743         * config/Makefile.am (EXTRA_DIST): Add docbook-dtd.m4i,
5744           docbook-xslt.m4i, docbook-xslt-min.m4i and xsltproc.m4i.
5745
5746 2007-05-07  Jean-Louis Martineau <martineau@zmanda.com>
5747         * common-src/stream.c: pass correct sockaddr size to bind()
5748
5749 2007-05-07  Pieter Bowman <bowman@math.utah.edu>
5750         * common-src/file.c: reverse the order of chown/chmod to correctly
5751           create temporary files.
5752
5753 2007-05-07  Jean-Louis Martineau <martineau@zmanda.com>
5754         * common-src/krb5-security.c: Fix compilation.
5755
5756 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
5757         * server-src/cmdline.c server-src/holding.c server-src/holding.h
5758           server-src/amadmin.c server-src/amcleanupdisk.c: remove 
5759           holding_file_read_header()
5760
5761 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
5762         * common-src/sockaddr-util.h common-src/bsdtcp-security.c common-src/security-util.c
5763           common-src/krb5-security.c common-src/stream.c: add and use a copy_sockaddr() macro
5764
5765 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
5766         * configure.in common-src/rsh-security.c common-src/bsdtcp-security.c
5767           common-src/ssh-security.c common-src/bsdudp-security.c
5768           common-src/krb5-security.c common-src/krb4-security.c common-src/bsd-security.c
5769           common-src/Makefile.am: use AM_CONDITIONAL to select security modules to compile
5770
5771 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
5772         * autogen man/Makefile.am configure.in config/acinclude.m4i
5773           config/docbook-xslt-min.m4i config/docbook-dtd.m4i config/docbook-xslt.m4i
5774           config/xsltproc.m4i Makefile.am: detect xsltproc, docbook xslt, and docbook
5775           dtd versions better, to ensure proper creation of manpages.
5776
5777 2007-05-04  Dustin J. Mitchell <dustin@zmanda.com>
5778         * server-src/amindexd.c common-src/sockaddr-util.c common-src/sockaddr-util.h
5779           common-src/util.c common-src/security-util.c common-src/amanda.h
5780           common-src/dgram.c common-src/stream.c common-src/Makefile.am: add new
5781           sockaddr-util.[ch] containing sockaddr-related functions.
5782
5783 2007-05-04  Jean-Louis Martineau <martineau@zmanda.com>
5784         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.3alpha)
5785
5786 2007-05-03  Jean-Louis Martineau <martineau@zmanda.com>
5787         * docs/*.txt: Update from xml-docs.
5788
5789 2007-05-03  Jean-Louis Martineau <martineau@zmanda.com>
5790         * man/xml-source/amrecover.8.xml: Fix space.
5791
5792 2007-05-03  Jean-Louis Martineau <martineau@zmanda.com>
5793         * Amanda 2.5.2 released.
5794         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2).
5795
5796 2007-05-02  Jean-Louis Martineau <martineau@zmanda.com>
5797         * docs/*.txt, man/xml-source/*.xml: Change OVERWRITE bu OVERRIDE.
5798         * man/xml-source/amadmin.8.xml: Add notees on no-reuse command.
5799
5800 2007-05-02  Jean-Louis Martineau <martineau@zmanda.com>
5801         * amandad-src/amandad.c: Improve 'invalid service' message.
5802
5803 2007-05-01  Jean-Louis Martineau <martineau@zmanda.com>
5804         * recover-src/extract_list.c: Report the error message.
5805         * recover-src/extract_list.c: Don't call close_connection.
5806         * common-src/security-util.c: (tcpm_close_connection): Check for rh->rc
5807
5808 2007-04-27  Jean-Louis Martineau <martineau@zmanda.com>
5809         * common-src/security-util.c (tcp1_stream_client): Set rh->rc->driver.
5810
5811 2007-04-27  Jean-Louis Martineau <martineau@zmanda.com>
5812         * common-src/bsd-security.c, common-src/bsdudp-security.c,
5813           common-src/krb4-security.c: Fix ntohs for port number.
5814         * common-src/dgram.c: Add socket number in comment.
5815
5816 2007-04-27  Dustin J. Mitchell <dustin@zmanda.com>
5817         * server-src/holding.c server-src/holding.h server-src/find.c:
5818           use holding module in find.c:search_holding_disk()
5819
5820 2007-04-27  Jean-Louis Martineau <martineau@zmanda.com>
5821         * server-src/amcheck.c: Fix infobad setting.
5822
5823 2007-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5824         * server-src/amcheck.c: Set *bad on error.
5825
5826 2007-04-26  Jean-Louis Martineau <martineau@zmanda.com>
5827         * server-src/amflush.c: Quote L_DISK and FLUSH line.
5828         * server-src/driver.c: Parse quoted FLUSH line.
5829         * server-src/planner.c:  Quote L_DISK and FLUSH line.
5830
5831 2007-04-25  Dustin J. Mitchell <dustin@zmanda.com>
5832         * configure.in common-src/ssh-security.c: allow build-time configuration of SSH options
5833
5834 2007-04-23  Paddy Sreenivasan <paddy@zmanda.com>
5835         * changer-src/scsi-solaris.c common-src/protocol.c: changes to build on Solaris
5836
5837 2007-04-20  Dustin J. Mitchell <dustin@zmanda.com>
5838         * configure.in: remove unused AMANDA_C_VOLATILE
5839         * config/acinclude.m4: remove unused AMANDA_C_VOLATILE
5840
5841 2007-04-20  Dustin J. Mitchell <dustin@zmanda.com>
5842         * autogen: silence unnecessary warnings about GNU make, return exit status
5843
5844 2007-04-20  Dustin J. Mitchell <dustin@zmanda.com>
5845         * common-src/stream.c: retry socket creation if OS does not support IPv6
5846           at runtime
5847
5848 2007-04-20  Jean-Louis Martineau <martineau@zmanda.com>
5849         * amplot/amplot.sh.in (test_awk,find_gnuplot): Imported from zmanda.
5850         * amplot/amplot.awk: Fix some parsing.
5851         * server-src/driver.c (free_kps): Return 0 instead of big value.
5852
5853 2007-04-18  Jean-Louis Martineau <martineau@zmanda.com>
5854         * oldrecover-src/Makefile.am, changer-src/Makefile.am,
5855           client-src/Makefile.am, amandad-src/Makefile.am,
5856           recover-src/Makefile.am, server-src/Makefile.am,
5857           restore-src/Makefile.am: Link libgnu after libamanda.
5858
5859 2007-04-18  Jean-Louis Martineau <martineau@zmanda.com>
5860         * client-src/sendbackup.c: Improve tar argument in amanda header for
5861                                    extraction.
5862
5863 2007-04-18  Dustin J. Mitchell <dustin@zmanda.com>
5864         * man/Makefile.am configure.in config/acinclude.m4i: add xsltproc- and docbook-
5865           related autoconf macros, use them to ensure the environment is appropriate for
5866           building manpages; manpage build is off by default.
5867
5868 2007-04-17  Jean-Louis Martineau <martineau@zmanda.com>
5869         * changer-src/chg-disk.sh.in: Send error message to stdout.
5870
5871 2007-04-17  Dustin J. Mitchell <dustin@zmanda.com>
5872         * changer-src/chg-zd-mtx.sh.in: fix more typos (thanks to
5873           "Stefan G. Weichinger" <sgw@amanda.org>)
5874
5875 2007-04-17  Jean-Louis Martineau <martineau@zmanda.com>
5876         * restore-src/restore.c: Fix restoration of split and encrypted backup.
5877
5878 2007-04-13  Dustin J. Mitchell <dustin@zmanda.com>
5879         * changer-src/chg-zd-mtx.sh.in: fix typo in error message
5880
5881 2007-04-13  Jean-Louis Martineau <martineau@zmanda.com>
5882         * Amanda 2.5.2b1 released.
5883         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2b1).
5884
5885 2007-04-13  Jean-Louis Martineau <martineau@zmanda.com>
5886         * client-src/sendbackup.c (first_num): Removed function.
5887         * client-src/sendbackup.c (the_num): return the nth number in a string.
5888         * client-src/sendbackup.h (AM_SIZE_RE): Need a field.
5889         * client-src/sendbackup-dump.c: Use new AM_SIZE_RE.
5890         * client-src/sendbackup-gnutar.c: Use new AM_SIZE_RE.
5891
5892 2007-04-13  Jean-Louis Martineau <martineau@zmanda.com>
5893         * NEWS: Change in amanda-2.5.2
5894         * ReleaseNotes: Releases Notes for 2.5.2
5895         * server-src/chunker.c (write_tapeheader): Set errno to ENOSPC.
5896
5897 2007-04-12  Dustin J. Mitchell <dustin@zmanda.com>
5898         * server-src/dumper.c: use fullwrite() instead of write()
5899
5900 2007-04-12  Jean-Louis Martineau <martineau@zmanda.com>
5901         * amandad-src/amandad.c: Remove duplicate setsockopt(,,SO_REUSEADDR).
5902         * common-src/bsd-security.c: Use int for setsockopt.
5903         * common-src/stream.c (try_socksize): Use int for setsockopt.
5904
5905 2007-04-12  Jean-Louis Martineau <martineau@zmanda.com>
5906         * server-src/amcheck.c: Remove duplicate test.
5907         * server-src/dumper.c: Use newvstralloc.
5908
5909 2007-04-12  Jean-Louis Martineau <martineau@zmanda.com>
5910         * server-src/reporter.c: Take value from chunker if it succeed and
5911                                  taper fail.
5912
5913 2007-04-10  Jean-Louis Martineau <martineau@zmanda.com>
5914         * configure.in: Use krb5 shared library.
5915
5916 2007-04-10  Dustin J. Mitchell <dustin@zmanda.com>
5917         * changer-src/chg-zd-mtx.sh.in: remove configurability of mt, mtx paths
5918
5919 2007-04-10  Jean-Louis Martineau <martineau@zmanda.com>
5920         * common-src/krb5-security.c: Initialize rc->gss_context.
5921
5922 2007-04-09  Dustin J. Mitchell <dustin@zmanda.com>
5923         * changer-src/chg-zd-mtx.sh.in: fix bugs in configuration for mt, mtx paths
5924
5925 2007-04-06  Dustin J. Mitchell <dustin@zmanda.com>
5926         * oldrecover-src/extract_list.c oldrecover-src/display_commands.c
5927           client-src/sendbackup.c client-src/getfsent.c client-src/sendsize.c
5928           client-src/selfcheck.c recover-src/amrecover.c recover-src/extract_list.c
5929           recover-src/display_commands.c server-src/amlogroll.c
5930           server-src/amindexd.c server-src/tapefile.c server-src/amcheck.c
5931           server-src/dumper.c server-src/planner.c server-src/reporter.c
5932           server-src/amadmin.c server-src/find.c server-src/infofile.c
5933           restore-src/amidxtaped.c common-src/security-util.c common-src/amanda.h:
5934           improve parsing with strcmp_const and strcmp_const_skip
5935
5936 2007-04-06  Jean-Louis Martineau <martineau@zmanda.com>
5937         * server-src/taper.c: Limit splitsize to 1G in PORT-WRITE.
5938
5939 2007-04-06  Jean-Louis Martineau <martineau@zmanda.com>
5940         * common-src/krb5-security.c: Report client hostname.
5941
5942 2007-04-06  Jean-Louis Martineau <martineau@zmanda.com>
5943         * common-src/tapelist.c (append_to_tape): Don't call dump_tapelist.
5944
5945 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com>
5946         * contrib/macosx/org.amanda.amandad.bsd*.plist: updated to use username
5947           'amandabackup'
5948
5949 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com>
5950         * amplot/amplot.sh.in configure.in config/acinclude.m4i:
5951           move checks for gnuplot, awk to runtime for easier packaging;
5952           add fake gettext functions to ease the transition to
5953           full gettext support
5954
5955 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com> 
5956         * server-src/amindex.c: fix bug where debug fd was closed by safe_fd,
5957           remove remote_hostname, rewrite to use getaddrinfo/getnameinfo
5958         * server-src/dumper.c server-src/amcheck.c recover-src/set_commands.c:
5959           use getaddrinfo/getnameinfo
5960         * common-src/security-util.[ch]: add try_resolving_hostname()
5961         * common-src/ssh-security.c common-src/rsh-security.c:
5962           use try_resolving_hostname, rewrite to avoid gethostbyname
5963         * common-src/krb5-security.c: use getaddrinfo instead of gethostbyname
5964
5965 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com>
5966         * changer-src/chg-lib.sh.in changer-src/chg-mtx.sh.in
5967           changer-src/chg-manual.sh.in changer-src/chg-zd-mtx.sh.in
5968           changer-src/chg-multi.sh.in changer-src/Makefile.am
5969           configure.in: make the path to MTX and other executables configurable
5970           in changer scripts; introduce new changer shell library to reduce
5971           code duplication; add fake gettext functions to ease the transition to
5972           full gettext support
5973
5974 2007-04-04  Dustin J. Mitchell <dustin@zmanda.com>
5975         * server-src/dumper.c server-src/chunker.c: remove assumed ENOSPC
5976           error in static write_tapeheader functions
5977
5978 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
5979         * common-src/security-util.c: Remove buggy &.
5980
5981 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
5982         * common-src/conffile.c: Add READBLOCKSIZE tapetype config option.
5983         * common-src/conffile.c(getconf_readblocksize): Function to retrieve
5984           the tapetype readblocksize or the configured maxtapeblocksize.
5985         * common-src/conffile.h: Add READBLOCKSIZE tapetype config option.
5986         * man/xml-source/amanda.conf.5.xml: Document it.
5987         * tape-src/output-tape.c: Use getconf_readblocksize.
5988         * tape-src/tapeio.c: Use getconf_readblocksize.
5989
5990 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
5991         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
5992           common-src/bsdudp-security.c,
5993           common-src/security-util.c: Fix auth_debug and dbprintf usage.
5994
5995 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
5996         Merge from zmanda ext.
5997         * man/xml-source/amadmin.8.xml man/xml-source/amanda.8.xml
5998           server-src/amflush.c server-src/cmdline.c server-src/cmdline.h
5999           server-src/holding.c server-src/holding.h server-src/driver.c
6000           server-src/planner.c server-src/amadmin.c server-src/taper.c
6001           server-src/amcleanupdisk.c server-src/find.c
6002           server-src/Makefile.am: revise holding-disk management, add new
6003           'amadmin' subcommand to list and delete dumps from the holding
6004           disk.
6005         * server-src/amadmin.c: Add 'amadmin XX holding list -l'
6006
6007 2007-04-02  Dustin J. Mitchell <dustin@zmanda.com>
6008         * common-src/bsdtcp-security.c common-src/bsd-security.c 
6009           common-src/security-util.c common-src/bsdudp-security.c:
6010           bugfixes, always check for NULL ai_canonname
6011         * common-src/util.c common-src/util.h common-src/krb4-security.c 
6012           common-src/security-util.c: bugfix for hosts with multiple addresses,
6013           improved cmp_sockaddr, remove redundant checks
6014         * server-src/taper.c: add log message when new tapes are auto-labeled
6015         * common-src/security-util.c: patch to avoid spurious compiler warnings
6016           noticed on FC3
6017
6018 2007-03-30  Dustin J. Mitchell <dustin@zmanda.com>
6019         * common-src/file.c: remove unused amanda_setup()
6020
6021 2007-03-30  Jean-Louis Martineau <martineau@zmanda.com>
6022         * common-src/amanda.h: Define a _() macro.
6023
6024 2007-03-28  Dustin J. Mitchell <dustin@zmanda.com>
6025         * common/amanda.h: fix typo in SS_SET_INADDR_ANY for non-IPv6 
6026           machines
6027         * gnulib/regenerate/regenerate: update to include visibility
6028           and lock modules (See 2007-03-14)
6029         * recover-src/extract_list.c common-src/krb4-security.c
6030           common-src/event.c common-src/security-util.c: use
6031           SELECT_ARG_TYPE instead of fd_set
6032
6033 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
6034         * common-src/krb5-security.c: Fix for krb5 and IPv6.
6035         * common-src/security-util.c: Fix for krb5 and IPv6.
6036
6037 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
6038         * common-src/krb5-security.c: Compile with heimdal kerberos.
6039
6040 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
6041         Fix solaris 9 problem:
6042         * common-src/krb5-security.c: Use putenv instead of setenv.
6043         * common-src/security-util.c: Set flags according to family.
6044
6045 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
6046         Merge from zmanda EXT.
6047
6048 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
6049         * Makefile.am (EXTRA_DIST): Remove contrib/gnulib-update-current.
6050
6051 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
6052         * server-src/reporter.c: Ouput quoted diskname in "DUMP SUMMARY"
6053           section.
6054
6055 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
6056         * changer-src/chg-zd-mtx.sh.in: Exit with a message if the
6057                                         configuration file doesn't exist.
6058
6059 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
6060         * common-src/conffile.c: Fix error message.
6061
6062 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
6063         * amandad-src/amandad.c: Fix segfault.
6064
6065 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
6066         * common-src/security-util.c: Use SS_LEN.
6067         * common-src/util.c: Use SS_LEN.
6068
6069 2007-03-21  Jean-Louis Martineau <martineau@zmanda.com>
6070         * common-src/security.h (security_driver): Add data_encrypt and
6071                                                    data_decrypt function.
6072         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
6073           common-src/bsdudp-security.c, common-src/krb4-security.c,
6074           common-src/rsh-security.c,
6075           common-src/ssh-security.c: Set data_encrypt and data_decrypt to NULL.
6076
6077         * common-src/conffile.c: Parse KRB5KEYTAB and KRB5PRINCIPAL on client.
6078         * common-src/krb5-security.c: Complete rewrite.
6079         * common-src/security-util.h: Change many prototype.
6080         * common-src/security-util.c: Change argument to function.
6081         * recover-src/amrecover.c: Use generic_client_get_security_conf.
6082         * recover-src/extract_list.c: Use generic_client_get_security_conf.
6083
6084 2007-03-21  Jean-Louis Martineau <martineau@zmanda.com>
6085         Merge from zmanda EXT.
6086         - Add SS_INIT, SS_SET_INADDR_ANY, SS_GET_PORT and SS_SET_PORT
6087           macros for IPv6 portability
6088         - add SS_LEN() macro for calculating length of a
6089           struct sockaddr, use it in a few locations where incorrect
6090           lengths were being passed.
6091         - New script for rebuilding gnulib from scratch; current
6092           gnulib is from "cvs update -D '2007-01-31 13:12:51 -0600'"
6093
6094 2007-03-12  Jean-Louis Martineau <martineau@zmanda.com>
6095         * recover-src/set_commands.c (set_tape): Don't amfree(tape).
6096         * oldrecover-src/set_commands.c (set_tape): Don't amfree(tape).
6097
6098 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
6099         * changer-src/scsi-linux.c, common-src/security-util.c,
6100           common-src/stream.c, oldrecover-src/amrecover.c,
6101           restore-src/restore.c, server-src/amcheck.c,
6102           server-src/taper.c: Use SIZE_T_FMT and SSIZE_T_FMT instead of %z.
6103
6104 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
6105         * common-src/bsd-security.c: Always retry getaddrinfo if INET6 failed.
6106         * common-src/bsdudp-security.c: Ditto.
6107
6108 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
6109         * common-src/debug.c: Remove old file in current directory.
6110
6111 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
6112         * changer-src/chg-chio.pl.in: Typo.
6113
6114 2007-02-21  Jean-Louis Martineau <martineau@zmanda.com>
6115         * recover-src/extract_list.c: Remove match for path_on_disk_slash.
6116
6117 2007-02-20  Jean-Louis Martineau <martineau@zmanda.com>
6118         * common-src/stream.c, common-src/util.c: Pass exact socklen_t to
6119                                                   bind and connect call.
6120
6121 2007-02-20  Jean-Louis Martineau <martineau@zmanda.com>
6122         * server-src/taper.c: Set splitsize to 0 if no data in file.
6123         * server-src/amflush.c: Don't send FLUSH request if no data in file.
6124         * server-src/planner.c: Don't send FLUSH request if no data in file.
6125         * server-src/driver.c: Don't send request to taper if no data in file.
6126
6127 2007-02-19  Jean-Louis Martineau <martineau@zmanda.com>
6128         * amandad-src/amandad.c: Fix compilation with --without-ipv6.
6129
6130 2007-02-19  Jean-Louis Martineau <martineau@zmanda.com>
6131         * server-src/amverify.sh.in: Remove bogus fi.
6132
6133 2007-02-16  Jean-Louis Martineau <martineau@zmanda.com>
6134         * server-src/amverify.sh.in: Add timeout on wait for device ready.
6135         * changer-src/chg-chio.pl.in: Wait (with timeout) for drive ready.
6136
6137 2007-02-15  Jean-Louis Martineau <martineau@zmanda.com>
6138         * server-src/taper.c: Don't call free_server_config.
6139
6140 2007-02-15  Jean-Louis Martineau <martineau@zmanda.com>
6141         * patching file oldrecover-src/amrecover.h (local_cd): Prototype.
6142         * oldrecover-src/set_commands.c: Works with quoted arguments.
6143         * oldrecover-src/uparse.y (LCD): Call local_cd.
6144         * recover-src/amrecover.h (local_cd): Prototype.
6145         * recover-src/set_commands.c: Works with quoted arguments.
6146         * recover-src/uparse.y (LCD): Call local_cd.
6147
6148 2007-02-14  Jean-Louis Martineau <martineau@zmanda.com>
6149         * common-src/security-util.c: Add "on the client" message.
6150
6151 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
6152         * server-src/amstatus.pl.in: fix for chunk and displayunit.
6153
6154 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
6155         * server-src/dumper.c: Fix if krb4 is compiled but another auth is
6156                                used.
6157
6158 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
6159         * common-src/alloc.c (safe_env): Remove LANG and LC_* only if we are
6160                                          priviledged process.
6161
6162 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
6163         * dumper-src/amgtar.pl.in: Replace -t options by -T.
6164         * dumper-src/Makefile.am: Remove perl -t options.
6165
6166 2007-02-12  Jean-Louis Martineau <martineau@zmanda.com>
6167         * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add sl.
6168         * common-src/statfs.c: Fix scale function.
6169
6170 2007-02-12  Jean-Louis Martineau <martineau@zmanda.com>
6171         * client-src/sendsize.c: Fix PARAM_HONOR_NODUMP.
6172
6173 2007-02-09  Jean-Louis Martineau <martineau@zmanda.com>
6174         * server-src/reporter.c: Fix postscript crash.
6175
6176 2007-02-09  Jean-Louis Martineau <martineau@zmanda.com>
6177         * changer-src/chg-manual.sh.in: Add tty, email, tty_email request mode.
6178
6179 2007-02-07  Jean-Louis Martineau <martineau@zmanda.com>
6180         * server-src/amindexd.c: Use dbfd.
6181
6182 2007-02-06  Jean-Louis Martineau <martineau@zmanda.com>
6183         * common-src/alloc.c (vstrallocf): New function.
6184         * common-src/amanda.h (vstrallocf): Prototype.
6185         * client-src/sendsize.c: Send error if fe_rep_sendsize_quoted_error.
6186         * common-src/amfeatures.c (am_init_feature_set): Set
6187                                                  fe_rep_sendsize_quoted_error.
6188         * common-src/amfeatures.h (fe_rep_sendsize_quoted_error): new features.
6189         * server-src/planner.c: Receive error message from sendsize.
6190
6191 2007-02-06  Jean-Louis Martineau <martineau@zmanda.com>
6192         * amandad-src/amandad.c, changer-src/scsi-linux.c,
6193           common-src/conffile.c, configure.in,
6194           man/Makefile.am, man/xml-source/amcheck.8.xml,
6195           server-src/amlabel.c, server-src/taper.c: Merge from zmanda.
6196
6197 2007-02-06  Jean-Louis Martineau <martineau@zmanda.com>
6198         * common-src/clock.c (timesub): The result must always be positive.
6199
6200 2007-02-05  Jean-Louis Martineau <martineau@zmanda.com>
6201         * changer-src/chg-zd-mtx.sh.in: Fix for sed and IMPORT/EXPORT.
6202
6203 2007-02-05  Jean-Louis Martineau <martineau@zmanda.com>
6204         * server-src/amcheck.c: Add parentheses.
6205
6206 2007-02-02  Jean-Louis Martineau <martineau@zmanda.com>
6207         * contrib/gnulib-update-current: New file.
6208         * Makefile.am (EXTRA_DIST): Add contrib/gnulib-update-current.
6209
6210 2007-02-02  Jean-Louis Martineau <martineau@zmanda.com>
6211         * man/Makefile.am: Use http://docbook.sourceforge.net
6212         * man/xml-source/amadmin.8.xml, man/xml-source/amaespipe.8.xml,
6213           man/xml-source/amanda.8.xml, man/xml-source/amanda-client.conf.5.xml,
6214           man/xml-source/amanda.conf.5.xml, man/xml-source/amcheck.8.xml,
6215           man/xml-source/amcrypt.8.xml, man/xml-source/amdump.8.xml,
6216           man/xml-source/amfetchdump.8.xml, man/xml-source/amflush.8.xml,
6217           man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml,
6218           man/xml-source/ammt.8.xml, man/xml-source/amrecover.8.xml,
6219           man/xml-source/amreport.8.xml,
6220           man/xml-source/amtape.8.xml: Fix for xmllint.
6221         * man/xslt/man.xsl: Remove bogus code.
6222
6223 2007-02-01  Jean-Louis Martineau <martineau@zmanda.com>
6224         * changer-src/chg-zd-mtx.sh.in: Support IMPORT/EXPORT slot.
6225
6226 2007-02-01  Jean-Louis Martineau <martineau@zmanda.com>
6227         * server-src/amdump.sh.in: Output a starttime line.
6228         * server-src/amflush.c: Output a starttime line.
6229         * server-src/amstatus.pl.in: parse the starttime line.
6230
6231 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
6232         * configure.in: Fix --with-ipv6 option.
6233
6234 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
6235         * server-src/amdump.sh.in: Exit with a status.
6236
6237 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
6238         * server-src/diskfile.c: Use hostnext pointer.
6239
6240 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
6241         * server-src/reporter.c: Exit with a status.
6242
6243 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
6244         * server-src/amstatus.pl.in: Exit with a status.
6245
6246 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
6247         * server-src/amstatus.pl.in: Detect failed dump to tape.
6248
6249 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
6250         * configure.in: Add --with-ipv6 option.
6251
6252 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
6253         * server-src/changer.c (changer_command): Send stderr to dbfd().
6254
6255 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
6256         * server-src/diskfile.c: Check hostname have same case.
6257
6258 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
6259         * changer-src/chg-zd-mtx.sh.in: Check if MT and MTX exists.
6260
6261 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
6262         * changer-src/chg-zd-mtx.sh.in: Set CHANGER environment variable.
6263
6264 2007-01-24  Jean-Louis Martineau <martineau@zmanda.com>
6265         * common-src/conffile.c: Cleanup conf_print function.
6266
6267 2007-01-24  Jean-Louis Martineau <martineau@zmanda.com>
6268         * common-src/conffile.c: Check for duplicate -o options.
6269         * recover-src/amrecover.c: Change precedence of option.
6270
6271 2007-01-24  Jean-Louis Martineau <martineau@zmanda.com>
6272         * server-src/diskfile.c: Fix compiler warning.
6273
6274 2007-01-23  Jean-Louis Martineau <martineau@zmanda.com>
6275         * common-src/security-util.c (tcpm_recv_token): Check size < 0.
6276
6277
6278 2007-01-23  Jean-Louis Martineau <martineau@zmanda.com>
6279         * server-src/diskfile.c: Check duplicate DLE with match_host and
6280                                  match_disk.
6281
6282 2007-01-18  Jean-Louis Martineau <martineau@zmanda.com>
6283         * client-src/selfcheck.c: Improve check if /etc/dumpdates in not there.
6284
6285 2007-01-18  Jean-Louis Martineau <martineau@zmanda.com>
6286         * restore-src/amfetchdump.c: Set arg_state to ARG_GET_HOST.
6287
6288 2007-01-18  Jean-Louis Martineau <martineau@zmanda.com>
6289         * server-src/amcheck.c: Check tape_access.
6290         * server-src/taper.c: Improve message.
6291
6292 2007-01-16  Jean-Louis Martineau <martineau@zmanda.com>
6293         * configure.in: Define GCC_COMPILER.
6294         * gnulib/Makefile.am: Add -Wno-error to AM_CFLAGS if GCC_COMPILER.
6295
6296 2007-01-16  Jean-Louis Martineau <martineau@zmanda.com>
6297         * server-src/getconf.c: Fix segfault in parameter parsing.
6298
6299 2007-01-15  Jean-Louis Martineau <martineau@zmanda.com>
6300         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
6301           common-src/bsdudp-security.c,
6302           common-src/stream.c: Don't call check_addrinfo_give_name.
6303         * common-src/security-util.c (check_addrinfo_give_name): Always log
6304                                                                  error message.
6305
6306 2007-01-11  Jean-Louis Martineau <martineau@zmanda.com>
6307         * common-src/conffile.c Set default length/filemark correctly.
6308         * man/xml-source/amanda.conf.5.xml: Document they are in kbytes.
6309
6310 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
6311         * config/gnulib/gnulib-common.m4: New file.
6312         * config/gnulib.m4i: Load config/gnulib/gnulib-common.m4.
6313
6314 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
6315         * amandad-src/amandad.c (do_sendpkt): Send packet if handle != NULL.
6316
6317 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
6318         * common-src/conffile.c, common-src/conffile.h,
6319           server-src/diskfile.c: Keep different list for exclude file and list.
6320
6321 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
6322         * server-src/taper.c (read_file): Don't count first header twice.
6323
6324 2007-01-05  Jean-Louis Martineau <martineau@zmanda.com>
6325         * server-src/amstatus.pl.in: Fix split-dump accounting.
6326
6327 2007-01-04  Jean-Louis Martineau <martineau@zmanda.com>
6328         * restore-src/restore.c: Use prompt_in.
6329
6330 2007-01-04  Jean-Louis Martineau <martineau@zmanda.com>
6331         * amandad-src/amandad.c, common-src/bsd-security.c,
6332           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
6333           common-src/dgram.c, common-src/security-util.c,
6334           common-src/stream.c,
6335           common-src/util.c: Replace HAVE_IPV6 by WORKING_IPV6.
6336         * configure.in: Define HAVE_IPV6 if IPv6 is working.
6337
6338 2007-01-04  Jean-Louis Martineau <martineau@zmanda.com>
6339         * changer-src/chg-chio.pl.in, changer-src/chg-iomega.pl.in,
6340           changer-src/chg-rth.pl.in, dumper-src/amgtar.pl.in,
6341           server-src/amoverview.pl.in, server-src/amstatus.pl.in,
6342           server-src/amtoc.pl.in: Clean ENV and set PATH.
6343
6344 2006-12-27  Jean-Louis Martineau <martineau@zmanda.com>
6345         * server-src/driver.c: Don't repport error for many run in a day if
6346                                it's amflush.
6347
6348 2006-12-27  Jean-Louis Martineau <martineau@zmanda.com>
6349         * common-src/util.c (quote_string): Escape '\' character.
6350
6351 2006-12-22  Jean-Louis Martineau <martineau@zmanda.com>
6352         * recover-src/display_commands.c: Send quoted text to amindexd.
6353         * recover-src/extract_list.c: Send quoted text to amindexd.
6354         * recover-src/set_commands.c: Send quoted text to amindexd.
6355
6356 2006-12-22  Jean-Louis Martineau <martineau@zmanda.com>
6357         * changer-src/chg-disk.sh.in: LASTSLOT in a changerfile for chg-disk.
6358
6359 2006-12-22  Jean-Louis Martineau <martineau@zmanda.com>
6360         * client-src/sendsize.c: Compilation fix.
6361
6362 2006-12-18  Jean-Louis Martineau <martineau@zmanda.com>
6363         * common-src/packet.c (pkt_init_empty): New function.
6364         * common-src/packet.h (pkt_init_empty): New prototype.
6365         * amandad-src/amandad.c, common-src/protocol.c,
6366           common-src/security-util.c: Use pkt_init_empty.
6367
6368 2006-12-18  Jean-Louis Martineau <martineau@zmanda.com>
6369         * common-src/conffile.c: Print nothing if the list is emtpy.
6370
6371 2006-12-14  Jean-Louis Martineau <martineau@zmanda.com>
6372         * restore-src/restore.c: Fix filename for output file.
6373
6374 2006-12-12  Jean-Louis Martineau <martineau@zmanda.com>
6375         * common-src/amanda.h: Define __attribute__ for gcc >= 3.
6376         * common-src/packet.c (pkt_init): Accept NULL for fmt.
6377         * amandad-src/amandad.c, common-src/protocol.c,
6378           common-src/security-util.c: Pass NULL to pkt_init.
6379         * amandad-src/amandad.c, changer-src/chg-scsi.c,
6380           changer-src/scsi-linux.c, client-src/sendbackup.c,
6381           common-src/amanda.h, common-src/conffile.c,
6382           common-src/event.c, common-src/packet.c,
6383           common-src/security-util.c, common-src/stream.c,
6384           common-src/util.c, oldrecover-src/amrecover.c,
6385           restore-src/restore.c, server-src/amcheck.c,
6386           server-src/driver.c, server-src/driverio.c,
6387           server-src/taper.c: Fix printf format error.
6388
6389 2006-12-12  Jean-Louis Martineau <martineau@zmanda.com>
6390         * server-src/amindexd.c: Use fgets to read index file because they
6391                                  are not quoted.
6392
6393 2006-12-12  Jean-Louis Martineau <martineau@zmanda.com>
6394         * configure.in: Find patch for sort program.
6395         * server-src/amindexd.c: Clean the indexd file between the uncompress
6396                                  and sort process.
6397
6398 2006-12-08  Jean-Louis Martineau <martineau@zmanda.com>
6399         * configure.in: Add ICE_CHECK_DECL(snprintf,stdio.h)
6400         * configure.in: Add ICE_CHECK_DECL(vsnprintf,stdio.h)
6401         * client-src/sendbackup.c: Fix ignoring return value of write.
6402
6403 2006-12-08  Jean-Louis Martineau <martineau@zmanda.com>
6404         * man/xml-source/amadmin.8.xml, man/xml-source/amanda.8.xml,
6405           man/xml-source/amanda.conf.5.xml, man/xml-source/amcheck.8.xml,
6406           man/xml-source/amfetchdump.8.xml, man/xml-source/ammt.8.xml,
6407           man/xml-source/amrecover.8.xml: Move </note> tag to beginning of line
6408
6409 2006-12-08  Jean-Louis Martineau <martineau@zmanda.com>
6410         * changer-src/chg-rait.sh.in: Fix typo for -reset.
6411
6412 2006-12-07  Jean-Louis Martineau <martineau@zmanda.com>
6413         * server-src/amindexd.c: Fix host case problem.
6414         * server-src/diskfile.c (add_disk, parse_diskline): Update hostname
6415                                                             field.
6416         * server-src/diskfile.h (disk_s): New hostname field.
6417         * server-src/disk_history.c (add_dump): New hostname parameter.
6418         * server-src/disk_history.h (DUMP_ITEM): New hostname field.
6419         * server-src/disk_history.h (add_dump): Protoype change.
6420
6421 2006-12-07  Jean-Louis Martineau <martineau@zmanda.com>
6422         * amandad-src/amandad.c: Add missing HAVE_IPV6.
6423         * common-src/security-util.c: Add missing HAVE_IPV6.
6424         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
6425           common-src/bsdudp-security.c, common-src/dgram.c,
6426           common-src/dgram.h, common-src/stream.c,
6427           common-src/util.c: Fix for broken getaddrinfo:not returning V4MAPPED
6428
6429 2006-12-07  Jean-Louis Martineau <martineau@zmanda.com>
6430         * common-src/conffile.c (lookup_keyword): Use strcasecmp.
6431         * common-src/conffile.c (get_conftoken): Don;t convert to uppercase.
6432         * server-src/getconf.c: Don;t print extra '\n' for --list.
6433
6434 2006-12-04  Jean-Louis Martineau <martineau@zmanda.com>
6435         * common-src/util.c (str_sockaddr): Use host byte order for port.
6436
6437 2006-12-04  Jean-Louis Martineau <martineau@zmanda.com>
6438         * server-src/amtape.h: Remove file.
6439
6440 2006-12-04  Jean-Louis Martineau <martineau@zmanda.com>
6441         Application API phase 1.
6442         * client-src/client_util.c, client-src/client_util.h,
6443           client-src/selfcheck.c, client-src/sendbackup.c,
6444           client-src/sendsize.c, common-src/amfeatures.c,
6445           common-src/amfeatures.h, common-src/fileheader.c,
6446           common-src/fileheader.h, recover-src/extract_list.c,
6447           server-src/amcheck.c, server-src/amstatus.pl.in,
6448           server-src/dumper.c, server-src/Makefile.am,
6449           server-src/planner.c: Fix for Application API.
6450         * configure.in: Fix for moved files.
6451         * dumper-src/generic-dumper.pl.in: Fix for Application API.
6452         * dumper-src/Makefile.am: Fix for renamed files.
6453         * dumper-src/gnutar.pl.in: Renamed to dumper-src/amgtar.pl.in.
6454         * dumper-src/amgtar.pl.in: Fix for Application API.
6455         * dumper-src/star.pl.in: Renamed to dumper-src/amstar.pl.in.
6456         * dumper-src/amstar.pl.in: Fix for Application API.
6457
6458 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
6459         * client-src/sendbackup.c: Kill dump process on error.
6460
6461 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
6462         * changer-src/chg-chio.pl.in: Check tapedev is set.
6463         * changer-src/chg-disk.sh.in: Check tapedev is set.
6464         * changer-src/chg-iomega.pl.in: Check tapedev is set.
6465         * changer-src/chg-manual.sh.in: Check tapedev is set.
6466         * changer-src/chg-mtx.sh.in: Check tapedev is set.
6467         * changer-src/chg-rth.pl.in: Check tapedev is set.
6468         * server-src/amcheck.c: Tapedev is needed only if tpchanger is not set.
6469         * server-src/amflush.c: Tapedev is needed only if tpchanger is not set.
6470         * server-src/amindexd.c: Tapedev is needed only if tpchanger is not set
6471         * server-src/taper.c: Tapedev is needed only if tpchanger is not set.
6472
6473 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
6474         * client-src/sendbackup.c: Ignore tar exit with status 1.
6475
6476 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
6477         * server-src/amindexd.c (clean_backslash): New function use to unescape
6478                                                  '\' characters in index files.
6479
6480 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
6481         * restore-src/restore.c (search_tapes): Fix prompt_out setting.
6482
6483 2006-11-28  Jean-Louis Martineau <martineau@zmanda.com>
6484         * common-src/amanda.h: Don't include gnulib header if CONFIGURE_TEST
6485                                is defined.
6486         * common-src/amflock.c (main): Remove unused fd variable.
6487
6488 2006-11-28  Jean-Louis Martineau <martineau@zmanda.com>
6489         * config/Makefile.am (EXTRA_DIST): Add gnulib.m4i.
6490
6491 2006-11-27  Jean-Louis Martineau <martineau@zmanda.com>
6492         * common-src/util.c (copy_file): Fix compilation error.
6493
6494 2006-11-27  Jean-Louis Martineau <martineau@zmanda.com>
6495         * common-src/stream.c: Fix compilation error.
6496
6497 2006-11-27  Jean-Louis Martineau <martineau@zmanda.com>
6498         * common-src/amanda.h (NI_MAXHOST): Define if not defined.
6499         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
6500           common-src/bsdudp-security.c, common-src/dgram.c,
6501           common-src/security-util.c, common-src/stream.c,
6502           common-src/util.c: HAVE_IPV6 conditional code
6503
6504 2006-11-26  Jean-Louis Martineau <martineau@zmanda.com>
6505         * config/gnulib/*: m4 files for gnulib.
6506         * config/gnulib.m4i: File to load all m4 files for gnulib.
6507         * gnulib/*: gnulib source.
6508         * */Makefile.am (INCLUDES): Add $(top_srcdir)/gnulib.
6509         * */Makefile.am (LDADD): Add ../gnulib/libgnu.$(LIB_EXTENSION).
6510         * Makefile.am (ACINCLUDE_M4_DEPS): Add $(srcdir)/config/gnulib.m4i.
6511         * Makefile.am (SUBDIRS): Add gnulib.
6512         * configure.in: AC_PREREQ(2.59), gl_EARLY, gl_INIT.
6513         * configure.in (AC_CONFIG_FILES): Add gnulib/Makefile.
6514         * autogen: Add config/gnulib.m4i to acinclude.m4.
6515
6516 2006-11-24  Jean-Louis Martineau <martineau@zmanda.com>
6517         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c,
6518           client-src/sendsize.c,
6519           server-src/amindexd.c: Patch for gcc-3.2.3 to compile the new
6520                                  vstralloc macro.
6521
6522 2006-11-24  Jean-Louis Martineau <martineau@zmanda.com>
6523         * common-src/file.c (old_sanitise_filename): New function.
6524         * common-src/amanda.h (old_sanitise_filename): Prototype.
6525         * common-src/util.c (copy_file): New function.
6526         * common-src/util.h (copy_file): Prototype.
6527         * server-src/diskfile.c: Check that two DLE doesn't get the same
6528                                  sanitized filename.
6529         * server-src/amindex.c (getoldindexfname): New function.
6530         * server-src/amindex.h (getoldindexfname): prototype.
6531         * server-src/amindexd.c: Use the old sanitized filename if the new
6532                                  file doesn't exist.
6533         * server-src/amcheck.c: Call check_infofile.
6534         * server-src/planner.c: Call check_infofile.
6535         * server-src/server_util.c (check_infofile): New function, will copy
6536                          the old sanitizes info file if the new doesn't exist.
6537         * server-src/server_util.h (check_infofile): Prototype.
6538
6539 2006-11-23  Jean-Louis Martineau <martineau@zmanda.com>
6540         * common-src/security-util.c (tcpm_recv_token): amanda protocol
6541           packet can be larger than NETWORK_BLOCK_BYTES
6542
6543 2006-11-21  Jean-Louis Martineau <martineau@zmanda.com>
6544         * common-src/stream.c: Fix compiler error.
6545
6546 2006-11-21  Jean-Louis Martineau <martineau@zmanda.com>
6547         * amandad-src/amandad.c, common-src/amanda.h,
6548           common-src/bsd-security.c, common-src/bsdtcp-security.c,
6549           common-src/bsdudp-security.c, common-src/dgram.c,
6550           common-src/dgram.h, common-src/krb4-security.c,
6551           common-src/krb5-security.c, common-src/security-util.c,
6552           common-src/security-util.h, common-src/stream.c,
6553           common-src/util.c, common-src/util.h,
6554           restore-src/amidxtaped.c, server-src/amindexd.c: IPV6.
6555
6556 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
6557         * client-src/sendsize.c, oldrecover-src/display_commands.c,
6558           oldrecover-src/extract_list.c, recover-src/display_commands.c,
6559           recover-src/extract_list.c,
6560           server-src/driver.c: Fix compiler error.
6561
6562 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
6563         * client-src/sendsize.c: Open the amandates file after the
6564                                  <config>/amanda-client.conf file is loaded.
6565
6566 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
6567         * client-src/sendsize.c: Fix compiler error on boris.
6568         * server-src/driver.c: Fix compiler error on rocky.
6569
6570 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
6571         * common-src/security-util.c, server-src/amcheck.c,
6572         * server-src/driver.c, server-src/dumper.c,
6573         * server-src/planner.c, tape-src/output-file.c: Lint cleanup.
6574
6575 2006-11-20  Ian Turner <ian@zmanda.com>
6576         * tape-src/output-file.c: Fix a compilation error related to
6577           improper type casts. Thanks to Satya Ganga for noticing this
6578           problem.
6579
6580 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
6581         * server-src/driver.c: Use temporary variable to scanf an OFF_T_FMT.
6582         * server-src/planner.c: Use temporary variable to scanf an OFF_T_FMT.
6583
6584 2006-11-13  Jean-Louis Martineau <martineau@zmanda.com>
6585         * client-src/selfcheck.c: Work for estimate calcsize and
6586                                   program "DUMP".
6587
6588 2006-11-13  Jean-Louis Martineau <martineau@zmanda.com>
6589         * server-src/amcheck.c: Don't ouput an warning if holdingdisk 'use'
6590                                 is set to 0.
6591
6592 2006-11-09  Jean-Louis Martineau <martineau@zmanda.com>
6593         * man/xml-source/amgetconf.8.xml: Document --list.
6594
6595 2006-11-09  Jean-Louis Martineau <martineau@zmanda.com>
6596         * changer-src/chg-scsi.c: Don't remove '_' from "generic_changer".
6597
6598 2006-11-08  Jean-Louis Martineau <martineau@zmanda.com>
6599         * common-src/amanda.h, common-src/conffile.c,
6600           common-src/conffile.h, common-src/security-util.c,
6601           configure.in, oldrecover-src/amrecover.c,
6602           oldrecover-src/extract_list.c, recover-src/amrecover.c,
6603           recover-src/extract_list.c, restore-src/amrestore.c,
6604           server-src/dumper.c: Fix compiler error on Tru64.
6605
6606 2006-11-08  Jean-Louis Martineau <martineau@zmanda.com>
6607         * common-src/conffile.c (getconf_byname):
6608                                 Parse "DEFINE:identifer:parameter" format.
6609         * common-src/conffile.c (getconf_list): New function to list a DEFINE.
6610         * common-src/conffile.c (lookup_holdingdisk): New function.
6611         * common-src/conffile.h (getconf_list,
6612                                  lookup_holdingdisk): New prototype.
6613         * server-src/getconf.c: accept --list argument and
6614                                 "DEFINE:identifer:parameter" format.
6615         * man/xml-source/amgetconf.8.xml: Document.
6616
6617 2006-11-08  Jean-Louis Martineau <martineau@zmanda.com>
6618         * server-src/driver.c: set off_t variable to 0 before sscanf.
6619         * server-src/planner.c: set off_t variable to 0 before sscanf.
6620
6621 2006-11-07  Jean-Louis Martineau <martineau@zmanda.com>
6622         * server-src/amstatus.pl.in: Improve error message.
6623
6624 2006-11-07  Jean-Louis Martineau <martineau@zmanda.com>
6625         * common-src/security-util.c: Fix coverity bug 170.
6626         * server-src/diskfile.c: Fix coverity bug 147.
6627
6628 2006-11-07  Jean-Louis Martineau <martineau@zmanda.com>
6629         * common-src/conffile.c (validate_chunksize): Check chunksize is >=
6630                                                       2*DISK_BLOCK_KB
6631
6632 2006-11-06  Jean-Louis Martineau <martineau@zmanda.com>
6633         * common-src/amanda.h: Define OFF_T_STRTOL.
6634         * configure.in: Check for strtol and strtoll.
6635
6636 2006-11-02  Ian Turner <ian@zmanda.com>
6637         * common-src/amanda.h: Use atol if atoll is missing.
6638
6639 2006-11-02  Jean-Louis Martineau <martineau@zmanda.com>
6640         * common-src/security-util.c: Better message on invalid size.
6641
6642 2006-11-02  Jean-Louis Martineau <martineau@zmanda.com>
6643         * configure.in: List bsdudp as a udp transport.
6644
6645 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
6646         * server-src/diskfile.c: Don't use 0 for NULL.
6647
6648 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
6649         Revert Ian patch of 2006-10-29.
6650         * common-src/conffile.c: Defile AMANDATES_FILE
6651         * client-src/amandates.h: Don't define AMANDATES_FILE
6652
6653 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
6654         * common-src/conffile.c: Rename DUMPTYPE_START_T to DUMPTYPE_STARTTIME.
6655         * common-src/conffile.h: Rename DUMPTYPE_START_T to DUMPTYPE_STARTTIME.
6656         * server-src/amadmin.c (disklist_one): Print correct starttime.
6657         * server-src/diskfile.c: Set start_t to starttime.
6658         * server-src/diskfile.h (disk_t): Add starttime.
6659
6660 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
6661         * changer-src/scsi-changer-driver.c: Add Tandberg SLR100,
6662                                              more debugging.
6663         * changer-src/sense.c: Add Tandberg SLR100 Tape Drive "SLR100".
6664
6665 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
6666         * common-src/amanda.h: Define dbrename if !DEBUG_CODE.
6667         * restore-src/amidxtaped.c: Declare i if !DEBUG_CODE.
6668
6669 2006-10-30  Jean-Louis Martineau <martineau@zmanda.com>
6670         * server-src/amadmin.c (disklist_one): Print ignore field.
6671         * server-src/amoverview.pl.in: Ignore 'ignore yes' and 'strategy skip'.
6672         * server-src/diskfile.c: Correct hostname allocation.
6673                                  Keep 'ignore yes' and 'strategy skip' DLE in
6674                                  memory, set there todo to 0.
6675         * server-src/diskfile.h: (struct disk_s): New ignore field.
6676
6677 2006-10-29  Ian Turner <ian@zmanda.com>
6678         This was reported as debian bug 394796. Thanks to Damyan Ivanov 
6679         <dam@modsoftsys.com> for reporting and to Bdale Garbee 
6680         <bdale@gag.com> for a preliminary patch.
6681         * common-src/conffile.c: Use AMANDATES_FILE as default for 
6682           location of amandates.
6683         * common-src/amandates.h: Move from client-src/
6684         * client-src/amandates.h: Move to common-src/
6685         * common-src/Makefile.am: Update to reflect new location of 
6686           amandates.h.
6687         * client-src/Makefile.am: ditto.
6688
6689 2006-10-25  Jean-Louis Martineau <martineau@zmanda.com>
6690         Patch by Jay Fenlason
6691         * common-src/rsh-security.c: Fix.
6692
6693 2006-10-24  Jean-Louis Martineau <martineau@zmanda.com>
6694         * common-src/conffile.c (get_config_options): Build and argv of the
6695                                                       -o arguments.
6696         * common-src/conffile.h (get_config_options): Prototype.
6697         * server-src/driverio.c: exec dumper/chunker/driver with the argv from
6698                                  get_config_options
6699         * server-src/amtape.c: Accept -o argument.
6700         * man/xml-source/amtape.8.xml: Document it.
6701
6702 2006-10-24  Jean-Louis Martineau <martineau@zmanda.com>
6703         * server-src/taper.c: Fix allocation problem on tapedev.
6704
6705 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
6706         * common-src/conffile.c (conf_print): Add a parameter if we want
6707                                               CONFTYPE_STRING enclosed in ".
6708         * server-src/planner.c: Use getconf_int to get etimeout value.
6709
6710 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
6711         * server-src/taper.c (free_split_buffer): Correct free.
6712
6713 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
6714         * client-src/sendbackup.c: Parse quote amdevice.
6715         * server-src/amcheck.c: Send quoted amdevice.
6716         * server-src/planner.c: Send quoted amdevice.
6717
6718 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
6719         * common-src/conffile.c (CNF_CTIMEOUT, CNF_DTIMEOUT, CNF_ETIMEOUT):
6720           They are of type CONFTYPE_INT
6721           (CONFTYPE_TIME are for value parsed as "hhmm"")
6722         * common-src/conffile.c (getconf_byname): Use conf_print().
6723         * common-src/conffile.h: Add comment.
6724         * server-src/amcheck.c, server-src/dumper.c, server-src/planner.c:
6725           Use getconf_int to get timeout value.
6726
6727 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
6728         * man/xml-source/amanda.conf.5.xml: Fix formating.
6729
6730 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
6731         * client-src/calcsize.c, client-src/sendsize.c: Remove bogus fseek.
6732
6733 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
6734         * client-src/calcsize.c: Quote amname.
6735
6736 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
6737         * server-src/driver.c: Print an L_STATS with the hostname
6738         * server-src/reporter.c: Print hostname, org, config and date at the
6739                                  beginning of the report
6740
6741 2006-10-16  Jean-Louis Martineau <martineau@zmanda.com>
6742         * common-src/dgram.c (dgram_cat),
6743           common-src/packet.c (pkt_init, pkt_cat): Works correctly with
6744                                                    vsnprintf returning -1.
6745
6746 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
6747         * common-src/Makefile.am (libamanda_la_LIBADD) Remove @LTLIBOBJS@.
6748
6749 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
6750         * server-src/taper.c: stralloc(tapedev).
6751         * configure.in (EXAMPLE_TAPEDEV): Set to /dev/null if no tape-device.
6752         * example/amanda-client.conf.in, example/amanda.conf.in
6753           example/chg-mcutil.conf.in: Use EXAMPLE_TAPEDEV.
6754
6755 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
6756         * common-src/alloca.c, common-src/getcwd.c, common-src/mktime.c,
6757           common-src/memmove.c, common-src/snprintf.c,
6758           common-src/strcasecmp.c, common-src/strerror.c,
6759           common-src/strftime.c, common-src/strncasecmp.c,
6760           common-src/strstr.c, common-src/waitpid.c,
6761           COPYRIGHT-APACHE: Removed files.
6762         * configure.in: Remove many AC_REPLACE_FUNCS.
6763         * Makefile.am (pkgdata_DATA): Remove COPYRIGHT-APACHE.
6764
6765 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
6766         * common-src/Makefile.am: Remove all reference to our regex
6767         * common-src/match.c: #include <regex.h>, the system regex
6768         * common-src/memmove.c: No more memmove in regex-src
6769         * Makefile.am (pkgdata_DATA): Remove COPYRIGHT-REGEX
6770         * Makefile.am (EXTRA_DIST): Remove regex-src/*
6771         * regex-src: Remove directory.
6772         * common-src/regcomp.c, common-src/regerror.c,
6773           common-src/regexec.c, common-src/regfree.c,
6774           common-src/amregex.h: Remove files.
6775
6776 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
6777         * server-src/planner.c: Improve message for dump larger than available
6778                                 tape space if runtapes > 1 and splitsize == 0.
6779
6780 2006-10-10  Jean-Louis Martineau <martineau@zmanda.com>
6781         * server-src/driver.c (wait_children): Don't crash if dumper->chunker
6782                                                is NULL
6783
6784 2006-10-04  Jean-Louis Martineau <martineau@zmanda.com>
6785         * amandad-src/amandad.c: Call security_recvpkt() on A_SENDNACK
6786                                  and dup P_REQ.
6787         * common-src/security-util.c: Improve message.
6788
6789 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
6790         * server-src/amcleanupdisk.c: Accept -o arguments.
6791         * server-src/amcleanup.sh.in: Add missing 'shift' for non-linux system.
6792                                       Accept -o arguments.
6793
6794 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
6795         * server-src/amoverview.pl.in: Fix parsing of time field from amadmin.
6796
6797 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
6798         * restore-src/amidxtaped.c, restore-src/restore.c,
6799           server-src/amcheck.c, server-src/amflush.c,
6800           server-src/amlabel.c, server-src/taper.c,
6801           server-src/taperscan.c: Check for CNF_TAPEDEV == NULL.
6802
6803 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
6804         * common-src/conffile.c: Don't set CNF_TAPEDEV to DEFAULT_TAPE_DEVICE.
6805         * configure.in: Don't set DEFAULT_TAPE_DEVICE.
6806
6807 2006-09-29  Jean-Louis Martineau <martineau@zmanda.com>
6808         * common-src/bsdtcp-security.c: Add logging on error.
6809
6810 2006-09-29  Jean-Louis Martineau <martineau@zmanda.com>
6811         * server-src/amoverview.pl.in: Use shellwords instead of quotewords,
6812           don't add date for disk not in the disklist.
6813
6814 2006-09-28  Jean-Louis Martineau <martineau@zmanda.com>
6815         * common-src/bsd-security.c: Fix %hd printf argument format.
6816         * common-src/security-util.c: Fix %hd printf argument format.
6817
6818 2006-09-28  Jean-Louis Martineau <martineau@zmanda.com>
6819         * common-src/conffile.c (client_keytab): Add DEBUG_*.
6820         * oldrecover-src/amrecover.c: Call read_clientconf.
6821
6822 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
6823         * restore-src/restore.c: Improve debugging.
6824         * server-src/changer.c: Make sure to dup the fd out of the 0..2 range.
6825
6826 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
6827         * restore-src/amfetchdump.c: Pass new prompt_in parameter to
6828                                      search_tapes.
6829         * restore-src/restore.c (search_tapes, load_manual_tape): New prompt_in
6830                                                                   parameter.
6831         * restore-src/restore.h (search_tapes): New prompt_in parameter.
6832         * restore-src/amidxtaped.c: Set new 'FILE *' instead of reusing stdin
6833                                     and stdout.
6834         * server-src/amindexd.c: Set new 'FILE *' instead of reusing stdin
6835                                  and stdout.
6836
6837 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
6838         Patch by Orion Poplawski <orion@cora.nwra.com>
6839         * server-src/planner.c: Add a skip_quoted_line() on error.
6840
6841 2006-09-23  Jean-Louis Martineau <martineau@zmanda.com>
6842         * server-src/amstatus.pl.in: Fix parsing of 'taper: wrote label' line.
6843         * server-src/amtoc.pl.in: Fix parsing of 'START taper' line.
6844
6845 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
6846         * common-src/conffile.h: New CONFTYPE_INTRANGE conftype_t.
6847         * common-src/conffile.c: New CNF_RESERVED_UDP_PORT,
6848                                  CNF_RESERVED_TCP_PORT,
6849                                  CNF_UNRESERVED_TCP_PORT config options.
6850         * common-src/dgram.c: Use the new CNF_RESERVED_UDP_PORT option.
6851         * common-src/stream.c: Use the new CNF_*RESERVED_PORT options.
6852         * man/xml-source/amanda-client.conf.5.xml: Document it.
6853         * man/xml-source/amanda.conf.5.xml: Document it.
6854
6855 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
6856         Patch by William Jojo
6857         * client-src/sendsize.c: Fix #endif for AIX.
6858
6859 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
6860         * common-src/packet.c: Fix use of arglist_start/arglist_end.
6861         * server-src/amindexd.c: Fix use of vsnprintf (for IRIX).
6862         * server-src/logfile.c: Fix use of arglist_start/arglist_end.
6863
6864 2006-09-21  Jean-Louis Martineau <martineau@zmanda.com>
6865         * server-src/amcheck.c: Don't assert if holding use is set to 0.
6866
6867 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
6868         * server-src/find.c (search_logfile): Count 'PARTIAL taper line'.
6869
6870 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
6871         Patch by Paul Bijens
6872         * server-src/amcheck.c: Print "tapelist" instead of "tapefile".
6873
6874 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
6875         * common-src/dgram.c (dgram_bind): Remove unused variables.
6876
6877 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
6878         * common-src/conffile.c, common-src/conffile.h: Add debug_amandad,
6879           debug_amidxtaped, debug_amindexd, debug_amrecover, debug_auth,
6880           debug_event, debug_holding, debug_protocol, debug_planner,
6881           debug_driver, debug_dumper, debug_chunker, debug_taper,
6882           debug_selfcheck, debug_sendsize, debug_sendbackup
6883           configurations options.
6884         * common-sc/debug.c: Use it's own clock function.
6885         * amandad-src/amandad.c, amandad-src/amandad_util.c,
6886           client-src/calcsize.c, client-src/client_util.c,
6887           client-src/killpgrp.c, client-src/rundump.c,
6888           client-src/runtar.c, client-src/selfcheck.c,
6889           client-src/sendbackup.c, client-src/sendsize.c,
6890           common-src/bsd-security.c, common-src/bsdtcp-security.c,
6891           common-src/bsdudp-security.c, common-src/debug.c,
6892           common-src/dgram.c, common-src/event.c,
6893           common-src/krb5-security.c, common-src/pipespawn.c,
6894           common-src/protocol.c, common-src/rsh-security.c,
6895           common-src/security.c, common-src/security-util.c,
6896           common-src/security-util.h, common-src/ssh-security.c,
6897           common-src/stream.c, common-src/util.c,
6898           recover-src/amrecover.c, restore-src/amidxtaped.c,
6899           server-src/amindexd.c, server-src/chunker.c,
6900           server-src/driver.c, server-src/dumper.c,
6901           server-src/planner.c,
6902           server-src/taper.c: Use the debug_* configuration options.
6903                               Use debug_prefix_time to print the time on
6904                               all debugging message.
6905
6906 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
6907         * amandad-src/amandad.c: Use CNF_REP_TRIES.
6908         * common-src/conffile.c: New CONNECT_TRIES, REQ_TRIES, REP_TRIES
6909                                  configuration options.
6910         * common-src/conffile.h: New CONNECT_TRIES, REQ_TRIES, REP_TRIES
6911                                  configuration options.
6912         * common-src/protocol.c: Use CNF_CONNECT_TRIES and CNF_REQ_TRIES.
6913         * common-src/protocol.c: Rename reqtries to resettries.
6914                                  Rename acktries to reqtries.
6915         * man/xml-source/amanda-client.conf.5.xml: Document new options.
6916         * man/xml-source/amanda.conf.5.xml: Document new options.
6917
6918 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
6919         * amandad-src/amandad.c: Read client configuratrion file.
6920         * client-src/client_util.c, client-src/selfcheck.c,
6921           client-src/sendbackup.c, client-src/sendbackup-dump.c,
6922           client-src/sendbackup-gnutar.c, client-src/sendsize.c,
6923           recover-src/amrecover.c, recover-src/extract_list.c,
6924           restore-src/amfetchdump.c, server-src/amadmin.c,
6925           server-src/amcheck.c, server-src/amflush.c,
6926           server-src/amflush.c, server-src/amlabel.c,
6927           server-src/amlogroll.c, server-src/amtrmidx.c,
6928           server-src/amtrmlog.c, server-src/chunker.c,
6929           server-src/diskfile.c, server-src/driver.c,
6930           server-src/dumper.c, server-src/getconf.c,
6931           server-src/planner.c, server-src/reporter.c,
6932           server-src/taper.c: Use generic macro/functions instead of
6933                               client/server functions.
6934         * client-src/client_util.h: Remove unuse macro.
6935         * client-src/Makefile.am: Remove clientconf.? files.
6936         * common-src/amanda.h: Define MAX_DUMPERS.
6937         * common-src/conffile.c: New file, merge of client-src/clientconf.c
6938                                                 and server-src/conffile.c
6939         * common-src/conffile.h: New file, merge of client-src/clientconf.c
6940                                                 and server-src/conffile.c
6941         * common-src/Makefile.am (libamanda_la_SOURCES): Add conffile.c
6942         * common-src/Makefile.am (noinst_HEADERS): Add conffile.h
6943         * common-src/util.c: Move many thing to common-src/conffile.c.
6944         * common-src/util.h: Move many thing to common-src/conffile.h.
6945         * server-src/driverio.h: Remove MAX_DUMPERS define.
6946         * server-src/Makefile.am: Remove conffile.[hc].
6947
6948 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
6949         * common-src/dgram.c (dgram_bind): Don't set SO_REUSEADDR on socket.
6950
6951 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
6952         * common-src/util.c (connect_port): Make EHOSTUNREACH and ENETUNREACH
6953                                             fatal error.
6954
6955 2006-09-18  Jean-Louis Martineau <martineau@zmanda.com>
6956         * common-src/util.c(dump_sockaddr): Convert from network to machine
6957                                             bytes order before printing.
6958         * common-src/dgram.c (dgram_recv): Print the fromaddr.
6959
6960 2006-09-15  Jean-Louis Martineau <martineau@zmanda.com>
6961         * amandad-src/amandad.c: Correct order of close/dup.
6962
6963 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
6964         * common-src/bsdtcp-security.c: Use AMANDA_SERVICE_NAME.
6965
6966 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
6967         * server-src/amstatus.pl.in: Check that $dumpers_active is defined.
6968
6969 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
6970         * common-src/util.c (conftoken_getc): Return an int.
6971
6972 2006-09-11  Jean-Louis Martineau <martineau@zmanda.com>
6973         * client-src/sendbackup-dump.c: Works if rundump is not used.
6974
6975 2006-09-05  Jean-Louis Martineau <martineau@zmanda.com>
6976         * Amanda 2.5.1 released.
6977         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1).
6978         * NEWS: Change in amanda-2.5.1
6979
6980 2006-08-30  Jean-Louis Martineau <martineau@zmanda.com>
6981         * server-src/dumper.c: Typo in error message.
6982
6983 2006-08-29  Jean-Louis Martineau <martineau@zmanda.com>
6984         * client-src/selfcheck.c: Print error message to stdout before
6985                                   calling error().
6986
6987 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
6988         * server-src/dumper.c (log_msgout): Seek to begining of file.
6989
6990 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
6991         * server-src/reporter.c: Report if a dump was successfully retried.
6992
6993 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
6994         * server-src/amstatus.pl.in: Correct size for retried dump.
6995
6996 2006-08-25  Jean-Louis Martineau <martineau@zmanda.com>
6997         * client-src/runtar.c: Check that strcmp(argv[3], "--create") == 0.
6998
6999 2006-08-24  Jean-Louis Martineau <martineau@zmanda.com>
7000         * common-src/statfs.c (scale): Macro replaced by a function.
7001
7002 2006-08-24  Jean-Louis Martineau <martineau@zmanda.com>
7003         * server-src/chunker.c: Use STREAM_BUFSIZE for stream_accept.
7004         * server-src/taper.c: Use STREAM_BUFSIZE for stream_accept.
7005
7006 2006-08-24  Maitreyee Karmarkar <maitreyee.zmanda.com>
7007         * man/xml-source/amcheck.8.xml: amcheck xml man page change 
7008
7009 2006-08-23  Kevin Till <ktill@zmanda.com>
7010         *  server-src/driver.c: fix typo
7011
7012 2006-08-23  Jean-Louis Martineau <martineau@zmanda.com>
7013         * server-src/driver.c (dumper_result): Decrement pendings_aborts.
7014         * server-src/driver.c (handle_dumper_result): Don't send duper result
7015           to chunker if we aborted it.
7016         * server-src/driverio.c (dumper_cmd, chunker_cmd): Don't close the fd
7017           on ABORT.
7018         * server-src/dumper.c: Accept ABORT command.
7019
7020 2006-08-23  Jean-Louis Martineau <martineau@zmanda.com>
7021         * restore-src/restore.c (restore): Set bytes_read to the return value
7022           of read_file_header.
7023
7024 2006-08-22  Jean-Louis Martineau <martineau@zmanda.com>
7025         * tape-src/output-tape.c: Works if EOVERFLOW is not defined.
7026
7027 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
7028         * amandad-src/amandad.c, common-src/rsh-security.c,
7029           common-src/ssh-security.c, restore-src/restore.c,
7030           server-src/changer.c, server-src/dumper.c: Fix sentinel warning.
7031
7032 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
7033         * example/amanda.conf.in: Typo.
7034
7035 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
7036         * server-src/driverio.c: Fix bogus "(unsigned long)-1".
7037
7038 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
7039         * server-src/driver.c (start_some_dumps): Remove bogus free_assignedhd.
7040
7041 2006-08-21  Maitreyee Karmarkar <maitreyee.zmanda.com>
7042         * server-src/amcheck.c: Check specific clients
7043         * man/amcheck.8: add the multiple client check format
7044
7045 2006-08-18  Ian Turner <ian@zmanda.com>
7046         * tape-src/amtapetype.c: Don't crash on exit
7047
7048 2006-08-17  Paddy Sreenivasan <paddy@zmanda.com>
7049         * server-src/driverio.c:
7050         * server-src/changer.c:
7051         * restore-src/amfetchdump.c:
7052         * recover-src/extract_list.c:
7053         * oldrecover-src/extract_list.c:
7054         * common-src/util.c:
7055         * common-src/stream.c:
7056         * common-src/file.c:
7057         * common-src/dgram.c: Fix warnings
7058
7059 2006-08-17  Kevin Till <ktill@zmanda.com>
7060         * common-src/stream.c: Loop 5 times (ntries > 5) on select error
7061
7062 2006-08-14  Paddy Sreenivasan <paddy@zmanda.com>
7063         * client-src/sendsize.c: Fix warning
7064         * server-src/reporter.c: Fix warnings
7065
7066 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
7067         * Amanda 2.5.1b2 released.
7068         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b2).
7069
7070 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
7071         * server-src/driver.c (find_diskspace): Make sure size > 0.
7072
7073 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
7074         * server-src/planner.c: Don't check new disk.
7075
7076 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
7077         * server-src/planner.c: Always log if full size estimate is larger
7078                                 than the available tape space.
7079
7080 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
7081         * server-src/planner.c: Always log if the latest full dump will be
7082                                 overwritten soon.
7083
7084 2006-07-27  Jean-Louis Martineau <martineau@zmanda.com>
7085         * common-src/clock.c (timesub): Don't make a negative time.
7086
7087 2006-07-27  Jean-Louis Martineau <martineau@zmanda.com>
7088         * man/xml-source/amanda.conf.5.xml: Tell which file are loaded.
7089         * man/xml-source/amanda-client.conf.5.xml: Ditto.
7090
7091 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
7092         * NEWS: for 2.5.1b2.
7093
7094 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
7095         * common-src/util.h (CONFTYPE_HOLDING): New conftype.
7096         * common-src/util.c (conf_init_holding, conf_set_holding,
7097                              get_conftype_hold): New fonction.
7098         * example/amanda.conf.in: Example of new holdingdisk value.
7099         * man/xml-source/amanda.8.xml: Example.
7100         * man/xml-source/amanda.conf.5.xml: Document it.
7101         * server-src/amadmin.c (disklist_one): Print holdingdisk value.
7102         * server-src/conffile.c: Parse new CONF_HOLDING type.
7103         * server-src/conffile.h (dumptype_get_to_holdingdisk): Change macro.
7104         * server-src/diskfile.c (parse_diskline): dumptype_get_to_holdingdisk.
7105         * server-src/driver.c: Use new CONFTYPE_HOLDING value.
7106
7107 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
7108         * client-src/selfcheck.c: Fix bug found by coverity.
7109         * common-src/debug.c: Fix bug found by coverity.
7110
7111 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7112         * server-src/amflush.c: Typo.
7113
7114 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7115         * server-src/amflush.c: Correct test for driver_stream.
7116
7117 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7118         * client-src/clientconf.c: Default CLN_AMANDATES to /etc/amandates.
7119         * common-src/util.c (conf_init_size): Type is CONFTYPE_SIZE.
7120         * server-src/conffile.c (getconf_taperalgo): New function.
7121         * server-src/conffile.h (getconf_taperalgo): Prototype.
7122         * server-src/driver.c: Use getconf_taperalgo.
7123
7124 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7125         * client-src/clientconf.c (client_getconf_boolean): New function.
7126         * client-src/clientconf.h (client_getconf_boolean): Prototype.
7127         * server-src/conffile.c (getconf_boolean): New function.
7128         * server-src/conffile.h (getconf_boolean): Prototype.
7129         * restore-src/amidxtaped.c: Use getconf_boolean.
7130         * server-src/amflush.c: Use getconf_boolean.
7131         * server-src/planner.c: Use getconf_boolean.
7132
7133 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7134         * server-src/getconf.c: Don't print BUGGY.
7135         * changer-src/chg-chio.pl.in: Don't parse BUGGY.
7136         * changer-src/chg-iomega.pl.in: Don't parse BUGGY.
7137         * changer-src/chg-zd-mtx.sh.in: Don't parse BUGGY.
7138         * man/xml-source/amgetconf.8.xml: Don't parse BUGGY.
7139         * server-src/amverifyrun.sh.in: Don't parse BUGGY.
7140         * server-src/amverify.sh.in: Don't parse BUGGY.
7141
7142 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7143         * restore-src/restore.c: Cleanup.
7144         * restore-src/amrestore.c: Don't fsf if the last read return 0.
7145
7146 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7147         * client-src/selfcheck.c: Fix bug found by klocwork.
7148         * common-src/rsh-security.c: Fix bug found by klocwork.
7149         * common-src/ssh-security.c: Fix bug found by klocwork.
7150         * server-src/planner.c: Fix bug found by klocwork.
7151
7152 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7153         * tape-src/output-tape.c (tape_tape_open): mt is declared inside #ifdef.
7154
7155 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7156         * server-src/amcheck.c: Fix quoting.
7157
7158 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7159         * client-src/clientconf.c: client_getconf* validate the type.
7160         * common-src/util.c (get_conftype_*): New function.
7161         * common-src/util.h (get_conftype_*): Prototype.
7162         * server-src/conffile.c: getconf* validate the type.
7163         * server-src/conffile.h: Use get_conftype_* function.
7164
7165 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7166         * client-src/clientconf.c: New AMANDATES client config option.
7167         * client-src/clientconf.h: New AMANDATES client config option.
7168         * client-src/amandates.c: Use AMANDATES.
7169         * client-src/amandates.h: Use AMANDATES.
7170         * client-src/selfcheck.c: Use AMANDATES.
7171         * client-src/sendbackup-gnutar.c: Use AMANDATES.
7172         * client-src/sendsize.c:: Use AMANDATES.
7173         * common-src/util.h : New CONF_AMANDATES.
7174         * man/xml-source/amanda-client.conf.5.xml: Document it.
7175
7176 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7177         * client-src/clientconf.c: New GNUTAR_LIST_DIR client config option.
7178         * client-src/clientconf.h: New GNUTAR_LIST_DIR client config option.
7179         * client-src/selfcheck.c: Use GNUTAR_LIST_DIR.
7180         * client-src/sendbackup-gnutar.c: Use GNUTAR_LIST_DIR.
7181         * client-src/sendsize.c: Use GNUTAR_LIST_DIR.
7182         * common-src/util.h: New CONF_GNUTAR_LIST_DIR.
7183         * man/xml-source/amanda-client.conf.5.xml: Document it.
7184
7185 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7186         * client-src/calcsize.c, client-src/killpgrp.c,
7187           client-src/rundump.c, client-src/runtar.c,
7188           client-src/selfcheck.c, client-src/sendbackup.c,
7189           client-src/sendsize.c, common-src/amanda.h,
7190           common-src/debug.c, oldrecover-src/amrecover.c,
7191           recover-src/amrecover.c, restore-src/amfetchdump.c,
7192           restore-src/amidxtaped.c, server-src/amadmin.c,
7193           server-src/amcheck.c, server-src/amcleanupdisk.c,
7194           server-src/amflush.c, server-src/amindexd.c,
7195           server-src/amlabel.c, server-src/amlogroll.c,
7196           server-src/amtape.c, server-src/amtrmidx.c,
7197           server-src/amtrmlog.c, server-src/chunker.c,
7198           server-src/driver.c, server-src/dumper.c,
7199           server-src/getconf.c, server-src/planner.c,
7200           server-src/reporter.c, server-src/taper.c: dbrename ot the config dir.
7201
7202 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7203         * common-src/amanda.h: Define DBG_SUBDIR_SERVER, DBG_SUBDIR_CLIENT
7204                                and DBG_SUBDIR_CLIENT.
7205         * amandad-src/amandad.c, changer-src/chg-scsi.c,
7206           changer-src/chg-scsi-chio.c, client-src/calcsize.c,
7207           client-src/killpgrp.c, client-src/rundump.c, client-src/runtar.c,
7208           client-src/selfcheck.c, client-src/sendbackup.c,
7209           client-src/sendsize.c,
7210           oldrecover-src/amrecover.c, recover-src/amrecover.c,
7211           restore-src/amfetchdump.c, restore-src/amidxtaped.c,
7212           restore-src/amrestore.c, server-src/amadmin.c,
7213           server-src/amcheck.c, server-src/amcleanupdisk.c,
7214           server-src/amflush.c, server-src/amindexd.c,
7215           server-src/amlabel.c, server-src/amlogroll.c,
7216           server-src/amtape.c, server-src/amtrmidx.c,
7217           server-src/amtrmlog.c, server-src/chunker.c,
7218           server-src/diskfile.c, server-src/driver.c,
7219           server-src/dumper.c, server-src/getconf.c,
7220           server-src/infofile.c, server-src/planner.c,
7221           server-src/reporter.c (dbopen): Use DBG_SUBDIR_SERVER,
7222                                          DBG_SUBDIR_CLIENT or DBG_SUBDIR_CLIENT.
7223
7224 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
7225         * client-src/calcsize.c: Get config on argument.
7226         * client-src/killpgrp.c: Get config on argument.
7227         * client-src/rundump.c: Get config on argument.
7228         * client-src/runtar.c: Get config on argument.
7229         * client-src/sendbackup.c: Call program with config as argument.
7230         * client-src/sendbackup-dump.c: Call program with config as argument.
7231         * client-src/sendbackup-gnutar.c: Call program with config as argument.
7232         * client-src/sendbackup.h: Add global g_options.
7233         * client-src/sendsize.c: Call program with config as argument.
7234
7235 2006-07-23  Jean-Louis Martineau <martineau@zmanda.com>
7236         * client-src/sendbackup-gnutar.c: Fix bug found by splint.
7237         * client-src/sendsize.c: Fix bug found by splint.
7238
7239 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
7240         * server-src/taper.c: Fix amfree(mem_splitbuf).
7241
7242 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
7243         * server-src/diskfile.c, server-src/taper.c: Fix memory leak found
7244                                                      by coverity.
7245
7246 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
7247         * server-src/taper.c: Fix split_buffer allocation problem.
7248
7249 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
7250         * client-src/selfcheck.c, common-src/security-util.c,
7251           restore-src/restore.c, server-src/diskfile.c: Fix memory leak found
7252                                                         by coverity.
7253
7254 2006-07-20  Jean-Louis Martineau <martineau@zmanda.com>
7255         * changer-src/chg-scsi.c, changer-src/scsi-changer-driver.c,
7256           client-src/amandates.c, client-src/calcsize.c,
7257           client-src/selfcheck.c, client-src/sendbackup.c,
7258           client-src/sendsize.c, common-src/security-util.c,
7259           recover-src/extract_list.c, restore-src/restore.c,
7260           server-src/amindexd.c, server-src/diskfile.c,
7261           server-src/driver.c, server-src/reporter.c,
7262           server-src/tapefile.c, server-src/taper.c: Fix memory leak found
7263                                                      by coverity.
7264
7265 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
7266         * client-src/selfcheck.c : Read client config file.
7267         * client-src/sendbackup.c: Read client config file.
7268         * client-src/sendsize.c  : Read client config file.
7269
7270 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
7271         * amandad-src/amandad.h (g_option_t): Add 'char *config';
7272         * amandad-src/amandad_util.c (parse_g_options): Parse 'config='.
7273         * common-src/amfeatures.h (fe_req_options_config): New amfeature.
7274         * common-src/amfeatures.c (am_init_feature_set):
7275                                                     set fe_req_options_config.
7276         * server-src/amcheck.c: Send 'config=' in global options.
7277         * server-src/dumper.c: Send 'config=' in global options.
7278         * server-src/planner.c: Send 'config=' in global options.
7279
7280 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
7281         * amandad-src/amandad.c: Call dbopen("amandad").
7282         * changer-src/chg-scsi.c: Call dbopen("server").
7283         * changer-src/chg-scsi-chio.c: Call dbopen("server").
7284         * client-src/calcsize.c: Call dbopen("client").
7285         * client-src/getfsent.c: Call dbopen(NULL).
7286         * client-src/killpgrp.c: Call dbopen("client").
7287         * client-src/rundump.c: Call dbopen("client").
7288         * client-src/runstar.c: Call dbopen("client").
7289         * client-src/runtar.c: Call dbopen("client").
7290         * client-src/selfcheck.c: Call dbopen("client").
7291         * client-src/sendbackup.c: Call dbopen("client").
7292         * client-src/sendsize.c: Call dbopen("client").
7293         * common-src/amanda.h (dbopen, debug_open): Take a 'char * subdir'
7294                                                     argument.
7295         * common-src/bsd-security.c: Call dbopen(NULL).
7296         * common-src/debug.c (debug_open): Call debug_setup_1(subdir)
7297         * common-src/debug.c (debug_setup_1): Take a subdir argument,
7298                                               add it to dbgdir.
7299         * common-src/file.c: Call dbopen(NULL).
7300         * common-src/statfs.c: Call dbopen(NULL).
7301         * common-src/token.c: Call dbopen(NULL).
7302         * oldrecover-src/amrecover.c: Call dbopen("client").
7303         * recover-src/amrecover.c: Call dbopen("client").
7304         * restore-src/amfetchdump.c: Call dbopen("server").
7305         * restore-src/amidxtaped.c: Call dbopen("server").
7306         * restore-src/amrestore.c: Call dbopen("server").
7307         * server-src/amadmin.c: Call dbopen("server").
7308         * server-src/amcheck.c: Call dbopen("server").
7309         * server-src/amcleanupdisk.c: Call dbopen("server").
7310         * server-src/amflush.c: Call dbopen("server").
7311         * server-src/amindexd.c: Call dbopen("server").
7312         * server-src/amlabel.c: Call dbopen("server").
7313         * server-src/amlogroll.c: Call dbopen("server").
7314         * server-src/amtape.c: Call dbopen("server").
7315         * server-src/amtrmidx.c: Call dbopen("server").
7316         * server-src/amtrmlog.c: Call dbopen("server").
7317         * server-src/chunker.c: Call dbopen("server").
7318         * server-src/diskfile.c: Call dbopen("server").
7319         * server-src/driver.c: Call dbopen("server").
7320         * server-src/dumper.c: Call dbopen("server").
7321         * server-src/getconf.c: Call dbopen("server").
7322         * server-src/infofile.c: Call dbopen("server").
7323         * server-src/planner.c: Call dbopen("server").
7324         * server-src/reporter.c: Call dbopen("server").
7325         * server-src/taper.c: Call dbopen("server").
7326
7327 2006-07-17  Jean-Louis Martineau <martineau@zmanda.com>
7328         * server-src/chunker.c: Fix rt computation.
7329         * server-src/dumper.c: Fix dumptime computation.
7330         * server-src/taper.c: Fix rt computation.
7331
7332 2006-07-17  Jean-Louis Martineau <martineau@zmanda.com>
7333         * NEWS: Klocwork defects fixed.
7334         * NEWS: Coverity defect fixed.
7335
7336 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
7337         * Makefile.am (pkgdata_DATA): add ReleaseNotes.
7338
7339 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
7340         * Amanda 2.5.1b1 released.
7341         * configure.in: Remove -Werror.
7342
7343 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
7344         * client-src/sendsize.c: Use read/write to copy tar snapshot file.
7345         * client-src/sendbackup-gnutar.c: Ditto.
7346
7347 2006-07-13  Jean-Louis Martineau <martineau@zmanda.com>
7348         * common-src/stream.c (stream_accept): Loop 5 times on select error.
7349
7350 2006-07-13  Jean-Louis Martineau <martineau@zmanda.com>
7351         * server-src/dumper.c: The datafd is not scheduled at start,
7352                                add test for it.
7353         * common-src/stream.c (tcpm_recv_token): Set error_msg.
7354         
7355 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
7356         * common-src/util.c (free_new_argv): Move out of
7357                                              #ifndef HAVE_LIBREADLINE.
7358
7359 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
7360         * server-src/amadmin.c (tape): Report the number of new tapes instead
7361                                        of "a new tape" for each tapes.
7362         * server-src/reporter.c (output_tapeinfo): Ditto.
7363
7364 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
7365         * server-src/taperscan.c (changer_taper_scan): Report error from
7366                                                        changer_find.
7367
7368 2006-07-11  John Franks jrfranks@zmanda.com
7369         * configure.in: Fix multiple definition of readline during cygwin
7370           compile.
7371
7372 2006-07-11  Paddy Sreenivasan <paddy@zmanda.com>
7373         * common-src/pipespawn.c : Fixed compiler warning
7374
7375 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
7376         * man/xml-source/amtapetype.8.xml: No default value for -e.
7377
7378 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
7379         * common-src/util.c: Don't conftoken_ungetc(ch) if ch == EOF.
7380         * server-src/reporter.c: Check tp == NULL.
7381
7382 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
7383         * tape-src/tapetype.c: Make -e an needed argument.
7384         * man/xml-source/amtapetype.8.xml: Update man page.
7385
7386 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
7387         * changer-src/chg-zd-mtx.sh.in: Remove .conf from changerfile.
7388
7389 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
7390         * recover-src/extract_list.c (check_file_overwrite): Renamed from
7391                                                           check_file_overwite.
7392         * recover-src/extract_list.c (check_file_overwrite): Do the path check
7393           in the correct order (from left ro right).
7394
7395 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
7396         * common-src/file.c (debug_agets): Remove call to dbprintf.
7397
7398 2006-07-10  Jean-Louis Martineau <martineau@zmanda.com>
7399         * recover-src/extract_list.c (add_to_unlink_list, do_unlink_list,
7400                       free_unlink_list): New function to manage unlink_list.
7401         * recover-src/extract_list.c (check_file_overwite): Check all
7402           component of an EXTRACT_LIST_ITEM, if a component is not a
7403           directory, add it to the unlink_list.
7404         * recover-src/extract_list.c (extract_files): Call do_unlink_list and
7405           free_unlink_list, rename buf to cwd.
7406
7407 2006-07-10  Jean-Louis Martineau <martineau@zmanda.com>
7408         * common-src/pipespawn.c (pipespawnv_passwd): Add prototype.
7409         * common-src/pipespawn.c (pipespawn, pipespawn): Remove 2 NULL
7410            parameters to the pipespawnv_passwd call.
7411         * common-src/pipespawn.c (pipespawnv_passwd): Remove passwdvar and
7412            passwdfd parameters, add passwdvar and local variable.
7413            Don't use memcpy to set passwdfd.
7414         * common-src/pipespawn.h (pipespawnv_passwd): Remove prototype.
7415
7416 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
7417         * common-src/security-util.c (stream_read_sync_callback): Remove bogus
7418           call of callback.
7419
7420 2006-07-07  Kevin Till  <ktill@zmanda.com>
7421         * common-src/bsd-security.c: use STREAM_BUFSIZE instead of -1
7422         * common-src/bsdtcp-security.c: ditto
7423         * common-src/krb4-security.c: ditto 
7424         * common-src/security-util.c: ditto
7425         * restore-src/amidxtaped.c: ditto
7426
7427 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
7428         * common-src/util.c (get_conftoken): Remove duplicate conftoken_ungetc.
7429
7430 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
7431         * common-src/security-util.c: Validate and report big packet size.
7432
7433 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
7434         * oldrecover-src/Makefile.am: Typo.
7435
7436 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
7437         * client-src/sendsize.c: Typo.
7438
7439 2006-07-06  John Franks <jrfranks@zmanda.com>
7440         * common-src/genversion.c:
7441                 Remove reference to error().  This causes a compile
7442                 error on cygwin.
7443
7444 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
7445         Klocwork bug 128, 170, 182, 470, 517
7446         * changer-src/chg-scsi.c: Validate drivenum, check count_file.
7447         * client-src/sendsize.c: Validate level.
7448         * oldrecover-src/amrecover.c: Use tm.
7449         * recover-src/amrecover.c: Use tm.
7450         * server-src/infofile.c (delete_txinfofile): Use local variable.
7451
7452 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
7453         * server-src/taper.c: Check for cur_filename.
7454         * tape-src/output-file.c: Use vstrextend.
7455         * tape-src/tapeio.c: Check for r.
7456
7457 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
7458         Fix splint warning
7459         * oldrecover-src/extract_list.c (clean_tape_list): Cleanup for splint.
7460         * recover-src/extract_list.c (clean_tape_list): Cleanup for splint.
7461         * server-src/amindexd.c: Add a /*@i@*/.
7462         * server-src/conffile.c: Cast to off_t for conf_init_am64.
7463         * server-src/driver.c: Cast to unsigned to print pid_t.
7464         * server-src/find.c (strip_failed_chunks): Cleanup for splint.
7465
7466 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
7467         Klocwork bug 114
7468         * server-src/amindexd.c: Free their_feature_string.
7469         Klocwork bug 130
7470         * restore-src/amrestore.c: Test maximum value for rst_flags->blocksize.
7471         Klocwork bug 294
7472         * common-src/genversion.c: Check NULL result of malloc.
7473         Klocwork bug 294
7474         * client-src/selfcheck.c: Check NULL result of fdopen.
7475         Klocwork bug 539, 542
7476         * oldrecover-src/extract_list.c: Fix pfn2->next = fn2.
7477         * recover-src/extract_list.c   : Ditto
7478         Klocwork bug 268, 272, 543, 544
7479         * oldrecover-src/extract_list.c: Check for cmd != NULL.
7480         * recover-src/extract_list.c   : Ditto
7481         Klocwork bug 510
7482         * restore-src/amidxtaped.c: Check for argv != NULL.
7483         Klocwork bug 435
7484         * changer-src/scsi-linux.c: Make buffer one larger.
7485         Klocwork bug 520
7486         * changer-src/scsi-changer-driver.c (OpenDevice): Validate parameters.
7487         Klocwork bug 182
7488         * changer-src/chg-scsi.c (clean_tape): Check usagetime != NULL.
7489
7490 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7491         Klocwork bug 551
7492         * regex-src/regcomp.c (allocset): Check for p->g->sets
7493                                                 and p->g->setbits
7494
7495 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7496         Klocwork bug 169, 170, 181
7497         * changer-src/chg-scsi.c: Validate input.
7498
7499 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7500         Klocwork bug 282
7501         * common-src/file.c (rmpdir): Check for p == NULL.
7502
7503 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7504         Klocwork bug 524
7505         * common-src/dgram.c (dgram_send_addr): Set addr_save earlier.
7506
7507 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7508         Klocwork bug 495
7509         * server-src/taper.c (file_reader_side): Maximum value for
7510                                                  fallback_splitsize.
7511
7512 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7513         Klocwork bug 532
7514         * recover-src/display_commands.c: Check for cmd != NULL.
7515         * oldrecover-src/display_commands.c: Ditto
7516
7517 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7518         Klocwork bug 410
7519         * restore-src/restore.c (restore): Check for tmp_filename.
7520
7521 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7522         Klocwork bug 234
7523         * server-src/driver.c: Check for h and activehd >= 0.
7524
7525 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7526         Klocwork bug 338 and 390
7527         * server-src/reporter.c (handle_partial, handle_strange): Check result
7528           of handle_success.
7529
7530 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7531         Klocwork bug 558
7532         * client-src/selfcheck.c (check_options, check_disk): Check for
7533                                                               calcprog == NULL
7534
7535 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7536         Klocwork bug 521
7537         * client-src/clientconf.c (add_client_conf): Check result of realloc.
7538
7539 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7540         Klocwork bug 447 and 449
7541         * restore-src/restore.c: Check for valid sendbackup request.
7542
7543 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7544         Klocwork bug 407
7545         * restore-src/restore.c (restore): Set statinfo.st_size.
7546
7547 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7548         Klocwork bug 189
7549         * common-src/file.c (sanitise_filename): Never return NULL.
7550
7551 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7552         * amandad-src/Makefile.am:    Remove tape-src and libamtape.
7553         * client-src/Makefile.am:     Remove tape-src and libamtape.
7554         * man/Makefile.am:            Cleanup.
7555         * oldrecover-src/Makefile.am: Remove tape-src and libamtape.
7556         * recover-src/Makefile.am:    Remove tape-src and libamtape.
7557         
7558 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7559         Klocwork bug 236
7560         * server-src/driver.c (handle_dumper_result): Check for
7561                                                       dumper->ev_read != NULL.
7562
7563 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7564         Klocwork bug 553
7565         * restore-src/restore.c (search_a_tape): Check for desired_tape == NULL.
7566
7567 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7568         Klocwork bug 556 and 557
7569         * common-src/security-util.c (bsd_recv_security_ok): Check result of
7570           strtok, check service == NULL.
7571
7572 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7573         Klocwork bug 161
7574         * client-src/calcsize.c (calc_load_file): Return NULL if fopen fail.
7575         * client-src/calcsize.c (main):  check NULL result from calc_load_file.
7576
7577 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7578         Klocwork bug 84
7579         * server-src/amflush.c (main): Check return of lookup_disk.
7580
7581 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7582         Klocwork bug 62, 85, 459, 463, 466, 469, 555, 559
7583         * common-src/security-util.c: Check result of fdopen.
7584         * client-src/sendsize.c     : Ditto.
7585         * server-src/amcheck.c      : Ditto.
7586         * server-src/amflush.c      : Ditto.
7587
7588 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7589         Klocwork bug 159, 375, 377, 379, 508, 509, 513, 519
7590         * common-src/bsd-security.c:    Replace malloc by alloc.
7591         * common-src/bsdudp-security.c: Ditto
7592         * common-src/genversion.c:      Ditto
7593         * recover-src/amrecover.c:      Ditto
7594         * restore-src/amidxtaped.c:     Ditto
7595         * server-src/reporter.c:        Ditto
7596
7597 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7598         Klocwork bug 562 and 475
7599         * recover-src/set_commands.c (cd_dir): Check result of rindex.
7600         * oldrecover-src/set_commands.c (cd_dir): ditto.
7601
7602 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7603         Klocwork bug 552
7604         * restore-src/restore.c (load_manual_tape): Alloc space for cur_tapedev.
7605
7606 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7607         Klocwork bug 406
7608         * restore-src/restore.c (restore): Check for final_filename.
7609
7610 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7611         Klocwork bug 318
7612         * server-src/list_dir.c (add_dir_list_item): Check for cur_list->next.
7613
7614 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7615         Klocwork bug 17, 32
7616         * server-src/amadmin.c (disklist_one): Check localtime return NULL.
7617         * server-src/amadmin.c (info_one)    : Ditto.
7618
7619 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7620         Klocwork bug 2, 83, 128, 384, 478, 504, 505, 506, 517, 566, 567
7621         * server-src/amadmin.c (seqdatestr): Check localtime return NULL.
7622         * common-src/util.c (construct_datestamp, construct_timestamp,
7623                              conf_print):         Ditto.
7624         * oldrecover-src/amrecover.c (main):      Ditto.
7625         * oldrecover-src/uscan.l (ll_parse_date): Ditto.
7626         * recover-src/amrecover.c (main):         Ditto.
7627         * recover-src/uscan.l (ll_parse_date):    Ditto.
7628         * server-src/amflush.c (main):            Ditto.
7629         * server-src/reporter.c (handle_success): Ditto.
7630
7631 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7632         Klocwork bug 470
7633         * client-src/sendsize.c (add_diskest): Check for level value.
7634
7635 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7636         Klocwork bug 372
7637         * server-src/reporter.c (nicedate): Check month value.
7638
7639 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7640         Klocwork bug 20
7641         * server-src/amadmin.c (tape): Limit nb_days to 10000.
7642
7643 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7644         Klocwork bug 21
7645         * server-src/amadmin.c (balance): Test 'later' after it is set.
7646
7647 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7648         * common-src/alloc.c (internal_vstralloc): Don't return NULL.
7649
7650 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
7651         * server-src/infofile.c (open_txinfofile): Use local variable.
7652
7653 2006-06-29  Jean-Louis Martineau <martineau@zmanda.com>
7654         * restore-src/restore.c (label_of_current_slot): Close the tapefd if
7655                                                          the label mismatch.
7656
7657 2006-06-29  Jean-Louis Martineau <martineau@zmanda.com>
7658         * server-src/find.c (strip_failed_chunks):
7659           - Get a **output_find as parameter.
7660           - Check the label before remove a valid chunk.
7661           - Memory management fix.
7662
7663 2006-06-28  Jean-Louis Martineau <martineau@zmanda.com>
7664         * common-src/security-util.c: Improve message for .amandahosts.
7665
7666 2006-06-27  Ian Turner <ian@zmanda.com>
7667         * common-src/fileheader.c: Fix a bug where spanned dumps would 
7668           always fail.
7669
7670 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
7671         * server-src/amcheck.c: Fix test for holdingdisk negative size.
7672
7673 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
7674         * configure.in: Don't set DEFAULT_TAPE_DEVICE if it is not set.
7675         * client-src/clientconf.c: Work DEFAULT_TAPE_DEVICE not set.
7676         * common-src/genversion.c: Work DEFAULT_TAPE_DEVICE not set.
7677         * recover-src/amrecover.c: Work DEFAULT_TAPE_DEVICE not set.
7678         * server-src/getconf.c:    Work DEFAULT_TAPE_DEVICE not set.
7679
7680 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
7681         Patch by Paul Bijnens
7682         * server-src/amcheck.c: Check for access(hdp->diskdir, X_OK).
7683
7684 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
7685         * server-src/conffile.c (getconf_byname): Check for kt->keyword != NULL.
7686         * client-src/clientconf.c (client_getconf_byname): Ditto
7687
7688 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7689         * recover-src/extract_list.c: check_file_overwite.
7690
7691 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7692         * recover-src/extract_list.c: Do the cleanup of the extract list
7693                                       at the extraction time
7694         * oldrecover-src/extract_list.c: Ditto.
7695
7696 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7697         * NEWS: Add new features.
7698         * ReleasesNotes: New files.
7699
7700 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7701         * docs/Makefile.am (pkgdata_DATA): Add amaespipe.8.txt amcrypt.8.txt
7702           amcrypt-asym-ossl.8.txt amcrypt-ossl.8.txt amfetchdump.8.txt
7703         * docs/amaespipe.8.txt: New file.
7704         * docs/amcrypt.8.txt: New file.
7705         * docs/amcrypt-asym-ossl.8.txt: New file.
7706         * docs/amcrypt-ossl.8.txt: New file.
7707         * docs/amfetchdump.8.txt: New file.
7708
7709 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7710         * docs/Makefile.am (pkgdata_DATA): Add howto-auth.txt.
7711         * docs/howto-auth: Documentation on auth.
7712         * docs/*.txt: Update from xml-docs
7713
7714 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7715         * man/xml-source/amanda.conf.5.xml: Add notes about bsdudp and bsdtcp.
7716         * man/xml-source/amanda-client.conf.5.xml: Ditto.
7717
7718 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7719         * recover-src/extract_list.c (is_empty_dir): New function.
7720         * recover-src/extract_list.c: Print a warning if cwd is not empty.
7721
7722 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7723         * server-src/amadmin.c: Allow 'p' and 'P' in --sort argument.
7724
7725 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7726         * server-src/amadmin.c: Print errstr returned by match_disklist.
7727         * server-src/amcheck.c: Print errstr returned by match_disklist.
7728         * server-src/amflush.c: Print errstr returned by match_disklist.
7729         * server-src/diskfile.c (match_disklist): Return an error str.
7730         * server-src/diskfile.h (match_disklist): New prototype.
7731         * server-src/planner.c: Print errstr returned by match_disklist.
7732         * server-src/reporter.c: Accept host/disk as arguments.
7733
7734 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7735         * server-src/amindexd.c (uncompress_file): Set LC_ALL=C before
7736                                                    executing sort.
7737
7738 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7739         * server-src/driver.c (wait_children, kill_children): New function.
7740         * server-src/driver.c (wait_for_children): Use wait_children and
7741                                                    kill_children.
7742         * server-src/driver.c (main): Use wait_children.
7743         * server-src/driverio.c (taper_cmd, chunker_cmd): Close socket on QUIT
7744                                                           or ABORT command.
7745
7746 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7747         * common-src/amfeatures.c (am_init_feature_set): Set
7748           fe_amrecover_feedme_tape.
7749         * common-src/amfeatures.h (fe_amrecover_feedme_tape): New amfeatures.
7750         * common-src/fileheader.c (print_header): Fix.
7751         * recover-src/extract_list.c: Use fe_amrecover_feedme_tape.
7752         * restore-src/amfetchdump.c: Print error if get_lock == 0.
7753         * restore-src/amidxtaped.c: Call send_message if get_lock == 0.
7754         * restore-src/restore.c: Split search_tapes in 5 functions.
7755         * restore-src/restore.h (send_message): prototype.
7756
7757 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7758         * man/xml-source/amfetchdump.8.xml: Document -O and new -o.
7759         * restore-src/amfetchdump.c: Replace -o by -O
7760
7761 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
7762         * client-src/clientconf.c (parse_client_conf): Fix segmentation fault.
7763         * server-src/conffile.c (parse_server_conf): Fix segmentation fault.
7764
7765 2006-06-21  Kevin Till <ktill@zmanda.com>
7766         * changer-src/chg-juke.sh.in
7767         * changer-src/chg-manual.sh.in
7768         * changer-src/chg-mcutil.sh.in
7769         * changer-src/chg-multi.sh.in
7770         * changer-src/chg-mtx.sh.in
7771         * changer-src/chg-rait.sh.in
7772         * changer-src/chg-disk.sh.in
7773         * changer-src/chg-zd-mtx.sh.in
7774         * changer-src/chg-null.sh.in
7775         * changer-src/chg-chs.sh.in
7776         * client-src/patch-system.sh.in
7777         * amplot/amplot.sh.in
7778         * server-src/amcrypt-ossl.sh.in
7779         * server-src/amrmtape.sh.in
7780         * server-src/amcleanup.sh.in
7781         * server-src/amverifyrun.sh.in
7782         * server-src/amaespipe.sh.in
7783         * server-src/amdump.sh.in
7784         * server-src/amcrypt.sh.in
7785         * server-src/amcrypt-ossl-asym.sh.in
7786         * server-src/amcheckdb.sh.in
7787         * server-src/amfreetapes.sh.in
7788         * server-src/amverify.sh.in
7789          change /bin/sh to @SHELL@ for configure to pick up the correct
7790          shell. Sourceforge bug 1466655
7791         * man/xml-source/amcrypt-ossl-asym.8.xml: it's backup-privkey.pem
7792
7793 2006-06-20  Kevin Till <ktill@zmanda.com>
7794         * common-src/security-util.c: ignore EINTR in net_writev
7795           patch by Jean-Louis Martineau.
7796
7797 2006-06-20  John Franks <jrfranks@zmanda.com>
7798         * server-src/conffile.c:
7799                 Remove Duplicate keyword table entries and alphabetize
7800                 to make future duplicates easier to spot...
7801
7802         * server-src/taper.c:
7803                 Fix compiler warnings when no mmap function is present.
7804
7805 2006-06-20  John Franks <jrfranks@zmanda.com>
7806         * server-src/diskfile.c:
7807                 Default boolean values without parameters to yes if
7808                 no value is present in configuration file.  This
7809                 maintains backward compatibility and is logical since
7810                 a value such as "index" reads as an assertion of fact.
7811
7812 2006-06-19  Jean-Louis Martineau <martineau@zmanda.com>
7813         * docs/wishlist.txt: Remove features done in 2.5.0/2.5.1
7814
7815 2006-06-19  Jean-Louis Martineau <martineau@zmanda.com>
7816         * man/xml-source/amanda.conf.5.xml: amrecover_check_label and
7817                                             amrecover_do_fsf default to yes.
7818         * server-src/conffile (init_dumptype_defaults): DUMPTYPE_INDEX set to 1.
7819         * server-src/diskfile.c (parse_diskline): index set from
7820                                                   dumptype_get_index.
7821
7822 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
7823         * server-src/amstatus.pl.in: Match quotes in DONE line.
7824
7825 2006-06-16  Kevin Till <ktill@zmanda.com>
7826         * example/amanda-client.conf.in:
7827          correct DEFAULT_TAPE_SERVER/DEFAULT_SERVER
7828         * server-src/amcrypt-ossl-asym.sh.in:
7829           set RANDFILE for openssl to place entropy file.
7830         * server-src/amcrypt-ossl.sh.in: ditto
7831
7832 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
7833         * amandad-src/amandad.c   : Use strcasecmp to compare auth.
7834         * client-src/selfcheck.c  : Ditto
7835         * client-src/sendbackup.c : Ditto
7836         * restore-src/amidxtaped.c: Ditto
7837         * server-src/amindexd.c   : Ditto
7838
7839 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
7840         * server-src/amindexd.c (reply, lreply, fast_lreply): Correct use
7841           of arglist_start and arglist_end..
7842         * server-src/amindexd.c (lreply_backend): Remove function.
7843
7844 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
7845         * common-src/bsd-security.c (stream_read_callback): Send error to the
7846                                                             callback.
7847
7848 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
7849         * recover-src/extract_list.c: Typo.
7850         * restore-src/restore.c: Typo.
7851
7852 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
7853         * client-src/clientconf.c: Allow include.
7854         * client-src/clientconf.c (read_confline): Don't crash.
7855         * server-src/conffile.c (read_confline): Don't crash.
7856         * recover-src/amrecover.c: Exit if error in conf file.
7857
7858 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
7859         * common-src/arglist.h: Typo.
7860         * recover-src/extract_list.c: handle MESSAGE from amidxtaped.
7861
7862 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
7863         * common-src/amfeatures.c (am_init_feature_set): Set
7864                                                          fe_amrecover_message.
7865         * common-src/amfeatures.h (am_feature_e): Add fe_amrecover_message.
7866         * common-src/arglist.h (printf_arglist_function3): Prototype.
7867
7868 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
7869         * restore-src/restore.c (send_message): New function that send message
7870                                                 to stderr and/or amrecover.
7871         * restore-src/restore.c: Call send_message on some error path.
7872
7873 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
7874         * common-src/event.c (event_loop_wait, event_wait): Take an
7875                                          event_handle_t * as parameter.
7876         * common-src/event.h: New prototype.
7877         * common-src/bsd-security.c: Call event_wait(bs->ev_read).
7878         * common-src/krb4-security.c: Call event_wait(ks->ev_read).
7879         * common-src/krb5-security.c: Call event_wait(ks->ev_read).
7880         * common-src/security-util.c: Call event_wait(ss->ev_read).
7881
7882 2006-06-15  Kevin Till <ktill@zmanda.com>
7883         * man/xml-source/amcrypt-ossl-asym.8.xml: it's .am_passphrase
7884         * server-src/amcrypt-ossl-asym.sh.in: export PATH
7885         * server-src/amcrypt-ossl.sh.in: export PATH
7886
7887
7888 2006-06-15  Jean-Louis Martineau <martineau@zmanda.com>
7889         * server-src/amcheck.c: -w doesn't change the test selection.
7890         * man/xml-source/amcheck.8.xml
7891
7892 2006-06-15  Jean-Louis Martineau <martineau@zmanda.com>
7893         * server-src/planner.c: Log empty disklist and no DLE selected.
7894
7895 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
7896         * common-src/bsd-security.c: Use %u to print in_port_t data.
7897         * common-src/bsdudp-security.c: Ditto.
7898
7899 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
7900         * changer-src/chg-disk.sh.in: Return the number of slot in output of
7901                                       the -info command.
7902         * changer-src/chg-zd-mtx.sh.in: Ditto.
7903
7904 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
7905         * changer-src/chg-zd-mtx.sh.in: Accept changerfile that already
7906                                         have the .conf suffix.
7907
7908 2006-06-13  Jean-Louis Martineau <martineau@zmanda.com>
7909         * amandad-src/amandad.c (s_ackwait): Resend the REP on receive of a
7910                                              duplicate REQ.
7911
7912 2006-06-13  Jean-Louis Martineau <martineau@zmanda.com>
7913         * common-src/security-util.c (bsd_recv_security_ok): Set error only
7914           if we get an error.
7915
7916 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
7917         * server-src/driver.c: usetimestamps is a warning.
7918
7919 2006-06-12  Kevin Till <ktill@zmanda.com>
7920         * common-src/security-util.c: if host is 127.0.0.1 and either
7921           localhost or localhost.domain is in .amandahost, hostmatch passes.
7922         * common-src/security-util.h: update check_user_amandahosts prototype
7923
7924 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
7925         * amandad-src/amandad.c (process_writenetfd): Close the pipe if the
7926                                                       security_stream is closed.
7927         * recover-src/extract_list.c: Improve message if we don't get thei
7928                                       FEATURE line from amidxtaped.
7929
7930 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
7931         * recover-src/amrecover.c: Read amanda-client.conf and
7932                                    <conf>/amanda-client.conf.
7933
7934 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
7935         * common-src/security-util.c, common-src/tapelist.c,
7936           restore-src/restore.c, server-src/amcheck.c, server-src/amindexd.c,
7937           server-src/amtape.c, server-src/changer.c, server-src/driver.c,
7938           server-src/planner.c, server-src/taper.c,
7939           server-src/taperscan.c: Fix memory leak.
7940
7941 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
7942         * restore-src/restore.c: Fix Adding at end of list.
7943
7944 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
7945         * server-src/taper.c (syncpipe_putstr): Don't crash if str is NULL.
7946
7947 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
7948         * server-src/holding.c (pick_datestamp): Fix reading user input.
7949
7950 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
7951         * recover-src/amrecover.c (sigint_handler): Call send_command only if
7952                                                     amindexd is alive.
7953
7954 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
7955         * common-src/util.c (connect_port): ETIMEDOUT is a fatal error.
7956
7957 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
7958         * common-src/stream.c (stream_client_internal): Get errno set
7959                                                         correctly.
7960         * server-src/driver.c (handle_chunker_result): Don't assert(0) on
7961                               receive of a TRYAGAIN from a chunker, but set
7962                               chunker->result.
7963         * server-src/dumper.c: Try gethostbyname("localhost") before calling
7964                                stream_client and log appropriate message.
7965
7966 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
7967         * server-src/amcheck.c: Report ERROR if gethostbyname("localhost")
7968                                 doesn't succeed.
7969
7970 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
7971         * client-src/clientconf.c (add_client_conf): New function to map
7972                                                      normal option to their
7973                                                      -o equivalent.
7974         * client-src/clientconf.h (add_client_conf): Prototype.
7975         * man/xml-source/amrecover.8.xml: Document -o.
7976         * recover-src/amrecover.c: Also read <config>/amanda-client.conf
7977
7978 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
7979         * server-src/diskfile.c (parse_diskline): Only return 0 or -1.
7980
7981 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
7982         * amandad-src/amandad.h (g_option_t): Add auth.
7983         * amandad-src/amandad_util.c (init_g_options): Set auth to NULL.
7984         * amandad-src/amandad_util.c (parse_g_options): Parse auth.
7985         * amandad-src/amandad_util.c (free_g_options): Free auth.
7986         * client-src/sendbackup.c: Get amandad_auth from command line and
7987                                    compare with REQ packet.
7988         * common-src/amfeatures.h (fe_amindexd_options_hostname,
7989                                    fe_amindexd_options_features,
7990                                    fe_amindexd_options_auth,
7991                                    fe_amidxtaped_options_hostname,
7992                                    fe_amidxtaped_options_features,
7993                                    fe_amidxtaped_options_auth): New amfeatures.
7994         * common-src/amfeatures.c (am_init_feature_set): Set new amfeatures.
7995         * recover-src/amrecover.c: Send auth in OPTIONS of req packet.
7996         * recover-src/extract_list.c: Send auth in OPTIONS of req packet.
7997         * restore-src/amidxtaped.c: Parse amandad_auth from command line.
7998                                     Get auth from OPTIONS line.
7999                                     Compare them.
8000         * server-src/amindexd.c: Parse amandad_auth from command line.
8001                                  Get auth from OPTIONS line.
8002                                  Compare them.
8003
8004 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
8005         * common-src/util.c(connect_port): Return -2 on ECONNREFUSED error
8006                                            from connect.
8007
8008 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8009         * amandad-src/amandad.c: exec the service with the auth as parameter.
8010         * amandad-src/amandad.c(writebuf): Do no close fd.
8011         * client-src/selfcheck.c: Read the auth for the command line and
8012                                   compare with the option string.
8013         * client-src/selfcheck.c(main): Do no close 0,1,2 fd.
8014
8015 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8016         * man/xml-source/amanda.8.xml(CONFIGURATION OVERWRITE): New section.
8017         * man/xml-source/amadmin.8.xml,   man/xml-source/amcheck.8.xml,
8018           man/xml-source/amdump.8.xml,    man/xml-source/amflush.8.xml,
8019           man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml,
8020           man/xml-source/amreport.8.xml,
8021           man/xml-source/amrestore.8.xml: Add -o option.
8022
8023 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8024         * common-src/util.c(get_conftoken): Merge from zmanda.
8025
8026 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8027         * common-src/util.c(get_conftoken): Remove a conftoken_ungetc.
8028
8029 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8030         * common-src/bsd-security.c (stream_read_callback): Merge with zmanda.
8031
8032 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8033         * amandad-src/amandad.c(process_writenetfd): Call security_stream_read
8034                                                      only if size > 0.
8035
8036 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
8037         * server-src/conffile.c (lookup_interface): Fix merge error.
8038
8039 2006-06-07  John Franks <jrfranks@zmanda.com>
8040         * common-src/amanda.h:
8041                 Fix isnormal() replacement macro to indirectly
8042                 check if a floating point value is != 0.0.
8043                 This prevents compiler warnings.
8044
8045 2006-06-07  John Franks <jrfranks@zmanda.com>
8046         * common-src/util.c
8047                 Put in "/* NOTREACHED */" comments after error() calls.
8048         * server-src/diskfile.c
8049                 Change disktype index default to yes for backward compatibility.
8050
8051 2006-06-06  John Franks <jrfranks@zmanda.com>
8052         * amandad-src/amandad.c common-src/bsd-security.c:
8053                 Correct fix for infinite amandad loop.
8054
8055 2006-06-06  John Franks <jrfranks@zmanda.com>
8056         * common-src/stream.c common-src/util.c:
8057                 Lint clean again.
8058         * server-src/conffile.c:
8059                 Remove replicated line
8060
8061 2006-06-06  Jean-Louis Martineau <martineau@zmanda.com>
8062         * common-src/util.c (conftoken_ungetc): Return the character.
8063         * common-src/util.c (get_conftoken): Merge to allow escape character.
8064         * common-src/util.c (read_block): Allow STRING as IDENT.
8065         * server-src/conffile.c (getconf_long, getconf_size): New function.
8066         * server-src/conffile.c: Cleanup after Merge.
8067
8068 2006-06-06  Jean-Louis Martineau <martineau@zmanda.com>
8069         * server-src/amadmin.c, server-src/amcheck.c, server-src/amflush.c,
8070           server-src/amlabel.c, server-src/amlogroll.c, server-src/amtrmidx.c,
8071           server-src/amtrmlog.c, server-src/getconf.c,
8072           server-src/reporter.c: Usage -o
8073         * server-src/amflush.c, server-src/amlogroll.c, server-src/amtrmidx.c,
8074           server-src/amtrmlog.c, server-src/chunker.c, server-src/driver.c,
8075           server-src/dumper.c, server-src/getconf.c, server-src/planner.c,
8076           server-src/reporter.c,
8077           server-src/taper.c: Add call to report_bad_conf_arg.
8078         * server-src/conffile.c(get_comprate, get_compress): Parse CONF_END.
8079
8080 2006-06-06  John Franks <jrfranks@zmanda.com>
8081         * configure.in:
8082                 Increase checking level from 1 to 2 for SUN lint.
8083         * client-src/amandates.c client-src/clientconf.c
8084           common-src/security-util.c recover-src/amrecover.c
8085           recover-src/extract_list.c regex-src/regcomp.c server-src/amcheck.c
8086           server-src/amlabel.c server-src/chunker.c server-src/conffile.c
8087           server-src/conffile.h server-src/diskfile.c server-src/diskfile.h
8088           server-src/driver.c server-src/holding.c server-src/reporter.c
8089           server-src/tapefile.c server-src/taper.c tape-src/amdd.c:
8090                 Lint clean again.
8091         * common-src/util.h common-src/util.c:
8092                 Lint clean again.
8093                 Add missing conftype size.
8094         * common-src/bsd-security.c
8095                 Fix infinte loop which consumes all /tmp space and 1/2
8096                 the CPU time when EOF is reached on socket.
8097
8098 2006-06-05  Paddy Sreenivasan <paddy@zmanda.com>
8099         * common-src/util.c: Fix warning
8100
8101 2006-06-05  Jean-Louis Martineau <martineau@zmanda.com>
8102         * restore-src/amfetchdump.c, server-src/amcheck.c,
8103           server-src/amcheckdb.sh.in, server-src/amcleanup.sh.in,
8104           server-src/amdump.sh.in, server-src/amflush.c,
8105           server-src/amlabel.c, server-src/amlogroll.c,
8106           server-src/amtrmidx.c, server-src/amtrmlog.c,
8107           server-src/chunker.c, server-src/conffile.c,
8108           server-src/diskfile.c, server-src/driver.c,
8109           server-src/driverio.c, server-src/dumper.c,
8110           server-src/getconf.c, server-src/planner.c,
8111           server-src/reporter.c, server-src/taper.c,
8112           server-src/taperscan.c: Allow -o options and some memory fix.
8113         * server-src/conffile.c(lookup_dumptype, lookup_tapetype,
8114           lookup_interface): Use strcasecmp.
8115
8116 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
8117         * common-src/stream.c (stream_client_internal): Use connect_portrange.
8118         * common-src/util.c (connect_portrange): First, try to connect with a
8119                                                  port already used.
8120         * common-src/util.c (connect_port): Try to connect with a specific port.
8121         * common-src/util.h: Cleanup.
8122
8123 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
8124         * server-src/reporter.c: Remove empty if.
8125
8126 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
8127         * common-src/util.c (read_block): Don't read CONF_NL aftre the '{'.
8128         * server-src/conffile.c(get_holdingdisk, get_tapetype, get_interface):
8129           Read a CONF_NL after the call to read_block.
8130         * server-src/conffile.c(read_dumptype): Read a CONF_NL if we are not
8131                                                 called from diskfile.
8132         * server-src/diskfile.c: Don't loop on empty line after read_dumptype.
8133
8134 2006-06-01  Kevin Till  <ktill@zmanda.com>
8135         * server-src/amcrypt-ossl.sh.in: symmetric encrypt script using openSSL.
8136           Thanks to Ben Slusky.
8137         * server-src/amcrypt-ossl-asym.sh.in: public-ley encrypt script using openSSL.
8138         * man/xml-source/amcrypt-ossl.8.xml: man page
8139         * man/xml-source/amcrypt-ossl-asym.8.xml: man page
8140         * configure.in: ditto
8141         * man/Makefile.am: ditto
8142         * man/entities/global.entities: ditto
8143         * server-src/Makefile.am: ditto
8144
8145 2006-06-01  John Franks <jfranks@zmanda.com>
8146         Eliminate Cygwin compile warnings.
8147         * client-src/getfsent.c:  Quiet unused parameter warnings.
8148         * client-src/selfcheck.c: Quiet unused parameter warnings.
8149         * common-src/security-util.h: Make hostname const char *.
8150
8151 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8152         * server-src/amcheck.c: holdingdisk_get_disksize() return an off_t.
8153         * server-src/find.c: result should be ssize_t.
8154
8155 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8156         * common-src/amanda.h: Remove am64_t.
8157         * client-src/clientconf.c, client-src/clientconf.h, common-src/util.c,
8158           common-src/util.h, server-src/conffile.c, server-src/conffile.h:
8159           Second pass of config cleanup, add function to parse -o argument.
8160         * recover-src/amrecover.c: -o command argument.
8161         * restore-src/restore.c: Use off_t instead of am64_t.
8162         * server-src/amadmin.c: New config subcommand. -o command argument.
8163         * server-src/amlabel.c: Fix memory leak.
8164         * server-src/diskfile.c: Fix memory leak.
8165         * server-src/diskfile.h: Rename no_hold to to_holdingdisk.
8166         * server-src/driver.c: Many.
8167         * server-src/planner.c: am64_t to off_t.
8168
8169 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8170         This is the first pass of a general rewrite of configuration file
8171         parsing, It will now use array to store all options.
8172
8173         * client-src/clientconf.c:
8174         * client-src/clientconf.h:
8175         * server-src/conffile.c:
8176         * server-src/conffile.h:
8177         * common-src/util.c: Many new functions.
8178         * common-src/util.h:
8179
8180         * restore-src/amidxtaped.c, server-src/amcheck.c,
8181           server-src/amcleanupdisk.c, server-src/amlabel.c,
8182           server-src/diskfile.c, server-src/driver.c, server-src/driverio.c,
8183           server-src/find.c, server-src/holding.c, server-src/planner.c,
8184           server-src/reporter.c,
8185           server-src/taper.c: Use new macro to get configuration option.
8186
8187 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8188         * amandad-src/amandad.c, client-src/amandates.c, client-src/noop.c,
8189           client-src/selfcheck.c, client-src/sendsize.c,
8190           common-src/bsd-security.c, common-src/bsdtcp-security.c,
8191           common-src/bsdudp-security.c, common-src/fileheader.c,
8192           common-src/rsh-security.c, common-src/security-util.c,
8193           common-src/security-util.h, common-src/ssh-security.c,
8194           recover-src/extract_list.c, server-src/amcheck.c,
8195           server-src/amindexd.c, server-src/amlogroll.c,
8196           server-src/diskfile.c, server-src/driver.c, server-src/dumper.c,
8197           server-src/find.c, server-src/logfile.c, server-src/planner.c,
8198           server-src/reporter.c,
8199           server-src/tapefile.c: Fix memory and fd leak.
8200
8201 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8202         * server-src/find.c (search_holding_disk): Take the datestamp from the
8203           file, not the directory name, otherwise usetimestamps=no doesn't
8204           work.
8205
8206 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8207         * common-src/stream.c (stream_server): New priv parameter if we want
8208                                                a reserved port. Don't try to
8209                                                get a reserved port if priv==0.
8210         * common-src/stream.h (stream_server): New prototype.
8211         * common-src/bsd-security.c: Call stream_server with priv==0.
8212         * common-src/krb4-security.c: Call stream_server with priv==1.
8213         * common-src/security-util.c: Call stream_server with priv==0.
8214         * restore-src/amidxtaped.c: Call stream_server with priv==0.
8215         * server-src/chunker.c: Call stream_server with priv==0.
8216         * server-src/taper.c: Call stream_server with priv==0.
8217
8218 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
8219         * server-src/diskfile.c: Return -1 if open of diskfile failed.
8220         * server-src/driver.c: Change message if didn't get a DATE line.
8221         * server-src/reporter.c: Ignore faillure in reading amanda.conf
8222                                  disklist and tapelist.
8223
8224 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
8225         * man/xml-source/amanda.8.xml: Documents service in .amandahosts.
8226
8227 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
8228         Previous patch doesn't work because 'make -j2' will use fd 3.
8229         * amandad-src/Makefile.am: Use a temporary file for output of
8230                                    'make listlibsrc'.
8231         * changer-src/Makefile.am: Ditto.
8232         * client-src/Makefile.am: Ditto.
8233         * common-src/Makefile.am: Ditto.
8234         * oldrecover-src/Makefile.am: Ditto.
8235         * recover-src/Makefile.am: Ditto.
8236         * restore-src/Makefile.am: Ditto.
8237         * server-src/Makefile.am: Ditto.
8238         * tape-src/Makefile.am: Ditto.
8239
8240 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
8241         * amandad-src/Makefile.am: 'make listlibsrc' send it's ouput to fd 3.
8242         * changer-src/Makefile.am: Ditto.
8243         * client-src/Makefile.am: Ditto.
8244         * common-src/Makefile.am: Ditto.
8245         * oldrecover-src/Makefile.am: Ditto.
8246         * recover-src/Makefile.am: Ditto.
8247         * restore-src/Makefile.am: Ditto.
8248         * server-src/Makefile.am: Ditto.
8249         * tape-src/Makefile.am: Ditto.
8250
8251 2006-05-28  Paddy Sreenivasan <paddy@zmanda.com>
8252         * tape-src/tapeio.c : Fixed warnings
8253         * tape-src/output-rait.c : Fixed warnings
8254         * tape-src/output-null.c : Fixed warnings
8255         * tape-src/output-file.c : Fiexed warnings
8256         * recover-src/amrecover.c: Fixed warnings
8257         * recover-src/extract_list.c : Fixed warnings
8258         * server-src/amadmin.c : Fixed warnings
8259         * server-src/driver.c : Fixed warnings
8260         * server-src/infofile.c : Fixed warnings
8261
8262 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
8263         * server-src/conffile.c (read_dumptype): Parse SSH_KEYS.
8264
8265 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
8266         * common-src/security-util.c (udp_inithandle): Remove bad merge.
8267         * server-src/amindexd.c: Improve error message.
8268         * server-src/planner.c: Add a space in output.
8269
8270 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
8271         * server-src/conffile.c: Set dpcur.no_hold correctly,
8272                                  Fix for conffile program.
8273
8274 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
8275         Allow many services to share the same tcp connection for
8276         bsdtcp/ssh/rsh.
8277         Add a security_close_connection to the security-api.
8278         * amandad-src/amandad.c (wait_30s, exit_on_qlength): New variable to
8279                                         control auth specific behaviour.
8280         * common-src/bsd-security.c: Add sec_close_connection_none.
8281         * common-src/bsdudp-security.c: Add sec_close_connection_none.
8282         * common-src/krb4-security.c: Add sec_close_connection_none.
8283         * common-src/krb5-security.c: Add sec_close_connection_none.
8284         * common-src/security.h (security_close_connection): Prototype.
8285         * common-src/security-util.h (sec_close_connection_none,
8286                                       tcpm_close_connection): Prototype.
8287         * common-src/security-util.h (struct tcp_conn): Add toclose.
8288         * common-src/security-util.h (struct sec_stream): Add closed_by_me and
8289                                                           closed_by_network.
8290         * common-src/security-util.c (sec_close_connection_none,
8291                                       tcpm_close_connection): New function.
8292         * common-src/security-util.c: Handle many services on one connection.
8293         * common-src/bsdtcp-security.c: Handle many services on one connection.
8294         * common-src/rsh-security.c: Handle many services on one connection.
8295         * common-src/ssh-security.c: Handle many services on one connection.
8296         * recover-src/amrecover.c: Add call security_close_connection.
8297         * recover-src/extract_list.c: Add call security_close_connection.
8298         * server-src/amcheck.c: Add call security_close_connection.
8299         * server-src/dumper.c: Add call security_close_connection.
8300
8301 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
8302         * common-src/security-util.c (bsd_prefix_packet): We need the username
8303           of the getuid() user.
8304
8305 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
8306         * common-src/fileheader.c: Parse datestamp on F_TAPEEND.
8307         * restore-src/amrestore.c: Set read_result to the result of
8308                                    read_file_header.
8309         * restore-src/restore.c (read_file_header): Return a ssize_t.
8310                         Rename bytes_read by read_result.
8311                         Set read_result to the result of read_file_header.
8312         * restore-src/restore.h (read_file_header): New prototype.
8313
8314 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8315         * server-src/taperscan.c: Replace bogus newvstralloc by vstrextend.
8316
8317 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8318         * client-src/getfsent.c (print_entry): Add prototype.
8319         * common-src/token.c (main): Shut up compiler warning.
8320         * server-src/infofile.c (dump_rec, dump_db): Add prototype.
8321
8322 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8323         * amandad-src/amandad.c, common-src/bsd-security.c,
8324           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
8325           common-src/event.c, common-src/krb5-security.c,
8326           common-src/protocol.c, common-src/rsh-security.c,
8327           common-src/security-util.c, common-src/ssh-security.c,
8328           common-src/util.c, server-src/driver.c: comment debugging.
8329
8330 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8331         * common-src/security-util.c: typo.
8332         * server-src/amcheck.c: Make sure all check are done.
8333
8334 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8335         Fix for program not compiled by default.
8336         make bsdsecurity still not compile.
8337         * common-src/bsd-security.c(bind_portrange): prototype change.
8338         * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add match.o.
8339         * server-src/conffile.c: Many typo.
8340         * tape-src/tapeio.c: Use OFF_T_FMT and SSIZE_T_FMT when needed, typo.
8341         
8342 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8343         * common-src/fileheader.c (validate_datestamp): Works for 8 characters
8344                                                         datestamp.
8345         * common-src/security-util.c (tcpm_send_token): netlength must be
8346                                                         uint32_t.
8347         * common-src/security-util.c (bsd_prefix_packet): Fix typo.
8348         * common-src/util.c (get_time): Don't do computation for starttime.
8349         * server-src/conffile.c (read_dumptype): Do computation for starttime.
8350
8351 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8352         * common-src/krb5-security.c (krb5_sendpkt, krb5_stream_read_sync,
8353                                       recv_token): Return ssize_t.
8354         * common-src/krb5-security.c (krb5_accept, krb5_stream_accept,i
8355                                       krb5_stream_auth): Shut up compiler.
8356         * tape-src/output-file.c: Use SSIZE_MAX instead of SSIZE_T_MAX.
8357
8358 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
8359         * configure.in(AM_INIT_AUTOMAKE): Fix.
8360
8361 2006-05-25  John Franks <jrfranks@zmanda.com>
8362         Pass user CFLAGS correctly to machine generated code and do not
8363         enforce code quality checks on them.
8364         * configure.in:
8365           Put compiler code check flags into existing, but previously
8366           unused, AM_CFLAGS for Makefiles to pick up.  CFLAGS should
8367           now only contain mandatory flags.
8368
8369         * recover-src/Makefile.am  oldrecover-src/Makefile.am:
8370           Use CFLAGS for compiling C code generated from uparse.y and uscan.l
8371
8372 2006-05-24  John Franks <jrfranks@zmanda.com>
8373         Add support for binary path names on disk and in configuration files.
8374            (Allow spaces in filenames.)
8375
8376         Allow quoted strings for disklist entries.
8377
8378         Lint clean code using sun lint, splint and strict GCC warnings. 
8379         Type / size clean, dead code removal, portibility checks, etc.
8380         Many checks are still turned off.  See configure.in for lint flags used.
8381
8382         Increase debug output in /tmp/amanda/*debug files.
8383
8384         Set SO_REUSEADDR on sockets help avoid running out of ports.
8385
8386         * configure.in:
8387                 Added lint program discovery with specific targets for SUN lint and splint.
8388                 Check each compiler option to see if GCC supports it.
8389                 Enable more code quality warnings.
8390                 Change missing xsltproc to warning rather than error.
8391                 Define _GNU_SOURCES to build flags.
8392                 Make size_t and time_t printf format macros.
8393                 Check for isnormal() availability.
8394                 Don't install man pages if they are not built.
8395                 Fix man pages to not attempt build or install if
8396                         --without-built-manpages is set.
8397
8398         * Makefile.am amandad-src/Makefile.am changer-src/Makefile.am
8399           client-src/Makefile.am common-src/Makefile.am
8400           oldrecover-src/Makefile.am recover-src/Makefile.am
8401           restore-src/Makefile.am server-src/Makefile.am tape-src/Makefile.am:
8402                 Add lint target.
8403
8404         * common-src/amanda.h common-src/dgram.c common-src/stream.c
8405           common-src/util.c:
8406                 Keep checking for ports on all bind errors.
8407                 Delay and retry a few times if all ports are busy.
8408                 Retry bind failures after all methods fail.
8409                 increase bind checking timeout to 30 minutes.
8410
8411         * client-src/amandad.c
8412                 Issue wait when any child exits.  (Get rid of defunct processes)
8413                 Stat() index file before using system command.
8414                   (shell is not reporting failure if index is not present)
8415
8416         * recover-src/extract_list.c:
8417           Fix problem of 'add *' not adding directories.
8418           Fix problem of freeing pointer not obtained through malloc.
8419           Touch up file addition to actually use the file names
8420              retrieved when adding a directory and not the directory itself.
8421
8422         * server-src/taper.c
8423                 Strenghten error recovery for broken syncpipes and writer errors.
8424
8425         * changer-src/chg-scsi-chio.c client-src/amandates.c
8426           client-src/client_util.c client-src/findpass.c client-src/getfsent.c
8427           client-src/selfcheck.c client-src/sendbackup-gnutar.c
8428           client-src/sendbackup-star.c client-src/sendbackup.c
8429           client-src/sendsize.c common-src/bsd-security.c common-src/file.c
8430           common-src/krb5-security.c server-src/amcheck.c server-src/amindexd.c
8431           server-src/diskfile.c server-src/driver.c server-src/dumper.c
8432           server-src/holding.c server-src/infofile.c server-src/logfile.c
8433           server-src/tapefile.c:
8434                 allow empty lines in input streams.
8435
8436         * recover-src/uparse.y
8437                 print message when input is garbage.
8438
8439         * server-src/getconf.c:
8440                 Define HOSTNAME_INSTANCE if it was not already defined
8441                 for Kerberos.
8442
8443         * configure.in: Make readline warning less specific.  Readline is
8444           used by all input from terminal now.
8445
8446 2006-05-24  Kevin Till <ktill@@zmanda.com>
8447         * client-src/sendbackup.c: ignore SIGINT
8448         * common-src/ssh-security.c: add to total only when n > 0
8449         * common-src/ssh-security.c: add ssh to error,
8450           retry writev when EINTR, EAGAIN is seen
8451           to STDOUT. exit when options is chosen in template mode.
8452         * server-src/driver.c: make sure timestamp is not null
8453         * amanda/configure.in: remove template.d/amanda.conf which is a dup 
8454           of amanda-harddisk.conf
8455         * example/Makefile.am: add template.d/README
8456         * amanda-harddisk.conf.in: set tapedev
8457         * recover-src/amrecover.c: aclose socket before exit.
8458         * recover-src/extract_list.c: ditto
8459         * amanda_enterprise.spec: remove template.d/amanda.conf, add template.d/README
8460           in the failure cases. <> user input field.
8461         * server-src/amcheck.c: no quoted text is a warning
8462         * server-src/driver.c: no need to amfree qname
8463           argument. Search mtx in PATH too.
8464         * example/template.d/advanced.conf.in: fix comment for autoflush
8465         * example/template.d/advanced.conf.in: add usetimestamps
8466         * server-src/diskfile.c: to catch unsupported compress-encryption
8467           combination and abort amdump gracefully.
8468         * man/xml-source/amanda.conf.5.xml: fix syntax, add 
8469           dumptype references.  
8470         * man/xml-source/amanda.8.xml: fix syntax
8471         * configure.in:                 ditto
8472         * man/Makefile.am:              ditto
8473         * example/amanda.conf.in:       tidy up
8474         * man/xml-source/amaespipe.8.xml: add uuencode as requirement
8475         * man/xml-source/amcrypt.8.xml:   add uuencode as requirement
8476         * server-src/amcheck.c: catch dumptype misconfiguration
8477         * server-src/diskfile.c: ditto
8478         * server-src/driverio.c: ditto
8479         * server-src/planner.c:  ditto
8480         * server-src/conffile.c: check includefile before calling
8481           read_conffile_recursively
8482         * example/amanda.conf.in:       add public-key encryption dumptype example
8483         * man/xml-source/amanda.8.xml:  fix some formatting     
8484         * server-src/planner.c: adjust setuid() calling sequences so that ssh can work
8485         * server-src/dumper.c:  ditto
8486         * configure.in:              add LOW_TCPPORTRANGE for amrecover
8487         * common-src/stream.c:       use LOW_TCPPORTRANGE
8488         * server-src/amdump.sh.in:   check if config is supplied
8489         * man/xml-source/amrestore.8.xml: add notes on "-f" option
8490
8491 2006-05-24  Ian Turner <ian@zmanda.com>
8492         * configure.in: Properly document --without-xsltproc as itself, 
8493           and not the (nonexistant) option --without-built-manpages.
8494
8495 2006-05-16  John Franks <jrfranks@zmanda.com>
8496         * amandad-src/amandad.c client-src/clientconf.c common-src/bsd-security.c
8497           common-src/bsdudp-security.c common-src/dgram.c common-src/krb4-security.c
8498           common-src/krb5-security.c common-src/match.c common-src/packet.c
8499           common-src/security-util.c common-src/security-util.h
8500           common-src/security.h common-src/util.c oldrecover-src/Makefile.am
8501           oldrecover-src/set_commands.c recover-src/amrecover.c
8502           recover-src/extract_list.c server-src/conffile.c server-src/driver.c
8503           server-src/dumper.c server-src/planner.c server-src/reporter.c:
8504                 Minimal changes to get tree to compile along with some more
8505                 debugging output.
8506
8507 2006-05-15  Jean-Louis Martineau <martineau@zmanda.com>
8508         * server-src/amadmin.c (disklist_one): print spindle.
8509
8510 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
8511         * commmon-src/bsd-security.c: Typo.
8512
8513 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
8514         * common-src/Makefile.am (noinst_HEADERS): Add security-util.h.
8515
8516 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
8517         Build a big tok_t enum for server and client config.
8518         * client-src/clientconf.c: Move many things to util.c.
8519         * client-src/clientconf.h: Remove extern variable.
8520         * common-src/util.c: Add common part of clientconf.c and conffile.c
8521         * common-src/util.h: Prototype.
8522         * server-src/conffile.c: Move many things to util.c.
8523         * server-src/diskfile.c(disk_parserror): Rename from parserror.
8524         * server-src/taper.c: Make many variable static.
8525
8526 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
8527         * restore-src/restore.c: Fix use of possibly NULL input.
8528
8529 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
8530         * common-src/ssh-security.c (ssh_connect): Retrieve ssh_keys from
8531                                                    configuration.
8532         * server-src/amadmin.c(disklist_one): Print ssh_keys.
8533         * server-src/conffile.c(SSH_KEYS): Parse new dumptype option.
8534         * server-src/conffile.h(dumptype_t): Add ssh_keys.
8535         * server-src/diskfile.c(parse_diskline): Copy new field.
8536         * server-src/diskfile.h(disk_t) Add ssh_keys.
8537         * server-src/driverio.c(dumper_cmd): Send dp->ssh_keys in a PORT_DUMP
8538                                              command to the dumper.
8539         * server-src/dumper.c: Parse ssh_keys in a PORT_DUMP command.
8540         * server-src/dumper.c(dumper_get_security_conf): Return the ssh_keys.
8541         * server-src/server_util.c(amhost_get_security_conf): Return the
8542                                                               ssh_keys.
8543
8544 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
8545         * amandad-src/amandad.c: Set allow_many_services to 0 if auth=bsdtcp.
8546         * common-src/bsd-security.c: Use security-util.c.
8547         * common-src/bsdtcp-security.c: New security-api.
8548         * common-src/bsdudp-security.c: New secutity-api.
8549         * common-src/krb4-security.c: Use security-util.c.
8550         * common-src/krb5-security.c: Use security-util.c.
8551         * common-src/Makefile.am (libamanda_la_SOURCES): Add bsdtcp-security.c,
8552                                                              bsdtcp-security.c
8553                                                          and security-util.c.
8554         * common-src/protocol.c: Debuging cleanup.
8555         * common-src/rsh-security.c Use security-util.c.
8556         * common-src/security.c: Use bsdtcp_security_driver
8557                                  and bsdudp_security_driver.
8558         * common-src/security.h(accept): New prototype.
8559         * common-src/security-util.c: Many common function for security-api.
8560         * common-src/security-util.h: many prototype for security-api.
8561         * common-src/ssh-security.c Use security-util.c.
8562         * common-src/stream.c (stream_client_internal): Call connect_portrange.
8563         * common-src/util.c (make_socket): Make a socket.
8564         * common-src/util.c (connect_portrange): Make a socket, bind it and
8565                                                  connect.
8566         * common-src/util.h (connect_portrange): Prototype.
8567         * configure.in: new --with-bsdtcp-security and --with-bsdudp-security.
8568
8569 2006-05-10  Jean-Louis Martineau <martineau@zmanda.com>
8570         Patch by <amanda@inventivetechnology.at>
8571         * man/xml-source/amrecover.8.xml: Document listhost command.
8572
8573 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8574         Patch by <amanda@inventivetechnology.at>
8575         * server-src/amindexd.c: new LISTHOST command.
8576         * recover-src/set_commands.c (list_host): New function.
8577         * recover-src/amrecover.h (list_host): Prototype.
8578         * recover-src/help.c (list_host): Print help.
8579         * recover-src/uscan.l: Parse listhost command.
8580         * recover-src/uparse.y: LISTHOST command.
8581         * oldrecover-src/set_commands.c (list_host): New function.
8582         * oldrecover-src/amrecover.h (list_host): Prototype.
8583         * oldrecover-src/help.c (list_host): Print help.
8584         * oldrecover-src/uscan.l: Parse listhost command.
8585         * oldrecover-src/uparse.y: LISTHOST command.
8586
8587 2006-05-08  Ian Turner <ian@zmanda.com>
8588         * server-src/amcheck.c: Make it an error when the expected new 
8589           tape cannot be found. Thanks to Paul Bijnens
8590           <paul.bijnens@xplanation.com> for the patch and to Jason L 
8591           Tibbitts III <tibbs@math.uh.edu> for noticing this problem.
8592
8593 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8594         * driverio.h (shed_s): Add est_nsize, est_csize, degr_nsize, degr_csize
8595                                for nativa and compressed estimate size.
8596         * planner.c: Send the native and compressed estimate size to the driver.
8597         * driver.c: log with L_STATS the estimate of a successful dump.
8598         * reporter.c: Parse the L_STATS.
8599         * reporter.c(generate_bad_estimate): New function that will put in the
8600                                              NOTES section all bad estimate.
8601
8602 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8603         * configure.in (AC_CONFIG_FILES): Add oldrecover-src/Makefile.
8604         * Makefile.am (RECOVER_SUBDIRS): Add oldrecover-src.
8605         * oldrecover-src/amrecover.c: Copy of old recover-src/amrecover.c
8606         * oldrecover-src/amrecover.h: Copy of old recover-src/amrecover.h
8607         * oldrecover-src/display_commands.c: Copy of old
8608                                              recover-src/display_commands.c
8609         * oldrecover-src/extract_list.c: Copy of old recover-src/extract_list.c
8610         * oldrecover-src/help.c: Copy of old recover-src/help.c
8611         * oldrecover-src/Makefile.am: Copy of old recover-src/Makefile.am
8612         * oldrecover-src/set_commands.c: Copy of old recover-src/set_commands.c
8613         * oldrecover-src/uparse.y: Copy of old recover-src/uparse.y
8614         * oldrecover-src/uscan.l: Copy of old recover-src/uscan.l
8615         * recover-src/amrecover.c: Works with security-api.
8616         * recover-src/amrecover.h: Works with security-api.
8617         * recover-src/extract_list.c: Works with security-api.
8618
8619 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8620         * amandad-src/amandad.c: Fixup.
8621
8622 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8623         * common-src/packet.h: pkt_t.body is now a char*.
8624         * common-src/packet.c (pkt_init): Return an alloced pkt.body.
8625         * common-src/packet.c (pkt_cat): Increade pkt.body size if needed.
8626         * common-src/protocol.c: Free allocated pkt.body.
8627         * common-src/dgram.c (dgram_cat): Return int.
8628         * common-src/dgram.h (dgram_cat): New prototype.
8629         * common-src/krb5-security.c: Work with dynamicaly allocated packet
8630                                       body.
8631         * common-src/rsh-security.c: Work with dynamicaly allocated packet
8632                                      body.
8633         * common-src/ssh-security.c: Work with dynamicaly allocated packet
8634                                      body.
8635         * amandad-src/amandad.c: Work with dynamicaly allocated packet body.
8636         * server-src/amcheck.c: Don't limit packet size.
8637         * server-src/planner.c: Don't limit packet size.
8638
8639 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8640         * amandad-src/amandad.c (service_new): Apply the correct patch.
8641
8642 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
8643         * server-src/taper.c: Fix compiler warning.
8644         * common-src/match.c: Many function get const parameters.
8645         * common-src/amanda.h: Prototype change.
8646
8647 2006-05-07  Jean-Louis Martineau <martineau@zmanda.com>
8648         * amandad-src/amandad.c (service_new): Make sur that the 3 data_read[]
8649           and the 3 data_write[] fd are not in the range DATA_FD_OFFSET to
8650           DATA_FD_OFFSET+DATA_FD_COUNT-1.
8651
8652 2006-05-05  Jean-Louis Martineau <martineau@zmanda.com>
8653         * common-src/tapelist.c (append_to_tapelist): Remove bad amfree.
8654
8655 2006-05-05  Nikhil Bandiwadekar <nikhil@zmanda.com>
8656         * server-src/conffile.c: fix to correctly handle am64 datatype
8657
8658 2006-05-04  Jean-Louis Martineau <martineau@zmanda.com>
8659         * server-src/taper.c: Write the slot number in the
8660                               'taper: wrote label' line.
8661         * server-src/amverifyrun.sh.in: Parse that line.
8662
8663 2006-05-02  Jean-Louis Martineau <martineau@zmanda.com>
8664         * amstatus.pl.in: Limit characters for hostname in setup_estimate line.
8665
8666 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
8667         * common-src/rsh-security.c: Pass "amdump amindexd amidxtaped" option
8668                                      to amandad.
8669         * common-src/ssh-security.c: Ditto.
8670
8671 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
8672         * amandad-src/amandad.c: Accept a list of services on the command line.
8673
8674 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
8675         * common-src/tapelist.c (append_to_tapelist): Fix memory leak.
8676
8677 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
8678         * amandad-src/amandad.c: Fix memory leak.
8679         * amandad-src/amandad.h (free_g_options): Prototype.
8680         * amandad-src/amandad_util.c (free_g_options): New function to free a
8681                                                        g_option_t.
8682         * server-src/amcleanupdisk.c: Fix memory leak.
8683         * server-src/reporter.c: Fix memory leak.
8684         * server-src/tapefile.c: Fix memory leak.
8685         * server-src/taperscan.c: Put message in error_message.
8686
8687 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8688         * server-src/amcheck.c (start_server_check): Memory leak.
8689
8690 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8691         * amandad-src/Makefile.am (noinst_HEADERS): Add amandad.h.
8692         * client-src/Makefile.am (noinst_HEADERS): Add clientconf.h.
8693
8694 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8695         * man/xml-source/amanda-client.conf.5.xml: New file.
8696
8697 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8698         * common-src/amanda.h (check_user_ruserok, check_user_amandahosts):
8699           Remove prototype.
8700         * common-src/bsd-security.c: Pass the service name across check_user*
8701           function and validate it from the .amandahosts file.
8702
8703 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8704         * restore-src/amidxtaped.c: Can be launched by amandad.
8705         * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
8706         * server-src/Makefile.am (amidxtaped__LDADD): Link with libamandad.
8707         * restore-src/restore.c: Fix indentation.
8708
8709 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8710         * server-src/amindexd.c: Can be launched by amandad
8711         * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
8712         * server-src/Makefile.am (amindexd_LDADD): Link with libamandad.
8713
8714 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8715         * amandad-src/amandad.c: New file.
8716         * amandad-src/amandad.h: New file.
8717         * amandad-src/amandad_util.c: New file, add function init_g_options
8718                                       parse_g_options.
8719         * amandad-src/Makefile.am: New file.
8720         * client-src/amandad.c: Removed file.
8721         * client-src/amandad.h: Removed file.
8722         * client-src/client_util.c (init_g_options, parse_g_options): Remove.
8723         * client-src/client_util.h (init_g_options, parse_g_options): Remove.
8724         * client-src/Makefile.am (INCLUDES): -I$(top_srcdir)/amandad-src
8725         * client-src/Makefile.am (libexec_PROGRAMS): Remove amandad.
8726         * client-src/Makefile.am (LDADD): Add
8727                                   ../amandad-src/libamandad.$(LIB_EXTENSION).
8728         * client-src/selfcheck.c: #include "amandad.h".
8729         * client-src/sendsize.c: #include "amandad.h".
8730         * configure.in (AC_CONFIG_FILES): amandad-src/Makefile.
8731         * Makefile.am (SUBDIRS): amandad-src.
8732
8733 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8734         * docs/security-api.txt: Document security_read_sync.
8735         * common-src/security.h: Typo.
8736
8737 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8738         * client-src/amandad.c (service_new): Pass the "amandad" argument to
8739                                               the service.
8740
8741 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8742         * common-src/bsd-security.c: Allow to run many services on the same
8743                                      client. Cleanup.
8744         * common-src/rsh-security.c: Ditto.
8745         * common-src/ssh-security.c: Ditto.
8746
8747 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8748         * common-src/security.h (security_stream_read_sync): Prototype.
8749         * common-src/bsd-security.c (bsd_stream_read_sync): New function.
8750         * common-src/krb4-security.c (krb4_stream_read_sync): New function.
8751         * common-src/krb5-security.c (krb5_stream_read_sync): New function.
8752         * common-src/rsh-security.c (rsh_stream_read_sync): New function.
8753         * common-src/ssh-security.c (ssh_stream_read_sync): New function.
8754
8755 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8756         * client-src/amandad.c: Open pipe in both direction to the services.
8757         * client-src/sendbackup.c: Deal with the newer pipe.
8758
8759 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8760         * client-src/clientconf.c: New file to read the client configuration
8761                                    file.
8762         * client-src/clientconf.h: Header.
8763         * client-src/Makefile.am: Link clientconf into libamclient.
8764         * configure.in (AC_CONFIG_FILES): example/amanda-client.conf.
8765         * docs/amanda-client.conf.5.txt: New documentation.
8766         * docs/Makefile.am (pkgdata_DATA): amanda-client.conf.5.txt.
8767         * example/amanda-client.conf.in: exemple.
8768         * example/Makefile.am  (noinst_DATA): amanda-client.conf.
8769         * man/entities/global.entities: amclientconf.
8770         * man/Makefile.am (COMMON_MAN5_PAGES): amanda-client.conf.5.
8771         * man/xml-source/amanda.8.xml (SEE ALSO): amanda-client.conf(5).
8772         * man/xml-source/amanda.conf.5.xml (SEE ALSO): amanda-client.conf(5).
8773         * man/xml-source/amrecover.8.xml (SEE ALSO): amanda-client.conf(5).
8774
8775 2006-04-26  K. K. George<kkg@zmanda.com>
8776         * server-src/reporter.c: Fix to untaint the mailto parameter.
8777         * server-src/amcheck.c: Fix to untaint the mailto parameter
8778         * changer-src/chg-scsi.c: Fix to untaint the mailto parameter.
8779         * changer-src/chg-scsi-chio.c: Fix to untaint the mailto parameter.
8780         * common-src/util.h: Added function to check if the mailto 
8781           parameter is untainted
8782         * common-src/util.c: Added function to check if the mailto 
8783           parameter is untainted
8784
8785 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
8786         * common-src/event.c(event_wait): New function.
8787         * common-src/event.h(event_wait): prototype.
8788         * docs/eventapi.txt: Document event_wait.
8789
8790 2006-04-24  Jean-Louis Martineau <martineau@zmanda.com>
8791         * server-src/planner.c: Fix divide by zero if runtapes==0.
8792
8793 2006-04-24  K. K. George<kkg@zmanda.com>
8794         * server-src/reporter.c: Fix to make the mailto parameter in
8795           amanda.conf optional. Added two more commandline options
8796           -i & -Maddress.
8797         * server-src/amcheck.c: Fix to make the mailto parameter in
8798           amanda.conf optional.
8799         * man/xml-source/amreport.8.xml: Modified to document the
8800           -i & -Maddress commandline parameters
8801         * docs/amreport.8.txt: Modified to document the
8802           -i & -Maddress commandline parameters
8803         * changer-src/chg-scsi.c: Fix to make the mailto parameter in
8804           amanda.conf optional.
8805         * changer-src/chg-scsi-chio.c: Fix to make the mailto parameter in
8806           amanda.conf optional.
8807
8808 2006-04-23  Jean-Louis Martineau <martineau@zmanda.com>
8809         * server-src/driver.c (handle_chunker_result): make sure that
8810                                                        est_size > act-size.
8811
8812 2006-04-21  Jean-Louis Martineau <martineau@zmanda.com>
8813         * server-src/changer.c (changer_command): Make sure fd[0] != 1.
8814
8815 2006-04-19  Jean-Louis Martineau <martineau@zmanda.com>
8816         * restore-src/amidxtaped.c: Cleanup.
8817
8818 2006-04-19  Ian Turner <ian@zmanda.com>
8819         * tape-src/output-tape.c: Do a more thourough check to ensure 
8820           that we actually got a tape device, before proceeding to use 
8821           it.
8822
8823 2006-04-18  Ian Turner <ian@zmanda.com>
8824         * changer-src/chg-disk.sh.in: Check that the virtual device is a 
8825           directory with proper permissions.
8826         * server-src/changer.c: Do the right thing (failure) if there is 
8827           a problem with the changer.
8828
8829 2006-04-18  Ian Turner <ian@zmanda.com>
8830         * recover-src/uscan.l: Accept setdate of the form
8831           yyyy-MM-dd-hh-mm in addition to yyyy-MM-dd-hh-mm-ss.
8832         * man/xml-source/amrecover.8.xml: Document this change.
8833
8834 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
8835         * recover-src/help.c: Document setdate YYYY-MM-DD-HH-MM-SS format.
8836         * man/xml-source/amrecover.8.xml: Ditto.
8837
8838 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
8839         * client-src/amandad.c: Use %p to printf pointer.
8840
8841 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
8842         * server-src/amtape.c: Add update command.
8843
8844 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
8845         * server-src/taper.c: log_add(L_WARNING) the output of taper_scan if
8846                                no valid tape are found.
8847
8848 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
8849         * server-src/amcheck.c: Call taper_scan with
8850                 (..., FILE_taperscan_output_callback,outf) arguments.
8851         * server-src/amtape.c:  Call taper_scan with
8852                 (..., FILE_taperscan_output_callback,stderr) arguments.
8853         * server-src/taper.c:   Call taper_scan with
8854                 (..., CHAR_taperscan_output_callback, &error_msg) arguments.
8855         * server-src/taperscan.h(FILE_taperscan_output_callback,
8856                                  CHAR_taperscan_output_callback): Protoype.
8857         * server-src/taperscan.h(taper_scan): New protoype, remove
8858           error_message arg, add taperscan_output_callback and data arg.
8859         * server-src/taperscan.c(FILE_taperscan_output_callback): Callback
8860           that print the msg to it's arg, which is FILE*.
8861         * server-src/taperscan.c(CHAR_taperscan_output_callback): Callback
8862           that append the msg to it's arg, which is char*.
8863         * server-src/taperscan.c(taper_scan): Fix for new arguments.
8864         * server-src/taperscan.c(changer_taper_scan): Fix for new arguments.
8865
8866 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
8867         * man/xml-source/amanda.conf.5.xml: Document amandad_path and
8868                                             client_username dumptype option.
8869
8870 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
8871         * common-src/krb4-security.c: Increase timeout to 60 seconds.
8872         * common-src/rsh-security.c: Increase timeout to 60 seconds.
8873         * common-src/ssh-security.c: Increase timeout to 60 seconds.
8874
8875 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
8876         * server-src/conffile.c: New configuration option usetimestamps.
8877         * server-src/conffile.h: New configuration option usetimestamps.
8878         * example/amanda.conf.in: Document new usetimestamps options.
8879         * man/xml-source/amanda.conf.5.xml: Document new usetimestamps options.
8880         * server-src/amflush.c: Use datestamp or timestamp depending of
8881                                 usetimesstamps.
8882         * server-src/planner.c: Use datestamp or timestamp depending of
8883                                 usetimesstamps.
8884         * server-src/driver.c: Log an ERROR if many run a day and
8885                                usetimestamps us set to no.
8886
8887 2006-04-07  Ian Turner <ian@zmanda.com>
8888         * server-src/changer.c: Don't crash if we go to taperscan "Plan 
8889           B".
8890
8891 2006-04-07  Ian Turner <ian@zmanda.com>
8892         * server-src/changer.c: Only print changer debug messages if 
8893           there was a problem.
8894
8895 2006-04-07  Ian Turner <ian@zmanda.com>
8896         * recover-src/amrecover.c: Print a more helpful command if mount
8897           point autodetection fails.
8898         * recover-src/display_commands.c: Print a more helpful message
8899           if the user tries to ls without having setdisk earlier.
8900
8901 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
8902         * server-src/amadmin.c: Fix use of datestamp as int.
8903         * server-src/find.c: Ditto.
8904         * server-src/reporter.c: Ditto.
8905         * server-src/tapefile.c: Ditto.
8906
8907 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
8908         * common-src/Makefile.am: Fix dependency between genversion and
8909                                   versuff.o.
8910
8911 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
8912         * recover-src/amrecover.c: Change initialization of server_name and
8913                                    tape_server_name.
8914
8915 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
8916         * restore-src/amrestore.c: reset count_error to 0 on a restore.
8917
8918 2006-04-06  Kevin Till <ktill@zmanda.com>
8919         * server-src/Makefile.am: always install planner/dumper setuid-root
8920         * server-src/amcheck.c:   check planner/dumper for setuid-root
8921         * server-src/dumper.c:    drop privilege asap. Switch between bsd 
8922           and ssh auth is now possible with the same installation.
8923         * server-src/planner.c:   ditto
8924
8925 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
8926         * server-src/taperscan.c (changer_taper_scan): Pass a pointer to the
8927           changer_loadslot call.
8928
8929 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
8930         * server-src/tapefile.c (lookup_last_reusable_tape): Fix a datestamp
8931           test with an int.
8932
8933 2006-04-06  Ian Turner <vectro@vectro.org>
8934         * recover-src/amrecover.c (main): Check AMANDA_SERVER and 
8935           AMANDA_TAPE_SERVER environment variables before falling back 
8936           to compiled-in defaults. Document this new behavior. Thanks to 
8937           Malcolm Locke <malc@hoodee.co.uk> for the idea and patch.
8938
8939 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
8940         * server-src/reporter.c (handle_chunk): CHUNK line always have the
8941           datestamp.
8942
8943 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
8944         * server-src/krb5-security.c: Fix for krb5_connect call in
8945            open_callback.
8946
8947 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
8948         * server-src/driver.c (start_some_dumps): Recover correctly if the
8949           chunker reply with something that is not a PORT command.
8950         * server-src/driver.c (dump_to_tape): remove duplicate free_serial.
8951         * server-src/driverio.c: Improve debugging.
8952
8953 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
8954         * common-src/tapelist.c(unmarshal_tapelist_str): Fix
8955           "value computed is not used" compiler warning.
8956
8957 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
8958         * common-src/bsd-security.c (bsd_connect): New datap argument.
8959         * common-src/krb4-security.c (krb4_connect): New datap argument.
8960         * common-src/krb5-security.c (krb5_connect): New datap argument.
8961         * common-src/rsh-security.c (rsh_connect): New datap argument,
8962                  retrieve amanda_path and client_username from configuration.
8963         * common-src/ssh-security.c (ssh_connect): New datap argument,
8964                 retrieve amanda_path and client_username from configuration.
8965         * common-src/protocol.c: Pass new datap argument to security_connect.
8966         * common-src/security.h(connect): New prototype.
8967         * common-src/security.h(security_connect): Add datap to macro.
8968         * server-src/amadmin.c(disklist_one): Print amandad_path and
8969                                               client_username.
8970         * server-src/conffile.c(AMANDAD_PATH, CLIENT_USERNAME): Parse new
8971                                 dumptype option.
8972         * server-src/conffile.h(dumptype_t): Add amandad_path and
8973                                              client_username.
8974         * server-src/diskfile.c(parse_diskline): Copy new field.
8975         * server-src/diskfile.h(disk_t) Add amandad_path and client_username.
8976         * server-src/driverio.c(dumper_cmd): Send dp->amandad_path and
8977           dp->client_username in a PORT_DUMP command to the dumper.
8978         * server-src/dumper.c: Parse amandad_path and client_username in a
8979                                PORT_DUMP command.
8980         * server-src/dumper.c(dumper_get_security_conf): New function to return
8981                                 configuration option to the security-api.
8982         * server-src/dumper.c: Use dumper_get_security_conf for the callback
8983                                to protocol_sendreq.
8984         * server-src/planner.c Use amhost_get_security_conf for the callback
8985                                to protocol_sendreq.
8986         * server-src/amcheck.c: Use amhost_get_security_conf for the callback
8987                                 to protocol_sendreq.
8988         * server-src/server_util.c(amhost_get_security_conf): New function to
8989                         return configuration option to the security-api,
8990                         it expect an am_host_t arg.
8991         * server-src/server_util.h(amhost_get_security_conf): Prototype.
8992
8993 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
8994         * server-src/amstatus.pl.in: Remove duplicate instruction.
8995
8996 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
8997         * server-src/amindexd.c: Remove all code that set str_buffer_size,
8998                                  rename str_buffer_size to reply_buffer_size,
8999                                  rename buf to reply_buffer,
9000         * server-src/amindexd.c(reply, lreply_backend): Increase reply_buffer
9001                                                         size if required.
9002
9003 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9004         * common-src/amfeatures.h: Add fe_amrecover_timestamp amfeature.
9005         * common-src/amfeatures.c (am_init_feature_set):
9006                                                  Add fe_amrecover_timestamp.
9007         * server-src/amindexd.c(opaque_ls_one): New function.
9008         * server-src/amindexd.c(disk_history_list,opaque_ls_one): Send only a
9009           datestamp if client doesn't have fe_amrecover_timestamp.
9010
9011 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9012         * recover-src/uscan.l: Parse "setdate YYYY-MM-DD-HH-MM-SS".
9013         * server-src/amindexd.c (cmp_date): New function to cmp datestamp with
9014                                             timestamp, use it where needed.
9015         * server-src/amindexd.c (amindexd_nicedate): Fix for timestamp.
9016         * server-src/amtrmidx.c: Fix for timestamp.
9017         * server-src/disk_history.h (DUMP_ITEM): Increase size of date.
9018
9019 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9020         * server-src/amflush.c: Send DATE line to driver, use timestamp.
9021         * server-src/amindex.c (getindexfname): Increase datebuf size.
9022         * server-src/amtrmlog.c: Fix bug with date_keep computation if
9023                                  dumpcycle is INF.
9024         * server-src/amtrmlog.c: rotate timestamped log file.
9025         * server-src/chunker.c: Receive START cmd, use timestamp.
9026         * server-src/driver.c: Receive DATE line, send START cmd to chunker,
9027                                use timestamp.
9028         * server-src/driverio.c (startup_dump_processes): Send START cmd to
9029                                                           dumper.
9030         * server-src/driverio.c (dumper_cmd, chunker_cmd): Send START command.
9031         * server-src/driverio.h (startup_dump_processes): Prototype change,
9032                                                           need the timestamp.
9033         * server-src/dumper.c: Receive START cmd, use timestamp.
9034         * server-src/find.c (find_nicedate): Fix for timestamp.
9035         * server-src/planner.c: Send DATE line to driver, use timestamp.
9036         * server-src/server_util.c (cmdstr): Add START.
9037         * server-src/server_util.h (cmd_t): Add START.
9038         * server-src/taper.c: Get timestamp from TAPER_START command.
9039
9040 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9041         * server-src/amindexd.c (amindexd_nicedate): New function.
9042         * server-src/find.h (struct find_result_s): Remove datestamp and
9043                  datestamp_aux field, only timestamp will be used.
9044         * restore-src/amfetchdump.c: Convert datestamp to 'char *'.
9045         * restore-src/restore.c: Convert datestamp to 'char *'.
9046         * server-src/amindexd.c: Convert datestamp to 'char *'.
9047         * server-src/amlabel.c: Convert datestamp to 'char *'.
9048         * server-src/amtrmidx.c: Convert datestamp to 'char *'.
9049         * server-src/find.c: Convert datestamp to 'char *'.
9050         * server-src/reporter.c: Convert datestamp to 'char *'.
9051         * server-src/tapefile.c: Convert datestamp to 'char *'.
9052         * server-src/tapefile.h: Convert datestamp to 'char *'.
9053         * server-src/taper.c: Convert datestamp to 'char *'.
9054
9055 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9056         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b1).
9057
9058 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
9059         * server-src/driver.c: Change expression to remove overflow.
9060
9061 2006-03-29  Jean-Louis Martineau <martineau@zmanda.com>
9062         * client-src/calcsize.c: Don't use declaration after instruction,
9063           older compiler don't accept it.
9064
9065 2006-03-23  Jean-Louis Martineau <martineau@zmanda.com>
9066         * Amanda 2.5.0 released.
9067         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0).
9068         * NEWS: Update for 2.5.0
9069
9070 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
9071         * server-src/dumper.c: wait for compress/index/encryp subprocess.
9072
9073 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
9074         * server-src/amstatus.pl.in: Parse PARTIAL reply.
9075
9076 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
9077         * server-src/driver.c: Put '#define HOLD_DEBUG' in comment.
9078
9079 2006-03-21  Jean-Louis Martineau <martineau@zmanda.com>
9080         * server-src/chunker.c: Don't loop on startup_chunker.
9081         * server-src/dumper.c: Don't wait for all children, some process (ssh)
9082           might not terminate.
9083
9084 2006-03-17  Ian Turner <ian@zmanda.com>
9085         * server-src/taper.c (read_file): When finished flushing a 
9086           chunked dump, print information about the whole dump, not just 
9087           the last chunk. Also, fix some memory leaks.
9088
9089 2006-03-16  Kevin Till <ktill@zmanda.com>
9090         * server-src/amverify.sh.in: check for EOI. amrestore only 
9091           reports EOI for some tapetypes.
9092
9093 2006-03-15  Jean-Louis Martineau <martineau@zmanda.com>
9094         * server-src/conffile.c: Fix heritage of auth.
9095
9096 2006-03-14  Kevin Till <ktill@@zmanda.com>
9097         * example/amanda.conf.in: add dumptype custom-compress. 
9098           add ssh,krb5 as valid input for auth. 
9099         * man/xml-source/amanda.conf.5.xml: give reference to 
9100           custom-compress, encrypt-fast dumptypes.
9101
9102 2006-03-14  Jean-Louis Martineau <martineau@zmanda.com>
9103         * common-src/amfeatures.h: Rename fe_amidxtaped_FEEDME to
9104                                           fe_amrecover_FEEDME
9105         * common-src/amfeatures.c (am_init_feature_set): Set
9106                                                          fe_amrecover_FEEDME.
9107         * restore-src/restore.h (search_tapes): Add their_features parameter.
9108         * restore-src/amfetchdump.c: Add NULL pointer to search_tapes call.
9109         * restore-src/amidxtaped.c: Add their_features to search_tapes call.
9110         * restore-src/restore.c (search_tapes): Send FEEDME only if client
9111                                                 support it.
9112
9113 2006-03-11  Jean-Louis Martineau <martineau@zmanda.com>
9114         * server-src/driverio.c : Fix errors found using Coverity tools.
9115
9116 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
9117         * server-src/taperscan.c: Fix Coverity fix.
9118
9119 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
9120         * changer-src/scsi-changer-driver.c:
9121                                          Fix errors found using Coverity tools.
9122         * server-src/diskfile.c: Fix errors found using Coverity tools.
9123         * server-src/planner.c: Fix errors found using Coverity tools.
9124         * server-src/taperscan.c: Fix errors found using Coverity tools.
9125
9126 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
9127         * server-src/driverio.c: Undo my bad fix.
9128         * server-src/infofile.c: Fix errors found using Coverity tools.
9129         * tape-src/tapetype.c: Fix errors found using Coverity tools.
9130
9131 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
9132         * restore-src/restore.c: Fix errors found using Coverity tools.
9133
9134 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
9135         * server-src/holding.c: Fix errors found using Coverity tools.
9136
9137 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
9138         * server-src/driverio.c: Fix errors found using Coverity tools.
9139         * server-src/planner.c: Fix errors found using Coverity tools.
9140
9141 2006-03-09  John Franks <jrfranks@zmanda.com>
9142         * changer-src/chg-scsi.c:        Fix errors found using Coverity tools.
9143         * changer-src/scsi-changer-driver.c:
9144                                          Fix errors found using Coverity tools.
9145         * changer-src/sense.c:           Fix errors found using Coverity tools.
9146         * client-src/sendbackup-dump.c:  Fix errors found using Coverity tools.
9147         * client-src/sendbackup.c:       Fix errors found using Coverity tools.
9148         * recover-src/display_commands.c:Fix errors found using Coverity tools.
9149         * regex-src/regcomp.c:           Fix errors found using Coverity tools.
9150         * restore-src/restore.c:         Fix errors found using Coverity tools.
9151         * server-src/amindexd.c:         Fix errors found using Coverity tools.
9152         * server-src/diskfile.c:         Fix errors found using Coverity tools.
9153         * server-src/driver.c:           Fix errors found using Coverity tools.
9154         * server-src/driverio.c:         Fix errors found using Coverity tools.
9155         * server-src/infofile.c:         Fix errors found using Coverity tools.
9156         * server-src/planner.c:          Fix errors found using Coverity tools.
9157         * server-src/taper.c:            Fix errors found using Coverity tools.
9158         * server-src/taperscan.c:        Fix errors found using Coverity tools.
9159         * server-src/conffile.c:         Change report default to use at least
9160                                          one space between every column.
9161
9162 2006-03-08  Jean-Louis Martineau <martineau@zmanda.com>
9163         * client-src/amandad.c: Fix coverity bug.
9164         * client-src/calcsize.c: Fix coverity bug.
9165         * client-src/client_util.c: Fix coverity bug.
9166         * client-src/sendbackup.c: Fix coverity bug.
9167         * client-src/sendsize.c: Fix coverity bug.
9168         * common-src/bsd-security.c: Fix coverity bug.
9169         * common-src/file.c: Fix coverity bug.
9170         * common-src/fileheader.c: Fix coverity bug.
9171         * common-src/pipespawn.c: Fix coverity bug.
9172         * recover-src/extract_list.c: Fix coverity bug.
9173         * restore-src/restore.c: Fix coverity bug.
9174         * server-src/amindexd.c: Fix coverity bug.
9175         * server-src/conffile.c: Fix coverity bug.
9176         * server-src/diskfile.c: Fix coverity bug.
9177         * server-src/driverio.c: Fix coverity bug.
9178         * server-src/dumper.c: Fix coverity bug.
9179         * server-src/planner.c: Fix coverity bug.
9180         * server-src/reporter.c: Fix coverity bug.
9181
9182 2006-03-07  Paddy Sreenivasan <paddy@zmanda.com>
9183         * man/xml-source/amanda.8.xml: added amaespipe and amcrypt.
9184
9185 2006-03-07  Jean-Louis Martineau <martineau@zmanda.com>
9186         * server-src/taper.c: Don't log a multi-line message in no-tape case.
9187
9188 2006-03-06  John Franks <jrfranks@zmanda.com>
9189         * recover-src/extract_list.c:
9190           1) Don't add '.' directory twice to tar extract list.
9191           2) Don't prepend extra '/' to extract patterns starting with '/'.
9192           3) Convert "/" extract pattern to "*" equivalent.
9193
9194 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
9195         * server-src/taperscan.c (scan_slot): append slotstr to
9196           ct->error_message.
9197         * server-src/taperscan.c: Add a '\n' after each slot error message.
9198
9199 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
9200         * server-src/reporter.c (handle_error): Handle error from taper.
9201
9202 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
9203         * server-src/taper.c (label_tape): Set errstr and return 0 if no
9204           valid tape are available.
9205
9206 2006-03-03  Ian Turner <ian@zmanda.com>
9207         * common-src/amanda.h: New macros MAX_TAPE_LABEL_LEN and 
9208           MAX_TAPE_LABEL_BUF.
9209         * common-src/amfeatures.h: New amfeature fe_amidxtaped_FEEDME
9210         * recover-src/extract_list.c: Accept port number with CONNECT; 
9211           implement fe_amidxtaped_FEEDME.
9212         * restore-src/amidxtaped.c: Introduce port number with CONNECT. 
9213           (closes SF bug 1431623)
9214         * restore-src/restore.c: Implement fe_amidxtaped_FEEDME.
9215           (closes SF bug 1421433)
9216         * restore-src/restore.h: Properly name rst_flags.
9217
9218 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
9219         * common-src/bsd-security.c (bsd_connect, netfd_read_callback, main):
9220           Set bh->proto_handle to NULL after allocating bh.
9221         * common-src/bsd-security.c (bsd_close): Donothing if
9222           bh->proto_handle == NULL.
9223
9224 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
9225         * common-src/protocol.c (s_repwait): Decrease p->timeout on receive
9226                                              of a PREP.
9227
9228 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
9229         * server-src/driver.c: Print dumper TRY_AGAIN message.
9230
9231 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
9232         * server-src/planner.c: Don't print estimate size if estimate failed.
9233
9234 2006-02-25  Ian Turner <ian@zmanda.com>
9235         * man/Makefile.am: Don't use static patterns (as they are not 
9236           portable), use implicit rules instead.
9237
9238 2006-02-20  Kevin Till <ktill@zmanda.com>
9239         * common-src/krb4-security.c: changes needed for krb4/5 to compile. Thanks to
9240                                       Orion Poplawski.
9241         * common-src/krb5-security.c: ditto.
9242
9243 2006-02-16  Kevin Till <ktill@zmanda.com>
9244         * example/amanda.conf.in: dumptype option is "encrypt"
9245         * man/xml-source/amanda.conf.5.xml: ditto
9246         * server-src/holding.c: util.h is include'd twice
9247         * common-src/ssh-security.c: set correct debug print 
9248
9249 2006-02-10  Kevin Till <ktill@zmanda.com>
9250         * man/xml-source/amanda.8.xml: replace informaltable with literallayout 
9251
9252 2006-02-13  John Franks <jrfranks@zmanda.com>
9253         * server-src/driver.c: Pring a more precise message when taper
9254           returns an error.  Include error message from taper in log.
9255           Print out "protocol error" if taper returns a bogus command.
9256
9257 2006-02-10  Kevin Till <ktill@zmanda.com>
9258         * man/xml-source/amanda.conf.5.xml: add note about first character of a 
9259                         tapetype string must be alphabet
9260
9261 2006-02-10  John Franks <jrfranks@zmanda.com>
9262         * server-src/taper.c: Call error() if an invalid string is read
9263           by syncpipe_getstr().
9264  
9265 2006-02-09  John Franks <jrfranks@zmanda.com>
9266         * Makefile.am, */Makefile.am:  Corrections generated by David Braun
9267           dustybird@users.sourceforge.net to properly set source directories
9268           for remote (VPATH) builds.
9269         * man/Makefile.am:  Fixed man page builds to use proper source and
9270           build paths.
9271         * autogen: Force rebuilding everything and print only syntax errors.
9272           (Errors are seen occasionally in system autogen files...)
9273         * configure.in: Eliminate possibility of empty string in shell tests.
9274           fix quoting of '[' and ']' characters in help messages.
9275           Fix default value for DUMPER_DIR to pick up EPREFIX correctly.
9276  
9277 2006-02-08  Ian Turner <ian@zmanda.com>
9278         * server-src/driver.c (handle_taper_result): Properly handle 
9279           SPLIT_NEEDNEXT case. Thanks to Josef Wolf for finding this bug.
9280           Also reindent.
9281
9282 2006-02-06 Kevin Till <ktill@zmanda.com> 
9283         * restore-src/restore.c: fix comment formatting on version 1.2.1
9284
9285 2006-02-06 Kevin Till <ktill@zmanda.com>
9286         * configure.in: Bug 1423731, SSH_SECURITY set only when --with-ssh-security used
9287         * server-src/Makefile.am:: not to install planner/dumper setuid-root --with-ssh-security
9288         * server-src/amcheck.c:    ditto
9289         * server-src/dumper.c:     ditto
9290         * restore-src/restore.c:    add missing "}"
9291         
9292 2006-02-06  Ian Turner <ian@zmanda.com>
9293         * restore-src/amidxtaped.c: Properly handle changers, 
9294           tape-label checking, and tape prompting in amrecover, 
9295           amindexd, and amidextaped. Thanks to Paul Bijnens 
9296           <pbijnens@users.sourceforge.net> for the patch.
9297         * restore-src/restore.c: ditto.
9298         * server-src/amindexd.c: ditto.
9299
9300 2006-02-04  Paddy Sreenivasan <paddy@zmanda.com>
9301         * man/xml-source/amfetchdump.8.xml
9302         * man/xml-source/amcrypt.8.xml
9303         * man/xml-source/amanda.conf.5.xml
9304         * man/xml-source/amanda.8.xml
9305         * man/xml-source/amaespipe.8.xml
9306         * man/entities/global.entities: Merged changes from xml-docs tree
9307
9308 2006-02-03  John Franks <jrfranks@zmanda.com>
9309         * server-src/taper.c: Fix null string printout in CHUNKERSUCCESS log line.
9310
9311 2006-02-03  Ian Turner <ian@zmanda.com>
9312         * server-src/amadmin.c (main): Don't free conf_tapelist too 
9313           early. Thanks to Cédric Lucantis
9314           <cedric-lucantis@users.sourceforge.net> for the patch.
9315
9316 2006-02-02 Kevin Till <ktill@zmanda.com>
9317         * man/xml-source/amanda.8.xml: fix formatting. <informaltable> problem 
9318                                        to be fixed.
9319         * man/xml-source/amrecover.8.xml: add note on client-encrypted tapes.
9320
9321 2006-02-02  Ian Turner <ian@zmanda.com>
9322         * recover-src/extract_list.c (extract_files_child): Run tar with 
9323           --numeric-owner if we are extracting a non-sambafied tar file. 
9324           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for 
9325           the patch. Thanks also to Mark Schaefer for suggesting this 
9326           change.
9327
9328 2006-02-01  Jean-Louis Martineau <martineau@zmanda.com>
9329         * restore-src/restore.c: Use OFF_T_FMT to printf off_t variable,
9330           cast size_t to am64_t and use AM64_FMT to printf them.
9331
9332 2006-01-31  Jean-Louis Martineau <martineau@zmanda.com>
9333         * server-src/driver.c (dumper_result): Reset sched(dp)->attempted to 0
9334           before adding it to tapeq.
9335
9336 2006-01-27  Ian Turner <ian@zmanda.com>
9337         * configure.in: Add new option --without-xsltproc (and
9338           --with-xsltproc), which turns off (or forces) the use of xsltproc to
9339           build manpages. Thanks to Paul Bijnens
9340           <pbijnens@users.sourceforge.net> for suggesting this feature.
9341
9342 2006-01-27  Ian Turner <ian@zmanda.com>
9343         * restore-src/amfetchdump.c: Properly clean up logfiles. Also, 
9344           run as user amanda even if we are started as some other user.
9345           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for the 
9346           patch.
9347
9348 2006-01-25  Paddy Sreenivasan <paddy@zmanda.com>
9349         * common-src/amanda.h:     Removed unnecessary header include files.
9350
9351 2006-01-25  Kevin Till<ktill@zmanda.com>
9352         * server-src/amadmin.c: fix for sourceforge bug 1412698
9353                                 add missing parameters to "amadmin x disklist"
9354         * server-src/amstatus.pl.in: untaint user input, enforce known path.
9355         * server-src/amoverview.pl.in: untaint user input (bug 1353481)
9356
9357 2006-01-25  Kevin Till<ktill@zmanda.com>
9358         * man/xml-source/amanda.conf.5.xml: fix formatting (<para> is not compatible 
9359                                             with some tag) add supported auth types.
9360
9361 2006-01-25  Kevin Till<ktill@zmanda.com>
9362         * common-src/bsd-security.c: move check_security to bsd_security.c, 
9363                                      fix faulty return
9364                                      Thanks to Paul Bijnens
9365         * restore-src/amidxtaped.c:  ditto
9366         * server-src/amindexd.c:     ditto and no need to tell client 
9367                                      about reason for denial
9368         * common-src/amanda.h:       add proto of check_security
9369         * server-src/conffile.c:     don't list CRYPT in the summary report 
9370                                      for now
9371         * restore-src/restore.c:     set outfd correctly for amfetchdump cases
9372                                      Thanks to Paul Bijnens
9373
9374 2006-01-24  Ian Turner <ian@zmanda.com>
9375         * man/xml-source/amanda.conf.5.xml: Put documentation of 
9376           split-dump options in the right place. Thanks to Paul Bijnens 
9377           <pbijnens@users.sourceforge.net> for the fix.
9378         * man/xml-source/amanda.8.xml: ditto.
9379
9380 2006-01-23  Ian Turner <ian@zmanda.com>
9381         * server-src/taperscan.c (find_brand_new_tape_label): Start 
9382           brand new tape labels at 1 instead of 0. Thanks to Paul 
9383           Bijnens <pbijnens@users.sourceforge.net> for the fix.
9384
9385 2006-01-18  Jean-Louis Martineau <martineau@zmanda.com>
9386         * Amanda 2.5.0b2 released.
9387         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b2).
9388         * NEWS: Update for 2.5.0b2
9389         
9390 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
9391         * server-src/disk_history.c: Fix memory leak.
9392
9393 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
9394         * common-src/bsd-security.c: Fix memory leak.
9395         * common-src/tapelist.c: Fix memory leak.
9396         * restore-src/amidxtaped.c: Fix memory leak.
9397         * restore-src/restore.c: Fix memory leak.
9398         * server-src/amindexd.c: Fix memory leak.
9399         * server-src/conffile.c: Fix memory leak.
9400         * server-src/disk_history.c: Fix memory leak.
9401         * server-src/find.c: Fix memory leak.
9402
9403 2006-01-13  John Franks <jrfranks@zmanda.com>
9404         * client-src/amandad.c:      Remove SO_LINGER and TCP_NDELAY.
9405                                      Loop on I/O if EINTR or EAGAIN.
9406         * client-src/noop.c:         Loop on I/O if EINTR or EAGAIN.
9407         * client-src/sendbackup.c:   Remove SIGPIPE handler.
9408                                      Loop on I/O if EINTR or EAGAIN.
9409                                      Check for EPIPE on writes.
9410         * common-src/bsd-security.c: Loop on I/O if EINTR or EAGAIN.
9411         * common-src/stream.c:       Remove SO_LINGER and TCP_NDELAY.
9412         * common-src/util.c:         Loop on I/O if EINTR or EAGAIN.
9413         * recover-src/amrecover.c:   Write commanda atomically in sigint handler
9414         * recover-src/extract_list.c:Remove SIGPIPE handler.
9415                                      Loop on I/O if EINTR or EAGAIN.
9416                                      Check for EPIPE on writes.
9417                                      Remove shutdown functions.
9418         * restore-src/amfetchdump.c: Remove SIGPIPE handler.
9419         * restore-src/amidxtaped.c:  Remove SO_LINGER and TCP_NDELAY.
9420                                      Remove SIGPIPE handler.
9421                                      read_file_header does not return if it
9422                                      Fix infinite loop on EOF or error and
9423                                      fail if memory reallocation failure in
9424                                      get_client_line_fd.
9425         * restore-src/restore.c:     Remove SIGPIPE handler.
9426                                      Loop on I/O if EINTR or EAGAIN.
9427                                      Remove shutdown functions.
9428                                      Simplify read loop.
9429         * restore-src/restore.h:     Change read_file_header to return void
9430         * server-src/amcheck.c:      Use fullread() to handel EINTR etc.
9431                                      Remove unused variable.
9432         * server-src/changer.c:      Remove SO_LINGER and TCP_NDELAY.
9433                                      Use fullwrite on socket.
9434         * server-src/driverio.c:     Remove SO_LINGER and TCP_NDELAY.
9435         * server-src/taper.c:        Use fullwrite() to write data.
9436                                      Use fullread() to read data.
9437         * tape-src/output-file.c;    Use fullwrite() to write data.
9438
9439 2006-01-13  Jean-Louis Martineau <martineau@zmanda.com>
9440         * server-src/amcheck.c (start_server_check): Remove unused variable
9441           errstr.
9442         * restore-src/restore.c (restore): Remove unused variable s, l and
9443           dataeof.
9444
9445 2006-01-12  Jean-Louis Martineau <martineau@zmanda.com>
9446         * recover-src/extract_list.c (send_to_tape_server): Do only on write.
9447         * restore-src/amidxtaped.c (get_client_line_fd): New function to read
9448           one complete line from an fd.
9449
9450 2006-01-09  John Franks <jrfranks@zmanda.com>
9451         * common-src/amanda.h:  Include tcp.h
9452         * client-src/amandad.c: Set TCP_NODELAY and SO_LINGER on sockets.
9453         * common-src/dgram.c:   No linger on datagrams
9454         * common-src/stream.c:  Set TCP_NODELAY and SO_LINGER on sockets.
9455         * common-src/util.c:    Fix fullwrite to return # of bytes written
9456                                 before failure.
9457         * example/amanda.conf.in: Cleanup exclude list template.
9458                                 Use configure directlries instead of /usr/local
9459         * recover-src/extract_list.c: Cleanup read loops.
9460                                 Use real fullwrite instead of inline versions.
9461                                 Remove extra setting of LINGER on socket.
9462         * restore-src/amidxtaped.c: Set TCP_NODELAY and SO_LINGER on sockets.
9463         * restore-src/restore.c:Use real fullwrite instead of inline versions.
9464         * server-src/changer.c: Set TCP_NODELAY and SO_LINGER on sockets.
9465         * server-src/chunker.c: Use real fullwrite instead of inline versions.
9466         * server-src/driverio.c:Set TCP_NODELAY and SO_LINGER on sockets.
9467         * server-src/dumper.c:  Use real fullwrite instead of inline versions.
9468
9469 2006-01-09  Ian Turner <ian@zmanda.com>
9470         * changer-src/scsi-changer-driver.c: If there is a problem opening
9471           the device during GenericRewind, don't retry for 201 minutes; give
9472           up after only 200 seconds.
9473
9474 2006-01-09  Ian Turner <ian@zmanda.com>
9475         * server-src/taperscan.c: When doing taper-scan algorithm, properly
9476           accept new tapes.
9477
9478 2006-01-09  Ian Turner <ian@zmanda.com>
9479         * tape-src/tapeio.c: Generate a more reasonable message when
9480         reading an empty tape label on brand-new tapes.
9481
9482 2006-01-09  Ian Turner <ian@zmanda.com>
9483         * server-src/amcheck.c: Actually do what the documentation for 
9484           amcheck -w says; that is, overwrite labels on tapes.
9485
9486 2006-01-06  Kevin Till<ktill@zmanda.com>
9487         * server-src/amcheck.c: check if encrypt or compress program is 
9488           executable. Check encrypt/compress configuration.
9489         * server-src/dumper.c: kill encrypt child when dump is stopped
9490         * server-src/amcrypt.sh.in: check for aespipe
9491         * server-src/amaespipe.sh.in: adjust PATH
9492         * man/xml-source/amtapetype.8.xml: fix format problem.
9493
9494 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
9495         * recover-src/extract-list.c: Remove 'U' argument for gtar extraction.
9496
9497 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
9498         * restore-src/restore.c (flush_open_outputs): Another shutdown is
9499           required.
9500
9501 2006-01-05  John Franks <jrfranks@zmanda.com>
9502         * recover-src/extract_list.c: Extend linger timeouts to 60 seconds.
9503           Use shutdown() on sockets.
9504           Retry reads in case of EINTR or EAGAIN.
9505         * common-src/stream.c: set linger on correct socket.
9506           Extend linger timeouts to 60 seconds.
9507         * restore-src/restore.c: Fix compiler warnings.
9508         * Call shutdown in more cases.
9509
9510 2006-01-05  John Franks <jrfranks@zmanda.com>
9511         * client-src/amandad.c: Set SO_LINGER on sockets.
9512         * common-src/dgram.c:   Set SO_LINGER on sockets.
9513         * common-src/stream.c:  Set SO_LINGER on sockets.
9514         * common-src/util.c:    Return any bytes already read on error or EOF.
9515         * recover-src/extract_list.c: Set SO_LINGER on data socket.
9516           Fix printf of unterminated string data.
9517           Check return codes on socket header reads.
9518         * restore-src/amidxtaped.c: Set SO_LINGER on sockets.
9519           Check return codes on socket header reads.
9520         * restore-src/restore.c:
9521           Flush newline after operator prompt.
9522         * common-src/debug.c:
9523           Fix memory leak when debug file name already exists.
9524           Print error text upon hard open() error.
9525           Allow group members read only access to log files.
9526
9527 2006-01-05  Kevin Till<ktill@zmanda.com>
9528         * restore-src/restore.c: handle sigpipe. Some program (e.g. bzip2) closes reading pipe
9529           early when it sees trailing garbage after EOF.
9530
9531 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
9532         * common-src/amanda.h: Add a FD_COPY macro.
9533         * recover-src/extract_list.c (writer_intermediary): Don't use
9534           writer_intermediary, do the select locally.
9535
9536 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
9537         * restore-src/restore.c (flush_open_outputs): Call shutdown before
9538           close.
9539
9540 2005-12-30  John Franks <jrfranks@zmanda.com>
9541         * recover-src/extract_list.c:
9542           Fix double clearing of buffer during normal read path.
9543         * restore-src/amidxtaped.c
9544           Actually initialize changer if it is needed.  (Set use_changer
9545           before checking it...)
9546         * Fix control messages being sent down the data pipe when
9547           restoring to client that does not support split dumps.
9548         * Print error and exit if a split dump is needed during restore
9549           and client can not handle it. 
9550
9551 2005-12-30  Ian Turner <ian@zmanda.com>
9552         * common-src/fileheader.c: Remove xx/UNKNOWN split-dump header 
9553           syntax, in favor of xx/-1.
9554
9555 2005-12-29  John Franks <jrfranks@zmanda.com>
9556         * recover-src/display_commands.c
9557           Fix list deletion which did not update list root with NULL pointer.
9558           Make free_dir_item() a non-recursive function to prevent stack bloat.
9559           Fix list insertion code which inserts item in list initializes entry.
9560         * recover-src/extract_list.c
9561           Fix to initialize lditem before using it...
9562           Prevent multiple frees of cmd string.
9563           Do not free err which is only initialized with static string pointers.
9564           Fix typo which caused newstralloc() to free the wrong memory.
9565         * server-src/amindexd.c
9566           Fix Compiler warning of unused variable.
9567         * server-src/taperscan.c
9568           Fix Compiler warning of bogus format specifier.
9569   
9570 2005-12-29  Kevin Till<ktill@zmanda.com>
9571         * man/xml-source/amcrypt.8.xml: add new amcrypt man page
9572         * man/xml-source/amaespipe.8.xml: add new amaespipe man page
9573
9574 2005-12-29  Ian Turner <ian@zmanda.com>
9575         * man/xml-source/amanda.conf.5.xml: Document label_new_tapes 
9576           config option.
9577
9578 2005-12-28  Ian Turner <ian@zmanda.com>
9579         * recover-src/amrecover.h: Use dynamic strings in struct DIR_ITEM.
9580         * recover-src/display_commands.c: ditto
9581         * recover-src/extract_list.c: ditto. Also use dynamic strings in
9582           struct EXTRACT_LIST and struct EXTRACT_LIST_ITEM.
9583
9584 2005-12-28  Ian Turner <ian@zmanda.com>
9585         * common-src/amfeatures.h: Add three new amfeatures:
9586           fe_amindexd_marshall_in_OLSD, fe_amindexd_marshall_in_ORLD,
9587           fe_amindexd_marshall_in_DHST.
9588         * common-src/amfeatures.c: ditto.
9589         * server-src/amindexd.c: Talk well to older clients.
9590
9591 2005-12-23  Ian Turner <ian@zmanda.com>
9592         * server-src/taperscan.c: Don't crash if find_brand_new_tape_label
9593           returns NULL. Also, don't return NULL from
9594           find_brand_new_tape_label without a good excuse.
9595         
9596 2005-12-23  Kevin Till <ktill@zmanda.com>
9597         * client-src/client_util.c: change server_decrypt_option to
9598           server-decrypt-option
9599         * client-src/sendbackup.c:  change client_decrypt_option to
9600           client-decrypt-option
9601         * server-src/dumper.c:      ditto
9602         * common-src/amfeatures.c:  add crypt related amfeaturs
9603         * common-src/amfeatures.h:  ditto  
9604         * server-src/diskfile.c:    amfeatures checking and warns on
9605           mis-configuration
9606
9607 2005-12-23  Paddy Sreenivasan <paddy@zmanda.com>
9608          * restore-src/restore.c:
9609          * server-src/amtape.c:
9610          * server-src/taperscan.c : Make scan_init static function
9611
9612 2005-12-23  John Franks <jrfranks@zmanda.com>
9613         * server-src/taper.c: Reduce I/O's system call overhead by 30%
9614           in main read / write loop. 
9615
9616 2005-12-23  John Franks <jrfranks@zmanda.com>
9617         * recover-src/restore.c  Remove inapproriate aclose which caused
9618           broken restore pipe.
9619         * recover-src/extract_list.c  Fix and cleanup read_buffer()
9620           mainly to fix hole that drops parital buffer of data if end
9621           of file is reached or an error occured..  Touched up calling
9622           functions to make sure EOF/timeouts are handled correctly.
9623           Increased normal path read timeout value from on second to
9624           whatever READ_TIMEOUT is set to.
9625
9626 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
9627
9628         * restore-src/restore.c (restore): Remova an aclose.
9629
9630 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
9631
9632         * restore-src/amidxtaped.c (cleanup): Function registered with atexit
9633           to remove the log file.
9634
9635 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
9636
9637         * server-src/Makefile.am (noinst_HEADERS): Add taperscan.h.
9638
9639 2005-12-20  John Franks <jrfranks@zmanda.com>
9640
9641         * restore-src/restore.c: Remove unused variables.
9642                                  Fix uninitialize reference to bytes_read.
9643         * server-src/amcheck.c:  Remove unused variables.
9644                                  Include taperscan.h for missing prototype.
9645         * server-src/amtape.c:   Remove unused variables.
9646                                  Include taperscan.h for missing prototype.
9647         * server-src/taper.c:    Remove unused variables.
9648                                  Minor indenting changes.
9649         * server-src/taperscan.c:Remove unused variables.
9650                                  Fix typo which assigns NULL rather than
9651                                   checks for NULL.
9652                                  Commented out reference to auto_pos which
9653                                   is assigned but never used...
9654
9655 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
9656
9657         * common-src/fileheader.c (parse_file_header): Parse '/' in part.
9658         * common-src/fileheader.c (build_header): Add space ' ' before "part".
9659
9660 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
9661
9662         * server-src/reporter.c: Fix report of output size.
9663
9664 2005-12-19  Ian Turner <ian@zmanda.com>
9665         * server-src/taperscan.c: Check that automatic tape labels satisfy
9666         the labelstr.
9667
9668 2005-12-19  Ian Turner <ian@zmanda.com>
9669         * server-src/fileheader.c: Fix broken split-dump file headers.
9670
9671 2005-12-18  Jean-Louis Martineau <martineau@zmanda.com>
9672         Patch by Paul Bijnens
9673
9674         * server-src/amcheck.c: Tapelist file is regular file.
9675
9676 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
9677
9678         * restore-src/restore.c (get_block): Return a ssize_t.
9679         * restore-src/restore.c: convert ssize_t to long for printing.
9680         * restore-src/restore.c (restore>): Remove unused variable, outpipe,
9681            outpipe2, i.
9682
9683 2005-12-17  John R. Franks <jrfranks@zmanda.com>
9684
9685         * restore-src/restore.h (read_file_header, restore): Return a ssize_t
9686           instead of using a global variable bytes_read.
9687         * restore-src/restore.c: Use local variable instead of global
9688           bytes_read. Many memory management fixe. Fixe pipe handling,
9689         * restore-src/amrestore.c: Use new read_file_header and restore.
9690         * restore-src/amfetchdump.c: Use new read_file_header and restore.
9691
9692 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
9693         With Kevin Till <ktill@zmanda.com>
9694
9695         * common-src/fileheader.c (parse_file_header): Fix parsing of first
9696           line.
9697         * common-src/fileheader.c (build_header): Print crypt after programi
9698            and only if it is needed.
9699
9700 2005-12-14  Ian Turner <ian@zmanda.com>
9701
9702         * common-src/alloc.c: Add new function vstrextend, which extends an
9703           existing string.
9704         * common-src/amanda.h: Define vstrextend.
9705         * example/amanda.conf.in: Document new option
9706           label_new_tapes. Change default labelstr.
9707         * man/xml-source/amcheck.8.xml: Emphasize the destructiveness of
9708           amcheck -w.
9709         * restore-src/restore.c: Use the new changer_find interface.
9710         * server-src/Makefile.am: Add new file taperscan.c
9711         * server-src/amcheck.c: Use the taper-scan algorithm in taperscan.c,
9712           instead of the previous separate amcheck implementation.
9713         * server-src/amtape.c: Use the taper-scan algorithm in taperscan.c,
9714           instead of the previous separate amtape implementation. Also, use
9715           the new changer_find interface for other kinds of tape finding.
9716         * server-src/changer.c: Eliminate changer_scan. Change the API to
9717           changer_find, so that callers can pass a user-data object, instead
9718           of using globals.
9719         * server-src/changer.h: Declare and document new changer_find
9720           interface.
9721         * server-src/conffile.c: Add new config option label_new_tapes.
9722         * server-src/conffile.h: ditto.
9723         * server-src/taper.c: Use the taper-scan algorithm in taperscan.c,
9724           instead of the previous separate taper implementation. Also,
9725           combine tape-label-reading for ZFTAPE and non-ZFTAPE drives (the
9726           difference only matters on writing).
9727         * server-src/taperscan.c: Refactor the taper-scan algorithm from
9728           taper, amtape, and amcheck. Implement label_new_tapes feature.
9729         * server-src/taperscan.h: Declare and document new taperscan
9730           interface.
9731         * tape-src/tapeio.c: Notice the difference between a non-Amanda tape
9732           and some other tape-reading problem.
9733         * tape-src/tapeio.h: New declarations.
9734
9735 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
9736
9737         * server-src/reporter.c (handle_success): On a taper line, the outsize
9738           should only count dump to tape, not flush.
9739
9740 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
9741
9742         * server-src/amstatus.pl.in: Parse chunker DONE line to set output size.
9743
9744 2005-12-09  John Franks <jrfranks@zmanda.com>
9745
9746         * client-src/Makefile.am: Do not include tape library if
9747           configuring with --without-server option.
9748         * recover-src/Makefile.am: Do not include tape library if
9749           configuring with --without-server option.
9750
9751 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
9752
9753         * configure.in: Move the size detection after detection of large
9754           file support. That change the size of off_t.
9755
9756 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
9757
9758         * common-src/amanda.h: Set OFF_T_FMT to printf format of a off_t.
9759         * server-src/taper.c: Use OFF_T_FMT.
9760
9761 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
9762
9763         * configure.in: Set LL_FMT correctly.
9764         * server-src/conffile.c: Use LL_FMT.
9765
9766 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
9767
9768         * server-src/conffile.c: Maxdumpsize is a AM64.
9769         * server-src/planner.c: conf_maxdumpsize, total_size, tape_length and
9770           tape_mark are am64_t.
9771
9772 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
9773
9774         * configure.in: Check for sizeof of many type. Check printf format of
9775           a 64-bit integers.
9776         * common-src/amanda.h: Typedef am64_t to a 64 bits signed type,i
9777           set AM64_FMT to the printf format of a am64_t variable.
9778         * server-src/conffile.c: New AM64 type.
9779         * server-src/conffile.h(getconf_am64): Prototype.
9780
9781 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
9782
9783         * client-src/Makefile.am: Remove amqde.
9784         * client-src/sendsize.c: Remove code to call amqde.
9785         * client-src/amqde.c: Remove file.
9786         * configure.in: Remove '--with-qde' option.
9787
9788 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
9789
9790         * server-src/amindexd.c (reply, lreply, fast_lreply): Must use
9791           str_buffer_sizebuf instead of sizeof(bug).
9792
9793 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
9794
9795         * server-src/planner.c: Print the time in the FINISH line.
9796         * server-src/reporter.c: The estimate time is based on the planner
9797           FINISH line.
9798
9799 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
9800
9801         * common-src/Makefile.am (bsdsecurity_LDADD): Add ssh-security.
9802
9803 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
9804
9805         * server-src/holding.c (scan_holdingdisk): Static function.
9806         * server-src/taper.c (signal_handler, install_signal_handlers): Ditto.
9807         * server-src/reporter.c (output_strange,do_postscript_output): Ditto.
9808
9809 2005-12-04  Jean-Louis Martineau <martineau@zmanda.com>
9810
9811         * server-src/logfile.c (logtype_str): Add important ','.
9812
9813 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
9814
9815         * server-src/planner.c (setup_estimate): Fix wrong order for argument.
9816
9817 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
9818
9819         * server-src/driver.c (start_some_dumps): Don't test for
9820           cur_idle == NOT_IDLE.
9821
9822 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
9823
9824         * server-src/driverio.c (check_unfree_serial): New fonction to check
9825           unfreed serial number.
9826         * server-src/driverio.c (free_serial_dp): Set stable[s].dp to NULL.
9827         * server-src/driverio.h (check_unfree_serial): Prototype.
9828         * server-src/driver.c (main): Call check_unfree_serial.
9829
9830 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
9831         Patch by Franz Fischer
9832
9833         * config/acinclude.m4i: Fix for __alpha.
9834
9835 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
9836
9837         * common-src/util.c: Debug must end with '\n'.
9838
9839 2005-12-01  Jean-Louis Martineau <martineau@zmanda.com>
9840
9841         * configure.in: Amanda support x86_64-unknown-linux-gnu.
9842
9843 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
9844
9845         * common-src/rsh-security.c (rsh_sendpkt): buf is a char array.
9846         * common-src/ssh-security.c (rsh_sendpkt): buf is a char array.
9847         * config/acinclude.m4i (AX_CREATE_STDINT_H): Newer macro.
9848
9849 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
9850
9851         * client-src/rundump.c: undef USE_RUNDUMP before define.
9852
9853 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
9854         Patch by Franz Fischer
9855
9856         * client-src/amqde.c: Fix compiler warning.
9857
9858 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
9859         Patch by Franz Fischer
9860
9861         * common-src/event.h: Fix compiler warning.
9862         * server-src/conffile.h: Fix compiler warning.
9863
9864 2005-11-30  Kevin Till  <ktill@zmanda.com>
9865         
9866         * client-src/client_util.c add server-side, client-side encryption
9867           as well as custom compression. Custom compression patch is
9868           orginally created by Matthieu Lochegnies.
9869         * client-src/client_util.h Ditto
9870         * client-src/selfcheck.c Ditto
9871         * client-src/sendbackup-dump.c Ditto
9872         * client-src/sendbackup-gnutar.c Ditto
9873         * client-src/sendbackup.c Ditto
9874         * client-src/sendbackup.h Ditto
9875         * common-src/fileheader.c Ditto
9876         * common-src/fileheader.h Ditto
9877         * common-src/util.h Ditto
9878         * example/amanda.conf.in Ditto
9879         * man/xml-source/amanda.conf.5.xml Ditto
9880         * restore-src/amrestore.c Ditto
9881         * restore-src/restore.c Ditto
9882         * server-src/conffile.c Ditto
9883         * server-src/conffile.h Ditto
9884         * server-src/diskfile.c Ditto
9885         * server-src/diskfile.h Ditto
9886         * server-src/dumper.c Ditto
9887         
9888 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
9889
9890         * config/libtool.m4i: libtool 1.5.20
9891         * config/ltmain.sh: libtool 1.5.20
9892
9893 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
9894         Patch by Franz Fischer
9895
9896         * common-src/fileheader.c (build_header): Declation before instruction.
9897         * restore-src/amfetchdump.c: Don't use C++ style comment.
9898         * restore-src/restore.c: Don't use C++ style comment.
9899         * server-src/amindexd.c (reply, lreply, fast_lreply): buf must be
9900            dynamicaly allocated.
9901         * server-src/logfile.h: Don't use C++ style comment.
9902         * server-src/taper.c (free_split_buffer): Test splitbuf against NULL.
9903
9904 2005-11-22 Paddy Sreenivasan <paddy@zmanda.com>
9905         * common-src/rsh-security.c: Fix x86_64 compile warnings.
9906         * common-src/ssh-security.c: Fix x86_64 compile warnings.
9907         * man/Makefile.am: Added EXTRA_XML files.
9908         * man/xml-source/amanda.8.xml: Added spanning patch variables.
9909         * man/xml-source/amrecover.8.xml: Added amfetchdump to SEE ALSO.
9910         * xslt/global.entities: Removed file.
9911
9912 2005-11-20  Jean-Louis Martineau <martineau@zmanda.com>
9913         Patch by Jon H. LaBadie
9914
9915         * changer-src/chg-disk.sh.in: Check permission on file access.
9916
9917 2005-11-17  Paddy Sreenivasan <paddy@zmanda.com>
9918         * man/entities/global.entities: New file. Added man page entities.
9919         * man/entities/xinclude.dtd: New file.
9920         * man/xslt/man.xsl: Correct include path for settings.xsl.
9921
9922 2005-11-15  John R. Franks <jrfranks@zmanda.com>
9923         * changer-src/scsi-changer-driver.c: Fix IA-64 compile warnings.
9924         * common-src/rsh-security.c: Fix IA-64 compile warnings.
9925         * common-src/ssh-security.c: Fix IA-64 compile warnings.
9926         * regex-src/engine.c: Fix IA-64 compile warnings.
9927         * regex-src/regexec.c: Fix IA-64 compile warnings.
9928
9929 2005-11-15  Paddy Sreenivasan <paddy@zmanda.com>
9930
9931         * configure.in:  Changed defaults for tape_dev and nr_tape_dev.
9932         * example/amanda.conf.in: Leave only changerfile definition
9933           uncommented.
9934         * man/xml-source/amanda.conf.5.xml: Updated defaults for 
9935           tapedev and rawtapedev
9936
9937 2005-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9938
9939         * server-src/planner.c: Fix incronly.
9940
9941 2005-11-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9942
9943         * man/Makefile.am: Set man_MANS,
9944
9945 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9946
9947         * man/Makefile.am: Set man5_MANS and man8_MANS,
9948           install-data-hook use them.
9949
9950 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9951         Patch by Olivier Cherrier
9952
9953         * man/Makefile.am (install-data-hook): Set protection correclty
9954           for man5 and man8.
9955
9956 2005-10-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9957
9958         * common-src/util.c (bind_portrange): Increase port in all case.
9959
9960 2005-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9961
9962         * server-src/conffile.c: Allow runtapes==0.
9963         * server-src/driver.c: Use a global conf_runtapes. Don't start a
9964           taper if runtapes==0.
9965         * server-src/reporter.c: Don't print The next tapes if runtapes==0.
9966
9967
9968 2005-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
9969
9970         * Amanda 2.5.0b1 released.
9971         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b1).
9972         * NEWS: Update for 2.5.0b1.
9973
9974 2005-10-25  Ian Turner <ian@zmanda.com>
9975         
9976         * man/Makefile.am: include amfetchdump.8.
9977         * man/xml-source/amadmin.8.xml: Add spanning-patch documentation.
9978         * man/xml-source/amanda.8.xml: ditto
9979         * man/xml-source/amrecover.8.xml: ditto
9980         * man/xml-source/amfetchdump.8.xml: ditto (new file)
9981         * man/xslt/global.entities: Add myself, Zmanda Inc.
9982         
9983 2005-10-24  Jean-Louis Martineau <martineau@zmanda.com>
9984
9985         * client-src/sendsize.c (getsize_wrapper): Add a NULL at the end of
9986           the argvchild array.
9987
9988 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
9989
9990         * server-src/server_util.c (getcmd): Print DEBUG to stderr.
9991
9992 2005-10-20  Ian Turner <ian@zmanda.com>
9993
9994         * configure.in: Check for xsltproc.
9995         * man/Makefile.am: Properly build, clean, and distribute generated
9996           manpages from XML source.
9997         * man/amadmin.8: Remove from CVS
9998         * man/amanda.8: Remove from CVS
9999         * man/amanda.conf.5: Remove from CVS
10000         * man/amcheck.8: Remove from CVS
10001         * man/amcheckdb.8: Remove from CVS
10002         * man/amcleanup.8: Remove from CVS
10003         * man/amdd.8: Remove from CVS
10004         * man/amdump.8: Remove from CVS
10005         * man/amflush.8: Remove from CVS
10006         * man/amgetconf.8: Remove from CVS
10007         * man/amlabel.8: Remove from CVS
10008         * man/ammt.8: Remove from CVS
10009         * man/amoverview.8: Remove from CVS
10010         * man/amplot.8: Remove from CVS
10011         * man/amrecover.8: Remove from CVS
10012         * man/amreport.8: Remove from CVS
10013         * man/amrestore.8: Remove from CVS
10014         * man/amrmtape.8: Remove from CVS
10015         * man/amstatus.8: Remove from CVS
10016         * man/amtape.8: Remove from CVS
10017         * man/amtapetype.8: Remove from CVS
10018         * man/amtoc.8: Remove from CVS
10019         * man/amverify.8: Remove from CVS
10020         * man/amverifyrun.8: Remove from CVS
10021         * man/xml-source/amadmin.8.xml: Add from xml-docs
10022         * man/xml-source/amanda.8.xml: Add from xml-docs
10023         * man/xml-source/amanda.conf.5.xml: Add from xml-docs
10024         * man/xml-source/amcheck.8.xml: Add from xml-docs
10025         * man/xml-source/amcheckdb.8.xml: Add from xml-docs
10026         * man/xml-source/amcleanup.8.xml: Add from xml-docs
10027         * man/xml-source/amdd.8.xml: Add from xml-docs
10028         * man/xml-source/amdump.8.xml: Add from xml-docs
10029         * man/xml-source/amflush.8.xml: Add from xml-docs
10030         * man/xml-source/amgetconf.8.xml: Add from xml-docs
10031         * man/xml-source/amlabel.8.xml: Add from xml-docs
10032         * man/xml-source/ammt.8.xml: Add from xml-docs
10033         * man/xml-source/amoverview.8.xml: Add from xml-docs
10034         * man/xml-source/amplot.8.xml: Add from xml-docs
10035         * man/xml-source/amrecover.8.xml: Add from xml-docs
10036         * man/xml-source/amreport.8.xml: Add from xml-docs
10037         * man/xml-source/amrestore.8.xml: Add from xml-docs
10038         * man/xml-source/amrmtape.8.xml: Add from xml-docs
10039         * man/xml-source/amstatus.8.xml: Add from xml-docs
10040         * man/xml-source/amtape.8.xml: Add from xml-docs
10041         * man/xml-source/amtapetype.8.xml: Add from xml-docs
10042         * man/xml-source/amtoc.8.xml: Add from xml-docs
10043         * man/xml-source/amverify.8.xml: Add from xml-docs
10044         * man/xml-source/amverifyrun.8.xml: Add from xml-docs
10045         * man/xslt/expand-sambadoc.xsl: Add from xml-docs
10046         * man/xslt/global.entities: Add from xml-docs
10047         * man/xslt/man.xsl: Add from xml-docs
10048         * man/xslt/settings.xsl: Add from xml-docs
10049
10050 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
10051
10052         * server-src/amstatus.pl.in: a FLUSH command can't be in an estimate
10053           phase.
10054         * server-src/driver.c: Start autoflush while waiting for estimate.
10055         * server-src/planner.c: Write FLUSH line before estimate.
10056
10057 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
10058         Patch by John R. Franks <jrfranks@zmanda.com>
10059
10060         * server-src/taper.c (create_split_buffer): Should not use sizeof().
10061
10062 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
10063
10064         * server-src/taper.c (read_file): Move the putresult(DONE) to the
10065           right place, some cleanup.
10066
10067 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
10068
10069         * server-src/planner.c: Increase DEFAULT_DUMPRATE to 1024 K/s.
10070
10071 2005-10-17  Ian Turner <ian@zmanda.com>
10072
10073         * Changelog: Fix line breaks.
10074         * restore-src/restore.c: Give more useful FSF error messages.
10075         * recover-src/extract_list.c: Do better error checking on passed port
10076           number.
10077         * common-src/tapelist.c: Do proper memory management of strings.
10078           Otherwise really bad stuff happens.
10079
10080 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
10081
10082         * server-src/taper.c: Set SIGPIPE to SIG_IGN, the code already
10083           handle it correctly.
10084
10085 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
10086
10087         * server-src/taper.c (signal_handler): Don't REMOVE_SHARED_MEMORY, it
10088           is done by exit.
10089
10090 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
10091
10092         * server-src/driverio.c (serial2disk): Print str if error.
10093
10094 2005-10-15  Paddy Sreenivasan <paddy@zmanda.com>
10095
10096         * server-src/taper.c: Shared memory need not be removed in normal paths.
10097           Done as part of atexit. 
10098
10099 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
10100         Patch by John R. Franks <jrfranks@zmanda.com>
10101
10102         * changer-src/scsi-aix.c: calls to open/openx guages success by
10103           checking for a file descriptor greater than 0.  0 is also a valid
10104           descriptor so the check should be >= 0.
10105           Calls to SCSI_OpenDevice does not check for error return.
10106           Calls to SCSI_OpenDevice does not check for error return.
10107           Calls to SCSI_OpenDevice does not check for error return.
10108           Call to opendir() does not check for error.
10109         * changer-src/scsi-hpux_new.c: Ditto.
10110         * changer-src/scsi-irix.c: Ditto.
10111         * changer-src/scsi-linux.c: Ditto.
10112         * changer-src/scsi-solaris.c: Ditto.
10113         * client-src/selfcheck.c: Call to open() does not check for error.
10114         * client-src/sendbackup.c: Call to freopen() does not check for error.
10115         * client-src/sendsize.c: Call to open() does not check for error.
10116         * common-src/bsd-security.c: Call to open() does not check for error.
10117         * common-src/file.c: Call to open() does not check for error.
10118         * restore-src/amrestore.c: Calls to tape_open() do not always check
10119           return code.  open() is called with open flags set to 0
10120           (Call always fails with an EINVAL)
10121         * restore-src/restore.c: fopen() return error check  is "fopen() < 0".
10122           fopen returns a pointer and the proper check should be
10123           "fopen() == NULL".
10124           Call to open() does not check for error.
10125         * tape-src/tapeio.c: tape_open() is called here and other places with a
10126           variable number of arguments, and yet is not defined as a varargs
10127           function...
10128         * tape-src/tapeio.h: Prototype for tape_open.
10129
10130 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
10131         Patch by Paddy Sreenivasan <paddy@zmanda.com>
10132
10133         * client-src/sendsize.c: Log message changes.
10134         * server-src/taper.c: And an atexit function to detach shared memory.
10135           Trap some signal and detach shared memory.
10136
10137 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
10138
10139         * regex-src/regcomp.c (findmust): Initialized start to NULL.
10140
10141 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
10142         Patch by John R. Franks <jrfranks@zmanda.com>
10143
10144         * regex-src/cclass.h: Fixed to add missing braces and reformat long
10145           strings to fix in 80 columns.
10146         * regex-src/cname.h: Fixed by adding braces and tidying up code a bit.
10147         * regex-src/regcomp.c (p_ere): Initialized prevback and prevfwd to 0.
10148           ifdef out unused mcsub, mcin and mcfind functions.
10149           (findmust) Initialized newstart to NULL.
10150         * regex-src/regerror.c: Adds missing braces.
10151         * regex-src/regexec.c (nope): Use only in assert, so it is not only
10152           defined if NDEBUG is not defined.
10153
10154 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
10155         Patch by John R. Franks <jrfranks@zmanda.com>
10156
10157         * common-src/krb4-security.c (krb4_security_dummy): Rename from dummy,
10158           it is not static int.
10159         * common-src/krb5-security.c (krb5_security_dummy): Rename from dummy,
10160           it is not static int.
10161
10162 2005-10-13  Jean-Louis Martineau <martineau@zmanda.com>
10163
10164         * common-src/util.c (bind_portrange): New argument proto.
10165           Check for reserved port.
10166         * common-src/util.h (bind_portrange): New prototype.
10167         * common-src/bsd-security.c (bind_portrange): New prototype.
10168         * common-src/dgram.c: Add "udp" as argument to bind_portrange.
10169         * common-src/stream.c: Add "tcp" as argument to bind_portrange.
10170
10171 2005-10-12  Jean-Louis Martineau <martineau@zmanda.com>
10172
10173         * restore-src/amidxtaped.c (check_security_buffer): i is a socklen_t.
10174         * restore-src/amidxtaped.c (main): Remove i, fd, amrestore_path, pid,
10175           isafile, stat_tape, tapename, s, fp, ch and errstr variable.
10176
10177 2005-10-11  Ian Turner <ian@zmanda.com>
10178         Patch by  Jean-Louis Martineau <martineau@zmanda.com>
10179         
10180         * restore-src/amfetchdump.c: Remove unused variable debug.
10181         * restore-src/amidxtaped.c: Remove lock_logfile(), which is also 
10182           in restore.c.
10183         * restore-src/Makefile.am: Include libamanda twice, to fix build 
10184           on some machines.
10185
10186 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10187
10188         * restore-src/Makefile (noinst_HEADERS): Add restore.h.
10189         * restore-src/restore.c (search_tapes): Add the fourth argument to
10190           read_file_header.
10191
10192 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10193
10194         * server-src/conffile.c: dpcur.s_split_diskbuffer must be initialize
10195           to 0.
10196         * server-src/reporter.c (handle_partial): Set repdata to the result
10197           of handle_success.
10198         * server-src/taper.c: Set the first-file.
10199
10200 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10201
10202         * client-src/client_util.c, server-src/amcheck.c,
10203           server-src/reporter.c: Add missing type for arguments.
10204
10205 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10206
10207         * server-src/taper.c (tape_writer_side): detach_buffers on normal exit.
10208
10209 2005-10-10  Ian Turner <ian@zmanda.com>
10210
10211         * server-src/amtape.h: Apply tape-spanning patch by John Stange
10212           <building@cs.umd.edu> as ported to 2.5.0 by Ian Turner, with
10213           contributions by Christopher Pascoe <c.pascoe@itee.uq.edu.au>.
10214         * configure.in: Ditto
10215         * amplot/Makefile.am: Ditto
10216         * changer-src/Makefile.am: Ditto
10217         * client-src/Makefile.am: Ditto
10218         * common-src/Makefile.am: Ditto
10219         * common-src/amanda.h: Ditto
10220         * common-src/amfeatures.c: Ditto
10221         * common-src/amfeatures.h: Ditto
10222         * common-src/fileheader.c: Ditto
10223         * common-src/fileheader.h: Ditto
10224         * common-src/match.c: Ditto
10225         * common-src/tapelist.c: Ditto
10226         * common-src/tapelist.h: Ditto
10227         * example/amanda.conf.in: Ditto
10228         * man/Makefile.am: Ditto
10229         * recover-src/amrecover.c: Ditto
10230         * recover-src/amrecover.h: Ditto
10231         * recover-src/display_commands.c: Ditto
10232         * recover-src/extract_list.c: Ditto
10233         * restore-src/Makefile.am: Ditto
10234         * restore-src/amfetchdump.c: Ditto
10235         * restore-src/amfetchdump.h: Ditto
10236         * restore-src/amidxtaped.c: Ditto
10237         * restore-src/amrestore.c: Ditto
10238         * restore-src/restore.c: Ditto
10239         * restore-src/restore.h: Ditto
10240         * server-src/Makefile.am: Ditto
10241         * server-src/amadmin.c: Ditto
10242         * server-src/amindexd.c: Ditto
10243         * server-src/amoverview.pl.in: Ditto
10244         * server-src/amtoc.pl.in: Ditto
10245         * server-src/amverify.sh.in: Ditto
10246         * server-src/changer.c: Ditto
10247         * server-src/conffile.c: Ditto
10248         * server-src/conffile.h: Ditto
10249         * server-src/disk_history.c: Ditto
10250         * server-src/disk_history.h: Ditto
10251         * server-src/diskfile.c: Ditto
10252         * server-src/diskfile.h: Ditto
10253         * server-src/driver.c: Ditto
10254         * server-src/driverio.c: Ditto
10255         * server-src/find.c: Ditto
10256         * server-src/find.h: Ditto
10257         * server-src/holding.c: Ditto
10258         * server-src/holding.h: Ditto
10259         * server-src/logfile.c: Ditto
10260         * server-src/logfile.h: Ditto
10261         * server-src/planner.c: Ditto
10262         * server-src/reporter.c: Ditto
10263         * server-src/server_util.c: Ditto
10264         * server-src/server_util.h: Ditto
10265         * server-src/taper.c: Ditto
10266
10267 2005-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10268
10269         * server-src/taper.c: Change message: on new tape due to
10270
10271 2005-10-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10272         Patch by John R. Franks 
10273
10274         * common-src/amflock.c (main): Don't call safe_fd, it's not needed
10275           during configure.
10276         * configure.in: '#include <sys/types.h>' in the check
10277           'for Linux like scsi support (sg)'
10278
10279 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10280
10281         * client-src/amandad.c (writebuf): Call waitpid in the parent.
10282
10283 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10284
10285         * client-src/amandad.c (service_delete): Remove call to sleep.
10286         * common-src/bsd-security.c: Add bsdprintf. Add more debug.
10287           The handle is used as a string, instead of 2 int.
10288
10289 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10290
10291         * common-src/rsh-security.c: rshprintf should call dbprint.
10292         * common-src/ssh-security.c: rshprintf should call dbprint, add many
10293           rshprintf.
10294         * common-src/event.c: Add eventprintf, use it. Add debug_prefix_time
10295           to the log. 
10296
10297 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10298
10299         * common-src/stream.c: len is a socklen_t.
10300         * server-src/amindexd.c: Add socklen as a socklen_t.
10301         * restore-src/amidxtaped.c: Add socklen as a socklen_t.
10302         * tape-src/tapetype.c: Change printf format.
10303         * server-src/amlabel.c: Add a variable isa_zftape. init fd to -1.
10304         * server-src/dumper.c: Init outfd to -1.
10305         * common-src/file.c (areads_getbuf): First argument is const.
10306
10307 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10308
10309         * server-src/reporter.c: Don't trunk hostname/diskname in
10310           'FAILURE AND STRANGE DUMP SUMMARY' section.
10311
10312 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10313
10314         * server-src/chunker.c (main): Remove outfd.
10315
10316 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10317
10318         * server-src/conffile.c, server-src/diskfile.c, server-src/infofile.c,
10319           client-src/getfsent.c, common-src/statfs.c, common-src/token.c
10320           (main): Remove fd declaration.
10321
10322 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10323
10324         * client-src/runtar.c: 'e' and 'bdf' are only needed if GNUTAR.
10325
10326 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10327
10328         * common-src/sl.c (insert_sort_sl). Typo.
10329
10330 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10331
10332         * config/config.guess: Update from automake 1.9.5.
10333         * config/config.sub: Update from automake 1.9.5.
10334         * config/depcomp: Update from automake 1.9.5.
10335         * config/install-sh: Update from automake 1.9.5.
10336         * config/missing: Update from automake 1.9.5.
10337         * config/mkinstalldirs: Update from automake 1.9.5.
10338         * config/ltmain.sh: Update from libtool-1.5.16.
10339         * config/libtool.m4i: Update from libtool-1.5.16.
10340
10341 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10342
10343         * common-src/bsd-security.c: Fix small bug.
10344
10345 2005-09-22  John R. Jackson <jrj@purdue.edu>
10346
10347         * configure.in: If --without-server is specified, either on the
10348           command line or via config.site, make sure --without-restore
10349           is also in effect.  Avoids compilation errors if mismatched.
10350         * example/config.site: Document above.
10351
10352 2005-09-21  John R. Jackson <jrj@purdue.edu>
10353
10354         * server-src/getconf.c: Allow CLIENT_LOGIN to be retrieved via
10355           "amgetconf build.CLIENT_LOGIN".
10356
10357 2005-09-21  John R. Jackson <jrj@purdue.edu>
10358
10359         * server-src/amlabel.c: 'int fd' is only needed if HAVE_LINUX_ZFTAPE_H
10360           is defined.
10361
10362 2005-09-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10363
10364         * server-src/amlabel.c: 'int fd' is needed.
10365
10366 2005-09-20  John R. Jackson <jrj@purdue.edu>
10367
10368         * server-src/reporter.c: Fix minor typo noticed by Scott R. Burns
10369           <Scott.Burns@Netcontech.Com>.
10370
10371 2005-09-20  John R. Jackson <jrj@purdue.edu>
10372
10373         * common-src/file.c: Create safe_fd() to do common file descriptor
10374           safety operations at the start of every program.  In addition
10375           to closing everything from three on up that used to be done
10376           with explicit code, make sure stdin, stdout and stderr are
10377           open per a potential (but unlikely) security report from Ben
10378           Schwarz <bschwarz@EECS.berkeley.EDU>.
10379         * common-src/amanda.h: Ditto.
10380         * client-src/amandad.c: Ditto.
10381         * client-src/calcsize.c: Ditto.
10382         * client-src/getfsent.c: Ditto.
10383         * client-src/killpgrp.c: Ditto.
10384         * client-src/rundump.c: Ditto.
10385         * client-src/runtar.c: Ditto.
10386         * client-src/selfcheck.c: Ditto.
10387         * client-src/sendbackup.c: Ditto.
10388         * client-src/sendsize.c: Ditto.
10389         * client-src/versionsuffix.c: Ditto.
10390         * common-src/amflock.c: Ditto.
10391         * common-src/rsh-security.c: Ditto.
10392         * common-src/ssh-security.c: Ditto.
10393         * common-src/statfs.c: Ditto.
10394         * common-src/token.c: Ditto.
10395         * recover-src/amrecover.c: Ditto.
10396         * restore-src/amidxtaped.c: Ditto.
10397         * restore-src/amrestore.c: Ditto.
10398         * server-src/amadmin.c: Ditto.
10399         * server-src/amcheck.c: Ditto.
10400         * server-src/amcleanupdisk.c: Ditto.
10401         * server-src/amflush.c: Ditto.
10402         * server-src/amindexd.c: Ditto.
10403         * server-src/amlabel.c: Ditto.
10404         * server-src/amlogroll.c: Ditto.
10405         * server-src/amtape.c: Ditto.
10406         * server-src/amtrmidx.c: Ditto.
10407         * server-src/amtrmlog.c: Ditto.
10408         * server-src/chunker.c: Ditto.
10409         * server-src/conffile.c: Ditto.
10410         * server-src/diskfile.c: Ditto.
10411         * server-src/driver.c: Ditto.
10412         * server-src/getconf.c: Ditto.
10413         * server-src/infofile.c: Ditto.
10414         * server-src/planner.c: Ditto.
10415         * server-src/reporter.c: Ditto.
10416         * server-src/taper.c: Ditto.
10417         * server-src/dumper.c: Ditto plus remove incorrect chdir to hard
10418           coded "/tmp/amanda".
10419
10420 2005-09-20  John R. Jackson <jrj@purdue.edu>
10421
10422         * client-src/calcsize.c: Fix format string.
10423         * server-src/diskfile.c: Fix compiler warnings.
10424         * server-src/planner.c: Fix compiler warnings.
10425
10426 2005-09-20  John R. Jackson <jrj@purdue.edu>
10427
10428         * common-src/amanda.h: Add dbreopen() so debug file can be closed
10429           and then reopened if needed.
10430         * common-src/debug.c: Ditto.
10431         * client-src/runtar.c: Close the debug file (fd 10) around the
10432           exec of GNU tar.  Newer versions complain about stray file
10433           descriptors.
10434         * server-src/getconf.c: Use dbreopen() to create the debug file.
10435           Do not try to open config file unless needed (allows clients to
10436           use build.XXX/dbopen.XXX/dbclose.XXX).
10437
10438 2005-09-20  John R. Jackson <jrj@purdue.edu>
10439
10440         * client-src/sendbackup-dump.c: Ignore a new message from Solaris
10441           vxdump.
10442
10443 2005-09-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10444
10445         * common-src/bsd-security.c: Generate a unique event_id, thei
10446           proto_handle is not always unique.
10447
10448 2005-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10449
10450         * server-src/amverify.sh.in: Don't check for EOI, it's buggy.
10451
10452 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10453
10454         * server-src/driverio.c: Don't save history with size < 0.
10455
10456 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10457         Patch by Geert Uytterhoeven <geert@linux-m68k.org>
10458
10459         * server-src/planner.c: Don't use history with size < 0.
10460
10461 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10462         Patch Paul Bijnens <paul.bijnens@xplanation.com>
10463
10464         * server-src/planner.c(delay_dumps): Delay incremental dump also
10465           larger than tape.
10466
10467 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10468         Patch by Orion Poplawski <orion@cora.nwra.com>
10469
10470         * server-src/amoverview.pl.in: Add options -last, -num0 and -togo0.
10471         * man/amoverview.8: Document -last, -num0 and -togo0.
10472
10473 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10474         Patch by Orion Poplawski <orion@cora.nwra.com>
10475
10476         * server-src/driver.c: Make tape_length and tape_left unsigned long.
10477
10478 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10479         Patch by Stefan G. Weichinger <monitor@oops.co.at>
10480
10481         * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases.
10482
10483 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10484
10485         Bug found by John E Hein <jhein@timing.com>.
10486         * server-src/amadmin.c: Fix of by one with NB_HISTORY.
10487         * server-src/infofile.c:x: Fix of by one with NB_HISTORY.
10488
10489 2005-06-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10490         Patch by Jay Fenlason <fenlason@redhat.com>
10491
10492         * client-src/sendsize.c: Fix dbprintf call.
10493
10494 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10495             Stefan G. Weichinger <monitor@oops.co.at>
10496
10497         * example/amanda.conf.in: edited the default-value for the
10498                                   holdingdisk-usage to "use -100 Mb".
10499                                   The old value "use 290 Mb" didn't make much
10500                                   sense anymore.
10501
10502 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10503
10504         * server-src/amverifyrun.sh.in: Remove buggy space.
10505
10506 2005-05-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10507
10508         * server-src/amadmin.c: Add [--days <num>] argument to tape subcommand.
10509
10510 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10511
10512         * example/amanda.conf.in: Update from 2.4.5.
10513
10514 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10515
10516         * docs/*: New documentation from xml-docs.
10517         * docs/Makefile.am (pkgdata_DATA): Update for new files.
10518
10519 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10520
10521         * man/Makefile.am (COMMON_MAN_PAGES): Add amanda.conf.5.
10522
10523 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10524
10525         * man/*: Use man pages form xml-docs.
10526         * configure.in (AC_CONFIG_FILES): Remove all man pages.
10527         * man/Makefile.am (EXTRA_DIST): Add amadmin.8 amanda.8 amanda.conf.5 
10528           amcheck.8 amcheckdb.8 amcleanup.8 amdump.8 amflush.8 amgetconf.8
10529           amlabel.8 amoverview.8 amreport.8 amrecover.8 amrmtape.8 amstatus.8
10530           amtapetype.8 amtoc.8 amverify.8 amverifyrun.8
10531
10532 2005-05-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10533
10534         * common-src/rsh-security.c (net_read_fillbuf): Read only a packet,
10535           nothing more.
10536         * common-src/ssh-security.c (net_read_fillbuf): Read only a packet,
10537           nothing more.
10538         * common-src/rsh-security.c (conn_put): Don't kill the process, only do
10539           a wait with WNOHANG.
10540         * common-src/ssh-security.c (conn_put): Don't kill the process, only do
10541           a wait with WNOHANG.
10542
10543 2005-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10544
10545         * changer-src/chg-zd-mtx.sh.in: Improve handling of
10546           "Unknown Storage Element Loaded".
10547
10548 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10549         - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052
10550
10551         * server-src/amverifyrun.sh.in: Filter changer log file.
10552
10553 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10554
10555         * server-src/amcheck.c: Improve messages.
10556
10557 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10558
10559         * client-src/sendsize.c (generic_calc_estimates): Use amname instead
10560           of dirname in message.
10561
10562 2005-03-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10563
10564         * server-src/conffile.h: Rename getcont_unit_divisor to
10565           getconf_unit_divisor.
10566         * server-src/amadmin.c: Use getconf_unit_divisor.
10567         * server-src/amcheck.c: Use getconf_unit_divisor.
10568         * server-src/conffile.c: Use getconf_unit_divisor.
10569         * server-src/conffile.c (unit_divisor): Init to 1.
10570         * server-src/reporter.c: Use getconf_unit_divisor. The mb macro always
10571           divide by 1024. Add the du macro. Use mb or du where appropriate.
10572
10573 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10574
10575         * server-src/infofile.h (history_t): Add secs field.
10576         * server-src/infofile.c (read_txinfofile): Parse info file with secs
10577           in history.
10578         * server-src/infofile.c (write_txinfofile): Write secs in history.
10579         * server-src/driverio.c (update_info_dumper): Update secs in history.
10580
10581 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10582
10583         * server-src/planner.c: Improve server estimate.
10584         * server-src/planner.c: Write server estimate like others estimate.
10585
10586 2005-02-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10587
10588         * server-src/amstatus.pl.in: last_level is negative, on new disk.
10589
10590 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10591
10592         * server-src/amstatus.pl.in: Use '-?' to match negative values
10593           instead of '-*'.
10594
10595 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10596         Patch by Orion Poplawski <orion@cora.nwra.com>
10597
10598         * server-src/amoverview.pl.in: Print the total number of level 0
10599           dumps for each disk and the number of runs until the last level 0
10600           dump will be overwritten.
10601
10602 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10603         Patch by Phil Homewood <pdh@snapgear.com>
10604
10605         * server-src/amoverview.pl.in: Add -skipmissed option.
10606
10607 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10608
10609         * server-src/driver.c: Print the chunksize to the log.
10610
10611 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10612
10613         * client-src/calcsize.c: Print estimate to STDERR.
10614         * client-src/sendsize.c (generic_calc_estimates): Read calcsize result,
10615           and send it to amandad. Write debuging message.
10616
10617 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10618         Patch by Franz G. Fischer
10619
10620         * server-src/conffile.c: Adds a value type LONG and a val_t.l long
10621           union member and changes get_number() to return long and
10622           get_simple() to fill val_t.l if called for a long value.  The
10623           get_simple() calls have been changed to LONG for typetype_t.blocksize
10624           typetype_t.length, typetype_t.filemark, holdingdisk_t.disksize and
10625           holdingdisk_t.chunksize.
10626
10627 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10628
10629         * server-src/amdump.sh.in: Redirect in append mode.
10630         * server-src/driver.c: Set stdout and stderr to not buffered.
10631         * server-src/planner.c: Set stderr to not buffered.
10632           Print 'setup_estimate:' on one line.
10633         * server-src/amstatus.pl.in: Parse new 'setup_estimate:' line.
10634
10635 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10636
10637         * client-src/calcsize.c: Improve estimate for sparse file and count
10638           space for filenames.
10639
10640 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10641
10642         * server-src/planner.c: Improve message if no incremental estimate.
10643
10644 2004-12-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10645         Patch by Christopher Pascoe <c.pascoe@itee.uq.edu.au>
10646
10647         * common-src/match.c (match_glob, match_tar): Don't amfree(regex)
10648           before calling error().
10649
10650 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10651
10652         * server-src/driver.c (startaflush): Use ALGO_SMALLEST if nothing fit.
10653
10654 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10655
10656         * server-src/driver.c: Typo.
10657
10658 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10659
10660         * restore-src/amrestore.c: Should now work correctly with empty file.
10661         * server-src/amverify.sh.in: Parse "End-of-Information detected."
10662           message from amrestore.
10663
10664 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10665
10666         * server-src/driver.c: tape_left should not become negative.
10667
10668 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10669         Patch by Orion Poplawski <orion@cora.nwra.com>
10670
10671         * server-src/diskfile.c: Parse negative spindle (-1).
10672
10673 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10674
10675         * server-src/amadmin.c: Balance subcommand use displayunit.
10676         * server-src/amcheck.c: Small cleanup.
10677
10678 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10679
10680         * restore-src/amrestore.c: Undo patch from 2004-11-11, it break
10681           the file: dirver.
10682
10683 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10684
10685         * server-src/amstatus.pl.in: Remove trace.
10686
10687 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10688
10689         * server-src/diskfile.c: Compilation fix.
10690
10691 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10692
10693         * server-src/conffile.c: Parse displayunit,
10694           new fonction getcont_unit_divisor().
10695         * server-src/conffile.h: Prototype of getcont_unit_divisor().
10696         * server-src/amcheck.c: Use displayunit to display holding disk size.
10697         * server-src/amstatus.pl.in: Use displayunit to display dump size.
10698         * server-src/reporter.c: use displayunit to display dump size.
10699         * Document displayunit.
10700
10701 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10702
10703         * server-src/reporter.c: Change 'Daily' for 'Incr.'.
10704
10705 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10706
10707         * server-src/amstatus.pl.in Fix for level -1.
10708
10709 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10710         Patch by Daniel Widyono <widyono@seas.upenn.edu>
10711
10712         * changer-src/chg-zd-mtx.sh.in: Fix for library with barcode.
10713
10714 2004-11-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10715
10716         * restore-src/amrestore.c: Read empty file.
10717
10718 2004-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10719
10720         * tape-src/tapetype.c: Use new tape.
10721
10722 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10723
10724         * server-src/amstatus.pl.in: Display partial estimate.
10725
10726 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10727
10728         * server-src/diskfile.c (read_diskline): A spindle must be numerical.
10729
10730 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10731
10732         * server-src/holding.c (rename_tmp_holding): Always rename files.
10733
10734 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10735
10736         * server-src/driver.c: Print message when too many retry.
10737         * server-src/amstatus.pl.in: Detect a failed dump after too many retry.
10738         * amplot/amplot.awk: Parse these message.
10739
10740 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10741
10742         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
10743           if dumper returns DONE and taper returns TRYAGAIN.
10744
10745 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10746
10747         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
10748           if dumper returns TRYAGAIN and taper returns DONE.
10749
10750 2004-10-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10751
10752         * server-src/amflush.c: Don't start a driver if nothing to flush.
10753
10754 2004-10-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10755         Patch by Eric Siegerman <erics@telepres.com>
10756
10757         * example/3hole.ps: Fix for multiple tape.
10758
10759 2004-10-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10760
10761         * server-src/amverify.sh.in: Terminate if no tape online.
10762
10763 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10764
10765         * server-src/amadmin.c (main): Call check_dumpuser() as soon as posible.
10766
10767 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10768
10769         * server-src/conffile.c (getconf_byname): Special case for typ == BOOL.
10770
10771 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10772
10773         * server-src/planner.c (promote_hills): Use dumpcycle instead of
10774           tapecycle.
10775         * example/amanda.conf.in: Remove warning for tapecyle set to inf.
10776
10777 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10778
10779         * server-src/amadmin.c (balance): Don't core dump if DUMPCYLE is too
10780           big.
10781
10782 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10783
10784         * tape-src/tapetype.c: New -o option, doesn't overwrite amanda
10785           tape without -o.
10786         * man/amtapetype.8.in: Document new -o option.
10787
10788 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10789
10790         * server-src/amstatus.pl.in: Works with failed dump to tape.
10791
10792 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10793
10794         * client-src/sendbackup-gnutar.c (end_backup): Write warning message
10795           in not fatal error.
10796         * server-src/dumper.c (process_dumpline): Parse warning message.
10797         * server-src/reporter.c (handle_strange): Print warning message in
10798           the STRANGE summary.
10799
10800 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10801
10802         * server-src/driverio.c (free_serial): Set stable[s].dp to NULL.
10803         * server-src/driverio.c (disk2serial): Check that stable[s].dp == NULL.
10804
10805 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10806         Patch by Joe Rhett <jrhett@isite.net>
10807
10808         * common-src/alloc.c (safe_env): Keep SYSTEMROOT if __CYGWIN__.
10809
10810 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10811         Patch by Orion Poplawski <orion@cora.nwra.com>
10812
10813         * server-src/conffile.c (copy_dumptype): Copy maxpromoteday.
10814
10815 2004-08-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10816
10817         * client-src/selfcheck.c (check_disk): More check for CALCSIZE.
10818
10819 2004-08-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10820
10821         * common-src/amfeatures.h (fe_selfcheck_calcsize): New feature.
10822         * common-src/amfeatures.c (am_init_feature_set): Set
10823           fe_selfcheck_calcsize.
10824         * client-src/selfcheck.c: Check if calcsize binary is available if
10825           it is needed.
10826         * server-src/amcheck.c (start_host): Call selfcheck with CALCSIZE
10827           if it support fe_selfcheck_calcsize.
10828
10829 2004-08-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10830
10831         * man/amanda.8.in: Document 'estimate' dumptype option.
10832
10833 2004-08-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10834
10835         * server-src/amrmtape.sh.in: Understand history info.
10836
10837 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10838
10839         * server-src/driver.c: Typo.
10840
10841 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10842
10843         * server-src/amstatus.pl.in: Parse CONTINUE and RQ-MORE-DISK line,
10844           print if a dump is waiting for holding disk space (roomq).
10845
10846 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10847
10848         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
10849           Don't call free_serial().
10850         * server-src/driver.c (dumper_result): Call free_serial_dp(dp).
10851         * server-src/driverio.c (dumper_cmd): Remove CONTINUE cmd.
10852         * server-src/driverio.c (chunker_cmd): Print serial number for CONTINUE
10853           command.
10854         * server-src/driverio.c (disk2serial): Try to find a 'dp' before
10855           allocating a new serial.
10856         * server-src/driverio.c (free_serial_dp): New function to remove the
10857           serial for a dp.
10858         * server-src/driverio.h (free_serial_dp): Prototype.
10859         * server-src/chunker.c (databuf_flush): Read serial number for CONTINUE
10860           command.
10861
10862 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10863
10864         * server-src/planner.c (getsize): Do SERVER estimate, call sendsize with
10865           CALCSIZE estimate.
10866
10867 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10868
10869         * client-src/calcsize.c: Support exclude and include like gnutar,
10870           change in program argument.
10871         * client-src/sendsize.c: Execute calcsize as requested.
10872         * common-src/amfeatures.h (fe_calcsize_estimate): New feature.
10873         * common-src/amfeatures.c (am_init_feature_set): set
10874           fe_calcsize_estimate.
10875         * server-src/amcheck.c (start_host): Check if client support CALCSIZE
10876           estimate.
10877
10878 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10879
10880         * server-src/conffile.h (ES_CLIENT, ES_SERVER, ES_CALCSIZE): New define
10881           for estimate type.
10882         * server-src/conffile.h (dumptype_t): Add 'estimate' and 's_estimate'
10883         * server-src/conffile.c (get_estimate): New function to parse estimate
10884           type, ....
10885         * server-src/diskfile.c (read_diskline): Copy 'estimate'.
10886         * server-src/diskfile.h (disk_t): Add 'estimate'.
10887         * server-src/amadmin.c (disklist_one): Print estimate type.
10888
10889 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10890
10891         * common-src/match.c (match_tar, tar_to_regex): New fonction similar
10892           to the exclude option of tar.
10893         * common-src/amanda.h (match_tar, tar_to_regex): Prototype.
10894
10895 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10896
10897         * server-src/infofile.h (history_t): new struct.
10898         * server-src/infofile.h (info_t): Add a history_t.
10899         * server-src/infofile.c (read_txinfofile): Parse history data.
10900         * server-src/infofile.c (write_txinfofile): Print history data.
10901         * server-src/amadmin.c (export_one): export history data.
10902         * server-src/amadmin.c (import_one): import history data.
10903         * server-src/driverio.c (update_info_dumper): update history data.
10904
10905 2004-05-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10906         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
10907
10908         * server-src/planner.c: Log L_DISK for autoflush disk.
10909
10910 2004-05-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10911
10912         * server-src/planner.c (handle_result): Add dp to pestq at the
10913           correct place.
10914
10915 2004-04-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10916
10917         * common-src/amanda.h: #include "amanda-int.h" only if !CONFIGURE_TEST.
10918
10919 2004-04-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10920
10921         * config/acinclude.m4i (AX_CREATE_STDINT_H) : New macro.
10922         * configure.in: Use AX_CREATE_STDINT_H(common-src/amanda-int.h).
10923         * common-src/amanda.h: include "common-src/amanda-int.h".
10924         * changer-src/scsi-cam.c: Change u_int32_t for uint32_t.
10925
10926 2004-04-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10927
10928         * configure.in: Fix for automake 1.8.4.
10929         * config/acinclude.m4i: Fix for automake 1.8.4.
10930
10931 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10932
10933         * configure.in: Result of autoupdate.
10934
10935 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10936
10937         * config/config.guess: Update from automake 1.8.
10938         * config/config.sub: Update from automake 1.8.
10939         * config/depcomp: Update from automake 1.8.
10940         * config/install-sh: Update from automake 1.8.
10941         * config/missing: Update from automake 1.8.
10942         * config/mkinstalldirs: Update from automake 1.8.
10943         * config/ltmain.sh: Update from libtool-1.5.6.
10944         * config/libtool.m4i: Update from libtool-1.5.6.
10945
10946 2004-04-26  Marc Mengel <mengel@fnal.gov>
10947
10948         * tape-src/output-rait.c: Verify reads correctly.
10949
10950 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10951
10952         * server-src/driver.c (continue_dumps): Fix deadlock if holding disk
10953         fill up when in degraded mode.
10954
10955 2004-04-23  Eric Siegerman <eric_97@pobox.com>
10956
10957         Bug fix: amflush would run, and consume a tape, even if there
10958         were no Amanda directories waiting to be flushed:
10959         * common-src/sl.c (is_empty_sl): New function to test
10960           whether a list is empty.
10961         * common-src/sl.h (is_empty_sl): Prototype.
10962         * server-src/amflush.sh (main): Use is_empty_sl(),
10963           rather than ==NULL, to test emptiness of datestamp_list.
10964
10965 2004-04-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10966
10967         * server-src/planner.c (setup_estimate): Typo.
10968
10969 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10970
10971         Allow bumpsize, bumppercent, bumpdays and bumpmult to be in a dumptype.
10972         * server-src/conffile.c: Parse.
10973         * server-src/conffile.h: Define.
10974         * server-src/amadmin.c (disklist_one): Use.
10975         * server-src/diskfile.c (read_diskline): Initialize.
10976         * server-src/diskfile.h: Define.
10977         * server-src/planner.c: Use.
10978         * man/amanda.8.in: Document.
10979
10980 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10981         Fix by Paul Bijnens <paul.bijnens@xplanation.com>
10982
10983         * server-src/planner.c (setup_estimate): Only ask for level 0 estimate
10984           if strategy is noinc.
10985
10986 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10987         Documentation from Paul Bijnens <paul.bijnens@xplanation.com>
10988
10989         * man/amoverview.8.in: Document results.
10990
10991 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10992         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
10993
10994         * server-src/amoverview.pl.in: Print last two characters.
10995
10996 2004-04-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
10997
10998         * changer-src/chg-disk.sh.in: Fix for sh compatibility.
10999
11000 2004-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11001         Fix by John Koyle <jkoyle@rfpdepot.com>
11002
11003         * common-src/dgram.c: Fix EAGAIN on Linux.
11004
11005 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11006
11007         * server-src/amadmin.c (bumpsize): Typo.
11008
11009 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11010
11011         New bumppercent global option.
11012         * example/amanda.conf.in: Document it.
11013         * man/amanda.8.in: Document it.
11014         * server-src/amadmin.c (bumpsize): Write it.
11015         * server-src/conffile.c: Parse it.
11016         * server-src/conffile.h: Define It.
11017         * server-src/planner.c (bump_thresh): New size_level_0 parameter,
11018           use the new bumppercent option.
11019
11020 2004-04-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11021
11022         * server-src/amadmin.c: Rename host_t to amhost_t.
11023         * server-src/amcheck.c: Ditto.
11024         * server-src/amindexd.c: Ditto.
11025         * server-src/diskfile.c: Ditto.
11026         * server-src/diskfile.h: Ditto.
11027         * server-src/driver.c: Ditto.
11028         * server-src/planner.c: Ditto.
11029
11030 2004-03-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11031
11032         * amplot/amplot.awk: Parse "driver: tape size" line.
11033
11034 2004-03-22  Stefan G. Weichinger <monitor@oops.co.at>
11035
11036         * server-src/amcheck.c (start_host): Added warning for hostname
11037           localhost.
11038         * docs/TOP-TEN-QUESTIONS: added note about localhost-warning.
11039
11040 2004-03-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11041
11042         * docs/Makefile.am (pkgdata_DATA): Add TOP-TEN-QUESTIONS.
11043
11044 2004-03-18  Stefan G. Weichinger <monitor@oops.co.at>
11045
11046         * docs/TOP-TEN-QUESTIONS: New file.
11047
11048 2004-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11049
11050         * server-src/reporter.c (handle_success): Set stats[i].coutsize
11051           correctly.
11052         * server-src/taper.c: Do not subtract tt_blocksize_kb from filesize.
11053
11054 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11055
11056         * common-src/ssh-security.c: New ssh security driver.
11057         * common-src/Makefile.am (libamanda_la_SOURCES): Add ssh-security.c.
11058         * common-src/security.c: Add ssh security driver.
11059         * configure.in: Add --with-ssh-security. Define SSH_SECURITY.
11060
11061 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11062
11063         * server-src/amcheck.c: Do labelstr check in correct order.
11064
11065 2004-03-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11066
11067         Use only one time event for all dumpers, no wait event.
11068         start_some_dumps is called everytime a dumper or taper finish.
11069         * server-src/driver.c (dumpers_ev_time): New global event.
11070         * server-src/driver.c (start_some_dumps): Remove dumper argument,
11071           can start many dump.
11072         * server-src/driver.c (dumper_result): Call start_some_dumps instead
11073           of event_wakeup.
11074         * server-src/driver.c (handle_idle_wait): Remove function.
11075         * server-src/driver.c (handle_dumpers_time): new handle for
11076           dumpers_ev_time, it call start_some_dumps.
11077         * server-src/driverio.h (dumper_t): Remove ev_wait.
11078         * server-src/driverio.c (startup_dump_process): Don't set ev_wait.
11079
11080 2004-03-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11081
11082         * common-src/fileheader.c (print_header): Fix fprintf use.
11083         * client-src/amqde.c (parse_exclude_path): Fix = by ==.
11084         * common-src/protocol.c (s_repwait): Fix compiler warning.
11085         * common-src/rsh-security.c (runrsh): Fix compiler warning.
11086
11087 2004-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11088
11089         * common-src/pipespawn.c (pipespawn): Remove passwdvar and passwdfd.
11090
11091 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11092         Reported by Allen Liu <allen@bellglobal.com>
11093
11094         * server-src/amverifyrun.sh.in: Replace '-e' test by '-f'.
11095
11096 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11097
11098         * server-src/amcheck.c: Verify the tape is listed in the tapelist file.
11099         * server-src/taper.c: Ditto
11100
11101 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11102
11103         * server-src/driver.c (dump_schedule): Print complete name.
11104
11105 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11106
11107         The estimate send a PREP (partial REP) packet after each estimate.
11108         * client-src/amandad.c: Send PREP packet if sendsize.
11109         * common-src/amfeatures.c (am_init_feature_set): Add
11110           fe_partial_estimate.
11111         * common-src/amfeatures.h (am_feature_e): Add fe_partial_estimate.
11112         * common-src/packet.c (pktypes[]): Add PREP.
11113         * common-src/packet.h (pktype_t): Add P_PREP.
11114         * common-src/protocol.c (action_t): Add A_CONTPEND.
11115         * common-src/protocol.c: Handle P_PREP packet.
11116         * server-src/amstatus.pl.in: Parse "got partial result" line.
11117         * server-src/planner.c: Handle P_PREP packet.
11118
11119 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11120         Reported by Jason Brooks <jason.brooks@windriver.com>
11121
11122         * server-src/reporter.c: Remove duplicate setting of cd to
11123           &ColumnData[Level].
11124
11125 2004-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11126         Patch by Philippe Charnier <charnier@xp11.frmug.org>
11127
11128         * server-src/amtrmidx.c: Add '\n'.
11129
11130 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11131
11132         * recover-src/set_commands.c (cd_glob): Fix memory leak.
11133
11134 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11135
11136         * recover-src/set_commands.c (cd_dir, set_directory): Fix memory leak.
11137         * recover-src/uscan.l: Fix double amfree.
11138
11139 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11140
11141         * server-src/driver.c: Build holding disk name with timestamp.
11142         * server-src/holding.c (is_datestr): Check also for timestamp.
11143         * server-src/planner.c: Flush today's dump with autoflush.
11144         * server-src/find.c: Find holding disk with timestamp.
11145         * server-src/find.h (find_result_t): Add timestamp field.
11146
11147 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11148
11149         * changer-src/chg-zd-mtx.sh.in: Works if all slot and tape are full.
11150
11151 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11152
11153         * server-src/amverifyrun.sh.in: Do not execute amverify if no tape
11154           to verify.
11155
11156 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11157
11158         * server-src/amdump.sh.in: Do not redirect to /dev/null.
11159
11160 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11161
11162         * config/acinclude.m4i: Define CF_WAIT_INT.
11163         * configure.in: Call CF_WAIT_INT.
11164         * common-src/amanda.h: Try to make waitpid doesn't warn.
11165
11166 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11167
11168         * Makefile.am (EXTRA_DIST): Add contrib/mkamandisk.
11169
11170 2004-01-29  Christoph Pospiech <pospiech@de.ibm.com>
11171
11172         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-iomega.pl.
11173         * changer-src/Makefile.am (libexec_SCRIPTS) Add chg-iomega.
11174         * changer-src/chg-iomega.pl.in: New changer script.
11175         * docs/TAPE.CHANGERS: Document chg-iomega.
11176         * contrib/mkamandisk: Script to format iomega disk.
11177
11178 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11179
11180         * restore-src/amidxtaped.c (scan_init): Remove the log file if it exit.
11181
11182 2004-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11183
11184         * configure.in: Set GNUTAR_LISTED_INCREMENTAL_DIRX.
11185         * example/amanda.conf.in: Update record documentation.
11186         * man/amanda.8.in: Update record documentation.
11187
11188 2004-01-14  Stefan G. Weichinger <monitor@oops.co.at>
11189
11190         * docs/INSTALL: Add config for xinetd.
11191
11192 2004-01-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11193
11194         * server-src/planner.c (handle_result): Detect bad estimate (-1).
11195         * server-src/planner.c (analyze_estimate): Don't schedule level
11196           if the estimate is bad.
11197
11198 2003-12-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11199
11200         * docs/HOWTO-FILE-DRIVER: New file.
11201         * docs/TAPE.CHANGERS: Explain chg-disk.
11202         * docs/Makefile.am (pkgdata_DATA): add HOWTO-FILE-DRIVER.
11203
11204 2003-12-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11205
11206         * docs/SYSTEM.NOTES: Add a note about sendsize coredump on AIX.
11207
11208 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11209         Patch by Jean-Christian SIMONETTI <simonetti@echo.fr>
11210
11211         * changer-src/chg-disk.sh.in: New changer script.
11212         * changer-src/Makefile.am (libexec_SCRIPTS): Add chg-disk.
11213         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-disk.sh.
11214
11215 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11216
11217         * tape-src/tapetype.c: extern int optind.
11218         * tape-src/tapeio.c: extern int optind.
11219
11220 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11221         Patch by C.Scheeder <christoph.scheeder@scheeder.de>
11222
11223         * changer-src/sense.c (SenseType): Add "DAT AutoChanger" and "C1537A".
11224
11225 2003-11-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11226
11227         * server-src/driver.c: Print the tape size.
11228         * server-src/amstatus.pl.in: print % of tape use.
11229
11230 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11231
11232         * server-src/conffile.c (copy_dumptype): Copy in/exclude only if seen.
11233
11234 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11235
11236         * server-src/reporter.c (output_tapeinfo): Fix printing of new tape.
11237
11238 2003-11-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11239
11240         * server-src/amcheck.c (taperscan_slot): Deal with label not in
11241           tapelist case.
11242         * server-src/amtape.c (taperscan_slot): Ditto.
11243         * server-src/taper.c (taperscan_slot): Ditto.
11244
11245 2003-11-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11246
11247         * server-src/driver.c (handle_taper_result): Always call
11248           continue_dumps() in TRYAGAIN case.
11249
11250 2003-11-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11251
11252         * changer-src/chg-chio.pl.in (getTapeStatus): Set $drives[$num] to 0
11253         if no tape in drive.
11254
11255 2003-11-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11256
11257         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-AFS.
11258
11259 2003-11-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11260         Patch by Mitch Collinsworth <mitch@ccmr.cornell.edu>
11261
11262         * client-src/selfcheck.c: Skip accessibility check for AFS entries.
11263         * docs/HOWTO-AFS: New file.
11264
11265 2003-11-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11266
11267         * server-src/amadmin.c (tape): Display the next new tapes.
11268         * server-src/reporter.c (output_tapeinfo): Ditto.
11269
11270 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11271
11272         * docs/Makefile.am (pkgdata_DATA): Add chg-scsi.notes.
11273
11274 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11275
11276         * server-src/amcheck.c (taperscan_slot): Set found=3 if new tape.
11277         * server-src/amcheck.c (taper_scan): Handle found==3.
11278         * server-src/amtape.c (taperscan_slot): Set found=3 if new tape.
11279         * server-src/amtape.c (taper_scan): Handle found==3.
11280         * server-src/taper.c (taperscan_slot): Set found=3 if new tape.
11281         * server-src/taper.c (taper_scan): Handle found==3.
11282
11283 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11284
11285         * server-src/amcheck.c: Use stralloc(optarg).
11286         * tape-src/ammt.c: Use stralloc(optarg).
11287         * tape-src/tapetype.c: Use stralloc(optarg).
11288
11289 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11290         Patch by Jay Fenlason <fenlason@redhat.com>
11291
11292         * server-src/dumper.c: Don't set SIGCHLD to SIG_IGN.
11293
11294 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11295         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
11296
11297         * client-src/sendbackup-gnutar.c (AM_SIZE_RE): Fix regex for samba3.
11298
11299 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11300
11301         * server-src/amadmin.c (find): Call find_dump to allow dynamic disklist.
11302         * server-src/amindexd.c: Call find_dump to allow dynamic disklist.
11303         * server-src/amtrmidx.c:  Call find_dump to allow dynamic disklist.
11304         * server-src/diskfile.c (add_disk): Set device and todo.
11305         * server-src/find.c: Build disklist dynamicaly from log files.
11306         * server-src/find.h (find_dump): New prototype.
11307
11308 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11309
11310         * server-src/amlogroll.c: set_pname("amlogroll").
11311
11312 2003-10-24  Todd M. Kover <kovert@omniscient.com>
11313
11314         * add amqde for "quick and dirty estimates" under gnutar (program
11315           that will traverse the filesystem rather than invoke gnutar).
11316           controlled via configure option --with-qde.  This really wants to
11317           be configured in the server.
11318
11319 2003-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11320
11321         * server-src/amverify.sh.in: Fix usage message.
11322         * common-src/fileheader.c (print_header): fprintf to outf.
11323         * server-src/tapefile.c (lookup_last_reusable_tape): Check for
11324           tp->datestamp > 0.
11325         * server-src/amadmin.c (disklist_one): Don't print ':' on device line.
11326
11327 2003-10-23  Todd Kover <kovert@omniscient.com>
11328
11329         * make amrecover link against readline rather than libamanda so
11330           only amrecover would require the shared library (if it's found)
11331
11332 2003-10-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11333         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11334
11335         * client-src/amandates.c (finish_amandates): Call error() if the
11336           close of amdf fail.
11337         * common-src/amflock.c (create_lock): Return -1 if the close of f fail.
11338         * common-src/amflock.c (read_lock): Don't set f to NULL if the close
11339           fail.
11340         * server-src/tapefile.c (write_tapelist): Return 1 if the close of
11341           tapef fail.
11342
11343 2003-10-14  John R. Jackson (jrj@purdue.edu)
11344
11345         * docs/SYSTEM.NOTES: Add FreeBSD 5.1 note about setting the UDP packet
11346           size, compliments of Nicolas Ecarnot <nicolas.ecarnot@accim.com>.
11347
11348 2003-10-14  John R. Jackson (jrj@purdue.edu)
11349
11350         * client-src/sendsize.c: Handle case where PID's get re-used.
11351
11352 2003-10-14  John R. Jackson (jrj@purdue.edu)
11353
11354         * configure.in: Need to check for sys/gscdds.h on AIX to enable
11355           SCSI changer.
11356
11357 2003-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11358
11359         * common-src/genversion.c (prundefvar): New function to print an
11360           undefined variable.
11361         * common-src/genversion.c: Print undefined variable.
11362         * server-src/amcheck.c: Improve message for no LPRCMD defined.
11363
11364 2003-07-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11365
11366         * restore-src/amidxtaped.c: Don't clea re_label before checking
11367           for the changer.
11368
11369 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11370         Patch by Scott Mcdermott <smcdermott@questra.com>
11371
11372         * changer-src/chg-zd-mtx.sh.in (initial_poll_delay): New config
11373           variable to add a pause after a tape loading.
11374
11375 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11376         Fix by John E. Hein <jhein@timing.com>
11377
11378         * changer-src/chg-manual.sh.in: Quote @EGREP@.
11379         * changer-src/chg-null.sh.in: Quote @EGREP@.
11380
11381 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11382
11383         * amplot/amplot.sh.in: Remove files before runnig amplot.awk.
11384         * amplot/amplot.awk: Parse 'flush line', fix tape_wait line.
11385         * server-src/driver.c (read_flush): Write a 'flush size' to the
11386           debug file.
11387
11388 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11389
11390         * changer-src/chg-chio.pl.in: Fix next/prev command.
11391
11392 2003-07-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11393         patch by Paul Bijnens <paul.bijnens@xplanation.com>
11394
11395         * client-src/client_util.c (add_include): Count include with 2 /,
11396           Fix descriptor leak.
11397
11398 2003-06-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11399
11400         * server-src/amstatus.pl.in: Fix print spacing for idle dumpers.
11401
11402 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11403
11404         * server-src/holding.c: Fix compiler error.
11405         * server-src/planner.c: Use snprintf.
11406
11407 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11408         patch by Paul Bijnens <paul.bijnens@xplanation.com>
11409
11410         * tape-src/tapetype.c: Avoid a numerical overflow for large tape
11411           capacities.
11412
11413 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11414
11415         * server-src/amstatus.pl.in: Fix to failed tape.
11416
11417 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11418
11419         * server-src/planner.c (delay_dumps): Delay not delay forced full
11420           before forced full.
11421
11422 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11423
11424         * changer-src/chg-zd-mtx.sh.in: Log the changer file used.
11425
11426 2003-06-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11427
11428         * server-src/amverify.sh.in: Do not advance to next tape.
11429
11430 2003-06-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11431         patch by Eric Siegerman <eric_97@pobox.com>
11432
11433         * server-src/planner.c: Make promote_hills() honour maxpromotedays.
11434
11435 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11436
11437         * changer-src/scsi-bsd.c: Use pDev[DeviceFD].fd instead of DeviceFD.
11438         * changer-src/scsi-hpux_new.c:Use pDev[DeviceFD].fd instead of DeviceFD.
11439         * changer-src/scsi-linux.c: Use pDev[ip].fd instead of DeviceFD.
11440
11441 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11442
11443         * client-src/noop.c: #include "util.h".
11444
11445 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11446
11447         * server-src/amflush.c: Implement new -b and -s options.
11448         * man/amflush.8.in: Document it.
11449
11450 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11451
11452         * server-src/driver.c (dump_to_tape): Don't go in degraded mode if
11453           taper reply DONE.
11454
11455 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11456
11457         * tape-src/output-rait.c: Don't call waitpid if we didn't fork.
11458
11459 2003-06-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11460
11461         * server-src/amverify.sh.in: Use @MAXTAPEBLOCKSIZE@ instead of 32.
11462
11463 2003-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11464         Bug reported by Sven Rudolph <rudsve@drewag.de>
11465
11466         * server-src/holding.c (mkholdingdir): New function to create a holding
11467           directory.
11468         * server-src/holding.h (mkholdingdir): Prototype.
11469         * server-src/driver.c: Use mkholdingdir;
11470         * server-src/chunker.c: Call mkholdingdir before opening a file for
11471           writing.
11472
11473 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11474         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11475
11476         * server-src/amstatus.pl.in: Fix for missing amdump.1 or amflush.1.
11477
11478 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11479         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11480
11481         * server-src/amstatus.pl.in: If nothing is active, it now gives the
11482           status of the last run (amdump or amflush).
11483         * man/amstatus.8.in: Document it.
11484
11485 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11486
11487         * tape-src/output-file.c (check_online): Write error if opendir failed.
11488
11489 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11490         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11491
11492         * server-src/amoverview.pl.in: Use 'amadmin <conf> disklist' instead
11493           of parsing the disklist file.
11494
11495 2003-05-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11496
11497         * server-src/tapefile.c (read_tapelist,parse_tapeline): Fix for
11498           previous patch.
11499
11500 2003-05-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11501
11502         * common-src/versuff.c.in: Use @VERSION_SUFFIX@.
11503
11504 2003-05-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11505
11506         * example/amanda.conf.in: Add more amrecover_changer doc.
11507         * man/amanda.8.in: Add more amrecover_changer doc.
11508         * man/amrecover.8.in: Add more amrecover_changer doc.
11509
11510 2003-05-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11511
11512         * server-src/tapefile.c (read_tapelist): Ignore blank line.
11513         * server-src/tapefile.c (parse_tapeline): Newer status parameter, set
11514           it to '1' when reading blank line.
11515
11516 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11517
11518         * configure.in (AC_CHECK_HEADERS): Enleve linux/ftape-header-segment.h,
11519           linux/ftape-vendors.h et linux/ftape.h.
11520
11521 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11522         Patch by Darin Dugan <dddugan@iastate.edu>
11523
11524         * server-src/amcheck.c: Change subject in email if no error.
11525
11526 2003-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11527
11528         * common-src/error.c (output_error_message): Always prepend program
11529           name.
11530
11531 2003-04-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11532
11533         * server-src/amstatus.pl.in: Fix for estimate disk.
11534
11535 2003-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11536
11537         * server-src/taper.c: Read holding file correctly if blocksize != 32k.
11538
11539 2003-04-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11540         New file by Robert C Dege <RDege@northropgrumman.com>
11541
11542         * configure.in: Find mcutil binary.
11543         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-mcutil.sh and
11544           example/chg-mcutil.conf.
11545         * changer-src/Makefile (libexec_SCRIPTS): Add chg-mcutil.
11546         * changer-src/chg-mcutil.sh.in: New file.
11547         * example/Makefile (EXTRA_DIST): Add chg-mcutil.conf
11548         * example/chg-mcutil.conf.in: New file.
11549
11550 2003-04-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11551
11552         * man/amanda.8.in (blocksize): Document the --with-maxtapeblocksize
11553           configure option.
11554
11555 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11556
11557         * server-src/amverifyrun.sh.in: Run the amverify command.
11558
11559 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11560         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11561
11562         * server-src/reporter.c: Get the filenumber correct.
11563
11564 2003-04-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11565         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11566
11567         * server-src/reporter.c: Print a postscript label for each tape used.
11568
11569 2003-03-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11570
11571         * configure.in (*-sco3.2v4*): It is not like *-sco3.2v5*,
11572           define DEV_PREFIX and RDEV_PREFIX.
11573
11574 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11575
11576         * configure.in: Typo.
11577
11578 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11579         Patch by Gert Doering <gert@greenie.muc.de>
11580
11581         * client-src/getfsent.c (get_fstab_nextentry): Compile on *-sco3.2v4*.
11582
11583 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11584
11585         * configure.in: Compile on *-sco3.2v4*
11586
11587 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11588
11589         * configure.in: Use '=' instead of '=='.
11590
11591 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11592
11593         * recover-src/set_commands.c (set_tape): Recognize null:, rait:,
11594           file: and tape: as driver, not host name.
11595
11596 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11597
11598         * server-src/amrmtape.sh.in: Print better output.
11599
11600 2003-03-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11601
11602         * changer-src/Makefile.am (libexec_SCRIPTS): Missing \.
11603
11604 2003-03-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11605
11606         * client-src/client_util.c (add_include): If include contain 2 '/' then
11607           use at asis, don't try to match it.
11608
11609 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11610
11611         * server-src/changer.h (changer_label): Return an int.
11612         * server-src/changer.h (changer_label): First parameter is char *.
11613
11614 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11615
11616         * file tape-src/output-rait.c (rait_open): Call tapefd_set_master_fd();
11617         * file tape-src/tapeio.c (struct tape_info): Add master_fd field.
11618         * file tape-src/tapeio.c (tape_info_init): Set master_fd to -1;
11619         * file tape-src/tapeio.c (tapefd_getinfo_host, tapefd_getinfo_disk,
11620           tapefd_getinfo_level): Return info of master_fd.
11621         * file tape-src/tapeio.c (tapefd_set_master_fd): New function to set
11622           master_fd.
11623         * file tape-src/tapeio.h (tapefd_set_master_fd): Prototype.
11624
11625 2003-03-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11626
11627         * tape-src/output-file.c (file_tapefd_can_fork): New function that
11628           return 1 if the file: can be run under a forked process.
11629         * tape-src/output-file.h (file_tapefd_can_fork): Prototype.
11630         * tape-src/output-null.c (null_tapefd_can_fork): New function that
11631           return 1 if the null: can be run under a forked process.
11632         * tape-src/output-null.h (null_tapefd_can_fork): Prototype.
11633         * tape-src/output-rait.c (rait_close, rait_tapefd_ioctl): Fork only if
11634         * tapefd_can_fork() return 1.
11635         * tape-src/output-rait.c (rait_tapefd_can_fork): New function that
11636           return 1 if the rait: can be run under a forked process.
11637         * tape-src/output-rait.h (rait_tapefd_can_fork): Prototype.
11638         * tape-src/output-tape.c (tape_tapefd_can_fork): New function that
11639           return 1 if the tape: can be run under a forked process.
11640         * tape-src/output-tape.h (tape_tapefd_can_fork): Prototype.
11641         * tape-src/tapeio.c (struct virtualtape): Add xxx_tapefd_can_fork and
11642           initialize vtable[];
11643         * tape-src/tapeio.c (tapefd_can_fork): New function to can the driver
11644           xxx_tapefd_can_fork function.
11645         * tape-src/tapeio.h (tapefd_can_fork): Prototype.
11646
11647 2003-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11648
11649         * tape-src/output-file.c (file_tapefd_write): Call file_release(fd)
11650           before opening the file for writing.
11651
11652 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11653
11654         * changer-src/chg-zd-mtx.sh.in: Default for driveslot is 0.
11655
11656 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11657
11658         * amplot/amplot.sh.in: New -b option for b/w postscript.
11659         * amplot/amplot.awk: Add 'color' to command if bw is set.
11660         * amplot/amplot.g: Change line 6 to line 8.
11661         * man/amplot.8: Document -b option.
11662
11663 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11664
11665         * recover-src/extract_list.c: Fix the name of the
11666           amidxtaped.<timestamp>.debug file.
11667
11668 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11669         Patch by Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
11670         
11671         * restore-src/amidxtaped.c: Use the device sent by the changer.
11672
11673 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11674
11675         * restore-src/amidxtaped.c: Remove lock 'unlink(conf_logfile)' on
11676           all failure path.
11677
11678 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11679
11680         * server-src/changer.c: Sync with 2.4.4.
11681
11682 2003-02-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11683
11684         * client-src/client_util.c: Print error except ENOENT for
11685           exclude/include files.
11686
11687 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11688
11689         * tape-src/tapetype.c: Use %ld to print some variable.
11690
11691 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11692
11693         * server-src/conffile.c (init_defaults): conf_printer.s must be set
11694           with stralloc("").
11695
11696 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11697         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11698
11699         * tape-src/tapetype.c: Document -c option.
11700
11701 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11702
11703         * changer-src/chg-zd-mtx.sh.in:Print "are you sure your drive slot is n"
11704
11705 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11706
11707         * server-src/tapefile.c (read_tapelist): return 1 if can't open the
11708           tapelist file.
11709
11710 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11711
11712         * man/amtapetype.8.in: Add doc from a mail by John R. Jackson.
11713
11714 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11715
11716         * server-src/amcheck.c: New -a option.
11717         * man/amcheck.8.in: Document it.
11718
11719 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11720
11721         * server-src/amindexd.c (build_disk_table): Compare the level.
11722
11723 2003-02-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11724         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
11725
11726         * tape-src/tapetype.c: New -c argument to do only the compression test.
11727           Better detection of compression.
11728         * man/amtapetype.8.in: Document -c argument.
11729
11730 2003-02-09  John R. Jackson (jrj@purdue.edu)
11731
11732         * tape-src/tapetype.c: Allocate the I/O buffers on page boundaries.
11733           This helps performance on some OS's.
11734
11735 2003-02-08  John R. Jackson (jrj@purdue.edu)
11736
11737         * restore-src/amrestore.c: Clean up strtol() argument processing.
11738
11739 2003-02-08  John R. Jackson (jrj@purdue.edu)
11740
11741         * docs/INSTALL: Clean up supporting package versions and URL's.
11742
11743 2003-02-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11744
11745         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-CYGWIN.html.
11746
11747 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11748         Patch by Christophe Kalt <kalt@taranis.org>
11749
11750         * client-src/sendbackup-dump.c: New AM_SIZE_RE for NetApp.
11751         * client-src/sendsize.c: New re_size for NetApp.
11752
11753 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11754         Fix by Colin Henein <cmh@>
11755
11756         * common-src/amanda.h: Fix for the where S_ISDIR is not defined.
11757
11758 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11759         Patch by Doug Kingston <dpk@randomnotes.org>
11760
11761         * configure.in (NEED_SETUID_CLIENT): Set to false on *-pc-cygwin.
11762         * configure.in (WANT_SETUID_CLIENT): Set if NEED_SETUID_CLIENT != false.
11763         * client-src/Makefile.am: Don't chmod u+s if WANT_SETUID_CLIENT.
11764
11765 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11766         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
11767
11768         * man/amtapetype.8.in: Fix example.
11769
11770 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11771
11772         * common-src/amanda.h: #define S_ISDIR if not already defined.
11773
11774 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11775         File from Doug Kingston <dpk@randomnotes.org>
11776
11777         * docs/HOWTO-CYGWIN.html: New file.
11778
11779 2003-01-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11780
11781         * configure.in: Define WANT_RUNTIME_PSEUDO_RELOC on cygwin
11782         * client-src/Makefile.am: AM_LDFLAGS="-Wl,-enable-runtime-pseudo-reloc"
11783           if WANT_RUNTIME_PSEUDO_RELOC.
11784         * recover-src/Makefile.am: Ditto.
11785
11786 2003-01-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11787
11788         * tape-src/output-rait.h: #define stralloc strdup
11789         * tape-src/output-rait.c: Revert patch of 2003-01-26, we don't have
11790           vstralloc in standalone.
11791
11792 2003-01-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11793         Reported by Doug Kingston <dpk@randomnotes.org>
11794
11795         * recover-src/Makefile.am: Set AM_YFLAGS instead of YFLAGS.
11796
11797 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11798
11799         * tape-src/output-rait.c (tapeio_next_devname): Use vstralloc.
11800
11801 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11802
11803         * changer-src/chg-scsi-chio.c: Change strdup to stralloc.
11804         * changer-src/chg-scsi.c: Ditto.
11805         * changer-src/scsi-aix.c: Ditto.
11806         * changer-src/scsi-bsd.c: Ditto.
11807         * changer-src/scsi-cam.c: Ditto.
11808         * changer-src/scsi-changer-driver.c: Ditto.
11809         * changer-src/scsi-hpux_new.c: Ditto.
11810         * changer-src/scsi-irix.c: Ditto.
11811         * changer-src/scsi-linux.c: Ditto.
11812         * changer-src/scsi-solaris.c: Ditto.
11813         * changer-src/sense.c: Ditto.
11814         * tape-src/output-rait.c: Ditto.
11815
11816 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11817
11818         * server-src/taper.c (read_file): Don't count header in filesize.
11819
11820 2003-01-25  John R. Jackson (jrj@purdue.edu)
11821
11822         * tape-src/tapeio.c: Fix tape_access() and tape_stat() problem caused
11823           by indeterminate compiler order of evaluation.
11824
11825 2003-01-25  John R. Jackson (jrj@purdue.edu)
11826
11827         * restore-src/amidxtaped.c: Log errno when tape_stat fails.
11828         * restore-src/amrestore.c: Ditto.
11829         * tape-src/output-rait.c: Ditto.
11830
11831 2003-01-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11832
11833         * server-src/amstatus.pl.in: print an usage by tape.
11834
11835 2003-01-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11836
11837         * recover-src/extract_list.c (add_extract_item, delete_extract_item):
11838           Check also for level when comparing label.
11839
11840 2003-01-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11841
11842         Do not build chg-scsi-chio, it is buggy.
11843         * changer-src/Makefile.am (libexec_PROGRAMS): remove $(CHIO_SCSI).
11844         * changer-src/Makefile.am (EXTRA_PROGRAMS): add $(CHIO_SCSI).
11845
11846 2003-01-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11847
11848         * configure.in: disable amrestore if --without-server is set.
11849
11850 2003-01-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11851
11852         * client-src/amandad.c: Use the dbfd macro instead of the external
11853           variable db_fd.
11854         * client-src/selfcheck.c: Ditto.
11855         * client-src/sendbackup.c: Ditto.
11856         * client-src/sendsize.c: Ditto.
11857         * client-src/sendbackup-gnutar.c: Use save_errno instead of errno.
11858         * common-src/debug.c: Move most declaration inside #ifdef DEBUG_CODE.
11859         * server-src/amindexd.c: dup db_fd() to stderr.
11860         * server-src/conffile.c: Don't call error() if the config file does not
11861           exist, just write to stderr and set got_parserror.
11862
11863 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11864
11865         * recover-src/amrecover.c: Fix memory leak.
11866
11867 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11868
11869         Add new maxpromoteday option in a dumptype.
11870         * example/amanda.conf.in: Give an example
11871         * man/amanda.8.in: Document it.
11872         * server-src/amadmin.c: Print it in the disklist subcommand.
11873         * server-src/conffile.c: read it.
11874         * server-src/conffile.h (dumptype_t): Add maxpromoteday and
11875           s_maxpromoteday.
11876         * server-src/diskfile.c (read_diskline): Copy maxpromoteday from
11877           dumptype_t to disk_t.
11878         * server-src/diskfile.h (disk_t):  Add maxpromoteday.
11879         * server-src/planner.c (promote_highest_priority_incr): Don't promote
11880           a disk if est(dp)->next_level0 > dp->maxpromoteday.
11881
11882 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11883         Reported by Josh More <jmore@remote-print.com>
11884
11885         * client-src/client_util.c (add_exclude, add_include): Remove the
11886           need for MAXPATHLEN.
11887
11888 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11889         Fix by Josh More <jmore@remote-print.com>
11890
11891         * tape-src/output-tape.c: Add a ; after f = MT_UNLOAD
11892
11893 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11894         Undo patch of 2002-11-27. That doesn't work well for the planner.
11895
11896         * common-src/amanda.h (days_diff): Revert to old macro.
11897         * server-src/amadmin.c: Undo Fix for newer days_diff.
11898         * server-src/planner.c: Undo Fix for newer days_diff.
11899
11900 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11901
11902         * client-src/client_util.c: Fix memory leak reported by valgrind.
11903         * client-src/selfcheck.c: Ditto.
11904         * client-src/sendbackup.c: Ditto.
11905         * client-src/sendsize.c: Ditto.
11906         * common-src/amfeatures.c: Ditto.
11907         * common-src/debug.c: Ditto.
11908         * recover-src/amrecover.c: Ditto.
11909         * recover-src/extract_list.c: Ditto.
11910         * recover-src/set_commands.c: Ditto.
11911         * recover-src/uparse.y: Ditto.
11912         * recover-src/uscan.l: Ditto.
11913         * server-src/amindexd.c: Ditto.
11914         * server-src/amlabel.c: Ditto.
11915         * server-src/amtape.c: Ditto.
11916         * server-src/amtrmidx.c: Ditto.
11917         * server-src/amtrmlog.c: Ditto.
11918         * server-src/changer.c: Ditto.
11919         * server-src/conffile.c: Ditto.
11920         * server-src/driver.c: Ditto.
11921         * server-src/driverio.c: Ditto.
11922         * server-src/dumper.c: Ditto.
11923         * server-src/find.c: Ditto.
11924         * server-src/holding.c: Ditto.
11925         * server-src/logfile.c: Ditto.
11926         * server-src/planner.c: Ditto.
11927         * server-src/reporter.c: Ditto.
11928         * server-src/tapefile.c: Ditto.
11929         * server-src/taper.c: Ditto.
11930
11931 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11932
11933         * amplot/amplot.awk: Many fix.
11934
11935 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11936
11937         * server-src/planner.c (promote_highest_priority_incremental): Promote
11938           a disk > balanced size if no full today. Do not promote a disk it's
11939           the only disk due that day and no full today.
11940
11941 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11942         Patch by Brad Roberts <braddr@puremagic.com>
11943
11944         * server-src/amflush.c: Remove 2 redundant amfree call after remove_sl.
11945         * server-src/holding.c (get_flush): Ditto.
11946
11947 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11948
11949         * server-src/conffile.c: New taperalgo configuration keyword.
11950         * server-src/conffile.h: Ditto.
11951         * man/amanda.8.in: Document it.
11952         * server-src/driver.c (startaflush): New function to start a flush to
11953           tape.
11954
11955 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11956
11957         * server-src/diskfile.c (parse_diskline): Allow skip in dumptype.
11958
11959 2002-12-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11960
11961         * server-src/amstatus.pl.in: Parse features from PORT-WRITE line.
11962
11963 2002-12-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11964
11965         Don't use the G flag for samba backup restore by tar.
11966         * recover-src/extract_list.c (enum dumptypes): Add IS_SAMBA_TAR.
11967         * recover-src/extract_list.c (extract_files_child): Set dumptype to
11968           IS_SAMBA_TAR if it's a SAMBA backup. Don't pass the G flag to tar
11969           if it's IS_SAMBA_TAR.
11970
11971 2002-12-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11972
11973         * amplot/amplot.awk: Parse line with features, parse ENDFLUSH line.
11974
11975 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11976
11977         * server-src/planner.c (promote_highest_priority_incremental): Newer
11978           algorithm that reduce the number of level 0 by hosts on a single day.
11979
11980 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11981
11982         * amplot/amplot.awk: Parse newer log lines.
11983
11984 2002-12-11  Jean-Louis Martineau <martineau@iro.umontreal.ca> 
11985         * server-src/reporter.c (output_stats): Typo.
11986
11987 2002-12-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11988
11989         * server-src/reporter.c: Print an usage by tape.
11990
11991 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11992
11993         * tape-src/tapeio.c (do_read): Init count to 0.
11994
11995 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
11996
11997         * tape-src/Makefile.am: Install tapetype program as amtapetype.
11998         * docs/TAPETYPES: Change for amtapetype.
11999         * man/amtapetype.8.in: New man page
12000         * man/Makefile.am: Install it.
12001         * configure.in (AC_CONFIG_FILES): Add man/amtapetype.8.
12002
12003 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12004
12005         * tape-src/ammt.c (optind): Add prototype.
12006         * tape-src/amdd.c (optind): Add prototype.
12007
12008 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12009
12010         * common-src/arglist.h (printf_arglist_function,
12011           printf_arglist_function1, printf_arglist_function2): Define if
12012           STDC_HEADERS is not defined.
12013
12014 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12015
12016         * server-src/amstatus.pl.in: New --date option to display datestamp.
12017         * server-src/amstatus.pl.in: Increase some field size.
12018         * server-src/amstatus.pl.in: The host field adjust it's length to the
12019          largest.
12020
12021 2002-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12022
12023         * common-src/amanda.h (days_diff): Don't add a half day.
12024         * server-src/amadmin.c: Fix for newer days_diff.
12025         * server-src/planner.c: Fix for newer days_diff.
12026
12027 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12028
12029         * client-src/amandad.c: Fix compiler warning.
12030         * common-src/Makefile.am (bsdsecurity): Link with file.o.
12031         * common-src/bsd-security.c: Fix compiler warning.
12032         * common-src/bsd-security.c (construct_datestamp, construct_timestamp):
12033           Add function if TEST.
12034         * server-src/chunker.c: Fix compiler warning.
12035         * server-src/dumper.c: Fix compiler warning.
12036
12037 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12038
12039         * tape-src/tapetype.c: Cast time_t to long for printing.
12040
12041 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12042
12043         * server-src/amflush.c: Write a "amflush: start at ???" line.
12044         * server-src/amstatus.pl.in: parse the "amflush: start at ???" line.
12045
12046 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12047
12048         * server-src/planner.c (delay_dumps): Use snprintf.
12049
12050 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12051
12052         * common-src/debug.c: Most of the code must in #ifdef DEBUG_CODE.
12053         * client-src/client_util.c: Use AMANDA_TMPDIR instead of AMANDA_DBGDIR.
12054
12055 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12056
12057         * docs/TAPE.CHANGERS: Sync with 2.4.3.
12058
12059 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12060
12061         * server-src/amadmin.c: Cleanup.
12062
12063 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12064
12065         * man/amadmin.8.in: Document new --days option of balance subcommand.
12066
12067 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12068
12069         * server-src/amadmin.c (days_diff): Make next_level0 more acurate.
12070         * server-src/amadmin.c (balance): Improve output.
12071
12072 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12073
12074         * recover-src/extract_list.c: Add Retry and Skip command to amrecover.
12075
12076 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12077
12078         * tape-src/output-tape.c (tape_tapefd_fsf): Must not be static.
12079
12080 2002-11-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12081
12082         * server-src/reporter.c: Fix for LPRCMD not defined.
12083
12084 2002-11-14  Marc Mengel <mengel@fnal.gov>
12085
12086         New changer scripts for use with rait: code, run several other
12087         changers in tandem and return a rait: tape device.  Makes fake
12088         amanda.conf files under AMANDA_DEBUGDIR for each changer used,
12089         then cleans up.
12090
12091         * changer-src/chg-rait.sh.in:   New file. Multi-changer script.
12092         * changer-src/chg-null.sh.in:   New File. Null-device changer script.
12093         * docs/TAPE.CHANGERS:  Descriptions of above.
12094         * configure.in: added above files.
12095         * changer-src/Makefile.am: Likewise.
12096
12097 2002-11-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12098         Patch by Orion Poplawski <orion@colorado-research.com>
12099
12100         * server-src/planner.c (delay_dumps): Add the estimate size to all call
12101           of delay_one_dump.
12102
12103 2002-11-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12104
12105         * server-src/reporter.c: Increase width of some field.
12106
12107 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12108
12109         * changer-src/scsi-solaris.c (SCSI_ExecuteCommand): Init ret to 0.
12110
12111 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12112
12113         * recover-src/extract_list.c (delete_file): j is int.
12114         * changer-src/scsi-defs.h (B, B1): Check if already defined.
12115         * server-src/taper.c: Some cast to int.
12116         * tape-src/amdd.c (read_func, write_func): Complete prototype.
12117         * tape-src/tapeio.h (tapefd_read, tapefd_write): return ssize_t,
12118           third argument is size_t.
12119         * tape-src/tapeio.c: Ditto.
12120         * tape-src/output-file.h (file_tapefd_read, file_tapefd_write): return
12121           ssize_t, third argument is size_t.
12122         * tape-src/output-file.c: Ditto.
12123         * tape-src/output-null.h (null_tapefd_read, null_tapefd_write): return
12124           ssize_t, third argument is size_t.
12125         * tape-src/output-null.c: Ditto.
12126         * tape-src/output-rait.h (rait_read, rait__write): return ssize_t,
12127           third argument is size_t.
12128         * tape-src/output-rait.c: Ditto.
12129         * tape-src/output-tape.h (tape_tapefd_read, tape_tapefd_write): return
12130           ssize_t, third argument is size_t.
12131         * tape-src/output-tape.c: Ditto.
12132
12133 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12134
12135         * configure.in: socklen_t default to int.
12136         * common-src/dgram.c (dgram_recv): addrlen is socklen_t.
12137         * common-src/stream.c (stream_server): len is socklen_t.
12138         * recover-src/extract_list.c (add_file): j is int.
12139
12140 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12141
12142         * client-src/client_util.c (test_name_len) Remove variable.
12143         * common-src/match.c (len_prefix): Change type to int.
12144         * server-src/taper.c: Use %p to print pointer.
12145         * tape-src/amdd.c (read_func, write_func):Change return type to ssize_t.
12146         * tape-src/amdd.c (debug): Renamed to debug_amdd.
12147         * tape-src/ammt.c (debug): Renamed to debug_ammt.
12148
12149 2002-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12150
12151         * restore-src/amidxtaped.c: Fix restore from file.
12152
12153 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12154
12155         * restore-src/amidxtaped.c: Fix newline in string literal.
12156
12157 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12158
12159         * server-src/conffile.c (maxdumpsize): New option.
12160         * server-src/conffile.h: Ditto.
12161         * server-src/planner.c: Use maxdumpsize if set.
12162         * example/amanda.conf.in: Document it.
12163         * man/amanda.8.in: Document it.
12164
12165 2002-11-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12166
12167         * common-src/amfeatures.h (fe_amidxtaped_fsf, fe_amidxtaped_label,
12168           fe_amidxtaped_device, fe_amidxtaped_host, fe_amidxtaped_disk,
12169           fe_amidxtaped_datestamp, fe_amidxtaped_header, fe_amidxtaped_nargs,
12170           fe_amidxtaped_config): New features.
12171         * common-src/amfeatures.c (am_init_feature_set): Set new features.
12172         * recover-src/extract_list.c: Send new protocol data to amidxtaped.
12173         * restore-src/Makefile.am: amidxtaped.c need libamserver.
12174         * restore-src/amidxtaped.c: Read new protocol data from amrecover.
12175         * restore-src/amidxtaped.c: Use new configuration options.
12176         * server-src/conffile.c (conf_amrecover_do_fsf,
12177           conf_amrecover_check_label, conf_amrecover_changer): New config.
12178         * server-src/conffile.h: New config options.
12179         * example/amanda.conf.in: Document them.
12180         * man/amanda.8.in: Document them.
12181
12182 2002-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12183
12184         * autogen: touch config/config.h.in
12185         * configure.in: Patch from autoupdate-2.53 and LIBOBJS.
12186         * common-src/Makefile.am: Build versuff.o before version.o
12187         * recover-src/Makefile.am: Remove work around for automake-1.2
12188
12189 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12190
12191         * configure.in: Remove --disable-libtool.
12192         * */Makefile.am: Remove WANT_LIBTOOL.
12193
12194 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12195
12196         * changer-src/chg-scsi.c (config_name, config_dir): Remove declaration.
12197         * server-src/amadmin.c: Ditto.
12198         * server-src/amcheck.c: Ditto.
12199         * server-src/amcleanupdisk.c: Ditto.
12200         * server-src/amflush.c: Ditto.
12201         * server-src/amindexd.c: Ditto.
12202         * server-src/amlabel.c: Ditto.
12203         * server-src/amlogroll.c: Ditto.
12204         * server-src/amtape.c: Ditto.
12205         * server-src/amtrmidx.c: Ditto.
12206         * server-src/amtrmlog.c: Ditto.
12207         * server-src/chunker.c: Ditto.
12208         * server-src/diskfile.c: Ditto.
12209         * server-src/driver.c: Ditto.
12210         * server-src/dumper.c: Ditto.
12211         * server-src/getconf.c: Ditto.
12212         * server-src/planner.c: Ditto.
12213         * server-src/reporter.c: Ditto.
12214         * server-src/taper.c: Ditto.
12215         * server-src/conffile.c (config_name, config_dir): Add declaration.
12216
12217 2002-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12218
12219         * man/amrestore.8: Amrestore doesn't use a changer.
12220
12221 2002-11-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12222
12223         * configure.in (SHELL): Don't set it, libtool do it.
12224
12225 2002-10-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12226
12227         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.3.
12228
12229 2002-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12230
12231         * restore-src/amrestore.c: New '-l <label>' flag, Do a rewind and
12232           check the label before restoring.
12233         * man/amrestore.8: Document -l flag.
12234
12235 2002-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12236
12237         * configure.in (AM_HAVE_MT_FLAGS, AM_HAVE_MT_FILENO, AM_HAVE_MT_BLKNO,
12238           AM_HAVE_MT_DSREG,AM_HAVE_MT_ERREG): Rename to HAVE_MT_FLAGS,
12239           HAVE_MT_FILENO, HAVE_MT_BLKNO, HAVE_MT_DSREG and HAVE_MT_ERREG.
12240         * tape-src/output-tape.c: Ditto.
12241
12242 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12243         Undo patch of 2002-10-24. They are needed by amrecover.
12244
12245         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
12246           is_local_fstype): Add Prototype.
12247         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
12248           is_local_fstype): remove Prototype.
12249
12250 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12251         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
12252
12253         * tape-src/tapetype.c: Detects and warns the user if the tape drive
12254           has hardware compression enabled.
12255
12256 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12257
12258         * restore-src/amrestore.c: New '-f <fileno>' flag, Do a rewind and
12259           'fsf <fileno>' if -f is set.
12260         * man/amrestore.8: Document -f flag.
12261         
12262 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12263
12264         * common-src/amfeatures.h (fe_amindexd_fileno_in_OLSD, 
12265           fe_amindexd_fileno_in_ORLD): New amfeatures.
12266         * common-src/amfeatures.c (am_init_feature_set): Set
12267           fe_amindexd_fileno_in_OLSD and fe_amindexd_fileno_in_ORLD.
12268         * recover-src/amrecover.h (struct DIR_ITEM): Add fileno.
12269         * recover-src/display_commands.c (add_dir_list_item): Set fileno
12270           in struct DIR_ITEM.
12271         * recover-src/display_commands.c (suck_dir_list_from_server): Read
12272           fileno if fe_amindexd_fileno_in_OLSD is set.
12273         * recover-src/extract_list.c (struct EXTRACT_LIST): Add fileno.
12274         * recover-src/extract_list.c (add_file): Read fileno if
12275           fe_amindexd_fileno_in_ORLD is set.
12276         * recover-src/extract_list.c (delete_file): Read fileno if
12277           fe_amindexd_fileno_in_ORLD is set.
12278         * server-src/amindexd.c (opaque_ls): Write fileno if
12279           fe_amindexd_fileno_in_OLSD or fe_amindexd_fileno_in_ORLD are set.
12280
12281 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12282         patch by Doug Kingston <dpk@pobox.com>
12283
12284         * configure.in (NEED_PATH_ENV, IGNORE_UID_CHECK, IGNORE_FSTAB,
12285           DONT_SUID_ROOT): Defined if on *-pc-cygwin.
12286         * client-src/Makefile.am: Fix for cygwin.
12287         * client-src/getfsent.c: Don't use fstab if IGNORE_FSTAB.
12288         * client-src/killpgrp.c: Don't suid(0) if DONT_SUID_ROOT.
12289         * client-src/rundump.c: Don't suid(0) if DONT_SUID_ROOT.
12290         * client-src/runtar.c: Don't suid(0) if DONT_SUID_ROOT.
12291         * client-src/selfcheck.c (check_suid): Don't check uid if
12292           IGNORE_UID_CHECK.
12293         * common-src/alloc.c (safe_env): Add PATH to ENV if NEED_PATH_ENV.
12294         * recover-src/amrecover.c: Don't check uid if IGNORE_UID_CHECK.
12295
12296 2002-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12297
12298         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
12299           is_local_fstype): Remove Prototype.
12300         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
12301           is_local_fstype): Add Prototype.
12302
12303 2002-10-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12304
12305         * server-src/amindexd.c: New FEATURES command that read the features
12306           set from the client and reply the features set of the server.
12307         * recover-src/amrecover.h: include "amfeatures.h"
12308         * recover-src/amrecover.c: Send the FEATURES command to the server
12309           and read it's features set.
12310
12311 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12312
12313         * client-src/Makefile.am: Work around for CYGWIN.
12314         * server-src/Makefile.am: Ditto.
12315
12316 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12317
12318         * configure.in: Remove empty command from $program_transform_name.
12319
12320 2002-10-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12321
12322         * recover-src/extract_list.c (READ_TIMEOUT): Increased to 240*60.
12323
12324 2002-09-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12325
12326         * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined.
12327
12328 2002-09-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12329
12330         * server-src/amverifyrun.sh.in: New program.
12331         * man/amverifyrun.8.in: Man page for amverifyrun.
12332         * configure.in (AC_OUTPUT): add man/amverifyrun.8 and
12333           server-src/amverifyrun.sh.
12334         * man/Makefile.am (SERVER_MAN_PAGES): Add amverifyrun.8.
12335         * man/amanda.8.in: Add amdd, ammt and amverifyrun in SEE ALSO.
12336         * man/amverify.8.in: Add amverifyrun(8) in SEE ALSO.
12337         * server-src/Makefile.am (sbin_SCRIPTS): Add amverifyrun.
12338
12339 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12340
12341         * server-src/amverify.sh.in: Accept runtapes as a third argument.
12342         * man/amverify.8.in: Document it.
12343
12344 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12345
12346         * config/missing: Updated from automake-1.5.
12347
12348 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12349
12350         * config/config.guess: Updated from ftp://ftp.gnu.org/gnu/config/
12351         * config/config.sub: Updated from ftp://ftp.gnu.org/gnu/config/
12352
12353 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12354
12355         * client-src/sendsize.c (getsize_dump): Print the fstype.
12356         * client-src/sendbackup-dump.c (start_backup): Print the fstype.
12357
12358 2002-09-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12359         Patch by  Florian Hars <hars@bik-gmbh.de>
12360
12361         * changer-src/chg-zd-mtx.sh.in: Fix default value for cleancycle.
12362
12363 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12364
12365         * recover-src/extract_list.c (extract_files): print tape drive
12366           and host before asking to load tape.
12367
12368 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12369
12370         * server-src/taper.c (read_file): Initialize file, 
12371           stat(file.cont_filename) before opening it.
12372           
12373 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12374
12375         * server-src/amverify.sh.in: Don't check that the device is
12376           a character device, it could be a file: or rait:
12377
12378 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12379
12380         * common-src/amfeatures.c (am_set_default_feature_set):
12381           fe_rep_options_sendbackup_options is a default feature.
12382
12383 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
12384
12385         * server-src/amstatus.pl.in: Sort a disk in datestamp order.
12386
12387 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12388         Text by Jean-Francois Malouin <Jean-Francois.Malouin@bic.mni.mcgill.ca>
12389
12390         * docs/EXCLUDE: Improve documentation.
12391
12392 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12393
12394         * server-src/reporter.c: Fix compilation error if LPRCMD is not defined.
12395
12396 2002-08-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12397         Patch by Jason Brooks <jason0@mail.wrs.com>
12398
12399         * docs/chg-scsi.notes: New document.
12400         * changer-src/chg-scsi.c: Adding printout of "emubarcode" values 
12401           in the debug file.
12402         * changer-src/scsi-changer-driver.c: Added dlt8000 and L500 to 
12403           ChangerIO[].
12404         * changer-src/sense.c: Added dlt8000 and L500 to SenseType[].
12405
12406 2002-08-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12407
12408         * tape-src/output-null.c (null_tape_stat, null_tape_access): Use
12409           "/dev/null" instead of filename.
12410
12411 2002-08-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12412
12413         * changer-src/chg-mtx.sh.in: Sync with 2.4.3 branch.
12414         * changer-src/chg-scsi-chio.c: Ditto.
12415         * changer-src/chg-scsi.c: Ditto.
12416         * changer-src/scsi-aix.c: Ditto.
12417         * changer-src/scsi-bsd.c: Ditto.
12418         * changer-src/scsi-cam.c: Ditto.
12419         * changer-src/scsi-changer-driver.c: Ditto.
12420         * changer-src/scsi-defs.h: Ditto.
12421         * changer-src/scsi-hpux_new.c: Ditto.
12422         * changer-src/scsi-irix.c: Ditto.
12423         * changer-src/scsi-linux.c: Ditto.
12424         * changer-src/scsi-solaris.c: Ditto.
12425         * tape-src/tapeio.c: Ditto.
12426
12427 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12428
12429         * recover-src/uparse.y: Fix compiler warning.
12430
12431 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12432
12433         * server-src/amtrmidx.c: Continue if a directory doesn't exist.
12434
12435 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12436
12437         * man/amanda.8.in (tapecycle): Improve documentation.
12438
12439 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12440
12441         * server-src/amstatus.pl.in: Works with features.
12442
12443 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12444
12445         * common-src/amfeatures.c (am_feature_to_string): Return the string
12446           "UNKNOWNFEATURE" if no features.
12447         * common-src/amfeatures.c (am_string_to_feature): Return NULL if the
12448           string is "UNKNOWNFEATURE".
12449
12450 2002-08-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12451
12452         * common-src/file.c (debug_agets): line_free was badly set when
12453         the buffer size in increased.
12454
12455 2002-07-19  John R. Jackson (jrj@purdue.edu)
12456
12457         * common-src/amanda.h: Fix bad #define.
12458
12459 2002-07-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12460         Patch by
12461           David Munro <D.Munro@surrey.ac.uk>
12462
12463         * common-src/sl.c (new_sl): Alloc (sl_t) instead of (sl_t *).
12464           
12465 2002-06-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12466         Bug reported by 
12467           Jonathan R. Johnson <Jonathan.Johnson@MinnetonkaSoftware.com>
12468
12469         * server-src/reporter.c: Fix psfname filename.
12470
12471 2002-05-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12472
12473         * client-src/sendbackup.c: Don't do compression if it is server side.
12474         * client-src/sendbackup-dump.c: Ditto.
12475         * client-src/sendbackup-gnutar.c: Ditto.
12476
12477 2002-05-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12478         Patch by Manuel Bouyer <bouyer@antioche.lip6.fr>
12479
12480         * server-src/taper.c (detach_buffers): Fix compilation with mmap.
12481
12482 2002-04-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12483
12484         * recover-src/extract_list.c (extract_files): Set dump_device_name
12485           after the call of okay_to_continue.
12486
12487 2002-04-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12488
12489         New features to describe the OPTIONS line of a REP packet.
12490         * common-src/amfeatures.h: Add fetures fe_rep_options_maxdumps,
12491           fe_rep_options_hostname, fe_rep_options_features and
12492           fe_rep_options_sendbackup_options.
12493         * common-src/amfeatures.c (am_init_feature_set): Add
12494           fe_rep_options_features.
12495         * client-src/selfcheck.c: Write REP packet according to server features.        * client-src/sendbackup.c: Ditto.
12496         * client-src/sendsize.c: Ditto.
12497
12498 2002-04-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12499
12500         * common-src/amfeatures.h:
12501              Rename fe_g_options_maxdump  to fe_req_options_maxdumps
12502              Rename fe_g_options_hostname to fe_req_options_hostname
12503              Rename fe_g_options_features to fe_req_options_features
12504         * common-src/amfeatures.c: Ditto
12505         * server-src/amcheck.c: Ditto
12506         * server-src/dumper.c: Ditto
12507         * server-src/planner.c: Ditto
12508
12509 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12510
12511         * server-src/amcheck.c: Check if it can send features, hostname or
12512           maxdumps on the global options line. Don't send hostname and
12513           maxdumps for a noop service.
12514         * server-src/dumper.c: Ditto.
12515         * server-src/planner.c: Ditto.
12516
12517 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12518
12519         * client-src/sendbackup.c: (optionstr): Add srvcomp-best and
12520           srvcomp-fast options.
12521
12522 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12523
12524         * server-src/amcheck.c (start_host): Check the todo bit before 
12525           sending noop REQ.
12526
12527 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12528
12529         * client-src/client_util.c (parse_options, parse_g_options): Check
12530           for duplication options.
12531         * client-src/client_util.h (COMPR_SERVER_FAST, COMPR_SERVER_BEST):
12532           Declare.
12533         * client-src/selfcheck.c: Check for COMPR_FAST or COMPR_BEST.
12534
12535 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12536
12537         * client-src/selfcheck.c (host):Remove variable,use g_options->hostname.
12538         * client-src/sendbackup.c: Ditto.
12539         * client-src/sendsize.c: Ditto.
12540
12541 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12542
12543         * client-src/client_util.c (parse_g_options) New function to parse
12544           the global options string.
12545         * client-src/client_util.h (parse_g_options): Prototype.
12546         * client-src/selfcheck.c: use parse_g_options.
12547         * client-src/sendbackup.c: use parse_g_options.
12548         * client-src/sendsize.c: use parse_g_options.
12549
12550 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12551
12552         * server-src/diskfile.c: Improve message for missing features.
12553
12554 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12555
12556         Add many features.
12557         * common-src/amfeatures.c (am_set_default_feature_set): New function 
12558           to set the default features set.
12559         * common-src/amfeatures.h (am_set_default_feature_set): Prototype.
12560         * common-src/amfeatures.h: Rename amanda_feature_auth_keyword to 
12561           fe_options_auth.
12562         * client-src/client_util.c: Check features.
12563         * server-src/amcheck.c: Ditto.
12564         * server-src/diskfile.c: Ditto.
12565         * server-src/driverio.c: Ditto.
12566         * server-src/planner.c: Ditto.
12567         * server-src/diskfile.h (optionstr): Change prototype.
12568         * client-src/sendsize.c: Fix compiler warning.
12569
12570 2002-04-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12571
12572         * common-src/amfeatures.c: Include "amfeatures.h"
12573         * common-src/rsh-security.c: Don't assert on undefined variable.
12574
12575 2002-04-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12576
12577         * common-src/amfeatures.c: Renamed from features.c
12578         * common-src/amfeatures.h: Renamed from features.h
12579         * common-src/Makefile.am: Rename features to amfeatures.
12580         * client-src/amandad.c: Ditto.
12581         * client-src/client_util.h: Ditto.
12582         * client-src/selfcheck.c: Ditto.
12583         * client-src/sendbackup.c: Ditto.
12584         * client-src/sendsize.c: Ditto.
12585         * server-src/amcheck.c: Ditto.
12586         * server-src/chunker.h: Ditto.
12587         * server-src/diskfile.h: Ditto.
12588         * server-src/dumper.c: Ditto.
12589         * server-src/planner.c: Ditto.
12590         * server-src/taper.c: Ditto.
12591
12592 2002-04-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12593
12594         * server-src/conffile.c: Default dumporder set to "ttt".
12595         * server-src/driver.c: If dumporder is too short, use t and T.
12596         * man/amanda.8.in: Default dumporder set to "ttt".
12597
12598 2002-04-13  John R. Jackson (jrj@purdue.edu)
12599
12600         * common-src/features.c: Add amanda_feature_auth_keyword feature so
12601           authorization in the OPTIONS string is backward compatible.
12602         * common-src/features.h: Ditto.
12603         * client-src/client_util.c: Ditto.
12604         * client-src/client_util.h: Ditto.
12605         * client-src/selfcheck.c: Ditto.
12606         * client-src/sendbackup.c: Ditto.
12607         * client-src/sendsize.c: Ditto.
12608         * server-src/diskfile.c: Ditto.
12609         * server-src/planner.c: Fix compiler warning.
12610
12611 2002-04-13  John R. Jackson (jrj@purdue.edu)
12612
12613         * server-src/diskfile.c: Fix memory leak.
12614
12615 2002-04-13  John R. Jackson (jrj@purdue.edu)
12616
12617         * server-src/amcheck.c: Fix error parsing in packet.
12618
12619 2002-04-13  John R. Jackson (jrj@purdue.edu)
12620
12621         * common-src/features.c: New file.  Add support for feature sets so
12622           different Amanda versions can work together.
12623         * common-src/features.h: Ditto.
12624         * common-src/Makefile.am: Ditto.  Add "features" test program.
12625         * client-src/amandad.c: Add "noop" service to return the feature set.
12626         * client-src/selfcheck.c: Accept and return a feature set in OPTIONS.
12627           Improve parsing.
12628         * client-src/sendbackup.c: Ditto.
12629         * client-src/sendsize.c: Ditto.
12630         * common-src/bsd-security.c: Minor message change.
12631         * common-src/error.c: Use strcasecmp.
12632         * common-src/protocol.c: Use dbprintf for PROTO_DEBUG and improve
12633           messages.
12634         * restore-src/amidxtaped.c: Improve parsing.
12635         * server-src/amcheck.c: Ask for client features via "noop" before
12636           doing the real "selfcheck" service requests.  Improve parsing.
12637         * server-src/amflush.c: Minor coding format cleanup.
12638         * restore-src/amindexd.c: Improve parsing.
12639         * server-src/chunker.c: Deal with features string in commands.  Improve
12640           parsing.
12641         * server-src/diskfile.c: Initialize the features hosttype field.
12642         * server-src/diskfile.h: Add the features hosttype field.
12643         * server-src/driver.c: Save the features from the schedule.  Clean
12644           up some error messages.
12645         * server-src/driverio.c: Add features string to several commands.
12646         * server-src/dumper.c: Deal with features string in commands.  Improve
12647           parsing.
12648         * server-src/planner.c: Ask for client features via "noop" before
12649           doing the real "sendsize" service requests.  Improve parsing.
12650         * server-src/server_util.c: Minor coding cleanup.
12651         * server-src/server_util.h: Increase the number of args allowed on
12652           commands.
12653         * server-src/taper.c: Deal with features string in commands.  Improve
12654           parsing.
12655
12656 2002-04-12  John R. Jackson (jrj@purdue.edu)
12657
12658         * server-src/driver.c: Fix crash when only processing a tape queue
12659           (e.g. amflush).
12660
12661 2002-04-11  John R. Jackson (jrj@purdue.edu)
12662
12663         * server-src/driver.c: Protect against crash when taper has died.
12664
12665 2002-04-11  John R. Jackson (jrj@purdue.edu)
12666
12667         * common-src/stream.c: Clean up an error message.
12668
12669 2002-04-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12670
12671         * docs/DUMPER-API: Remove the section about USER and GROUP.
12672
12673 2002-04-09  John R. Jackson (jrj@purdue.edu)
12674
12675         * server-src/driver.c: Fix send of QUIT to taper when it is down.
12676
12677 2002-04-07  John R. Jackson (jrj@purdue.edu)
12678
12679         * server-src/dumper.c: Change sendbackup response parsing to handle
12680           2.4 changes.  Improve packet parse error processing.  Make packet
12681           logging conditional on an #ifdef instead of commented out.
12682
12683 2002-04-07  John R. Jackson (jrj@purdue.edu)
12684
12685         * client-src/amandad.c: Fix FORCE_USERID to run the service as the
12686           client user if amandad was started as root.
12687
12688 2002-04-07  John R. Jackson (jrj@purdue.edu)
12689
12690         * common-src/clock.c: Move definition of amanda_gettimeofday() macro
12691           to the header file so it could be used other places.  Use new
12692           amanda_timezone macro to avoid some #ifdef's.
12693         * common-src/clock.h: Ditto.
12694         * common-src/bsd-security.c: Fix compatibility problems with pre-2.5
12695           servers trying to talk to 2.5 clients.  The HANDLE value was not
12696           being properly handled, and the sequence number was being ignored.
12697
12698 2002-04-07  John R. Jackson (jrj@purdue.edu)
12699
12700         * server-src/reporter.c: Move column routines to conffile.c so amcheck
12701           can use them in its tests.  Do not abort on several failures, but
12702           generate messages in the FAILURE AND STRANGE DUMP SUMMARY section.
12703         * server-src/conffile.c: Move column routines to here.
12704         * server-src/conffile.h: Ditto.
12705         * server-src/amcheck.c: Add several config file tests.
12706         * server-src/logfile.c: Change "reporter" to "amreport".
12707
12708 2002-04-07  John R. Jackson (jrj@purdue.edu)
12709
12710         * configure.in: Add /usr/local/sbin to LOCPATH.
12711
12712 2002-03-31  John R. Jackson (jrj@purdue.edu)
12713
12714         * server-src/amcheck.c: Send maxdumps and hostname in packet OPTIONS.
12715
12716 2002-03-31  John R. Jackson (jrj@purdue.edu)
12717
12718         * changer-src/scsi-defs.h: Fix compiler warning and bug it was hiding.
12719         * changer-src/scsi-solaris.c: Ditto.
12720
12721 2002-03-31  John R. Jackson (jrj@purdue.edu)
12722
12723         * client-src/amandad.c: Fix arguments to pkt_cat.
12724         * common-src/bsd-security.c: Ditto.
12725
12726 2002-03-31  John R. Jackson (jrj@purdue.edu)
12727
12728         * client-src/amandad.c: Add relative timestamps to a lot of debug
12729           file messages, and add more messages, to better track what is
12730           going on.  Various general cleanup.
12731         * client-src/calcsize.c: Ditto.
12732         * client-src/client_util.c: Ditto.
12733         * client-src/selfcheck.c: Ditto.
12734         * client-src/sendbackup-dump.c: Ditto.
12735         * client-src/sendbackup-gnutar.c: Ditto.
12736         * client-src/sendbackup.c: Ditto.
12737         * client-src/sendbackup.h: Ditto.
12738         * client-src/sendsize.c: Ditto.
12739         * common-src/amanda.h: Ditto.
12740         * common-src/bsd-security.c: Ditto.
12741         * common-src/clock.c: Ditto.
12742         * common-src/clock.h: Ditto.
12743         * common-src/debug.c: Ditto.
12744         * common-src/dgram.c: Ditto.
12745         * common-src/error.c: Ditto.
12746         * common-src/file.c: Ditto.
12747         * common-src/pipespawn.c: Ditto.
12748         * common-src/stream.c: Ditto.
12749         * common-src/util.c: Ditto.
12750         * man/amanda.8.in: Ditto.
12751         * restore-src/amidxtaped.c: Ditto.
12752         * restore-src/amrestore.c: Ditto.
12753         * server-src/amindexd.c: Ditto.
12754         * server-src/getconf.c: Ditto.
12755         * server-src/planner.c: Ditto.
12756
12757 2002-03-31  John R. Jackson (jrj@purdue.edu)
12758
12759         * client-src/sendsize.c: Pay attention to the spindle number.
12760
12761 2002-03-30  John R. Jackson (jrj@purdue.edu)
12762
12763         * server-src/planner.c: General delay_dumps code cleanup.
12764
12765 2002-03-30  John R. Jackson (jrj@purdue.edu)
12766
12767         * server-src/planner.c: Make sure individual dumps larger than a tape
12768           are not added back into the schedule.  Found by Uncle George
12769           <gatgul@voicenet.com>.
12770
12771 2002-03-29  John R. Jackson (jrj@purdue.edu)
12772
12773         * man/amanda.8.in: Move "comment" in tapetype after inclusion of
12774           previous definition.  Found by Uncle George <gatgul@voicenet.com>.
12775
12776 2002-03-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12777
12778         * client-src/client_util.c (fixup_relative): New function to prepend
12779           the dirname if relative.
12780         * client-src/client_util.c (build_exclude, build_include): Use
12781           fixup_relative.
12782         * client-src/client_util.c (parse_options): Do not prepend the dirname.
12783         * client-src/selfcheck.c (check_options): Don't generate ERROR for samba
12784           if optional is set.
12785
12786 2002-03-24  John R. Jackson (jrj@purdue.edu)
12787
12788         * common-src/debug.c: Change dbopen() message slightly to match what
12789           amdump generates, making it easier to parse.
12790
12791 2002-03-24  John R. Jackson (jrj@purdue.edu)
12792
12793         * common-src/Makefile.am: Move clock routines to common-src so
12794           everyone may use them.
12795         * server-src/Makefile.am: Ditto.
12796
12797 2002-03-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12798
12799         * client-src/sendbackup-gnutar.c: Fix use of no_record.
12800
12801 2002-03-24  John R. Jackson (jrj@purdue.edu)
12802
12803         * client-src/amandad.c: Make sure argv[0] is valid before using it.
12804         * restore-src/amidxtaped.c: Ditto.
12805         * server-src/amindexd.c: Ditto.
12806
12807 2002-03-24  John R. Jackson (jrj@purdue.edu)
12808
12809         * client-src/client_util.c: Use the Amanda memory allocation code.
12810         * client-src/sendbackup-gnutar.c: Ditto.
12811         * client-src/sendsize.c: Ditto.
12812         * common-src/match.c: Ditto.
12813         * recover-src/amrecover.c: Ditto.
12814         * recover-src/display_commands.c: Ditto.
12815         * recover-src/extract_list.c: Ditto.
12816         * restore-src/amidxtaped.c: Ditto.
12817         * server-src/amflush.c: Ditto.
12818         * server-src/disk_history.c: Ditto.
12819         * server-src/driver.c: Ditto.
12820         * server-src/dumper.c: Ditto.
12821         * common-src/amanda.h: Always pass the source file and line number
12822           to the memory routines to make it easier to debug.
12823         * common-src/alloc.c: Ditto.
12824         * common-src/file.c: Ditto.
12825
12826 2002-03-23  John R. Jackson (jrj@purdue.edu)
12827
12828         * changer-src/chg-scsi-chio.c: Use agets instead of fgets.
12829         * changer-src/chg-scsi.c: Use agets instead of fgets.
12830         * client-src/client_util.c: Use agets instead of fgets.
12831         * recover-src/amrecover.c: Clean up output on EOF.
12832         * recover-src/extract_list.c: Use agets instead of direct stdio.
12833           Clean up output on EOF.  Add '?' help.
12834         * recover-src/set_commands.c: Quote the new device in the verify
12835           output to make it stand out.
12836         * server-src/amflush.c: Clean up output on EOF.  Clean up output
12837           when multiple holding disk areas selected.  Clean up parsing.
12838           Loop until valid user response.
12839         * server-src/find.c: Do not complain if log file is missing for
12840           a new (datestamp == 0) tape.
12841         * server-src/holding.c: Use agets instead of fgets. Clean up
12842           interactive input and output.
12843
12844 2002-03-23  John R. Jackson (jrj@purdue.edu)
12845
12846         * client-src/selfcheck.c: Fix a compiler warning.
12847         * client-src/sendbackup.c: Ditto.
12848         * client-src/sendsize.c: Ditto.
12849
12850 2002-03-23  John R. Jackson (jrj@purdue.edu)
12851
12852         * client-src/getfsent.c (close_fstab()): Call endfsent() instead
12853           of fclose(), if available.
12854
12855 2002-03-23  John R. Jackson (jrj@purdue.edu)
12856
12857         * common-src/dbprintf (debug_printf): Make sure errno is preserved
12858           across dbprint() calls.
12859
12860 2002-03-23  John R. Jackson (jrj@purdue.edu)
12861
12862         * configure.in: Add -R$dir as well as -L$dir on Solaris when processing
12863           --with-libraries to support shared libraries of support products.
12864
12865 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12866
12867         * server-src/chunker.c: Get result from dumper.
12868         * server-src/driver.c: Send dumper result to chunker.
12869         * server-src/driverio.c (chunker_cmd): Send DONE and FAILED command.
12870         * server-src/driverio.h (chunker_t): New down field.
12871         * server-src/dumper.c: Cleanup.
12872         * server-src/logfile.c (logtype_str): Add "PARTIAL".
12873         * server-src/logfile.h (logtype_e): Add L_PARTIAL log.
12874         * server-src/reporter.c: Handle PARTIAL log.
12875         * server-src/server_util.c (cmdstr): Add "PARTIAL".
12876         * server-src/server_util.h (cmd_t): Add PARTIAL command.
12877         * server-src/taper.c (read_file): Result is PARTIAL if dumper
12878           result is not DONE.
12879
12880 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12881
12882         * server-src/tapefile.c (write_tapelist): Write to a temp file and
12883           rename it.
12884         * server-src/amlabel.c: Do not rename the tapelist file.
12885         * server-src/taper.c (label_tape): Do not rename the tapelist file.
12886
12887 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12888
12889         * client-src/client_util.c (parse_options): Do not check if the
12890           exclude file exist, it's done later.
12891
12892 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12893
12894         * client-src/client_util.c (parse_options): Parse exclude-optional and
12895           include-optional.
12896         * client-src/client_util.h (option_t): New exclude_optional and
12897           include_optional field.
12898         * man/amanda.8.in: Document optional.
12899         * server-src/amadmin.c (disklist_one): Display optional.
12900         * server-src/conffile.c: Parse optional keyword.
12901         * server-src/conffile.h (dumptype_t): New exclude_optional and
12902           include_optional field.
12903         * server-src/diskfile.c (read_diskline): Copy optional bits.
12904         * server-src/diskfile.c (optionstr): Print optional bits.
12905         * server-src/diskfile.h (disk_t): New exclude_optional and
12906           include_optional field.
12907         * server-src/planner.c (getsize): Use new sendsize format if optional
12908           bits are used.
12909
12910 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12911
12912         * server-src/driver.c (dump_to_tape): Call start_degraded_mode() if
12913           taper failed.
12914
12915 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12916
12917         * recover-src/extract_list.c (extract_files_setup): Add ^$ to host.
12918
12919 2002-03-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12920         Patch from Michael Frankowski <mfrankow@winternet.com>
12921
12922         * client-src/sendbackup-gnutar.c: Test for subdir before dbprintf.
12923
12924 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12925
12926         * client-src/client_util.c (init_options): New function.
12927         * client-src/client_util.h (init_options): Prototype.
12928         * client-src/sendsize.c (main): Use init_options.
12929
12930 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12931
12932         * client-src/client-util.c: Check for include and exclude files.
12933
12934 2002-03-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12935
12936         * server-src/amstatus.pl.in: Fix.
12937         * server-src/conffile.c(get-compress): Change message for bad 
12938           compress argument.
12939
12940 2002-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12941
12942         * server-src/amstatus.pl.in: Fix.
12943         * client-src/client_util.c (parse_options): Parse auth= option.
12944         * client-src/client_util.h (option_t): Add auth field.
12945         * client-src/sendbackup.c: Use auth instead of bsd-auth.
12946         * client-src/sendsize.c: Init auth.
12947
12948 2002-03-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12949
12950         * client-src/sendbackup-dump.c: use amdevice as argument to
12951           amname_to_fstype.
12952         * client-src/sendsize.c: Use amdevice as argument to amname_to_dirname.
12953         * server-src/dumper.c: clear device if it is set to NODEVICE.
12954
12955 2002-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12956
12957         * server-src/amindexd.c: Compilation fix.
12958
12959 2002-03-07 John R. Jackson (jrj@purdue.edu)
12960
12961         * changer-src/chg-zd-mtx.sh.in: Allow whitespace on a VolumeTag line.
12962           Compliments of Christopher McCrory <chrismcc@pricegrabber.com>.
12963
12964 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12965
12966         * recover-src/amrecover.h (list_disk): Prototype.
12967         * recover-src/set_commands.c (list_disk): New function.
12968         * recover-src/uparse.y: parse LISTDISK.
12969         * recover-src/uscan.l: listdisk keyword.
12970         * recover-src/help.c: help for listdisk.
12971         * man/amrecover.8.in: Doc for listdisk.
12972         * server-src/amindexd.c: New LISTDISK command.
12973         * docs/INDEXING: Document LISTDISK command.
12974
12975 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12976
12977         * server-src/amstatus.pl.in: Better output for autoflush.
12978
12979 2002-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12980
12981         * server-src/amstatus.pl.in: Fix.
12982
12983 2002-03-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12984
12985         * server-src/amadmin.c (disklist_one): Print dp->device.
12986         * server-src/amcheck.c (start_host): Send device if specified.
12987         * server-src/amstatus.pl.in: Parse line with device.
12988         * server-src/diskfile.c (parse_diskline): Parse device.
12989         * server-src/diskfile.c (match_disklist): Match on device.
12990         * server-src/diskfile.h (disk_t): New field device.
12991         * server-src/driverio.c: (dumper_cmd): Send device.
12992         * server-src/dumper.c (main): Parse device in request.
12993         * server-src/dumper.c (start_dump): New device argument, send
12994           device to client.
12995         * server-src/planner.c (getsize): Send device to client.
12996         * server-src/server_util.h (MAX_ARGS): Set it to 12.
12997         * client-src/client_util.c (add_include, build_exclude, build_include,
12998           parse_options): New device argument.
12999         * client-src/client_util.h (build_exclude,build_include,parse_options):
13000           New prototype.
13001         * client-src/selfcheck.c: Use device.
13002         * client-src/sendbackup-dump.c: Use device.
13003         * client-src/sendbackup-gnutar.c: Use device.
13004         * client-src/sendbackup.c: Use device.
13005         * client-src/sendbackup.h (start_backup): New device argument.
13006         * client-src/sendsize.c: Use device.
13007         * man/amanda.8.in: Document new disklist syntax.
13008         * example/disklist: Give example.
13009
13010 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13011
13012         * server-src/amstatus.pl.in: Write "wait to flush" only if waittaper
13013           is requested.
13014
13015 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13016
13017         * server-src/amstatus.pl.in: Fix for failed tape.
13018
13019 2002-02-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13020
13021         * man/amanda.8.in: Document multiple exclude.
13022         * man/amanda.8.in: Document include.
13023
13024 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13025
13026         * client-src/client-util.c (add_include): Include are glob expression.
13027
13028 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13029
13030         * common-src/debug.c (debug_open); Don't try to renmae an already 
13031           renamed file.
13032
13033 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13034
13035         * server-src/conffile.c (dump_configuration): Print multiple 
13036           exclude and include.
13037
13038 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13039
13040         * client-src/client_util.c (add_exclude, add_include): Typo.
13041
13042 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13043
13044         * client-src/client_util.c (build_include, build_exclude): Fix for 
13045           bad eof detection.
13046
13047 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13048
13049         * client-src/client_util.c (get_name): Create a file name.
13050         * client-src/client_util.c (build_name): Remove old files,
13051           build an unused file name.
13052         * client-src/client_util.c (add_exclude): Add an exclude pattern to
13053           the exclude file.
13054         * client-src/client_util.c (add_include): Add an include to the
13055           include file.
13056         * client-src/client_util.c (build_exclude): Concat all excludes in 
13057           one file.
13058         * client-src/client_util.c (build_include): Concat all includes in 
13059           one file.
13060         * client-src/client_util.h (build_exclude, build_include): Prototype.
13061         * client-src/selfcheck.c.diff (check_options): Call build_exclude 
13062           and build_include.
13063         * client-src/sendsize.c.diff: Call gtar with one 
13064           exclude file/include file.
13065         * client-src/sendbackup-gnutar.c.diff: Call gtar with one 
13066           exclude file/include file.
13067
13068 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13069
13070         * common-src/amanda.h (amfree): Change e local variable to e__errno.
13071         * common-src/amanda.h (strappend): Change t local variable to t_t_t.
13072
13073 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13074
13075         * client-src/sendsize.c: Set include_file and include_list to NULL
13076           when using old protocol.
13077         * client-src/sendbackup-gnutar.c: Include "." when using old protocol.
13078
13079 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13080
13081         * server-src/conffile.h (dumptype_t): Add include_file and include_list.
13082         * server-src/conffile.c: Read include.
13083         * server-src/diskfile.h (disk_t): Add include_file and include_list.
13084         * server-src/diskfile.c (optionstr): Add include to the optionstr.
13085         * server-src/amadmin.c (disklist_one): Print include.
13086         * server-src/planner.c: Use new protocol if include is used.
13087         * client-src/client_util.h (option_t): Add include_file and include_list
13088         * client-src/client_util.c (parse_options): Parse include.
13089         * client-src/selfcheck.c (check_options): Print ERROR if include are 
13090           used for SAMBA or DUMP.
13091         * client-src/sendsize.c: Send include to gnutar.
13092         * client-src/sendbackup-gnutar.c: Send include to gnutar.
13093
13094 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13095
13096         * client-src/client_util.c (parse_options): Check that files from
13097           'exclude list' exist'.
13098         * client-src/selfcheck.c (check_options): Give ERROR if multiple
13099           exclude are used with samba or if exclude are used with DUMP.
13100
13101 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13102
13103         * client-src/sendbackup.h: Remove bad stuff introduced in previous
13104           patch.
13105         * client-src/sendbackup-gnutar.c: Ditto.
13106
13107 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13108
13109         * client_src/client_util.c (parse_options): Function to parse 
13110           the option string. 
13111         * client_src/client_util.h (parse_options): Prototype.
13112         * client_src/client_util.h (option_t): Struct for options.
13113         * client_src/Makefile.am: Compile client_util.
13114         * client_src/selfcheck.c: Use new option_t and multiple exclude.
13115         * client_src/sendbackup.h: Use new option_t and multiple exclude.
13116         * client_src/sendbackup.c: Use new option_t and multiple exclude.
13117         * client_src/sendbackup-dump.c: Use new option_t and multiple exclude.
13118         * client_src/sendbackup-gnutar.c: Use new option_t and multiple exclude.
13119         * client_src/sendsize.c: Use new option_t and multiple exclude.
13120         * server-src/conffile.h: Use sl_t for exclude_file and exclude_list.
13121         * server-src/conffile.c: Multiple exclude.
13122         * server-src/diskfile.h: Use sl_t for exclude_file and exclude_list.
13123         * server-src/diskfile.c: Multiple exclude.
13124         * server-src/planner.c: Multiple exclude.
13125
13126 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13127
13128         * common-src/pipespawn.c (pipespawnv): Typo, ap_snprintf -> snprintf.
13129
13130 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13131
13132         * common-src/pipespawn.c (pipespawnv): New funtion taking an 
13133           argv argument.
13134         * common-src/pipespawn.h (pipespawnv): Prototype.
13135
13136 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13137
13138         * server-src/holding.h: Use sl_t instead of holding_t
13139         * server-src/holding.c: Ditto.
13140         * server-src/amcleanupdisk.c: Ditto.
13141         * server-src/amflush.c: Ditto.
13142         * server-src/find.c: Ditto.
13143         * server-src/planner.c: Ditto.
13144
13145 2002-02-11 John R. Jackson (jrj@purdue.edu)
13146
13147         * configure.in: AIX needs the "other" getconf argument to find out
13148           about large file support (XBS5_ILP32_OFFBIG instead of LFS).
13149
13150 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13151
13152         * common-src/sl.h: New header file
13153         * common-src/sl.c: New file for list of string struct.
13154         * common-src/Makefile.am: Compile sl.c
13155
13156 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13157
13158         * changer-src/chg-zd-mtx.sh.in: Don't use '^' in expr match argument.
13159
13160 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13161
13162         * common-src/fileheader.c (build_header): Typo.
13163
13164 2002-02-10 John R. Jackson (jrj@purdue.edu)
13165
13166         * configure.in: Add new file-pad tapetype option to take the place
13167           of a positive/negative blocksize.  Blocksize may now only be
13168           positive.  File-pad defaults to "true" which pads the last tape
13169           record like it always has.
13170         * man/amanda.8.in: Ditto.
13171         * server-src/amlabel.c: Ditto.
13172         * server-src/conffile.c: Ditto.  Fix typo in conffile test program.
13173         * server-src/conffile.h: Ditto.
13174         * server-src/planner.c: Ditto.
13175         * server-src/taper.c: Ditto.
13176
13177 2002-02-10 John R. Jackson (jrj@purdue.edu)
13178
13179         * configure.in: Save the ./configure args and display them in the
13180           version string (e.g. amandad*debug and "amadmin xx version").
13181         * common-src/genversion.c: Ditto.
13182
13183 2002-02-10 John R. Jackson (jrj@purdue.edu)
13184
13185         * common-src/alloc.c: Fix type mismatch issues discovered by splint
13186           (www.splint.org).  Compliments of jens persson <jens@persson.cx>.
13187         * common-src/bsd-security.c: Ditto.
13188         * common-src/debug.c: Ditto.
13189         * common-src/dgram.c: Ditto.
13190         * common-src/file.c: Ditto.
13191         * common-src/fileheader.c: Ditto.
13192         * common-src/fileheader.h: Ditto.
13193         * common-src/genversion.c: Ditto.
13194         * common-src/getcwd.c: Ditto.
13195         * common-src/match.c: Ditto.
13196         * common-src/stream.c: Ditto.
13197         * common-src/strstr.c: Ditto.
13198         * common-src/token.c: Ditto.
13199         * recover-src/amrecover.c: Ditto.
13200         * recover-src/display_commands.c: Ditto.
13201         * recover-src/extract_list.c: Ditto.
13202         * recover-src/set_commands.c: Ditto.
13203         * server-src/reporter.c: Ditto.
13204
13205 2002-02-10 John R. Jackson (jrj@purdue.edu)
13206
13207         * changer-src/chg-zd-mtx.sh.in: Major cleanup and general overhaul.
13208         * docs/TAPE.CHANGERS: Cleanup.
13209
13210 2002-02-09 John R. Jackson (jrj@purdue.edu)
13211
13212         * common-src/arglist.h: Clean up gcc detection of printf style variable
13213           argument list functions.
13214         * changer-src/scsi-changer-driver.c: Ditto.
13215         * common-src/debug.c: Ditto.
13216         * common-src/dgram.c: Ditto.
13217         * common-src/error.c: Ditto.
13218         * common-src/packet.c: Ditto.
13219         * common-src/packet.h: Ditto.
13220         * common-src/security.c: Ditto.
13221         * common-src/snprintf.c: Ditto.
13222         * common-src/token.c: Ditto.
13223         * common-src/token.h: Ditto.
13224         * server-src/amindexd.c: Ditto.
13225         * server-src/conffile.c: Ditto.
13226         * server-src/diskfile.c: Ditto.
13227         * server-src/logfile.c: Ditto.
13228         * server-src/logfile.h: Ditto.
13229         * server-src/server_util.c: Ditto.
13230
13231 2002-02-09 John R. Jackson (jrj@purdue.edu)
13232
13233         * configure.in: Must look in both strings.h and string.h when trying
13234           to find function declarations (strncasecmp was not found on AIX
13235           but is really there and our override caused a mismatch error).
13236
13237 2002-02-09 John R. Jackson (jrj@purdue.edu)
13238
13239         * configure.in: Add code to test for a type defined in other than the
13240           autoconf expected locations.  Use it to look for socklen_t.
13241
13242 2002-02-08 John R. Jackson (jrj@purdue.edu)
13243
13244         * server-src/amadmin.c (check_dumpuser): Make it fatal to attempt to
13245           do an operation that would alter any files when run as someone other
13246           than the dump user from amanda.conf.  This should prevent files from
13247           ending up with incorrect ownership.
13248
13249 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13250
13251         * man/amrecover.8.in (settape): Document that the hostname is required
13252           if the protocol (tape:, file:, rait:, null:) is specified.
13253         * man/amrecover.8.in (settape): Document that it is posible to
13254           change the tape device when asked to load tape.
13255
13256 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13257
13258         * server-src/holding.c (scan_holdingdir): Create the list in 
13259           datestamp order.
13260
13261 2002-02-02 John R. Jackson (jrj@purdue.edu)
13262
13263         * configure.in: Add unistd.h to list of places to look for ruserok()
13264           declaration.  Reported by John Koenig <jfkoenig@vipb.com> on ALPHA
13265           running OSF1 v5.1
13266
13267 2002-02-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13268         Reported by Roland E. Lipovits <rel@lipo.at0.net>
13269
13270         * server-src/amstatus.pl.in: Don't double-counts the failed 
13271           estimate partitions.
13272
13273 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13274
13275         * configure.in: New --with-maxtapeblocksize with a default of 32.
13276         * common-src/amanda.h: MAX_TAPE_BLOCK_KB is defined in amanda.h
13277
13278 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13279
13280         * common-src/fileheader.c (build_header): Never write the
13281           BLOCKSIZE= line.
13282         * common-src/fileheader.c (parse_file_header): Do not parse the
13283           BLOCKSIZE= line.
13284
13285 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13286
13287         * common-src/fileheader.c (build_header): Write the BLOCKSIZE= line
13288           after the dd if=... line.
13289
13290 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13291
13292         * server-src/driver.c: Init code to 0.
13293
13294 2002-01-29 John R. Jackson (jrj@purdue.edu)
13295
13296         * tape-src/output-tape.c (tape_tapefd_fsf): Some systems cannot deal
13297           with large stack variables, so allocate tape I/O buffers dynamically.
13298         * tape-src/tapeio.c (tapefd_rdlabel): Ditto.
13299
13300 2002-01-25 John R. Jackson (jrj@purdue.edu)
13301
13302         * server-src/driver.c: Log non-zero exit codes and signals from all
13303           the dumpers and taper.
13304
13305 2002-01-25 John R. Jackson (jrj@purdue.edu)
13306
13307         * server-src/amindexd.c: Clean up reporting of errors by gethostby*()
13308           functions.  Make sure they always report what they were trying to
13309           look up, and don't bother reporting errno (it would be h_errno).
13310
13311 2002-01-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13312
13313         * common-src/fileheader.h (dumpfile_t): Add blocksize field.
13314         * common-src/fileheader.h (build_header): Change prototype.
13315         * common-src/fileheader.c (fh_init): blocksize default to 
13316           DISK_BLOCK_BYTES.
13317         * common-src/fileheader.c (parse_file_header): Parse BLOCKSIZE= line.
13318         * common-src/fileheader.c (build_header): Remove blocksize parameter, 
13319           write the BLOCKSIZE= line.
13320         * tape-src/tapeio.c: set file.blocksize, Change call to build_header.
13321         * restore-src/amrestore.c: Ditto.
13322         * server-src/dumper.c: Ditto.
13323         * server-src/taper.c: Ditto.
13324         * server-src/holding.c: Ditto.
13325         * server-src/chunker.c: Ditto.
13326
13327 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13328
13329         * changer-src/scsi-changer-driver.c (SCSI_ReadElementStatus):
13330           set ret to -1.
13331
13332 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13333
13334         * server-src/planner.c: Check for dp->todo.
13335
13336 2002-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13337         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
13338
13339         * changer-src/chg-scsi.c: Typo.
13340
13341 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13342
13343         * changer-src/Makefile.am: Run `perl -c' on perl script.
13344         * client-src/Makefile.am: Ditto.
13345         * dumper-src/Makefile.am: Ditto.
13346         * server-src/Makefile.am: Ditto.
13347
13348 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13349         Reported by Geert Uytterhoeven <geert@linux-m68k.org>
13350
13351         * README: Amanda compile on Linux/m68k.
13352
13353 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13354
13355         * changer-src/chg-rth.pl.in: Typo. fi -> }.
13356
13357 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13358         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
13359
13360         * changer-src/chg-chio.pl.in: Typo. fi -> }.
13361         * changer-src/chg-chio.pl.in (prefix, exec_prefix): Set correctly.
13362         * changer-src/chg-chio.pl.in (max_picker): Init to -1.
13363
13364 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13365
13366         * recover-src/extract_list.c (okay_to_continue_tape): Ignore \n
13367           at end of string.
13368
13369 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13370
13371         * server-src/amoverview.pl.in: Ignore some line from amadmin.
13372
13373 2002-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13374
13375         * common-src/event.c: Use ASSERTIONS not ASSERT.
13376
13377 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13378
13379         * tape-src/output-tape.c (tape_tapefd_rewind, tape_tapefd_unload):
13380           Init rc to -1.
13381         * changer-src/scsi-irix.c (SCSI_OpenDevice): Cast to int.
13382         * common-src/match.c (clean_regex): Cast to int.
13383
13384 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13385         Reported by <ian.willis@sge.net>
13386
13387         * common-src/rsh-security.c: Fix for RSH_DEBUG.
13388
13389 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13390
13391         * config/ltconfig: Remove
13392         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.2.
13393         * config/config.guess: Update from
13394           ftp://ftp.gnu.org/gnu/config/config.guess
13395         * config/config.sub: Update from 
13396           ftp://ftp.gnu.org/gnu/config/config.sub
13397         * config/depcomp, config/install-sh, config/missing, 
13398           config/mkinstalldirs: Update from automake 1.5
13399         * config/Makefile.am (EXTRA_DIST): Remove ltconfig.
13400
13401 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13402         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
13403
13404         * configure.in: Add missing [.
13405
13406 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13407         Patch by Jason Thomas <jason@topic.com.au>
13408              and Eric Siegerman <erics@telepres.com>
13409
13410         * common-src/bsd-security.c (check_user_amandahosts): improve message.
13411
13412 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13413
13414         * server-src/driver.c: Do not go in degraded mode in nodump mode.
13415         * server-src/conffile.c:Check many options to be sure they are positive.
13416
13417 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13418
13419         * changer-src/chg-scsi.c (get_relative_target): return -1;
13420         * changer-src/scsi-irix.c (SCSI_ExecuteCommand): Remove Zero variable.
13421         * common-src/amanda.h: include strings.h if HAVE_STRINGS_H is defined.
13422         * server-src/amadmin.c (info_one): Remove lev0date variable.
13423         * server-src/amadmin.c (import_db): Remove vers_comment variable.
13424         * server-src/amindexd.c (main): Remove arg_len variable.
13425         * server-src/amtrmidx.c (main): Remove level_position and
13426           datestamp_position variables.
13427         * server-src/changer.c (changer_current): Remove checked variable.
13428         * server-src/conffile.c (read_confline): Check value of RESERVE.
13429         * server-src/conffile.c (get_tapetype): Check value of LENGTH and
13430           FILEMARK.
13431         * server-src/diskfile.h: bit field of 1 bit must be unsigned.
13432         * server-src/driver.c (main): Don't check the value of RESERVE.
13433         * server-src/driver.c (find_diskspace): Remove as_pref variable.
13434         * server-src/driverio.c (getresult): cast cmd_t.
13435         * server-src/chunker.c (databuf_flush): save_type is a filetype_t.
13436         * server-src/find.c (search_logfile): Remove host_undo_ch and
13437           disk_undo_ch variables.
13438         * server-src/holding.c (pick_datestamp): Remove result variable.
13439         * server-src/server_util.c (getcmd): Loop on a cmd_t variable.
13440         * server-src/taper.c (tape_writer_side): Remove out_open variable.
13441         * tape-src/tapeio.c (tapefd_close): Cast to (void *).
13442
13443 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13444
13445         * client-src/selfcheck.c: Fix compiler warning.
13446         * changer-src/chg-scsi.c: Ditto.
13447         * changer-src/scsi-changer-driver.c: Ditto.
13448         * changer-src/scsi-defs.h: Ditto.
13449         * server-src/server_util.c: Ditto.
13450         * common-src/fileheader.c: Ditto.
13451
13452 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13453
13454         * configure.in: Set MAX_TAPE_BLOCK_KB on linux
13455
13456 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13457         Patch by Blaz Zupan <blaz@amis.net>
13458
13459         * changer-src/chg-zd-mtx.sh.in: typo.
13460
13461 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13462
13463         * client-src/selfcheck.c (check_access): New function (old check_file
13464           function).
13465         * client-src/selfcheck.c (check_file): Check that the filename is a
13466           file.
13467         * client-src/selfcheck.c (check_dir): Check that dirname is a directory.
13468
13469 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13470         Patch by Henning Schmiedehausen <henning@forge.intermeta.de>
13471
13472         * common-src/file.c (safe_cd): Create the AMANDA_DBGDIR and
13473           AMANDA_TMPDIR directory.
13474
13475 2001-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13476
13477         * server-src/amverify.sh.in: Check that @AMANDA_TMPDIR@ exist.
13478         * server-src/amrmtape.sh.in: Ditto.
13479
13480 2001-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13481
13482         * changer-src/Makefile.am: fix setting of libexec_PROGRAMS.
13483
13484 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13485
13486         * server-src/amstatus.pl.in: Work with amflush log.
13487
13488 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13489
13490         * server-src/driver.c (nodump): new argument, Don't start the dumpers
13491           if set.
13492         * server-src/holding.c (get_flush): chdir to original cwd.
13493         * server-src/reporter.c: accept driver and amflush line in log.
13494         * server-src/amflush.c: exec driver to do the flushing.
13495
13496 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13497
13498         * server-src/amstatus.pl.in: Fixup for estimate, write flush line.
13499
13500 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13501
13502         * recover-src/extract_list.c: You can change the tape device
13503           between each tape.
13504
13505 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13506
13507         * restore-src/amrestore.c (restore): try to find the next chunk 
13508           in the current directory.
13509
13510 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13511
13512         * example/amanda.conf.in: typo.
13513
13514 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13515
13516         Patch by Roland E. Lipovits <rel@lipo.at0.net>
13517         * example/amanda.conf.in: typo.
13518
13519 2001-12-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13520
13521         * server-src/dumper.c, server-src/taper.c, server-src/chunker.c:
13522         Replace TRY_AGAIN by TRYAGAIN.
13523
13524 2001-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13525         Patch by Michael D. Beynon <beynon@ll.mit.edu>
13526
13527         * server-src/driver.c (main): Take care of empty tapeq.
13528
13529 2001-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13530
13531         * server-src/diskfile.c (lookup_host): Match must be exact.
13532
13533 2001-11-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13534
13535         * server-src/planner.c: Add host, disk, datestamp and level on 
13536         FLUSH line. Add datestamp on DUMP line.
13537         * server-src/driver.c (read_flush): Read new format of FLUSH line.
13538         * server-src/driver.c (read_schedule): Read new format of DUMP line.
13539         * server-src/amflush.c: Write a datestamp on stderr.
13540         * server-src/amdump.sh.in: Write a datestamp on stderr.
13541         * server-src/amstatus.pl.in: Works with autoflush.
13542
13543 2001-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA> 
13544         * server-src/conffile.c (autoflush): New configuration options.
13545         * server-src/conffile.h (autoflush): New configuration options.
13546         * man/amanda.8.in: Document it.
13547         * example/amanda.conf.in: Document it.
13548         * server-src/holding.h (get_flush, pick_datestamp, pick_all_datestamp,
13549         cleanup_holdingdisk): New prototype.
13550         * server-src/holding.c (scan_holdingdir, cleanup_holdingdisk,
13551         get_flush): New function.
13552         * server-src/holding.c (pick_datestamp, pick_all_datestamp): New
13553         verbose argument.
13554         * server-src/amcleanupdisk.c: Change call to pick_all_datestamp.
13555         * server-src/amflush.c: Change call to pick_all_datestamp.
13556         * server-src/find.c: Change call to pick_all_datestamp.
13557         * server-src/planner.c: Write FLUSH line to driver, the schedule
13558         line contain the keyword DUMP.
13559         * server-src/planner.c: Add datestamp to SUCCESS and FAIL line.
13560         * server-src/amstatus.pl.in: New parsing of DUMP line.
13561         * server-src/driverio.h: New datestamp field in sched_t;
13562         * server-src/driver.c (build_diskspace): New function to build a
13563         assignedhd_t from an holding file.
13564         * server-src/driver.c (read_flush): New function to read the list
13565         of files to flush.
13566         * server-src/driver.c (read_schedule): Parse the keyword DUMP.
13567         * server-src/driver.c: Add datestamp to FAIL line.
13568         * server-src/dumper.c: Add datestamp to FAIL line.
13569         * server-src/reporter.c (timedata_t, repdata_t) : Major change of
13570         structure.
13571         * server-src/taper.c: Add datestamp to FAIL line.
13572
13573 2001-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13574
13575         * server-src/conffile.c: New dumporder configuration.
13576         * server-src/conffile.h: Likewise.
13577         * server-src/driver.c (start_some_dumps): Use dumporder to
13578         select the next disk to dump.
13579         * example/amanda.conf.in: Give an example of dumporder.
13580         * man/amanda.8.in: Document it.
13581
13582 2001-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13583
13584         * recover-src/amrecover.h (cd_glob, cd_regex, cd_dir): New prototypes.
13585         * recover-src/set_commands.c (cd_glob, cd_regex, cd_dir): New functions.
13586         * recover-src/uparse.y: Add new token CDX, call cd_glob instead 
13587         of set_directory for cd command, call cd_regex for cdx command.
13588         * recover-src/uscan.l: On cdx string return CDX token.
13589         * recover-src/help.c: Document it.
13590         * man/amrecover.8.in: Document it.
13591
13592 2001-09-26 John R. Jackson (jrj@purdue.edu)
13593
13594         * server-src/reporter.c: Fix problem when column sizes are negative.
13595
13596 2001-09-21 John R. Jackson (jrj@purdue.edu)
13597
13598         * server-src/Makefile.am: Add -I../common-src so genversion.h can be
13599           found (since it is built on the fly).  Only fails when build is done
13600           in a different directory than the sources.
13601
13602 2001-09-17 John R. Jackson (jrj@purdue.edu)
13603
13604         * server-src/getconf.c: Add capabilities to amgetconf to return
13605           build environment values and also to open and close a debug file
13606           (e.g. for scripts).
13607         * man/amgetconf.8.in: Ditto.
13608         * changer-src/chg-scsi.c: Ditto.
13609         * common-src/amanda.h: Ditto.
13610         * common-src/debug.c: Ditto.
13611         * common-src/error.c: Ditto.
13612         * server-src/dumper.c: Ditto.
13613
13614 2001-09-17 John R. Jackson (jrj@purdue.edu)
13615
13616         * server-src/planner.c: Make sure we do not attempt to bump beyond
13617           level 9.
13618
13619 2001-09-16 Thomas Hepper (th@ant.han.de)
13620         * changer-src/chg-scsi.c: Added new config option autoinv, 
13621         if not set no auto inventory will be done if the label db is out of 
13622         sync. Reworked MapBarCode, now the parameters are passed as a struct 
13623         and the result is returned in this struct (MBC_T), 
13624         also removed some duplicate/nonsens code from MapBarCode
13625         Changed the definitions for slot_file. It was used duplicate, 
13626         1. as the config file set by amanda.conf, and second set by the
13627         config option in the chg-scsi config file. Now the file from
13628         amanda.conf is called chg_scsi_conf. and changer_file is renamed 
13629         to slot_file.
13630         Added check if cleanfile is not set, if true clean_file is set to NULL
13631         Now return if tape_device is not in the range 0-9.
13632         Added some checks if we have all informations like slot_file, 
13633         devices etc. Fixed and error in the search function, 
13634         if the searched vol is already loaded return the correct info 
13635         and not 'label not found'. Fixed error in the parameter passing 
13636         to get_relative_slot. If the option was -slot last we where 
13637         1 above the end parameter..
13638
13639         * changer-src/scsi-bsd.c: Fix compile problems.
13640         * changer-src/scsi-changer-driver.c: Fixed the last problems :-) 
13641         for the label/barcode handling...
13642         * changer-src/scsi-defs.h: Added new struct MBC_T
13643         * changer-src/sense.c: Added some more messages for Exabyte 210 lib
13644
13645 2001-09-01 John R. Jackson (jrj@purdue.edu)
13646
13647         * client-src/sendsize.c: Fix memory allocation problem.
13648
13649 2001-08-31 John R. Jackson (jrj@purdue.edu)
13650
13651         * server-src/amindex.c: Fix memory leak.  Compliments of Robert Minsk
13652           <egbert@centropolisfx.com>.
13653         * server-src/logfile.c: Fix memory leak.  Compliments of Robert Minsk
13654           <egbert@centropolisfx.com>.
13655
13656 2001-08-30 John R. Jackson (jrj@purdue.edu)
13657
13658         * server-src/planner.c: Fix problem with maintenance of total level
13659           0 size when disk being brought back into the schedule was not doing
13660           a level 0.  Compliments of Robert Minsk <egbert@centropolisfx.com>.
13661
13662 2001-08-24 John R. Jackson (jrj@purdue.edu)
13663
13664         * server-src/amverify.sh.in: Fix missing backtick error.
13665
13666 2001-08-24 John R. Jackson (jrj@purdue.edu)
13667
13668         * server-src/taper.c: Allocate buffers on page boundaries.
13669
13670 2001-08-22 John R. Jackson (jrj@purdue.edu)
13671
13672         * tape-src/Makefile.am: Add chown/chgrp rules for ammt/amdd install
13673           so they end up like all the other Amanda programs.
13674
13675 2001-08-15 Thomas Hepper (th@ant.han.de)
13676         * changer-src/chg-scsi.c. Removed version 1 DB support from mapBarCode. Changed the way parameter
13677         are given to MapBarCode and returned from there. No a struct is passed where all infos
13678         will be returned to the calling function.
13679         If eject is set we will not call LogSense in chg-scsi because it is also called in the
13680         eject function.
13681         * changer-src/scsi-defs.h: Added struct MBC_T used by MapBarCode.
13682         * changer-src/scsi-changer-driver.c: Changed all calls to MapBarCode to the new way
13683
13684 2001-08-14 John R. Jackson (jrj@purdue.edu)
13685
13686         * docs/EXCLUDE: New document from Andrew Hall <ahall@secureworks.net>
13687           describing how to set up and use GNU tar exclusions.
13688         * docs/Makefile.am: Added EXCLUDE and PORT.USAGE.
13689
13690 2001-08-14 John R. Jackson (jrj@purdue.edu)
13691
13692         * docs/PORT.USAGE: New document about how Amanda ports are used.
13693
13694 2001-08-14 John R. Jackson (jrj@purdue.edu)
13695
13696         * client-src/sendsize.c: Fix patch merge goof (ap_snprintf -> snprintf).
13697
13698 2001-08-14 John R. Jackson (jrj@purdue.edu)
13699
13700         * common-src/stream.c: Add stream_client_privileged() function to
13701           get a privileged port and fail if one is not available.  The older
13702           stream_client() function gets a (non-privileged) port in the
13703           configured portrange, if set and possible, else anything available.
13704         * common-src/stream.h: Prototypes.
13705         * recover-src/amrecover.c: Use stream_client_privileged() instead of
13706           stream_client().
13707         * recover-src/extract_list.c: Ditto.
13708         * configure.in: Added several more port range sanity checks.  Added
13709           --with-tcpportrange as an alias for --with-portrange.
13710
13711 2001-08-09 Thomas Hepper (th@ant.han.de)
13712         * changer-src/chg-scsi.c: Added check in MapBarCode if the labelfile
13713         parameter is empty, and if yes return. 
13714         Added global variable do_inventory, and if set do an inventory before
13715         exit.
13716         In MapBarCode changed the way the UPDATE_SLOT is done, now it uses
13717         the slot number passed to MapBarCode to find and update the record.
13718         * changer-src/scsi-changer-driver.c: Added def. for BreeceHill Q7
13719         Added global variables which are set by the tape_rdlabel function
13720         in eject/unload.
13721         Reworked the way how the updates of the labelfile are done.
13722
13723 2001-08-01 John R. Jackson (jrj@purdue.edu)
13724
13725         * client-src/selfcheck.c: Fix typos I introduced into the PC subdir
13726           patch.
13727         * client-src/sendbackup-gnutar.c: Ditto.
13728         * client-src/sendsize.c: Ditto.
13729
13730 2001-08-01 Marko Injac <marko.injac@mail.insert.si> via John R. Jackson (jrj@purdue.edu)
13731
13732         * client-src/findpass.c: Allow backup of subdirs of PC shares for
13733           amanda-2.4.1beta1 by Greg Shebert amanda-hackers list Tue Feb 1,
13734           2000.  Ported to amanda-2.4.2p2 on debian potato by Marko Injac.
13735         * client-src/findpass.h: Ditto.
13736         * client-src/selfcheck.c: Ditto.
13737         * client-src/sendbackup-gnutar.c: Ditto.
13738         * client-src/sendsize.c: Ditto.
13739         * docs/SAMBA: Ditto.
13740
13741 2001-08-01 John R. Jackson (jrj@purdue.edu)
13742
13743         * client-src/sendsize.c: Prefix each debug line with sendsize process
13744           information to make picking out the output from a particular estimate
13745           run easier when maxdumps > 1.
13746
13747 2001-08-01 John R. Jackson (jrj@purdue.edu)
13748
13749         * server-src/amcheck.c: Unlink the temp files as soon as they are
13750           created so they always go away when amcheck terminates.  Use
13751           pipespawn() instead of system() to call the MAILER program.  Call
13752           dbopen()/dbclose() in main() to write to a debug file instead of
13753           stderr.
13754
13755 2001-08-01 John R. Jackson (jrj@purdue.edu)
13756
13757         * common-src/debug.c: Only rename files that end in ".debug".
13758
13759 2001-08-01 John R. Jackson (jrj@purdue.edu)
13760
13761         * common-src/pipespawn.c: Show empty pipespawn() args as "".
13762
13763 2001-07-31 John R. Jackson (jrj@purdue.edu)
13764
13765         * server-src/conffile.h: Add support for tapetype "blocksize" keyword.
13766         * server-src/conffile.c: Add tapetype "blocksize" keyword.  Use
13767           DISK_BLOCK_KB where appropriate instead of TAPE_BLOCK_SIZE.  Disallow
13768           negative tape length and tapemark size.
13769         * common-src/alloc.c: Add new amtable_free() function.  Adjust args
13770           to amtable_alloc() to be consistent with amtable_free().
13771         * common-src/amanda.h: Add new am_round() and am_floor() macros.
13772           Define new DISK_BLOCK_KB, DISK_BLOCK_BYTES, MAX_TAPE_BLOCK_KB,
13773           MAX_TAPE_BLOCK_BYTES constants.  Remove TAPE_BLOCK_SIZE and
13774           TAPE_BLOCK_BYTES.
13775         * common-src/bsd-security.c: TAPE_BLOCK_BYTES -> NETWORK_BLOCK_BYTES.
13776           Use -1 instead of DEFAULT_SIZE.
13777         * common-src/rsh-security.c: Ditto.
13778         * common-src/fileheader.c: Change write_header() to build_header().
13779           Add blocksize arg.  Get rid of unused fill_buffer() function.
13780         * common-src/fileheader.h: Ditto.
13781         * common-src/stream.c: Use negative value to indicate default buffer
13782           size.
13783         * common-src/stream.h: Add NETWORK_BLOCK_BYTES and STREAM_BUFSIZE
13784           constants.  Remove DATABUF_SIZE and DEFAULT_SIZE.
13785         * man/amanda.8.in: Document the new "blocksize" tapetype keyword.
13786           Document that "length" in tapetype has meaning to some output
13787           drivers.  Fix "bumpdays" and "speed" defaults.  Document new "file:"
13788           output driver record length data file.
13789         * man/amrestore.8: Add new "-b blocksize" arg.  Add description of
13790           how to catalogue the images on a tape.
13791         * recover-src/amrecover.c: DEFAULT_SIZE -> -1.
13792         * recover-src/extract_list.c: DEFAULT_SIZE -> -1.  Use DISK_BLOCK_BYTES
13793           instead of TAPE_BLOCK_BYTES for the header size.
13794         * restore-src/amrestore.c: Add new "-b blocksize" arg.  Document how
13795           the header is handled.  Deal with arbritrary tape record sizes.
13796         * server-src/amlabel.c: Use the tapetype blocksize.
13797         * server-src/chunker.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
13798           appropropriate instead of older constants.  Rewrite disk I/O buffer
13799           management.  Never pad output stream (e.g. to holding disk).  Use
13800           -1 for default stream buffer size.
13801         * server-src/driver.c: Use DISK_BLOCK_KB where appropriate instead of
13802           TAPE_BLOCK_SIZE.
13803         * server-src/driverio.c: Set chunker argv[0] to name based on which
13804           dumper it is working with.
13805         * server-src/dumper.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
13806           appropropriate instead of older constants.  Rewrite disk I/O buffer
13807           management.  Never pad output stream (e.g. to holding disk).  Use
13808           -1 for default stream buffer size.
13809         * server-src/holding.c: Change TAPE_BLOCK_BYTES to DISK_BLOCK_BYTES.
13810           Use fullread() instead of fill_buffer().
13811         * server-src/planner.c: Use tapetype blocksize instead of constant
13812           for tape length calculations.
13813         * server-src/taper.c: Support tapetype blocksize.  Only pad writes if
13814           blocksize is negative.  Reorganize shared memory buffers to put
13815           data on page boundaries.  Try reducing tapebuf count if allocation
13816           fails.
13817         * tape-src/output-file.c: Maintain record size information.  Use mask
13818           and flags from caller.
13819         * tape-src/output-null.c: Use new amtable_alloc() arg order.
13820         * tape-src/output-rait.c: Use new amtable_alloc() arg order.  Add
13821           private version of amtable_free() for standalone build.  Fix off
13822           by one and other table allocation problems.
13823         * tape-src/output-rait.h: Maintain file descriptor count in the
13824           structure.
13825         * tape-src/tapeio.c: Support tapetype blocksize.  Use new
13826           amtable_alloc() arg order.  Fix some error message text.  
13827         * tape-src/tapeio.h: New prototypes with blocksize arg.
13828         * tape-src/tapetype.c: Add "-b blocksize" arg.  Fix some end case
13829           aborts.
13830
13831 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
13832
13833         * recover-src/amrecover.c: Improve the "Unexpected server end of file"
13834           message.
13835
13836 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
13837
13838         * man/amanda.8.in: Document includefile.
13839         * man/amdump.8.in: Add note that local crontab documention should be
13840           checked for proper syntax.
13841         * man/amrecover.8.in: Document use of PAGER environment variable.
13842         * man/amrestore.8: Document that GNU tar must be used as some vendor
13843           tar programs cannot read GNU tar format.
13844         * docs/FAQ: Update location of online FAQ.
13845
13846 2001-07-25 John R. Jackson <jrj@purdue.edu>
13847
13848         * docs/TAPE.CHANGER: Changes from Ben Lewis (bhlewis@purdue.edu) to
13849           document the new (but optional) searchable features.
13850
13851 2001-07-19 John R. Jackson <jrj@purdue.edu>
13852
13853         * common-src/error.c: Fix function prototype error.
13854
13855 2001-07-19 John R. Jackson <jrj@purdue.edu>
13856
13857         * common-src/error.c: Add new function errordump() that acts like
13858           error() but calls abort() to (try to) drop core.
13859         * common-src/amanda.h: Prototype.
13860         * common-src/alloc.c: Call errordump() instead of error() for some
13861           memory allocation failures to aid traceback.
13862
13863 2001-07-19 John R. Jackson <jrj@purdue.edu>
13864
13865         * server-src/amadmin.c: Improve the error message when read_conffile()
13866           fails.
13867         * server-src/amcheck.c: Ditto.
13868         * server-src/amcleanupdisk.c: Ditto.
13869         * server-src/amflush.c: Ditto.
13870         * server-src/amlabel.c: Ditto.
13871         * server-src/amlogroll.c: Ditto.
13872         * server-src/amtape.c: Ditto.
13873         * server-src/amtrmidx.c: Ditto.
13874         * server-src/amtrmlog.c: Ditto.
13875         * server-src/driver.c: Ditto.
13876         * server-src/dumper.c: Ditto.
13877         * server-src/getconf.c: Ditto.
13878         * server-src/planner.c: Ditto.
13879         * server-src/reporter.c: Ditto.
13880         * server-src/taper.c: Ditto.
13881
13882 2001-07-19 John R. Jackson <jrj@purdue.edu>
13883
13884         * server-src/driverio.c: Make the name "ps" reports match the dumper
13885           name (e.g. "dumper3").
13886
13887 2001-07-18 John R. Jackson <jrj@purdue.edu>
13888
13889         * changer-src/chg-chio.pl.in: Try to unload the drive before moving
13890           a tape back to a slot.  Fixes a problem on Ecrix AutoPAK devices.
13891           Patch compliments of Sam Leffler <sam@errno.com>.
13892
13893 2001-07-18 John R. Jackson <jrj@purdue.edu>
13894
13895         * server-src/amverify.sh.in: Change to the Amanda temp directory
13896           instead of the config directory.  In addition to making amverify
13897           act like most other Amanda programs, this gets around an
13898           xfsrestore bug.
13899
13900 2001-07-18 John R. Jackson <jrj@purdue.edu>
13901
13902         * man/amanda.8.in: Describe the .amandahosts format better.  Clean up
13903           a couple of minor typos.
13904
13905 2001-07-13 John R. Jackson <jrj@purdue.edu>
13906
13907         * common-src/dgram.h: Improve UDP datagram size calculation.
13908         * server-src/amcheck.c: Break up large requests into pieces.
13909         * server-src/planner.c: Break up large requests into pieces.
13910
13911 2001-07-12 John R. Jackson <jrj@purdue.edu>
13912
13913         * tape-src/amdd.c: Use tapefd_close() in amdd if the file was
13914           opened with tape_open().  This does any necessary output driver
13915           cleanup (such as moving the current file position for "file:").
13916
13917 2001-07-12 John R. Jackson <jrj@purdue.edu>
13918
13919         * Makefile.am: Fix automake warning.
13920
13921 2001-07-11 John R. Jackson <jrj@purdue.edu>
13922
13923         * tape-src/tapetype.c: Use tapefd_write() instead of write().
13924
13925 2001-07-11 John R. Jackson <jrj@purdue.edu>
13926
13927         * common-src/file.c: Fix a memory leak.  Grab exponentially larger
13928           chunks of memory up to a point, then level out.
13929
13930 2001-07-11 John R. Jackson <jrj@purdue.edu>
13931
13932         * tape-src/tapetype.c: Only report a pass summary when stderr is not
13933           a tty.  Deal with some obscure end cases.
13934
13935 2001-07-10 John R. Jackson <jrj@purdue.edu>
13936
13937         * changer-src/scsi-aix.c: Convert Tape_Eject to Tape_Ioctl.
13938         * changer-src/scsi-solaris.c: Ditto.
13939
13940 2001-07-10 John R. Jackson <jrj@purdue.edu>
13941
13942         * server-src/amcheck.c: Move user name check before attempt to create
13943           temp files so more appropriate error message is generated.
13944
13945 2001-07-09 John R. Jackson <jrj@purdue.edu>
13946
13947         * common-src/dgram.c: Fix error end case unitialized variable.
13948
13949 2001-07-05 John R. Jackson <jrj@purdue.edu>
13950
13951         * docs/TAPE.CHANGERS: Minor docs/TAPE.CHANGERS update to clarify
13952           that -slot and -eject unload and put the current tape away.
13953
13954 2001-07-02 John R. Jackson <jrj@purdue.edu>
13955
13956         * changer-src/chg-manual.sh.in: Add yet another ONLINEREGEX, this one
13957           compliments of Nick (n_hibma@qubesoft.com) for some FreeBSD variant.
13958
13959 2001-06-29 John R. Jackson <jrj@purdue.edu>
13960
13961         * tape-src/tapeio.c: Move the device name parsing routines from the
13962           RAIT module to tapeio and make them generic.  This allows one
13963           module to open another, e.g. rait:{null:,z1,z2,z3}.  Maintain
13964           both the original open flags and mask and use them on the real open.
13965         * tape-src/amdd.c: Make sure this compiles "stand-alone".  To do so,
13966           use: gcc -Wall -DNO_AMANDA amdd.c output-rait.c output-tape.c.
13967           Abort as soon as one of the open calls fails instead of waiting
13968           for read/write to report a bad file descriptor.
13969           Pass a mask to the open function in case the output is created.
13970         * tape-src/ammt.c: Make sure this compiles "stand-alone".  To do so,
13971           use: gcc -Wall -DNO_AMANDA ammt.c output-rait.c output-tape.c.
13972         * tape-src/output-file.c: Maintain both the original open flags and
13973           mask and use them on the real open.
13974         * tape-src/output-null.c: Ditto.
13975         * tape-src/output-file.h: Change to non-prototype declaration of
13976           file_tape_open() to deal with the optional mask parameter.
13977         * tape-src/output-null.h: Ditto.
13978         * tape-src/output-tape.h: Ditto.
13979         * tape-src/tapeio.h: Ditto.  Add device name parsing prototypes.
13980         * tape-src/output-rait.c: Make sure this compiles "stand-alone".
13981           Maintain both the original open flags and mask and use them on the
13982           real open.
13983         * tape-src/output-rait.h: Make sure this compiles "stand-alone".
13984         * tape-src/output-tape.c: Make this part of the "stand-alone" compile
13985           of ammt and amdd since it knows all the proper ioctl operations.
13986           Maintain both the original open flags and mask and use them on the
13987           real open.
13988
13989 2001-06-27 John R. Jackson <jrj@purdue.edu>
13990
13991         * changer-src/chg-manual.sh.in: Add "bs=32k" to the dd command so
13992           some kernels would not complain about the tape block being larger
13993           than the buffer.
13994         * changer-src/chg-mtx.sh.in: Ditto.
13995
13996 2001-06-21 John R. Jackson <jrj@purdue.edu>
13997
13998         * server-src/planner.c: If the compression rate is very small (such
13999           as zero after some types of errors) and FORCE_FULL is set, a path
14000           is taken that (among other bad things) generates a schedule that
14001           driver cannot read (syntax errors).
14002         * server-src/conffile.c: Do not allow negative comprate values.
14003
14004 2001-06-19 John R. Jackson <jrj@purdue.edu>
14005
14006         * server-src/holding.c: Use fullread() instead of read() to read the
14007           holding disk file.
14008
14009 2001-06-19 John R. Jackson <jrj@purdue.edu>
14010
14011         * server-src/amtape.c: Document "slot advance" in the help output.
14012
14013 2001-06-19 John R. Jackson <jrj@purdue.edu>
14014
14015         * server-src/amindexd.c: Minor gethostbyaddr() argument change to be
14016           consistent with other Amanda usage.
14017
14018 2001-06-19 John R. Jackson <jrj@purdue.edu>
14019
14020         * server-src/amverify.sh.in: Better cross platform tar detection.
14021
14022 2001-06-19 John R. Jackson <jrj@purdue.edu>
14023
14024         * server-src/amverify.sh.in: More of the vrestore vs. 'b' flag change.
14025
14026 2001-06-19 John R. Jackson <jrj@purdue.edu>
14027
14028         * recover-src/amrecover.c: Add more debugging to guess_disk()
14029           function to better track how the disk is determined from the
14030           current working directory.  Report current working directory in
14031           error message.  Change "Trying" to "Trying disk" to distinguish
14032           this from host attempts.
14033         * recover-src/set_commands.c: Remove redundant amfree() call.  Remove
14034           redundant "OISD /" exchange.  Change "Trying" to "Trying host" to
14035           distinguish this from disk attempts.
14036
14037 2001-06-19 Thomas Hepper <th@ant.han.de>
14038         * changer-src/chg-scsi.c: Made clean_slot a global var. Removed
14039         the label db update stuff from the COM_SLOT part (moved to unload
14040         in scsi-changer-driver.c)
14041         * changer-src/scsi-changer-driver.c: Do an unload if the tape is
14042         loaded in the Inventory function. Added an marker to avoid recursion
14043         in Inventroy function. Added label db check in unload function and
14044         call Inventroy if it indicates an out of sync db
14045         
14046 2001-06-18 John R. Jackson <jrj@purdue.edu>
14047
14048         * recover-src/extract_list.c: Do not pass a 'b' (blocking) factor
14049           flag to vrestore.  Some versions do not like it.
14050
14051 2001-06-18 John R. Jackson <jrj@purdue.edu>
14052
14053         * common-src/dgram.c: Use a sin_addr arg to inet_ntoa() like all the
14054           other Amanda code.
14055         * common-src/stream.c: Ditto.
14056
14057 2001-06-18 John R. Jackson <jrj@purdue.edu>
14058
14059         * changer-src/chg-manual.sh.in: Add yet another online regex.  Found
14060           by George Herson <gherson@snet.net>.
14061
14062 2001-06-12 Thomas Hepper <th@ant.han.de>
14063         * changer-src/scsi-changer-driver.c (Inventory): Call Tape_Ready and let this function
14064         decide how to get the tape drive status.
14065         * changer-src/scsi-changer-driver.c (Tape_Ready): Now this function looks how to get
14066         the tape drive status.
14067         * changer-src/scsi-linux.c: changed some dbprintf to DebugPrint
14068         
14069 2001-06-10 Thomas Hepper <th@ant.han.de>
14070         * changer-src/chg-scsi.c: If get_current_slot gets an error from the fscanf function
14071         return also an error (-1) to the calling fucntion. (Fixes an error if the slot file
14072         is created with an touch)
14073         * changer-src/scsi-changer-driver.c: Fixed some NULL pointer errors in PrintConf
14074         Fixed an error in the unload function if the destination slot for the unload is not empty.
14075         (cut and paste error !!)
14076         
14077 2001-06-07 Thomas Hepper <th@ant.han.de>
14078         * changer-src/scsi-changer-driver.c: Change the type of TapeStatus from void to int.
14079         In PrintConf changed the loop variable for scan of pDev from 3 to CHG_MAXDEV.
14080         In PrintConf check if pDev[count].inquiry is a NULL pointer, and if yes skip.
14081         * changer-src/scsi-irix.c: Changed a lot, now it should work.
14082         * client-src/sendbackup-dump.c: Removed a { in the vxfsdump part. 
14083         * tape-src/output-tape.c: Fixed the tape status checks, the structure elelemt
14084         is called buf.mt_dposn not buf.mt.dposn.
14085         
14086 2001-06-04 Thomas Hepper <th@ant.han.de>
14087         * changer-src/scsi-changer-driver.c: Renamed Tape_Eject to Tape_Ioctl
14088         incl. change of passwd parameter.
14089
14090 2001-06-04 Thomas Hepper <th@ant.han.de>
14091         * changer-src/chg-scsi.c: include dmalloc.h for debugging of mem problems
14092         * changer-src/scsi-cam.c: Replaced Tape_Eject with a more generic 
14093         function to send different ioctls (Tape_Ioctl)
14094         * changer-src/scsi-bsd.c: see above
14095         * changer-src/scsi-hpux_new.c: see above
14096         * changer-src/scsi-irix.c: If the device can be opened in SCSI_OpenDevice
14097         set pDev[ip].avail to 1.
14098         * changer-src/scsi-linux.c: include dmalloc.h for debugging of mem problems.
14099         Fixed an invalid free in SCSI_OpenDevice. Replaced Tape_Eject with Tape_Ioctl.  
14100         * changer-src/scsi-changer-driver.c: include dmalloc.h for debugging of mem problems
14101         Eject the tape in the inventory function before the scan to get all
14102         barcode labels. Check in GenericEject if the device is able to receive
14103         SCSI commands, if not use the ioctl interface to eject the tape.
14104         Same for the GenericRewind function.
14105         Added the LogSense in the GenericEject function.
14106         * changer-src/scsi-defs.h: Added define for Tape_Ioctl commands, IOCTL_EJECT.
14107         
14108 2001-06-01 John R. Jackson <jrj@purdue.edu>
14109
14110         * server-src/amindexd.c (build_disk_table): Make sure a holding disk
14111           image is used rather than a copy also on tape, if both exist.
14112
14113 2001-06-01 Thomas Hepper <th@ant.han.de>
14114         * changer-src/scsi-changer-driver.c: Added an range check in the load
14115         function and abort if the requested slot is out of range.
14116         Fixed in incorrect pointer in the eject function if the ioctl
14117         interface is used
14118
14119 2001-05-29 John R. Jackson <jrj@purdue.edu>
14120
14121         * server-src/reporter.c: Fix PostScript output to only show what went
14122           on the tape, not what the total amount dumped.  Compliments of
14123           Joshua Baker-LePain <jlb17@duke.edu>.
14124
14125 2001-05-28 Thomas Hepper <th@ant.han.de>
14126         * changer-scsi/chg-scsi.c: Made the array for pDev configurable, #define CHG_MAXDEV
14127         * changer-scsi/scsi-defs.h: Added the define for CHG_MAXDEV
14128         * changer-src/scsi-cam.c: Set the flag pDev[x].avail to 1 if the device can be openend.
14129         Added debug message if the open fails. Implemented the function Tape_Status (not tested)
14130         * changer-src/scsi-changer-driver.c: Added the function DLT448ElementStatus, was lost
14131         during merge from 2.4.2. The difference to GenericElementStatus is that the DecodeModeSense
14132         needs an offset of 12, not 0 as in GenericElementStatus.
14133         Added an unload/GenericResetStatus in the Inventory function if an bar code reader is 
14134         available. This is to get the label from the loaded tape.
14135         The function TapeStatus sets now the status regardless of the status of the tape.
14136         If the device is capable for sending SCSI commands use the SCSI interface to get
14137         the status of the tape.
14138         * docs/TAPE.CHANGERS: Added some notes about the debuglevel keyword and a short
14139         description on how to use the sgen interface on solaris 2.8
14140         
14141 2001-05-18 John R. Jackson <jrj@purdue.edu>
14142
14143         * client-src/patch-system.sh.in: Missed a reference to kamanda in the
14144           last patch.  Compliments of Tom Schutter <t.schutter@att.net>.
14145
14146 2001-05-16 John R. Jackson <jrj@purdue.edu>
14147
14148         * client-src/patch-system.sh.in: Go ahead and update /etc/services
14149           on a client even if the services themselves are not turned on to
14150           inetd.  Compliments of Tom Schutter <t.schutter@att.net>.  Add
14151           the TCP port for amandad for future use.
14152
14153 2001-05-14 John R. Jackson <jrj@purdue.edu>
14154
14155         * client-src/amandad.c: Fix hang when the incoming packet size is
14156           larger than the pipe buffer.  Also, report back when too much
14157           data for a packet is returned by the service (this is not properly
14158           diagnosed back to, e.g., amcheck, but that's for another day).
14159         * common-src/bsd-security.c: Fix minor comment error.
14160
14161 2001-05-11 John R. Jackson <jrj@purdue.edu>
14162
14163         * common-src/util.c (bind_portrange): Log a debug message stating
14164           explicitly that all ports in the requested range were busy, or
14165           that a specific port failed bind() for an unexpected reason.
14166
14167 2001-05-07 John R. Jackson <jrj@purdue.edu>
14168
14169         * client-src/sendbackup-dump.c: Do not use full path to sed.  Found by
14170           Roland E. Lipovits (rel@lipo.at0.net).
14171
14172 2001-05-07 Thomas Hepper <th@ant.han.de>
14173         * changer-src/chg-scsi.c : Fixed NULL pointer in debug print of the config.
14174         * changer-src/scsi-canger-driver.c : Try to get and set the status of the tape drive in
14175         GenericElementStatus if there is an error condition. Move from tape to tape to get the
14176         tape loaded if it is only ejected.
14177         * changer-src/scsi-defs.h : New define for the Tape_Status fucntion, TAPE_NOT_LOADED
14178         * changer-src/scsi-linux.c : Added return type for tape not loaded
14179         * changer-src/scsi-solaris.c : In SCSI_ExecuteCommand force the direction to write if the
14180         databuffersize is 0, if the direction is input the ioctl returns with errno 22, invalid argument.
14181         The function Tape_Status will now return either tape loaded or not.
14182         * example/chg-scsi-solaris.conf.in : Added pointer to doc/TAPE.CHANGERS on how to configure
14183         the sgen driver.
14184         * doc/TAPE.CHANGERS : Updated the description of the chg-scsi.conf options, short description on
14185         how to confgure the sgen driver on solaris 2.8
14186         
14187 2001-05-04 John R. Jackson <jrj@purdue.edu>
14188
14189         * config/depcomp: Fix problem with argument*  processing and update to
14190           latest version.
14191
14192 2001-05-01 Thomas Hepper <th@ant.han.de>
14193         * changer-src/chg-scsi.c : Added patch for the slot advance command from John R. Jackson
14194         * changer-src/scsi-changer-driver.c : Renamed EXB120BarCode to EXB_BarCode. The currently
14195         known Exabyte libs handles the reader in the same way.
14196         
14197 2001-04-28 Thomas Hepper <th@ant.han.de>
14198         * changer-scsi/chg-scsi.c : Added missing break in MapBarCode
14199         Changed the way an tape label is read, use tape_open to open the
14200         device, not own open.
14201         * changer-src/scsi-changer-driver.c : Changed the way an tape label 
14202         is read, use tape_open to open the device, not own open.
14203         * changer-src/scsi-linux.c : Fixed error on reopen of non SCSI devices
14204         (/dev/nst0 for example)
14205         
14206 2001-04-26 Thomas Hepper <th@ant.han.de>
14207
14208         * changer-src/scsi-aix.c : Added more different ret values depending on the SCSI
14209         error condition. 
14210         * changer-src/scsi-changer-driver.c: Split GenericElementStatus in GetElementStatus which
14211         reads the element Status, and GenericElementStatus which handles the errors.
14212         Removed DLT448ElementStatus. Rework the handling of some SCSI error conditions...
14213         * changer-src/scsi-defs.h: Added more defs for the debug SECTION types.
14214         * changer-src/scsi-linux.c: Fixed an bug in the non SCSI device handling in SCSI_OpenDevice
14215         * changer-src/sense.c: Added EXB-210 defs, added defs for READ_ELEMENT_STATUS error conditions.
14216         
14217 2001-04-25 John R. Jackson <jrj@purdue.edu>
14218
14219         * changer-src/chg-rth.pl.in: Add exec_prefix back since it is usually
14220           used to define sbindir.  Sigh.  Include X=X assignments to get rid
14221           of the Perl warnings.
14222         * server-src/amoverview.pl.in: Ditto.
14223
14224 2001-04-24 John R. Jackson <jrj@purdue.edu>
14225
14226         * changer-src/chg-chio.pl.in: Remove unused exec_prefix to get rid of
14227           warning message.  Patch from Nick Hibma <n_hibma@qubesoft.com>.
14228
14229 2001-04-23 John R. Jackson <jrj@purdue.edu>
14230
14231         * client-src/selfcheck.c: Allow Samba shares with no password.
14232         * client-src/sendbackup-gnutar.c: Ditto.
14233         * client-src/sendsize.c: Ditto.
14234
14235 2001-04-15 Thomas Hepper <th@ant.han.de>
14236         * Makefile.am: Added contrib/gsc files to EXTRA_DIST
14237         
14238 2001-04-15 Thomas Hepper <th@ant.han.de>
14239         * changer-src/scsi-aix.c: Rework of the SCSI interface, support
14240         to talk to an device handled by the gsc driver (not tested yet)
14241         * changer-src/scsi-bsd.c (SCSI_ExecuteCommand): Fix error in
14242         device handling, Changed the return codes in case of an error
14243         * changer-src/scsi-cam.c (SCSI_ExecuteCommand): Fix error in 
14244         device handling, Changed the return codes in case of an error
14245         * changer-src/scsi-changer-driver.c: Changed the way 
14246         SCSI_ExecuteCommand passes error conditions back, error handling
14247         should now be done by the calling function, SCSI_Run for example.
14248         * changer-src/scsi-changer-driver.c (CheckMove): If the 
14249         DeviceCapabilitiesPage is not set do not return an error, print
14250         an warning to the debug file.
14251         * changer-src/scsi-defs.h: New define for AIX_USE_GSC
14252         New defines for the return codes of SCSI_ExecuteCommand
14253         * changer-src/scsi-hpux_new.c: Fix error in device handling.
14254         Changed the return codes in case of an error
14255         * changer-src/scsi-irix.c: Fix error in device handling.
14256         Changed the return codes in case of an error
14257         * changer-src/scsi-solaris.c: Fix error in device handling.
14258         Changed the return codes in case of an error
14259         
14260 2001-04-15 Thomas Hepper <th@ant.han.de>
14261         *contrib/gsc: Generic SCSI interface for AIX, used by chg-scsi
14262
14263 2001-04-13 John R. Jackson <jrj@purdue.edu>
14264
14265         * example/amanda.conf.in: Fix multiple holding disks comment.
14266
14267 2001-04-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14268
14269         * client-src/getfsent.h (search_fstab): New prototype.
14270         * client-src/getfsent.c (search_fstab): New arg check_dev, skip
14271         entry if check_dev==1 and device stats failed.
14272         * client-src/getfsent.c (open_fstab for linux): Open MOUNTED.
14273         * client-src/getfsent.c (close_fstab for linux): close MOUNTED.
14274         * client-src/getfsent.c (get_fstab_nextentry for linux): parse MOUNTED.
14275         * client-src/getfsent.c (amname_to_devname, amname_to_dirname, 
14276         amname_to_fstype): Call search_fstab sequentialy with 1 and 0 
14277         for check_dev.
14278
14279 2001-04-10 John R. Jackson <jrj@purdue.edu>
14280
14281         * docs/INSTALL: Update location to GNUPLOT per Lars Hecking
14282           <lhecking@nmrc.ie>.
14283
14284 2001-04-09 Thomas Hepper <th@ant.han.de>
14285         * changer-src/scsi-changer-driver.c: More rework on the debug output.
14286         changed definition SENSE_NO_TAPE to SENSE_TAPE_NOT_ONLINE
14287         In function GenericRewind do an check before the rewind to see
14288         if the tape is loaded.
14289         * changer-src/scsi-defs.h: New #define for the debug, SECTION_TAPE
14290         * changer-src/sense.c: New definition for SENSE_RETRY, ASC=4, ASCQ=1
14291         
14292 2001-04-08  Alexandre Oliva  <aoliva@redhat.com>
14293
14294         * client-src/getfsent.c (search_fstab): Don't skip entry just
14295         because device stats failed.
14296
14297 2001-04-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14298
14299         * config/config.guess: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
14300         * config/config.sub: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
14301         * config/mkinstalldirs: Upgrade from automake CVS.
14302
14303 2001-04-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14304
14305         * config/depcomp: new file for automake.
14306
14307 2001-04-03 John R. Jackson <jrj@purdue.edu>
14308
14309         * Makefile.am: Remove *.test.c from the distribution.
14310
14311 2001-04-02 John R. Jackson <jrj@purdue.edu>
14312
14313         * NEWS: Update some of the 2.4.2 items.
14314
14315 2001-03-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14316
14317         * client-src/getfsent.c (search_fstab): If the device doesn't 
14318         exist, it will take the entry from /etc/mtab.
14319
14320 2001-03-26 John R. Jackson <jrj@purdue.edu>
14321
14322         * server-src/amtape.c: Do not rewind for slot "advance".  Do not report
14323           device name (which is bogus) for slot "advance".
14324
14325 2001-03-23 John R. Jackson <jrj@purdue.edu>
14326
14327         * example/amanda.conf.in: Add warning that the sample amanda.conf
14328           will not work as is and must be edited to match the installation.
14329
14330 2001-03-21 John R. Jackson <jrj@purdue.edu>
14331
14332         * recover-src/extract_list.c (extract_files_child): Fix problem that
14333           caused xfsrestore arg list to not be NULL terminated.
14334
14335 2001-03-19 John R. Jackson <jrj@purdue.edu>
14336
14337         * configure.in: Add --with-debug-days (default is 4) and remove
14338           --with-pid-debug-files.
14339         * common-src/Makefile.am: Clean up test program dependencies.
14340         * common-src/debug.c: Create timestamped debug file names and remove
14341           files older (based on file name) than --with-debug-days.  Rename old
14342           style names to new style (based on modification time) the first time
14343           they are seen.
14344         * common-src/file.c: Use construct_datestamp() instead of private code.
14345         * common-src/genversion.c: Display AMANDA_DEBUG_DAYS and remove
14346           DEBUG_FILE_WITH_PID.
14347         * common-src/util.c: Move construct_datestamp to here and add new
14348           function construct_timestamp.  Change time used to build string to
14349           be an optional parameter instead of always getting it in the routine.
14350         * common-src/util.h: Add prototypes.
14351         * server-src/amcleanupdisk.c: Change construct_datestamp call to pass
14352           indication that it should get the current time.
14353         * server-src/amflush.c: Ditto.
14354         * server-src/chunker.c: Ditto.
14355         * server-src/driver.c: Ditto.
14356         * server-src/dumper.c: Ditto.
14357         * server-src/planner.c: Ditto.
14358         * server-src/server_util.c: Remove construct_datestamp (now in util.c).
14359         * server-src/server_util.h: Remove prototype.
14360
14361 2001-03-15 John R. Jackson <jrj@purdue.edu>
14362
14363         * server-src/planner.c (analyze_estimate): Do not do an incremental
14364           if FORCE_NO_BUMP is set and the last dump was a level 0.
14365
14366 2001-03-14 John R. Jackson <jrj@purdue.edu>
14367
14368         * server-src/amcheck.c: Change message from NOTE to WARNING when
14369           the hold file exists.
14370         * man/amcheck.8.in: Ditto.
14371
14372 2001-03-14 John R. Jackson <jrj@purdue.edu>
14373
14374         * client-src/selfcheck.c: Send smbclient via pipe instead of command
14375           line arg.  Various minor cleanups.  Use pipespawn instead of system()
14376           to clean up quoting problems and be consistent with sendsize and
14377           sendbackup.
14378         * client-src/sendbackup-dump.c: Send smbclient via pipe instead of
14379           line arg.  Various minor cleanups.
14380         * client-src/sendbackup-gnutar.c: Send smbclient via pipe instead of
14381           line arg.  Various minor cleanups.  Clean up listed incremental file
14382           handling.
14383         * client-src/sendbackup.c: Various minor cleanups.
14384         * client-src/sendsize.c: Send smbclient via pipe instead of command
14385           line arg.  Various minor cleanups.  Clean up listed incremental file
14386           handling.
14387         * docs/SAMBA: Update and cleanup.
14388         * common-src/pipespawn.c: Import from 2.4.2 branch.
14389         * common-src/pipespawn.h: Import from 2.4.2 branch.
14390         * common-src/Makefile.am: Add pipespawn.[ch] references.
14391
14392 2001-03-13 John R. Jackson <jrj@purdue.edu>
14393
14394         * recover-src/extract_list.c (extract_files_child): Fix xfsrestore
14395           argument list processing.
14396
14397 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14398
14399         * server-src/dumper.c (read_datafd): set errstr and return on
14400         databuf_write error.
14401
14402 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14403
14404         * server-src/dumper.c (read_indexfd): Ignore error while writing
14405         to the index file. Log an L_INFO message.
14406
14407 2001-03-09 John R. Jackson <jrj@purdue.edu>
14408
14409         * server-src/taper.c: Initialize tape_fd to -1 and test in a couple
14410           more places.  Run normal protocol after a tape startup error (e.g.
14411           "cannot overwrite") instead of just exiting to keep driver from
14412           reporting a broken pipe.
14413
14414 2001-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14415         Reported by Eric Schnoebelen <eric@cirr.com>
14416
14417         * server-src/changer.c (changer_command): Fix fd leak.
14418
14419 2001-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14420
14421         * server-src/server_util.c (cmdstr, getcmd, putresult): New.
14422         * server-src/server_util.h (cmdstr, getcmd, putresult): Prototype.
14423         * server-src/server_util.h (cmd_t): New.
14424         * server-src/driverio.c (cmdstr): Remove.
14425         * server-src/driverio.c: Use new cmdstr and cmd_t.
14426         * server-src/driverio.h: (tok_t): Remove.
14427         * server-src/amflush.c: Use new cmd_t.
14428         * server-src/driver.c: Use new cmd_t.
14429         * server-src/chunker.c (cmd_t, getcmd, putresult): Remove.
14430         * server-src/chunker.c: Use new cmd_t, getcmd and putresult.
14431         * server-src/dumper.c (cmd_t, getcmd, putresult): Remove.
14432         * server-src/dumper.c: Use new cmd_t, getcmd and putresult.
14433         * server-src/taper.c (cmd_t, getcmd, putresult): Remove.
14434         * server-src/taper.c: Use new cmd_t, getcmd and putresult.
14435
14436 2001-03-05 John R. Jackson <jrj@purdue.edu>
14437
14438         * common-src/util.c: The fullread() and fullwrite() functions should
14439           call read() and write(), not tapefd_read() and tapefd_write().
14440
14441 2001-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14442
14443         * server-src/planner.c (setup_estimate): Don't re-ask for level 0
14444         if last_level is 0 and FORCE_NO_BUMP is set.
14445
14446 2001-02-27 John R. Jackson <jrj@purdue.edu>
14447
14448         * common-src/stream.h: Move DATABUF_SIZE to stream.h.
14449         * client-src/sendbackup.c: Do not ask for a big receive buffer.
14450         * server-src/dumper.c: Ask for a bigger send buffer.  Minor typos.
14451         * server-src/taper.c: Ask for a bigger receive buffer.
14452         * recover-src/amrecover.c: Use stream_client instead of specific
14453           (and incorrect) bind() code.
14454         * recover-src/extract_list.c: Ditto.
14455
14456 2001-02-27 John R. Jackson <jrj@purdue.edu>
14457
14458         * common-src/dgram.c: Add lots more error logging to help track down
14459           problems.
14460
14461 2001-02-27 John R. Jackson <jrj@purdue.edu>
14462
14463         * common-src/stream.c: Add lots more error logging to help track down
14464           problems.
14465
14466 2001-02-27 John R. Jackson <jrj@purdue.edu>
14467
14468         * server-src/amtape.c: Rewind after loading a slot either by slot
14469           or by label.
14470
14471 2001-02-27 John R. Jackson <jrj@purdue.edu>
14472
14473         * configure.in: Add some commentary about why pushdef/popdef are
14474           needed around AC_CHECK_TYPE.
14475
14476 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14477         Patch by Alex Pilosov <alex@pilosoft.com>
14478
14479         * changer-src/scsi-cam.c: Clean up some SCSI CAM code,
14480         and permit use of both bus:target:lun(btl) and a full
14481         device name (/dev/ch0) as changerdev.
14482         
14483 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14484         Patch by Joe Rhett <jrhett@isite.net>
14485         and Jason Hollinden <jhollind@sammg.com>
14486
14487         * changer-src/chg-zd-mtx.sh.in:  Added barcode reader support,
14488         >9 tape slot support, variable for 'offline' or 'ONLINE'
14489         return value of tape device, and multi-config support.  Moved
14490         all user settable variables to 'changerfile'.conf in the
14491         amanda config directory.  Added commented out example of .conf
14492         file into script.
14493
14494 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14495
14496         * server-src/amindexd.c (uncompress_file): remove uncompressed
14497         index file if the command failed.
14498
14499 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14500
14501         * restore-src/amrestore.c (main): init r to 0.
14502
14503 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14504
14505         * changer-src/scsi-defs.h (PrintConf): Add prototype.
14506         * changer-src/scsi-changer-driver.c (SCSI_Run): Add prototype.
14507         * changer-src/scsi-linux.c (ScanBus): remove btl variable, return 0.
14508
14509 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14510
14511         * man/Makefile.am (EXTRA_DIST): add amdd.8 and ammt.8.
14512
14513 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14514
14515         * server-src/planner.c (setup_estimate): ask for level 0 for 
14516         a new disk if force-bump is set, 
14517         log force-bump and force-nobump command.
14518
14519 2001-02-17 Thomas Hepper <th@ant.han.de>
14520
14521         * changer-scsi/chg-scsi.c: New Option -genconf to create an example config file
14522          based on the information found on the system, works for Linux and BSD with cam
14523          support. New config option debuglevel
14524         * changer-src/scsi-changer-deriver.c: Reworked the debug output, it is now possible
14525          to control the amount of information by the config option debuglevel in the config
14526          file (docs follow), not complete yet.
14527         * changer-src/scsi-changer-driver.c: New function PrintConf to create an example
14528           config file.
14529           New function DebugPrint to print debug information based on the variable debuglevel.
14530           Replaced a lot of dbprintf with new Function DebugPrint
14531         * changer-src/scsi-aix.c: changed parameter for ScanBus
14532         * changer-src/scsi-irix.c: changed parameter for ScanBus
14533         * changer-src/scsi-solaris.c: changed parameter for ScanBus
14534         * changer-src/scsi-bsd.c: changed parameter for ScanBus
14535         * changer-src/scsi-cam.c: Implemented function ScanBus
14536         * changer-src/scsi-linux.c: Implemented function ScanBus
14537         
14538 2001-02-09 John R. Jackson <jrj@purdue.edu>
14539
14540         * server-src/diskfile.c: Fix core dump in test program.
14541
14542 2001-02-09 John R. Jackson <jrj@purdue.edu>
14543
14544         * tape-src/output-file.c: Use a "data" subdirectory of the main
14545           file driver device directory to hold the tape "files".  This
14546           allows the status file to be moved to the main directory.
14547         * man/amanda.8.in: Document these changes.
14548
14549 2001-02-08 Thomas Hepper <th@ant.han.de>
14550
14551         * changer-src/scsi-aix.c: Added dummy ScanBus function
14552         * changer-src/scsi-bsd.c: Added dummy ScanBus function
14553         * changer-src/scsi-cam.c: Added dummy ScanBus function
14554         * changer-src/scsi-hpux_new.c: Added dummy ScanBus function
14555         * changer-src/scsi-irix.c: Added dummy ScanBus function
14556         * changer-src/scsi-defs.h: Added prototype for ScanBus function
14557
14558 2001-02-04 John R. Jackson <jrj@purdue.edu>
14559
14560         * man/amanda.8.in: Fix mailto to space separated, not comma.
14561
14562 2001-02-03 John R. Jackson <jrj@purdue.edu>
14563
14564         * .cvsignore: Add entries to keep CVS quiet.
14565         * */.cvsignore: Ditto.
14566
14567 2001-02-03 John R. Jackson <jrj@purdue.edu>
14568
14569         * client-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
14570         * common-src/Makefile.am: Add more sources as needed to the test
14571           programs so they would compile.
14572         * server-src/Makefile.am: Create TEST_PROGS make variable ala the
14573           other Makefile.am files.
14574         * tape-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
14575
14576 2001-02-03 John R. Jackson <jrj@purdue.edu>
14577
14578         * server-src/diskfile.c: Fix test program compilation error and bug
14579           when just a config name was given on the command line.
14580
14581 2001-02-02 John R. Jackson <jrj@purdue.edu>
14582
14583         * server-src/reporter.c: Fix problem with enum being unsigned on
14584           some systems.
14585
14586 2001-01-29 John R. Jackson <jrj@purdue.edu>
14587
14588         * tape-src/tapeio.c (tape_fsf): Go back to using snprintf as this
14589           is now "the way".
14590
14591 2001-01-29 John R. Jackson <jrj@purdue.edu>
14592
14593         * tape-src/output-tape.c (tape_tapefd_status): Convert flag values
14594           to booleans (compliments of Marc W. Mengel <mengel@fnal.gov>).
14595         * tape-src/tapeio.c (tape_fsf): Use ap_snprintf instead of snprintf
14596           (also compliments of Marc).
14597
14598 2001-01-26 John R. Jackson <jrj@purdue.edu>
14599
14600         * changer-src/Makefile.am: Double up the references to libamanda to
14601           handle systems that put regex in strange places.
14602         * client-src/Makefile.am: Ditto.
14603         * recover-src/Makefile.am: Ditto.
14604         * restore-src/Makefile.am: Ditto.
14605         * server-src/Makefile.am: Ditto.
14606         * tape-src/Makefile.am: Ditto.
14607
14608 2001-01-23 John R. Jackson <jrj@purdue.edu>
14609
14610         * configure.in: Add tapeio switch from Marc Mengel <mengel@fnal.gov>,
14611           enhance and add "null" and "file" output drivers.  Change all
14612           tape changers (except chg-scsi) to use amdd and ammt.  Change all
14613           tape changers (except chg-scsi) to log and use a consistent
14614           error reporting scheme.  Fix various bugs along the way.  Add new
14615           chg-multi config option, posteject, which is an optional script
14616           to call after each "tape" is ejected (e.g. to use to start a
14617           CDROM writer).  Remove special code for tapedev of /dev/null
14618           (now handled by the "null" output driver).  Changed the taper
14619           protocol to pass the host/disk/level so the write can send that
14620           along to the output driver.  Fairly major rework of amrestore
14621           to clean up tape/non-tape and other oddities.
14622         * changer-src/chg-chio.pl.in: Ditto.
14623         * changer-src/chg-chs.sh.in: Ditto.
14624         * changer-src/chg-manual.sh.in: Ditto.
14625         * changer-src/chg-mtx.sh.in: Ditto.
14626         * changer-src/chg-multi.sh.in: Ditto.
14627         * changer-src/chg-rth.pl.in: Ditto.
14628         * changer-src/chg-zd-mtx.sh.in: Ditto.
14629         * client-src/sendbackup.c: Ditto.
14630         * common-src/alloc.c: Ditto.
14631         * common-src/amanda.h: Ditto.
14632         * docs/INTERNALS: Ditto.
14633         * man/Makefile.am: Ditto.
14634         * man/amanda.8.in: Ditto.
14635         * man/amdd.8: Ditto.
14636         * man/ammt.8: Ditto.
14637         * restore-src/amrestore.c: Ditto.
14638         * server-src/amcheck.c: Ditto.
14639         * server-src/amlabel.c: Ditto.
14640         * server-src/amtape.c: Ditto.
14641         * server-src/amverify.sh.in: Ditto.
14642         * server-src/conffile.c: Ditto.
14643         * server-src/conffile.h: Ditto.
14644         * server-src/taper.c: Ditto.
14645         * tape-src/Makefile.am: Ditto.
14646         * tape-src/amdd.c: Ditto.
14647         * tape-src/ammt.c: Ditto.
14648         * tape-src/output-file.c: Ditto.
14649         * tape-src/output-file.h: Ditto.
14650         * tape-src/output-null.c: Ditto.
14651         * tape-src/output-null.h: Ditto.
14652         * tape-src/output-rait.c: Ditto.
14653         * tape-src/output-rait.h: Ditto.
14654         * tape-src/output-tape.c: Ditto.
14655         * tape-src/output-tape.h: Ditto.
14656         * tape-src/tapeio.c: Ditto.
14657         * tape-src/tapeio.h: Ditto.
14658         * tape-src/tests/amtapeio.test.000: Ditto.
14659         * tape-src/tests/amtapeio.test.001: Ditto.
14660         * tape-src/tests/amtapeio.test.002: Ditto.
14661         * tape-src/tests/amtapeio.test.003: Ditto.
14662         * tape-src/tests/amtapeio.test.004: Ditto.
14663         * tape-src/tests/amtapeio.test.005: Ditto.
14664         * tape-src/tests/amtapeio.test.006: Ditto.
14665         * tape-src/tests/amtapeio.test.007: Ditto.
14666         * tape-src/tests/amtapeio.test.008: Ditto.
14667         * tape-src/tests/amtapeio.test.009: Ditto.
14668         * tape-src/tests/amtapeio.test.010: Ditto.
14669         * tape-src/tests/amtapeio.test.011: Ditto.
14670         * tape-src/tests/amtapeio.test.012: Ditto.
14671         * tape-src/tests/amtapeio.test.013: Ditto.
14672         * tape-src/tests/amtapeio.test.014: Ditto.
14673         * tape-src/tests/amtapeio.test.015: Ditto.
14674         * tape-src/tests/amtapeio.test.016: Ditto.
14675         * tape-src/tests/amtapeio.test.017: Ditto.
14676         * tape-src/tests/amtapeio.test.018: Ditto.
14677         * tape-src/tests/cleartape: Ditto.
14678         * tape-src/tests/newtest: Ditto.
14679         * tape-src/tests/rerun: Ditto.
14680         * tape-src/tests/runtest: Ditto.
14681         * tape-src/tests/testdist: Ditto.
14682         * tape-src/tests/torture: Ditto.
14683
14684 2001-01-24 John R. Jackson <jrj@purdue.edu>
14685
14686         * client-src/amandad.c: Improve packet logging.
14687
14688 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14689
14690         * server-src/driver.c (start_some_dumps): typo.
14691
14692 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14693
14694         * server-src/driverio.h (sched_t): new field no_space.
14695         * server-src/driver.c (start_some_dumps): don't start a disk if
14696           no_space is set.
14697         * server-src/driver.c (continue_dumps): set no_space if it's the
14698           only active dumpers, case c.
14699         * server-src/driver.c (read_schedule): set no_space to 0.
14700
14701 2001-01-23 John R. Jackson <jrj@purdue.edu>
14702
14703         * configure.in: Test for setmntent.
14704         * client-src/getfsent.c: Add some support for Redhat 7 /etc/fstab
14705           changes that indirectly reference the device for a file system.
14706
14707 2001-01-22  Marc W. Mengel <mengel@fnal.gov>
14708
14709         * recover-src/extract_list.c: Added -U to tar recover options
14710         to reduce errors recovering shared libs and/or binaries on
14711         active filesystems.
14712
14713 2001-01-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14714
14715         * docs/INSTALL: Notes about tar-1.13.19
14716
14717 2001-01-17  Thomas Hepper <th@ant.han.de>
14718
14719         * changer-src/chg-scsi.c: Moved definitions for config_t and
14720         changer_t into scsi-defs.h
14721         * changer-src/chg-scsi.c: New config option havebarcode
14722         * changer-src/scsi-changer-driver.c: Changed GenericBarCode do handle
14723         the option havebarcode. Replaced NoBarCode with GenericBarCode.
14724         Fixed compile warnings from -Wshadow
14725         * changer-src/scsi-linux.c: New function ScanBus to scan the SCSI Bus.
14726         not used yet.
14727         * changer-src/scsi-solaris.c: Changed the return value to
14728         Command.uscsi_status in SCSI_ExecuteCommand if the return from the
14729         ioctl is not 0;
14730         
14731 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14732
14733         * man/amanda.8.in: New section "HOST & DISK EXPRESSION" and 
14734           "DATESTAMP EXPRESSION".
14735         * man/amadmin.8.in: Document new usage.
14736         * man/amflush.8.in: Document new usage.
14737         * man/amcheck.8.in: Document new usage.
14738         * man/amdump.8.in: Document new usage.
14739         * man/amrestore.8: Document new usage.
14740         * server-src/amadmin.c: Fix usage.
14741         * server-src/amflush.c: Fix usage.
14742         * server-src/amcheck.c: Fix usage.
14743
14744 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14745
14746         * server-src/diskfile.c (match_disklist): Return if no args.
14747
14748 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14749
14750         * server-src/diskfile.c (match_disklist): Fix.
14751
14752 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14753
14754         * server-src/diskfile.c (match_disklist): Updated for
14755           [host [disk]*]* syntax.
14756
14757 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14758
14759         * common-src/match.c (match_datestamp): New function.
14760         * common-src/amanda.h (match_datestamp): Prototype.
14761         * server-src/amflush.c: Use match_datestamp.
14762         * restore-src/amrestore.c: Use match_datestamp.
14763
14764 2001-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14765
14766         * common-src/match.c (match_word): Support for leading ^ and
14767           trailing $.
14768
14769 2001-01-04 John R. Jackson <jrj@purdue.edu>
14770
14771         * common-src/error.c (error): If the debug file pointer is set, log
14772           any fatal error message to it and close the file so it has a good
14773           trace of what happened and when.
14774
14775 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14776
14777         * taper-src/am-dd.c: include "tapeio.h", fix debug warning.
14778         * taper-src/am-mt.c: include "tapeio.h", fix debug warning.
14779         * taper-src/output-rait.c: include "tapeio.h", new define for
14780            rait_debug
14781         * taper-src/tapeio.c(many): Remove unused tfd variable.
14782         * taper-src/tapeio.h (tape_unload,tape_status): Prototype.
14783
14784 2001-01-04 John R. Jackson <jrj@purdue.edu>
14785
14786         * client-src/killpgrp.c: Calls to error() do not need a newline.
14787
14788 2001-01-04 John R. Jackson <jrj@purdue.edu>
14789
14790         * man/amanda.8.in: Try to make it clearer that dumpcycle and maxdumps
14791           changes in the main part of the config file must appear before any
14792           dumptype definitions, and also that inherited dumptypes must appear
14793           before their reference.
14794
14795 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14796
14797         * server-src/driver.c (continue_dumps): Don't reduce est_size if
14798           it is already larger than holding space allocated.
14799         * server-src/dumper.c: Remove all code for FILE_DUMP command.
14800         * server-src/chunker.c: Better handling of ENOSPC from
14801           write_tapeheader().
14802
14803 2001-01-04 John R. Jackson <jrj@purdue.edu>
14804
14805         * server-src/conffile.c (main): Fix conffile test program so it builds
14806           and works again.
14807
14808 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14809
14810         * changer-src/scsi-defs.h (ChangerCMD_T): replace array function
14811           pointer by enumerated pointers.
14812         * changer-src/scsi-changer-driver.c: Use new calling convention.
14813
14814 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14815
14816         * server-src/amstatus.pl.in: Better support for TRY-AGAIN and
14817           ABORT-FINISHED result.
14818
14819 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14820
14821         * server-src/amflush.c: Use getopt to parse argument.
14822         * server-src/amflush.c: New [-D date]* argument.
14823         * man/amflush.8.in: Document it.
14824
14825 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14826         Patch by Andreas F Mueller <afm@othello.ch>
14827
14828         * server-src/amadmin.c (force_no_bump_one): Fix message.
14829
14830 2001-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14831
14832         * tape-src/am-dd.c: include "amanda.h"
14833         * tape-src/am-mt.c: include "amanda.h"
14834         * tape-src/am-mt.c (main): res is int.
14835         * tape-src/output-rait.c: include "amanda.h", do not define stderr.
14836         * tape-src/tapeio.c (xxx_tapefd_read, plain_tapefd_read): second
14837           argument should be "char *"
14838         * tape-src/tapeio.c (xxx_tapefd_write, plain_tapefd_write): second
14839           argument should be "const char *"
14840
14841 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14842
14843         * server-src/find.c (find_match): Use todo bit.
14844         * server-src/find.c (find_dump): No arguments.
14845         * server-src/find.h (find_dump): Change prototype.
14846         * server-src/amadmin.c (find): New [host disk]* pair arguments.
14847         * server-src/amindexd.c: Change call to find_dump().
14848         * server-src/amtrmidx.c: Change call to find_dump().
14849
14850 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14851
14852         * configure.in: Don't check krb5 include if krb5 is not selected.
14853
14854 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14855
14856         * tape-src/Makefile.am (noinst_HEADERS): Add output-rait.h
14857
14858 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14859
14860         * server-src/amadmin.c (diskloop): typo.
14861
14862 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14863
14864         * server-src/amadmin.c (diskloop): New [host disk]* pair arguments.
14865         * server-src/amadmin.c (diskloop, reuse, noreuse): use get_pname()
14866         instead of argv[0].
14867
14868 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14869
14870         * server-src/amflush.c (main):log DISK after checking if logfile exist.
14871
14872 2000-12-30 John R. Jackson <jrj@purdue.edu>
14873
14874         * common-src/bsd-security.c: Improve the .rhosts/.amandahosts messages
14875           when things go wrong.  Add support for "bsdsecurity" test program
14876           in common-src.
14877         * common-src/Makefile.am: Ditto.
14878         * common-src/amanda.h: Ditto.
14879         * restore-src/amidxtaped.c: Ditto.
14880         * server-src/amindexd.c: Ditto.
14881
14882 2000-12-30 John R. Jackson <jrj@purdue.edu>
14883
14884         * ChangeLog: Bring Jean-Louis into the right month :-).
14885         * changer-src/scsi-changer-driver.c: Untested changes to at least
14886           get the code to compile on Solaris and to remove some warnings.
14887         * changer-src/scsi-defs.h: Ditto.
14888         * changer-src/scsi-solaris.c: Ditto.
14889
14890 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14891
14892         * server-src/diskfile.c (add_disk): New function.
14893         * server-src/diskfile.h (add_disk): Prototype.
14894         * server-src/logfile.h (logtype_e): add L_DISK.
14895         * server-src/logfile.c (logtype_str): add "DISK".
14896         * server-src/amflush.c (main): log DISK.
14897         * server-src/planner.c (main): log DISK.
14898         * server-src/reporter.c: use DISK if available.
14899
14900 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14901
14902         * server-src/amcheck.c: New [host disk]* pair arguments.
14903         * server-src/amflush.c: Ditto.
14904         * server-src/planner.c: Ditto.
14905         * server-src/amdump.sh.in: Ditto.
14906         * server-src/amrestore.c: Use new host/disk matcher.
14907         * man/amcheck.8.in: Document new [host disk]* pair arguments.
14908         * man/amflush.8.in: Ditto.
14909         * man/amdump.8.in: Ditto.
14910
14911 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14912
14913         * server-src/diskfile.c (match_disklist): new function.
14914         * server-src/diskfile.h (struct disk_s): new field todo.
14915         * server-src/diskfile.h (match_disklist): prototype.
14916
14917 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14918
14919         * common-src/match.c (match_word, match_host, match_disk): 
14920         new functions.
14921         * common-src/amanda.h (match_host, match_disk): prototype.
14922
14923 2000-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14924
14925         * server-src/planner.c (analyze_estimate): pick incremental level
14926         if no estimate of level 0.
14927
14928 2000-12-28 Marc W. Mengel <mengel@fnal.gov>
14929         * changer-src/chg-juke.sh.in: New File
14930         * changer-src/Makefile.am: Added support for chg-juke.
14931         * docs/TAPE.CHANGERS: Likewise.
14932         * configure.in: Likewise.
14933
14934 2000-12-24 John R. Jackson <jrj@purdue.edu>
14935
14936         * server-src/getconf.c: Fix free() of static text string (BUGGY) when
14937           the parameter being looked up is bad.
14938
14939 2000-12-23 David Wolfskill  <dhw@whistle.com>
14940
14941         * server-src/amcheck.c (start_server_check): Change directory
14942           writable check to be for the tapelist directory instead of
14943           the config file directory.  Remove config file directory test.
14944         * man/amcheck.8.in: Add mention of tapelist directory and do
14945           some other directory writable cleanup.
14946
14947 2000-12-12 John R. Jackson <jrj@purdue.edu>
14948
14949         * client-src/sendbackup-gnutar.c: Fix regex pattern to accept blanks
14950           or tabs.
14951
14952 2000-12-12 John R. Jackson <jrj@purdue.edu>
14953
14954         * Makefile.am: Work around problem with automake 1.4 not including
14955           pkgdata_DATA.
14956         * docs/Makefile.am: Include RAIT and VTAPE-API in distribution.
14957           Work around problem with automake 1.4 not including pkgdata_DATA.
14958         * tape-src/rait.h: Renamed to rait.h.
14959         * tape-src/rait.c: Renamed to rait.c.
14960         * tape-src/output-rait.h: Renamed from rait.h.
14961         * tape-src/output-rait.c: Renamed from rait.c.
14962         * tape-src/Makefile.am: Reflect the new rait.[ch] names.
14963         * tape-src/tapeio.c: Use output-rait.h name.  Minor typo changes.
14964
14965 2000-12-08 Marc Mengel <mengel@fnal.gov>
14966
14967         * docs/RAIT: New file.
14968         * docs/VTAPE-API: New file.
14969         * tape-src/rait.c: New File providing RAIT virtual tape type.
14970         * tape-src/tapeio.c: Major Surgery.
14971           (vtable): New static table of virtual tape types.
14972           (fdtable): New static table mapping file descriptors.
14973           (tapefd_fsf_ioctl): Renamed tapefd_fsf, with added ioctl argument.
14974           (tapefd_rewind_ioctl): Likewise.
14975           (tapefd_unload_ioctl): Likewise.
14976           (tapefd_weof_ioctl): Likewise.
14977           (tapefd_status_ioctl): Likewise.
14978           (tape_open): Now is a virtual tape table lookup and call.
14979           (tape_access): Now is a switch through virtual tape table.
14980           (tape_stat): Likewise.
14981           (tapefd_close): Likewise.
14982           (tapefd_fsf): Likewise.
14983           (tapefd_read): Likewise.
14984           (tapefd_rewind): Likewise.
14985           (tapefd_resetofs): Likewise.
14986           (tapefd_unload): Likewise.
14987           (tapefd_status): Likewise.
14988           (tapefd_weof): Likewise.
14989           (tapefd_write): Likewise.
14990           (plain_tape_access): Rename of tape_access.
14991           (plain_tape_open): Likewise.
14992           (plain_tapefd_read): Likewise.
14993           (plain_tape_stat): Likewise.
14994           (plain_tapefd_write): Likewise.
14995           (plain_tapefd_close): Likewise.
14996           (plain_tapefd_fsf): Now calls tapefd_fsf_ioctl with &ioctl().
14997           (plain_tapefd_rewind): Likewise.
14998           (plain_tapefd_resetofs): Likewise.
14999           (plain_tapefd_unload): Likewise.
15000           (plain_tapefd_status): Likewise.
15001           (plain_tapefd_weof): Likewise.
15002
15003 2000-12-04 John R. Jackson  <jrj@purdue.edu>
15004
15005         * server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami
15006           problem.
15007
15008 2000-12-04 John R. Jackson  <jrj@purdue.edu>
15009
15010         * server-src/conffile.c (read_conffile_recursively): If the file name
15011           for the includefile directive is not absolute, make it relative to
15012           the configuration directory.
15013
15014 2000-12-03 John R. Jackson  <jrj@purdue.edu>
15015
15016         * restore-src/amrestore.c: Fix header when compression is included.
15017           Use "fast" option for -c and add new -C option to get "best".
15018         * man/amrestore.8: Document the new option, the compression level,
15019           and clean up some nroff issues.
15020
15021 2000-11-30 Marc Mengel <mengel@fnal.gov>
15022
15023         * changer-src/chg-chio.pl.in: Use am-mt and am-dd versus mt and dd.
15024         * changer-src/chg-chs.sh.in: Likewise.
15025         * changer-src/chg-manual.sh.in: Likewise.
15026         * changer-src/chg-mtx.sh.in: Likewise.
15027         * changer-src/chg-multi.sh.in: Likewise.
15028         * changer-src/chg-rth.pl.in: Likewise.
15029         * changer-src/chg-zd-mtx.sh.in:  Likewise.
15030         * tape-src/am-dd.c: New file. Replacement for dd.
15031         * tape-src/am-mt.c: New file. replacement for mt.
15032         * tape-src/Makefile.am: Add build for am-mt and am-dd.
15033         * tape-src/tapeio.c (tape_unload, tapefd_unload, tape_status, 
15034           tapefd_status): New functions.
15035           (tape_rewind, tape_fsf, tape_rdlabel): Change error message 
15036                 for tape being offline so it matches online/offline regex 
15037                 in changer scripts.
15038           (tape_open): Ifdef-out mode flag clearing, so you can pass 
15039                 O_TRUNC, etc.  in for am-dd.
15040
15041 2000-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15042
15043         * common-src/util.c: #include "../tape-src/tapeio.h"
15044         * tape-src/tapeio.c(tapefd_write): second arg is const.
15045         * tape-src/tapeio.h(tapefd_write): Likewise.
15046         * common-src/event.c(event_loop): declare entry if ASSERT is defined.
15047         * changer-src/chg-scsi.c: Fix compiler warning.
15048         * changer-src/scsi-aix.c: Likewise.
15049         * changer-src/scsi-bsd.c: Likewise.
15050         * changer-src/scsi-cam.c: Likewise.
15051         * changer-src/scsi-changer-driver.c: Likewise.
15052         * changer-src/scsi-defs.h: Likewise.
15053         * changer-src/scsi-hpux.c: Likewise.
15054         * changer-src/scsi-hpux_new.c: Likewise.
15055         * changer-src/scsi-irix.c: Likewise.
15056         * changer-src/scsi-linux.c: Likewise.
15057         * changer-src/scsi-solaris.c: Likewise.
15058         * changer-src/sense.c: Likewise.
15059
15060 2000-11-22 John R. Jackson  <jrj@purdue.edu>
15061
15062         * contrib/dbbackup.ksh: Deal with adm being a symlink.
15063         * contrib/dbbackup.tcl: Update for Tcl 8.3 and newer Oratcl versions.
15064
15065 2000-11-22 John R. Jackson  <jrj@purdue.edu>
15066
15067         * Makefile.am: Forgot to add contrib/sst/README.Amanda to the list
15068           of files to put in a distribution.
15069
15070 2000-11-21 John R. Jackson  <jrj@purdue.edu>
15071
15072         * recover-src/extract_list.c (extract_files_child): Add support for
15073           XFSRESTORE.
15074
15075 2000-11-21 John R. Jackson  <jrj@purdue.edu>
15076
15077         * server-src/amcheck.c: Minor message wording changes.
15078
15079 2000-11-21 John R. Jackson  <jrj@purdue.edu>
15080
15081         * configure.in: Forgot to check in this part of new amgetconf.8.in.
15082
15083 2000-11-21 John R. Jackson  <jrj@purdue.edu>
15084
15085         * contrib/sst/README.Amanda: New file of Amanda specific sst notes.
15086         * contrib/sst/sst.c: Attempt at letting gcc compile sst.
15087
15088 2000-11-21 John R. Jackson  <jrj@purdue.edu>
15089
15090         * man/amgetconf.8.in: New man page.
15091         * man/Makefile.am: Add support for amgetconf.8.in.
15092         * man/amadmin.8.in: Update for 2.4.2 and do general cleanup.
15093         * man/amanda.8.in: Ditto.
15094         * man/amcheck.8.in: Ditto.
15095         * man/amcheckdb.8.in: Ditto.
15096         * man/amcleanup.8.in: Ditto.
15097         * man/amdump.8.in: Ditto.
15098         * man/amflush.8.in: Ditto.
15099         * man/amlabel.8.in: Ditto.
15100         * man/amrecover.8.in: Ditto.
15101         * man/amreport.8.in: Ditto.
15102         * man/amrestore.8: Ditto.
15103         * man/amrmtape.8.in: Ditto.
15104         * man/amstatus.8.in: Ditto.
15105         * man/amtape.8: Ditto.
15106         * man/amtoc.8.in: Ditto.
15107         * man/amverify.8.in: Ditto.
15108
15109 2000-11-21 John R. Jackson  <jrj@purdue.edu>
15110
15111         * contrib/sst/sst.c (sst_ioctl): Allow non-root users to use sst.
15112
15113 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15114
15115         * server-src/amdump.sh.in: exit if amgetconf exit with status != 0.
15116         * server-src/amcleanup.sh.in: ditto
15117         * server-src/amstatus.pl.in: ditto
15118
15119 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15120
15121         * server-src/driver.c (start_some_dumps): don't check free_kps if
15122         curusage == 0.
15123         * server-src/driver.c (free_kps): remove the kludge.
15124
15125 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15126
15127         * server-src/conffile.c: It's an error to have a negative chunksize.
15128         * man/amanda.8.in: remove documentation of negative chunksize.
15129         * example/amanda.conf.in: ditto
15130         * example/amanda.conf.chg-scsi.in:ditto
15131         * NEWS: negative chunksize is no longer supported.
15132
15133 2000-11-03 John R. Jackson  <jrj@purdue.edu>
15134
15135         * server-src/driver.c (handle_taper_result): the holding disk entry
15136         should not be removed just because taper could not write it out in
15137         the "too many taper retries" case.  It should be left for amflush.
15138
15139 2000-11-01 John R. Jackson  <jrj@purdue.edu>
15140
15141         * server-src/amverify.sh.in: use common form for getting the first
15142         line of a file/pipe.  Sed is more portable than head.
15143
15144 2000-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15145
15146         * client-src/selfcheck.c (check_disk): Write an appropriate
15147         message if the disk name start with '//' and the program is DUMP
15148         or SAMBA is not compiled in.
15149
15150 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15151
15152         * server-src/driver.c (handle_chunker_result): The dumpsize is
15153         the third argument, not the fourth.
15154
15155 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15156
15157         * server-src/driver.c (handle_chunker_result): don't check
15158         pending_aborts, call event_release() ob ABORT-FINISHED.
15159
15160 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15161
15162         * server-src/chunker.c (databuf_flush): workaround to prevent a
15163         hang on a ABORT command.
15164
15165 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15166
15167         * server-src/driver.c (continue_dumps): set estimate to more than 
15168         what is already use instead of setting no_hold=1 when a disk
15169         don't fit on holding disk.
15170
15171 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15172
15173         * server-src/chunker.c: chunker was broken after RQ-MORE-DISK.
15174
15175 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15176
15177         * server-src/amstatus.pl.in: add '&' when calling &usage() 
15178         or &dump_size().
15179
15180 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15181         reported by The Hermit Hacker <scrappy@hub.org>
15182
15183         * changer-src/chg-chio.pl.in: remove unused $libexecdir.
15184
15185 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15186         reported by The Hermit Hacker <scrappy@hub.org>
15187
15188         * changer-src/chg-chio.pl.in: remove comma after LOG, 
15189         typo: r should be 0.
15190
15191 2000-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15192
15193         * docs/INDEXING: doc updated.
15194
15195 2000-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15196
15197         * AUTHORS: add Thomas Hepper.
15198
15199 2000-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15200
15201         * server-src/driverio.c (chunker_cmd): send ABORT command.
15202
15203 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15204
15205         * server-src/amverify.sh.in: grep only the first line of the header.
15206
15207 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15208
15209         * server-src/amverify.sh.in: verify with tar even if the
15210         server and the client are not configured with the same path.
15211
15212 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15213
15214         * NEWS: A new `ctimeout' keyword in amanda.conf to replace 
15215         the CHECK_TIMEOUT constant in amcheck.c.
15216
15217 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15218
15219         * server-src/amlabel.c: Don't set tape_ok to 0 if 
15220         tape_wrlabel is successful.
15221
15222 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15223
15224         * server-src/taper.c: amfree(strclosing).
15225
15226 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15227
15228         * server-src/driver.c: typo.
15229
15230 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15231
15232         * configure.in: --with-samba-user is deprecated.
15233         * docs/SAMBA: the username is now on the amandapass file.
15234         * NEWS: the username is now on the amandapass file.
15235         * client-src/findpass.c (findpass): accept "*" as diskname.
15236         * client-src/selfcheck.c (check_disk): call to samba changed.
15237         * client-src/sendsize.c (getsize_smbtar): ditto.
15238         * client-src/sendbackup-gnutar.c (start_backup): ditto.
15239         * recover-src/extract_list.c (extract_files_child): ditto.
15240
15241 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15242
15243         * server-src/taper.c: give better message when failing 
15244         to open a chunk.
15245
15246 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15247
15248         * server-src/diskfile.c (headqueue_disk): new function to
15249         insert at the head of the queue.
15250         * server-src/diskfile.h (headqueue_disk): prototype.
15251         * server-src/driver.c (taper_queuedisk): insert with
15252         headqueue_disk() if disk already attempted.
15253
15254 2000-10-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15255
15256         * AUTHORS: fix my email address.
15257
15258 2000-09-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15259
15260         * server-src/amcheck.c: Don't accept -m or -M option if MAILER
15261         is not defined.
15262         * server-src/reporter.c: Need a -f optionn if MAILER is not defined.
15263
15264 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15265         patch by <jeg@time.ucsc.edu>
15266
15267         * server-src/reporter.c (output_summary): check for tape_labels.
15268
15269 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15270
15271         * server-src/amindexd.c: use strcasecmp to compare hostname.
15272
15273 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15274
15275         * server-src/amstatus.pl.in: fix plural misuse.
15276
15277 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15278
15279         * man/amanda.8.in: add all pages in the SEE ALSO section.
15280
15281 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15282
15283         * man/amreport.8.in: amreport does not rotate the log.
15284         * man/amrestore.8: note on holdingdisk.
15285         * restore-src/amrestore.c: update usage.
15286         * server-src/amrmtape.sh.in: update usage.
15287         * server-src/amverify.sh.in.usage: update usage.
15288
15289 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15290
15291         * server-src/amoverview.pl.in: update usage information,
15292         -config is no longer needed for ccompatibility with other program.
15293         * man/amoverview.8.in: -config is no longer needed.
15294
15295 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15296
15297         * example/amanda.conf.in: chunk should not be larger than
15298         MAX_FILE_SIZE - 1Mb.
15299
15300 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15301
15302         * client-src/sendsize.c (getsize_smbtar): remove unused debug_level
15303         variable.
15304         * server-src/amlabel.c (main): init errstr to NULL, 
15305         fix compiler warning.
15306
15307 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15308         patch by jason Thomas <jet@users.sourceforge.net>
15309
15310         * tape-src/tapetype.c: fix help message.
15311
15312 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15313         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
15314
15315         * common-src/file.c (mkpdir): check p != NULL
15316         * man/amstatus.8.in: typo
15317
15318 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15319         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
15320
15321         * client-src/calcsize.c:sets correct program name,
15322         prevent coredumps and some improrer command line error mesages
15323
15324 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15325
15326         * common-src/amanda.h: prototype clean_regex().
15327         * common-src/match.c: new function clean_regex() that escape
15328         all non-alphanumeric character.
15329         * recover-src/extract_list.c (add_file, delete_file): use clean_regex().
15330
15331 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15332
15333         * server-src/amcheck.c: (start_server_check): check for the oldlog
15334         directory.
15335
15336 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15337
15338         * server-src/amtrmlog.c: better check of the oldlog directory.
15339
15340 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15341
15342         * server-src/amcheck.c: (start_server_check): don't check the tape
15343         if tapedev is /dev/null.
15344
15345 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15346
15347         * server-src/reporter.c (output_tapeinfo): test reversed for run_tapes.
15348
15349 2000-07-31 Thomas Hepper <th@ant.han.de>
15350         * changer-src/chg-scsi.c: Rework of the device handling.
15351         Every device is opend for an operation and than closed.
15352         This will hopefully fix the problems with openening the tape device
15353         and the SCSI control device for the tape
15354         new option emubarcode (see docs/TAPE.CHANGERS)
15355         * changer-src/scsi-cam.c: Changed to work with the new device handling.
15356         * changer-src/scsi-hpux_new.c: Changed to work with the new device handling.
15357         * changer-src/scsi-irix.c: Changed to work with the new device handling. (Not tested)
15358         * changer-src/scsi-solaris.c: Changed to work with the new device handling. (Not tested)
15359         * changer-src/scsi-linux.c: Changed to work with the new device handling.
15360         * changer-src/scsi-changer-driver.c: Changed to work with the new device handling
15361         * changer-src/scsi-defs.h: Changed to work with the new device handling
15362 2000-07-18 John R. Jackson  <jrj@purdue.edu>
15363
15364         * changer-src/chg-chio.pl.in (do_time): fix chg-chio.pl timestamp
15365         function to return a string instead of writing to stdout.
15366
15367 2000-07-18 John R. Jackson  <jrj@purdue.edu>
15368
15369         * server-src/taper.c (file_reader_side): detach and destroy shared
15370         memory areas on an error condition.  Found by Patrik Andersin
15371         <cat@iki.fi>.
15372
15373 2000-07-17 Thomas Hepper <th@ant.han.de>
15374         * docs/TAPE.CHANGERS: Added some notes for the cam driver
15375         * changer-src/scsi-cam.c: New syntax for telling scsi ids
15376         (bus:target:lun)
15377         SCSI_ExecuteCommand now returns the correct sense buffer.
15378
15379 2000-07-17 Thomas Hepper <th@ant.han.de>
15380         * configure.in: Added check for BSD SCSI CAM Support
15381         * changer-src/scsi-cam.c: New, functions for SCSI CAM Support
15382         ( at the moment for FreeBSD 4.0)
15383         * changer-src/Makefile.am: added scsi-cam.s to the list of sources
15384         * changer-src/chg-scsi.c: The structs for the OpenFiles_T is now
15385         allocated in chg-scsi and passed to OpenDevice.
15386         * changer-src/scsi-changer-driver.c: New Parameter for OpenDevice
15387         (OpenFiles_T)
15388
15389 2000-07-10 Marc Mengel <mengel@fnal.gov>
15390         * tape-src/tapeio.c -- add tape_{stat,access}, allow "plain:" prefix
15391                 on tape device names
15392         * tape-src/tapeio.h -- add tape_{stat,access} prototypes
15393         * common-src/util.c -- call tape_{read,write}() in full{read,write}()
15394         * restore-src/amidxtaped.c -- use tape_stat() on tapename
15395         * restore-src/amrestore.c -- use tape_stat() on tapename
15396         * server-src/amcheck.c -- use tape_access() on tapename
15397         * client-src/Makefile.am -- now needs libamtape.a twice
15398         * server-src/Makefile.am -- now needs libamtape.a twice
15399         * recover-src/Makefile.am -- now needs libamtape.a twice
15400         * Makefile.am -- tape-src before client-src
15401
15402 2000-07-05 Thomas Hepper <th@ant.han.de>
15403         * changer-src/chg-scsi.c: fixed an core dump if tapeident was set
15404         * changer-src/scsi-changer-driver.c (OpenFile):
15405          if the ident ist set in the config set this in the internal device 
15406          struct too.
15407         * changer-src/scsi-changer-driver.c (GenerciSenseHandler):
15408          changed the type for the info text from char * to char ** which
15409          is passwd to Sense2Action
15410         * changer-src/scsi-changer-driver.c (ChangerStatus):
15411          fixed the bug which causes an core dump for chg-scsi -status robot
15412          if an bar code reader is detected. Fixed also the bug that the
15413          mapping Label -> Barcode was not displayed.
15414         * changer-src/scsi-defs.h: Changed the prototype for Sense2Action
15415         * changer-src/sense.c: Added the defs for the Spectra TreeFrog lib
15416         * changer-src/sense.c (Sense2Action); Fixed the handling if no match
15417          was found (fall back to the generic description)
15418
15419 2000-06-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15420
15421         * server-src/list_dir.c (add_dir_list_item): add at head of list.
15422
15423 2000-06-24 Thomas Hepper <th@ant.han.de>
15424         * changer-src/chg-scsi-chio.c: Merged changes from 2.4.2 
15425         * changer-src/chg-scsi.c: Merged changes from 2.4.2
15426         * changer-src/sense.c: New file. Contains an table and function for the 
15427           mapping of sense/ASC/ASCQ conditions from the SCSI sense.
15428         * changer-src/scsi-changer-driver.c: Merged changes from 2.4.2
15429           Changed handling for the sense keys. Now there is only one function
15430           to decide what to do with an sense/ASC/ASCQ conditon (abort,retry ..)
15431         * changer-src/Makefile.am: Added sense.c to the source list.
15432         * changer-src/scsi-solaris.c: Merged changes from 2.4.2 
15433         * changer-src/scsi-linux.c: Merged changes from 2.4.2 
15434         * changer-src/scsi-irix.c: Merged changes from 2.4.2 
15435         * changer-src/scsi-hpux_new.c: Merged changes from 2.4.2 
15436         * changer-src/scsi-defs.h: Merged changes from 2.4.2 
15437         
15438 2000-06-12  Jeroen Ruigrok van der Werven  <asmodai@wxs.nl>
15439
15440         * server-src/amlabel.c (main): Do not amfree(config_name).
15441
15442 2000-06-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15443
15444         * server-src/holding.c (pick_datestamp): convert ch to upper.
15445
15446 2000-05-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15447
15448         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
15449           delay call to dumper_result().
15450
15451 2000-05-28  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15452
15453         * client-src/sendbackup-gnutar.c: Ignore `socket ignored' GNU tar
15454         messages.
15455
15456 2000-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15457
15458         * chunker.c: allow chunk to be written on different holding disk.
15459         * server-src/driver.c: allow chunk to be written on different
15460           holding disk.
15461         * server-src/conffile.c: make sure that disksize and chunksize
15462           are multiple of TAPE_BLOCK_SIZE.
15463         * server-src/conffile.h: disksize and chunksize are long.
15464         * server-src/diskfile.c (find_disk): new function to see if a
15465           given disk is contained in a list structure.
15466         * server-src/diskfile.h (find_disk): prototype.
15467         * server-src/driverio.h (RQ_MORE_DISK): Added message.
15468         * server-src/driverio.h (free_assignedhd): prototype.
15469         * server-src/driverio.h (assignedhd_t): new data structure.
15470         * server-src/driverio.c (cmdstr): added comamnd RQ-MORE-DISK.
15471         * server-src/driverio.c (free_assignedhd): new function to free an
15472           array of assignedhd_t.
15473         
15474 2000-05-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15475
15476         * server-src/driver.c (chunker_program): new variable.
15477
15478 2000-04-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15479
15480         * server-src/amstatus.pl.in: handle chunker line.
15481
15482 2000-04-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15483
15484         * recover-src/Makefile.am (LDADD): Removed libamtape.
15485         Reported by Paul Yeatman <pyeatman@ucsd.edu>
15486
15487 2000-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15488
15489         * server-src/chunker.c: new file for the chunker program.
15490         * server-src/Makefile.am: compile it.
15491         * server-src/driver.c: many modification.
15492         * server-src/driverio.c: many modification.
15493         * server-src/driverio.c (startup_chunk_process, chunker_cmd):
15494         new functions.
15495         * server-src/driverio.h: prototype them.
15496         * server-src/driverio.h (struct chunker_s): new structure.
15497         * server-src/logfile.c: handle chunker log.
15498         * server-src/logfile.h: ditto.
15499         * server-src/reporter.c: ditto.
15500         * server-src/taper.c: size reduced by TAPE_BLOCK_SIZE.
15501
15502 2000-04-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15503
15504         * server-src/taper.c: don't crash if the tapelist file
15505         doesn't exist.
15506
15507 2000-04-09  Frank Wojcik  <fwojcik@lucent.com>
15508
15509         * server-src/taper.c (detach_buffers): Fixed typo in error message.
15510
15511         * server-src/amrmtape.sh.in: Fix occurrence of `Infofile', that
15512         should have been `InfoFile'.
15513
15514 2000-04-09  Davide Marchignoli  <marchign@di.unipi.it>
15515   
15516         * server-src/conffile.h (confparm_t): Added CTIMEOUT.
15517         * server-src/conffile.c: Added ctimeout support.  Default to 30.
15518         * example/amanda.conf.in: Likewise.
15519         * man/amanda.8.in: Documented it.
15520         * server-src/amcheck.c: Use ctimeout from configuration file instead
15521         of CHECK_TIMEOUT.
15522
15523 2000-04-09  Stan Brown  <stanb@awod.com>
15524
15525         * recover-src/amrecover.c (guess_disk): Omit DEV_PREFIX only if
15526         it is actually a prefix of fsname.
15527
15528 2000-04-09  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15529
15530         * server-src/amlabel.c (main): Check label *after* writing end mark.
15531
15532 2000-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15533
15534         * server-src/amlabel.c: don't crash if the tapelist file 
15535         doesn't exist.
15536
15537 2000-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15538
15539         * server-src/amstatus.pl.in: "0 dumpers busy" should be "0 dumper busy".
15540
15541 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15542
15543         * server-src/amadmin.c (force_one, force_bump_one): FORCE_FULL
15544         and FORCE_BUMP are mutually exclusive.
15545
15546 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15547
15548         * server-src/driver.c (main): use the holding disk even if the
15549         datestamped directory already exist.
15550
15551 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15552
15553         * server-src/amstatus.pl.in (prefix, exec_prefix): Refer to them
15554         twice to avoid warnings of possible typo.
15555
15556         * amplot/amplot.awk: Ignore dumper's RQ-MORE-DISK.
15557         Reported by David Wolfskill <dhw@whistle.com>
15558         * amplot/amplot.awk: Handle taper's TRY-AGAIN like TAPE-ERROR.
15559
15560         * server-src/amstatus.pl.in: Compute and display TRY-AGAIN tape
15561         errors.
15562         Reported by David Wolfskill <dhw@whistle.com>
15563
15564         * man/amtoc.8.in: Document -w.
15565
15566 2000-01-21  David Wolfskill  <dhw@whistle.com>
15567
15568         * server-src/amtoc.pl.in: Add `-w' to add new lines and form feeds.
15569
15570 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15571
15572         * man/amlabel.8.in: Tapes are no longer requested in reverse order
15573         of amlabeling.
15574         Reported by Brad Guillory <round@baileylink.net>
15575
15576         * server-src/amstatus.pl.in: New option --stats, to display
15577         statistics about dumpers and taper.
15578         * man/amstatus.8.in: Document it.
15579
15580 2000-01-21  David Wolfskill  <dhw@whistle.com>
15581
15582         * server-src/amstatus.pl.in: Sort dumpers by number.
15583
15584 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15585
15586         * server-src/amstatus.pl.in: Remove bogus (?) line `$$host=1'.
15587
15588         * configure.in (MAILER): Warn or print an error if not found,
15589         depending on whether server code is disabled or not.
15590
15591         * server-src/reporter.c (output_tapeinfo): Report used tapes
15592         regardless of tape errors.
15593
15594         * config/acinclude.m4i (CF_WAIT): Simplify the test.  Declare wait()
15595         in the global scope.
15596
15597 2000-01-21  Garrett Wollman  <wollman@khavrinen.lcs.mit.edu>
15598
15599         * config/acinclude.m4i (CF_WAIT): Avoid warnings on systems
15600         where `union wait' works but is deprecated.
15601
15602 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15603
15604         * recover-src/uscan.l (settape): Recognize it.
15605         * recover-src/uparse.y: Parse it.
15606         * recover-src/amrecover.h (set_tape): Declare it.
15607         * recover-src/set_commands.c (set_tape): Implement it.
15608         * recover-src/help.c (help_list): Document it.
15609         * man/amrecover.8.in: Likewise.
15610         * recover-src/extract_list.c (extract_files): Warn if tape device is
15611         /dev/null.
15612         * recover-src/amrecover.c (tape_device_name): Default to
15613         server-determined default.
15614
15615 2000-01-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15616
15617         * configure.in: Recognize alpha*-*-linux-* and sparc*-*-linux-*.
15618
15619         * tape-src/Makefile.am (../common-src/libamanda.$(LIB_EXTENSION)):
15620         Allow for `make tapetype' before libamanda is built.
15621
15622         * server-src/amoverview.pl.in: Year doesn't take just 2 bytes.
15623
15624 2000-01-06  David Wolfskill  <dhw@whistle.com>
15625
15626         * docs/TAPETYPES: Typo.
15627         
15628 2000-01-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15629
15630         * docs/TAPETYPES: Removed all tapetype entries.  Pointed to
15631         example/amanda.conf, to the mailing list archives and to the on-line
15632         tapetype list.  Explained the meaning of length, filemark and speed,
15633         and how to build and use the tapetype utility.
15634
15635 1999-12-12 John R. Jackson  <jrj@purdue.edu>
15636
15637         * configure.in: egrep was having trouble with quoting on some systems.
15638         Broke it apart into multiple unquoted statements.  Also, changed the
15639         script to run the steps on all dump tests and added "Label" as another
15640         line to ignore.
15641
15642 1999-12-12 John R. Jackson  <jrj@purdue.edu>
15643
15644         * tape-src/tapetype.c: tweak the algorithm to write files in both
15645         passes and compute the tape mark size as the difference.  Never
15646         report a negative tape mark size.  Various other minor cleanup.
15647
15648 1999-11-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15649
15650         * client-src/sendbackup-gnutar.c (re_table): #if out the debugging
15651         Samba messages unless SAMBA_VERSION < 2.
15652
15653 1999-11-29  John E.P.Hynes  <john@hytronix.ne.mediaone.net>
15654
15655         * client-src/sendbackup-gnutar.c (re_table): Update for Samba 2.0.6.
15656
15657 1999-11-25 John R. Jackson  <jrj@purdue.edu>
15658
15659         * server-src/amflush.c (main): conf_logdir should not be free'd
15660           (found by Espen H Wiborg <espenhw@infotek.no>).
15661
15662 1999-11-10 John R. Jackson  <jrj@purdue.edu>
15663
15664         * recover-src/extract_list.c: report the tape server host in the
15665           message to check the amidxtaped.debug file.   If extract_list_child
15666           fails (such as when amidxtaped fails to read the tape), ask if
15667           things should continue instead of aborting.
15668
15669 1999-11-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15670
15671         * server-src/driverio.c (update_info_dumper): Discard information on
15672         older same- or higher-level dumps.
15673         * server-src/driver.c (dump_to_tape): Add comment that _dumper must
15674         be called before _taper.
15675
15676         * docs/FAQ: Sometimes FQDNs are wrong for amandahosts.
15677
15678 1999-11-10 John R. Jackson  <jrj@purdue.edu>
15679
15680         * server-src/amindexd.c (build_disk_table): need to clear the old
15681           disk history list before building a new one.
15682
15683 1999-11-10 John R. Jackson  <jrj@purdue.edu>
15684
15685         * server-src/taper.c (label_tape): issue a warning when tapedev is
15686           set to /dev/null.
15687         * server-src/amcheck.c (start_server_check): make warning message
15688           text the same for amcheck and taper when tapedev is /dev/null.
15689
15690 1999-11-10 John R. Jackson  <jrj@purdue.edu>
15691
15692         * server-src/amcleanupdisk.c (main): try to remove empty holding disk
15693           areas.
15694         * server-src/holding.c (scan_holdingdisk): do not automatically remove
15695           empty holding disk areas since this function is called by various
15696           utilities and a dump might be in progress.
15697
15698 1999-11-10  James FitzGibbon  <james@targetnet.com>
15699
15700         * server-src/infofile.c (put_info): d.size should have been
15701         d.dsize.
15702
15703 1999-11-09 John R. Jackson  <jrj@purdue.edu>
15704
15705         * server-src/amcheck.c (start_server_check): test tapedev for
15706           "/dev/null" and issue warning that dumps will be thrown away.
15707
15708 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
15709
15710         * server-src/amadmin.c (main): Second occurrence of CNF_TAPELIST
15711         should have been CNF_INFOFILE; fixed.
15712
15713 1999-11-02  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15714
15715         * common-src/amflock.c (struct flock): Do not assume the fields are
15716         declared in any particular order.
15717         Reported by Sean Kelly <kelly@plutotech.com>
15718
15719         * Makefile.am (EXTRA_DIST): Added contrib/set_prod_link.pl.
15720         * docs/INSTALL: Likewise.
15721
15722 1999-11-02  Ricardo Malta  <rmalta@bigfoot.com>
15723         
15724         * contrib/set_prod_link.pl: Create the links for a configuration
15725         with --with-suffix.
15726
15727 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
15728
15729         * common-src/rsh-security.c (net_writev): The result of a cast is
15730         not an lvalue; fixed.
15731
15732 1999-10-26  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
15733
15734         * server-src/amtoc.pl.in: Correct a bug for total report.
15735
15736 1999-11-01 John R. Jackson  <jrj@purdue.edu>
15737
15738         * server-src/amcleanupdisk.c (main): do not free the config name (it
15739           was never alloc-d).
15740
15741 1999-10-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15742
15743         * common-src/debug.c: Do not assume stderr is a compile-time
15744         constant.  On glibc 2.2 (RedHat Linux 6.1), it is not.
15745
15746 1999-10-11  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
15747
15748         * server-src/amtoc.pl.in: Add new options -i and -t.  Print original
15749         size, instead of size on tape.
15750
15751 1999-10-07 John R. Jackson  <jrj@purdue.edu>
15752
15753         * common-src/stream.c (stream_server): remove reference to portrange
15754           variable.  Compliments of Randy Dees <rrd@amherst.com>.
15755
15756 1999-10-03 John R. Jackson  <jrj@purdue.edu>
15757
15758         * server-src/driver.c (main): now that multiple results can come back
15759           from taper and dumper without a handshake (e.g. NO-ROOM), we need to
15760           process them all rather than just the first one.  Call the new
15761           areads_dataready() function to peek and see if more data is ready.
15762         * common-src/amanda.h: declare areads_dataready().
15763         * common-src/file.c: define areads_dataready().  Fix some variable
15764           types.  Fix a buffer expansion problem.  Add code to the test
15765           program to force buffer expansion to be checked out.
15766
15767 1999-10-03 John R. Jackson  <jrj@purdue.edu>
15768
15769         * common-src/file.c (areads_getbuf): fix a buffer allocation problem.
15770
15771 1999-10-03 John R. Jackson  <jrj@purdue.edu>
15772
15773         * common-src/amflock.c (main): do not use aclose() in the configure
15774           test case.  During configure we do not have areads_relbuf()
15775           available and it makes configure think all the tests have failed.
15776
15777 1999-10-03 John R. Jackson  <jrj@purdue.edu>
15778
15779         * common-src/amanda.h: protect the close macros and areads* from
15780           out of range file descriptors.
15781         * common-src/file.c: ditto.
15782
15783 1999-10-02 John R. Jackson  <jrj@purdue.edu>
15784
15785         * server-src/amindexd.c (build_disk_table): only "OK" results from
15786           find_dump should be considered.
15787
15788 1999-10-02 John R. Jackson  <jrj@purdue.edu>
15789
15790         * common-src/file.c (areads): when NO-ROOM became advisory and didn't
15791           participate in a full handshake, it exposed a problem in areads()
15792           where a static buffer was shared among all I/O.  Changed it to use
15793           a separate buffer for each file descriptor.  Enhanced the test
15794           program to check out the code.
15795         * common-src/amanda.h: ditto
15796         * restore-src/amidxtaped.c: minor areads/agets comment typo.
15797         * server-src/amindexd.c: ditto
15798
15799 1999-10-02 John R. Jackson  <jrj@purdue.edu>
15800
15801         * server-src/amlogroll.c: fix minor memory leak.
15802
15803 1999-09-29 John R. Jackson  <jrj@purdue.edu>
15804
15805         * server-src/dumper.c (do_dump): closed the dump messages file too
15806           soon.
15807
15808 1999-09-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15809
15810         * recover-src/extract_list.c (samba_extract_method): Default to
15811         SAMBA_TAR, for similarity with other restore programs.
15812         (extract_files_child): If restore with SMBCLIENT is enabled, explain
15813         that Samba shares will be restored to the SMB share.
15814
15815 1999-09-22 John R. Jackson  <jrj@purdue.edu>
15816
15817         * configure.in: wrong variable when processing LIBRARY_DIRS.  Fix
15818           compliments of John M. Vogtle <jmvogtle@kodak.com>.
15819
15820 1999-09-20 John R. Jackson  <jrj@purdue.edu>
15821
15822         * server-src/Makefile.am: use new amlogroll utility to rename the log
15823           file to the datestamped name.
15824         * server-src/amcheck.c: ditto.
15825         * server-src/amcleanup.sh.in: ditto and call all utilities with the
15826           config file name as an argument.
15827         * server-src/amdump.sh.in: ditto and call all utilities with the
15828           config file name as an argument.
15829         * server-src/amflush.c: ditto.
15830         * server-src/amlogroll.c: new utility.
15831         * server-src/driverio.c: ditto and call all utilities with the
15832           config file name as an argument.
15833         * server-src/reporter.c: ditto.
15834
15835 1999-09-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15836
15837         * amlogroll.c: It was missing; copied from the 2.4.2 branch.
15838
15839         * configure.in (AMANDA_TMPDIR): Added comment for config.h.in.
15840
15841 1999-09-19 John R. Jackson  <jrj@purdue.edu>
15842
15843         * server-src/amverify.sh.in: this script is important enough it should
15844           not depend on having perl installed.  Clean up the AIX "mt status"
15845           code.  Test for presense of other restore programs and check that
15846           they are executable during processing.
15847
15848 1999-09-19 John R. Jackson  <jrj@purdue.edu>
15849
15850         * server-src/amverify.sh.in: put back an "mt status" wait loop I
15851           erroneously removed, but protect it from AIX.
15852
15853 1999-09-19 John R. Jackson  <jrj@purdue.edu>
15854
15855         * common-src/util.c: fix math in bind_portrange so ports requested
15856           are between those the caller passed and make sure port 0 does not
15857           accidentally get requested, which returns a non-privileged port.
15858         * common-src/dgram.c: bind_portrange last port argument is inclusive.
15859         * common-src/stream.c: ditto.
15860         * recover-src/amrecover.c: ditto.
15861         * recover-src/extract_list.c: ditto.
15862
15863 1999-09-19 John R. Jackson  <jrj@purdue.edu>
15864
15865         * server-src/driver.c: do not send a FILE_WRITE to the taper when the
15866           tape queue is empty during a TRYAGAIN (driver core dumped).
15867
15868 1999-09-19 John R. Jackson  <jrj@purdue.edu>
15869
15870         * server-src/taper.c: fix protocol problems when out of tape.  Add
15871           FAKE_TAPE_ERROR debugging code to simulate tape errors.  Fix problem
15872           with command line argument processing.
15873
15874 1999-09-18 John R. Jackson  <jrj@purdue.edu>
15875
15876         * configure.in: several compress/uncompress variables were not being
15877           set properly.
15878
15879 1999-09-18 John R. Jackson  <jrj@purdue.edu>
15880
15881         * client-src/sendbackup.c: pclose returns a child exit status of the
15882           pipe, not an errno, so do not try to strerror it.
15883           Have the index child process exit with the pclose exit code.
15884           Treat index failures as strange rather than fatal so the dump gets
15885           fully processed.  It's more important to have the dump image than
15886           to skip it just because indexing had a (possibly unrelated) problem.
15887
15888 1999-09-15 John R. Jackson  <jrj@purdue.edu>
15889
15890         * server-src/amtoc.pl.in: handle an image failing on one tape and
15891           succeeding on the next.
15892
15893 1999-09-15 John R. Jackson  <jrj@purdue.edu>
15894
15895         * server-src/amstatus.pl.in: generalize the "driver: state" parsing
15896           so it can handle current and future information.
15897
15898 1999-09-15 John R. Jackson  <jrj@purdue.edu>
15899
15900         * common-src/bsd-security.c: if the user field is not present in the
15901           .amandahosts file, it should default to the local user, not the
15902           remote user.  For our purposes, that is CLIENT_USER, not the user
15903           we are running as (although they should be the same).
15904
15905 1999-09-14 John R. Jackson  <jrj@purdue.edu>
15906
15907         * configure.in: Add --with-tmpdir to ./configure and use it for
15908           all Amanda temporary files.  Default --with-dbgdir to --with-tmpdir.
15909           Move libexec/getconf to sbin/amgetconf and add an optional
15910           config parameter.  Add optional config parameter to several
15911           other programs.
15912           Add debugging to chg-chio.
15913           Call new safe_cd() function in most programs to cd to --with-tmpdir
15914           so if they drop core, it goes to a known spot.  Rename existing
15915           core files so more than one failure may be tracked.  Remove most
15916           chdir() and umask() calls (umask is set in safe_cd).
15917         * amplot/amplot.sh.in: ditto.
15918         * changer-src/chg-chio.pl.in: ditto.
15919         * changer-src/chg-chs.sh.in: ditto.
15920         * changer-src/chg-manual.sh.in: ditto.
15921         * changer-src/chg-mtx.sh.in: ditto.
15922         * changer-src/chg-multi.sh.in: ditto.
15923         * changer-src/chg-rth.pl.in: ditto.
15924         * changer-src/chg-scsi-chio.c: ditto.
15925         * changer-src/chg-scsi.c: ditto.
15926         * changer-src/chg-zd-mtx.sh.in: ditto.
15927         * client-src/amandad.c: ditto.
15928         * client-src/calcsize.c: ditto.
15929         * client-src/killpgrp.c: ditto.
15930         * client-src/rundump.c: ditto.
15931         * client-src/runtar.c: ditto.
15932         * client-src/selfcheck.c: ditto.
15933         * client-src/sendbackup-gnutar.c: ditto.
15934         * client-src/sendbackup.c: ditto.
15935         * client-src/sendsize.c: ditto.
15936         * common-src/alloc.c: ditto.
15937         * common-src/amanda.h: ditto.
15938         * common-src/amflock.c: ditto.
15939         * common-src/bsd-security.c: ditto.
15940         * common-src/debug.c: ditto.
15941         * common-src/file.c: ditto.
15942         * common-src/genversion.c: ditto.
15943         * restore-src/amidxtaped.c: ditto.
15944         * server-src/Makefile.am: ditto.
15945         * server-src/amadmin.c: ditto.
15946         * server-src/amcheck.c: ditto.
15947         * server-src/amcheckdb.sh.in: ditto.
15948         * server-src/amcleanup.sh.in: ditto.
15949         * server-src/amcleanupdisk.c: ditto.
15950         * server-src/amdump.sh.in: ditto.
15951         * server-src/amflush.c: ditto.
15952         * server-src/amfreetapes.sh.in: ditto.
15953         * server-src/amindex.c: ditto.
15954         * server-src/amindex.h: ditto.
15955         * server-src/amindexd.c: ditto.
15956         * server-src/amlabel.c: ditto.
15957         * server-src/amrmtape.sh.in: ditto.
15958         * server-src/amstatus.pl.in: ditto.
15959         * server-src/amtape.c: ditto.
15960         * server-src/amtrmidx.c: ditto.
15961         * server-src/amtrmlog.c: ditto.
15962         * server-src/amverify.sh.in: ditto.
15963         * server-src/changer.c: ditto.
15964         * server-src/changer.h: ditto.
15965         * server-src/conffile.c: ditto.
15966         * server-src/conffile.h: ditto.
15967         * server-src/diskfile.c: ditto.
15968         * server-src/driver.c: ditto.
15969         * server-src/driverio.c: ditto.
15970         * server-src/dumper.c: ditto.
15971         * server-src/find.c: ditto.
15972         * server-src/getconf.c: ditto.
15973         * server-src/holding.c: ditto.
15974         * server-src/infofile.c: ditto.
15975         * server-src/logfile.c: ditto.
15976         * server-src/planner.c: ditto.
15977         * server-src/reporter.c: ditto.
15978         * server-src/tapefile.c: ditto.
15979         * server-src/taper.c: ditto.
15980
15981 1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15982
15983         * common-src/bsd-security.c (bsd_stream): fn should take an ssize_t.
15984         (bsd_stream_read): Likewise, declaration.
15985         * common-src/rsh-security.c (rsh_stream): Likewise.
15986         (rsh_stream_read): Likewise, declaration and definition.
15987         * common-src/krb4-security.c (dummy): Compile when disabled.
15988         * common-src/krb5-security.c (dummy): Likewise.
15989
15990         * server-src/reporter.c (sDivZero): Change from float to double, to
15991         build with DEC cc.
15992
15993         * configure.in: Get snapshot date from SNAPSHOT file, if it exists.
15994         (VERSION): Add the date to it.
15995         (SNAPSHOT_STAMP): AC_SUBST to the SNAPSHOT file, if it exists.
15996         * Makefile.am (EXTRA_DIST): Added $(SNAPSHOT_STAMP).
15997         (config.status): Depend on $(SNAPSHOT_STAMP).
15998         (SNAPSHOT): Dummy rule to allow reconfigure if it's removed.
15999
16000         * config/Makefile.am: Remove all traces of acconfig.h.
16001
16002         * server-src/changer.c (changer_command): Fix for amwait_t != int.
16003
16004 1999-09-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16005
16006         * config/acinclude.m4i: Added comments for config/config.h.in to all
16007         AC_DEFINEs.
16008         * configure.in: Likewise.
16009         * config/acconfig.h: Deleted.
16010         * autogen: Updated.
16011
16012 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16013
16014         * changer-src/chg-chio.pl.in: add -w to #! line to catch more errors.
16015         * recover-src/display_commands.c: fix some compiler warnings.
16016         * recover-src/extract_list.c: fix some compiler warnings.
16017         * restore-src/amrestore.c: fix some compiler warnings.
16018         * server-src/planner.c: fix some compiler warnings.
16019
16020 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16021
16022         * recover-src/extract_list.c: add VRESTORE and VXRESTORE support.
16023
16024 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16025
16026         * common-src/stream.c: make sure errno is returned properly from
16027           stream_client() and stream_server().
16028         * server-src/taper.c: report errors from stream_server() and
16029           abort.
16030         * recover-src/extract_list.c: make sure errno is preserved.
16031
16032 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16033
16034         * configure.in: make sure the dump and restore programs are defined
16035           in pairs, do not allow just the dump program without restore.
16036         * client-src/sendbackup-dump.c: assume restore program is present
16037           if dump program is.
16038         * common-src/genversion.c: assume restore program is present if
16039           dump program is.
16040
16041 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16042
16043         * common-src/genversion.c: CLIENT_LOGIN has to be defined so there
16044           is no point testing for it.
16045         * server-src/conffile.c: ditto.
16046
16047 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16048
16049         * server-src/amverify.sh.in: add SMBCLIENT, VRESTORE, VXRESTORE
16050           and XFSRESTORE support.
16051
16052 1999-09-05 John R. Jackson  <jrj@purdue.edu>
16053
16054         * server-src/conffile.c: add several common abbreviations to config
16055           file processing.
16056
16057 1999-09-01 John R. Jackson  <jrj@purdue.edu>
16058
16059         * server-src/amtoc.pl.in: allow multiple -s entries.
16060
16061 1999-09-01 John R. Jackson  <jrj@purdue.edu>
16062
16063         * server-src/reporter.c: handle/report a common columnspec syntax
16064           error instead of dumping core.
16065
16066 1999-09-01 John R. Jackson  <jrj@purdue.edu>
16067
16068         * man/amanda.8.in: typo in columnspec description.
16069
16070 1999-09-01 John R. Jackson  <jrj@purdue.edu>
16071
16072         * common-src/dgram.h: expressions in #define should be protected by
16073           parenthesis.
16074
16075 1999-08-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
16076
16077         * changer-src/chg-chs.sh.in (changerdev): Pass it as -f flag to CHS.
16078         * docs/TAPE.CHANGERS: Document it.
16079         Reported by Mike Horansky <moho@stanford.EDU>
16080
16081         * server-src/conffile.c (read_dumptype): Renamed from get_dumptype.
16082         Extended to support reading a named dumptype from a specified FILE.
16083         (get_dumptype): Use read_dumptype.
16084         (main): Read disklist, so that custom dumptypes are shown.
16085         * server-src/conffile.h (read_dumptype): Declare.
16086         * server-src/diskfile.c (parse_diskline): Get line_num and line by
16087         reference.  New argument diskf.  Use read_dumptype if dumptype
16088         starts with `{'.
16089         (main): Update.
16090         * man/amanda.8.in (disklist): Document it.
16091         * NEWS: Likewise.
16092         * example/disklist: Exemplify it.
16093
16094 1999-08-23 John R. Jackson  <jrj@purdue.edu>
16095
16096         * recover-src/amrecover.c (main): fix test for IPPORT_RESERVED.
16097         * recover-src/extract_list.c (extract_files_setup): ditto.
16098
16099 1999-08-23 John R. Jackson  <jrj@purdue.edu>
16100
16101         * server-src/reporter.c (copy_template_file): make sure all data is
16102           written to label template pipeline.
16103
16104 1999-08-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
16105
16106         * common-src/Makefile.am: Replace .o with OBJEXT.  List sources
16107         explicitly, instead of LDADDing the corresponding objects.
16108         (OBJ_EXTENSION): Wipe out, use OBJEXT.
16109
16110         * configure.in: Call AC_OBJEXT.
16111         (LTLIBOBJS, LTALLOCA): Define, according to ac_objext.
16112         * common-src/Makefile.am (libamanda_la_LIBADD): Use them.
16113         (libamanda_a_LIBADD): Use LIBOBJS and ALLOCA.
16114
16115         * common-src/Makefile.am (genversion.o): Revert last change, it was
16116         just a bug in automake's --disable-dependency-tracking.
16117
16118 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
16119
16120         * README (platforms): Added OpenBSD.
16121         Reported by Ian Darwin <ian@sq.com>
16122         (platforms): Added SunOS 5.7.
16123
16124 1999-08-15  Derek Ney <derek@hipgraphics.com>, Alexandre Oliva  <oliva@dcc.unicamp.br>
16125
16126         * client-src/sendsize.c (SAMBA_DEBUG_LEVEL): New macro, "0" for
16127         Samba >= 2, "3" for older ones.
16128         (getsize_smbtar): Use `du' if SAMBA_VERSION >= 2, and the
16129         appropriate SAMBA_DEBUG_LEVEL.
16130
16131 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
16132
16133         * common-src/Makefile.am (genversion.o): Depend on genversion.c
16134         too.  It seems that IRIX's make doesn't work without it.
16135         Reported by Brian Cuttler <brian@wadsworth.org>
16136
16137 1999-08-15  Jon LaBadie  <jon@jgcomp.com>
16138         
16139         * tape-src/tapetype.c: Speed it up by using larger sections in the
16140         second pass.
16141
16142 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
16143
16144         * man/amanda.8.in (skip-full, incronly): Document existing bugs.
16145
16146         * server-src/conffile.c (init_defaults): Default disksize to 0.
16147         * man/amanda.8.in (holdingdisk use): Document it.
16148         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
16149
16150         * server-src/planner.c (setup_estimate): Typo.
16151         (next_level0): Typo.
16152
16153         * config/ltconfig, config/ltmain.sh: Update from libtool 1.3.3.
16154
16155         * example/amanda.conf.in: Clarify holdingdisk::use 0.
16156
16157         * config/missing: Update from automake 1.4a.
16158
16159 1999-07-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16160
16161         * man/amanda.8.in: typo.
16162
16163 1999-06-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
16164
16165         * man/amrestore.8: Document holding-file usage.
16166
16167 1999-06-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
16168
16169         * Makefile.am (pkgdata_DATA): Install COPYRIGHTs.
16170         (EXTRA_DIST): Remove docs/*.
16171         * docs/Makefile.am: New file.
16172         (pkgdata_DATA): Install all docs.
16173         * configure.in: Output docs/Makefile.
16174         Suggested by Paul L. Lussier <plussier@baynetworks.com>
16175
16176         * docs/FAQ (selfcheck time-out): NIS services, inetd rebooting,
16177         keyboard time-out, lsof.
16178
16179         * server-src/amverify.sh.in (HEADER): Use `sed 1q'  instead of the
16180         not-that-portable `head -1'.
16181         Reported by Andrew Lare <lare@eos913c.gsfc.nasa.gov>
16182
16183 1999-06-19  Alexander Zangerl  <az@Austria.EU.net>
16184
16185         * client-src/sendbackup-dump.c (re_table): Match Solaris vxdump
16186         output.
16187
16188 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16189
16190         * server-src/dumper.c (read_indexfd): typo
16191
16192 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16193
16194         * server-src/dumper.c (do_dump): Close the indexout fh and wait
16195         for the completion of the index compress process.
16196         * server-src/dumper.c (read_mesgfd,read_datafd): Call stop_dump only
16197         if the index fd is already shut down.
16198         * server-src/dumper.c (read_indexfd): On EOF, call stop_dump() if both
16199         the mesg and data fd are shut down.
16200
16201 1999-06-15  Adam Hammer  <hammer@math.purdue.edu>
16202
16203         * server-src/amverify.sh.in: Wait until device becomes ready after
16204         rewinding.
16205
16206 1999-06-15  Björn Brezger <Bjoern.Brezger@uni-konstanz.de>, Alexandre Oliva  <oliva@dcc.unicamp.br>
16207
16208         * client-src/calcsize.c (ROUND): Rewrite, it was broken.
16209         Reported by Erik Lindahl <erik@theophys.kth.se>
16210
16211 1999-06-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
16212
16213         * server-src/conffile.h: Changed all `long's to `int's, as they
16214         broke get_number et al on 64bit platforms.
16215         Reported by Erik Lindahl <erik@theophys.kth.se>
16216
16217         * configure.in (bcopy, bzero): Oops, ICE_CHECK_DECL already checks
16218         for availability.
16219
16220         * configure.in (bcopy, bzero): Check whether they're available.
16221         * common-src/amanda.h (bcopy, bzero): If not, use memmove and
16222         memset.
16223         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
16224
16225         * server-src/amcheck.c (start_server_check): If info file does not
16226         exist, explain that it is supposed to be created on the next run.
16227
16228 1999-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
16229
16230         * server-src/tapefile.c (lookup_last_reusable_tape): Fix order of
16231         arguments in match() invocation.
16232         From Anthony Worrall <Anthony.Worrall@reading.ac.uk>
16233
16234 1999-06-08  Mike Grupenhoff <kashmir@munge.com>
16235
16236         * restore-src/amrestore.c: second arg to restore() is a char *, not
16237         a string_t.  Adjust prototype accordingly.
16238
16239 1999-06-07  Mike Grupenhoff <kashmir@munge.com>
16240
16241         * common-src/util.c (bind_portrange): function that attempts
16242         to bind a network connection to a port in a given range.
16243         * common-src/util.h: prototype bind_portrange().
16244         * common-src/dgram.c (bind_reserved): remove, superceeded by
16245         bind_portrange().
16246         (dgram_bind): use bind_portrange() instead of bind_reserved(), and
16247         try user specified ports first, then reserved ports, then regular
16248         ports.
16249         * common-src/dgram.h: remove prototype for bind_reserved().
16250         * common-src/stream.c (stream_server, stream_client): use
16251         bind_portrange() instead of bind_reserved(), and try user
16252         specified ports first, then reserved ports, then regular
16253         ports.
16254         * recover-src/amrecover.c (main): use bind_portrange() instead
16255         of bind_reserved(), and verify that the port it gives us is
16256         a reserved one.
16257         * recover-src/extract_list.c (extract_files_setup): use
16258         bind_portrange() instead of bind_reserved(), and verify that
16259         the port it gives us is a reserved one.
16260
16261 1999-06-07  Mark F. Vlems  <mvlems@vbox.xs4all.nl>
16262
16263         * server-src/amindexd.c (reply, lreply, fast_lreply): Return code 0
16264         of printf does not imply an error on some systems (Openstep) even if
16265         the number of written characters is more than 0.  The weakened error 
16266         check has no implication for the correct implementations of printf.
16267
16268 1999-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
16269
16270         * server-src/driver.c (dump_to_tape): Tell hard from soft
16271         (retryable) failures in both dumper and taper results, and behave
16272         accordingly.
16273
16274         * docs/SYSTEM.NOTES: On Trusted Solaris, the format of inetd.conf is 
16275         slightly different.
16276         Reported by Julian Stevens <julian.stevens@baedsl.co.uk>
16277
16278 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
16279
16280         * common-src/util.c (fullread, fullwrite): versions of
16281         read()/write() that keep looping until the buffer is
16282         completely read/written, or an error occurs.
16283         * common-src/Makefile.am: build util.c/util.h
16284         * common-src/fileheader.c, common-src/fileheader.h
16285         (fill_buffer): remove, replaced with fullread()
16286         * server-src/holding.c: use fullread() instead of fill_buffer().
16287         * common-src/bsd-security.c, restore-src/amrestore.c,
16288         server-src/amcheck.c, server-src/driverio.c, server-src/dumper.c,
16289         server-src/logfile.c, server-src/taper.c: use fullread/fullwrite
16290         instead of doing the retry loops manually.
16291
16292 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
16293
16294         * server-src/dumper.c (read_mesgfd, read_datafd): upon EOF,
16295         close the stream.  If the other stream is also closed, shut
16296         down.
16297
16298 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
16299
16300         * client-src/amandad.c (REP_TIMEOUT): bump up to six hours, for slow
16301         machines.
16302         (exit_check): remove waitpid(), let the service reap its own
16303         children.
16304         (s_repwait): rename 'err' to 'errstr' to avoid conflict with
16305         function in some libcs.
16306         (s_ackwait): if no pipes were opened by this service, then shut
16307         it down here.
16308         (process_netfd): on EOF, be sure to also close the network
16309         stream.  Also, if this is the last stream to be closed, shut
16310         down the service.
16311         (allocstream): correct a comment
16312         (service_delete): only close the security handle if it is still
16313         open.  Reap our children here instead of in exit_check().
16314
16315 1999-06-01  Mike Grupenhoff <kashmir@munge.com>
16316
16317         * server-src/taper.c (write_buffer): assert properly
16318
16319 1999-06-01  John Williams  <williams@morinda.com>
16320
16321         * changer-src/scsi-hpux.c (eject_tape): Enable it, it works.
16322
16323 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
16324
16325         * docs/INSTALL: Point to the patches page.  Update version numbers.
16326
16327         * example/config.site: Document UDPPORTRANGE.
16328
16329 1999-06-01  Jens Persson  <jens.persson@btj.se>
16330
16331         * configure.in (UDPPORTRANGE): Set from --with-udpportrange.
16332         * config/acconfig.h: Add UDPPORTRANGE.
16333         * common-src/dgram.c: Implement it.
16334
16335 1999-05-27  Mike Grupenhoff <kashmir@munge.com>
16336
16337         * common-src/alloc.c (alloc, debug_alloc, newalloc, debug_newalloc):
16338         make the size argument a size_t.
16339         (alloc): if an allocation fails, in the error message print how
16340         many bytes we tried to alloc.  This helps us determine if the
16341         alloc call was errant, or we really were out of memory.
16342         * common-src/amanda.h: update alloc/newalloc prototypes for
16343         size_t changes.
16344
16345 1999-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
16346
16347         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
16348         to libtool 1.3.2 plus a few patches.
16349         * config/config.guess, config/config.sub: Ditto.
16350
16351 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
16352
16353         * common-src/protocol.c: retry connection failures three times,
16354         waiting five seconds between each attempt.  Also, fix a lot
16355         of untrue comments.
16356
16357 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
16358
16359         * client-src/amandad.c: add a lot more dbprintfs so we know what's
16360         going on.
16361         (service_new): use error() instead of dbprintf(); exit()
16362
16363
16364 1999-05-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
16365
16366         * docs/FAQ (tar-patch): Mention sparse file problem.
16367
16368         * recover-src/uscan.l: #undef `ECHO' after #include amanda.h; some
16369         system header files may define it.
16370         Reported by Dan Lipofsky <danlip@cyc.com>
16371
16372         * */Makefile.am: Do not define ACLOCAL_M4, COMPILE or
16373         AMANDA_CFLAGS.
16374         * Makefile.am: Create acinclude.m4 in the top-level directory.
16375         * config/Makefile.am: Create link to acconfig.h in the top-level
16376         directory.
16377         * configure.in: Add AMANDA_CFLAGS to CFLAGS.  Set DUMPER_DIR without 
16378         trying to run it.
16379         * common-src/Makefile.am: Create genversion.h with #defines, to
16380         avoid genversion-specific CPPFLAGS.
16381         * common-src/genversion.c: #include genversion.h
16382
16383 1999-05-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16384
16385         * server-src/amandad.c (state2str): string "s_processrep" is 13
16386         caracters.
16387
16388 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
16389
16390         * server-src/amcheck.c (main): if we reap a bogus pid, print
16391         out the error message we generate, instead of whatever junk
16392         happens to be in the buffer.
16393
16394 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
16395
16396         * common-src/bsd-security.c (bsd_stream_read): remove old
16397         code that was part of something that ended up not happening.
16398         (stream_read_callback): use ssize_t.
16399
16400 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
16401
16402         * common-src/event.c (event_register): restructure asserts, and
16403         for EV_READFD/EV_WRITEFD, assert that the fd is < FD_SETSIZE.
16404
16405 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
16406
16407         * common-src/queue.h: move the multiple-inclusion #defines
16408         into application namespace.  #undef each macro before defining
16409         it, in case the OS has an identical macro.
16410
16411 1999-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
16412
16413         * server-src/amindex.h: Keep P macro expression in a single line.
16414         Reported by Patrick Harrold <patrickh@nasco-inc.com>
16415
16416         * common-src/Makefile.am (statfs_LDADD): Added alloc.obj.
16417
16418         * common-src/statfs.c (STATFS_SCALE, sys/statvfs.h): If f_frsize is
16419         zero, use f_bsize.  It now works with GNU libc 2.1.
16420         Reported by Heikki Vatiainen <hessu@cs.tut.fi>
16421
16422 1999-05-22 Alex Pilosov <alex@pilosoft.com>
16423
16424         * server-src/amindexd.c (is_dump_host_valid): sanitize_name(host)
16425         before doing a stat.
16426         * server-src/tapefile.c (lookup_nb_tape): init pos to 0.
16427
16428 1999-05-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16429
16430         * server-src/reporter.c: take the orig size from the SUCCESS line.
16431         use value from the infofile only the datestamp are equal.
16432         Write all available value.
16433
16434 1999-05-18  Mike Grupenhoff <kashmir@munge.com>
16435
16436         * common-src/strerror.c (strerror): restructure so that it doesn't
16437         need to malloc.
16438
16439 1999-05-17  Mike Grupenhoff <kashmir@munge.com>
16440
16441         * common-src/genversion.c (prvar): prototype declared it static,
16442         but actual function was still extern.
16443
16444 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16445
16446         * server-src/planner.c (pick_inclevel): check for base_level+1 if
16447         we don't have estimate for base_level. Needed for FORCE_BUMP.
16448         * server-src/planner.c (promote_highest_priority_incremental):
16449         Don't promote if we don't have level 0 estimate. No more need
16450         to check for skip_full, DS_NOFULL, DS_INCRONLY or FORCE_BUMP.
16451
16452 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16453
16454         * server-src/amflush.c: ignore SIGPIPE
16455         * server-src/driver.c: ignore SIGPIPE
16456         * server-src/driverio.c (taper_cmd, dumper_cmd): return 0 on error, 
16457         1 on success.
16458         * server-src/driverio.h (taper_cmd, dumper_cmd): prototype.
16459
16460 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16461
16462         * server-src/dumper.c: make prototypes consistent, (putresult):
16463         make first arg const.
16464
16465 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16466
16467         * server-src/conffile.c (getconf_byname): islower takes an int
16468         for an arg.
16469         * server-src/diskfile.c (upcase): islower takes an int for an
16470         arg.
16471         * server-src/driver.c (update_failed_dump_to_tape): prototype.
16472         * server-src/holding.c (insert_dirname, scan_holdingdisk):
16473         prototype and make static, (is_datestr): isdigit takes an int
16474         for an arg.
16475
16476 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16477
16478         * client-src/calcsize.c (basename): make static, prototype, and
16479         only include if BUILTIN_EXCLUDE_SUPPORT is defined and
16480         HAVE_BASENAME is not defined.
16481         * client-src/getfsent.c (dev2rde, samefile): prototype and
16482         make static.
16483         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c
16484         (start_backup, end_backup): prototype.
16485         * client-src/sendbackup.c (index_closed, save_fd): prototype
16486         and make static.
16487         * client-src/versionsuffix.c (main): prototype.
16488         * common-src/alloc.c (internal_vstralloc): prototype.
16489         * common-src/file.c (mk1dir): prototype, make static, and make
16490         first arg const.
16491         * server-src/amadmin.c (check_dumpuser): prototype.
16492         * server-src/amflush.c (get_letter_from_user): prototype and make
16493         static.
16494         * server-src/amindexd.c: prototype and make static numerous local
16495         functions.
16496         * server-src/amlabel.c (main): prototype.
16497         * server-src/amtrmidx.c (main): prototype.
16498         * server-src/changer.c (report_bad_resultstr, run_changer_command):
16499         prototype.
16500         * server-src/conffile.h: properly prototype getconf_holdingdisks()
16501         * server-src/driverio.h: properly prototype init_driverio().
16502         * server-src/find.c (find_compare, parse_taper_datestamp_log):
16503         prototype.
16504         * server-src/infofile.c (zero_info, open_txinfofile,
16505         close_txinfofile, read_txinfofile, write_txinfofile,
16506         delete_txinfofile): prototype and make static.
16507         * server-src/planner.c (main, askfor): prototype.
16508
16509 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16510
16511         * server-src/server_util.c: include server_util.h for prototypes
16512         * server-src/tapefile.h: properly prototype lookup_nb_tape()
16513         * server-src/driverio.c (childstr): make static, make return
16514         val const.
16515
16516 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16517
16518         * server-src/find.h: properly prototype find_log()
16519         * server-src/amtrmlog.c (main): prototype.  find_log() takes
16520         no arguments.
16521
16522 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16523
16524         * server-src/reporter.c: make all functions and globals
16525         static.  Prototype all functions, and make them consistent wrt
16526         K&R.  Place all prototypes together.  Place data type
16527         declarations before the prototypes that use them.  Remove
16528         unused sort_by_time().
16529
16530 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16531
16532         * server-src/dumper.c (process_dumpline): clean up the error
16533         return code
16534         * server-src/dumper.c (log_msgout): no need to reuse errf global,
16535         it makes me nervous.  Also, use amfree instead of free.
16536
16537 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16538
16539         * common-src/packet.c (pkt_cat): remove a bogus assert - len is
16540         a size_t, which is unsigned, so it will always be >= 0.
16541
16542 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16543
16544         * client-src/amandad.c (action_t): consolidate A_PKTTIMEOUT and
16545         A_REPTIMEOUT into just A_TIMEOUT.
16546
16547 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
16548
16549         * common-src/amanda.h, common-src/alloc.c, common-src/event.c,
16550         common-src/rsh-security.c, server-src/driver.c,
16551         server-src/dumper.c: (min, max): consolidate all min/max
16552         definitions into amanda.h
16553
16554 1999-05-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
16555
16556         * docs/TAPE.CHANGERS (chg-rth): URL for chs is no longer valid.
16557
16558 1999-05-12  Mike Grupenhoff <kashmir@munge.com>
16559
16560         * common-src/amanda.h, common-src/alloc.c, common-src/file.c:
16561         const the filename arg to all of the dbmalloc versions of
16562         alloc and io functions
16563
16564 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
16565
16566         * common-src/protocol.c (proto_t): don't need prev and next ptrs
16567         anymore
16568
16569 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
16570
16571         * common-src/amanda.h, common-src/alloc.c: remove the static
16572         buffer manager - nothing uses it.  It can be resurrected in
16573         the future if needed.
16574
16575 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
16576
16577         * common-src/amanda.h: define stringconcat() macros that
16578         concatenate two const strings together
16579         * common-src/versuff.c.in (versionsuffix, version): generate
16580         data at compile time using stringconcat().
16581         * common-src/genversion.c: simplify, don't need to alloc anything
16582         * common-src/Makefile.am (genversion_LDADD): this doesn't need
16583         alloc.o or error.o anymore
16584
16585 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
16586
16587         * common-src/security.c (security_handleinit, security_streaminit):
16588         change default error message "unknown error" to "unknown protocol
16589         error" or "unknown stream error" to help identify where an
16590         messageless error was triggered.
16591
16592 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
16593
16594         * client-src/amandad.c (main): call initgroups(), and also set
16595         the real gid.
16596
16597 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
16598
16599         * server-src/driver.c (start_some_dumps): if a dumper is
16600         constrained, and some dumpers or the taper are active, register
16601         a EV_WAIT event.
16602         * server-src/driver.c (handle_taper_result,
16603         handle_dumper_result):  wakeup constrained dumpers after we
16604         have freed some resources.
16605
16606 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
16607
16608         * common-src/fileheader.c, common-src/fileheader.h: rework the
16609         fileheader parse and format code to remove a lot of duplicated
16610         code (in the F_DUMPFILE and F_CONT_DUMPFILE cases), consting
16611         arguments, and simplifying parse code.
16612
16613 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
16614
16615         * client-src/sendsize.c (getsize_dump): print out the strerror
16616         if we can't exec killpgrp.
16617
16618 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
16619
16620         * server-src/dumper.c (add_msg_data): first two arguments
16621         to memmove() were backwards.
16622
16623 1999-05-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16624
16625         * example/amanda.conf.in: typo
16626
16627 1999-05-07  Mike Grupenhoff <kashmir@munge.com>
16628
16629         * common-src/alloc.c (safe_env): allow DISPLAY into the
16630         environment for purify.
16631         * server-src/holding.c (rename_tmp_holding): if fill_buffer
16632         returns 0, don't try to parse a nonexistant header.
16633         * server-src/taper.c (file_reader_side): init datestamp to
16634         NULL, and don't try to free it if it's still NULL on exit.
16635
16636 1999-05-06  Mike Grupenhoff <kashmir@munge.com>
16637
16638         * server-src/driver.c (start_some_dumps): sleep_time is an
16639         offset, not an absolute.  Leave it that way when we return from
16640         this function.
16641
16642 1999-05-05  Mike Grupenhoff <kashmir@munge.com>
16643
16644         * server-src/amverify.sh.in (pecho): new function.  Like echo
16645         but doesn't append newline, and supports \r, etc.  Implemented
16646         using perl.
16647         * server-src/amverify.sh.in: use pecho where we used to use echo -n,
16648         etc.  It's nearly impossible to figure out which echo needs what
16649         flags and also know if it supports \r.  So we just punt and use
16650         perl.
16651
16652 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
16653
16654         * server-src/driver.c: convert to use event handler.
16655         (some_dumps_in_progress, lookup_dumper): nuke.
16656         (sleep_time): make a time_t and static.
16657         (IDLE_NO_DUMPERS): give a lower precedence than IDLE_START_WAIT.
16658         (start_some_dumps): make this work on one dumper instead of all.
16659         Call when a dumper is finished and needs more work.
16660         (handle_idle_wait): callback for dumpers waiting for delayed
16661         disks to start up.
16662         * server-src/driverio.c: initialize event handles for dumpers
16663         and the taper.  Nuke addfd().
16664         * server-src/driverio.h: add event handles for each dumper, and
16665         one global one for the taper.  Nuke maxfd and readset globals.
16666
16667 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
16668
16669         * server-src/driver.c (taper_queuedisk): new function that takes
16670         a disk_t, and, if the taper is not busy, tells it to write it out,
16671         or else adds it to the tapeq.  Make use_lffo global static.
16672         * server-src/driver.c (handle_taper_result, handle_dumper_result):
16673         call taper_queuedisk() instead of queueing ourself.
16674
16675 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
16676
16677         * server-src/driver.c: make all local functions static.
16678         Exposed two prototypes for nonexistant functions
16679         (diskname2filename, driver_main), and one function (dump_state)
16680         that was never called.  #if 0 out dump_state.
16681         Nuke inside_dump_to_tape global - it's value was never used.
16682         Make pending_aborts global a static local in handle_dumper_result.
16683
16684 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
16685
16686         * server-src/driverio.h (dumper_t): merge infd and outfd into
16687         just 'fd'.  Comment the other members of the struct.
16688         * server-src/driverio.c: infd/outfd -> fd
16689         * server-src/driver.c (handle_dumper_result): merge some common
16690         code between the FAILED and TRYAGAIN cases.  Comment the
16691         ABORT_FINISHED case.  Also infd/outfd -> fd.
16692
16693 1999-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16694
16695         * server-src/planner.c (when_overwrite): return a big number (1024)
16696         if the tape is not reusable.
16697
16698 1999-04-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
16699
16700         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
16701         from libtool 1.3.
16702
16703 1999-04-29  Mike Grupenhoff <kashmir@munge.com>
16704
16705         * server-src/driver.c (handle_dumper_result): remove FATAL_TRYAGAIN
16706         case, nothing uses it.
16707         * server-src/driverio.c, server-src/driverio.h: garbage collect
16708         FATAL_TRYAGAIN.  static & const cmdstr.
16709
16710 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
16711
16712         * server-src/diskfile.c (read_diskfile): rework to take a
16713         disklist_t * as an argument, and return -1 on error, or 0 on
16714         success.  const the filename argument.  Kill a few globals.
16715         * server-src/diskfile.c (lookup_host, lookup_disk): const
16716         arguments
16717         * server-src/diskfile.h: adjust prototypes for above changes
16718         * server-src/amadmin.c, server-src/amcheck.c,
16719         server-src/amcleanupdisk.c, server-src/amflush.c,
16720         server-src/amindexd.c, server-src/amtrmidx.c,
16721         server-src/amtrmlog.c, server-src/driver.c,
16722         server-src/planner.c, server-src/reporter.c: adjust calls to
16723         read_diskfile() to deal with convention
16724
16725 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
16726
16727         * server-src/dumper.c (read_mesgfd, read_indexfd): on EOF, just
16728         stop reading these streams.  We let EOF on the data stream cause
16729         the entire dump to be stopped.
16730
16731 1999-04-27  Mike Grupenhoff <kashmir@munge.com>
16732
16733         * common-src/rsh-security.c (conn_read_callback): cast
16734         event_wakeup() arg to event_id_t.
16735
16736 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
16737
16738         * common-src/versuff.c.in: Adjust constness to match version.h.
16739
16740         * docs/SYSTEM.NOTES: Recommend GNU tar for Linux.
16741
16742 1999-04-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16743
16744         * server-src/amdump.sh.in: execute amtrmlog.
16745
16746 1999-04-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16747
16748         * client-src/sendbackup.c: rename write_tapeheader to info_taperheader
16749         we already have a write_tapeheader function in dumper.c
16750         * client-src/sendbackup.h: ditto
16751         * client-src/sendbackup-dump.c: ditto
16752         * client-src/sendbackup-gnutar.c: ditto
16753
16754 1999-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16755
16756         * dumper-src/gnutar.pl.in: add debuging code.
16757         * server-src/planner.c (getsize): send optionstr() for estimate 
16758         with a wrapper.
16759         * client-src/selfcheck.c: init program_is_wrapper to 0.
16760         * client-src/sendsize.c: implement DUMPER-API, support only
16761          estimate-direct.
16762
16763 1999-04-22 John R. Jackson  <jrj@purdue.edu>
16764
16765         * configure.in: add --with-broken-fsf to use a read() loop instead
16766         of the fsf ioctl on some broken systems.
16767         * config/acconfig.h: ditto
16768         * tape-src/tapeio.c (tapefd_fsf): ditto
16769
16770 1999-04-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
16771
16772         * docs/SYSTEM.NOTES: Typo
16773         * docs/SAMBA: Update on samba-largefs patch.
16774         * docs/FAQ: New FAQ about promotion of full dumps.
16775
16776 1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
16777
16778         * tape-src/tapeio.c (tape_open): Retry after EBUSY and EINTR too.
16779         Comment out test that would set filename to /dev/null.
16780
16781 1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
16782
16783         * docs/WISHLIST: Global reformat.  Removed fixed issues.  Added
16784         auto-flush mode.
16785
16786 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16787
16788         * server-src/server_util.c: use snprintf instead of ap_snprintf.
16789
16790 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16791
16792         * server-src/server_util.c: new file for utility function.
16793         New function construct_datestamp.
16794         * server-src/server_util.h: ditto
16795         * server-src/Makefile.am: link server_util.c with libamserver.
16796         * amcleanupdisk.c (construct_datestamp): remove function.
16797         * server-src/driver.c: ditto
16798         * server-src/dumper.c: ditto
16799         * server-src/amflush.c: ditto
16800         * server-src/planner.c: ditto
16801
16802 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
16803
16804         * common-src/bsd-security.c: this doesn't need queue.h
16805
16806 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
16807
16808         * common-src/event.c: Insert new events at the head of the eventq,
16809         not the tail, so we don't loop forever if a newly registered
16810         event has the same type as the one currently firing.  Noticed
16811         and diagnosed by Jean-Louis Martineau.
16812         Use a LIST for the eventq, instead of a TAILQ, since we don't need
16813         to do tail insertions anymore.
16814         Make the eventq_* functions take a queue name so we can also use
16815         them for the handle cache.  Rename eventq_append() to eventq_add().
16816
16817 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16818
16819         * dumper-src/gnutar.pl.in: add DUMPER_DIR to INC.
16820
16821 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16822
16823         * client-src/selfcheck.c: Implement DUMPER-API.
16824         * dumper-src/gnutar.pl.in (command_selfcheck): print OK, the function
16825         is not implemented.
16826         * dumper-src/generic-dumper.pl.in (parse_options): option are
16827         separated by ;
16828
16829 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
16830
16831         * server-src/dumper.c: make dumpsize and headersize static.  Rename
16832         nb_header_block to headersize and also make it static.  headersize
16833         now counts bytes instead of blocks, just like the other two.
16834         Use SEEK_SET in an lseek instead of hardcoding 0.
16835
16836 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
16837
16838         * configure.in: implement --with-cflags to allow turning on
16839         compiler warnings and optimizations
16840
16841 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
16842
16843         * common-src/event.c (gethandle, puthandle): new functions that
16844         keep a cache of handles to reduce calls to malloc/free.
16845
16846 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
16847
16848         * common-src/alloc.c (dbmalloc_caller_loc): const the file
16849         arg, use the queue macros to maintain the list.
16850
16851 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
16852
16853         * common-src/versuff.c.in: const the return str of version()
16854         and versionsuffix.  Bump copyright to 1999.
16855
16856 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
16857
16858         * client-src/amandad.c, client-src/amandad.h,
16859         client-src/sendbackup-dump,c, client-src/sendbackup-gnutar.c,
16860         client-src/sendbackup.c, common-src/bsd-security.c,
16861         common-src/dgram,c, common-src/dgram.h, common-src/event.c,
16862         common-src/event.h, common-src/krb4-security.c,
16863         common-src/krb5-security.c, common-src/packet.c,
16864         common-src/packet.h, common-src/protocol.c, common-src/security.c,
16865         common-src/security.h, server-src/amcheck.c, server-src/conffile.c,
16866         server-src/conffile.h, server-src/dumper.c:
16867         update copyright to 1999 on things I've touched this year.
16868
16869 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
16870
16871         * common-src/amanda.h: remove version_info extern.  Bump
16872         copyright to 1999
16873         * common-src/genversion.c: constify version_info.  Emit
16874         {KRB4,KRB5,RSH}_SECURITY.  Bump copyright.
16875         * common-src/version.h: const VERSION_COMMENT and version_info.
16876         const return str and fully prototype versionsuffix() and version()
16877         prototypes.  Bump copyright.
16878         * server-src/planner.c (main): iterate through version_info using
16879         an index instead of a pointer.
16880
16881 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
16882
16883         * server-src/conffile.c: explicitly give the seen_columnspec global
16884         an int type instead of letting the compiler default to it.
16885
16886 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
16887
16888         * common-src/event.h (event_id_t): a new typedef for the
16889         first arg to event_register.  Should be wide enough to
16890         reasonably hold an int or a pointer (but it is ok to trunc
16891         the pointer if necessary).  Update proto for event_register()
16892         and event_wakeup().
16893         * common-src/event.c: struct event_handle->data is now an
16894         event_id_t.
16895         (event_register, event_wakeup): adjust args for event_id_t)
16896         (event_register): event_id_t is unsigned, no need to assert
16897         positivity anymore.
16898         * common-src/rsh-security.c (rsh_stream_read): cast first arg to
16899         event_register() to event_id_t.
16900
16901
16902 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
16903
16904         * common-src/event.c (release): nuke, and inline into event_loop.
16905         * common-src/event.c (event_loop): flesh out the timeout comment.
16906         Combone the EV_WAIT and EV_DEAD empty cases in the post-select loop.
16907         * common-src/event.h: flesh out the event_type_t comment.
16908
16909 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
16910
16911         * common-src/event.c (fire): inline this with a macro.  Remove
16912         timestamp arg.  eh->lastfired is now only valid for EV_TIME
16913         events.  Removes several time() systems from the critical path.
16914         * common-src/event.c (event_wakeup): have this fire EV_WAIT events
16915         directly instead of deferring back to the event loop.  Removes the
16916         sequencing restriction for event_wakeup.
16917
16918 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
16919
16920         * server-src/planner.c (getsize): put the hosts disks on the waitq
16921         before sending the request, not after.
16922
16923 1999-04-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
16924
16925         * docs/UPGRADE: Update URL for archived message.
16926
16927 1999-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16928
16929         * server-src/amcheck.c (main): should not set real uid to 0.
16930
16931 1999-04-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16932
16933         * common-src/bsd-security.c (bsd_connect): dgram_bind return the port
16934         number, we don't need ntohs().
16935
16936 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
16937
16938         * common-src/dgram.c,common-src/dgram.h: nothing uses dgram_alloc()
16939         anymore, gc them.
16940
16941 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
16942
16943         * server-src/amindexd.c: dgram.h not needed
16944
16945 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
16946
16947         * common-src/event.c: fix a bunch of inaccurate comments.
16948         * common-src/event.c (event_loop): prune dead events in the
16949         pre-select pass instead of in the EV_WAIT pass.
16950         * common-src/event.c (fire): factor out all code that fires
16951         events into a 'fire' function.
16952         * common-src/event.c (signal_handler): bounds check the signal
16953         number against the size of sigtable instead of assuming sigtable
16954         is NSIG big.
16955
16956 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
16957
16958         * client-src/amandad.c (allocstream): if security_stream_server()
16959         fails, dbprintf the error.
16960
16961 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
16962
16963         * configure.in: implement --with-rsh-security
16964         * common-src/rsh-security.c: first attempt at using rsh or a rsh-like
16965         command for dump transport and authentication.  Still has lots
16966         of "issues"
16967         * common-src/Makefile.am: build rsh-security.c
16968         * common-src/security.c: add rsh_security_driver to the drivers array
16969         * config/acconfig.h: define RSH_SECURITY
16970
16971 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
16972
16973         * server-src/dumper.c (runcompress): use the proper end of the pipe
16974         for writing and reading.  Also, grab errno early on fork error
16975         before calling close.
16976         * server-src/dumper.c (sendbackup_response): make sure the client
16977         at least send us a mesgfd and datafd.
16978
16979 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
16980
16981         * client-src/amandad.c (main): don't dup stdout to db_fd - it might
16982         be needed by the security driver
16983         * client-src/amandad.c (s_ackwait, allocstream,): on error, don't
16984         attempt to event_release a handle we haven't attached yet.
16985
16986 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
16987
16988         * ap_snprintf -> snprintf, ap_vsnprintf -> vsnprintf
16989
16990 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
16991
16992         * client-src/Makefile.am (noinst_HEADERS): add amandad.h
16993
16994 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
16995
16996         * common-src/Makefile.am (libamanda_la_SOURCES): build
16997         krb4-security.c
16998
16999 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17000
17001         * configure.in: implement --with-dbmalloc=[dir], where dir is
17002         where the dist is unpacked and built.  This could be improved on,
17003         because it doesn't handle the case where it's installed.
17004
17005 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17006
17007         * client-src/sendbackup.c: security changes:
17008         remove krb4 code and NAUGHTY_BITS macros.
17009         (parse_options): don't look for krb4 options
17010         (main): don't close pipes that were handed to us from amandad.
17011         Don't open stream directly - just use the pipes given to us.
17012         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c:
17013         Remove krb4 code and NAUGHTY_BITS macros.
17014
17015 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17016
17017         * client-src/amandad.h: new file describing the pipes between
17018         amandad and children.
17019         * client-src/amandad.c: rewrite for security changes.  Can
17020         now handle multiple requests simultaneously, and has a state
17021         machine to deal with each active request.
17022         This handles all network transmissions and authentication.
17023         Each child process (sendbackup, selfcheck) gets three general
17024         purpose pipes to amandad which it may allocate for anything.
17025         amandad relays these pipes to equivalent security_streams.
17026         Lots of other stuff.
17027         Finally, NEED_KEYPIPE stuff removed.
17028
17029 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17030
17031         * server-src/dumper.c: security changes:
17032         Remove krb4 includes and NAUGHTY_BITS macros.
17033         Remove no-longer-true comment about DATABUF_SIZE ==
17034         TAPE_BLOCK_BYTES for krb4
17035         Remove file descriptor and event handle from streams array.  Add
17036         a security_stream_t.
17037         Remove global read buffer.
17038         (check_options): remove krb4 code.
17039         (service_ports_init): remove, now handled by individual security
17040         drivers.
17041         (main): remove dgram usage.
17042         (do_dump): remove DUMPER_SOCKET_BUFFERING - now handled in the
17043         bsd driver.  schedule reads on the streams using
17044         security_stream_read.
17045         (read_mesgfd,read_datafd,read_indexfd): adapt to
17046         security_stream_read callback interface.
17047         (stop_dump): just call security_stream_close on all non-null
17048         streams.
17049         (sendbackup_response): adapt to new protocol layer error return.
17050         Remove krb4 code.
17051         (startup_dump): stinky hack to parse the security driver string out of
17052         the options passed to us from driver.
17053         Lookup the security driver with said string.
17054         Remove krb4 code.
17055         Free request after calling protocol_sendreq().
17056
17057 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17058
17059         * server-src/planner.c: security changes:
17060         (main): Remove dgram usage.  Call protocol_init().  Remove
17061         krb4 code.
17062         (getsize): remove krb4 code.  Handle protocol layer api changes.
17063         Lookup security driver/complain if not found.  Free request
17064         after calling sendreq.  All hosts get put on the waitq since
17065         sendreq never returns an error.
17066         (handle_result): deal with new protocol layer error semantics.
17067         Remove krb4 code.
17068
17069 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17070
17071         * server-src/conffile.c: remove INTERFACE undef hack.  Our
17072         namespace isn't polluted by krb4 headers anymore, so it's
17073         unneeded.
17074
17075 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17076
17077         * server-src/amcheck.c: security changes:
17078         (main): ignore SIGPIPE - some security drivers might get it.
17079         Remove all usages of dgram.
17080         Make our real uid root and our effective uid amanda so we can
17081         get back to root later (on most os's :()
17082         (start_client_checks): remove krb4 bits.
17083         The dump user check should check the effective uid.
17084         Get the name of the security driver for this host out of
17085         host->diskp->security_driver.
17086         Free req after calling protocol_sendreq() because it will internalize
17087         it.
17088         protocol_sendreq doesn't return any errors - they're all returned
17089         via handle_response.
17090         (handle_result): renamed from handle_response for consistency.
17091         The protocol layer doesn't pass us a proto_t anymore, so detect
17092         errors based on pkt being NULL.
17093         Remove krb4 bits - security violations will be indicated by a 
17094         NULL pkt.
17095
17096 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17097
17098         * common-src/protocol.[ch]: rewrite for security api.  The entry
17099         points now have the 'protocol' prefix.  See protocol.h for more
17100         info.
17101         * common-src/security.c: rewrite for security api.  This now contains
17102         the functions for the 'base class' or some approximation of it.
17103         See security.h for the entry points, or docs/SECURITY-API.
17104
17105 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17106
17107         * common-src/amanda.h: rip out krb4 defines, headers, and
17108         prototypes.  Also, make assert() abort() after calling error().
17109         * common-src/krb4-security.c: stub file that pulls in the real
17110         krb4-security out of amanda-krb-2 if KRB4_SECURITY is defined.
17111
17112 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17113
17114         * server-src/conffile.h: aggregate all of the compress defines
17115         (COMP_{NONE,FAST,BEST,...}) into an enum and typedef it to comp_t.
17116         Make dumptype_t->compress a comp_t.
17117         * server-src/dumper.c: make srvcompress global a comp_t.
17118         * server-src/dumper.c (runcompress): add a comp_t third arg
17119         that specifies the level of compression for this fd.
17120         * server-src/dumper.c (do_dump): always compress index files
17121         with COMP_BEST compression, as pointed out by Jean-Louis Martineau.
17122         * server-src/dumper.c (read_indexfd): read the indexfd, not the
17123         datafd.  Also noted by Jean-Louis Martineau.
17124
17125 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
17126
17127         * server-src/planner.c (main): ignore SIGPIPE.  tcp based
17128         security drivers may get this while getting estimates.
17129         Set the real uid to root, and the effective uid to the amanda
17130         user, so we can get back to root later if needed.
17131         * server-src/planner.c (handle_result): rework error logic
17132         so we don't need to use p->state, which will eventually go
17133         away.
17134
17135 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
17136
17137         * server-src/dumper.c: rewrite to use the event handler instead
17138         of a select loop.  Also, compress the index output using
17139         runcompress() instead of forking a compress ourselves.
17140
17141 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
17142
17143         * server-src/dumper.c (sendbackup_response): don't krb4 authenticate
17144         streams if krb4_auth if false.
17145
17146 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
17147
17148         * server-src/dumper.c (do_dump): some formatting cleanups.  Nuke
17149         'killerr' - we can do without it.
17150
17151 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
17152
17153         * server-src/dumper.c (do_dump): store compresspid inside of
17154         the databuf
17155
17156 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
17157
17158         * server-src/dumper.c (parse_info_line): parse info lines
17159         from sendbackup directly into the 'file' global.  Eliminate
17160         the backup_name, recover_cmd, and compress_suffix globals.
17161         * server-src/dumper.c (finish_tapeheader): nuke usage
17162         of above globals.  Nuke unneeded explicit nul terminations (we
17163         memset the whole thing in fn_init).
17164
17165 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
17166
17167         * server-src/dumper.c (process_dumpline): rewrite to use strtok
17168         and const the argument.
17169         * server-src/dumper.c (make_tapeheader): rename to finish_tapeheader
17170         and prototype it.  Remove the 'type' arg, since it's always
17171         F_DUMPFILE.  Remove call to fn_init().
17172         * server-src/dumper.c (do_dump): call fh_init on 'file' while
17173         initializing globals.  Call finish_tapeheader after getting info
17174         endline.
17175
17176 1999-04-07 John R. Jackson  <jrj@purdue.edu>
17177
17178         * tape-src/tapeio.c: allow tapedev to be /dev/null.
17179         * server-src/taper.c: allow tapedev to be /dev/null.
17180         * man/amanda.8.in: allow tapedev to be /dev/null.
17181
17182 1999-04-07  Mike Grupenhoff <kashmir@munge.com>
17183
17184         * server-src/dumper.c: collect got_info_endline, got_sizeline,
17185         got_endline, and header_done into one bitmask global, and make it
17186         static.  Also, make 'file' static.
17187
17188 1999-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17189
17190         * server-src/reporter.c (TextRule): Fix to write the full string.
17191
17192 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17193
17194         * configure.in: MIT krb5 has libk5crypto, Cygnus kerbnet 1.2
17195         calls it libcrypto.  Check for both.
17196
17197 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17198
17199         * common-src/bsd-security.c (check_user): if an .amandahosts
17200         file is missing or unreadable, log this fact to the debug file
17201         instead of claiming that a user doesn't have permission.
17202         * common-src/bsd-security.c (bsd_stream_client): if
17203         DUMPER_SOCKET_BUFFERING is defined, set the socket read buffer to
17204         be twice the size of our read buffer.
17205
17206 1999-04-06  David Mankins <dm@k12-nis-2.bbn.com>
17207
17208         * common-src/security.c (bsd_security_ok): if an .amandahosts
17209         file is missing or unreadable, log this fact to the debug file
17210         instead of claiming that a user doesn't have permission.
17211
17212 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17213
17214         * server-src/dumper.c: put all of the streams (data,mesg,index)
17215         into an array with a name tag.
17216         * server-src/dumper.c (stop_dump): new function that cleans up
17217         and shuts down all of the streams.
17218         * server-src/dumper.c (sendbackup_response): make static, pass
17219         response_error through p->datap instead of making it global.
17220         Rewrite the parsing to use strtok() and take advantage of the
17221         streams array instead of repeading code for all three streams.
17222
17223 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17224
17225         * server-src/dumper.c (main): keep our real uid as 0, and make
17226         our effective uid nonprivlidged, so we can get back to root
17227         later.  Don't print what port we bound to.  This info won't
17228         always be available or even applicable.
17229         * server-src/dumper.c (do_dump): create the stats line with one
17230         snprintf instead of a huge amount of code.
17231
17232 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17233
17234         * server-src/dumper.c (startup_dump): make static, and const all
17235         of the string args
17236         * server-src/dumper.c (do_dump): make static
17237
17238 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17239
17240         * server-src/dumper.c (do_dump): no need to have a separate buffer
17241         to read the mesgfd - just reuse the one we used for data reads.
17242         Gets rid of one more global.  Also, we don't need to leave
17243         space for a NUL anymore.
17244         * server-src/dumper.c (main): wait for children after closing
17245         our fds.  Some children may be blocked waiting for EOF on outfd,
17246         effectively causing deadlock between dumper and child.
17247
17248 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17249
17250         * server-src/dumper.c (add_msg_data): now takes a 'len' arg, and
17251         doesn't expect the data to be nul terminated.  Also, move
17252         the buffer from global scope into the function, and have a NULL
17253         arg flush it out if there is leftover data at the end.  Finally,
17254         resize the buffer in 256 byte chunks.
17255
17256 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17257
17258         * common-src/stream.c, common-src/stream.h (stream_client): add
17259         yet another arg - if nonzero, do a nonblocking connect
17260         * server-src/dumper.c: catch up with extra arg to stream_client()
17261
17262 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
17263
17264         * common-src/bsd-security.c, common-src/security.h: attempt
17265         to decouple security streams from security handles.  Lots of
17266         other restructuring.
17267
17268 1999-04-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17269
17270         * server-src/amcheck.c: -t should read the tapelist to validate
17271         the label.
17272
17273 1999-03-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
17274
17275         * patches/samba-largefs.patch: updated to patch that ended up
17276         installed in the Samba CVS tree
17277
17278         * patches/tar-1.12.patch: patch the configure script so that it
17279         requires autoconf and autoheader to be run; improve the
17280         printf_long_long test so that it doesn't get false positives because 
17281         of endianness
17282
17283         * changer-src/scsi-chio.c: since we do not support FreeBSD 3's
17284         camlib.h interface, #ifdef out all the code
17285         Reported by Francis Lam <Francis.Lam@Leitch.com>
17286
17287         * configure.in (VXSYSLOCPATH): apparently a complex path expression
17288         gets AC_PATH_PROGS confused; set the path beforehand
17289         Reported by Francis Lam <Francis.Lam@Leitch.com>
17290
17291 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17292
17293         * server-src/reporter.c: compiler warning.
17294
17295 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17296
17297         * server-src/amtrmlog.c: new program to move unused log 
17298         to logdir/oldlog.
17299         * server-src/Makefile.am: install amtrmlog.
17300         * server-src/find.h: declare find_log().
17301         * server-src/find.c(find_log): new function to return an array of
17302         all the logfile name that are still needed.
17303         * server-src/find.c(search_logfile): special case if output_find==NULL,
17304         return 1 if it the logfile fir the label.
17305
17306 1999-03-25  Neil Crellin  <neil@wallaby.cc>
17307
17308         * docs/TAPE.CHANGERS (chg-chs): URL for chs
17309
17310 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>, Tom Schutter  <tom@platte.com>, Cloyce D. Spradling  <cloyce@headgear.org>
17311
17312         * patches/samba-largefs.patch: updated for Samba 2.0.*
17313
17314 1999-03-25  Charles Owens  <owensc@enc.edu>
17315
17316         * changer-src/chg-chio.pl.in (changeTape): do not print status to
17317         both stdout and stderr; this causes failures on FreeBSD
17318
17319 1999-03-23  Mike Grupenhoff <kashmir@munge.com>
17320
17321         * common-src/stream.c, common-src/stream.h (stream_client):
17322         const the hostname arg
17323
17324 1999-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17325
17326         * configure.in: AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
17327         * dumper-src/gnutar.pl.in: use @GNUTAR_LISTED_INCREMENTAL_DIR@
17328
17329 1999-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17330
17331         * configure.in: default for DUMPER_DIR is $exec_prefix/dumper.
17332         * Makefile.am: make dumper-src directory
17333         * dumper-src: directory for program that implement the DUMPER-API.
17334         * dumper-src/Makefile.am:
17335         * dumper-src/generic-dumper.pl.in: first draft of a generic wrapper.
17336         * dumper-src/gnutar.pl.in: first draft of a gnutar wrapper.
17337
17338 1999-03-21  Elmar Bartel  <bartel@Informatik.TU-Muenchen.DE>
17339
17340         * conffile.h, conffile.c: new columnspec option
17341         * reporter.c: use it
17342         * man/amanda.8.in: description and example
17343         * example/amanda.conf.in: ditto
17344
17345 1999-03-20  Dahn Nilsson <dahn.nilsson@maxlab.lu.se>
17346
17347         * configure.in: SAMBA_VERSION is not set correctly.
17348
17349 1999-03-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
17350
17351         * client-src/sendbackup-dump.c (re_table): generalize a bit some of
17352         the regular expressions, so as to make us more adaptable to future
17353         minor changes and bugfixes the the output format of some dumps
17354
17355 1999-03-16 Thomas Hepper <th@ant.han.de>
17356         * changer-src/chg-scsi.c: If the open of the TapeDevice fails
17357         the programm is not terminated.
17358         * changer-src/scsi-aix.c: The wrong ident string was checked
17359         for 0 termination.
17360         * changer-src/scsi-bsd.c: see scsi-aix.c
17361         * changer-src/scsi-linux.c: see scsi-aix.c
17362         * changer-src/scsi-solaris.c: see scsi-aix.c
17363         * changer-src/scsi-changer-driver.c: Added some more debug prints.
17364         Wrong fd passwd to LogSense.
17365         * docs/TAPE.CHANGERS: added note about linux and aha1542
17366
17367 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
17368
17369         * common-src/packet.h: explicitly list the numeric values for
17370         the pktype_t enum, so we can use them on the wire
17371
17372 1999-03-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
17373
17374         * config/ltconfig, config/ltmain.sh: updated from libtool 1.2f
17375         * config/libtool.m4i, config/config.guess, config/config.sub: ditto
17376         * configure.in: dropped AC_PROG_RANLIB, as suggested by libtoolize
17377
17378 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
17379
17380         * common-src/bsd-security.c (recv_security_ok): bring over
17381         increased verbosity change from common-src/security.c
17382
17383 1999-03-14  Mathias Herberts  <Mathias.Herberts@ago.fr>
17384
17385         * man/amrecover.8.in: document mode and setmode
17386
17387 1999-03-14  Jon Stevens  <jon@clearink.com>
17388
17389         * common-src/security.c (bsd_security_ok): increase the verbosity of 
17390         failed authentication messages
17391
17392 1999-03-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
17393
17394         * configure.in (powerpc-*-linux-*): supported platform
17395         * README: ditto
17396         Reported by Jon Stevens <jon@clearink.com>
17397
17398 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17399
17400         * configure.in: new option --with-dumperdir=DIR to specify the 
17401         directory for the dumpers (dumper api).
17402         * config/acconfig.h: add def of DUMPER_DIR
17403
17404 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17405
17406         * server-src/conffile.c: accept any string for the program.
17407         * server-src/amcheck.c: add the keyword DUMPER to the request if 
17408         the program is not DUMP or GNUTAR.
17409         * server-src/planner.c: ditto
17410         * server-src/dumper.c: ditto
17411
17412 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17413
17414         * server-src/dumper.c (startup_dump): rename dumpname to progname.
17415         the function will use the parameter progname instead of the
17416         global variable.
17417
17418 1999-03-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
17419
17420         * configure.in (openbsd): according to Ralf Gebhart
17421         <rgebhart@cybernet-ag.net>, sparc-unknown-openbsd2.3 is supported;
17422         I assume other openbsd platforms work too.
17423
17424 1999-03-06 Thomas Hepper <th@ant.han.de>
17425
17426         * client-src/sendbackup-gnutar.c: Replaced #fi with #endif
17427         * changer-src/: Get in sync with 2.4.2 Version
17428
17429 1999-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17430
17431         * configure.in: set SAMBA_VERSION
17432         * client-src/sendbackup-gnutar.c (start_backup): use -q flag
17433         if SAMBA_VERSION >= 2
17434
17435 1999-03-05 Mathias Herberts <Mathias.Herberts@ago.fr>
17436
17437         * recover-src/amrecover.h (set_mode, show_mode) declare new functions.
17438         * recover-src/amrecover.h (SAMBA_SMBCLIENT, SAMBA_TAR) define new 
17439         constant.
17440         * recover-src/extract_list.c: declare variable samba_extract_method.
17441         * recover-src/extract_list.c (extract_files_child): set dumptype
17442         according to samba_extract_method.
17443         * recover-src/help.c (help_list): print help for new command mode
17444         and showmode.
17445         * recover-src/set_commands.c (set_mode, show_mode): new functions.
17446         * recover-src/uscan.l:
17447         * recover-src/uparse.y:
17448
17449 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
17450
17451         * common-src/amanda.h: use ssize_t in writev return value
17452         * common-src/bsd-security.c (bsd_stream_write,bsd_stream_read):
17453         use ssize_t over int
17454         * common-src/file.c (areads): use ssize_t to hold read() return val
17455         * common-src/fileheader.c (fill_buffer): usse ssize_t to hold read()
17456         return val
17457         * common-src/security.h: stream_read's callback now takes a ssize_t
17458         as the third argument.
17459         * common-src/writev.c (writev): return a ssize_t
17460
17461 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
17462
17463         * configure.in: check for ssize_t, make it int if not present
17464         * config/acconfig.h: add def for ssize_t
17465
17466 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
17467
17468         * common-src/base64.c (base64encode): don't cast away a const
17469         needlessly.
17470
17471 1999-03-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17472
17473         * common-src/bsd-security.c (stream_read_callback): change n to int
17474         since ssize_t doesn't exist on all OS.
17475
17476 1999-03-03  Ralf Fassel <ralf@akutech.de>
17477
17478         * common-src/conffile.h: bit field of length 1 should be unsigned int,
17479         not int.
17480
17481 1999-03-03  Ralf Fassel <ralf@akutech.de>
17482
17483         * common-src/bsd-security.c (stream_read_callback): n should be ssize_t.
17484
17485 1999-03-03  Ralf Fassel <ralf@akutech.de>
17486
17487         * changer-src/scsi-changer-driver.c (CloseDevice): wrong assignment.
17488
17489 1999-03-03  Ralf Fassel <ralf@akutech.de>
17490
17491         * common-src/base64.c (base64encode): remove warning from sgi cc
17492         compiler.
17493
17494 1999-03-03  Mike Grupenhoff <kashmir@munge.com>
17495
17496         * common-src/bsd-security.c: use EV_WAIT events instead of
17497         maintaining a queue of listeners.  Refcnt the dgram read event
17498         handle.
17499
17500 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17501
17502         * server-src/driverio.h: new parameter level to update_info_taper().
17503         * server-src/driverio.c (update_info_taper): use parameter instead
17504         of sched(dp)->level.
17505         * server-src/driver.c: call update_info_taper with level parameter.
17506         * server-src/amflush.c: call update_info_taper with level parameter.
17507         no longer need to create a sched_t struct.
17508
17509 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17510
17511         * server-src/driverio.h: remove declaration of inparallel, cmdstr()
17512         and childstr(), declare init_driverio(), add inparallel parameter
17513         to startup_dump_processes().
17514         * server-src/driverio.c (init_driverio): new function to initialize
17515         dmptable and taper.
17516         * server-src/driverio.c (childstr): scan for all dumpers (MAX_DUMPERS)
17517         instead of only inparallel
17518         * server-src/driverio.c (startup_dump_processes): new parameter
17519         inparallel is used instead of global variable.
17520         * server-src/driver.c (main): call init_driverio.
17521         * server-src/driver.c (main): call startup_dump_processes with 
17522         inparallel parameter.
17523         * server-src/amflush.c (main): call init_driverio.
17524
17525 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17526
17527         * server-src/amrmtape.sh.in: work with "last_level" and
17528         "consecutive_runs" in the ouput of "amadmin export".
17529
17530 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
17531
17532         * common-src/security.h: implement security_connect callback and
17533         security_status_t changes
17534
17535 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
17536
17537         * common-src/bsd-security.c (bsd_connect): properly munge the uids
17538         to get a reserved port
17539         * common-src/bsd-security.c: adapt to the security_connect
17540         callback changes
17541         * common-src/bsd-security.c (bsd_sendpkt): dgram_cat is varargs now,
17542         so skip the vstralloc
17543
17544 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
17545
17546         * common-src/event.c: implement EV_WAIT events.  Implement macros
17547         for adding/removing/traversing the event queue
17548         * common-src/event.h: define EV_WAIT, and prototype event_wakeup()
17549
17550 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17551
17552         * docs/WISHLIST: protocol between the driver and dumpers.
17553
17554 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17555
17556         * server-src/amtoc.pl.in: output the datestamp of each dump, because
17557         amflush can flush the same disk multiple date.
17558
17559 1999-02-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17560
17561         * server-src/holding.h: declare struct holding_t.  Remove 
17562         declaration of insert_dirname, scan_holdingdisk.  Declare 
17563         new function free_holding_list.  pick_datestamp and 
17564         pick_all_datestamp now return (holding_t *).
17565         * server-src/holding.c (insert_dirname): new parameter holding_list
17566         where we add the name. Can add more than MAX_DIRS name.
17567         * server-src/holding.c (free_holding_list): new function to free
17568         a holding list.
17569         * server-src/holding.c (scan_holdingdisk): new parameter holding_list.
17570         * server-src/holding.c (pick_all_datestamp, pick_datestamp): return
17571         a list instead of a (char **).
17572         * server-src/find.c (search_holding_disk): use the list return by
17573         pick_all_datestamp.
17574         * server-src/amflush.c: use the list return by pick_datestamp.
17575         * server-src/amcleanupdisk.c (check_disks): use the list return by
17576         pick_all_datestamp.
17577
17578 1999-02-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17579
17580         * server-src/driverio.c (addfd): bug fixe.
17581
17582 1999-02-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
17583
17584         * client-src/sendbackup-gnutar.c: new regexp for SAMBA
17585         Reported by Grzegorz Mucha <grzegorz.mucha@solidex.com.pl>
17586
17587 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
17588
17589         * server-src/amtoc.pl.in: minor fixes for multi-tape runs
17590
17591 1999-02-17  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
17592
17593         * server-src/amtoc.pl.in: complete, backward-incompatible rewrite;
17594         command-line arguments changed
17595         * man/amtoc.8.in: ditto
17596
17597 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
17598
17599         * changer-src/chg-multi.sh.in: minor portability changes
17600         * docs/TAPE.CHANGERS: originally by James da Silva
17601
17602 1999-02-17  Jean-Francois Dockes <dockes@cdkit.remcomp.fr>
17603
17604         * changer-src/chg-multi.sh.in: various portability changes and
17605         general fixes, particularly for multieject; new cycle mode
17606         * docs/TAPE.CHANGERS: detailed description of chg-multi
17607         * example/chg-multi.conf: updated; added reference to
17608         docs/TAPE.CHANGERS for details
17609
17610 1999-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17611
17612         * server-src/driverio.h: remove declaration of addfd.
17613         * server-src/driverio.c (addfd): 2 new arguments, readset and maxfd,
17614         don't use global variable.
17615         * server-src/driverio.c (startup_tape_process, startup_dump_process):
17616         call addfd with new argument.
17617
17618 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17619
17620         * server-src/driverio.c (startup_tape_process): new taper_program
17621         argument.
17622         * server-src/driverio.h: remove declaration of taper_program.
17623         * server-src/driver.c (main): declare taper_program.
17624         * server-src/driver.c: call startup_tape_process with the new 
17625         taper_program argument.
17626         * server-src/amflush.c (run_dumps): declare taper_program.
17627         * server-src/amflush.c (run_dumps): call startup_tape_process with 
17628         the new taper_program argument.
17629
17630 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17631
17632         * server-src/driverio.c (startup_dump_process, startup_dump_processes):
17633         new dumper_program argument.
17634         * server-src/driverio.h: remove declaration of dumper_program.
17635         * server-src/driver.c: declare dumper_program.
17636         * server-src/driver.c: call startup_dump_process and
17637         startup_dump_processes with the new dumper_program argument.
17638
17639 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17640
17641         * server-src/list_dir.h: remove global variable dir_list, declare
17642         new function get_dir_list.
17643         * server-src/list_dir.c (get_dir_list): new function to return dir_list.
17644         * server-src/amindexd.c (opaque_ls): use get_dir_list.
17645
17646 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17647
17648         * server-src/holding.h: remove declaration of get_letter_from_user()
17649         and select_dir().
17650         * server-src/holding.c: remove function get_letter_from_user() and
17651         select_dir().
17652         * server-src/holding.c (pick_datestamp): return empty array instead
17653         of calling exit if no directory are found.
17654         * server-src/amflush.c (get_letter_from_user): new function copied
17655         from holding.c.
17656         * server-src/amflush.c (confirm): write a message and exit if no
17657         directory were found.
17658
17659 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17660
17661         * server-src/amflush.c (flush_holdingdisk): don't update the database
17662         when flushing a partial dump.
17663
17664 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17665
17666         * server-src/holding.h (get_dumpfile): new function
17667         * server-src/holding.c (get_dumpfile): new function to fill a 
17668         dumpfile_t struct from a holding file.
17669
17670 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17671
17672         * server-src/amlabel.c: compiler warning: too many arguments for format
17673
17674 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17675
17676         * server-src/amlabel.c: remove the label from the tapefile in
17677         case it was already there (-f).
17678
17679 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17680
17681         * server-src/dumper.c: make sure holding files are not larger
17682         that chunksize.
17683
17684 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17685
17686         * server-src/amcleanupdisk.c: new program to scan and find temporary
17687         file on holding disks.
17688         * server-src/Makefile.am (libexec_PROGRAMS): add amcleanupdisk.
17689         * server-src/amcleanup.sh.in: call amcleanupdisk.
17690
17691 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17692
17693         * server-src/holding.c (pick_all_datestamp): new function to return
17694         all datestamp in the holding disks.
17695         * server-src/holding.h: declare pick_all_datestamp.
17696
17697 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17698
17699         * server-src/diskfile.h (host_t): new start_t field.
17700         * server-src/diskfile.c (read_diskline): set start_t to 0.
17701         * server-src/driver.c (start_some_dumps): Don't start a dump if
17702         the host->start_t > now.
17703         * server-src/driver.c (start_some_dumps): set host->start_t to 15 sec
17704         in the future when starting a FILE_DUMP.
17705         * server-src/driver.c (dump_to_tape): set host->start_t to 15 sec in
17706         the future when starting a PORT_DUMP.
17707
17708 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
17709
17710         * server-src/amlabel.c (main): try to read just-written tape label
17711         back; if wrendmark overwrote the label, suggest using a
17712         non-rewinding device
17713         * tape-src/tapeio.c (tape_wrendmark): would not close tape device if 
17714         wrendmark failed
17715
17716 1999-02-10  Paul Bijnens  <Paul.Bijnens@lant.be>
17717
17718         * server-src/amoverview.pl.in: Y2K fix in output to user
17719         * server-src/amtoc.pl.in (print_info): ditto
17720
17721 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
17722
17723         * client-src/sendsize.c (getsize_dump): do not redirect standard
17724         output of estimator to /dev/null if we HAVE_DUMP_ESTIMATE
17725
17726 1999-02-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
17727
17728         * NEWS: fix description of incronly: it won't really perform full
17729         backups
17730
17731         * NEWS: support for ufsdump -S, incronly strategy and new chunksize
17732         default
17733
17734         * server-src/conffile.c (init_holdingdisk_defaults, chunksize):
17735         default to 1Gb
17736         * example/amanda.conf.in: ditto
17737         * man/amanda.8.in: ditto
17738
17739         * configure.in (amanda_cv_dump_estimate): check for support for -S
17740         too, and define HAVE_DUMP_ESTIMATE as the estimate switch, if any
17741         * client-src/sendsize.c (re_size): new regexps for Solaris ufsdump
17742         -S and Samba `du'.  Restrict regexp that matched Digital Unix'
17743         dump -E so that it doesn't match smbclient's output any more.
17744         Move some regexps around, and only define them if the corresponding
17745         dump program is available
17746
17747 1999-02-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
17748
17749         * example/amanda.conf.in: document the behavior of relative
17750         exclude-list files
17751         * man/amanda.8.in: ditto
17752
17753         * man/amanda.8.in (exclude list): the GNU tar flag is
17754         --exclude-from, not --exclude-list
17755         Reported by Tom Schutter <tom@platte.com>
17756
17757         * client-src/sendbackup-gnutar.c (re_table): ignore `session request 
17758         to' message printed by Samba 2.0.0
17759
17760 1999-01-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
17761
17762         * man/amanda.8.in (comprate): it is not used when there is history
17763         information; useful for large disks that compress little
17764         Reported by job bogan <job@piquin.uchicago.edu>
17765
17766         * Makefile.am: select which SUBDIRS to descend to here
17767         * client-src/Makefile.am: removed if WANT_CLIENT
17768         * tape-src/Makefile.am: removed if WANT_TAPE
17769         * server-src/Makefile.am: removed if WANT_SERVER
17770         * changer-src/Makefile.am: ditto
17771         * restore-src/Makefile.am: removed if WANT_RESTORE
17772         * recover-src/Makefile.am: removed if WANT_RECOVER
17773         * amplot/Makefile.am: removed if WANT_AMPLOT
17774
17775 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
17776
17777         * NEWS: chg-scsi ports, Samba 2.0.0 support and SECURITY API
17778
17779         * configure.in (USE_AMANDAHOSTS): enable by default
17780         * example/config.site: ditto
17781         * docs/INSTALL: ditto
17782         * NEWS: ditto
17783
17784         * docs/INSTALL: updated URLs for GNU packages and Samba
17785         * docs/SAMBA: note that Samba 2.0.0 is supported
17786
17787         * docs/SYSTEM.NOTES (HP/UX): what does `Link severed' mean?
17788
17789 1999-01-27  Thomas Hepper <th@ant.han.de>
17790         * changer-src/scsi-changer-driver.c SCSI_ReadElementStatus
17791         A while loop has to start with while, not if .....
17792
17793 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
17794
17795         * Makefile.am (EXTRA_DIST): sst was added within contrib
17796
17797         * ltmain.sh, ltconfig, libtool.m4i: updated from libtool CVS
17798         * configure.in: AC_SUBST LIBTOOL_DEPS
17799         * Makefile.am: regen libtool if neded
17800
17801         * Makefile.am: declare that we want automake 1.4 and we're a foreign 
17802         package
17803
17804         * configure.in: require autoconf 2.13, and use
17805         AC_VALIDATE_CACHED_SYSTEM_TUPLE instead of
17806         AC_VALIDATE_CACHE_SYSTEM_TYPE
17807         * config/acinclude.m4i: removed AC_VALIDATE_CACHE_SYSTEM_TYPE
17808
17809         * configure.in (SAMBA_CLIENT): updated check for smbclient to
17810         support Samba 2.0.0
17811
17812 1999-01-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
17813
17814         * server-src/amdump.sh.in (runuser): set to LOGNAME if defined, and
17815         to the output of whoami otherwise
17816         Reported by Tom Schutter <tom@platte.com>
17817
17818 1999-01-26  Thomas Hepper <th@ant.han.de>
17819         * Makefile.am Added sst driver files to EXTRA_DIST
17820
17821 1999-01-26      Thomas Hepper <th@ant.han.de>   
17822         * changer-src/Makefile.am added to LDADD 
17823         ../tape-src/libamtape.$(LIB_EXTENSION)
17824         * changer-src/chg-scsi.c If statfile is not set try to get the info
17825         about the current loaded tape direct from the changer.
17826         Fixed debug output for the eject value if > 1
17827         * changer-src/libscsi.h Prototype for GetCurrentSlot
17828         * changer-src/scsi-aix.c If the Device we open is not a changer or tape
17829         return NULL, so that the above function can abort. New eject per mtio ioctl.
17830         * changer-src/scsi-bsd.c see scsi-aix.c
17831         * changer-src/scsi-linux.c see scsi-aix.c
17832         * changer-src/scsi-hpux_new.c see scsi-aix.c
17833         * changer-src/scsi-irix.c see scsi-aix.c
17834         * changer-src/scsi-solaris.c see scsi-aix.c and added a retry loop for
17835         the execution of SCSI commands.
17836         * changer-src/scsi-changer-driver.c New Function SCSI_ReadElementStatus
17837         split ReadElementStatus in device and device independed part
17838         New EXB120ElementStatus, renamed ReadElementStatus in GenericElementStatus
17839         added EXB 120 and DLT7000 to the devices list.
17840         Removed the linked list for the element status. Now every element
17841         type has its own array allocated in the *ElementStatus functions.
17842         Check in the functions which sends SCSI commands if the fd is able to
17843         receive SCSI commands.
17844         In GenericEject check which type of eject to use (ioctl/SCSI)
17845         New GetCurrentSlot, try to get the info about the loaded tape direct from
17846         the changer.
17847         * changer-src/scsi-chio.c Add function GetCurrentSlot (not well tested yet)
17848         * changer-src/scsi-defs.h Added missing decl. in MediumTransportElementDescriptor_T
17849         for LITTLE_ENDIAN_BITFIELDS
17850         new field from in ElementInfo_T
17851         * changer-src/sci-hpux.c EMpty function GetCurrentSlot, do we still need scsi-hpux.c ?
17852         * docs/TAPE.CHANGERS added some notes for HP-UX, expanded list of tested devices
17853         
17854 1999-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17855
17856         * server-src/conffile.c (init_defaults): default value of runspercycle
17857         is 0.
17858         * server-src/amadmin.c (balance): use default value of runspercycle.
17859         * server-src/planner.c (main): use default value of runspercycle.
17860
17861 1999-01-22  Martin Apel <apel@tecmath.de>
17862
17863         * example/amanda.conf.in: explanation of incronly strategy.
17864         * man/amanda.8.in: explanation of incronly strategy.
17865         * server-src/amadmin.c: recognize incronly strategy
17866         * server-src/conffile.c: read the incronly strategy in the
17867         configuration file.
17868         * server-src/conffile.h: definition of DS_INCRONLY
17869         * server-src/planner.c: Do planning for incronly strategy:
17870         If the force flag is set perform a full dump, otherwise do
17871         normal incremental processing but avoid full dumps.
17872         * server-src/tapefile.c: Bugfix so only tapes which match
17873         the regular expression for tape labels in the current 
17874         configuration are considered for writing.
17875
17876 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
17877
17878         * common-src/bsd-security.c (check_user): there was no uid variable
17879         here; replace with getuid()
17880
17881 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
17882
17883         * server-src/planner.c (output_scheduleline): removed `or historical
17884         data' from `no estimate' message; historical data doesn't matter any 
17885         more
17886         Reported by Giorgos Vlachos <Giorgos.Vlachos@eurodyn.com>
17887
17888 1999-01-20  Todd Pfaff  <pfaff@mcmaster.ca>
17889         
17890         * client-src/sendbackup-gnutar.c: more Samba 2.0.0 messages
17891
17892         * client-src/sendbackup-gnutar.c: new Samba 2.0.0 message 
17893
17894 1999-01-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17895
17896         * server-src/amflush.c: use ap_snprintf instead of snprintf.
17897         * server-src/amflush.c: rotation of new amflush log was broken.
17898
17899 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17900
17901         * server-src/reporter.c: always call output_stats(), the problem is
17902         that degraded_mode is set if amflush fills the tape.
17903
17904 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17905
17906         * server-src/amflush.c: write debuging info to $logdir/amflush
17907         instead of /dev/null if we run in background.
17908         * server-src/amcleanup.sh.in: rename $logdir/amflush.
17909
17910 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
17911
17912         * server-src/dumper.c (make_tapeheader): explicitly compare
17913         srvcompress against srvcomp_none instead of assuming that
17914         srvcomp_none's value is 0.
17915
17916 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
17917
17918         * server-src/dumper.c: move max() macro to top of file.  Add min()
17919         * server-src/dumper.c (databuf_write): use min() to determine the
17920         copy size
17921         * server-src/dumper.c (databuf_flush): more clearly calculate the
17922         buffer offset in the write loop
17923
17924 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
17925
17926         * server-src/dumper.c (databuf_write): Egads!  Also increment the
17927         source pointer doing a partial buf copy
17928
17929 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
17930
17931         * common-src/bsd-security.c (check_user): use getpwnam(CLIENT_LOGIN)
17932         instead of getpwuid(getuid()), in case our caller has not done
17933         the setuid().
17934
17935 1999-01-12  Mike Grupenhoff <kashmir@munge.com>
17936
17937         * server-src/dumper.c (add_msg_data): properly check for half-sent
17938         msg lines.
17939
17940 1999-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17941
17942         * server-src/amstatus.pl.in: fix a divide by zero error.
17943
17944 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
17945
17946         * server-src/dumper.c (add_msg_data): clarify and comment.  Remove
17947         'len' arg.  Const 'str' arg.
17948         * server-src/dumper.c (do_dump): compresspid and indexpid should
17949         be pid_t's.  Also, remove len from add_msg_data call.
17950
17951 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
17952
17953         * server-src/fileheader.c (parse_file_header): const the buffer
17954         argument
17955         * server-src/fileheader.h: update parse_file_header proto for const
17956         change
17957
17958 1999-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17959
17960         * server-src/amstatus.pl.in: report the current dump when reporting
17961         the busy time of each dumper.
17962
17963 1998-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17964
17965         * server-src/dumper.c: open temporary holding file with O_TRUNC flags
17966         and with mode 0600.
17967
17968 1998-12-28  John R. Jackson  <jrj@purdue.edu>
17969
17970         * server-src/reporter.c: do not drop core generating labels if the
17971         tape label is not defined, e.g. in degraded mode (compliments of
17972         Jan L. Peterson <jlp@Part.NET>).
17973
17974 1998-12-28  John R. Jackson  <jrj@purdue.edu>
17975
17976         * server-src/amtape.c: initialize two strings to NULL to avoid a
17977         core dump, compliments of G. Allen Morris III <gam3@acm.org>.
17978
17979 1998-12-27  John R. Jackson  <jrj@purdue.edu>
17980
17981         * man/amreport.8.in: remove reference to 8.5x11 paper size for the
17982         3-hole binder.
17983
17984 1998-12-27  John R. Jackson  <jrj@purdue.edu>
17985
17986         * example/3hole.ps: new lbl-templ file for 3 hole punch reports
17987         * example/Makefile.am: add 3hole.ps
17988
17989 1998-12-22  Thomas Hepper <th@icem.de>
17990
17991         * docs/TAPE.CHANGERS Update notes about chg-scsi
17992         * changer-src/chg-scsi.c Added new config option tapestatus,
17993         if set the tape log pages are written to this file.
17994         changed parameter list for get_clean_state/ask_clean,
17995         * changer-src/libscsi.h changed parameter list for get_clean_state
17996         * changer-src/scsi-changer-driver.c Added new functions OpenDevice
17997         CloseDevice LookupDevice. 
17998         Added new functions to read and decode the Tape LOG Pages.
17999         Tape Eject and ready check is now done by SCSI calls
18000
18001         * changer-src/scsi-aix.c
18002         * changer-src/scsi-bsd.c
18003         * changer-src/scsi-hpux_new.c
18004         * changer-src/scsi-hpux.c
18005         * changer-src/scsi-irix.c
18006         * changer-src/scsi-solaris.c
18007         Changed all SCSI_OpenDevice/SCSI_CloseDevice functions so that they
18008         fit to the new OpenDevice/CloseDevice calls. Removed mtio.h from 
18009         includes, remove Tape_Ready and Tape_Eject
18010         * changer-src/scsi-chio.c
18011         * changer-src/scsi-defs.h
18012
18013         For all changer-src files, removed tabs, run indent (from xemacs)
18014         Added emacs variables to the end (no tab, gnu style)
18015
18016 1998-12-21  John R. Jackson  <jrj@purdue.edu>
18017
18018         * man/amanda.8.in: document the lbl-templ tapetype option.
18019
18020 1998-12-21  John R. Jackson  <jrj@purdue.edu>
18021
18022         * man/amreport.8.in: fix formatting problem.
18023
18024 1998-12-20  John R. Jackson  <jrj@purdue.edu>
18025
18026         * configure.in: define NEED_RESETOFS unless LFS (large file system
18027         support) is available.
18028         * config/acconfig.h: add NEED_RESETOFS tag.
18029         * server-src/taper.c: only reset the tape offset if NEED_RESETOFS
18030         is defined and only once per 2 GBytes.
18031
18032 1998-12-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
18033
18034         * server-src/amlabel.c (main): datestamp for new tapes is now 0
18035         * server-src/tapefile.c (reusable_tape): recognize datestamp 0 as
18036         reusable
18037         * man/amlabel.8.in: document that tapes are added to tapelist
18038
18039 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
18040
18041         * server-src/dumper.c (runcompress): new function.  Given an output
18042         file descriptor, inserts a gzip/compress in front of that descriptor.
18043         * server-src/dumper.c (do_dump): if srvcompress is true, insert
18044         the gzip (using runcompress) in front of the output fd instead
18045         of the input fd.  Only do this after the tapeheader has been written.
18046
18047 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
18048
18049         * server-src/dumper.c (startup_chunker): new function.  When doing
18050         chunking, fork a piped subprocess that reads in a fileheader and
18051         a data stream, and writes out the headered, chunked files.  This
18052         allows us to treat unchunked, chunked, and port-dump dumps exactly
18053         the same.
18054         * server-src/dumper.c (main): file-dump: if chunksize > 0,
18055         call startup_chunker for our outfd.  Otherwise, open the
18056         holding file directly.
18057
18058 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
18059
18060         * server-src/dumper.c (struct databuf): add a chunk_size member,
18061         the size of each chunk.  Remove chunksize global.
18062         * server-src/dumper.c (main): add a chunksize local var
18063         * server-src/dumper.c (databuf_init): init the chunk_size member
18064         with the same value as split_size
18065         * server-src/dumper.c (databuf_flush): increment db->split_size
18066         by the amount in db->chunk_size instead of the global chunksize
18067
18068 1998-12-19  John R. Jackson  <jrj@purdue.edu>
18069
18070         * server-src/amstatus.pl.in: instead of just displaying why no
18071         dumpers were busy, display reason(s) why N+1 were not busy.
18072
18073 1998-12-18  John R. Jackson  <jrj@purdue.edu>
18074
18075         * server-src/amstatus.pl.in: add statistics about how much time
18076         taper and each dumper is busy, how much time N dumpers are busy
18077         and why no dumpers were busy.
18078
18079 1998-12-18  Mike Grupenhoff <kashmir@munge.com>
18080
18081         * server-src/dumper.c (struct databuf): add 'filename', 'filename_seq',
18082         and 'split_size' members to replace the equivalent globals.  Nuke
18083         those globals.
18084         * server-src/dumper.c (databuf_init): add 'filename' and 'split_size'
18085         args to init those members.  Init filename_seq to 0.
18086         * server-src/dumper.c (main): declare and init the databuf here
18087         * server-src/dumper.c (databuf_flush): refer to split_size, filename,
18088         and filename_seq in the databuf instead of the globals.
18089         * server-src/dumper.c (do_dump): now takes a databuf instead of an
18090         output file descriptor.
18091
18092 1998-12-18  John R. Jackson  <jrj@purdue.edu>
18093
18094         * server-src/amstatus.pl.in: fix two perl warnings.
18095
18096 1998-12-18  John R. Jackson  <jrj@purdue.edu>
18097
18098         * server-src/amstatus.pl.in: fix two minor typos.  Add percentage
18099         display to the summary comparing real and estimated size and real
18100         versus total estimate (showing how well the estimates are doing and
18101         a rough guess at how far along the run is).  Also the percentage of
18102         total holding disk space in use.
18103
18104 1998-12-18  John R. Jackson  <jrj@purdue.edu>
18105
18106         * server-src/amstatus.pl.in: take the --file argument as is if it
18107         is an absolute path.
18108
18109 1998-12-18  John R. Jackson  <jrj@purdue.edu>
18110
18111         * server-src/driver.c: call short_dump_state() one last time before
18112         quitting so amstatus gets a last good status.  Tell taper to quit
18113         after the dumpers since it writes more information to the amdump
18114         file (helps prevent mixed messages).
18115
18116 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
18117
18118         * server-src/dumper.c (databuf_flush): return 0 on success
18119
18120 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
18121
18122         * server-src/dumper.c (databuf_flush): new function.  Writes
18123         the contents of the databuf out to its backing file, doing splitting
18124         if necessary
18125         * server-src/dumper.c (databuf_write): call databuf_flush when the
18126         databuf fills up.  Fully complete all writes (no short writes)
18127         * server-src/dumper.c (do_dump): databuf_write now guarantees complete
18128         writes, so remove retry loop.  Call databuf_flush() when eof is hit.
18129         Do not close datafd on eof, because our caller (main) passed it to
18130         us and therefore owns it (and main does close it again).
18131
18132 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
18133
18134         * server-src/dumper.c (databuf_init): new function, initializes
18135         a struct databuf.
18136         * server-src/dumper.c (update_dataptr): rename to databuf_write,
18137         and have it take a buffer and a size, and return how many bytes
18138         of the buffer were written
18139         * server-src/dumper.c (do_dump): use databuf_init to initialize db.
18140         Use databuf_write to add incomign data to the databuf.
18141         Make size1 and size2 local to the blocks they are used in.
18142
18143 1998-12-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
18144
18145         * common-src/Makefile.am (noinst_DATA): removed; bogus
18146         * config/config.guess, config/config.sub: config/install-sh,
18147         config/mkinstalldirs: updated to current pre-2.13 autoconf CVS tree
18148         * patches/autoreconf.patch: removed
18149         * config/libtool/libtool.m4: renamed to config/libtool.m4i
18150         * config/acinclude.m4: renamed to config/acinclude.m4i
18151         * config/Makefile.am (EXTRA_DIST): updated to reflect changes
18152         * autogen: build config/acinclude.m4  by concatenating acinclude.m4i
18153         and libtool.m4i
18154         * configure.in: no longer test whether libtool is installed; require 
18155         newer autoconf
18156         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: updated to
18157         libtool 1.2d
18158         * amplot/Makefile.am (EXTRA_DIST): no longer needed
18159         * changer-src/Makefile.am (chg_scsi_SOURCE): move scsi-defs.h closer 
18160         to the beginning of the list
18161         * docs/INSTALL: fixed URL to gnuplot; recommend autoconf and
18162         automake from CVS
18163
18164 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18165
18166         * common-src/genversion.c (main): rip out krb4 defines.  If we
18167         need this info, each driver will have to do it individually.
18168
18169 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18170
18171         * server-src/conffile.c: remove KRB4_AUTH, BSD_AUTH tokens, auth
18172         element from dumptype_t, and get_auth() lookup func.  Add
18173         security_driver to dumptype_t and parse value of AUTH keyword
18174         as a string.
18175         * server-src/conffile.h: nuke auth_t.  Remove auth_t auth, int s_auth
18176         from typetype_t; add char *security_driver, int s_security_driver.
18177         * server-src/diskfile.c: nuke auth_t auth from disk_t, add
18178         char *security_driver.  Inherit security_driver from the dumptype_t
18179         for this disk.
18180         * server-src/diskfile.h: ditto
18181         * server-src/amadmin.c (disklist_one): output the security-driver
18182         string in place of the auth type
18183         * server-src/amcheck.c (start_client_checks, handle_response):
18184         enum type hostp->disks->auth is gone.  check the string in the
18185         security_driver for this disk for krb4 auth.
18186         * server-src/planner.c (getsize, handle_result): check the string
18187         in hostp->disks->security_driver for the auth type.
18188
18189 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18190
18191         * server-src/amindexd.c: no need to include protocol.h
18192
18193 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18194
18195         * server-src/amindexd.c: remove duplication inclusion of version.h.
18196         Include tapefile.h to get read_tapelist() prototype
18197         * server-src/amindexd.c (build_disk_table): remove a plethora of
18198         unused local vars
18199         * server-src/amindexd.c (main): rename security_ok() call to
18200         check_security(), and define check_security() locally.  security_ok
18201         will disappear when the new security api goes in
18202
18203 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18204
18205         * server-src/changer.c (changer_label): make it return void
18206         to keep gcc warning about control reaching the end of a nonvoid
18207         function.
18208         * server-src/changer.c: update changer_label's proto for previous
18209
18210 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18211
18212         * common-src/amanda.h: define SET, CLR, ISSET macros for dealing
18213         with bitmasks
18214         * server-src/amadmin.c: use the bitmask macros for setting
18215         and clearing the bits in the infofile command word
18216         * server-src/planner.c: ditto.  This fixes a bug in the code that
18217         tried to clear FORCE_FULL with an xor expression that was
18218         never assigned (x ^ FORCE_FULL)
18219
18220 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18221
18222         * common-src/bsd-security.c (bsd_sendpkt): cast uid's to long and
18223         use %ld to print them.
18224
18225 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18226
18227         * common-src/dgram.h: mark dgram_cat with gcc's printf attribute
18228         * common-src/packet.h: ditto for pkt_cat
18229         * common-src/security.h: likewise for security_seterror
18230
18231 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18232
18233         * common-src/error.c (error): const the format arg
18234         * common-src/amanda.h: mark error with gcc's noreturn attribute, and
18235         const its format arg
18236
18237 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
18238
18239         * common-src/debug.c (debug_printf): const the format arg
18240         * common-src/amanda.h: const debug_printf's format arg
18241
18242 1998-12-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
18243
18244         * configure.in (BSD SCSI): test ... -a ... is not portable, and less 
18245         so when written test ... -a test ... :-)
18246
18247 1998-12-14  Thomas Hepper <th@icem.de>
18248
18249         * changer-src/Makefile.am Added scsi-bsd.c
18250         * changer-src/chg-scsi.c Initialize *scsitapedevice
18251         * changer-src/scsi-changer-driver.c remove LITTLE_ENDIAN_BITFILEDS
18252         defenition
18253         changed RequestSense to pRequestSense (there is a function 
18254         called RequestSense)
18255         changed error handling in ResetStatus (fix for IRIX)
18256         FIxed length handling for the pages in ReadElemtStatus
18257         * changer-src/scsi-chio.c get_clean_state only returns 0, the
18258         ioctl to get the clean flag is not portable ;-(
18259         changed all (f)printf to dbprintf
18260
18261         * changer-src/scsi-defs.h ElementStatusData_T is for BIG and
18262         LITTLE endian the same ...
18263
18264         * changer-src/scsi-bsd.c New file for FreeBSD
18265
18266         * changer-src/scsi-irix.c Clean up in the return handling
18267         changed RequestSense to pRequestSense
18268         Removed unused function TapeStatus
18269
18270         * changer-src/scsi-linux.c changed RequestSense to pRequestSense
18271         Removed unused function TapeStatus
18272
18273         * changer-src/scsi-solaris.c changed RequestSense to pRequestSense
18274         Removed unused function TapeStatus
18275
18276         * config/acconfig.h added def for BSD_LIKE_SCSI
18277
18278         * configure.in Added check for ENDIAN type AC_C_BIGENDIAN
18279         added sys/scsiio.h and check for BSD SCSI interface
18280
18281 1998-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18282
18283         * server-src/driver.c (handle_dumper_result): rename .tmp files
18284         when receiving ABORT_FINISHED.
18285
18286 1998-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18287
18288         * server-src/driver.c (start_some_dumps): Use the holdp returned
18289         by find_diskspace for a big_dumper in degraded mode.
18290
18291 1998-12-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
18292
18293         * docs/SYSTEM.NOTES (Ultrix): recommend gcc or egcs
18294         (IRIX): patch for xfsdump estimates
18295
18296 1998-12-10  John R. Jackson  <jrj@purdue.edu>
18297
18298         * common-src/amflock.c (main): remove call set_pname() for
18299         CONFIGURE_TEST since error.o is not linked in.
18300
18301 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
18302
18303         * server-src/dumper.c (struct databuf): add a fd member - the file
18304         descriptor that we are buffering
18305         * server-src/dumper.c (update_dataptr): remove
18306         outf arguments, use the fd in the passed databuf.  Return 0 on
18307         success, and -1 on error.
18308         * server-src/dumper.c (update_dataptr): rework and comment the
18309         chunk code a bit.  Get rid of the cont_filename global.
18310         * server-src/dumper.c (do_dump): init the fd member of the databuf
18311         * server-src/dumper.c (write_dataptr): fold back into update_dataptr
18312
18313 1998-12-10  John R. Jackson  <jrj@purdue.edu>
18314
18315         * common-src/amflock.c (main): report CONFIGURE_TEST error messages to
18316         stderr.
18317
18318 1998-12-10  John R. Jackson  <jrj@purdue.edu>
18319
18320         * common-src/amflock.c (main): call set_pname() for CONFIGURE_TEST.
18321         * configure.in: do not set up pname global for lnlock CONFIGURE_TEST.
18322
18323 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
18324
18325         * server-src/dumper.c (update_dataptr): remove pointless backups
18326         of the databuf and associated vars when creating next chunk.
18327         Remove duplicate setting of file.cont_filename.
18328
18329 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
18330
18331         * server-src/dumper.c (main): reuse outfd to clear the open files
18332         passed to us.  Nuke the fd var.
18333         * server-src/dumper.c (update_dataptr): nuke 'split' argument - it
18334         was always set to 1
18335
18336 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
18337
18338         * server-src/dumper.c (write_tapeheader): kill dead code
18339         * server-src/dumper.c (main): remove useless amfree of datestamp.
18340         Add missing break to 'default' case in command loop.
18341         * server-src/dumper.c: kill databuf, spaceleft, and dataptr globals.
18342         Create a 'struct databuf' that holds all three.
18343         * server-src/dumper.c (write_dataptr, update_dataptr): make
18344         these take a 'struct databuf *' as an argument, and have them
18345         operate on its contents instead of the aforementioned globals
18346         * server-src/dumper.c (do_dump): declare a 'struct databuf' here.
18347         Make it static, because it's large.  Use it instead of the
18348         globals.
18349
18350 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
18351
18352         * server-src/dumper.c (main): rework the command loop a bit.
18353         Consolidate all duplicated error cleanup into one place at the
18354         end of the loop after each command has been processed.  Exit
18355         with exit(), not return.
18356
18357 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
18358
18359         * server-src/dumper.c (main, getcmd, write_dataptr): kill argc and
18360         argv globals, pass them as arguments to getcmd() via struct cmdargs.
18361         * server-src/dumper.c (getcmd): make the command lookup table driven.
18362         * server-src/dumper.c (write_dataptr): restructure the command
18363         logic a bit to hopefully clarify things.
18364
18365 1998-12-09  Henning P. Schmiedehausen  <henning@tanstaafl.de>
18366
18367         * client-src/sendbackup.c (parse_options): Added check whether the
18368         pathname of the exclude file is relative and if yes, use the
18369         mountpoint of the filesystem as anchor.  So you can put your exclude
18370         file in the root of the filesystem to backup.
18371         * client-src/sendsize.c (getsize_gnutar): added the same check as
18372         above so sendsize uses the same exclude file.
18373
18374 1998-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18375
18376         * server-src/holding.c (size_holding_files): return size in KB.
18377         * server-src/driver.c (adjust_diskspace): use KB returned by
18378         size_holding_files.
18379         * server-src/driver.c: rename .tmp file
18380         * server-src/dumper.c: do not rename .tmp file. let the driver do it.
18381
18382 1998-12-09  John R. Jackson  <jrj@purdue.edu>
18383
18384         * common-src/stream.c (stream_server): do not request a reserved port
18385         if we are root but PORTRANGE is defined.  Also, clean up the code
18386         and make sure *portp is -1 on all error returns.
18387
18388 1998-12-08  John R. Jackson  <jrj@purdue.edu>
18389
18390         * Makefile.am: add the user-contributed area.
18391         * contrib/README: describe the user-contributed area.
18392         * contrib/dbbackup.README: README for Oracle database backup system.
18393         * contrib/dbbackup.ksh: Oracle database backup system wrapper.
18394         * contrib/dbbackup.sql: Oracle database backup system setup commands.
18395         * contrib/dbbackup.tcl: Oracle database backup system main body.
18396
18397 1998-12-08  John R. Jackson  <jrj@purdue.edu>
18398
18399         * amplot/Makefile.am: fix install rule when DESTDIR is non-null,
18400         compliments of Henning P. Schmiedehausen <hps@tanstaafl.de>.
18401
18402 1998-12-08  John R. Jackson  <jrj@purdue.edu>
18403
18404         * configure.in: fix reversed code for --with-amrecover, compliments
18405         of Yar Tikhiy <yar@radio-msu.net>.
18406
18407 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18408
18409         * common-src/fileheader.h (dumpfile_t): new is_partial field.
18410         * common-src/fileheader.c: add codee for new is_partial field.
18411         * server-src/holding.h (rename_tmp_holding): declare new function.
18412         * server-src/holding.c (rename_tmp_holding): new function.
18413         * server-src/dumper.c (do_dump): return 1 if succeded, otherwise 0.
18414         * server-src/dumper.c (main): open .tmp when dumping to disk, 
18415         rename .tmp if do_dump return 1.
18416         * server-src/dumper.c (update_dataptr): open .tmp for new chunk.
18417         * server-src/amstatus.pl.in (dump_size): return size of .tmp file.
18418
18419 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
18420
18421         * server-src/amtape.c (main, usage): make command lookup and usage
18422         table-driven
18423
18424 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
18425
18426         * server-src/amadmin.c: make command lookup and usage table-driven
18427         * server-src/amadmin.c (balance, tape, bumpsize): add
18428         argc/argv arguments to make them like the rest
18429         * server-src/amadmin.c (show_version): new function, implements
18430         the version command, so it is done like the other commands
18431         * server-src/amadmin.c (main): iterate through cmdtab[] when
18432         looking up the command, instead of a huge if/then/else
18433         * server-src/amadmin.c (usage): iterate through cmdtab[] when
18434         displaying usage strings.  Display the "disklist" usage string.
18435
18436 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18437
18438         * config/acconfig.h: add "#undef HAVE_WRITEV_DECL".
18439
18440 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18441
18442         * NEWS: document new force-bump, force-no-bump and unforce-bump
18443         command in amadmin.
18444
18445 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18446
18447         * server-src/holding.c (size_holding_files): new function to
18448         return the sum of the size of all chunk of an image.
18449         * server-src/holding.h (size_holding_files): declare.
18450         * server-src/driver.c (adjust_diskspace): use size_holding_files
18451         instead of doing a stat of only the first chunk.
18452
18453 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18454
18455         * server-src/amadmin.c: new force-bump, force-no-bump and unforce-bump
18456         command.
18457         * man/amadmin.8.in: document them.
18458
18459 1998-12-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
18460
18461         * docs/FAQ (large filesystems): fixed reference to results missing
18462         (results missing): updated to 64Kb UDP packets
18463
18464 1998-12-04  Mike Grupenhoff <kashmir@munge.com>
18465
18466         * common-src/amanda.h: implement WIFSIGNALED() if not already
18467         defined
18468         * server-src/amcheck.c: ream out compat definitions of WEXITSTATUS(),
18469         WTERMSIG(), and WIFSIGNALED().  These are already handled in amanda.h
18470         * server-src/changer.c: ditto
18471
18472 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
18473
18474         * common-src/bsd-security.c (recv_security_ok): only check for
18475         a reserved port for REQ packets
18476
18477 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
18478
18479         * common-src/bsd-security.c (recvpkt_callback): only compare
18480         the sin_addr and sin_port fields in the sockaddr when determining
18481         what handle an incoming packet belongs to.
18482         * common-src/bsd-security.c (pkthdr2str): use %s for the handle,
18483         since it's a string.
18484
18485 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
18486
18487         * common-src/bsd-security.c (bsd_sendpkt): newline-terminate
18488         the 'SECURITY USER' line in the packet
18489         * common-src/bsd-security.c (check_user): fix many bugs
18490         in the USE_AMANDAHOSTS case
18491
18492 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
18493
18494         * configure.in: AC_REPLACE_FUNCS(writev)
18495
18496 1998-12-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18497
18498         * server-src/infofile.h: rename PLANNER_FORCE to FORCE_FULL
18499         * server-src/planner.c: rename PLANNER_FORCE to FORCE_FULL
18500         * server-src/amadmin.c: rename PLANNER_FORCE to FORCE_FULL
18501
18502 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18503
18504         * config/acconfig.h: add KRB5_SECURITY.  Update comment above
18505         krb4 define to make clear that they are for krb4
18506
18507 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18508
18509         * configure.in: if we're doing krb4 and -lcom_err is there, pull
18510         it in
18511         * configure.in: implement --with-krb5-security.
18512
18513 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18514
18515         * common-src/dgram.c (dgram_cat): now can take printf-style
18516         arguments
18517         * common-src/dgram.g (dgram_cat): update prototype
18518
18519 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18520
18521         * common-src/bsd-security.c: wrap entire file in #ifdef BSD_SECURITY
18522         * common-src/bsd-security.c (bsd_connect): catch up with
18523         security interface changes - upper layer now allocates our handle
18524         Also, pass up useful error message about why connects failed
18525         via the handle we are given
18526         * common-src/bsd-security.c (gethandle): rename to inithandle,
18527         since we are now passed the handle's memory.  No need to allocate
18528         memory or initialize the error msg pointer
18529         * common-src/bsd-security.c (bsd_close): now an empty function - no
18530         memory to free
18531         * common-src/bsd-security.c (recvpkt_callback): allocate the handle
18532         before calling inithandle() (nee gethandle()).
18533         * common-src/bsd-security.c (stream_read_callback): put
18534         strerror(errno) in the handle's error buffer before passing a
18535         read error up to the caller
18536
18537 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18538
18539         * common-src/krb5-security.c: new stub file that pulls in the
18540         krb5 bits from the amanda-krb-2 tree if KRB5_SECURITY is
18541         defined
18542
18543 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18544
18545         * common-src/base64.{c,h}: new files, implement base64 encoding
18546         and decoding.  Implementation based on routines in bind, and so
18547         copyright is held by ISC and IBM (but is BSD-like).
18548
18549 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
18550
18551         * common-src/security.h: add 'handlesize' to the driver struct, also
18552         make the connect function pointer return int and take a handle
18553         argument
18554         * common-src/security.h (security_connect): addd a 'const char **'
18555         errmsg argument for returning connect errors
18556
18557 1998-12-01  John R. Jackson  <jrj@purdue.edu>
18558
18559         * server-src/amcheck.c: make -t mean do the tape checks, add new -l
18560         option for doing just the local server (non-tape) checks.  Have -w
18561         turn on -t.  Have -cs (or -sc) do both server and client checks.
18562         * man/amcheck.8.in: document above changes and clean up some minor
18563         formatting issues.
18564
18565 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
18566
18567         * common-src/event.c (release): nuke bogus comment about signal
18568         handler release
18569         * common-src/event.c (event_loop): move the reentrancy assert
18570         after the empty queue check.  Otherwise, calling event_loop()
18571         with an empty event queue would cause the entry count to get
18572         out of sync.  Also, on exit, assert that the entry count has
18573         gone to 0
18574         * common-src/event.c (event_loop): fix bogus comment about event
18575         removal
18576
18577 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
18578
18579         * common-src/arglist.h: implement arglist_function3()
18580
18581 1998-11-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18582
18583         * server-src/driver.c (start_some_dumps): In degraded mode,
18584         a big dumper should do high priority dump before low priority.
18585         * server-src/driver.c (sort_by_priority_reversed): sort by
18586         time if priority is equal.
18587
18588 1998-11-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18589
18590         * server-src/infofile.h: declare FORCE_BUMP and FORCE_NO_BUMP
18591         as command.
18592         * server-src/amadmin.c (force_one,unforce_one,info_one): work
18593         with info.command with bit operator.
18594         * server-src/planner.c (setup_estimate): work with info.command
18595         with bit operator, support for FORCE_BUMP and FORCE_NO_BUMP command.
18596
18597 1998-11-27  Thomas Hepper    <th@icem.de>
18598
18599         * changer-src/scsi-aix.c Some changes in the error handling in
18600         scsi command execution
18601         * changer-src/scsi-changer-driver.c More debug prints.
18602         removed Endian16/Endian24 (replaced with macros)
18603         * changer-src/scsi-chio.c make get_clean_state work on linux
18604         * changer-src/scsi-defs.h  added macros for converting from/to
18605         SCSI CDB MSB type
18606         * docs/TAPE.CHANGERS add note about AIX and chg-scsi
18607
18608 1998-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18609
18610         * server-src/amadmin.c(export_one): export the last_level and
18611         consecutive_runs field.
18612         * server-src/amadmin.c(import_one): import the last_level and
18613         consecutive_runs field.
18614
18615 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
18616
18617         * common-src/amanda.h: uhh, every other decl has a leading
18618         'extern' so writev() should as well
18619
18620 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
18621
18622         * common-src/amanda.h: if no writev() decl exists, declare one
18623
18624 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
18625
18626         * configure.in: check for <sys/uio.h>, check for a writev() decl
18627         in <unistd.h> and/or <sys/uio.h>
18628
18629 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
18630
18631         * common-src/writev.c (writev): new file, implements writev for
18632         systems that lack it
18633
18634 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
18635
18636         * common-src/amanda.h: include <sys/uio.h> if it exists.  Otherwise,
18637         define struct iovec
18638
18639 1998-11-24  John R. Jackson  <jrj@purdue.edu>
18640
18641         * server-src/amlabel.c: insist on being run as the dump user (ala
18642         amlabel) to keep permissions straight.
18643
18644 1998-11-24  John R. Jackson  <jrj@purdue.edu>
18645
18646         * server-src/amadmin.c: fix minor message format problem.
18647
18648 1998-11-24  John R. Jackson  <jrj@purdue.edu>
18649
18650         * server-src/amlabel.c: insist on being run as the dump user (ala
18651         amflush) to keep permissions straight.
18652
18653 1998-11-24  John R. Jackson  <jrj@purdue.edu>
18654
18655         * server-src/amrmtape.sh.in: insist on being run as the dump user (ala
18656         amdump) to keep permissions straight.
18657
18658 1998-11-24  John R. Jackson  <jrj@purdue.edu>
18659
18660         * server-src/amadmin.c: issue a warning for update commands that might
18661         leave ownership incorrect.
18662
18663 1998-11-24  John R. Jackson  <jrj@purdue.edu>
18664
18665         * server-src/amcheck.c: add a "-t" option to disable tape tests in the
18666         server checks.  This lets server checks be done without mounting a
18667         tape.  Add lots more sanity checks, in particular, ownership and
18668         permissions of the index area and text format database.  Warn if
18669         amcheck is not run as the dump user listed in amanda.conf.  Minor
18670         consistency cleanup in the messages.
18671         * man/amcheck.8.in: document the changes.
18672
18673 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
18674
18675         * common-src/dgram.c (dgram_bind): always try to get a reserved
18676         port, even if KRB4_SECURITY is defined
18677
18678 1998-11-23  Mike Grupenhoff <kashmir@munge.com>
18679
18680         * common-src/bsd-security.c (struct bsd_handle): change 'int handle'
18681         to 'char proto_handle[32]' because the remote client might generate
18682         handles that aren't completely numerical
18683         * common-src/bsd-security.c (gethandle, str2pkthdr): the 'handle' arg
18684         is now a string
18685         * common-src/bsd-security.c (bsd_connect): convert our generated
18686         handle into a string to pass to gethandle()
18687         * common-src/bsd-security.c (str2pkthdr): rewrite to parse with
18688         strtok().  Parse the handle as a string instead of trying to
18689         convert it into a number
18690
18691 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
18692
18693         * server-src/amcleanup.sh.in (logdir/amdump): arrange that it is
18694         renamed if it exists, even if no log file could be found.
18695
18696 1998-11-20  Mike Grupenhoff <kashmir@munge.com>
18697
18698         * common-src/bsd-security.c: define STREAM_BUFSIZE to be
18699         the size of the tcp socket buffers
18700         * common-src/bsd-security.c (bsd_stream_server, bsd_stream_client):
18701         adapt to the stream_server() interface changes.  Set socket
18702         buffers to STREAM_BUFSIZE.
18703
18704 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
18705
18706         * config/ltmain.sh, config/ltconfig, config/libtool/libtool.m4:
18707         updated to current CVS libtool
18708
18709 1998-11-19  John R. Jackson  <jrj@purdue.edu>
18710
18711         * server-src/conffile.c (get_holdingdisk, init_holdingdisk_defaults):
18712         set the default chunksize and the "0" and "-1" special chunksizes
18713         to 64 KBytes less than the maximum to allow the final read at EOF.
18714         * server-src/dumper.c (main): leave the chunksize as it is when it
18715         comes in except to truncate it to a 32 KByte boundary.
18716         * man/amanda.8.in: add some chunksize comments and clean up a few
18717         minor odds and ends.
18718
18719 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
18720
18721         Give amrecover its own security bits.  It has different needs
18722         and a different protocol than the rest of amanda, so it shouldn't
18723         try to reuse the security bits
18724         * recover-src/amrecover.c (get_security): new function, implements
18725         bsd security
18726         * recover-src/amrecover.c (main): call get_security()
18727         * recover-src/amrecover.h: get_security() prototype
18728         * recover-src/extract_list.c (extract_files_setup): call
18729         get_security()
18730         * restore-src/amidxtaped.c (check_security): new function, implements
18731         * restore-src/amidxtaped.c (main): call check_security()
18732
18733 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
18734
18735         * common-src/stream.c (stream_server, stream_client): cast 4th
18736         arg of setsockopt() to (void *) to quash a compiler warning
18737         under solaris.
18738
18739 1998-11-19  John R. Jackson  <jrj@purdue.edu>
18740
18741         * recover-src/amrecover.c (main): use set_host to find the initial
18742         host name so we get the same alias resolution at startup as the
18743         sethost command.
18744         * recover-src/set_commands.c (set_host): report alternate names being
18745         attempted and only clear the directory list if a host is found.
18746
18747 1998-11-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
18748
18749         * server-src/driverio.c (update_info_dumper): do not update
18750         compression or dump rates when called from
18751         update_failed_dump_to_date
18752         Reported by Michael Schmitz <mschmitz@sema.de>
18753
18754 1998-11-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18755
18756         * server-src/dumper.c (main): reduce the size of the chunksize by
18757         2 blocks.
18758
18759 1998-11-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
18760
18761         * configure.in: hack for paxutils was not working; fixed
18762
18763 1998-11-18  Michael Povel  <mcp@ladyada.han.de>
18764
18765         * server-src/changer.h added new functions:changer_query
18766         ,changer_search,changer_find, changer_label
18767         * server-src/changer.c added changer_query, changer_search,
18768         changer_find, changer_label
18769         * server-src/amcheck.c (taper_scan) now uses changer_find 
18770         * server-src/amtape.c (load_label and taper_scan) now use changer_find
18771         * server-src/taper.c (taper_scan) now uses changer_find
18772         * server-src/amlabel.c (main) added call to changer_label
18773         which is only an empty dummy at the moment
18774
18775 1998-11-18  Thomas Hepper <th@icem.de>
18776
18777         * changer-src/chg-scsi.c Added debug print option
18778         * changer-src/chg-scsi.c If the load fails do not continue
18779         * changer-src/scsi-aix.c changed #include <config.h> to <amanda.h>
18780         * changer-src/scsi-aix.c Added debug prints to SCSI_ExecuteCommand
18781         * changer-src/scsi-changer-driver.c changed #include <config.h> to 
18782         #include <amanda.h>
18783         * changer-src/scsi-changer-driver.c Added debugging prints
18784         * changer-src/scsi-changer-driver.c Remove unused funktion TestUnitReady
18785         * changer-src/scsi-chio.c added missing funktion Tape_Ready
18786         * changer-src/scsi-hpux.c removed #include "config.h", is already done
18787         in amanda.h
18788         * changer-src/scsi-hpux_new.c  changed #include <config.h> to 
18789         #include <amanda.h>
18790         * changer-src/scsi-irix.c changed #include <config.h> to 
18791         #include <amanda.h>
18792         * changer-src/scsi-linux.c changed #include <config.h> to 
18793         #include <amanda.h>
18794         * changer-src/scsi-solaris.c changed #include <config.h> to 
18795         #include <amanda.h>
18796
18797 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
18798
18799         * client-src/sendsize.c: disable HAVE_DUMP_ESTIMATE if SAMBA_CLIENT
18800         is defined
18801
18802 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18803
18804         * server-src/tapefile.c (lookup_last_reusable_tape): Wrong order
18805         to shift the tpsave array.
18806
18807 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
18808
18809         * example/amanda.conf.in: document that infofile is supposed to be a
18810         directory with the default database format
18811         * docs/FAQ: New questions: `infofile update failed' and `using the
18812         same host in different configurations'
18813
18814 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18815
18816         changer-src/scsi-linux.c (Tape_Ready): typo, the argument Device
18817         to the SCSI_CloseDevice() is not defined, I changed it to tapedev.
18818
18819 1998-11-17  Brendan M Coffey <bcoffey@connix.com>
18820
18821         * common-src/stream.c (stream_server): add requested send and receive
18822         socket size parameters.
18823         * common-src/stream.h (stream_server): ditto
18824         * server-src/taper.c (file_reader_side): set a large receive socket
18825         buffer size.
18826         * client-src/sendbackup.c (main): set a large send and receive socket
18827         buffer size for the data path, use defaults for the message and index
18828         paths.
18829
18830 1998-11-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
18831
18832         * changer-src/scsi-solaris.c (Tape_Ready): typo in Thomas' patch
18833
18834 1998-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18835
18836         * server-src/infofile.h (get_dumpdate): rename record parameter to info.
18837         * server-src/infofile.h (get_info): rename record parameter to info.
18838         * server-src/infofile.h (put_info): rename record parameter to info.
18839         * server-src/infofile.c (get_dumpdate): rename rec parameter to info.
18840         * server-src/infofile.c (zero_info): rename ip parameter to info.
18841         * server-src/infofile.c (get_info): rename record parameter to info.
18842         * server-src/infofile.c (put_info): rename record parameter to info.
18843         * server-src/infofile.c (dump_rec): rename r parameter to info.
18844         * server-src/infofile.c (dump_db): rename record variable to info.
18845         * server-src/planner.c (last_level): rename ip parameter to info.
18846         * server-src/planner.c (next_level0): rename ip parameter to info.
18847         * server-src/planner.c (runs_at): rename ip parameter to info.
18848         * server-src/planner.c (askfor): rename inf parameter to info.
18849         * server-src/planner.c (setup_estimate): rename inf variable to info.
18850         * server-src/driverio.c (update_info_dumper): rename inf parameter 
18851         to info.
18852         * server-src/driverio.c (update_info_taper): rename inf parameter 
18853         to info.
18854         * server-src/amadmin.c (next_level0): rename ip parameter to info.
18855         * server-src/amadmin.c (force_one): rename inf variable to info.
18856         * server-src/amadmin.c (unforce_one): rename inf variable to info.
18857         * server-src/amadmin.c (delete_one): rename inf variable to info.
18858         * server-src/amadmin.c (info_one): rename inf variable to info.
18859         * server-src/amadmin.c (due_one): rename inf variable to info.
18860         * server-src/amadmin.c (balance): rename inf variable to info.
18861
18862 1998-11-11  Thomas Hepper <th@icem.de>
18863
18864         * configure.in: amanda_cv_hpux_scsi was double defined.
18865         Replaced it in the chio check with amanda_cv_hpux_scsi_chio
18866         * docs/TAPE.CHANGERS: update the notes about chg-scsi
18867         * changer-src/chg-scsi.c: Unload the cleaning tape only
18868         if it is loaded
18869         Pass the changerdev and tapedev Tape_Ready, so we can check
18870         if changerdev=tapedev. In this case the fd is already open.
18871         * changer-src/scsi-aix.c: cleanup and first parts are running :-)
18872         * changer-src/scsi-changer-driver.c: Pass back the scsi status
18873         field to the calling function, not the result from the ioctl
18874         if the return form the ioctl is >= 0
18875         * changer-src/scsi-hpux.c: Add additional param to Tape_Ready
18876         fill Tape_Ready with live 
18877         * changer-src/scsi-hpux_new.c: Return the scsi status if 
18878         the ioctl result is >=0. Add new Parameter to Tape_Ready
18879         * changer-src/scsi-irix.c: same as scsi-hpux_new.c
18880         * changer-src/scis-linux.c: Add additional param to Tape_Ready
18881         * changer-src/scsi-solaris.c: same as scsi-hpux_new.c
18882
18883 1998-11-11  Mike Grupenhoff <kashmir@munge.com>
18884
18885         * server-src/security.h: add driver entry points and macros
18886         for security_stream_accept() and security_stream_auth()
18887         * server-src/bsd-security.c: implement security_stream_accept()
18888         and security_stream_auth() for bsd security
18889
18890 1998-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18891
18892         * server-src/driver.c (main): redo my patch about total_disksize that
18893         Alexendre has undone, only the 2.4.1 branch was broken.
18894
18895 1998-11-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
18896
18897         * server-src/driver.c (main): total_disksize was only added after
18898         the loop terminated, i.e., when hdp was NULL -> crash.  fixed.
18899
18900 1998-11-09  John R. Jackson  <jrj@purdue.edu>
18901
18902         * server-src/reporter.c (main): ignore SIGPIPE so if a child process
18903         dies we do not also go away.  Also fix a core dump if amanda.conf
18904         cannot be processed, and clean up a few error messages.
18905
18906 1998-11-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18907
18908         * server-src/infofile.h (struct info_s): add last_level and 
18909         consecutive_runs.
18910         * server-src/infofile.c: support new last_level and consecutive_runs
18911         * server-src/planner.c (last_level): return ip->last_level.
18912         * server-src/planner.c (runs_at): return ip->consecutive_runs.
18913         * server-src/driverio.c (update_info_dumper): update inf.last_level
18914         and inf.consecutive_runs.
18915         
18916 1998-11-09  Mike Grupenhoff <kashmir@munge.com>
18917
18918         * client-src/sendbackup-dump.c (start_backup): don't close indexf
18919         if it was never open
18920         * client-src/sendbackup-gnutar.c (start_backup): ditto
18921
18922 1998-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
18923
18924         * server-src/driver.c (main): add hdp->disksize to total_disksize
18925         even when we create the datestamp dir. (reserve was unusable).
18926
18927 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
18928
18929         * Makefile.am (EXTRA_DIST): added EVENT-API, SECURITY-API and
18930         STRATEGY-API
18931         * docs/STRATEGY-API: new file
18932
18933         * configure.in (GNUTAR): accept tar from Free paxutils, the new name
18934         of GNU tar
18935
18936 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
18937
18938         * changer-src/scsi-solaris.c: added missing #endif
18939
18940         * configure.in: merge with camlib.h patch from Oct 31
18941         remove all uses of test ... -a ...; this is not portable.
18942         (AC_CHECK_HEADERS) added header files for Linux and Solaris
18943
18944 1998-11-07  Thomas Hepper  <th@icem.de>
18945
18946         * changer-src/chg-scsi: Add config option scsidev
18947         * changer-src/chg-scsi: Remove function tape_ready
18948         * changer-src/chg-scsi: Add new parameter tapedev to function
18949         ask_clean
18950         * changer_src/scsi-hpux.c: changed HAVE_HPUX_SCSI to 
18951         HAVE_HPUX_SCSI_CHIO, changed in configure.in too
18952         * changer-src/libscsi.h: Expand definition for get_clean_state
18953         * new files in /changer-src:
18954         scsi-aix.c, scsi-changer-driver.c, scsi-defs.h
18955         scsi-hpux_new.c, scsi-irix.c, scsi-linux.c, scsi-solaris.c
18956         * configure.in checks for scsi ioctl added, check for header files
18957         for the scsi suport added
18958         * config/acconfig.h new:
18959         HAVE_HPUX_LIKE_SCSI, HAVE_HPUX_SCSI_CHIO, HAVE_LINUX_LIKE_SCSI
18960         HAVE_IRIX_LIKE_SCSI, HAVE_SOLARIS_LIKE_SCSI, HAVE_AIX_LIKE_SCSI
18961                removed: HAVE_HPUX_SCSI
18962         * changer-src/Makefile.am: New conditional for building chg-scsi-chio
18963         and chg-scsi. chg-scsi-chio is the old chg-scsi
18964
18965 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
18966
18967         * common-src/bsd-security.c (bsd_stream_write): callback's third
18968         arg should now be an int.
18969         * common-src/bsd-security.c: quash some gcc -Wall warnings
18970
18971 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
18972
18973         * common-src/security.h: the callback to stream_read should
18974         take signed type as its 'length' argument so errors can be
18975         expressed as a negative number.
18976
18977 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
18978
18979         * common-src/bsd-security.c (stream_read_callback): do reads into
18980         a buffer of size TAPE_BLOCK_BYTES, instead of 256, and place the
18981         buffer in the stream handle instead of on the stack, since it's
18982         huge
18983
18984 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
18985
18986         * common-src/event.c (event_loop): Consider error conditions on
18987         file descriptors as read or write events.  The caller will be
18988         able to differentiate when they call read or write and it
18989         fails.
18990
18991 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
18992
18993         * common-src/event.c (event_loop): print out WHY select failed
18994
18995 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
18996
18997         * common-src/bsd-security.c: adjust for the recvpkt timeout
18998         interface changes
18999         * common-src/bsd-security.c (handleq_remove): add a missing ; after
19000         an assertion
19001         * common-src/bsd-security.c (gethandle): initialize the error buffer
19002         in the security handle, since errors may be set before the handle
19003         is passed up to the general security layer
19004         * common-src/bsd-security.c (bsd_recvpkt_cancel): allow it to be
19005         called several times, or when no recvpkt was scheduled
19006
19007 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
19008
19009         * common-src/security.h: define security_recvpkt_status_t
19010         * common-src/security.h: security_driver_t->recvpkt() now
19011         takes a timeout argument, and its callback takes a
19012         security_recvpkt_status_t
19013         * common-src/security.h: adjust the security_recvpkt() macro
19014         for the above changes
19015
19016 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
19017
19018         * common-src/event.c (event_loop): assert that we are not firing
19019         a dead event
19020
19021 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19022
19023         * recover-src/amrecover.c: remove declaration of errstr.
19024
19025 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19026
19027         * server-src/amindexd.c (build_disk_table): call find_dump() instead
19028         of popen("amadmin <conf> find ...")
19029
19030 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19031
19032         * server-src/holding.h: rename dir_list to holding_list because
19033         dir_list is also declared in amflush.c
19034         * server-src/holding.c: ditto
19035         * server-src/find.c: ditto
19036
19037 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19038
19039         * server-src/amstatus.pl.in: remove warning.
19040
19041 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
19042
19043         * common-src/event.c (event_register): delete some improper debug
19044         code that shouldn't have made it in
19045
19046 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
19047
19048         * common-src/bsd-security.c: new file: security driver that
19049         implements "BSD" security.
19050
19051 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
19052
19053         * common-src/security.h: new file: the security api header
19054
19055 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
19056
19057         * common-src/event.c: new file: the event handler.  Handles file
19058         descriptor io, signals, and timed events.
19059         * common-src/event.h: new file: interface for the event handler.
19060
19061 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
19062
19063         * common-src/packet.c: new file: description of pkt_t's and routines
19064         for formatting
19065         * common-src/packet.h: new file: header for common-src/packet.c
19066
19067 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
19068
19069         * common-src/queue.h: new file: the 4.4BSD queue macros, with
19070         additions from NetBSD
19071
19072 1998-11-04  John R. Jackson  <jrj@purdue.edu>
19073
19074         * server-src/amverify.sh.in: tolerate extra amtape output.
19075
19076 1998-11-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
19077
19078         * configure.in: bumped to 2.5.0
19079
19080         * server-src/taper.c (read_file): if a new tape cannot be found,
19081         report a no-tape error to the log file and exit, just like it does
19082         for the first tape
19083
19084 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19085
19086         * server-src/planner.c (pick_inclevel): return base_level even
19087         when the estimate failed.
19088         * server-src/planner.c (output_scheduleline): test for degr_size
19089         instead of degr_level.
19090
19091 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19092
19093         * server-src/planner.c (last_level): update last_date otherwise only
19094         level 0 or the highest is returned.
19095
19096 1998-11-03  Mike Grupenhoff  <kashmir@munge.com>
19097
19098         * common-src/alloc.c: const arguments to the stralloc functions
19099         * common-src/amanda.h: update stralloc prototypes for const
19100         poisoning
19101
19102 1998-11-03  John R. Jackson  <jrj@purdue.edu>
19103
19104         * server-src/dumper.c (do_dump): do not report FAILED back to driver
19105         when it sent us ABORT.  Clean up and send back ABORT-FINISHED.
19106
19107 1998-11-03  John R. Jackson  <jrj@purdue.edu>
19108
19109         * server-src/driver.c (handle_dumper_result): do not abort a dumper
19110         that reports NO-ROOM if taper is busy since some holding disk space
19111         will eventually be released (this code it not used when PORT-DUMP is
19112         in progress).
19113
19114 1998-11-03  John R. Jackson  <jrj@purdue.edu>
19115
19116         * server-src/taper.c (write_buffer): calling lseek after every tape
19117         write is wasteful and makes utilities like lsof less useful.  Only
19118         reset the offset when the amount written is about to go over 2 GBytes.
19119
19120 1998-11-02  John R. Jackson  <jrj@purdue.edu>
19121
19122         * server-src/driver.c (main, start_degraded_mode): fix rounding problem
19123         that made the code think there was a little room for full dumps in
19124         degraded mode, and fix the code that decides whether to do a full dump
19125         in degraded mode.
19126
19127 1998-11-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19128
19129         * server-src/amstatus.pl.in: initialize variable to remove warning.
19130
19131 1998-11-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
19132
19133         * client-src/Makefile.am (CLIENT_SCRIPTS): rename to
19134         CLIENT_SCRIPTS_OPT, because *_SCRIPTS is interpreted by automake
19135         * configure.in (CLIENT_SCRIPTS): ditto
19136         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
19137
19138         * configure.in (LIBTOOL_M4): no longer defined
19139         (LIBTOOL_M4_MACRO_DIR): defined assuming CWD is top_srcdir
19140         * Makefile.am (ACLOCAL_M4_FROM_SRCDIR): relative to srcdir
19141         (ACLOCAL_M4): defined and created using ACLOCAL_M4_FROM_SRCDIR
19142         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
19143         
19144         * client-src/sendbackup.c (backup_program): rename to
19145         gnutar_program, that's the name it should have had from the
19146         beginning
19147         * client-src/sendbackup-gnutar.c (backup_program): ditto
19148
19149 1998-10-31  Michael Schmitz <mschmitz@iname.com>
19150
19151         * configure.in: let configure check whether strcasecmp is
19152         present
19153         * common-src/strcasecmp.c: new file which contains a definition
19154         of strcasecmp
19155         * common-src/amanda.h: added code to declare strcasecmp in
19156         case it's not declared in a standard header
19157
19158 1998-10-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
19159
19160         * configure.in (snprintf): arrange that it is included in the
19161         distribution automatically
19162         * common-src/Makefile.am (EXTRA_DIST): removed, not needed
19163
19164         * changer-src/Makefile.am (libexec_SCRIPTS): would only be enabled
19165         if WANT_CHG_SCSI
19166
19167         * configure.in (NO_SCSI_CHANGER_MODE): chg-scsi does not support the
19168         new FreeBSD 3.0 chio.h, so disable it if camlib.h is found.
19169         * docs/SYSTEM.NOTES (FreeBSD 3.0): add a note about this
19170         (SunOS 4.x): libtool will no longer find incorrect library versions
19171
19172 1998-10-30  John R. Jackson  <jrj@purdue.edu>
19173
19174         * common-src/security.c (bsd_security_ok): change error message to
19175         reflect that it is a host name we were looking up rather than an
19176         address (also makes the two similar messages unique).
19177
19178 1998-10-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
19179
19180         * docs/SYSTEM.NOTES: Debian 2's dump uses /var/lib/dumpdates 
19181
19182 1998-10-28  John R. Jackson  <jrj@purdue.edu>
19183
19184         * recover-src/set_commands.c (set_host): if the host given by the user
19185         does not work, try the canonical name and aliases returned by
19186         gethostbyname.
19187
19188 1998-10-28  John R. Jackson  <jrj@purdue.edu>
19189
19190         * configure.in: use "df /" instead of just "df" when trying to find
19191         the device that has the root file system to avoid things like NFS
19192         hangs that df sometimes suffers from.
19193
19194 1998-10-27  Mike Grupenhoff <kashmir@munge.com>
19195
19196         * common-src/stream.c (stream-client): add a 'localport' argument
19197         in which we can get the port this stream is bound to locally
19198         * common-src/stream.h (stream-client): update prototype
19199         * server-src/dumper.c: update stream-client calls
19200
19201 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19202
19203         * client-src/amandad.c (main): better logging of received packet,
19204         do not send a P_ACK when the received packet is not a P_REQ.
19205
19206 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19207
19208         * client-src/amandad.c (main): terminate immediately if started
19209         by a P_ACK packet without sending a P_NAK packet.
19210
19211 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19212
19213         * server-src/conffile.h (dtimeout): new keyword 
19214         * server-src/conffile.c (dtimeout): ditto
19215         * server-src/dumper.c: use dtimeout instead of READ_TIMEOUT
19216         * example/amanda.conf.in: document it
19217         * man/amanda.8.in: ditto
19218         * NEWS: ditto
19219
19220 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19221
19222         * server-src/dumper.c (sendbackup_response): a nak error will
19223         be a TRY-AGAIN instead of a FAILED.
19224
19225 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19226
19227         * server-src/amlabel.c: move declaration of vtbl_no, datestr
19228         and slotcommand to the main function.
19229
19230 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19231
19232         * server-src/amlabel.c: remove declaration of pname.
19233
19234 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19235
19236         * server-src/amcheckdb.sh.in: modify to match new tapelist file
19237         format (keyword reuse and no-reuse). Probably no-one use this
19238         program.
19239
19240 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19241
19242         * server-src/driver.c (handle_dumper_result): Add sleep time
19243         when a dumper failed, it could be a temporary network problem,
19244         such as NIS or NFS, better wait a few seconds before retrying.
19245
19246 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19247
19248         * server-src/driverio.h: remove declaration of argc et argv.
19249         * server-src/driverio.h (getresult): add parameters result_argc, 
19250         result_argv and max_arg.
19251         * server-src/driverio.c (getresult): use new parameters.
19252         * server-src/amflush.c (flush_holdingdisk, run_dumps): declare
19253         and use result_argc and result_argv instead of global variables
19254         argc and argv.
19255         * server-src/driver.c (main, handle_taper_result, 
19256         handle_dumper_result, dump_to_tape): ditto
19257
19258 1998-10-24  John R. Jackson  <jrj@purdue.edu>
19259
19260         * server-src/amstatus.pl.in: do not be quite so accurate in matching
19261         the log file lines since messages may be intermixed.  Turn on perl
19262         -w switch and make first cut at cleaning up warnings.
19263
19264 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19265
19266         * server-src/driverio.h: remove datestamp declaration.
19267         * server-src/amcheck.c: remove 'extern' to datestamp declaration.
19268         * server-src/amflush.c: declare datestamp.
19269         * server-src/amtape.c: remove 'extern' to datestamp declaration.
19270         * server-src/driver.c: declare datestamp.
19271         * server-src/dumper.c: remove 'extern' to datestamp declaration.
19272         * server-src/reporter.c: remove 'extern' to datestamp declaration.
19273
19274 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19275
19276         * server-src/driverio.h: remove declaration of tok.
19277         * server-src/amflush.c (flush_holdingdisk,run_dumps): declare
19278         tok locally.
19279         * server-src/driver.c (main, handle_taper_result, handle_dumper_result,
19280         dump_to_tape): declare tok locally.
19281
19282 1998-10-23  John R. Jackson  <jrj@purdue.edu>
19283
19284         * configure.in: disable the -E and -h dump estimate checks if $DUMP
19285         is not executable.
19286
19287 1998-10-19  John R. Jackson  <jrj@purdue.edu>
19288
19289         * server-src/amindexd.c (is_config_valid): fix core dump by moving
19290         amfree of conf_dir later in case it is needed in an error message.
19291
19292 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19293
19294         * server-src/reporter.c: remove declaration of curlinenum,
19295         curlog, curprog and curstr.
19296
19297 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19298
19299         * server-src/amflush.c (main): move declaration of diskqp from
19300         global to local.
19301
19302 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19303
19304         * server-src/amcheck.c (main): move declaration of mailout and 
19305         tempfname from global to local.
19306
19307 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19308
19309         * server-src/amadmin.c (search_logfile): remove declaration
19310
19311 1998-10-15  Mike Grupenhoff <kashmir@munge.com>
19312
19313         * server-src/amadmin.c (reuse, no-reuse): don't core dump if tape
19314         label not found
19315
19316 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19317
19318         * server-src/conffile.h: remove declaration of holdingdisks and 
19319         num_holdingdisks, declare getconf_holdingdisks().
19320         * server-src/conffile.c: define getconf_holdingdisks(),
19321         * server-src/holding.c: use getconf_holdingdisks
19322         * server-src/find.c: ditto
19323         * server-src/amcheck.c: ditto
19324         * server-src/amflush.c: ditto
19325         * server-src/driver.c ditto
19326
19327 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19328
19329         * server-src/driver.c: remove verbose and force_parameters
19330         variables.
19331
19332 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19333
19334         * server-src/dumper.c: remove declaration of pid.
19335         * server-src/dumper.c(do_dump): move declaration of runtime, 
19336         dumptime, compresspid, indexpid and killerr from global to local.
19337
19338 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19339
19340         * server-src/planner.c: remove declaration of total_waiting and
19341         result_socket.
19342         * server-src/planner.c(main): move declaration of initial_size from
19343         global to local.
19344
19345 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19346
19347         * server-src/driverio.h,server-src/driver.c: move declaration
19348         of big_dumpers, degraded_mode and reserved_space from 
19349         driverio.h to driver.c
19350
19351 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19352
19353         * server-src/driverio.h (optionstr): remove declaration
19354
19355 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19356
19357         * configure.in (SAMBA_CLIENT): fix typo
19358
19359 1998-10-14  John R. Jackson  <jrj@purdue.edu>
19360
19361         * restore-src/amrestore.c (read_file_header): make a couple of error
19362         messages clearer that they refer to problems with a header rather
19363         than the image data.
19364
19365 1998-10-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
19366
19367         * client-src/Makefile.am (libamclient_a_SOURCES): missing since
19368         clean-up; re-added
19369
19370 1998-10-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19371
19372         * docs/INTERNALS (driver and dumper): document <dumpdate> in 
19373         FILE-DUMP and PORT-DUMP request, document <chunksize> in 
19374         FILE-DUMP request.
19375
19376 1998-10-12  John R. Jackson  <jrj@purdue.edu>
19377
19378         * server-src/amtape.c (usage, main, show_device): apply patch from
19379         Chris Jones <cjones@clydesdale.math.montana.edu> to support "device"
19380         as an option to return the drive device name as reported by the
19381         changer.
19382         * man/amtape.8: document the new "device" option.
19383         * server-src/amverify.sh.in: use the new amtape "device" option to
19384         better handle tape changers.  Overhaul for general cleanup and some
19385         security issues, plus amverify now tries to support non-tar images.
19386         * man/amverify.8.in: document non-tar image issues.
19387
19388 1998-10-08  John R. Jackson  <jrj@purdue.edu>
19389
19390         * example/amanda.conf.in: fix runspercycle example and comments
19391
19392 1998-10-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
19393
19394         * configure.in (SAMBA_CLIENT): try to find it by default; minimal
19395         checking
19396         * client-src/Makefile.am (WANT_SAMBA): use automake conditionals to
19397         enable findpass.o
19398         * docs/SAMBA: document that --with-smbclient is no longer required
19399         to enable SAMBA support
19400         
19401         * docs/FAQ: about inconsistencies in active filesystems
19402
19403 1998-10-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19404
19405         * docs/DUMPER-API: add `no-record' option to the `backup' command.
19406
19407 1998-10-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19408
19409         * docs/DUMPER-API: subdivise section 3.1.
19410
19411 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19412
19413         * docs/DUMPER-API: New `index-<mode>' options.
19414         define `support parse-estimate' and `support parse-backup' subcommand.
19415         New 'estimate-direct', `estimate-parse', `backup-direct' and
19416         `backup-parse' options.
19417         Remove PARSE keyword from estimate and backup command.
19418
19419 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19420
19421         * docs/DUMPER-API: define PARSE keyword in stderr of the backup
19422         command
19423
19424 1998-10-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
19425
19426         * man/Makefile.am (EXTRA_DIST): make sure the man-pages that are not 
19427         generated by autoconf get into the distribution
19428
19429 1998-10-02  Josef Karthauser  <joe@pavilion.net>
19430
19431         * changer-src/chg-chio.pl.in (getTapeParams): fix regular expression 
19432         for $line; the trailing `s' of slots was missing
19433
19434 1998-10-02  John R. Jackson  <jrj@purdue.edu>
19435
19436         * server-src/amstatus.pl.in: fix error message.
19437
19438 1998-10-02  John R. Jackson  <jrj@purdue.edu>
19439
19440         * server-src/taper.c (write_file): fix a problem with tha taper
19441         stats where the times were all the same.  The wallclock_str function
19442         returns a pointer to a static area so it cannot be called more
19443         than once as an argument to a function.
19444
19445 1998-10-01  John R. Jackson  <jrj@purdue.edu>
19446
19447         * common-src/protocol.c (parse_integer): allow negative numbers.
19448
19449 1998-10-01  John R. Jackson  <jrj@purdue.edu>
19450
19451         * server-src/amstatus.pl.in: add timestamps.
19452
19453 1998-10-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
19454
19455         * docs/DUMPER-API: define `support index', to be used instead of the
19456         previous `index-*' sub-commands
19457
19458 1998-09-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
19459
19460         * server-src/Makefile.am (libexec_PROGRAMS, sbin_SCRIPTS): don't use 
19461         backslashes for continuation; this seems to break automake :-(
19462
19463 1998-09-30  John R. Jackson  <jrj@purdue.edu>
19464
19465         * man/amanda.8.in: minor typo in "reserve" description.
19466
19467 1998-09-29  John R. Jackson  <jrj@purdue.edu>
19468
19469         * server-src/taper.c (end_tape): do not rewind the tape when done.
19470
19471 1998-09-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
19472
19473         * configure.in (WANT_CLIENT, WANT_RESTORE, WANT_SERVER, 
19474         WANT_RECOVER, WANT_TAPE, WANT_AMPLOT, WANT_CHG_SCSI): automake
19475         conditionals
19476         * amplot/Makefile.am: use them
19477         * changer-src/Makefile.am: ditto
19478         * client-src/Makefile.am: ditto
19479         * common-src/Makefile.am: ditto
19480         * man/Makefile.am: ditto
19481         * recover-src/Makefile.am: ditto
19482         * restore-src/Makefile.am: ditto
19483         * server-src/Makefile.am: ditto
19484         * tape-src/Makefile.am: ditto
19485
19486         * Makefile.am: don't print commands that work around old aclocal bug
19487
19488         * docs/DUMPER-API: remove environment variables, and mention a
19489         program that will help translating disklist entries to device names, 
19490         mount points and filesystem types
19491
19492         * recover-src/extract_list.c (extract_files_child): do not crash
19493         after failing to read the dump file header
19494         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
19495
19496 1998-09-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
19497
19498         * server-src/taper.c (taperscan_slot): initialize scan_datestamp, to
19499         avoid amfree of uninitialized pointer
19500         Reported by Lance A. Brown <brown9@niehs.nih.gov>
19501
19502 1998-09-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
19503
19504         * docs/DUMPER-API (USER, GROUP): detailed security mechanisms
19505         (estimate, estimate-parse): can print `KILL' after the estimate
19506         
19507         * docs/DUMPER-API: various suggestions from Eric Siegerman
19508         <erics@now.com> and some explanations added
19509         
19510 1998-09-27  Andy Farkas  <andyf@speednet.com.au>
19511
19512         * man/amlabel.8.in (labelstr): fix typo
19513
19514 1998-09-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
19515
19516         * recover-src/extract_list.c (extract_files_child): fix-up
19517         no_initial_params if password or domain information is not found
19518         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
19519
19520         * docs/DUMPER-API: extended `index' to `index-from-output' or
19521         `index-from-image', as suggested by Dale Hagglund <rdh@best.com>.
19522         Explained that the dumptype option `program' is the name of the
19523         wrapper program
19524
19525 1998-09-25  John R. Jackson  <jrj@purdue.edu>
19526
19527         * configure.in: fix --with-dump-honor-nodump test.  Patch by
19528         Jonas Oberg <jonas@coyote.org>.
19529
19530 1998-09-24  John R. Jackson  <jrj@purdue.edu>
19531
19532         * example/disklist: document the "spindle" and "interface" fields.
19533         Reported by Brendan M Coffey <bcoffey@connix.com>.
19534
19535 1998-09-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
19536
19537         * docs/DUMPER-API: added draft description of the DUMPER API
19538         * Makefile.am (EXTRA_DIST): add it to the distribution
19539
19540         * config/acinclude.m4 (AC_VALIDATE_CACHE_SYSTEM_TYPE): make sure
19541         cached values for host, build and target system types match with the
19542         guessed ones
19543         * configure.in: use it
19544
19545 1998-09-23  John R. Jackson  <jrj@purdue.edu>
19546
19547         * server-src/amstatus.pl.in: sort the host and partition names.
19548         From David Wolfskill <dhw@whistle.com>.
19549
19550 1998-09-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
19551
19552         * server-src/taper.c (getcmd): typo in last DEBUGging patch
19553
19554 1998-09-22  Tim Perkins  <Tim.Perkins@ddg.phar.cam.ac.uk>,  Alexandre Oliva <oliva@dcc.unicamp.br>
19555
19556         * client-src/selfcheck.c (check_disk): fix VDUMP auto-detection
19557
19558 1998-09-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
19559
19560         * changer-src/chg-mtx.sh.in: replace rew with rewind
19561         * changer-src/chg-zd-mtx.sh.in: ditto
19562         Reported by Henning Holtschneider <hh@loca.net>
19563
19564         * client-src/sendsize.c: remove usage of #error
19565         Reported by Jay Orr <orr@vss.fsi.com>
19566
19567 1998-09-21  John R. Jackson  <jrj@purdue.edu>
19568
19569         * man/amanda.8.in: document the new "tapebufs" parameter.
19570
19571 1998-09-21  Kelly Setzer  <setzer@telalink.net>
19572
19573         * server-src/taper.c (NBUFS): replaced with conf_tapebufs
19574         (THRESHOLD): now means `empty bufs' instead of `full bufs'
19575         * server-src/conffile.c: add support for the "tapebufs" option
19576         * server-src/planner.c: ditto
19577         * examples/amanda.conf.in: add sample "tapebufs" entry
19578
19579         * server-src/amlabel.c (main): adds entry to tapelist with date
19580         19700101
19581
19582 1998-09-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
19583
19584         * server-src/taper.c (getcmd): print DEBUGging output to stderr
19585         Reported by Henning Holtschneider <hh@loca.net>
19586
19587 1998-09-19  Eric Doutreleau <Eric.doutreleau@int-evry.fr>
19588
19589         * server-src/driverio.h (MAX_DUMPERS): increased from 15 to 63 in
19590         order to launch more dumper in parallel
19591         * example/amanda.conf.in (inparallel): Add the fact that it is
19592         limited by MAX_DUMPERS
19593
19594 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
19595
19596         * common-src/Makefile.am (libamanda_la_LDFLAGS): use libtool
19597         -release instead of -version_info, so as to encode the Amanda
19598         release number in the library name.  Problems related with
19599         pre-installed libraries should disappear, and separate releases can
19600         now be installed into the same directory without the risk of one
19601         using libraries from the other.
19602
19603 1998-09-18  Michael C. Povel  <Michael.Povel@hub.de>
19604
19605         * changer-src/chg-scsi.c (wait_ready): new function; keeps retrying
19606         until success or timeout
19607         (ask_clean, main): use it
19608
19609 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
19610
19611         * client-src/selfcheck.c (check_options): don't require runtar for
19612         SAMBA backups
19613         
19614         * client-src/rundump.c: fix support for VDUMP-only installation
19615         * client-src/selfcheck.c (check_options): fix detection of advfs
19616         * client-src/sendsize.c (getsize_dump): ditto
19617         * client-src/sendbackup-dump.c (start_backup): ditto
19618         Reported by Tim Perkins <Tim.Perkins@ddg.phar.cam.ac.uk>
19619
19620 1998-09-16  John R. Jackson  <jrj@purdue.edu>
19621
19622         * man/amadmin.8.in: document that "hostname" is optional for "info".
19623         Reported by David Wolfskill <dhw@whistle.com>.
19624
19625 1998-09-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
19626
19627         * docs/FAQ: common compile-time and link-time errors
19628
19629 1998-09-11  John R. Jackson  <jrj@purdue.edu>
19630
19631         * server-src/tapefile.c (lookup_last_reusable_tape): use new
19632         calling sequence that passes how old a tape to return.  Remove
19633         lookup_previous_reusable_tape().
19634         * server-src/tapefile.h (lookup_last_reusable_tape): use new
19635         calling sequence that passes how old a tape to return.  Remove
19636         lookup_previous_reusable_tape().
19637         * server-src/amadmin.c (tape): use new lookup_last_reusable_tape
19638         calling sequence.
19639         * server-src/amcheck.c (taper_scan, start_server_check): use new
19640         lookup_last_reusable_tape calling sequence.
19641         * server-src/amflush.c (confirm): use new lookup_last_reusable_tape
19642         calling sequence.
19643         * server-src/amtape.c (taper_scan): use new lookup_last_reusable_tape
19644         calling sequence.
19645         * server-src/reporter.c (output_tapeinfo): use new
19646         lookup_last_reusable_tape calling sequence.
19647         * server-src/taper.c (taper_scan): use new lookup_last_reusable_tape
19648         calling sequence.
19649
19650 1998-09-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
19651
19652         * client-src/sendbackup-gnutar.c (re_table): ignore
19653         `load_client_codepage' message from SAMBA
19654
19655 1998-09-11  John R. Jackson  <jrj@purdue.edu>
19656
19657         * server-src/amstatus.pl.in (all): fix USE_VERSION_SUFFIXES=yes
19658         problems.  Reported by David Eckelkamp <davide@locutus.tradewave.com>.
19659
19660         * man/amstatus.8.in (all): fix minor typos.
19661
19662 1998-09-10  John R. Jackson  <jrj@purdue.edu>
19663
19664         * configure.in (LFS): add code that might support configuring large
19665         files on HP-UX.
19666
19667 1998-09-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
19668
19669         * server-src/conffile.c (dump_configuration): runspercycle is not a
19670         member of dumptype_t
19671         (init_holdingdisk_defaults): init chunksize with documented default,
19672         not -1, because it wouldn't be recalculated
19673
19674         * docs/INSTALL: URL for SAMBA was broken; note about 1.9.18p10 bug
19675
19676 1998-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19677
19678         * docs/SAMBA: 1.9.18p10 has a bug
19679
19680 1998-09-09  Terje Malmedal  <tm@funcom.com>
19681
19682         * common-src/stream.c (stream_server, stream_client): added
19683         SO_KEEPALIVE option so we get an error if the other side crashes
19684
19685 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
19686
19687         * configure.in (CHIO): look for chio and AC_SUBST it
19688         (MT, CHS): if not found, use just the program name
19689         
19690 1998-09-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19691
19692         * server-src/planner.c (last_level): return the last level
19693         even it is still on holding disk if reserve < 100.
19694
19695 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
19696
19697         * server-src/reporter.c (divzero, divzero_wide): print `#'s on
19698         overflow
19699
19700         * server-src/amtape.c (show_init): no longer print `scanning'
19701         message
19702         (show_init_show, current_init_all): call show_init, then print the
19703         appropriate `scanning' message
19704         Reported by David Wolfskill <dhw@whistle.com>
19705
19706         * changer-src/chg-scsi.c (main): use new multi-configuration
19707         mechanism only if tape_device contains only a single digit
19708
19709 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19710
19711         * server-src/planner.c (setup_estimate): Don't write a
19712         "mismatch: no tapelist record, but curinfo next_level0" message
19713         and force a level 0 when reserve < 100.
19714
19715 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19716
19717         * server-src/holding.h (get_amanda_names): return a filetype_t
19718         instead of an int.
19719         * server-src/holding.c (get_amanda_names): return the filetype_t
19720         of the file or F_UNKNOWN if it's not an amanda file.
19721         * server-src/find.c (search_holding_disk): Use the new return 
19722         type of get_amanda_names.
19723         * server-src/amflush.c (flush_holdingdisk): Don't write a
19724         "ignoring cruft file" message for chunk files,
19725         filetype is F_CONT_DUMPFILE.
19726
19727 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19728
19729         * recover-src/extract_list.c (extract_files_child): don't write
19730         the samba password to the debug file.
19731
19732 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19733
19734         * server-src/driverio.c (update_info_dumper): set inf.command to
19735         NO_COMMAND if reserve< 100 because if you force a level 0 with
19736         'amadmin force', it will do level 0 every days until you flush them
19737         to tape.
19738
19739 1998-09-03  Matthias Urlichs    <smurf@noris.net>
19740
19741         * recover-src/uscan.l: recognize "?" as alias for "help"
19742
19743         * configure.in (MAILER): recognize "mail" as well as "Mail" and
19744         "mailx"
19745
19746         * client-src/calcsize.c (add_file_dump, add_file_unknown): only get
19747         sizes of directories and files
19748
19749         * client-src/amandates.c (start_amandates): create amandates if
19750         error is either EINTR or ENOENT
19751
19752         * common-src/dgram.c (dgram_send_addr): handle ECONNREFUSED by not
19753         dying when receiving, and retrying when sending, a packet.  The
19754         server may get this error when a client reboots and hasn't started
19755         inetd yet.
19756         * common-src/protocol.c (handle_incoming_packet): ditto
19757
19758         * server-src/driver.c (read_schedule): catch cases when the time
19759         goes negative.  Some operators have the bad habit of syncing clocks
19760         late at night. ;-)
19761
19762         * common-src/dgram.h (MAX_DGRAM): increased to 64Kb
19763         * NEWS: ditto
19764         * client-src/amandad.c (main): read the pipe from the child
19765         incrementally: the pipe buffer of many OSes is shorter than
19766         MAX_DGRAM.  Instead of SIGCHLD, note end-of-data by way of
19767         end-of-file
19768         (sigchild_jump, sigchild_flag): removed
19769         * client-src/sendbackup.c (main): instead of fork-and-exit, tell
19770         amandad to process our data by closing our end of the pipe
19771         
19772 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
19773
19774         * NEWS: another typo (too late :-(
19775
19776 1998-09-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19777
19778         * server-src/driver.c: amanda will not use an holding disk
19779         if the directory with the datestamp already exist.
19780
19781 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
19782
19783         * Amanda 2.4.1 released
19784         
19785 1998-08-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19786
19787         * NEWS: typo
19788
19789 1998-08-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
19790
19791         * docs/INSTALL: update some version numbers; SAMBA 1.9.18p10 has
19792         fixed the bug in p8; using p8 is not recommended any more
19793         * docs/SAMBA: ditto
19794
19795         * config/config.guess: updated to libtool 1.2b's, in order to
19796         auto-detect some recent architectures
19797         * config/config.sub: ditto
19798
19799         * server-src/amcleanup.sh.in (sbindir): amreport now lives in
19800         sbindir; added it to PATH and removed full pathnames to binaries
19801
19802 1998-08-27  Blair Zajac  <blair@gps.caltech.edu>
19803
19804         * configure.in: Add the directory /usr/lib/fs/vxfs to the search
19805         path where configure looks for vxdump and vxrestore.  This is for
19806         Solaris so it can automatically handle vxfs filesystems.
19807         * client-src/sendbackup-dump.c: add missing last NULL argument to
19808         newvstralloc().
19809         * server-src/dumper.c: add missing last NULL argument to
19810         newvstralloc().
19811         * NEWS: reorder 2.4.1 items into most to least important for most
19812         users.
19813         * config/acconfig.h: update comment for VXDUMP and VXRESTORE to
19814         include systems where the Veritas filesystem is used.
19815
19816 1998-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
19817
19818         * man/amanda.8.in (nofull): only level 1 incrementals
19819
19820 1998-08-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
19821
19822         * changer-src/chg-mtx.sh.in (PATH): added /usr/local/bin
19823
19824         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): added chg-zd-mtx
19825         (AC_OUTPUT): ditto
19826         * changer-src/Makefile.am (EXTRA_SCRIPTS): ditto
19827         * docs/TAPE.CHANGERS (chg-zd-mtx): documented it
19828         (chg-mtx): mentioned chg-zd-mtx
19829
19830 1998-08-20  Eric Doutreleau  <Eric.Doutreleau@int-evry.fr>
19831
19832         * changer-src/chg-zd-mtx.sh.in: new changer script for
19833         Zubkoff/Dandelion version of mtx.
19834
19835 1998-08-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
19836
19837         * docs/SAMBA: updated; documented new patch (sambatar.diff,
19838         available in the patches page) and requirements about backup user.
19839         * docs/INSTALL: documented new patch
19840
19841 1998-08-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
19842
19843         * client-src/sendsize.c (regex_s): refuse to compile if SAMBA_CLIENT
19844         and HAVE_DUMP_ESTIMATE are both defined: the regexp that matches the
19845         estimate from DU 4.0's dump also matches an output line from
19846         smbclient, that provides an incorrect estimate.
19847         * docs/SYSTEM.NOTES: document the problem
19848
19849 1998-08-14  John R. Jackson  <jrj@purdue.edu>
19850
19851         * docs/TAPE.CHANGERS: describe "advance" and clean up some spelling.
19852
19853 1998-08-13  Alexandre Oliva  <oliva@dcc.unicamp.br>, Marcel Hild  <hild@id-pro.de>
19854
19855         * configure.in (--with-portrange): validate and define PORTRANGE
19856         * example/config.site: document it
19857         * config/acconfig.h (PORTRANGE): prepare for configure define
19858         * common-src/stream.c (stream_server): use PORTRANGE to limit TCP
19859         unreserved server sockets
19860
19861 1998-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
19862
19863         * docs/FAQ: working around `dumps way too big'
19864
19865 1998-08-11  Alexandre Oliva  <oliva@dcc.unicamp.br>, Gunnar Gunnarsson  <gunnar@ki.ericsson.se>
19866
19867         * common-src/token.h (rxquote, shquote): new functions
19868         * common-src/token.c (rxquote) quotes a string into an equivalent
19869         regular expression
19870         (shquote): quotes all shell special meta-characters, so that a
19871         string can be safely passed down for shell interpretation in
19872         system() or popen()-like calls
19873         * server-src/amindexd.c (build_disk_table): quote the disk_name with 
19874         both rxquote and shquote
19875
19876 1998-08-11  John R. Jackson  <jrj@purdue.edu>
19877
19878         * changer-src/chg-manual.sh.in: put the debug file in DEBUG_DIR for
19879         security.  Clean up and enhance logging.  Fix locations of the
19880         changer files.  Source the changerfile into the script so it can
19881         override the request() function and allow alternatives to /dev/tty
19882         (e.g. E-mail, syslog).  Issue rewind before status (Solaris does
19883         not give a good status report right after a tape is loaded).
19884
19885 1998-08-10  Nick Hibma  <nick.hibma@jrc.it>
19886
19887         * changer-src/chg-chio.pl.in: move to first slot if last is unused
19888
19889 1998-08-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
19890
19891         * example/Makefile.am (EXTRA_DIST): add DIN-A4.ps
19892
19893 1998-08-07  Günter Felkel  <G.Felkel@edelmann.de>
19894
19895         * example/DIN-A4.ps: new file
19896
19897 1998-08-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
19898
19899         * tape-src/tapetype.c (initrandombytes): use random() instead of
19900         rand(), its low-order bits are more random
19901         (main): call srandom(seed) instead of srand(seed)
19902         (USE_RAND): if defined, reverts to using rand() and srand(seed)
19903
19904         * docs/FAQ: some notes about driving real tape changers
19905
19906 1998-08-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
19907
19908         * man/amreport.8.in (SYNOPSIS): replace `amtoc' with `amreport'
19909
19910 1998-08-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
19911
19912         * client-src/sendsize.c: revert 1998-08-01's change, it wouldn't
19913         even compile, as amfree() expands to a statement, not an expression, 
19914         so it cannot be used as the `increment' part of a for loop.
19915
19916         * server-src/planner.c (main): if runs_per_cycle is set to zero or
19917         negative, set it to 1, in order to avoid division by zero.
19918         * server-src/amadmin.c (balance): ditto
19919
19920 1998-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
19921
19922         * client-src/sendsize.c: replace free(line) with amfree(line),
19923         because line is not ensured to be non-NULL
19924         
19925         * docs/FAQ: amandad: error receiving message
19926         
19927         * docs/FAQ: difference between skip-full and strategy nofull
19928
19929 1998-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
19930
19931         * docs/FAQ: software or hardware compression?
19932
19933         * server-src/driver.c (adjust_diskspace): do not abort just because
19934         a holding disk file is missing
19935         (main): report warning if holding disk directory could not be
19936         created, and do not use it
19937         Reported by Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
19938
19939         * example/Makefile.am (EXTRA_DIST): add 8.5x11.ps to the
19940         distribution
19941         Reported by Jason L Tibbitts III <tibbs@hpc.uh.edu>
19942
19943         * server-src/conffile.c (get_holdingdisk): define chunksize 0 as
19944         INT_MAX/1024, and chunksize -1 as -INT_MAX/1024
19945         * server-src/driver.c (find_diskspace): accept negative chunksizes
19946         as the maximum size (in modulus) for using the holding disk
19947         * man/amanda.8.in (chunksize): document the usage of negative
19948         values, and improve the explanation of chunking
19949         * example/amanda.conf.in: ditto
19950
19951 1998-07-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
19952
19953         * docs/FAQ: disk offline
19954
19955 1998-07-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
19956
19957         * restore-src/amidxtaped.c (main): use tape_rewind() instead of
19958         running `mt'
19959
19960         * server-src/amcleanup.sh.in (reporter): update to call amreport.
19961         (amdump.<n>) update to use the same renaming technique introduced in
19962         June 30's change to amdump.
19963
19964 1998-07-25  Michael Graff  <explorer@vix.com>
19965
19966         * changer-src/Makefile.am (install-exec-hook): support $(DESTDIR)
19967         * client-src/Makefile.am (install-exec-hook): ditto
19968         * man/Makefile.am (install-data-hook): ditto
19969         * recover-src/Makefile.am (install-exec-hook): ditto
19970         * restore-src/Makefile.am (install-exec-hook): ditto
19971         * server-src/Makefile.am (install-exec-hook): ditto
19972
19973         * configure.in: link krb5 and com_err in for Kerberos support, if
19974         they exist
19975
19976 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19977
19978         * server-src/reporter.c (copy_template_file): add braces to 
19979         remove warning
19980         * tape-src/tapeio.h: declare is_zftape to remove warning in
19981         amlabel.c and taper.c
19982
19983 1998-07-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
19984
19985         * server-src/driver.c (any_delayed_disk): new variable, to ensure
19986         that we do not leave the main driver loop if there are delayed disks 
19987         but there are no active dumpers
19988         (main): instead of checking whether idle_reason is IDLE_START_WAIT,
19989         check whether there is any_delayed_disk for remaining in the loop
19990         (start_degraded_mode): set any_delayed_disk when needed
19991         Reported by Peter Walker <peter@talarian.com>
19992
19993 1998-07-23  John R. Jackson  <jrj@purdue.edu>
19994
19995         * server-src/reporter.c (main): handle LPRCMD being undefined.
19996
19997 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
19998
19999         * client-src/selfcheck.c (check_suid): new function to check if a
20000         program is SUID root.
20001         * client-src/selfcheck.c (check_overall): check that runtar and
20002         rundump are SUID root.
20003
20004 1998-07-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
20005
20006         * configure.in: version number set to 2.4.1
20007
20008         * recover-src/Makefile.am (LDADD): libamtape imports symbols from
20009         libamanda, so it must be listed first
20010
20011         * changer-src/Makefile.am (LDADD): remove duplication of libamserver
20012         and libamanda, as they no longer provide symbols for each other
20013         * server-src/Makefile.am (LDADD): ditto
20014         
20015 1998-07-21  Blair Zajac  <blair@gps.caltech.edu>
20016
20017         * server-src/amrmtape.sh.in: now use amanda.conf's tapelist variable
20018         * server-src/amcheckdb.sh.in:  now use amanda.conf's tapelist variable
20019         * server-src/amfreetapes.sh.in: now use amanda.conf's tapelist variable
20020         * server-src/amtoc.pl.in: now use amanda.conf's tapelist variable,
20021         make perl4 compatible
20022
20023 1998-07-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
20024
20025         * docs/FAQ (results missing): suggestions to work around the UDP
20026         packet size limit
20027
20028 1998-07-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
20029
20030         * docs/FAQ (amrecover): a config name may have to be specified
20031         Reported by digital messiah <dmessiah@silcon.com>
20032
20033 1998-07-15  Blair Zajac  <blair@gps.caltech.edu>
20034
20035         * server-src/reporter.c (main): declare optind
20036
20037 1998-07-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
20038
20039         * configure.in: created Amanda 2.4.1 branch
20040
20041         * example/amanda.conf.in: strategy noinc is not implemented yet
20042
20043 1998-07-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20044
20045         * NEWS: new runspercycle keyword
20046         * server-src/conffile.h: new runspercycle keyword
20047         * server-src/conffile.c: new runspercycle keyword
20048         * server-src/amadmin.c (balance): new runspercycle keyword
20049         * server-src/planner.c (main): new runspercycle keyword
20050         * man/amanda.8.in: document new runspercycle keyword
20051         * example/amanda.conf.in: example for new runspercycle keyword
20052
20053 1998-07-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
20054
20055         * docs/FAQ: What to do if DUMP program is not available.
20056         * client-src/selfcheck.c (check_overall): if a needed program is
20057         missing, print an error message.
20058         Reported by Klaus Hoffmann <handatalog@csi.com>
20059
20060         * */Makefile.am: checked library version numbers, no need for update
20061         
20062         * configure.in: version number set to 2.4.1b1
20063
20064 1998-07-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
20065
20066         * docs/FAQ: new entries: how to label tapes, (not) spanning large
20067         filesystems across tapes, how to enable index generation,
20068         overwriting selected tapes, cleaning up databases, selecting tape
20069         changer.
20070         
20071 1998-07-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
20072
20073         * man/Makefile.am (EXTRA_DIST): amreport.8 is built from .8.in
20074
20075         * configure.in (AC_OUTPUT): generate chg-chio.pl
20076         * changer-src/Makefile.am (EXTRA_DIST): removed chg-chio.c
20077         * changer-src/chg-chio.c: removed, as it was confusing make
20078         
20079 1998-07-10  Nick Hibma  <nick.hibma@jrc.it>, Alexandre Oliva <oliva@dcc.unicamp.br>
20080
20081         * changer-src/chg-chio.pl.in: new script, created to replace old
20082         chg-chio written in C
20083         * docs/TAPE.CHANGERS (chg-chio): document it
20084         * changer-src/Makefile.am (EXTRA_SCRIPTS): add chg-chio
20085         (EXTRA_DIST): still include chg-chio.c, just in case it is useful
20086         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): add chg-chio
20087         
20088 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
20089
20090         * server-src/reporter.c (main): if no arguments are given, preserve
20091         original behavior; require config name otherwise.  Perform better
20092         argument checking.
20093         * example/DLT.ps (DrawHost): discard additional argument introduced
20094         in Steven Freed's modification
20095         * example/EXB-8500.ps (DrawHost): ditto
20096         * example/HP-DAT.ps (DrawHost): ditto
20097
20098         * server-src/Makefile.am (amreport_SOURCES): build from reporter.c
20099         (driver_SOURCES) removed, no longer needed
20100         * man/Makefile.am (EXTRA_DIST): added amreport.8
20101
20102 1998-07-08  Steven Freed  <sfreed@gilasoft.com>
20103
20104         * server-src/reporter.c (usage): new function
20105         (main): accept command-line arguments for selecting config name,
20106         output file, log file name to read from, postscript file to write
20107         to.
20108         (output_summary): print tape labels list, tape section numbers and
20109         dump sizes.
20110         * server-src/amdump.sh.in: run amreport
20111         * server-src/amflush.c (main): ditto
20112         (run_dumps): ditto
20113         * configure.in (BUILD_SERVER_PROGS_SBIN): add amreport
20114         (BUILD_SERVER_PROGS_LIBEXEC): remove reporter
20115         * man/amreport.8.in: new file
20116         * man/Makefile.am (man_MANS): added amreport.8
20117         * example/8.5x11.ps: new file
20118
20119 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
20120
20121         * Makefile.am (ACLOCAL_M4): fix ||/&& precedence problem
20122
20123 1998-07-07  John R. Jackson  <jrj@purdue.edu>
20124
20125         * changer-src/scsi-chio.c: move #include's so this will compile on
20126         systems without <sys/mtio.h> (e.g. AIX).
20127
20128 1998-07-06  John R. Jackson  <jrj@purdue.edu>
20129
20130         * client-src/sendsize.c (handle_dumpline): allow the dump block
20131         count estimate to be negative.  Found by Lance A. Brown
20132         <brown9@niehs.nih.gov> on NeXT.
20133
20134         * common-src/Makefile.am, common-src/security.c: add TEST code to
20135         security.c so people can do "make security" and have a test program
20136         to track down why they are getting "access as XXX not allowed from
20137         YYY@ZZZ".
20138
20139         * common-src/security.c (bsd_security_ok): allow the remote user
20140         field in .amandahosts to be empty ala .rhosts.
20141
20142 1998-07-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20143
20144         * server-src/amcheck.c (start_server_check): report space use for
20145         holding disk if a negative value is given in the use parameter.
20146
20147         * server-src/driver.c (main): compute holding disk space if 
20148         a negative value is given in the use parameter..
20149
20150         * man/amanda.8.in (use) : document negative use paramater for 
20151         holding disk.
20152
20153         * example/amanda.conf.in (use): document negative use paramater for
20154         holding disk..
20155
20156 1998-07-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
20157
20158         * man/amanda.8.in (reserve): document it
20159         * example/amanda.conf.in (reserve, gigabytes): ditto
20160         (etimeout) negative number stands for total estimate time
20161
20162         * NEWS: documented major changes since amanda 2.3.0.4
20163
20164         * docs/INSTALL: refer to patch-system for editing services and
20165         inetd.conf
20166
20167         * docs/FAQ: added entries for common amdump and amcheck errors
20168
20169         * COPYRIGHT: updated to 1998, refer to Amanda Development Team
20170         * AUTHORS: who is the Amanda Development Team
20171
20172 1998-07-03  John R. Jackson  <jrj@purdue.edu>
20173
20174         * docs/SYSTEM.NOTES: add comment about using the variable device name
20175         on IRIX.  Otherwise, IRIX will write 4KByte physical blocks, which
20176         it appears to read OK, but not if you take the tape to some other
20177         system that does what you tell it.  Discovered by Steve E. Khoo
20178         (steve@gordian.com).
20179
20180 1998-07-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
20181
20182         * server-src/planner.c (setup_estimate): handle new disks with
20183         skip-full correctly.
20184
20185         * Makefile.am (aclocal.m4): must depend on libtool.m4, so as to
20186         force it to be newer on distributions.
20187
20188 1998-07-01  John R. Jackson  <jrj@purdue.edu>
20189
20190         * server-src/driverio.h: change reserved_space to unsigned long to
20191         match free_space() and avoid a compiler warning.
20192
20193 1998-06-30  John R. Jackson  <jrj@purdue.edu>
20194
20195         * man/amanda.8.in: fix amrecover synopsis and add a short description.
20196         Noted by Brendan M Coffey <bcoffey@connix.com>.
20197
20198         * example/amanda.conf.in: make tapecycle example fit dumpcycle value
20199         better.  Noted by Tom.Croll@radisys.com and suggested comments from
20200         Alexandre Oliva <oliva@dcc.unicamp.br>.
20201
20202 1998-06-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
20203
20204         * server-src/amdump.sh.in (maxdays): set up with tapecycle+2
20205         (days): loops from 1 to $maxdays, but stops if amdump.$days does not 
20206         exist, so that we only rename amdump log files that exist.  This
20207         prevents too long loops in case of an infinite tapecycle.
20208         Reported by Nick Hibma <nick.hibma@jrc.it>
20209
20210 1998-06-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
20211
20212         * common-src/security.c (bsd_security_ok): accept case mismatches
20213         when comparing hostnames and usernames from amandahosts, and assume
20214         localuser if username is missing.
20215         * docs/INSTALL: clarify BSD security and amandahosts, WRT to
20216         non-FQDNs.
20217         Reported by Chris Shenton <chris@absinthe.shenton.org>
20218
20219         * server-src/reporter.c (output_tapeinfo): degraded mode no longer
20220         implies incremental dumps only.
20221         Reported by Randy Dees <rrd@amherst.com>
20222
20223 1998-06-26  John R. Jackson  <jrj@purdue.edu>
20224
20225         * configure.in: fix BSD/OS Kerberos include file location.
20226
20227 1998-06-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
20228
20229         * config/ltmain.sh: install official patch to libtool 1.2a
20230
20231         * configure.in: do not set max file size for Solaris 2.6, it is no
20232         longer used.
20233
20234 1998-06-26  Tim McNerney  <mumbly@netcom.com>
20235
20236         * common-src/fileheader.c (parse_file_header): accept missing
20237         PROGRAM in tape section header, for backward compatibility.
20238
20239 1998-06-25  Blair Zajac  <blair@gps.caltech.edu>
20240
20241         * server-src/amflush.c: fix mismatch arguments to error()
20242
20243 1998-06-24  Steven Freed  <sfreed@gilasoft.com>
20244
20245         * configure.in (dump-honor-nodump): fix test for `-h' support
20246
20247 1998-06-24  Scott Mesches  <mesches@allison.Colorado.EDU>
20248
20249         * example/DLT.ps: new file
20250         * example/Makefile.am (EXTRA_DIST): add DLT.ps
20251
20252 1998-06-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
20253
20254         * Makefile.am (EXTRA_DIST): moved CHANGES into ChangeLog
20255
20256         * recover-src/extract_list.c (extract_files_child): handle
20257         IS_UNKNOWN dumptype as IS_DUMP
20258
20259         * client-src/sendsize.c (getsize_dump): always create pipe for
20260         killpgrp.
20261
20262         * client-src/amandad.c (sendnak): report `UNKNOWN' error if str is
20263         NULL.
20264
20265         * amplot/amplot.awk: ignore `interface-state'
20266         Reported by Peter Walker <peter.walker@talarian.com>
20267
20268 1998-06-24 Alexandre Oliva <oliva@dcc.unicamp.br>
20269
20270         * server-src/amrmtape.sh.in: enable verbose by default; implement -q 
20271         for quiet.
20272         * man/amrmtape.8.in: ditto
20273         Suggested by Nick Hibma  <nick.hibma@jrc.it>
20274         
20275 1998-06-24  Nick Hibma  <nick.hibma@jrc.it>
20276
20277         * server-src/amrmtape.sh.in: better error reporting for incorrect
20278         database entries
20279
20280 1998-06-24  Dan Swartzendruber <dswartz@druber.com>
20281         
20282         * server-src/conffile.h (RESERVE): new keyword.
20283         * server-src/conffile.c (RESERVE): ditto.
20284         (getconf_seen): recognize "reserve" keyword.
20285         (getconf_int): return value of "reserve" keyword.
20286         (read_confline): parse "reserve" line.
20287         * server-src/driverio.h (reserved_space): new global
20288         * server-src/driver.c (main): compute holding disk space to reserve
20289         for degraded dumps.
20290         (start_degraded_mode): if we haven't hit degraded mode reservation
20291         limit, allow full dump.
20292         
20293 1998-06-18  Blair Zajac <blair@gps.caltech.edu>
20294
20295         * config/ltconfig: update to 1.2a
20296         * config/ltmain.sh: update to 1.2a
20297         * config/libtool/libtool.m4: update to 1.2a
20298
20299 1998-06-17  John R. Jackson  <jrj@purdue.edu>
20300
20301         * server-src/dumper.c (write_tapeheader): comment out some variables
20302         to get rid of a compiler warning.
20303
20304 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20305
20306         * server-src/amadmin.c (bumpsize): write wrong equation for bump
20307         threshold.
20308
20309 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20310
20311         * man/amanda.8.in: add info about the chunksize parameter
20312         of the holdingdisk.
20313         * man/amanda.8.in: add info about amstatus command
20314
20315 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
20316
20317         * common-src/Makefile.am (libamanda_version): updated
20318         * tape-src/Makefile.am (libtape_version): updated
20319         * client-src/Makefile.am (libclient_version): updated
20320         * server-src/Makefile.am (libserver_version): updated
20321
20322         * server-src/taper.c (read_file): if switching to the next file
20323         fails or there's no next file, do not send a `W' to taper writer.
20324
20325         * server-src/changer.h (changer_clean): new function
20326         * server-src/changer.c (changer_clean): ditto
20327
20328 1998-06-13  Michael C. Povel  <mcp@ladyada.han.de>
20329
20330         * changer-src/chg-scsi.c: added ejetct_tape and sleep for external
20331         tape devices, and changed some code to allow multiple drives to use
20332         their own slots. Also added support for reserverd slots.
20333         * changer-src/libscsi.h (get_clean_state, eject_tape): new functions 
20334         * changer-src/scsi-chio.c (get_clean_state, eject_tape): implemented 
20335         using Linux ioctls
20336         * changer-src/scsi-hpux.c (get_clean_state, eject_tape): do nothing, 
20337         until someone implements them
20338         * changer-src/scsi-proto.c (get_clean_state, eject_tape): new
20339         functions
20340         * docs/TAPE.CHANGERS: document new configuration file format
20341         * example/chg-scsi.conf: sample configuration file
20342         * example/Makefile.am: add chg-scsi.conf to the distribution
20343         * server-src/amtape.c: add support for `clean' command
20344
20345 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
20346
20347         * docs/SYSTEM.NOTES: clean-up
20348
20349         * docs/FAQ: new file
20350         * docs/SUNOS4.BUG: removed
20351         * Makefile.am: remove docs/SUNOS4.BUG and add docs/FAQ
20352         
20353         * example/amanda.conf.in (bumpmult): fixed equation for threshold
20354         * man/amanda.8.in (bumpsize): fix threshold example.
20355         problem reported by Brian McEntire <brianm@fsg1.nws.noaa.gov>
20356
20357         * server-src/logfile.c (open_log): open log file with mode 0600.
20358
20359         * server-src/amdump.sh.in: refuse to run if either amdump or log
20360         exist in logdir.
20361         * server-src/amflush.c (main): refuse to run if log exists.
20362         * server-src/amcheck.c (start_server_check): do not perform tape
20363         testing if amdump and/or log exist in logdir.
20364
20365 1998-06-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20366
20367         * restore-src/amrestore.c (restore): fixed -p flag (and amrecover)
20368         should not dup2( A, B ); aclose(A) when A == B
20369
20370 1998-06-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
20371
20372         * client-src/sendsize.c (getsize_dump): use killpgrp
20373         unconditionally, so we're not bitten by setuid dump programs.
20374         * client-src/killpgrp.c: enable unconditionally.
20375
20376         * tape-src/tapetype.c: new program: calculates tapetype parameters.
20377         * tape-src/Makefile.am (EXTRA_PROGRAMS): added tapetype.
20378         * example/amanda.conf.in: point to tapetype program.
20379
20380 1998-06-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
20381
20382         * docs/SAMBA: added notes about (not) backing up registry files and
20383         ACLs with SAMBA.
20384         * docs/INSTALL: point to docs/SAMBA for usage and limitations
20385
20386 1998-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
20387
20388         * configure.in (amanda_cv_print_command): removed; using PRINT
20389         instead.
20390
20391 1998-06-07  Todd Kover <kovert@omniscient.com>
20392
20393         * add --with-owner option to allow installed binaries to be owned
20394         by someone other than the amanda user
20395
20396         * add GB as valid holding disk size.
20397
20398 1998-06-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20399
20400         * server-src/amadmin.c (info): don't need to specify an host.
20401
20402         * server-src/amadmin.c (due): new due command to write when a
20403         filesystem is due ffor next level 0 or how much days it is
20404         overdue.
20405
20406         * server-src/amstatus.pl.in (dump_size): new function to report
20407         the size of a dump split on multiple files.
20408
20409 1998-06-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
20410
20411         * recover-src/extract_list.c (read_buffer): write a message
20412         when amrecover timeout waiting for amrestore to send the dump.
20413
20414 1998-06-04  John R. Jackson  <jrj@purdue.edu>
20415
20416         * client-src/getfsent.c (main): use a dynamically allocated string
20417         for the lookups since dev2rdev alters it on the fly and some systems
20418         drop core for trying to write into read only memory.  Also add the
20419         capability of passing additional lookups on the command line.
20420
20421         * common-src/Makefile.am, common-src/file.c (main),
20422         common-src/token.c (main), server-src/conffile.c (dump_configuration,
20423         main), server-src/diskfile.c (main), server-src/infofile.c (main):
20424         Clean up compiler warnings in the test programs and make them all
20425         work again.
20426
20427 1998-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
20428
20429         * amplot/amplot.sh.in: modified command line argument parsing
20430         mechanism, so as to prevent shell quoting problems and unportable
20431         constructs.
20432         Reported by Chris Jones <cjones@clydesdale.math.montana.edu>
20433
20434 1998-06-02  John R. Jackson  <jrj@purdue.edu>
20435
20436         * server-src/amcheck.c (main), server-src/reporter.c (main): make
20437         sure internal errors, such as the mail command failing, get
20438         reported.  In the case of amcheck, they go to stderr even if -m is
20439         set since there didn't seem to be anyplace better to do so and if
20440         this is running from a cron job it might get back to a real user.
20441         For reporter, the errors go to .../amdump along with everything
20442         else from the amdump script, and they should also go to .../log,
20443         except since it's reporter that's having the trouble, they probably
20444         will not make it into the mail report.
20445
20446 1998-06-01  John R. Jackson  <jrj@purdue.edu>
20447
20448         * client-src/killpgrp.c: clean up minor compiler warnings by not
20449         building term_kill_{soft,hard} unless they are needed.
20450
20451         * server-src/driverio.c (dumper_cmd): clean up compiler warning
20452         in printf format by forcing argument to always be long and using %ld.
20453
20454         * server-src/driver.c: include <holding.h> to get declaration for
20455         unlink_holding_files and avoid a compiler warning.
20456
20457         * common-src/amanda.h, common-src/match.c (validate_glob, match_glob,
20458         glob_to_regex), recover-src/amrecover.h, recover-src/extract_list.c
20459         (add_glob, add_regex, add_file, delete_glob, delete_regex,
20460         delete_file), recover-src/help.c (help_list), recover-src/uparse.y,
20461         recover-src/uscan.l, man/amrecover.8.in: add shell wildcard support
20462         for the add/delete amrecover commands.  Add addx/deletex commands
20463         that use regular expressions.  Support more characters in path names.
20464
20465 1998-06-01  Dan Swartzendruber  <dswartz@druber.com> via John R. Jackson
20466
20467         * server-src/amlabel.c (main): check argc before referencing too
20468         far into argv for "-f".
20469
20470 1998-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
20471
20472         * docs/SYSTEM.NOTES: advise Linux users to use dump without
20473         setuid/setgid
20474
20475         * docs/INDEXING: update dumptype syntax
20476
20477 1998-05-29  John R. Jackson  <jrj@purdue.edu>
20478
20479         * server-src/amindexd.c (uncompress_file, process_ls_dump,
20480         build_disk_table, is_dir_valid_opaque, opaque_ls): fix file
20481         descriptor leak, log the amadmin find command, fix error reporting
20482         from routines that do not generate system errors.
20483         * common-src/amanda.h: make sure errno is saved through amfree().
20484
20485 1998-05-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
20486
20487         * docs/SYSTEM.NOTES: GNU tar must be patched on HP/UX.
20488         * patches/tar-1.12.patch: ditto.
20489
20490         * server-src/taper.c (endtape): do not log amount of used tape after 
20491         entering degraded mode.
20492
20493         * client-src/sendsize.c (getsize_dump): pass at least argv[0] to
20494         killpgrp.
20495
20496 1998-05-28  Paul R. Johnson  <prj@mit.edu>
20497
20498         * client-src/sendbackup.c (check_status): when checking whether
20499         return status 1 is valid for dump, make sure it was *not* tar that
20500         was running.
20501
20502 1998-05-28  Tom Lear <toml@accesscom.com>, John R. Jackson  <jrj@purdue.edu>
20503
20504         * man/amcheck.8.in: document new -Maddress command line flag.
20505         * server-src/amcheck.c (usage, main): add -Maddress command line
20506         flag to send mail to a specific address instead of mailto from
20507         amanda.conf.
20508
20509 1998-05-27  John R. Jackson  <jrj@purdue.edu>
20510
20511         * man/amrestore.8: update for host/disk/date triplets.
20512         * recover-src/extract_list.c (extract_files_setup): pass datestamp
20513         argument in new position and without -d.
20514         * restore-src/amidxtaped.c (main): remove -d checks.
20515         * restore-src/amrestore.c (restore, usage, main): fix file descriptor
20516         leak, move datestamp to host/disk triplet and allow all to be repeated.
20517
20518 1998-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
20519
20520         * client-src/killpgrp.c (main): wait for either SIGTERM or EOF on
20521         stdin.
20522
20523         * client-src/sendsize.c (getsize_dump): close the other end of
20524         killpgrp's stdin pipe before trying to kill it, because we just
20525         can't kill it.
20526
20527         * configure.in (HAVE_HPUX_SCSI): check whether sys/scsi.h actually
20528         supports HP/UX-like changer commands.
20529
20530         * config/acconfig.h (HAVE_HPUX_SCSI): indicates HP/UX-like changer
20531         interface is supported.
20532
20533         * changer-src/scsi-hpux.c: check for HAVE_HPUX_SCSI instead of
20534         HAVE_SYS_SCSI_H.
20535
20536 1998-05-25  Allen Briggs  <briggs@canolog.ninthwonder.com>
20537
20538         * changer-src/chg-manual.sh.in (ONLINEREGEX): add `^er=0$' for
20539         NetBSD's mt
20540
20541 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
20542
20543         * client-src/sendsize.c (getsize_dump): killpgrp must be direct
20544         child of sendsize, otherwise sendsize won't be able to kill it.
20545
20546 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
20547
20548         * configure.in (bcopy, bzero, fread, fwrite, vfprintf, vprintf,
20549         vsprintf): check for these in stdlib.h
20550         (memmove): check for it in strings.h
20551         
20552         * common-src/amanda.h (memmove): fix declaration of memmove, so as
20553         to be compatible with the ones in common-src/memmove.c and
20554         regex-src/fake/memmove.c
20555         
20556         reported by Tim Potter <tpot@acsys.anu.edu.au>
20557
20558 1998-05-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
20559
20560         * client-src/sendbackup.c (check_status): when checking whether dump 
20561         returned 1, make sure it was not tar; #ifdef'ed out the code that
20562         ignores exit status 2 from gnutar (will be compiled in only if
20563         IGNORE_TAR_ERRORS is defined)
20564         * client-src/sendbackup-gnutar.c (GNUTAR active filesystem errors): 
20565         updated comment; compile in GNUTAR error messages as DMP_NORMAL if
20566         IGNORE_TAR_ERRORS is defined; compile in SMBCLIENT error messages as 
20567         DMP_NORMAL if IGNORE_SMBCLIENT_ERRORS is defined.
20568         
20569 1998-05-20  Tom Lear  <toml@accesscom.com>
20570
20571         * client-src/sendbackup.h (tarpid): new variable, used to check
20572         whether it is gnutar that is running
20573         * client-src/sendbackup-gnutar.c (start_backup): set tarpid when
20574         starting gnutar
20575         * client-src/sendbackup.c (check_status): if gnutar returns 2,
20576         ignore the error
20577
20578 1998-05-19  Jean-Louis Martineau <martineau@IRO.UMontrealCA>
20579
20580         * client-src/amandad.c: set parse_errmsg when unexpected packet
20581         * recover-src/amrecover.c: overflow in clean_pathname()
20582         * recover-src/extract_list.c: add log in delete_file().
20583         small bug when call clean_pathname()
20584         * server-src/amindexd.c: ORLD command is not working
20585         * server-src/dumper.c: fixe overflow
20586
20587 1998-05-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
20588
20589         * configure.in: do not check for MAXFILESIZE
20590         * config/acconfig.h: do not define MAXFILESIZE
20591         * server-src/conffile.c: use INT_MAX instead of MAXFILESIZE
20592         * example/amanda.conf.in: ditto
20593
20594         * server-src/driver.c (interface_state): new function; print the
20595         free bandwidth for each interface.
20596         (short_dump_state): call interface_state before holdingdisk_state
20597
20598         * ChangeLog: renamed from CHANGES.  Original entries follow.
20599
20600         fix skip-incr handling so that reporter reports SKIPPED
20601         instead of missing result.
20602         -Jim Simmons <s4i@sws6.ctd.ornl.gov>
20603
20604         split big dumps ( > MAXFILESIZE ) in multiple files on holding disk. 
20605         new chunksize parameter in holdingdisk description of 
20606         the amanda.conf file.
20607         -J-L Martineau <martineau@IRO.UMontreal.CA>
20608
20609         an amstatus command that give the current state of a run.
20610         -J-L Martineau <martineau@IRO.UMontreal.CA>
20611
20612         possibility to amflush multiple runs on one tape.
20613         possibility to select dump by datestamp in amrestore (-d datestamp).
20614         -J-L Martineau <martineau@IRO.UMontreal.CA>
20615
20616         amidxtrm keep index of all active tapes as listed in tapelist file.
20617         -J-L Martineau <martineau@IRO.UMontreal.CA>
20618
20619         the tapelist file keep every active tapes.
20620         "amadmin reuse" and "amadmin no-reuse" to mark tapes you want
20621         to keep for a long time.
20622         -J-L Martineau <martineau@IRO.UMontreal.CA>
20623
20624         amlabel will not overwrite an amanda tape.
20625         The -f flag allow to overwriting an amanda tape.
20626         -J-L Martineau <martineau@IRO.UMontreal.CA>
20627
20628         be consistent and use 1048576 as a dump size everyplace instead of
20629         100000 in some places (mostly cosmetic).  -JJ
20630
20631         negative numbers are now accepted in the configuration file
20632         parser.  -oliva
20633
20634         allow a total estimate time-out to be specified.  -oliva
20635         Suggested by Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
20636
20637         fix amtoc behavior in case of failed reads.
20638         -Niek Rijnbout <niek@knoware.nl>
20639
20640         index files are now stored in a directory tree ala curinfo instead
20641         of a flat namespace. -JJ
20642
20643         amrecover will now restore files using SAMBA.
20644         -Rob Riggs <rob@devilsthumb.com>
20645
20646         VXDUMP needs not be run as root, so it no longer enables
20647         rundump automatically.  -oliva
20648
20649         new `killpgrp' setuid-root program.  It is used to kill
20650         VDUMP, VXDUMP and XFSDUMP or with-rundump DUMP estimates in a
20651         safe manner.
20652         -Joerg Behrens <jbehren@umpa06.gwdg.de> & oliva
20653
20654         fixed amrmtape so that it will delete from tapelist only the
20655         entry that corresponds to the specified tape, not others that
20656         contain the tape name as a substring.
20657         -Nick Hibma <nick.hibma@jrc.it> & oliva
20658
20659         Added support for FreeBSD dump -h flag (honor nodump).
20660         -James E. Housley <housley@pr-comm.com>
20661
20662         Added support for ZFTAPE on Linux.
20663         -Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
20664
20665         Added support for printing tape labels.
20666         -Scott Mesches <mesches@allison.Colorado.EDU>
20667
20668         Do not let amrecover die because of SIGPIPE if the pager terminates
20669         early during a long listing.  Use the PAGER environment variable if
20670         available, else "more".  -JJ
20671
20672         Change log() calls to log_add() so it does not conflict with the math
20673         function of the same name.  Replace pname global variable with two
20674         functions to set/get.  Get rid of libamnolog.  -JJ
20675
20676         chg-chio was renamed to chg-scsi, and now it will support not
20677         only chio.h, but also tape changer interfaces available on
20678         HPUX, Solaris 2.5, IRIX and possibly others.  Currently, only
20679         chio and HPUX are implemented.
20680         -Eric Schnoebelen <eric@cirr.com>
20681
20682         Numerous bugs/errors were fixed in chg-chio/chg-scsi.  it now
20683         properly responds to -eject requests, among other things.
20684         -Eric Schnoebelen <eric@cirr.com>
20685
20686 Version 2.4.0p1
20687
20688         updated to libtool 1.2a.  -oliva
20689
20690         fix kerberos encryption to work.  -Chris Ross <cross@uu.net>
20691
20692         add --with-owner option to optionally not have things owned by
20693         the amanda user.  (meant to be in 2.4.0) -kovert
20694
20695         only call initgroups() if it is available.  -oliva
20696
20697         check whether GNUTAR_LISTED_INCREMENTAL_DIR is a directory.
20698         -oliva, reported by J.A. Gutierrez <spd@gtc1.cps.unizar.es>
20699
20700         amindexd no longer considers prefixes of hostnames as valid
20701         hostnames. -oliva
20702
20703         fix strappend2 so that it accepts a NULL first argument.
20704         -Rob Riggs <rob@devilsthumb.com>
20705
20706         pass kerberos encryption switch to client.
20707         -Fredrik Jönsson <fjo@nada.kth.se>
20708
20709         rename afree to amfree, to work around IRIX 6.4's afree.
20710         -oliva, reported Stephan P. Martin <smartin@schlund.de>
20711
20712         implement `strategy skip' just like `ignore'.
20713         -oliva,
20714         reported by Michael O'Shaughnessy <mikeo@emg.sms.siemens.com>
20715
20716         amcheck now checks whether COMPRESS_PATH is executable, which
20717         would prevent server-compression and indexing from working.
20718         -oliva, reported by Peter Schultze <peter@mbi.ucla.edu>
20719
20720         fixed dump estimate regular expression for DU 4.0.
20721         -Andreas Schmitz <schmitz@theorie.physik.uni-wuppertal.de>
20722
20723 Version 2.4.0
20724
20725         fixed memory corruption error in amtape.
20726         -oliva
20727
20728         fixed VXDUMP support.
20729         -Andrew Ivanov <ivanov@mics.msu.su> & oliva
20730
20731         typos fixed in chg-chs.
20732         -David Barr <dbarr@simplex.com>
20733
20734         chg-mtx now prints error message if tapedev or changerdev must
20735         be defined.
20736         -Adrian T. Filipi-Martin <atf3r@cs.virginia.edu>
20737
20738         fixed amflush problem, reported by Dietmar Goldbeck
20739         <dietmar@telemedia.de>  -oliva
20740
20741 Version 2.4.0-980319
20742
20743         chg-mtx should use changer-dev if specified.
20744         -Steve Khoo <steve@gordian.com>
20745
20746         flex-related backward-compatibility problem fixed.
20747         -Norman K Scherer <nsche@seros-48.hac.com>
20748
20749         ported to RISCOS 4BSD.  -Harlan Stenn <Harlan.Stenn@pfcs.com>
20750
20751         when amrecover starts up, it will warn you $CWD is not the root
20752         of the selected filesystem.  -oliva
20753
20754         removed all uses of #elif, because some C compilers won't
20755         handle it correctly. -Gunther Felkel <G.Felkel@edelmann.de>
20756
20757         fixed VDUMP-only (no DUMP defined) estimates.
20758         -Joern Behrens <jbehren@umpa05.gwdg.de>
20759
20760         ported to UnixWare.  -Jeff Moscow <jeff@rtr.com>
20761
20762         improved vxdump support so that rundump will be used for vxfs
20763         filesystems only, and it will be enabled automatically.  -oliva
20764
20765         various portability problems fixed.
20766
20767         taper will now log reason for tape error to log.<DATE> file,
20768         in addition to amdump.<n>.
20769         -Liudvikas Bukys <bukys@cs.rochester.edu>
20770
20771         amflush now correctly updates the info database.  -oliva
20772         reported by Liudvikas Bukys <bukys@cs.rochester.edu>
20773
20774         sendsize now wait()s for tar and samba child processes.  -oliva
20775         reported by Brian Morris <brian@mvhs.fuhsd.org>
20776
20777         ensure that `amadmin find' reports multiple backups performed on
20778         the same day in the correct sequence.
20779         -Liudvikas Bukys <bukys@cs.rochester.edu>
20780
20781         if backup server has multiple IP addresses, security code
20782         might reject it.  -Gunnar Gunnarsson <gunnar@ki.ericsson.se>
20783
20784         vdump would not work.  -oliva
20785
20786         kerberos support was broken.  -mike
20787
20788 Version 2.4.0-980222
20789
20790         retry tape open on AIX if it fails with EAGAIN errno.
20791         -Francois Morris <Francois.Morris@lmcp.jussieu.fr>
20792
20793         fix amrmtape so that it behaves well when files to amflush
20794         remain.  Reported by Dietmar Goldbeck <dietmar@telemedia.de>
20795
20796         retry tape rewind on FreeBSD.  -Bob Willcox <bob@prm.com>
20797
20798         read all output from amrestore otherwise, instead of the
20799         beginning of the next tape section, it would read garbage.
20800         -Terje Malmedal <tm@odin.funcom.com> & oliva
20801
20802         formatting error in amoverview fixed.
20803         -Terje Malmedal <tm@odin.funcom.com>
20804
20805 Version 2.4.0b6p4
20806
20807         use vdump to dump advfs filesystems only.  add support for vdump
20808         indexes.
20809         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk> & oliva
20810
20811         change index generation commands so that they are less prone
20812         to be fooled by blanks or strange characters in filenames.
20813         -oliva
20814
20815         check whether exclude-list file exists before calling gnutar.
20816         If it does not, log a message to debugging file and discard it.
20817         selfcheck should check for that too, and print a warning message,
20818         but this is left for a future version.  -oliva
20819
20820         fix sendbackup-gnutar crashing problem.  -oliva
20821
20822         ensure that, in case of tape failure when dumping to tape, no
20823         incremental relative to the failed backup is performed.
20824         -oliva & Liudvikas Bukys <bukys@cs.rochester.edu>
20825
20826         Fix buffer use and write() error handling in the index pipeline.
20827         -Dietmar Goldbeck <dietmar@telemedia.de>
20828         & Lars Fenneberg <lf@elemental.net>
20829
20830         new index generation commands.  -oliva
20831
20832 Version 2.4.0b6p3
20833
20834         accept curses and ncurses in addition to termcap for readline
20835         support, just as readline itself does.  -oliva
20836
20837         fix NO-ROOM handling when Kerberos encryption is enabled.
20838         -oliva & Eric Siegerman <erics@now.com>
20839
20840         patch file for automake 1.2d provided. -oliva
20841
20842         sendbackup.debug now contains the argument list of child
20843         processes. -oliva
20844
20845         wait() for child processes, such as server compressor, before
20846         accepting other commands.
20847         -Liudvikas Bukys <bukys@cs.rochester.edu>
20848
20849         amrecover will print an error message if it is not run by root.
20850         It will not crash if you `pwd' before selecting a disk.  -oliva
20851
20852         updated to libtool 1.0i. -oliva
20853
20854         fixed tape block size of vxdump on HPUX 10.20.
20855         -Andrew Ivanov <ivanov@mics.msu.su>
20856
20857         Use "a" mode instead of "w" for the fdopen of the debug file.
20858         -David Lamkin <drl@net-tel.co.uk>
20859
20860         allow multiple concurrent gnutar backups, by fixing amandates
20861         locking mechanism.
20862         -Liudvikas Bukys <bukys@cs.rochester.edu>
20863
20864         amdump should check for a hold file, as says the man-page.
20865         -oliva
20866
20867         fix automatic enabling of USE_RUNDUMP for systems that require
20868         this.  xfsdump support no longer requires USE_RUNDUMP to be
20869         defined, rundump will be enabled and used for xfs filesystems
20870         even if USE_RUNDUMP is not defined, unless XFSDUMP is not defined.
20871         This seems to have completely solved the xfsdump problems.
20872         -oliva
20873
20874         when USE_RUNDUMP is enabled, instead of checking for read or write
20875         access in selfcheck, just test for the existence of disk devices.
20876         -oliva
20877
20878         fixed code that computed the dump size when incomplete
20879         writes occurred in dumper.  -Eric Siegerman <erics@now.com>
20880
20881         amplot no longer crashes if there's no holding disk. -oliva
20882
20883 Version 2.4.0b6p2
20884
20885         fix xfsdump index generation command.
20886         -Robert Tarrall <tarrall@bamboo.colorado.edu>
20887
20888         tape device wouldn't rewind if opened O_WRONLY.
20889         -Palle Girgensohn <girgen@partitur.se> & oliva
20890
20891         use setpgid instead of setpgrp if available
20892         -Mark Woodford <woodford@uniprise.com> & oliva
20893
20894         chg-mtx will check whether slot 6 is a cleaning tape or not.
20895         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
20896
20897         amrmtape updated to text database.  -oliva
20898
20899         incorrect NO-ROOM error when dumping directly to tape fixed.
20900         -oliva
20901
20902         --with-user and --with-group become are now required.  -oliva
20903
20904         patch-system script much more configurable.  -oliva
20905
20906         amindexd must get an exact match for diskname.
20907         -Richard Kail <e8903122@student.tuwien.ac.at> & oliva 
20908
20909         fix serial number message in amflush
20910         -Liudvikas Bukys <bukys@cs.rochester.edu>
20911
20912         removed backslashes from inside macro calls.
20913         un-indented # directives.
20914         -Gregory Neil Shapiro <gshapiro@WPI.EDU>
20915
20916         bsd-security is now enabled by default.  -oliva
20917
20918         fixed estimate command for XFSDUMP.
20919         -Mark Radleigh <radleigh@image.ucr.edu>
20920         & Jeff Moskow <jeff@rtr.com>
20921
20922 Version 2.4.0b6p1
20923
20924         documented etimeout configuration option.  -oliva&jrj
20925
20926         prevent a few crashes in dumper and reporter.  -jrj
20927
20928         reporter would report the same host and disk for RESULTS MISSING.
20929         -martineau
20930
20931         fix a few file-locking configure bugs.  -oliva
20932
20933         chg-multi updates and bugfixes.
20934         -Liudvikas Bukys <bukys@cs.rochester.edu>
20935
20936 Version 2.4.0b6
20937
20938         amindexd bugfix -Jos Alsters <Jos.Alsters@sci.kun.nl>
20939
20940         New --disable-libtool configure option, for those who really don't
20941         want libraries to be installed.  Shared libraries won't be
20942         built, of course.  -oliva
20943
20944         samba-related bugfixes.
20945         -Klaus Thiele <kth@becker-software.com>
20946
20947         xfsdump, DNS and amidxtaped bugfixes. -martineau
20948
20949         exclude-list support was broken, the filename was not copied
20950         to the gnutar argument list.
20951         -Stefan Bohm <Stefan.Bohm@rp-online.de>
20952
20953         chg-chio still thought it was seagate-changer, and contained a
20954         few bugs.  -Tim Tsai <tim@futuresouth.com>
20955
20956         New file docs/RESTORE, by Daniel Moore <dmoore@jeffco.k12.co.us>
20957
20958 Version 2.4.0b5
20959
20960         Make sure amverify waits for the tape device to be ready before it
20961         starts reading each section. -oliva
20962
20963         Fix amrecover so that it accepts filenames with blanks.
20964         -J. Shirk <jshirt@ksu.edu> & oliva
20965
20966         Add a TIMEOUT config file parameter to replace the hard coded value
20967         in planner.  -Daniel David Benson <bensond@ucdavis.edu>
20968
20969         Change amrecover/amindexd/amidxtaped to require a SECURITY
20970         exchange if --with-bsd-security is enabled.  It is done on a
20971         reserved port, which means amrecover must be run as root and that
20972         amindexd/amidxtaped need an entry for the incoming amrecover in
20973         either .rhosts or .amandahosts (Kerberos is not yet supported).  --JJ
20974
20975         Make our internal TEXTDB the default database style for the infofile.
20976         If you wish to keep using a dbm style database use the configure
20977         option "--with-db={db,dbm,gdbm,ndbm}".
20978         -scott
20979
20980         Sanitise the disk name in the TEXTDB code.
20981         **NOTE** if your infofile database uses TEXTDB (which has only been
20982                  available since Amanda-2.4.0b1) and you have '/'s in the
20983                  first field in disklist you will need to 'amadmin export'
20984                  the data using the old version of Amanda, 'mv' the old
20985                  database out of the way and 'amadmin import' it back again
20986                  using the new version.  When you are happy with the new
20987                  version you may delete the old database.
20988         -scott
20989
20990         Get rid of DEV_ROOT/DEV_RROOT and figure out the raw name on the
20991         fly by trying a leading 'r' before each path element one at a time
20992         until we find a character device.  This should handle all the current
20993         cases plus things like Solaris DiskSuite that have /dev/md/rdsk/xxx
20994         names.  -JJ
20995
20996         Change kill logic in sendsize to try TERM first, then KILL if that
20997         does not get dump's attention.  This fixes a problem on AIX 4.x
20998         where dump was always getting a KILL and leaving orphaned message
20999         queues, which would eventually run the system out of resources.  -JJ
21000
21001         Extensive buffer management, bug and defensive coding overhaul
21002         including:
21003             * Use proper fgets/fread/read buffer size.
21004             * Wrote agets and areads to get a line without buffer overflow
21005               and changed most gets/fgets and some read calls to use it.
21006             * Replaced all *scanf("...%s...") with explicit pointer work.
21007             * Replaced most fixed size buffers with dynamic ones.  This has
21008               no doubt introduced some memory leaks.
21009             * Replaced most sprintf calls with vstralloc (new routine).
21010             * Added overflow checks to some remaining explicit buffer
21011               management.
21012             * Made almost all read() and write() calls into loops to handle
21013               short and broken up transfers.
21014             * Fixed potentially uninitialized fstype field.
21015             * Added more sanity checks when parsing various things, including
21016               converting some assert() calls to real code.
21017             * The pattern amtrmidx used to find old index files to delete
21018               thought the date field was YYYY-MM-DD, but it is YYYYMMDD,
21019               so no files were being deleted.
21020             * Limited the number of directories listed by amflush to 26 to
21021               avoid funny characters in the user prompt.
21022             * Changed some of the amrecover routines to soak up the rest of
21023               the continuation lines after an error.
21024             * If a dumper dies, driver still tries to send a QUIT command
21025               which fails because the file descriptor has been closed.
21026             * Wrote afree macro that calls free and then sets the pointer
21027               to NULL.  Changed most free calls to afree.
21028             * Wrote aclose/afclose/apclose macros to do the associated close
21029               and then set the argument to something invalid (-1 or NULL).
21030             * Check the file descriptor before calling FD_ISSET in dumper.
21031               Otherwise it goes to -1 on EOF and FD_* doesn't like that.
21032             * Call aclose() after FD_CLR (so the descriptor is not -1).
21033         Odds and ends:
21034             * Added some TEXTDB support code to the infofile test program.
21035             * Set it up so -DPROTO_DEBUG could come from the compiler command
21036               line instead of having to modify the source.
21037             * Added -t command line flag code to sendbackup.c to support some
21038               limited debugging.
21039             * Added a test to amcheck to see if the log file is writable
21040               (if it already exists).  During debugging, I keep leaving one
21041               around owned by root :-).
21042             * Changed upper limit on close loops from 255 to FD_SETSIZE.
21043               This probably needs some more study.
21044         -JJ
21045
21046         If krb4 auth was compiled in but not enabled, clients would hang
21047         forever.  -Aidan Cully <aidan@panix.com>
21048
21049         Make sure SAMBA will not clear archive bits when performing an
21050         incremental backup, so any incremental will be a level 1.
21051         -martineau
21052
21053         Add a LOGDIR option to amanda.conf and use it to replace the
21054         --with-logdir option to configure (this was only used for the
21055         amdump files) and the logfile option in amanda.conf.  Log
21056         files are now LOGDIR/log and amdump files are LOGDIR/amdump.
21057         Note: if there is a LOGFILE option in amanda.conf it has its
21058         filename removed and is used as the LOGDIR (eg, if you have
21059         "logfile /usr/adm/amanda/log" in amanda.conf it is translated to
21060         "logdir /usr/adm/amanda" instead).  This should not cause a
21061         problem for most sites.
21062         -scott
21063
21064         Remove --with-dbdir option from configure.  This was only used
21065         to setup things for the man pages and example files.  Oh.. and
21066         amrmtape.  Fix this as well.
21067         -scott
21068
21069         Remove --with-indexdir option from configure.  This is obtained
21070         from amanda.conf at run time.  Also fix things so that it *is*
21071         obtained from amanda.conf in all cases.
21072         -scott
21073
21074         This is no longer tested on configure.in, since it is
21075         expressly forbidden to include kernel headers under glibc,
21076         according to Matthias Urlichs <smurf@noris.de>.  However, Eric
21077         Doutreleau <ed@cti.ecp.fr> said he needed to include this
21078         header file in order to build amanda on
21079         sparc-unknown-linux-gnu.  -oliva
21080
21081         It is now possible to specify a username to be used to backup
21082         up with samba.
21083         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
21084
21085         Make sure dumper replies with ABORT_FINISHED when a PORT-DUMP
21086         is aborted because of tape error.
21087         -Michael C. Povel <Michael.Povel@hub.de>
21088
21089         Amcheck checks only for the needed features.
21090         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
21091
21092         Performance and memory-usage improvements to amrecover.
21093         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
21094
21095         Use extended regular expressions.
21096         -Noel Hunt <noel@jpmorgan.com>
21097
21098         Fixed regular expressions for samba support.
21099         -Brian Fernald <fernald@nsi.edu>
21100
21101         Fixed a few bugs that caused arithmetic exceptions in planner.
21102         -Bob Willcox <bob@luke.pmr.com>, Evan Champion
21103         <evanc@synapse.net>, scott and oliva
21104
21105         amrecover should now be able to handle GNUtar restores.
21106         -Jean-Louis Martineau <martinea@iro.umontreal.ca>, plus
21107         incremental (-G) patch by Lars Fenneberg <lf@elemental.net>
21108
21109         Ported to SINIX (Reliant Unix V5.43).
21110         -Michael Schmitz <mschmitz@iname.com>
21111
21112         Configure now looks for large file support and will use it under
21113         Solaris 2.6 and above.
21114         -Blair Zajac <blair@gps.caltech.edu>
21115
21116         Compatibility problems fixed for:
21117                 SCO OpenServer 5.0.2: Paul Gampe <paulg@twics.com>
21118
21119 Version 2.4.0b4
21120
21121         New changerfile and changerdev configuration keywords, that
21122         allow changer scripts to be configured in the main amanda
21123         configuration file.  Each changer script has been adapted, so
21124         that it uses those flags whenever possible.  Also,
21125         documentation about built-in scripts has been added to
21126         docs/TAPE.CHANGERS.  -oliva & Eric Schnoebelen
21127         <eric@egsner.cirr.com>
21128
21129         --with-debugging now accepts a directory name, where debugging
21130         files should be stored.  -John R. Jackson <jrj@cc.purdue.edu>
21131
21132         Compatibility problems fixed for:
21133                 NextStep 3.3: Fabrice GAILLARD <gaillard@ina.fr>
21134                 SCO OpenServer V5: Christopher B. Olsen <colsen@compus.com>
21135                 AIX: Georg Rehfeld <georg@wmd.de>
21136
21137         Planner would core dump if it had to delay dumps.  -Georg
21138         Rehfeld <georg@wmd.de>
21139
21140         Added patch for samba to support very long filenames.  -Todd
21141         Pfaff <todd@edge.cis.mcmaster.ca>
21142
21143         Added VXDUMP support to estimate program.  -oliva & John
21144         R. Jackson <jrj@cc.purdue.edu>
21145
21146         Fixed amflush so that it cd's to the configuration directory
21147         before invoking reporter.  -oliva
21148
21149         driver no longer opens the infofile, so a deadlock is
21150         prevented.  -oliva & John R. Jackson <jrj@cc.purdue.edu>
21151
21152         Fixed typo in sendbackup-dump that would prevent compilation
21153         if either xfsdump or vxdump were enabled.  -oliva
21154
21155         Debugging messages produced by sendbackup are no longer
21156         included in the dump stream.  -oliva
21157
21158         amrestore should wait for the child process to die before
21159         re-opening the tape device.  -Dietmar Braun
21160         <dietmar@tin-lizzy.hig>
21161
21162 Version 2.4.0b3 
21163
21164         fixed race condition in debug file open operation.  -oliva and
21165         Thomas Schmeidl
21166
21167         exclude-list and exclude-file are correctly handled by
21168         sendsize.  -oliva and Johann Klasek <jk@auto.tuwien.ac.at>
21169
21170         fix some kerberos4 problems; no longer require low ports for
21171         kerberized connections; now use amanda@REALM instead of
21172         amanda.amanda@REALM in .klogin's.  -kovert
21173
21174         amrecover no longer depends on GNU flex library.  -oliva
21175
21176         Ensure that malloc(0) is not called.  -Wolfram Schmidt
21177         <Wolfram.Schmidt@iao.fhg.de>
21178
21179         Compression is now performed where specified, and server
21180         compress best specifications are obeyed. -oliva
21181
21182         genversion now correctly recognizes the selected locking scheme.
21183         -Thomas Schmeidl <schmeidl@nwp.kwu.siemens.de>
21184
21185 Version 2.4.0b2
21186
21187         Several bugfixes by John R. Jackson <jrj@cc.purdue.edu>
21188
21189         AIX's restore support added to amrecover.  -David B. Anderson
21190         <dbanders@mail.physics.utah.edu>
21191
21192         Dump process would not be killed unless it supported the -E
21193         flag (flipped #ifdef): fixed.  -Steve Bower <sbower@raytheon.com>
21194
21195         --with-testing now supports a trailing argument, that
21196         specifies the a string to be appended to service names.  -oliva
21197
21198         Recent versions of Samba require additional arguments so that
21199         estimates and total sizes are logged to stdout, not to syslog.
21200         -Ernie Oporto <ernie_oporto@MENTORG.COM> & Norbert Holzknecht
21201         <Holzknecht@fs31.vdeh-bfi.de>
21202
21203 Version 2.4.0b1
21204
21205         Improved planner backup-delaying mechanism.  -scott
21206
21207         Concurrent estimates are now supported.  -oliva
21208
21209         Shared library support included with GNU libtool.  -oliva
21210
21211         New hard-link-based locking mechanism for operating systems
21212         that do not support standard locking system calls.  -scott
21213
21214         New configuration file format, simpler and easier to
21215         extend.  -scott
21216
21217         New curinfo database format that uses only text files.  The
21218         old dbm format is used by default, though.  -scott
21219
21220         DGUX support. -Brian Harvey <bharvey@raven.phs.com>
21221
21222         Tentative HPUX vxdump support.  -oliva
21223
21224         Integrated amgetidx into dumper/sendbackup protocol.  This
21225         ***breaks backward compatibility***!  -oliva
21226
21227         Have sendbackup-dump and sendbackup-gnutar list the actual
21228         program that should be used to restore a file from a backup
21229         instead of just listing restore or gtar. -blair&oliva
21230
21231         Have configure check for the initgroups() declaration in
21232         unistd.h in addition to grp.h and sys/types.h, which is where
21233         some OSes have the declaration. -blair
21234
21235         SAMBA backups wouldn't succeed if GNUTAR listed incrementals
21236         were enabled.  SAMBA password file can now specify workgroup
21237         and may contain comments.  -oliva
21238
21239         Fixed xfsdump support. -oliva
21240
21241         Fixed srvcompress option. -oliva
21242
21243         Fixed exclude/exclude-list support. -oliva
21244
21245         Change umask to 066 before creating index file in /tmp. -oliva
21246
21247         Fixed autoconf for gdbm on linux. -oliva
21248
21249         configure now seeks out a few possible locations for
21250         kerberos4 includes and tries to find the correct path if
21251         the kerberos bits have been installed.  It's possible for
21252         someone to just specify the root of a kerberos tree for
21253         where the bits live, as well. -kovert
21254
21255 Version 2.3.0.4
21256
21257         Have bsd_security_ok() in amandad return 1 when BSD security is
21258         not turned on.  Patch from Michael C. Grant
21259         <mcgrant@rascals.Stanford.EDU>.
21260
21261         Add a configure option, --with-db, which lets the user specify
21262         the database library to use.  The available codes to look for
21263         are db,dbm,gdbm,ndbm.  The new configure code goes to a lot
21264         more length to find pairs of header files and libraries.  If a
21265         header file exists and the library does not, but dbm_open() is
21266         found by linking against -lc, then that header file is used.
21267         Patch from Blair Zajac <blair@gps.caltech.edu>.
21268
21269         Fixed bug at line 158 where selfcheck was testing that the
21270         result returned by open() was nonzero.  The correct thing to do
21271         is check for non-negative values returned by open().  Changed
21272         the "ERROR" in line 169 to "OK" to prevent selfcheck from
21273         flagging the non-existence of /etc/amandapass as an error.
21274         Using "OK" in this line flags this condition as an informative
21275         statement rather than an error - which is to say this will be
21276         reported along with other errors but it isn't enough in itself
21277         to generate an error report.  The reason that I think this is
21278         the right fix is because although every Amanda client is
21279         capable of backing up PCs using smbclient it isn't the case
21280         that we will back up PCs with every Amanda client.  This also
21281         implies that we don't want to have /etc/amandapass files on all
21282         these machines either.  If an Amanda client does have a samba
21283         "//host/share" entry in its disklist file then selfcheck will
21284         flag the non-existence of the /etc/amandapass file on line 105
21285         when it attempts to check that partition, so I believe that
21286         this is a safe fix.  Patch from Michael Brantley
21287         <Michael-Brantley@deshaw.com>.
21288
21289         Have all calls to gethostname() leave the result in character
21290         arrays of length 1025.  This will make sure that gethostname
21291         behaves correctly.  Patch from  blair Zajac
21292         <blair@gps.caltech.edu>.
21293
21294         Have amrecover.c include history.h or readline/history.h if
21295         configure finds it.  Patch from blair Zajac
21296         <blair@gps.caltech.edu>.
21297
21298         Have Amanda use cat if gzip and compress cannot be found.  In
21299         this case, do not #define COMPRESS_FAST_OPT, COMPRESS_BEST_OPT,
21300         or UNCOMPRESS_OPT as "" since cat will look look for a file by
21301         the name of "".  Place #ifdef's around code that uses any of
21302         the _OPT defines.  Patch from Blair Zajac
21303         <blair@gps.caltech.edu>.
21304
21305         Rewrite amgetidx to use amandad instead of rsh/rcp.  amgetidx
21306         now only gets the index files from a given day.  It now takes
21307         two optionally arguments <on day> or <ago days>.  <on day> lets
21308         the user specify the day in one of the forms YYYYMMDD MMDD DD
21309         YYYY-MM-DD --MM-DD ---DD.  <ago days> gets the files from days
21310         days ago.  Have configure look for an appropriate directory to
21311         use for the temporary files on the clients.  Use /var/tmp, then
21312         /usr/tmp, and if neither of those exist, then use /tmp.  Have
21313         selfcheck check if the index holding directory has enough space
21314         in it.  Add a new program called sendindex which sends the
21315         index files.  Add the file docs/INDEXING which describes the
21316         index code.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
21317
21318         Have configure set up mt to use either the -f or the -t option
21319         depending upon the operating system.  Patch from Blair Zajac
21320         <blair@gps.caltech.edu>.
21321
21322         Include the amanda_tapetypes.txt file as docs/TAPETYPES.  File
21323         composed by Chris Stacey <chris@snrc.uow.edu.au>.
21324
21325         Allow certain dumptypes to be kicked off at specific times.
21326         Add a new, optional, parameter to the dumptype description in
21327         the config file.  The parameter is called "starttime" and takes
21328         one argument which is a time of day (local timezone) formated
21329         as either hhmm or hmm (no `.'s, no `:'s, just an integer).
21330                 define dumptype comp-user-2am {
21331                         comment "Non-root partitions on fast machines"
21332                         options compress-fast
21333                         priority medium
21334                         starttime 0200
21335                 }
21336         Any partitions listed in disklist with this dumptype will be
21337         fired off no earlier than 2am.  If 2am today is less than 43200
21338         seconds past (12 hours ago) it will assume you meant 2am today
21339         and fire the dumps off right away.  But if 2am today is more
21340         than 12 hours in the past, it will wait till 2am tomorrow.
21341         Patch from Brad Huntting <huntting@misc.glarp.com>.
21342
21343         Totally rewrite the socket buffering code for dumper.
21344         Eliminate SO_SNDTIMEO and SO_RCVTIMEO setsockopt calls.  Remove
21345         the check for HAVE_SO_SNDTIMEO from configure.  Add a new
21346         option to configure named --enable-buffered-dump to enable this
21347         code.  Patch from Brad Huntting <huntting@misc.glarp.com>.
21348
21349         Have amflush call setsid() to detach amflush from the
21350         controlling terminal.  Patch from Ken Laprade
21351         <klaprade@harris.com>.
21352
21353         Have configure correctly work on systems where dbm_open is in
21354         libc.  Patch from Farzad Farid <farzy@sgip.fr>.
21355
21356         Patches to amrmtape which remove C style comments and let the
21357         script remove a tape if there is only one tape in the tapelist
21358         file.  Patch from Andrew A. Ivanov <IVANOV@mics.msu.su>.
21359
21360         Sprintf formatting error in amgetidx fixed.  Patch from Yossi
21361         Gottlieb <yogo@xpert.com>.
21362
21363         I'm using a Sony SDT/STL-7000 4mm DAT changer.  I could not
21364         find any method of directly controlling the device, except for
21365         simply using the 'offline' mt command for advancing to the next
21366         tape.  Using this method, however, I could not go beyond the
21367         last cassette (that is, to roll back to the first one).  This
21368         means the device is currently being used as a simple gravity
21369         changer, only able to change forward.  The chg-generic.conf
21370         should list the default tape device for all slots, disable
21371         'needeject', enable 'gravity' and enable the new option named
21372         'multieject'.  Patch from Yossi Gottlieb <yogo@xpert.com>.
21373
21374         Update the example chg-generic.conf file to include comments
21375         that describe how to use the multieject feature of the script.
21376         Patch from Yossi Gottlieb <yogo@xpert.com>.
21377
21378         Protocol seems to loop when a A_TIMEOUT occurs because
21379         p->reqtries was not being decremented.  Problem noted by Neal
21380         Becker <neal@ctd.comsat.com>.
21381
21382         About half the calls to gethostname() in Amanda fail to
21383         null-terminate properly.  This patch makes them all
21384         consistent.  In addition it updates sendbackup-dump and
21385         sendbackup-gnutar so they handle USE_FQDN is a way consistent
21386         with the amindex stuff.  In particular when USE_FQDN is set,
21387         the dump clients will not truncate their hostname before
21388         putting it in the dump headers.  My patches to amflush are
21389         already in the Amanda betas so amflush should be able to match
21390         up both FQDN and non-FQDN clients against FQDN and non-FQDN
21391         disklist files.  I also fixed an error message that was
21392         attributed to gethostname when it actually came from
21393         getpeername.  Patches from James Mathiesen
21394         <james@nyc.deshaw.com>.
21395
21396         I have run into the problem, on a Linux system, where the first
21397         time I run configure it generates valid Makefiles and Amanda
21398         compiles without problem.  If I run configure again, or I alter
21399         a Makefile.in or something which causes autoconf to be called,
21400         the resulting Makefiles are no good - the programs in
21401         server-src don't finish linking because there is no dbm
21402         library.  That is, the first time through configure -lgdbm is
21403         added to LIBS but the second, and any subsequent times, it is
21404         not.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
21405
21406         I've just found a bug that has prevented Amanda from running on
21407         my site for almost one week.  Just after a dumper replied that
21408         it timed-out, the driver would send it another dump request.
21409         Then the driver would log to amdump an event of receiving a
21410         message from the dumper, but that message would be empty, the
21411         holding file for the requested filesystem would not exist, and
21412         driver would quit.  It turned out that the problem was that
21413         dumper started to close its sockets (datafd, mesgfd and outfd)
21414         since release 2.3.0.4b3.  outfd is initialized before invoking
21415         startup_dump, but it is sendbackup_response, intended to be
21416         invoked by the amandad protocol driver, that opens sockets and
21417         initializes datafd and mesgfd.  If sendbackup_response is never
21418         run (because the amandad request times out), datafd and mesgfd
21419         will not be initialized, so they may contain already closed
21420         (and possibly already reopened) file descriptor numbers or
21421         still be uninitialized, containing any garbage, but usually 0
21422         --- but 0 is stdin, used for reading commands from the driver,
21423         it should not be closed!  I've solved the problem by
21424         initializing them to -1 in startup_dump.  Patch from Alexandre
21425         Oliva <oliva@dcc.unicamp.br>.
21426
21427         Include declarations for select(), bind(), connect(), fread(),
21428         fwrite(), getopt(), getpeername(), getsockname(), getsockopt(),
21429         initgroups(), listen(), lstat(), mktemp(), mktime(), puts(),
21430         recvfrom(), select(), sendto(), setpgrp(), setsockopt(),
21431         shmat(), shmctl(), shmdt(), shmget(), socketpair(), sscanf(),
21432         strftime(), strncasecmp(), system() if the system does not
21433         declare these in any header files.  Patch from Blair Zajac
21434         <blair@gps.caltech.edu>.
21435
21436         Have configure correctly substitute for DB_DIR and LOG_DIR in
21437         example/amanda.conf when --prefix was not used.  Problem noted
21438         by Philippe Charnier <charnier@xp11.frmug.org>.
21439
21440         Include seagate-changer.c from Larry D. Pyeatt
21441         <pyeatt@cs.colostate.edu>.  This program was written to control
21442         the Seagate/Conner/Archive autoloading DAT drive.  This drive
21443         normally has 4 tape capacity but can be expanded to 12 tapes
21444         with an optional tape cartridge.  This program may also work on
21445         other drives.  This program works for me under Linux with Gerd
21446         Knorr's <kraxel@cs.tu-berlin.de> SCSI media changer driver
21447         installed as a kernel module.  The kernel module is available
21448         at
21449         http://sunsite.unc.edu/pub/Linux/kernel/patches/scsi/scsi-changer*
21450         Since the Linux media changer is based on NetBSD, this program
21451         should also work for NetBSD, although I have not tried it.  It
21452         may be necessary to change the IOCTL calls to work on other
21453         OS's.
21454
21455         Add a new configure option, --with-group, which tells Amanda
21456         the group to install all files as.  Patch from Alexandre Oliva
21457         <oliva@dcc.unicamp.br>.
21458
21459         If --with-bsd-security was not set, then dumper would not find
21460         the amanda/udp port to use to connect to clients.  Patch from
21461         Alan McIvor <alan@auck.irl.cri.nz>.
21462
21463         The order of dump programs to search for (ufsdump, vdump, dump,
21464         backup) didn't work on AIX systems, where backup should be used
21465         but a program named dump exists on the system.  Patch by Blair
21466         Zajac <blair@gps.caltech.edu>.
21467
21468         The configure --with-mmap was not working properly since
21469         configure was using the wrong variable to see if the system had
21470         a working mmap().  Problem noted by Keith Mitchell
21471         <kmitch@weenix.guru.org>.
21472
21473 Version 2.3.0.4b3
21474
21475         Save the results of getchar() into int's instead of char's in
21476         amidxtaped.c.  Patch by Blair Zajac <blair@gps.caltech.edu>.
21477
21478         Fix sendbackup-gnutar so that it can be compiled with a K&R
21479         compiler.  Patch by Blair Zajac <blair@gps.caltech.edu>.
21480
21481         Since I installed Amanda 2.3.0.4b3, I noticed some annoying
21482         messages in amdump:
21483                 dumper: pid 8696 setsockopt(SO_SNDTIMEO): Invalid argument
21484         This is because Solaris 2.5 does declare SO_SNDTIMEO in
21485         sys/socket.h, but fails to setsockopt with the given
21486         arguments.  Unfortunately, it is not documented, so I could not
21487         find out the correct way to do this, so I just added a test in
21488         configure to check whether SO_SNDTIMEO works as expected or
21489         not.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
21490
21491         Include amplot-2.2.6 written by Olafur Gudmundsson
21492         <ogud@tis.com> into Amanda.  Have amplot be configured using
21493         configure instead of amplot.conf.  It will be installed if
21494         gnuplot and the version of awk configure finds can handle
21495         variable assignment from the command line.  I also changed some
21496         of the command line options so that the amdump files will not
21497         be compressed unless amplot is told to do so on the command
21498         line.  It also takes a new command line option, -t, which lets
21499         the user set the time of the right side of the plot.  Work done
21500         by Blair Zajac <blair@gps.caltech.edu>.
21501
21502         Made rth-changer check all system calls for valid returns.
21503         Patch by Blair Zajac <blair@gps.caltech.edu>.
21504
21505         amrestore.c and sendbackup-common.c would do an ifdef on
21506         HAVE_GZIP, which was no longer being defined if Amanda was
21507         using gzip.  Now, define HAVE_GZIP if gzip is being used.
21508         Patch by Blair Zajac <blair@gps.caltech.edu>.
21509
21510         Include a script, amoverview, that outputs an overview of all
21511         of the backups done on all of the disks.  Script written by
21512         Dave Disser <disser@sdd.hp.com>.
21513
21514         The prototype for amname_to_fstype() is missing in
21515         createindex-dump.c when xfsdump is available.  Patch from Ken
21516         Laprade <klaprade@harris.com>.
21517
21518         Apparently SGI provides a dummy libsun.a that does not really
21519         have anything in it.  I guess this tricks configure into adding
21520         it to the Makefile.  Have configure not check for libsun.a on
21521         SGI systems.  Patch from Ken Laprade <klaprade@harris.com>.
21522
21523         The global variable overwrite in amcheck.c apparently is seen
21524         as a potential conflict with the overwrite() curses function
21525         which is apparently in SGI's libtermcap.a.  Declaring the
21526         variable static eliminates the warning.  Patch from Ken Laprade
21527         <klaprade@harris.com>.
21528
21529         Add a new configure option, --with-fqdn, which allows Amanda to
21530         back up systems in different domains.  This requires that the
21531         disklist file have the fully qualified domain names (FQDNs)
21532         listed.  Patch from Joe Ammond <Joe.Ammond@ee.gatech.edu>.
21533
21534         Include rundump, a setuid program that runs dump as root.  This
21535         is used under OSF1 systems.  Patch from Alexandre Oliva
21536         <oliva@dcc.unicamp.br>.
21537
21538         Install setuid files executable only by the owner and group of
21539         the files.  This stops other users from running these programs,
21540         making security tighter.  Patch from Alexandre Oliva
21541         <oliva@dcc.unicamp.br>.
21542
21543         On FreeBSD 3.0, amanda.h needs to include <sys/types.h> before
21544         <dirent.h>.  Problem noted by Keith Mitchell
21545         <kmitch@weenix.guru.org>.
21546
21547         Amanda had a bug regarding the recent addition of support for
21548         excluding files in GNUTAR.  planner and sendsize did not
21549         understand each other about empty exclusion lists, so there
21550         were failures using gnutar, as dump does not support excludes.
21551         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
21552
21553         Fixed a problem in configure where DUMP was being set to
21554         /no/restore/available when no restore program could be found
21555         instead of setting RESTORE to this.  Patch from Alexandre Oliva
21556         <oliva@dcc.unicamp.br>.
21557
21558         Have no-changer and hp-changer check for the existence of the
21559         logging directory before trying to use it.  Patch by Blair
21560         Zajac <blair@gps.caltech.edu>.
21561
21562         Patches to have nicer looking Samba support code.  Patch from
21563         Michael Zucchi <cismpz@cis.unisa.edu.au>.
21564
21565         Got Amanda to compile fine on a m88k-motorola-sysv4 system.
21566         Patches from Blair Zajac <blair@gps.caltech.edu>.
21567
21568         In amandad.c, pk_t dupmsg was conflicting with dupmsg in
21569         /usr/include/sys/stream.h on an m88k-motorola-sysv4 system.
21570         Rename dupmsg to dup_msg.  To keep things consistent, rename
21571         inmsg to in_msg and outmsg to out_msg.  Patch by Blair Zajac
21572         <blair@gps.caltech.edu>.
21573
21574         Check for the dbm_open declaration in any header file that may
21575         contain it.  If it doesn't exist, then declare it and all of
21576         the other dbm_ functions.  Check if struct datum is declared in
21577         any header files and if it isn't then declare it.  Patch from
21578         Blair Zajac <blair@gps.caltech.edu>.
21579
21580         Have runtar make sure that it is being invoked by the
21581         CLIENT_LOGIN user, since it is a suid executable.  Patch from
21582         Alexandre Oliva <oliva@dcc.unicamp.br>.
21583
21584         Have selfcheck check for /etc/vdumpdates if vdump is being
21585         used.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
21586
21587         If we're on an Ultrix system, then define STATFS_ULTRIX.  Patch
21588         by Blair Zajac <blair@gps.caltech.edu>.
21589
21590         amadmin export produces a full version number (2.3.0.4b2, for
21591         instance), while amadmin import expects three integers
21592         separated by dots, so it fails to import an exported file by
21593         itself.  Patch by Alexandre Oliva <oliva@dcc.unicamp.br>.
21594
21595         Sendsize.c would loop forever if debugging was not turned on.
21596         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
21597
21598         Define STATFS_OSF1 if we are on a *-dec-osf-* system.  Change
21599         ifdef OSF1_HANG_BUG to ifdef OSF1_VDUMP, since I'd rather not
21600         have too many defines floating around.  Patch by Blair Zajac
21601         <blair@gps.caltech.edu>.
21602
21603         There was a bug in selfcheck.c when Blair installed the Samba
21604         support.  I deleted an extra space that was added after
21605         SAMBA_CLIENT when the command was being put together.  Fix by
21606         Michael Zucchi <cismpz@cis.unisa.edu.au>.
21607
21608         Add a needed ; to client-src/Makefile.am and
21609         server-src/Makefile.am.  Patch from Alexandre Oliva
21610         <oliva@dcc.unicamp.br>.
21611
21612         Have planner.c and amcheck.c always get the amanda port number
21613         even if BSD security is turned off.  Patch by Blair Zajac
21614         <blair@gps.caltech.edu>.
21615
21616         Change the way amgetidx caches host up/down information.  It
21617         used to stralloc() a string depending on if the host was up or
21618         down.  Now, create two static character arrays, one holding
21619         "down" and the other holding "up" and simply point the
21620         hostinfo->up pointer to one of the two arrays.  This should
21621         save a little memory.  Patch by Blair Zajac
21622         <blair@gps.caltech.edu>.
21623
21624         The Bourne shell in FreeBSD can't handle setting IFS to : and
21625         expanding $LOCPATH:$SYSPATH.  Create two new variables before
21626         their use called $LOCSYSPATH and $SYSLOCPATH.  Patch by Blair
21627         Zajac <blair@gps.caltech.edu>.
21628
21629         Have open_fstab for BSD systems return the value of setfsent.
21630         Patch by Blair Zajac <blair@gps.caltech.edu>.
21631
21632         Configure was searching for the dump program in the following
21633         order: ufsdump, vdump, backup, dump.  On HP-UX systems,
21634         configure would find backup, which is a valid program but does
21635         not do what dump does.  So switch the order of the programs to
21636         ufsdump, vdump, dump, backup.  Patch by Blair Zajac
21637         <blair@gps.caltech.edu>.
21638
21639         Fixed some dbprintf(()) bugs in amgetidx.c.  Patch by Blair
21640         Zajac <blair@gps.caltech.edu>.
21641
21642         Have amrecover.c always declare
21643             extern char *optarg;
21644             extern int optind;
21645         This makes amrecover.c compile on Ultrix systems.  Problem
21646         noted by Scott Gasch <scott@cray-ymp.acm.stuorg.vt.edu>.
21647
21648         Patch to configure to have it recognize gnutar version 1.11.2.
21649         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
21650
21651 Version 2.3.0.4b2
21652
21653         Have amcleanup, no-changer, and hp-changer find out where the
21654         logging directory, or amdump error file is from getconf instead
21655         of using @LOG_DIR@ or @DB_DIR@ from configure.  Problem noted
21656         by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
21657
21658         Remove VarDir=@DB_DIR@ from amrmtape.sh.in, since amrmtape
21659         figures out where the curinfo files are from the amanda.conf
21660         file.  Problem noted by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
21661
21662         Include rth-changer, a tape changer script for the Robotic Tape
21663         Handling system OEM'd by Andataco (RTH-406).  Script written by
21664         Erik Frederick <edf@tyrell.mc.duke.edu>.
21665
21666         Add a new configure option called --with-pid-debug-files which
21667         has Amanda append the process ID to the debugging files placed
21668         in /tmp.  The PID will not be appended unless this option is
21669         used.  Suggestion by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
21670
21671         Add a new #define UNCOMPRESS_OPT to pass to UNCOMPRESS_PATH to
21672         get compressed standard input decompressed and pass it to
21673         standard output.  The configure script only recognized gzip and
21674         compress right now, so it will set UNCOMPRESS_OPT to -dc and
21675         set UNCOMPRESS_PATH to the same value as COMPRESS_PATH.  Edit
21676         all of the files that make use of UNCOMPRESS_PATH to also make
21677         use of UNCOMPRESS_OPT now.  Patch by Blair Zajac
21678         <blair@gps.caltech.edu>.
21679
21680         The readline() substitute in amrecover.c when the real
21681         readline() code is not available did not return to the caller
21682         what the user typed in.  It now does so.  Patch from Blair
21683         Zajac <blair@gps.caltech.edu>.
21684
21685         Avoid -lnsl on Irix.  On IRIX 5.x and 6.x systems that have the
21686         svr4net module installed, there will be a /usr/lib/libnsl.so
21687         present on the system. The configure script looks for this and
21688         tosses into the library list if it's there.  It is not
21689         advisable to link against libnsl on IRIX unless you really need
21690         it for SVR4 networking (TLI/STREAMS). If you _do_ link against
21691         it, you should use include '-lc' _before_ '-lnsl'. The reason
21692         for this is that libnsl.so also contains the SysV TI-RPC code,
21693         which is RPC based on STREAMS/TLI rather than sockets. (Solaris
21694         2.x now uses this by default.) TI-RPC has some compatibility
21695         functions with the same names as older RPC functions, such as
21696         clnt_call(), clnt_create(), clnt_destroy(), and these conflict
21697         with the functions in libc.so. The main place this will hose
21698         you is NIS: NIS v2 expects the underlying RPC code to use
21699         sockets, not STREAMS, and it fails if the TI-RPC symbols in
21700         libnsl.so override the RPC symbols in libc.so.  Again, you
21701         don't need libnsl.so unless you're actually using STREAMS/TLI
21702         or TI-RPC, so in Amanda's case it's safe to just ignore it. If
21703         you _do_ need it, you must do 'cc -o foo foo.c -lc -lnsl' in
21704         order to make sure the linker resolves the RPC symbol
21705         references correctly. The primary symptom of this problem is
21706         that things like getpwent(), getgrent() and getnetgrent() stop
21707         working in an NIS environment.  To make a long story short: on
21708         IRIX, avoid using libnsl. Amanda doesn't need it anyway. So far
21709         I haven't encountered a problem with this, but you never know.
21710         Note from Bill Paul <wpaul@ctr.columbia.edu>.
21711
21712         Include patches to have Amanda do incrementals of gnutar based
21713         backups.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
21714
21715         Delete the GNUTAR_BROKEN_PIPE from configure and acconfig.h
21716         since no code was testing for it.  Patch by Blair Zajac
21717         <blair@gps.caltech.edu>.
21718
21719         Have configure check for the number of arguments that
21720         gettimeofday takes and have clock.c use the appropriate number
21721         of arguments.  Patch by Blair Zajac <blair@gps.caltech.edu>.
21722
21723         Have sendbackup-common.c include tapeio.h instead of defining
21724         BUFFER_SIZE.  Fix by Philip Guenther <guenther@gac.edu>.
21725
21726         Put in more support for AIX by defining AIX_BACKUP if the
21727         system is an AIX system.  Fix createindex-dump.c to pass the -B
21728         flag to restore to have it read from standard input.  Problem
21729         noted by Bill Paul <wpaul@ctr.columbia.edu>.  Patch by Blair
21730         Zajac <blair@gps.caltech.edu>.
21731
21732         Add a regexp for AIX 4's backup in sendbackup-dump.c and
21733         sendsize.c.  Patch from Bill Paul <wpaul@ctr.columbia.edu>.
21734
21735         Add a comment to tapeio.h about BUFFER_SIZE and what it is used
21736         for and how people should not change it.  Noted by Bill Paul
21737         <wpaul@ctr.columbia.edu>.
21738
21739         Added a --with-mmap option to force the use of mmap() instead
21740         of shared memory support.  Requested by wpaul@ctr.columbia.edu
21741         <Bill Paul>.  Patch by Blair Zajac <blair@gps.caltech.edu>.
21742
21743         On FreeBSD 2.x and 3.x, the SO_SNDTIMEOUT value is too large in
21744         dumper.c.  Looking at the kernel source, the maximum value for
21745         tv_sec is about 227.  The value used is READ_TIMEOUT/4, or
21746         (30*60)/4 == 450 seconds.  This causes setsockopt() to return
21747         EDOM (Numerical argument out of domain), and again everything
21748         grinds to a halt.  I changed the value from READ_TIMEOUT/4 to
21749         READ_TIMEOUT/8, which reduces the SO_SNDTIMEO value to 225.  I
21750         haven't extensively tested this yet, but based on eyeballing
21751         the kernel source it should work.  Patch from Bill Paul
21752         <wpaul@ctr.columbia.edu>.
21753
21754         In dumper.c:do_dump(), there is code to set the transmission
21755         timeout, receive buffer size and receive low water mark on the
21756         data socket using setsockopt().  For SO_RECVBUF, the receive
21757         buffer size (recbuf) is set to DATABUF_SIZE * 4, which is
21758         32*1024*4, or 131072.  On SunOS 4.1.x, this value is too
21759         large:  dumper generates a 'no buffer space available' error
21760         and everything grinds to a halt.  I took away the '*4', which
21761         reduces the size to 32767 bytes, which seems to work.  I'm
21762         surprised nobody else has noticed this since it breaks SunOS
21763         Amanda servers.  I can only surmise that people aren't using
21764         SunOS machines as servers these days. :)   Patch from Bill Paul
21765         <wpaul@ctr.columbia.edu>.
21766
21767         Have Amanda include either readline.h or readline/readline.h
21768         Fix suggested by Neal Becker <neal@ctd.comsat.com>.
21769
21770         Have --with-includes put the -I flags into $CPPFLAGS and
21771         $CFLAGS so that AC_CHECK_HEADERS will find other include
21772         files.  Problem noted by Neal Becker <neal@ctd.comsat.com>.
21773
21774         Fixed common-src/Makefile.am to put the extra libamanda.a
21775         sources into the EXTRA_libamanda_a_SOURCES variable instead of
21776         EXTRA_DIST.  Fix from Tom Tromey <tromey@drip.Colorado.EDU>.
21777
21778         When compiling amgetidx.c with some compilers, trigraph
21779         substitutions were being made when they should not have been.
21780         Protect the code from this.  Patch from Blair Zajac
21781         <blair@gps.caltech.edu>.
21782
21783         Test for flock support in the following order:
21784                 1) POSIX fcntl file locking
21785                 2) flock locking
21786                 3) lockf locking
21787         The common-src/flock.c file will only be used if the lockf type
21788         locking is needed on this system.  Patch from Blair Zajac
21789         <blair@gps.caltech.edu>.
21790
21791         Have Samba support compile in only if requested by the user.
21792         Patch from Blair Zajac <blair@gps.caltech.edu>.
21793
21794         Configure was not using $CFLAGS and $CPPFLAGS when trying to
21795         calculate the select argument type.  Patch from Blair Zajac
21796         <blair@gps.caltech.edu>.
21797
21798         Updated amanda.h to include alloca.h if the system has it and
21799         if it's ok to include.  Also protect more include files with
21800         #ifdefs found by configure.  Patch from Blair Zajac
21801         <blair@gps.caltech.edu>.
21802
21803         Linux does not use the raw device names to do backups.
21804         configure now checks to see if it can find a raw disk device
21805         file whose name is built from root's mount point.  If it can't,
21806         then set RDEV_PREFIX to use /dev/ instead of /dev/r.  Fix
21807         suggested by Brian <brian.s.mogged@uwrf.edu> and Ken Latta
21808         <latta@parc.xerox.com>.
21809
21810         Fixed const cast message from regex.c.  Problem noted by Ken
21811         Laprade <klaprade@harris.com>.  Patch from Blair Zajac
21812         <blair@gps.caltech.edu>.
21813
21814         Configure was not checking for the OSF1_VDUMP #ifdef used in
21815         Amanda.  It now will set OSF1_VDUMP if vdump is found on the
21816         system.  However, it does not check if the system is really a
21817         OSF system.  Patch from Blair Zajac <blair@gps.caltech.edu>.
21818
21819         Have configure check for asm/byteorder.h for
21820         sparc-unknown-linux-gnu.  Problem noted by Eric Doutreleau
21821         <ed@cti.ecp.fr>.
21822
21823         Remove the check for libintl.h from configure.  It was only
21824         being used for regex.c, which really didn't need it.  Patch
21825         from Blair Zajac <blair@gps.caltech.edu>.
21826
21827         Convert all code to K&R C by trying to compile Amanda using
21828         /usr/bin/cc on a SunOS 4.1.1 machine.  Have configure check if
21829         the compiler can handle the volatile keyword and if it can't,
21830         #define it to empty in the config.h file.  Patch from Blair
21831         Zajac <blair@gps.caltech.edu>.
21832
21833         Move the contents of versuff.h into version.h and remove
21834         versuff.h.  Add a new function called version() which returns
21835         the version string.  Use version() in some of the programs.
21836         Patch from Blair Zajac <blair@gps.caltech.edu>.
21837
21838         m88k-motorola-sysv4 systems define L_FAIL, which is used by
21839         logfile.h.  Undefine it in logfile.h.  Patch from Blair Zajac
21840         <blair@gps.caltech.edu>.
21841
21842         Include amindex-1.0 from Alan McIvor.  It includes these
21843         improvements over 0.3:
21844                 Amrecover now provides the ability to restore files
21845                 from the tapes, via the "extract" command.
21846
21847                 Support for gnutar based index generation (but not file
21848                 restoration yet).
21849
21850                 Numerous bug fixes.
21851
21852         Have amgetidx try to open a socket to the shell/tcp port on the
21853         remote machine and cache if it succeeds.  If it connection
21854         attempt succeeds, then attempt to get the index files over from
21855         the client.  Patch from Blair Zajac <blair@gps.caltech.edu>.
21856
21857         Update patch-system to include the amidxtape service at
21858         10083/tcp.  Patch from Blair Zajac <blair@gps.caltech.edu>.
21859
21860         Configure said that the server configuration was OK and then
21861         next said it wasn't.  Remove these checks.  Patch from Blair
21862         Zajac <blair@gps.caltech.edu>.
21863
21864         Fixed building Amanda for multiple architectures in
21865         subdirectories of Amanda.  Problem noted by Thomas Hepper
21866         <Thomas.Hepper@icem.de>.
21867
21868 Version 2.3.0.4b1
21869
21870         Fix a problem with `amadmin <conf> balance' dumping core.  If
21871         some disks are overdue, they are stored in the sequence array
21872         with a negative index.  This has the potential to cause memory
21873         corruption, and it makes the reported balance figures not add up
21874         to the same as the total.  Since overdue disks are really going
21875         to be candidated for today's backups, they are thrown in the
21876         bin for those.  Patch from Ken Laprade <klaprade@harris.com>.
21877
21878         Add Samba client support using smbclient to Amanda.  Samba must
21879         be patched with the file patches/samba-1.9.16p2.1.patch - this
21880         is a patch for 1.9.16p2 of Samba, and modifies the way the
21881         'dir' command works, and adds totals to both the dir command
21882         and the tar command, via stderr.  These are used by amanda to
21883         estimate and count backup sizes.  This should be installed on
21884         an amanda 'client' host, that will act as the 'samba server'
21885         host.  This will most likely be the same machine as the Amanda
21886         master server.  Patches from Michael Zucchi
21887         <zucchi@cis.unisa.edu.au>.
21888
21889         Amrmtape converted from Bash to Bourne shell.  Patch from Blair
21890         Zajac <blair@gps.caltech.edu>.
21891
21892         Fix the indexing code to use "arglist.h" instead of <stdarg.h>
21893         Patch from Blair Zajac <blair@gps.caltech.edu>.
21894
21895         Have amdump call amgetidx and amtrmidx.  Put amgetidx and
21896         amtrmidx into the libexec directory instead of the bin
21897         directory, since Amanda users will not use these by hand.
21898         Patch from Blair Zajac <blair@gps.caltech.edu>.
21899
21900         Modified diskfile.c to match hostname in the backup header
21901         against the fully qualified domain name in disklist file,
21902         because amflush fails in a multidomain backup environment, as
21903         backup headers have only the hostname.  Patch from Karl
21904         Lehenbauer <karl@neosoft.com>.
21905
21906         Have autoconf figure out if some functions are not declared and
21907         if they are not, then declare them.  Patch from Blair Zajac
21908         <blair@gps.caltech.edu>.
21909
21910         Add security fixes to amandad.c.  It now checks the forward and
21911         reverse DNS names for consistency.  Added a configure option
21912         --amandahosts to use Michael's code to use .amandahosts instead
21913         of .rhosts.  Patch from Michael Douglass <mikedoug@texas.net>.
21914
21915         Add amverify, a simple shell script to check Amanda tapes -
21916         gnutar driven backups only.  Patch from Thomas Hepper
21917         <Thomas.Hepper@icem.de>.
21918
21919         Add the version option to amadmin (eg amadmin <conf> version).
21920         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
21921
21922         Add the current option to amtape (eg amtape <conf> current).
21923         This let's you the label of the current tape only without using
21924         dd.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
21925
21926         Gnutar support for amindex added.  Patch from Thomas Hepper
21927         <Thomas.Hepper@icem.de>.
21928
21929         Calcsize supports exclude-list (gtar).  The source was
21930         extracted from gnutar itself to be 100% compatible.  Patch from
21931         Thomas Hepper <Thomas.Hepper@icem.de>.
21932
21933         Calcsize checks the file type and ignores special files and
21934         pipes.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
21935
21936         Calcsizes calculation for gnu tar archives had a bug (gtar file
21937         blocks always are a multiple of 2k).  Patch from Thomas Hepper
21938         <Thomas.Hepper@icem.de>.
21939
21940         `amandates.c': amdandad suffered by missing AMANDATES_FILE.
21941         Now it creates this file before missing it.  Patch from Thomas
21942         Hepper <Thomas.Hepper@icem.de>.
21943
21944         `createindex-gnutar.c' added.  Patch from Thomas Hepper
21945         <Thomas.Hepper@icem.de>.
21946
21947         alloca(), strdup.c and getcwd added for those system who don't
21948         have them.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
21949
21950         A dirty hack for BSD based systems without sigaction(), see
21951         amanda.h.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
21952  
21953         Add two scripts, hp-changer and no-changer. hp-changer is a
21954         tape changer script for a HP DAT changer. Every 10th tape a
21955         taper clean runs.  no-changer is a changer-like script for
21956         single tape streamer.  It makes Amanda see a tape changer unit
21957         with an infinite count of tapes (and requires an operator to
21958         change the tapes :-)). Every 10 tapes the operator is
21959         recommended to insert a cleaning tape.  Patch from Thomas
21960         Hepper <Thomas.Hepper@icem.de>.
21961
21962         The version suffix adding is done with a seperate function
21963         versionsuffix() also available as standalone program.  Patch
21964         from Thomas Hepper <Thomas.Hepper@icem.de>.
21965
21966         Several files got debug support. Patch from Thomas Hepper
21967         <Thomas.Hepper@icem.de>.
21968
21969         Added an idle type file-too-large to driver.c to avoid dumping
21970         files to the holding disk(s) which exceed the maximum file size
21971         (2 GB on the most 32-bit machines).  Patch from Thomas Hepper
21972         <Thomas.Hepper@icem.de>.
21973
21974         Some minor bug fixes, mostly regarding missing or wrong casts
21975         confusing c compilers (shmat()/shmdt(), select()).  Patch from
21976         Thomas Hepper <Thomas.Hepper@icem.de>.
21977
21978         Genversion gives some more information.  Patch from Thomas
21979         Hepper <Thomas.Hepper@icem.de>.
21980
21981         getfsent.c and statfs.c have been cleaned up. The have to be
21982         checked on non-Irix/Solaris/NextStep/HPUX/AIX/Linux-systems.
21983         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
21984
21985         Simple support if readline.a is missing.  NEVER TESTED!  Patch
21986         from Thomas Hepper <Thomas.Hepper@icem.de>.
21987
21988         Linux requires libdb.a and ndbm.h to handle database files. Not
21989         really what I expected.  Patch from Thomas Hepper
21990         <Thomas.Hepper@icem.de>.
21991  
21992         Here's a simple patch which fixes a problem that causes amflush
21993         to erroneously complain "ignoring cruft file" about good dump
21994         files on the holding disk, and fail to flush them to tape.
21995         This happens if your holding disk directory has a long name,
21996         and the dump file also has a long name (i.e. if you use
21997         filesystem mount points in disklist).  The problem occurs if
21998         the holding directory + filename exceeds 80 bytes.  The patch
21999         still leaves a length limitation, but at least it matches the
22000         size limit imposed by driver (and thus dumper & taper) of 128
22001         bytes.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
22002
22003         Use regex.h and regex.c from
22004         ftp://prep.ai.mit.edu/sh-utils-1.15.tar.gz instead of the regex
22005         checking code in the system.  This code includes re_comp and
22006         re_exec calls, so it will work on any system.  Patch by Blair
22007         Zajac <blair@gps.caltech.edu>.
22008
22009         Amadmin find reports the wrong tape file numbers after when a
22010         dump is amflush'ed to tape.  Patch by Ralf Fassel
22011         <ralf@atg.venture.de>.
22012
22013         Fix a bug where dumps of disks on the Amanda server are counted
22014         against the available network bandwidth.  Patch from Marion
22015         Hakanson <hakanson@cse.ogi.edu>.
22016
22017         Tell gnutar to not exit with a nonzero value if a read failed.
22018         This prevents backups from aborting if a file disappeared
22019         before gnutar could save it.  Patch from Hal Snyder
22020         <hal@vailsys.com>.
22021
22022         Fix dumper which can cause the entire amdump run to hang after
22023         dumper issues a "TRY-AGAIN" message to driver while dumping
22024         directly to tape.  Patch from Marion Hakanson's
22025         <hakanson@cse.ogi.edu>.
22026
22027         Added Marion Hakanson's <hakanson@cse.ogi.edu> patches to fix
22028         problems when amanda dumps directly to tape (i.e. when holding
22029         space is full, or you're backing up a huge filesystem, etc.).
22030         The bug occurs in the way taper determines it has succeeded
22031         when doing a PORT-WRITE operation (i.e. dumping directly to
22032         tape).  It used to assume that an EOF meant no more data --
22033         true if it's reading from a file, but when reading from a port
22034         (i.e. directly from a dump process), an EOF could signal
22035         abnormal exit as well as a normal one.  So, I extended the
22036         protocol between driver and taper when dumping directly to tape
22037         (see dump_to_tape() in driver.c) so the taper will wait for the
22038         driver to pass PORT-WRITE-SUCCESS or PORT-WRITE-FAILURE to the
22039         taper (since driver gets OK/not-OK from the dumper) before the
22040         taper records success or failure.  Note that this change
22041         affects only the PORT-WRITE case in taper.  FYI, the bug
22042         resulted in the curinfo database for a failed port-dump to have
22043         the tape-label & file-number fields updated with the location
22044         of the failed dump, even though the timestamp & dump statistics
22045         still have the values of the last successful dump (the latter
22046         fields are updated by dumper itself).
22047
22048         Patches from George Scott <George.Scott@cc.monash.edu.au> to
22049         fix the following problems in planner.c.
22050         1) Initialise total_size, total_lev0 and balanced_size.  They
22051         are updated in analyze_estimates() but never initialised.  Zero
22052         them before the first call.
22053         2) Remove oversize dumps.   If there is a dump whose estimated
22054         size is larger than the tape the planner would tend to throw
22055         away all the other dumps and then probably generate an
22056         unworkable plan anyway.  (The standard 2.2.6 planner probably
22057         tossed these dumps fairly quickly for other reasons, but my
22058         next fix made this one almost mandatory!)  The fix is to drop
22059         these enormous dumps right at the begining.  This shouldn't be
22060         triggered for anyone with a sane configuration.
22061         3) Promote hills.  There are two ways to create a balanced
22062         cycle.  The first is to fill in any holes and the second is to
22063         remove any hills.  The original planner is good at doing the
22064         first but doesn't even attempt the second.  A quick look at
22065         "amadmin balance" would show big hills quite clearly.  This fix
22066         effectively does an "amadmin balance" and promotes a dump from
22067         one of the "hills".  This type of promotion is quite
22068         restricted:
22069           - don't bother if we already plan to do any level 0 dumps
22070           - don't promote a dump if it was going to be the only level 0
22071             to be done on that run (ie, ignore hills that are only one
22072             dump high)
22073           - only promote one level 0 by this method
22074           - don't exceed tape_length
22075         The key to it is the first restriction.  Large sites (with
22076         large numbers of disks and a large balanced_size) will have at
22077         least one level 0 scheduled for each day in the dump cycle and
22078         will already have a balanced cycle.  This code will not
22079         activate for them.  Small sites will probably not have a level
22080         0 scheduled and will benefit.  The second restriction will stop
22081         Amanda from constantly promoting dumps when the schedule is as
22082         balanced as it will go.  The third restriction will stop Amanda
22083         over reacting.  Promoting one dump by this method would take
22084         total_lev0 larger that balanced_size.  If it wouldn't then the
22085         first stage promotion didn't work like it should.
22086         4) Initialise got_estimate for all cases.  This fix was from
22087         der Mouse <mouse@collatz.mcrcim.mcgill.edu>.  "got_estimate"
22088         wasn't being initialised for skipped disks.  Later in the code
22089         it was being used in all cases.  The fix is to move its
22090         initialisation up a few lines.
22091         5) Explicitly ignore off-line disks.  If a disk is off-line
22092         when the planner is run it gets -1 for all dump sizes.  These
22093         were ignored at a later stage.  This fix explicitly ignores
22094         them up front.
22095         6) Ignore down machines.  If a machine is down when the planner
22096         is run it guesses from historical data what the size of
22097         tonights dump is likely to be and schedules a dump anyway.  The
22098         dumper then usually discovers that the machine is still down
22099         and ends up with a half full tape.  Unfortunately the planner
22100         had to delay another dump because it thought that the tape was
22101         full.  The fix here is for the planner to discard unavailable
22102         machines totally rather than just ignore the fact that they are
22103         unavailable.
22104         7) Keep at least one total.  Amanda moves level 0 dumps back to
22105         incrementals to try and fit everything onto the tape.
22106         Unfortunately if all your incrementals are too big (or your
22107         tape too small) it can move all of your level 0 dumps.  This
22108         ends up being a kind of deadlock since, unless a level 0 gets
22109         done, the incrementals will not reduce in size and until the
22110         incrementals reduce in size there will not be enough room to
22111         fit in a level 0.  (This is not quite accurate since a level 4
22112         dump can get bumped to a level 5 which reduces its size.
22113         However, this deadlock has happened to me and for many days in
22114         a row.)  The fix is to pick on the highest priority level 0 and
22115         not let it be moved.  This change will not affect users with
22116         reasonably sized tapes since Amanda would not have moved all
22117         their disks to incrementals.
22118         8) Make usage of total_lev0 consistent.  "total_lev0" is a
22119         double and doesn't include tape_mark's.  Make it so.
22120
22121         Add a fflush(outf) to amcheck.c.  Patch from Mike Russell
22122         <Michael_Russell@Brown.EDU>.
22123
22124         Fix problems with amhpfixdevs.  Patch from Michael Schmitz
22125         <mschmitz@iname.com>.
22126
22127         Have DEC OSF1 use installbsd instead of install.  Patch from
22128         Rainer Landes <rlandes@fphws01.physik.uni-karlsruhe.de>.
22129
22130         Have amcontrol take the first command line argument as the
22131         configuration to use.  If there are no command line arguments,
22132         then use daily.  Patch from Thomas Schmeidl
22133         <schmeidl@nwp.kwu.siemens.de>.
22134
22135         Removed --atime-preserve from sendbackup-gnutar.c so that
22136         incremental backups of filesystems will work.  Patch from
22137         Alexandre Oliva <oliva@dcc.unicamp.br>.
22138
22139         Change all #if __STDC__ to #ifdef __STDC__ for those systems
22140         that define __STDC__ to 0, such as Solaris using cc -Xt, cc
22141         -Xa.  Patch from Blair Zajac <blair@gps.caltech.edu>.
22142
22143         Increase the socket buffer size, and set a low watter mark at
22144         32k.  This cut the number of syscalls done to process one 32k
22145         block from dozens down to 4 (select, read, lseek, write).
22146         Patch from Brad Huntting <huntting@glarp.com>.
22147
22148         Include amindex-0.3 from Alan McIvor <alan@salan.auck.irl.cri.nz>.
22149
22150         Add the "srvcompress" option to compress dumps on the tape host
22151         instead of on the client machines.  This may be useful when a
22152         fast tape host is backing up slow clients.  The patches add a
22153         dump-type option, analogous to "compress-fast" or
22154         "compress-best" - the way to use it is to create a new dumptype
22155         in your amanda.conf that includes "srvcompress" and use the new
22156         dumptype for those filesystems you wish to have compressed on
22157         the tape server. For example, in amanda.conf:
22158             define dumptype srvcomp-user {
22159             comment "Partitions on slow machines, compressed on tapehost"
22160             options srvcompress
22161             priority medium
22162         }
22163         Patches from Eric Volpe <epv@panix.com>.
22164
22165         Increase the planner timeout for one estimate from 30 seconds
22166         to 120 seconds.  Patch from Michael Schmitz
22167         <mschmitz@iname.com>.
22168
22169         The select(2) prototype on HPUX specifies 'int' as argument
22170         type of the filedescriptor arguments. All other systems I know
22171         of use 'fd_set'. This has been fixed by having configure check
22172         the argument type to select and adding casts to the select(2)
22173         calls.  Patch from Michael Schmitz  <mschmitz@iname.com>.
22174
22175         Improve the diagnostic output and increase the robustness of
22176         the system by adding better error checking on communication
22177         between taper & driver, and among the two taper processes.
22178         Patches from Marion Hakanson <hakanson@cse.ogi.edu>.
22179
22180         Convert all flock() calls to use POSIX-style locks via the
22181         fcntl(2) call.  This operation was prompted by the fact that
22182         the flock() emulation in the Amanda-provided common-src/flock.c
22183         was broken for read-only file descriptors, and the fcntl(2)
22184         locks are widely available.  This patch makes it possible to
22185         have a read-only lock on the /etc/amandates file on systems
22186         which want to use it.  I've built and tested the patched code
22187         on Amanda servers running on Digital Unix v3.2B (on Alpha
22188         hardware) and on SPARC Solaris-2.5.1.  It's also been compiled
22189         here on SPARC's running SunOS-4.1.3u1b, HP-UX 9.0[345], and
22190         NeXTstep-3.3 (NeXT hardware).  Note that the patches also
22191         remove all trace of the NEED_FLOCK define, and I have removed
22192         the file common-src/flock.c from our source tree here.  Patch
22193         from Marion Hakanson <hakanson@cse.ogi.edu>.
22194
22195         For disk/filesystem names which are wider than 14 characters,
22196         have reporter print out the rightmost characters of the disk
22197         name, which is usually more meaningful in a daily backup
22198         summary.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
22199
22200         Lets amflush work in a wider variety of cases than was
22201         previously true (it used to work if the disklist contains only
22202         the first token of each hostname).  sendbackup-dump.c and
22203         sendbackup-gnutar.c now do not trim the domain name from the
22204         host name that is sent back to the server.  amflush now looks
22205         for an exact match, in the database.  If it can't find one it
22206         strips the last token off the dump header hostname and keeps
22207         trying until it finds a match in the disklist or runs out of
22208         tokens.  This also has the advantage that if gethostname()
22209         returns FQDNs and you specify the same FQDNs in the disklist,
22210         then amflush will always work.  It will also work as long as
22211         the disklist and gethostname() on the clients return enough
22212         information to be unambiguous.  Patch from James Mathiesen
22213         <james@deshaw.com>.
22214
22215         Increase the READ_TIMEOUT in dumper.c to 30 minutes.  This
22216         needs to be longer than the longest amount of time dump will
22217         not produce output.  People have observed dumps taking more
22218         than 10 minutes to finish mapping some of the passes
22219         sometimes.  Patch from James Mathiesen <james@deshaw.com>.
22220         
22221         Added Adrian T. Filipi-Martin's <atf3r@cs.virginia.edu>
22222         amrmtape script, which allows you to invalidate the contents of
22223         an existing backup tape within the Amanda current tape
22224         database.  This is meant as a recovery mecanism for when a good
22225         backup is damaged either by faulty hardware or user error,
22226         i.e.  the tape is eaten by the tape drive, or the tape has been
22227         overwritten.  Blair Zajac wrote a quick little manual page for
22228         this script.
22229
22230         amrmtape was using the return value from amadmin and amadmin
22231         was exiting with a non-zero value, causing amrmtape to quit.
22232         Added a return 0 statement to amadmin.c.  Patch from Blair
22233         Zajac <blair@gps.caltech.edu>.
22234
22235         Went through all of the files and changed void main()'s to int
22236         main()'s.  Patch from Blair Zajac <blair@gps.caltech.edu>.
22237
22238         Removed the 50 tape file limit in amcleanup and amdump.
22239
22240         createindex-dump and sendbackup-dump did not always take into
22241         account the version suffix.  This is now handled.  Patch from
22242         Philippe Charnier <charnier@lirmm.fr>
22243
22244         Compile and install amrecover and amrestore as client programs,
22245         not a server program.  The motovation for this is that
22246         amrecover is truly a program for all of the users on the
22247         system, while the remaining amanda programs could be used by
22248         only the system administrator.  Patch from Alexandre Oliva
22249         <oliva@dcc.unicamp.br>.
22250
22251         The program amtrmidx fails to close some of the pipes it uses,
22252         and this can lead to failure on systems with large numbers of
22253         disks with incomplete database sets, and file descriptor
22254         ulimits set.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
22255
22256 Version 2.3.0.3
22257
22258         Expanded the width of the DISK column from the reporter
22259         output.  I like to use mount points like /export/home?? instead
22260         of device names to back up.  Since the width of the disk name
22261         field from reporter's output is pretty small, I couldn't easily
22262         figure out the statistics for a particular partition.  Patch
22263         from Blair Zajac <blair@gps.caltech.edu>.
22264
22265         Included Eric Doutreleau <ed@cti.ecp.fr> patch's for amadmin to
22266         handle multiple tapes better.  The patch that he posted on used
22267         a hardwired value of 6 for runtapes, which I changed.
22268
22269         Included Marion Hakanson's <hakanson@cse.ogi.edu> patches to
22270         amadmin.c and amadmin.8 to let amadmin use the same disk
22271         regular expression matching as amrestore.  So now "^/$" will
22272         match only the root partition, not all of the disks.
22273
22274         Added a patch from George.Scott@cc.monash.edu.au which makes
22275         new disks and forces dump with a higher priority.
22276
22277         Changed tools/munge to delete blank lines and the commented
22278         lines that the C preprocessor generates (i.e. # 123).  We also
22279         remove the space after the = sign that can be generated by cpp
22280         on some systems.
22281
22282         Installed amindex-0.2 from Alan McIvor <alan@auck.irl.cri.nz>
22283         with the following patches:
22284
22285                 Fix problem so that rsh'ing on a hpux host works.
22286                 Patch from Neal Becker <neal@ctd.comsat.com>.  This
22287                 patch includes a new #define for RSH_COMMAND, which is
22288                 set to rsh in config-common.h and defined as remsh in
22289                 config.h-hpux.
22290
22291                 Fix bugs in createindex-dump.c when comparing errno to
22292                 EINTR.  The code was using = instead of ==.  Patch from
22293                 Neal Becker <neal@ctd.comsat.com>.  I'm guessing this
22294                 might fix some of the runaway createindex-dump
22295                 processes that I have seen on my system.
22296
22297                 On my system, we use MAE which likes to generate path
22298                 names with spaces in them.  I patched
22299                 createindex-dump.c so that filenames with spaces have
22300                 the whole filename listed.  Patch from Blair Zajac
22301                 <blair@gps.caltech.edu>.
22302
22303                 Patch amtrmidx.c so that backups using the mount points
22304                 for disks instead of the device name have the /'s
22305                 replaced with _'s.  Patch from Blair Zajac
22306                 <blair@gps.caltech.edu>.
22307
22308 Version 2.3.0.2
22309
22310         Changed the signals being sent to xfsdump for Irix so that it
22311         will be killed without dumping a core.
22312
22313         Fixed a typo in the definition of XFSDUMP in config.h-irix.
22314
22315         Removed the extra option.s-* and copied options.h to
22316         options.h-vanilla.
22317
22318         Moved the amrestore manual page into the man directory so it
22319         would get installed.
22320
22321 Version 2.3.0.1
22322
22323         amindex-0.1 written by Alan McIvor <alan@kauri.auck.irl.cri.nz>
22324         installed.  amindex generates an index of all of the files that
22325         were dumped.  It is nice to see what files were dumped before
22326         you restore a whole bunch of tapes looking for a file.  I
22327         patched some of this code.  Here are some of the changes:
22328
22329                 Switched the Imakefile to Makefile and Makefile.in to
22330                 be more consistent with the system used by the rest of
22331                 amanda.
22332
22333                 Moved the configuration #defines out of the specific
22334                 files (such as amrecover.c) into options.h, so that
22335                 people installing this version of amanda would be able
22336                 to see the required changes more easily and not have to
22337                 edit multiple files.
22338
22339                 Made some changes to the codes to remove #include's
22340                 where amanda.h would include them and also check if the
22341                 system had the particular include file.
22342
22343                 Added code to set_commands.c and amgetidx.c to change
22344                 /'s in disk names to _'s.
22345
22346                 Added code to amrecover.c to properly compile on
22347                 Solaris hosts.
22348
22349                 With the -Xc compiler option on Solaris and with
22350                 amindex, the sigaction structure was not being
22351                 declared.  Added -D__EXTENSIONS__ to config.h-sunos5 so
22352                 that sigaction would be declared.
22353
22354                 I changed a bunch of fprintf to perrors.
22355
22356         Include Sean Kelly's <kelly@fsl.noaa.gov> patch for tools/munge
22357         for FreeBSD-2.1.5.
22358
22359         Used Peter Lackner's <plo@came.sbg.ac.at> patches for DU 4.0.
22360
22361         Installed Ken Laprade's <klaprade@harris.com> patches for
22362         amanda to handle both EFS and XFs file systems on the same
22363         client.  The only change from his patch is to #ifdef XFSDUMP
22364         the kill(-dumppid, SIGTERM) so the SIGTERM signal will be used
22365         on other systems, while SIGQUIT will be used on Irix systems.
22366
22367         Installed Marion Hakanson's <hakanson@cse.ogi.edu> patches for
22368         the main config file to include subsidiary config files.
22369
22370         On Solaris, sometimes the hdr->handle variable in amandad.c
22371         would be null, causing core dumps when it was used in a sprintf
22372         statement.  The code now checks if hdr->handle is null and
22373         prints a "" if it is null.  This was only done in amandad.c.
22374
22375         Fix a problem where new disks would be added but not backed up
22376         concurrently.  Changes to diskfile.c.  I forgot who put this
22377         patch up on the mailing list.
22378
22379         I made some changes to options.h to allow the user to more
22380         easily install the programs under a different user.  This meant
22381         defining two new #defines, MK_AMANDA_USER and
22382         MK_QUOTED_AMANDA_USER which are used in the appropriate
22383         Makefiles.
22384
22385         Used Marion Hakanson's <hakanson@cse.ogi.edu> patch for taper.c
22386         for multiple tapes.
22387
22388         Included Joachim Loehr's <Joachim.Loeh@stadt-mh.de>
22389         script to automatically figure out which kind of HP-UX file
22390         system is being dumped.  Look in tools for the script and a
22391         README.
22392
22393 Local Variables:
22394 mode: change-log
22395 left-margin: 8
22396 fill-column: 76
22397 End: