Imported Upstream version 2.5.2p1
[debian/amanda] / ChangeLog
1 2007-06-06  Jean-Louis Martineau <martineau@zmanda.com>
2         * Amanda 2.5.2p1 released.
3
4 2007-06-06  Jean-Louis Martineau <martineau@zmanda.com>
5         * restore-src/restore.c: accept all header with size >= DISK_BLOCK_BYTES
6
7 2007-06-06  Jean-Louis Martineau <martineau@zmanda.com>
8         * NEWS: Change in 2.5.2p1.
9         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2p1).
10
11 2007-06-06  Jean-Louis Martineau <martineau@zmanda.com>
12         * configure.in: Fix check backup is not from gnutar.
13
14 2007-06-04  Jean-Louis Martineau <martineau@zmanda.com>
15         Original patch by franz Fischer
16         * tape-src/tapetype.c: close and open after a rewind.
17
18 2007-06-04  Jean-Louis Martineau <martineau@zmanda.com>
19         * common-src/krb5-security.c, common-src/bsdtcp-security.c,
20           common-src/security-util.c: Check return code of getnameinfo.
21
22 2007-06-04  Jean-Louis Martineau <martineau@zmanda.com>
23         * server-src/amstatus.pl.in: Perl argument are '-Tw'.
24
25 2007-06-04  Dustin J. Mitchell <dustin@zmanda.com>
26         * server-src/holding.c: Forgotten ==0 in strcmp().
27
28 2007-05-31  Jean-Louis Martineau <martineau@zmanda.com>
29         * configure.in: Check backup is not from gnutar.
30
31 2007-05-31  Jean-Louis Martineau <martineau@zmanda.com>
32         * recover-src/set_commands.c (cd_dir): Validate regex.
33
34 2007-05-30  Jean-Louis Martineau <martineau@zmanda.com>
35         * common-src/krb5-security.c: Use keytab_name.
36         * server-src/holding.c: Remove unused date_matches variable.
37
38 2007-05-30  Jean-Louis Martineau <martineau@zmanda.com>
39         * server-src/amstatus.pl.in: Set and use chunk_time.
40
41 2007-05-30  Jean-Louis Martineau <martineau@zmanda.com>
42         * common-src/util.c: Don't use -w flags for od execution.
43
44 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
45         * server-src/planner.c: Don't report overwrite if no label.
46
47 2007-05-29  Jean-Louis Martineau <martineau@zmanda.com>
48         * changer-src/chg-manual.sh.in: Don't reset the slot to 0 on eject.
49
50 2007-05-25  Jean-Louis Martineau <martineau@zmanda.com>
51         * server-src/amstatus.pl.in: Put all flags in one arguments.
52
53 2007-05-23  Jean-Louis Martineau <martineau@zmanda.com>
54         * common-src/util.c: Fix missing NULL in vstralloc call.
55
56 2007-05-23  Jean-Louis Martineau <martineau@zmanda.com>
57         * server-src/amstatus.pl.in: Use compressed size.
58
59 2007-05-23  Jean-Louis Martineau <martineau@zmanda.com>
60         * server-src/driver.c: Check dumper->down.
61         * server-src/dumper.c (sendbackup_response): Only call
62           security_close_connection if pkt != NULL.
63
64 2007-05-23  Jean-Louis Martineau <martineau@zmanda.com>
65         * server-src/find.c: Send ouput to stderr.
66
67 2007-05-17  Jean-Louis Martineau <martineau@zmanda.com>
68         * amplot/amplot.sh.in: Remove function keyword.
69         * changer-src/chg-lib.sh.in: Remove function keyword.
70         * changer-src/chg-multi.sh.in: Remove function keyword.
71         * changer-src/chg-zd-mtx.sh.in: Remove function keyword.
72
73 2007-05-16  Jean-Louis Martineau <martineau@zmanda.com>
74         * server-src/dumper.c (read_datafd): Reset timeout after the write.
75
76 2007-05-15  Jean-Louis Martineau <martineau@zmanda.com>
77         * client-src/sendsize.c: Set qlist before using it.
78
79 2007-05-15  Jean-Louis Martineau <martineau@zmanda.com>
80         * server-src/amadmin.c, server-src/cmdline.c,
81           server-src/find.c: Call holding_get_files will NULL date_list.
82         * server-src/holding.c (holding_get_directories_per_disk): New
83           date_list param, scan only the date_list directories.
84         * server-src/holding.c (holding_get_directories): New
85           date_list param.
86         * server-src/holding.c (holding_get_files): New
87           date_list param.
88         * server-src/holding.c (holding_get_files_for_flush): Don't loop over
89           date.
90         * server-src/holding.h (holding_get_directories,
91           holding_get_files): New prototype.
92
93 2007-05-14  Jean-Louis Martineau <martineau@zmanda.com>
94         * common-src/bsd-security.c: Open an IPv4 and an IPv6 socket.
95         * common-src/bsdudp-security.c: Open an IPv4 and an IPv6 socket.
96
97 2007-05-11  Jean-Louis Martineau <martineau@zmanda.com>
98         * server-src/amcrypt-ossl-asym.sh.in: Use CLIENT_LOGIN.
99         * server-src/amcrypt-ossl.sh.in: Use CLIENT_LOGIN.
100
101 2007-05-10  Jean-Louis Martineau <martineau@zmanda.com>
102         * util.c (cmp_sockaddr): Fix compilation.
103
104 2007-05-10  Jean-Louis Martineau <martineau@zmanda.com>
105         * util.c (cmp_sockaddr): un-map V4mapped address before comparison.
106         * common-src/security-util.c: add debugging.
107
108 2007-05-08  Jean-Louis Martineau <martineau@zmanda.com>
109         * server-src/diskfile.c: Fix double free.
110
111 2007-05-07  Jean-Louis Martineau <martineau@zmanda.com>
112         * common-src/alloc.c (debug_vstrallocf): Remove file and line.
113         * common-src/amanda.h (vstrallocf): Change define.
114
115 2007-05-07  Jean-Louis Martineau <martineau@zmanda.com>
116         * common-src/amanda.h: define sockaddr_storage and ss_family.
117         * common-src/amanda.h: define INET_ADDRSTRLEN.
118         * config/acinclude.m4i (AC_SOCKADDR_STORAGE): New macro.
119         * configure.in: AC_SOCKADDR_STORAGE.
120
121 2007-05-07  Jean-Louis Martineau <martineau@zmanda.com>
122         * common-src/amanda.h: Define AI_V4MAPPED and AI_ALL.
123
124 2007-05-07  Jean-Louis Martineau <martineau@zmanda.com>
125         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
126           common-src/bsdudp-security.c, common-src/krb5-security.c,
127           common-src/stream.c, server-src/amcheck.c,
128           server-src/dumper.c: Retry getaddrinfo with ai_flags = AI_CANONNAME
129
130 2007-05-07  Jean-Louis Martineau <martineau@zmanda.com>
131         * common-src/stream.c: pass correct sockaddr size to bind()
132
133 2007-05-07  Pieter Bowman <bowman@math.utah.edu>
134         * common-src/file.c: reverse the order of chown/chmod to correctly
135                              create temporary files.
136
137 2007-05-03  Jean-Louis Martineau <martineau@zmanda.com>
138         * docs/*.txt: Update from xml-docs.
139
140 2007-05-03  Jean-Louis Martineau <martineau@zmanda.com>
141         * man/xml-source/amrecover.8.xml: Fix space.
142
143 2007-05-03  Jean-Louis Martineau <martineau@zmanda.com>
144         * Amanda 2.5.2 released.
145         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2).
146
147 2007-05-02  Jean-Louis Martineau <martineau@zmanda.com>
148         * docs/*.txt, man/xml-source/*.xml: Change OVERWRITE bu OVERRIDE.
149         * man/xml-source/amadmin.8.xml: Add notees on no-reuse command.
150
151 2007-05-02  Jean-Louis Martineau <martineau@zmanda.com>
152         * amandad-src/amandad.c: Improve 'invalid service' message.
153
154 2007-05-01  Jean-Louis Martineau <martineau@zmanda.com>
155         * recover-src/extract_list.c: Report the error message.
156         * recover-src/extract_list.c: Don't call close_connection.
157         * common-src/security-util.c: (tcpm_close_connection): Check for rh->rc
158
159 2007-04-27  Jean-Louis Martineau <martineau@zmanda.com>
160         * common-src/security-util.c (tcp1_stream_client): Set rh->rc->driver.
161
162 2007-04-27  Jean-Louis Martineau <martineau@zmanda.com>
163         * common-src/bsd-security.c, common-src/bsdudp-security.c,
164           common-src/krb4-security.c: Fix ntohs for port number.
165         * common-src/dgram.c: Add socket number in comment.
166
167 2007-04-27  Dustin J. Mitchell <dustin@zmanda.com>
168         * server-src/holding.c server-src/holding.h server-src/find.c:
169           use holding module in find.c:search_holding_disk()
170
171 2007-04-27  Jean-Louis Martineau <martineau@zmanda.com>
172         * server-src/amcheck.c: Fix infobad setting.
173
174 2007-04-26  Jean-Louis Martineau <martineau@zmanda.com>
175         * server-src/amcheck.c: Set *bad on error.
176
177 2007-04-26  Jean-Louis Martineau <martineau@zmanda.com>
178         * server-src/amflush.c: Quote L_DISK and FLUSH line.
179         * server-src/driver.c: Parse quoted FLUSH line.
180         * server-src/planner.c:  Quote L_DISK and FLUSH line.
181
182 2007-04-25  Dustin J. Mitchell <dustin@zmanda.com>
183         * configure.in common-src/ssh-security.c: allow build-time configuration of SSH options
184
185 2007-04-23  Paddy Sreenivasan <paddy@zmanda.com>
186         * changer-src/scsi-solaris.c common-src/protocol.c: changes to build on Solaris
187
188 2007-04-20  Dustin J. Mitchell <dustin@zmanda.com>
189         * configure.in: remove unused AMANDA_C_VOLATILE
190         * config/acinclude.m4: remove unused AMANDA_C_VOLATILE
191
192 2007-04-20  Dustin J. Mitchell <dustin@zmanda.com>
193         * autogen: silence unnecessary warnings about GNU make, return exit status
194
195 2007-04-20  Dustin J. Mitchell <dustin@zmanda.com>
196         * common-src/stream.c: retry socket creation if OS does not support IPv6
197           at runtime
198
199 2007-04-20  Jean-Louis Martineau <martineau@zmanda.com>
200         * amplot/amplot.sh.in (test_awk,find_gnuplot): Imported from zmanda.
201         * amplot/amplot.awk: Fix some parsing.
202         * server-src/driver.c (free_kps): Return 0 instead of big value.
203
204 2007-04-18  Jean-Louis Martineau <martineau@zmanda.com>
205         * oldrecover-src/Makefile.am, changer-src/Makefile.am,
206           client-src/Makefile.am, amandad-src/Makefile.am,
207           recover-src/Makefile.am, server-src/Makefile.am,
208           restore-src/Makefile.am: Link libgnu after libamanda.
209
210 2007-04-18  Jean-Louis Martineau <martineau@zmanda.com>
211         * client-src/sendbackup.c: Improve tar argument in amanda header for
212                                    extraction.
213
214 2007-04-18  Dustin J. Mitchell <dustin@zmanda.com>
215         * man/Makefile.am configure.in config/acinclude.m4i: add xsltproc- and docbook-
216           related autoconf macros, use them to ensure the environment is appropriate for
217           building manpages; manpage build is off by default.
218
219 2007-04-17  Jean-Louis Martineau <martineau@zmanda.com>
220         * changer-src/chg-disk.sh.in: Send error message to stdout.
221
222 2007-04-17  Dustin J. Mitchell <dustin@zmanda.com>
223         * changer-src/chg-zd-mtx.sh.in: fix more typos (thanks to
224           "Stefan G. Weichinger" <sgw@amanda.org>)
225
226 2007-04-17  Jean-Louis Martineau <martineau@zmanda.com>
227         * restore-src/restore.c: Fix restoration of split and encrypted backup.
228
229 2007-04-13  Dustin J. Mitchell <dustin@zmanda.com>
230         * changer-src/chg-zd-mtx.sh.in: fix typo in error message
231
232 2007-04-13  Jean-Louis Martineau <martineau@zmanda.com>
233         * Amanda 2.5.2b1 released.
234         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2b1).
235
236 2007-04-13  Jean-Louis Martineau <martineau@zmanda.com>
237         * client-src/sendbackup.c (first_num): Removed function.
238         * client-src/sendbackup.c (the_num): return the nth number in a string.
239         * client-src/sendbackup.h (AM_SIZE_RE): Need a field.
240         * client-src/sendbackup-dump.c: Use new AM_SIZE_RE.
241         * client-src/sendbackup-gnutar.c: Use new AM_SIZE_RE.
242
243 2007-04-13  Jean-Louis Martineau <martineau@zmanda.com>
244         * NEWS: Change in amanda-2.5.2
245         * ReleaseNotes: Releases Notes for 2.5.2
246         * server-src/chunker.c (write_tapeheader): Set errno to ENOSPC.
247
248 2007-04-12  Dustin J. Mitchell <dustin@zmanda.com>
249         * server-src/dumper.c: use fullwrite() instead of write()
250
251 2007-04-12  Jean-Louis Martineau <martineau@zmanda.com>
252         * amandad-src/amandad.c: Remove duplicate setsockopt(,,SO_REUSEADDR).
253         * common-src/bsd-security.c: Use int for setsockopt.
254         * common-src/stream.c (try_socksize): Use int for setsockopt.
255
256 2007-04-12  Jean-Louis Martineau <martineau@zmanda.com>
257         * server-src/amcheck.c: Remove duplicate test.
258         * server-src/dumper.c: Use newvstralloc.
259
260 2007-04-12  Jean-Louis Martineau <martineau@zmanda.com>
261         * server-src/reporter.c: Take value from chunker if it succeed and
262                                  taper fail.
263
264 2007-04-10  Jean-Louis Martineau <martineau@zmanda.com>
265         * configure.in: Use krb5 shared library.
266
267 2007-04-10  Dustin J. Mitchell <dustin@zmanda.com>
268         * changer-src/chg-zd-mtx.sh.in: remove configurability of mt, mtx paths
269
270 2007-04-10  Jean-Louis Martineau <martineau@zmanda.com>
271         * common-src/krb5-security.c: Initialize rc->gss_context.
272
273 2007-04-09  Dustin J. Mitchell <dustin@zmanda.com>
274         * changer-src/chg-zd-mtx.sh.in: fix bugs in configuration for mt, mtx paths
275
276 2007-04-06  Dustin J. Mitchell <dustin@zmanda.com>
277         * oldrecover-src/extract_list.c oldrecover-src/display_commands.c
278           client-src/sendbackup.c client-src/getfsent.c client-src/sendsize.c
279           client-src/selfcheck.c recover-src/amrecover.c recover-src/extract_list.c
280           recover-src/display_commands.c server-src/amlogroll.c
281           server-src/amindexd.c server-src/tapefile.c server-src/amcheck.c
282           server-src/dumper.c server-src/planner.c server-src/reporter.c
283           server-src/amadmin.c server-src/find.c server-src/infofile.c
284           restore-src/amidxtaped.c common-src/security-util.c common-src/amanda.h:
285           improve parsing with strcmp_const and strcmp_const_skip
286
287 2007-04-06  Jean-Louis Martineau <martineau@zmanda.com>
288         * server-src/taper.c: Limit splitsize to 1G in PORT-WRITE.
289
290 2007-04-06  Jean-Louis Martineau <martineau@zmanda.com>
291         * common-src/krb5-security.c: Report client hostname.
292
293 2007-04-06  Jean-Louis Martineau <martineau@zmanda.com>
294         * common-src/tapelist.c (append_to_tape): Don't call dump_tapelist.
295
296 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com>
297         * contrib/macosx/org.amanda.amandad.bsd*.plist: updated to use username
298           'amandabackup'
299
300 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com>
301         * amplot/amplot.sh.in configure.in config/acinclude.m4i:
302           move checks for gnuplot, awk to runtime for easier packaging;
303           add fake gettext functions to ease the transition to
304           full gettext support
305
306 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com> 
307         * server-src/amindex.c: fix bug where debug fd was closed by safe_fd,
308           remove remote_hostname, rewrite to use getaddrinfo/getnameinfo
309         * server-src/dumper.c server-src/amcheck.c recover-src/set_commands.c:
310           use getaddrinfo/getnameinfo
311         * common-src/security-util.[ch]: add try_resolving_hostname()
312         * common-src/ssh-security.c common-src/rsh-security.c:
313           use try_resolving_hostname, rewrite to avoid gethostbyname
314         * common-src/krb5-security.c: use getaddrinfo instead of gethostbyname
315
316 2007-04-05  Dustin J. Mitchell <dustin@zmanda.com>
317         * changer-src/chg-lib.sh.in changer-src/chg-mtx.sh.in
318           changer-src/chg-manual.sh.in changer-src/chg-zd-mtx.sh.in
319           changer-src/chg-multi.sh.in changer-src/Makefile.am
320           configure.in: make the path to MTX and other executables configurable
321           in changer scripts; introduce new changer shell library to reduce
322           code duplication; add fake gettext functions to ease the transition to
323           full gettext support
324
325 2007-04-04  Dustin J. Mitchell <dustin@zmanda.com>
326         * server-src/dumper.c server-src/chunker.c: remove assumed ENOSPC
327           error in static write_tapeheader functions
328
329 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
330         * common-src/security-util.c: Remove buggy &.
331
332 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
333         * common-src/conffile.c: Add READBLOCKSIZE tapetype config option.
334         * common-src/conffile.c(getconf_readblocksize): Function to retrieve
335           the tapetype readblocksize or the configured maxtapeblocksize.
336         * common-src/conffile.h: Add READBLOCKSIZE tapetype config option.
337         * man/xml-source/amanda.conf.5.xml: Document it.
338         * tape-src/output-tape.c: Use getconf_readblocksize.
339         * tape-src/tapeio.c: Use getconf_readblocksize.
340
341 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
342         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
343           common-src/bsdudp-security.c,
344           common-src/security-util.c: Fix auth_debug and dbprintf usage.
345
346 2007-04-03  Jean-Louis Martineau <martineau@zmanda.com>
347         Merge from zmanda ext.
348         * man/xml-source/amadmin.8.xml man/xml-source/amanda.8.xml
349           server-src/amflush.c server-src/cmdline.c server-src/cmdline.h
350           server-src/holding.c server-src/holding.h server-src/driver.c
351           server-src/planner.c server-src/amadmin.c server-src/taper.c
352           server-src/amcleanupdisk.c server-src/find.c
353           server-src/Makefile.am: revise holding-disk management, add new
354           'amadmin' subcommand to list and delete dumps from the holding
355           disk.
356         * server-src/amadmin.c: Add 'amadmin XX holding list -l'
357
358 2007-04-02  Dustin J. Mitchell <dustin@zmanda.com>
359         * common-src/bsdtcp-security.c common-src/bsd-security.c 
360           common-src/security-util.c common-src/bsdudp-security.c:
361           bugfixes, always check for NULL ai_canonname
362         * common-src/util.c common-src/util.h common-src/krb4-security.c 
363           common-src/security-util.c: bugfix for hosts with multiple addresses,
364           improved cmp_sockaddr, remove redundant checks
365         * server-src/taper.c: add log message when new tapes are auto-labeled
366         * common-src/security-util.c: patch to avoid spurious compiler warnings
367           noticed on FC3
368
369 2007-03-30  Dustin J. Mitchell <dustin@zmanda.com>
370         * common-src/file.c: remove unused amanda_setup()
371
372 2007-03-30  Jean-Louis Martineau <martineau@zmanda.com>
373         * common-src/amanda.h: Define a _() macro.
374
375 2007-03-28  Dustin J. Mitchell <dustin@zmanda.com>
376         * common/amanda.h: fix typo in SS_SET_INADDR_ANY for non-IPv6 
377           machines
378         * gnulib/regenerate/regenerate: update to include visibility
379           and lock modules (See 2007-03-14)
380         * recover-src/extract_list.c common-src/krb4-security.c
381           common-src/event.c common-src/security-util.c: use
382           SELECT_ARG_TYPE instead of fd_set
383
384 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
385         * common-src/krb5-security.c: Fix for krb5 and IPv6.
386         * common-src/security-util.c: Fix for krb5 and IPv6.
387
388 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
389         * common-src/krb5-security.c: Compile with heimdal kerberos.
390
391 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
392         Fix solaris 9 problem:
393         * common-src/krb5-security.c: Use putenv instead of setenv.
394         * common-src/security-util.c: Set flags according to family.
395
396 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
397         Merge from zmanda EXT.
398
399 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
400         * Makefile.am (EXTRA_DIST): Remove contrib/gnulib-update-current.
401
402 2007-03-27  Jean-Louis Martineau <martineau@zmanda.com>
403         * server-src/reporter.c: Ouput quoted diskname in "DUMP SUMMARY"
404           section.
405
406 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
407         * changer-src/chg-zd-mtx.sh.in: Exit with a message if the
408                                         configuration file doesn't exist.
409
410 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
411         * common-src/conffile.c: Fix error message.
412
413 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
414         * amandad-src/amandad.c: Fix segfault.
415
416 2007-03-23  Jean-Louis Martineau <martineau@zmanda.com>
417         * common-src/security-util.c: Use SS_LEN.
418         * common-src/util.c: Use SS_LEN.
419
420 2007-03-21  Jean-Louis Martineau <martineau@zmanda.com>
421         * common-src/security.h (security_driver): Add data_encrypt and
422                                                    data_decrypt function.
423         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
424           common-src/bsdudp-security.c, common-src/krb4-security.c,
425           common-src/rsh-security.c,
426           common-src/ssh-security.c: Set data_encrypt and data_decrypt to NULL.
427
428         * common-src/conffile.c: Parse KRB5KEYTAB and KRB5PRINCIPAL on client.
429         * common-src/krb5-security.c: Complete rewrite.
430         * common-src/security-util.h: Change many prototype.
431         * common-src/security-util.c: Change argument to function.
432         * recover-src/amrecover.c: Use generic_client_get_security_conf.
433         * recover-src/extract_list.c: Use generic_client_get_security_conf.
434
435 2007-03-21  Jean-Louis Martineau <martineau@zmanda.com>
436         Merge from zmanda EXT.
437         - Add SS_INIT, SS_SET_INADDR_ANY, SS_GET_PORT and SS_SET_PORT
438           macros for IPv6 portability
439         - add SS_LEN() macro for calculating length of a
440           struct sockaddr, use it in a few locations where incorrect
441           lengths were being passed.
442         - New script for rebuilding gnulib from scratch; current
443           gnulib is from "cvs update -D '2007-01-31 13:12:51 -0600'"
444
445 2007-03-12  Jean-Louis Martineau <martineau@zmanda.com>
446         * recover-src/set_commands.c (set_tape): Don't amfree(tape).
447         * oldrecover-src/set_commands.c (set_tape): Don't amfree(tape).
448
449 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
450         * changer-src/scsi-linux.c, common-src/security-util.c,
451           common-src/stream.c, oldrecover-src/amrecover.c,
452           restore-src/restore.c, server-src/amcheck.c,
453           server-src/taper.c: Use SIZE_T_FMT and SSIZE_T_FMT instead of %z.
454
455 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
456         * common-src/bsd-security.c: Always retry getaddrinfo if INET6 failed.
457         * common-src/bsdudp-security.c: Ditto.
458
459 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
460         * common-src/debug.c: Remove old file in current directory.
461
462 2007-02-22  Jean-Louis Martineau <martineau@zmanda.com>
463         * changer-src/chg-chio.pl.in: Typo.
464
465 2007-02-21  Jean-Louis Martineau <martineau@zmanda.com>
466         * recover-src/extract_list.c: Remove match for path_on_disk_slash.
467
468 2007-02-20  Jean-Louis Martineau <martineau@zmanda.com>
469         * common-src/stream.c, common-src/util.c: Pass exact socklen_t to
470                                                   bind and connect call.
471
472 2007-02-20  Jean-Louis Martineau <martineau@zmanda.com>
473         * server-src/taper.c: Set splitsize to 0 if no data in file.
474         * server-src/amflush.c: Don't send FLUSH request if no data in file.
475         * server-src/planner.c: Don't send FLUSH request if no data in file.
476         * server-src/driver.c: Don't send request to taper if no data in file.
477
478 2007-02-19  Jean-Louis Martineau <martineau@zmanda.com>
479         * amandad-src/amandad.c: Fix compilation with --without-ipv6.
480
481 2007-02-19  Jean-Louis Martineau <martineau@zmanda.com>
482         * server-src/amverify.sh.in: Remove bogus fi.
483
484 2007-02-16  Jean-Louis Martineau <martineau@zmanda.com>
485         * server-src/amverify.sh.in: Add timeout on wait for device ready.
486         * changer-src/chg-chio.pl.in: Wait (with timeout) for drive ready.
487
488 2007-02-15  Jean-Louis Martineau <martineau@zmanda.com>
489         * server-src/taper.c: Don't call free_server_config.
490
491 2007-02-15  Jean-Louis Martineau <martineau@zmanda.com>
492         * patching file oldrecover-src/amrecover.h (local_cd): Prototype.
493         * oldrecover-src/set_commands.c: Works with quoted arguments.
494         * oldrecover-src/uparse.y (LCD): Call local_cd.
495         * recover-src/amrecover.h (local_cd): Prototype.
496         * recover-src/set_commands.c: Works with quoted arguments.
497         * recover-src/uparse.y (LCD): Call local_cd.
498
499 2007-02-14  Jean-Louis Martineau <martineau@zmanda.com>
500         * common-src/security-util.c: Add "on the client" message.
501
502 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
503         * server-src/amstatus.pl.in: fix for chunk and displayunit.
504
505 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
506         * server-src/dumper.c: Fix if krb4 is compiled but another auth is
507                                used.
508
509 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
510         * common-src/alloc.c (safe_env): Remove LANG and LC_* only if we are
511                                          priviledged process.
512
513 2007-02-13  Jean-Louis Martineau <martineau@zmanda.com>
514         * dumper-src/amgtar.pl.in: Replace -t options by -T.
515         * dumper-src/Makefile.am: Remove perl -t options.
516
517 2007-02-12  Jean-Louis Martineau <martineau@zmanda.com>
518         * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add sl.
519         * common-src/statfs.c: Fix scale function.
520
521 2007-02-12  Jean-Louis Martineau <martineau@zmanda.com>
522         * client-src/sendsize.c: Fix PARAM_HONOR_NODUMP.
523
524 2007-02-09  Jean-Louis Martineau <martineau@zmanda.com>
525         * server-src/reporter.c: Fix postscript crash.
526
527 2007-02-09  Jean-Louis Martineau <martineau@zmanda.com>
528         * changer-src/chg-manual.sh.in: Add tty, email, tty_email request mode.
529
530 2007-02-07  Jean-Louis Martineau <martineau@zmanda.com>
531         * server-src/amindexd.c: Use dbfd.
532
533 2007-02-06  Jean-Louis Martineau <martineau@zmanda.com>
534         * common-src/alloc.c (vstrallocf): New function.
535         * common-src/amanda.h (vstrallocf): Prototype.
536         * client-src/sendsize.c: Send error if fe_rep_sendsize_quoted_error.
537         * common-src/amfeatures.c (am_init_feature_set): Set
538                                                  fe_rep_sendsize_quoted_error.
539         * common-src/amfeatures.h (fe_rep_sendsize_quoted_error): new features.
540         * server-src/planner.c: Receive error message from sendsize.
541
542 2007-02-06  Jean-Louis Martineau <martineau@zmanda.com>
543         * amandad-src/amandad.c, changer-src/scsi-linux.c,
544           common-src/conffile.c, configure.in,
545           man/Makefile.am, man/xml-source/amcheck.8.xml,
546           server-src/amlabel.c, server-src/taper.c: Merge from zmanda.
547
548 2007-02-06  Jean-Louis Martineau <martineau@zmanda.com>
549         * common-src/clock.c (timesub): The result must always be positive.
550
551 2007-02-05  Jean-Louis Martineau <martineau@zmanda.com>
552         * changer-src/chg-zd-mtx.sh.in: Fix for sed and IMPORT/EXPORT.
553
554 2007-02-05  Jean-Louis Martineau <martineau@zmanda.com>
555         * server-src/amcheck.c: Add parentheses.
556
557 2007-02-02  Jean-Louis Martineau <martineau@zmanda.com>
558         * contrib/gnulib-update-current: New file.
559         * Makefile.am (EXTRA_DIST): Add contrib/gnulib-update-current.
560
561 2007-02-02  Jean-Louis Martineau <martineau@zmanda.com>
562         * man/Makefile.am: Use http://docbook.sourceforge.net
563         * man/xml-source/amadmin.8.xml, man/xml-source/amaespipe.8.xml,
564           man/xml-source/amanda.8.xml, man/xml-source/amanda-client.conf.5.xml,
565           man/xml-source/amanda.conf.5.xml, man/xml-source/amcheck.8.xml,
566           man/xml-source/amcrypt.8.xml, man/xml-source/amdump.8.xml,
567           man/xml-source/amfetchdump.8.xml, man/xml-source/amflush.8.xml,
568           man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml,
569           man/xml-source/ammt.8.xml, man/xml-source/amrecover.8.xml,
570           man/xml-source/amreport.8.xml,
571           man/xml-source/amtape.8.xml: Fix for xmllint.
572         * man/xslt/man.xsl: Remove bogus code.
573
574 2007-02-01  Jean-Louis Martineau <martineau@zmanda.com>
575         * changer-src/chg-zd-mtx.sh.in: Support IMPORT/EXPORT slot.
576
577 2007-02-01  Jean-Louis Martineau <martineau@zmanda.com>
578         * server-src/amdump.sh.in: Output a starttime line.
579         * server-src/amflush.c: Output a starttime line.
580         * server-src/amstatus.pl.in: parse the starttime line.
581
582 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
583         * configure.in: Fix --with-ipv6 option.
584
585 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
586         * server-src/amdump.sh.in: Exit with a status.
587
588 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
589         * server-src/diskfile.c: Use hostnext pointer.
590
591 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
592         * server-src/reporter.c: Exit with a status.
593
594 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
595         * server-src/amstatus.pl.in: Exit with a status.
596
597 2007-01-26  Jean-Louis Martineau <martineau@zmanda.com>
598         * server-src/amstatus.pl.in: Detect failed dump to tape.
599
600 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
601         * configure.in: Add --with-ipv6 option.
602
603 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
604         * server-src/changer.c (changer_command): Send stderr to dbfd().
605
606 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
607         * server-src/diskfile.c: Check hostname have same case.
608
609 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
610         * changer-src/chg-zd-mtx.sh.in: Check if MT and MTX exists.
611
612 2007-01-25  Jean-Louis Martineau <martineau@zmanda.com>
613         * changer-src/chg-zd-mtx.sh.in: Set CHANGER environment variable.
614
615 2007-01-24  Jean-Louis Martineau <martineau@zmanda.com>
616         * common-src/conffile.c: Cleanup conf_print function.
617
618 2007-01-24  Jean-Louis Martineau <martineau@zmanda.com>
619         * common-src/conffile.c: Check for duplicate -o options.
620         * recover-src/amrecover.c: Change precedence of option.
621
622 2007-01-24  Jean-Louis Martineau <martineau@zmanda.com>
623         * server-src/diskfile.c: Fix compiler warning.
624
625 2007-01-23  Jean-Louis Martineau <martineau@zmanda.com>
626         * common-src/security-util.c (tcpm_recv_token): Check size < 0.
627
628 2007-01-23  Jean-Louis Martineau <martineau@zmanda.com>
629         * server-src/diskfile.c: Check duplicate DLE with match_host and
630                                  match_disk.
631
632 2007-01-18  Jean-Louis Martineau <martineau@zmanda.com>
633         * client-src/selfcheck.c: Improve check if /etc/dumpdates in not there.
634
635 2007-01-18  Jean-Louis Martineau <martineau@zmanda.com>
636         * restore-src/amfetchdump.c: Set arg_state to ARG_GET_HOST.
637
638 2007-01-18  Jean-Louis Martineau <martineau@zmanda.com>
639         * server-src/amcheck.c: Check tape_access.
640         * server-src/taper.c: Improve message.
641
642 2007-01-16  Jean-Louis Martineau <martineau@zmanda.com>
643         * configure.in: Define GCC_COMPILER.
644         * gnulib/Makefile.am: Add -Wno-error to AM_CFLAGS if GCC_COMPILER.
645
646 2007-01-16  Jean-Louis Martineau <martineau@zmanda.com>
647         * server-src/getconf.c: Fix segfault in parameter parsing.
648
649 2007-01-15  Jean-Louis Martineau <martineau@zmanda.com>
650         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
651           common-src/bsdudp-security.c,
652           common-src/stream.c: Don't call check_addrinfo_give_name.
653         * common-src/security-util.c (check_addrinfo_give_name): Always log
654                                                                  error message.
655
656 2007-01-11  Jean-Louis Martineau <martineau@zmanda.com>
657         * common-src/conffile.c Set default length/filemark correctly.
658         * man/xml-source/amanda.conf.5.xml: Document they are in kbytes.
659
660 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
661         * config/gnulib/gnulib-common.m4: New file.
662         * config/gnulib.m4i: Load config/gnulib/gnulib-common.m4.
663
664 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
665         * amandad-src/amandad.c (do_sendpkt): Send packet if handle != NULL.
666
667 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
668         * common-src/conffile.c, common-src/conffile.h,
669           server-src/diskfile.c: Keep different list for exclude file and list.
670
671 2007-01-10  Jean-Louis Martineau <martineau@zmanda.com>
672         * server-src/taper.c (read_file): Don't count first header twice.
673
674 2007-01-05  Jean-Louis Martineau <martineau@zmanda.com>
675         * server-src/amstatus.pl.in: Fix split-dump accounting.
676
677 2007-01-04  Jean-Louis Martineau <martineau@zmanda.com>
678         * restore-src/restore.c: Use prompt_in.
679
680 2007-01-04  Jean-Louis Martineau <martineau@zmanda.com>
681         * amandad-src/amandad.c, common-src/bsd-security.c,
682           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
683           common-src/dgram.c, common-src/security-util.c,
684           common-src/stream.c,
685           common-src/util.c: Replace HAVE_IPV6 by WORKING_IPV6.
686         * configure.in: Define HAVE_IPV6 if IPv6 is working.
687
688 2007-01-04  Jean-Louis Martineau <martineau@zmanda.com>
689         * changer-src/chg-chio.pl.in, changer-src/chg-iomega.pl.in,
690           changer-src/chg-rth.pl.in, dumper-src/amgtar.pl.in,
691           server-src/amoverview.pl.in, server-src/amstatus.pl.in,
692           server-src/amtoc.pl.in: Clean ENV and set PATH.
693
694 2006-12-27  Jean-Louis Martineau <martineau@zmanda.com>
695         * server-src/driver.c: Don't repport error for many run in a day if
696                                it's amflush.
697
698 2006-12-27  Jean-Louis Martineau <martineau@zmanda.com>
699         * common-src/util.c (quote_string): Escape '\' character.
700
701 2006-12-22  Jean-Louis Martineau <martineau@zmanda.com>
702         * recover-src/display_commands.c: Send quoted text to amindexd.
703         * recover-src/extract_list.c: Send quoted text to amindexd.
704         * recover-src/set_commands.c: Send quoted text to amindexd.
705
706 2006-12-22  Jean-Louis Martineau <martineau@zmanda.com>
707         * changer-src/chg-disk.sh.in: LASTSLOT in a changerfile for chg-disk.
708
709 2006-12-22  Jean-Louis Martineau <martineau@zmanda.com>
710         * client-src/sendsize.c: Compilation fix.
711
712 2006-12-18  Jean-Louis Martineau <martineau@zmanda.com>
713         * common-src/packet.c (pkt_init_empty): New function.
714         * common-src/packet.h (pkt_init_empty): New prototype.
715         * amandad-src/amandad.c, common-src/protocol.c,
716           common-src/security-util.c: Use pkt_init_empty.
717
718 2006-12-18  Jean-Louis Martineau <martineau@zmanda.com>
719         * common-src/conffile.c: Print nothing if the list is emtpy.
720
721 2006-12-14  Jean-Louis Martineau <martineau@zmanda.com>
722         * restore-src/restore.c: Fix filename for output file.
723
724 2006-12-12  Jean-Louis Martineau <martineau@zmanda.com>
725         * common-src/amanda.h: Define __attribute__ for gcc >= 3.
726         * common-src/packet.c (pkt_init): Accept NULL for fmt.
727         * amandad-src/amandad.c, common-src/protocol.c,
728           common-src/security-util.c: Pass NULL to pkt_init.
729         * amandad-src/amandad.c, changer-src/chg-scsi.c,
730           changer-src/scsi-linux.c, client-src/sendbackup.c,
731           common-src/amanda.h, common-src/conffile.c,
732           common-src/event.c, common-src/packet.c,
733           common-src/security-util.c, common-src/stream.c,
734           common-src/util.c, oldrecover-src/amrecover.c,
735           restore-src/restore.c, server-src/amcheck.c,
736           server-src/driver.c, server-src/driverio.c,
737           server-src/taper.c: Fix printf format error.
738
739 2006-12-12  Jean-Louis Martineau <martineau@zmanda.com>
740         * server-src/amindexd.c: Use fgets to read index file because they
741                                  are not quoted.
742
743 2006-12-12  Jean-Louis Martineau <martineau@zmanda.com>
744         * configure.in: Find patch for sort program.
745         * server-src/amindexd.c: Clean the indexd file between the uncompress
746                                  and sort process.
747
748 2006-12-08  Jean-Louis Martineau <martineau@zmanda.com>
749         * configure.in: Add ICE_CHECK_DECL(snprintf,stdio.h)
750         * configure.in: Add ICE_CHECK_DECL(vsnprintf,stdio.h)
751         * client-src/sendbackup.c: Fix ignoring return value of write.
752
753 2006-12-08  Jean-Louis Martineau <martineau@zmanda.com>
754         * man/xml-source/amadmin.8.xml, man/xml-source/amanda.8.xml,
755           man/xml-source/amanda.conf.5.xml, man/xml-source/amcheck.8.xml,
756           man/xml-source/amfetchdump.8.xml, man/xml-source/ammt.8.xml,
757           man/xml-source/amrecover.8.xml: Move </note> tag to beginning of line
758
759 2006-12-08  Jean-Louis Martineau <martineau@zmanda.com>
760         * changer-src/chg-rait.sh.in: Fix typo for -reset.
761
762 2006-12-07  Jean-Louis Martineau <martineau@zmanda.com>
763         * server-src/amindexd.c: Fix host case problem.
764         * server-src/diskfile.c (add_disk, parse_diskline): Update hostname
765                                                             field.
766         * server-src/diskfile.h (disk_s): New hostname field.
767         * server-src/disk_history.c (add_dump): New hostname parameter.
768         * server-src/disk_history.h (DUMP_ITEM): New hostname field.
769         * server-src/disk_history.h (add_dump): Protoype change.
770
771 2006-12-07  Jean-Louis Martineau <martineau@zmanda.com>
772         * amandad-src/amandad.c: Add missing HAVE_IPV6.
773         * common-src/security-util.c: Add missing HAVE_IPV6.
774         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
775           common-src/bsdudp-security.c, common-src/dgram.c,
776           common-src/dgram.h, common-src/stream.c,
777           common-src/util.c: Fix for broken getaddrinfo:not returning V4MAPPED
778
779 2006-12-07  Jean-Louis Martineau <martineau@zmanda.com>
780         * common-src/conffile.c (lookup_keyword): Use strcasecmp.
781         * common-src/conffile.c (get_conftoken): Don;t convert to uppercase.
782         * server-src/getconf.c: Don;t print extra '\n' for --list.
783
784 2006-12-04  Jean-Louis Martineau <martineau@zmanda.com>
785         * common-src/util.c (str_sockaddr): Use host byte order for port.
786
787 2006-12-04  Jean-Louis Martineau <martineau@zmanda.com>
788         * server-src/amtape.h: Remove file.
789
790 2006-12-04  Jean-Louis Martineau <martineau@zmanda.com>
791         Application API phase 1.
792         * client-src/client_util.c, client-src/client_util.h,
793           client-src/selfcheck.c, client-src/sendbackup.c,
794           client-src/sendsize.c, common-src/amfeatures.c,
795           common-src/amfeatures.h, common-src/fileheader.c,
796           common-src/fileheader.h, recover-src/extract_list.c,
797           server-src/amcheck.c, server-src/amstatus.pl.in,
798           server-src/dumper.c, server-src/Makefile.am,
799           server-src/planner.c: Fix for Application API.
800         * configure.in: Fix for moved files.
801         * dumper-src/generic-dumper.pl.in: Fix for Application API.
802         * dumper-src/Makefile.am: Fix for renamed files.
803         * dumper-src/gnutar.pl.in: Renamed to dumper-src/amgtar.pl.in.
804         * dumper-src/amgtar.pl.in: Fix for Application API.
805         * dumper-src/star.pl.in: Renamed to dumper-src/amstar.pl.in.
806         * dumper-src/amstar.pl.in: Fix for Application API.
807
808 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
809         * client-src/sendbackup.c: Kill dump process on error.
810
811 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
812         * changer-src/chg-chio.pl.in: Check tapedev is set.
813         * changer-src/chg-disk.sh.in: Check tapedev is set.
814         * changer-src/chg-iomega.pl.in: Check tapedev is set.
815         * changer-src/chg-manual.sh.in: Check tapedev is set.
816         * changer-src/chg-mtx.sh.in: Check tapedev is set.
817         * changer-src/chg-rth.pl.in: Check tapedev is set.
818         * server-src/amcheck.c: Tapedev is needed only if tpchanger is not set.
819         * server-src/amflush.c: Tapedev is needed only if tpchanger is not set.
820         * server-src/amindexd.c: Tapedev is needed only if tpchanger is not set
821         * server-src/taper.c: Tapedev is needed only if tpchanger is not set.
822
823 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
824         * client-src/sendbackup.c: Ignore tar exit with status 1.
825
826 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
827         * server-src/amindexd.c (clean_backslash): New function use to unescape
828                                                  '\' characters in index files.
829
830 2006-11-29  Jean-Louis Martineau <martineau@zmanda.com>
831         * restore-src/restore.c (search_tapes): Fix prompt_out setting.
832
833 2006-11-28  Jean-Louis Martineau <martineau@zmanda.com>
834         * common-src/amanda.h: Don't include gnulib header if CONFIGURE_TEST
835                                is defined.
836         * common-src/amflock.c (main): Remove unused fd variable.
837
838 2006-11-28  Jean-Louis Martineau <martineau@zmanda.com>
839         * config/Makefile.am (EXTRA_DIST): Add gnulib.m4i.
840
841 2006-11-27  Jean-Louis Martineau <martineau@zmanda.com>
842         * common-src/util.c (copy_file): Fix compilation error.
843
844 2006-11-27  Jean-Louis Martineau <martineau@zmanda.com>
845         * common-src/stream.c: Fix compilation error.
846
847 2006-11-27  Jean-Louis Martineau <martineau@zmanda.com>
848         * common-src/amanda.h (NI_MAXHOST): Define if not defined.
849         * common-src/bsd-security.c, common-src/bsdtcp-security.c,
850           common-src/bsdudp-security.c, common-src/dgram.c,
851           common-src/security-util.c, common-src/stream.c,
852           common-src/util.c: HAVE_IPV6 conditional code
853
854 2006-11-26  Jean-Louis Martineau <martineau@zmanda.com>
855         * config/gnulib/*: m4 files for gnulib.
856         * config/gnulib.m4i: File to load all m4 files for gnulib.
857         * gnulib/*: gnulib source.
858         * */Makefile.am (INCLUDES): Add $(top_srcdir)/gnulib.
859         * */Makefile.am (LDADD): Add ../gnulib/libgnu.$(LIB_EXTENSION).
860         * Makefile.am (ACINCLUDE_M4_DEPS): Add $(srcdir)/config/gnulib.m4i.
861         * Makefile.am (SUBDIRS): Add gnulib.
862         * configure.in: AC_PREREQ(2.59), gl_EARLY, gl_INIT.
863         * configure.in (AC_CONFIG_FILES): Add gnulib/Makefile.
864         * autogen: Add config/gnulib.m4i to acinclude.m4.
865
866 2006-11-24  Jean-Louis Martineau <martineau@zmanda.com>
867         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c,
868           client-src/sendsize.c,
869           server-src/amindexd.c: Patch for gcc-3.2.3 to compile the new
870                                  vstralloc macro.
871
872 2006-11-24  Jean-Louis Martineau <martineau@zmanda.com>
873         * common-src/file.c (old_sanitise_filename): New function.
874         * common-src/amanda.h (old_sanitise_filename): Prototype.
875         * common-src/util.c (copy_file): New function.
876         * common-src/util.h (copy_file): Prototype.
877         * server-src/diskfile.c: Check that two DLE doesn't get the same
878                                  sanitized filename.
879         * server-src/amindex.c (getoldindexfname): New function.
880         * server-src/amindex.h (getoldindexfname): prototype.
881         * server-src/amindexd.c: Use the old sanitized filename if the new
882                                  file doesn't exist.
883         * server-src/amcheck.c: Call check_infofile.
884         * server-src/planner.c: Call check_infofile.
885         * server-src/server_util.c (check_infofile): New function, will copy
886                          the old sanitizes info file if the new doesn't exist.
887         * server-src/server_util.h (check_infofile): Prototype.
888
889 2006-11-23  Jean-Louis Martineau <martineau@zmanda.com>
890         * common-src/security-util.c (tcpm_recv_token): amanda protocol
891           packet can be larger than NETWORK_BLOCK_BYTES
892
893 2006-11-21  Jean-Louis Martineau <martineau@zmanda.com>
894         * common-src/stream.c: Fix compiler error.
895
896 2006-11-21  Jean-Louis Martineau <martineau@zmanda.com>
897         * amandad-src/amandad.c, common-src/amanda.h,
898           common-src/bsd-security.c, common-src/bsdtcp-security.c,
899           common-src/bsdudp-security.c, common-src/dgram.c,
900           common-src/dgram.h, common-src/krb4-security.c,
901           common-src/krb5-security.c, common-src/security-util.c,
902           common-src/security-util.h, common-src/stream.c,
903           common-src/util.c, common-src/util.h,
904           restore-src/amidxtaped.c, server-src/amindexd.c: IPV6.
905
906 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
907         * client-src/sendsize.c, oldrecover-src/display_commands.c,
908           oldrecover-src/extract_list.c, recover-src/display_commands.c,
909           recover-src/extract_list.c,
910           server-src/driver.c: Fix compiler error.
911
912 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
913         * client-src/sendsize.c: Open the amandates file after the
914                                  <config>/amanda-client.conf file is loaded.
915
916 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
917         * client-src/sendsize.c: Fix compiler error on boris.
918         * server-src/driver.c: Fix compiler error on rocky.
919
920 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
921         * common-src/security-util.c, server-src/amcheck.c,
922         * server-src/driver.c, server-src/dumper.c,
923         * server-src/planner.c, tape-src/output-file.c: Lint cleanup.
924
925 2006-11-20  Ian Turner <ian@zmanda.com>
926         * tape-src/output-file.c: Fix a compilation error related to
927           improper type casts. Thanks to Satya Ganga for noticing this
928           problem.
929
930 2006-11-20  Jean-Louis Martineau <martineau@zmanda.com>
931         * server-src/driver.c: Use temporary variable to scanf an OFF_T_FMT.
932         * server-src/planner.c: Use temporary variable to scanf an OFF_T_FMT.
933
934 2006-11-13  Jean-Louis Martineau <martineau@zmanda.com>
935         * client-src/selfcheck.c: Work for estimate calcsize and
936                                   program "DUMP".
937
938 2006-11-13  Jean-Louis Martineau <martineau@zmanda.com>
939         * server-src/amcheck.c: Don't ouput an warning if holdingdisk 'use'
940                                 is set to 0.
941
942 2006-11-09  Jean-Louis Martineau <martineau@zmanda.com>
943         * man/xml-source/amgetconf.8.xml: Document --list.
944
945 2006-11-09  Jean-Louis Martineau <martineau@zmanda.com>
946         * changer-src/chg-scsi.c: Don't remove '_' from "generic_changer".
947
948 2006-11-08  Jean-Louis Martineau <martineau@zmanda.com>
949         * common-src/amanda.h, common-src/conffile.c,
950           common-src/conffile.h, common-src/security-util.c,
951           configure.in, oldrecover-src/amrecover.c,
952           oldrecover-src/extract_list.c, recover-src/amrecover.c,
953           recover-src/extract_list.c, restore-src/amrestore.c,
954           server-src/dumper.c: Fix compiler error on Tru64.
955
956 2006-11-08  Jean-Louis Martineau <martineau@zmanda.com>
957         * common-src/conffile.c (getconf_byname):
958                                 Parse "DEFINE:identifer:parameter" format.
959         * common-src/conffile.c (getconf_list): New function to list a DEFINE.
960         * common-src/conffile.c (lookup_holdingdisk): New function.
961         * common-src/conffile.h (getconf_list,
962                                  lookup_holdingdisk): New prototype.
963         * server-src/getconf.c: accept --list argument and
964                                 "DEFINE:identifer:parameter" format.
965         * man/xml-source/amgetconf.8.xml: Document.
966
967 2006-11-08  Jean-Louis Martineau <martineau@zmanda.com>
968         * server-src/driver.c: set off_t variable to 0 before sscanf.
969         * server-src/planner.c: set off_t variable to 0 before sscanf.
970
971 2006-11-07  Jean-Louis Martineau <martineau@zmanda.com>
972         * server-src/amstatus.pl.in: Improve error message.
973
974 2006-11-07  Jean-Louis Martineau <martineau@zmanda.com>
975         * common-src/security-util.c: Fix coverity bug 170.
976         * server-src/diskfile.c: Fix coverity bug 147.
977
978 2006-11-07  Jean-Louis Martineau <martineau@zmanda.com>
979         * common-src/conffile.c (validate_chunksize): Check chunksize is >=
980                                                       2*DISK_BLOCK_KB
981
982 2006-11-06  Jean-Louis Martineau <martineau@zmanda.com>
983         * common-src/amanda.h: Define OFF_T_STRTOL.
984         * configure.in: Check for strtol and strtoll.
985
986 2006-11-02  Ian Turner <ian@zmanda.com>
987         * common-src/amanda.h: Use atol if atoll is missing.
988
989 2006-11-02  Jean-Louis Martineau <martineau@zmanda.com>
990         * common-src/security-util.c: Better message on invalid size.
991
992 2006-11-02  Jean-Louis Martineau <martineau@zmanda.com>
993         * configure.in: List bsdudp as a udp transport.
994
995 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
996         * server-src/diskfile.c: Don't use 0 for NULL.
997
998 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
999         Revert Ian patch of 2006-10-29.
1000         * common-src/conffile.c: Defile AMANDATES_FILE
1001         * client-src/amandates.h: Don't define AMANDATES_FILE
1002
1003 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
1004         * common-src/conffile.c: Rename DUMPTYPE_START_T to DUMPTYPE_STARTTIME.
1005         * common-src/conffile.h: Rename DUMPTYPE_START_T to DUMPTYPE_STARTTIME.
1006         * server-src/amadmin.c (disklist_one): Print correct starttime.
1007         * server-src/diskfile.c: Set start_t to starttime.
1008         * server-src/diskfile.h (disk_t): Add starttime.
1009
1010 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
1011         * changer-src/scsi-changer-driver.c: Add Tandberg SLR100,
1012                                              more debugging.
1013         * changer-src/sense.c: Add Tandberg SLR100 Tape Drive "SLR100".
1014
1015 2006-11-01  Jean-Louis Martineau <martineau@zmanda.com>
1016         * common-src/amanda.h: Define dbrename if !DEBUG_CODE.
1017         * restore-src/amidxtaped.c: Declare i if !DEBUG_CODE.
1018
1019 2006-10-30  Jean-Louis Martineau <martineau@zmanda.com>
1020         * server-src/amadmin.c (disklist_one): Print ignore field.
1021         * server-src/amoverview.pl.in: Ignore 'ignore yes' and 'strategy skip'.
1022         * server-src/diskfile.c: Correct hostname allocation.
1023                                  Keep 'ignore yes' and 'strategy skip' DLE in
1024                                  memory, set there todo to 0.
1025         * server-src/diskfile.h: (struct disk_s): New ignore field.
1026
1027 2006-10-29  Ian Turner <ian@zmanda.com>
1028         This was reported as debian bug 394796. Thanks to Damyan Ivanov 
1029         <dam@modsoftsys.com> for reporting and to Bdale Garbee 
1030         <bdale@gag.com> for a preliminary patch.
1031         * common-src/conffile.c: Use AMANDATES_FILE as default for 
1032           location of amandates.
1033         * common-src/amandates.h: Move from client-src/
1034         * client-src/amandates.h: Move to common-src/
1035         * common-src/Makefile.am: Update to reflect new location of 
1036           amandates.h.
1037         * client-src/Makefile.am: ditto.
1038
1039 2006-10-25  Jean-Louis Martineau <martineau@zmanda.com>
1040         Patch by Jay Fenlason
1041         * common-src/rsh-security.c: Fix.
1042
1043 2006-10-24  Jean-Louis Martineau <martineau@zmanda.com>
1044         * common-src/conffile.c (get_config_options): Build and argv of the
1045                                                       -o arguments.
1046         * common-src/conffile.h (get_config_options): Prototype.
1047         * server-src/driverio.c: exec dumper/chunker/driver with the argv from
1048                                  get_config_options
1049         * server-src/amtape.c: Accept -o argument.
1050         * man/xml-source/amtape.8.xml: Document it.
1051
1052 2006-10-24  Jean-Louis Martineau <martineau@zmanda.com>
1053         * server-src/taper.c: Fix allocation problem on tapedev.
1054
1055 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
1056         * common-src/conffile.c (conf_print): Add a parameter if we want
1057                                               CONFTYPE_STRING enclosed in ".
1058         * server-src/planner.c: Use getconf_int to get etimeout value.
1059
1060 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
1061         * server-src/taper.c (free_split_buffer): Correct free.
1062
1063 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
1064         * client-src/sendbackup.c: Parse quote amdevice.
1065         * server-src/amcheck.c: Send quoted amdevice.
1066         * server-src/planner.c: Send quoted amdevice.
1067
1068 2006-10-20  Jean-Louis Martineau <martineau@zmanda.com>
1069         * common-src/conffile.c (CNF_CTIMEOUT, CNF_DTIMEOUT, CNF_ETIMEOUT):
1070           They are of type CONFTYPE_INT
1071           (CONFTYPE_TIME are for value parsed as "hhmm"")
1072         * common-src/conffile.c (getconf_byname): Use conf_print().
1073         * common-src/conffile.h: Add comment.
1074         * server-src/amcheck.c, server-src/dumper.c, server-src/planner.c:
1075           Use getconf_int to get timeout value.
1076
1077 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
1078         * man/xml-source/amanda.conf.5.xml: Fix formating.
1079
1080 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
1081         * client-src/calcsize.c, client-src/sendsize.c: Remove bogus fseek.
1082
1083 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
1084         * client-src/calcsize.c: Quote amname.
1085
1086 2006-10-19  Jean-Louis Martineau <martineau@zmanda.com>
1087         * server-src/driver.c: Print an L_STATS with the hostname
1088         * server-src/reporter.c: Print hostname, org, config and date at the
1089                                  beginning of the report
1090
1091 2006-10-16  Jean-Louis Martineau <martineau@zmanda.com>
1092         * common-src/dgram.c (dgram_cat),
1093           common-src/packet.c (pkt_init, pkt_cat): Works correctly with
1094                                                    vsnprintf returning -1.
1095
1096 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
1097         * common-src/Makefile.am (libamanda_la_LIBADD) Remove @LTLIBOBJS@.
1098
1099 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
1100         * server-src/taper.c: stralloc(tapedev).
1101         * configure.in (EXAMPLE_TAPEDEV): Set to /dev/null if no tape-device.
1102         * example/amanda-client.conf.in, example/amanda.conf.in
1103           example/chg-mcutil.conf.in: Use EXAMPLE_TAPEDEV.
1104
1105 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
1106         * common-src/alloca.c, common-src/getcwd.c, common-src/mktime.c,
1107           common-src/memmove.c, common-src/snprintf.c,
1108           common-src/strcasecmp.c, common-src/strerror.c,
1109           common-src/strftime.c, common-src/strncasecmp.c,
1110           common-src/strstr.c, common-src/waitpid.c,
1111           COPYRIGHT-APACHE: Removed files.
1112         * configure.in: Remove many AC_REPLACE_FUNCS.
1113         * Makefile.am (pkgdata_DATA): Remove COPYRIGHT-APACHE.
1114
1115 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
1116         * common-src/Makefile.am: Remove all reference to our regex
1117         * common-src/match.c: #include <regex.h>, the system regex
1118         * common-src/memmove.c: No more memmove in regex-src
1119         * Makefile.am (pkgdata_DATA): Remove COPYRIGHT-REGEX
1120         * Makefile.am (EXTRA_DIST): Remove regex-src/*
1121         * regex-src: Remove directory.
1122         * common-src/regcomp.c, common-src/regerror.c,
1123           common-src/regexec.c, common-src/regfree.c,
1124           common-src/amregex.h: Remove files.
1125
1126 2006-10-11  Jean-Louis Martineau <martineau@zmanda.com>
1127         * server-src/planner.c: Improve message for dump larger than available
1128                                 tape space if runtapes > 1 and splitsize == 0.
1129
1130 2006-10-10  Jean-Louis Martineau <martineau@zmanda.com>
1131         * server-src/driver.c (wait_children): Don't crash if dumper->chunker
1132                                                is NULL
1133
1134 2006-10-04  Jean-Louis Martineau <martineau@zmanda.com>
1135         * amandad-src/amandad.c: Call security_recvpkt() on A_SENDNACK
1136                                  and dup P_REQ.
1137         * common-src/security-util.c: Improve message.
1138
1139 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
1140         * server-src/amcleanupdisk.c: Accept -o arguments.
1141         * server-src/amcleanup.sh.in: Add missing 'shift' for non-linux system.
1142                                       Accept -o arguments.
1143
1144 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
1145         * server-src/amoverview.pl.in: Fix parsing of time field from amadmin.
1146
1147 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
1148         * restore-src/amidxtaped.c, restore-src/restore.c,
1149           server-src/amcheck.c, server-src/amflush.c,
1150           server-src/amlabel.c, server-src/taper.c,
1151           server-src/taperscan.c: Check for CNF_TAPEDEV == NULL.
1152
1153 2006-10-03  Jean-Louis Martineau <martineau@zmanda.com>
1154         * common-src/conffile.c: Don't set CNF_TAPEDEV to DEFAULT_TAPE_DEVICE.
1155         * configure.in: Don't set DEFAULT_TAPE_DEVICE.
1156
1157 2006-09-29  Jean-Louis Martineau <martineau@zmanda.com>
1158         * common-src/bsdtcp-security.c: Add logging on error.
1159
1160 2006-09-29  Jean-Louis Martineau <martineau@zmanda.com>
1161         * server-src/amoverview.pl.in: Use shellwords instead of quotewords,
1162           don't add date for disk not in the disklist.
1163
1164 2006-09-28  Jean-Louis Martineau <martineau@zmanda.com>
1165         * common-src/bsd-security.c: Fix %hd printf argument format.
1166         * common-src/security-util.c: Fix %hd printf argument format.
1167
1168 2006-09-28  Jean-Louis Martineau <martineau@zmanda.com>
1169         * common-src/conffile.c (client_keytab): Add DEBUG_*.
1170         * oldrecover-src/amrecover.c: Call read_clientconf.
1171
1172 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
1173         * restore-src/restore.c: Improve debugging.
1174         * server-src/changer.c: Make sure to dup the fd out of the 0..2 range.
1175
1176 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
1177         * restore-src/amfetchdump.c: Pass new prompt_in parameter to
1178                                      search_tapes.
1179         * restore-src/restore.c (search_tapes, load_manual_tape): New prompt_in
1180                                                                   parameter.
1181         * restore-src/restore.h (search_tapes): New prompt_in parameter.
1182         * restore-src/amidxtaped.c: Set new 'FILE *' instead of reusing stdin
1183                                     and stdout.
1184         * server-src/amindexd.c: Set new 'FILE *' instead of reusing stdin
1185                                  and stdout.
1186
1187 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
1188         Patch by Orion Poplawski <orion@cora.nwra.com>
1189         * server-src/planner.c: Add a skip_quoted_line() on error.
1190
1191 2006-09-23  Jean-Louis Martineau <martineau@zmanda.com>
1192         * server-src/amstatus.pl.in: Fix parsing of 'taper: wrote label' line.
1193         * server-src/amtoc.pl.in: Fix parsing of 'START taper' line.
1194
1195 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
1196         * common-src/conffile.h: New CONFTYPE_INTRANGE conftype_t.
1197         * common-src/conffile.c: New CNF_RESERVED_UDP_PORT,
1198                                  CNF_RESERVED_TCP_PORT,
1199                                  CNF_UNRESERVED_TCP_PORT config options.
1200         * common-src/dgram.c: Use the new CNF_RESERVED_UDP_PORT option.
1201         * common-src/stream.c: Use the new CNF_*RESERVED_PORT options.
1202         * man/xml-source/amanda-client.conf.5.xml: Document it.
1203         * man/xml-source/amanda.conf.5.xml: Document it.
1204
1205 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
1206         Patch by William Jojo
1207         * client-src/sendsize.c: Fix #endif for AIX.
1208
1209 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
1210         * common-src/packet.c: Fix use of arglist_start/arglist_end.
1211         * server-src/amindexd.c: Fix use of vsnprintf (for IRIX).
1212         * server-src/logfile.c: Fix use of arglist_start/arglist_end.
1213
1214 2006-09-21  Jean-Louis Martineau <martineau@zmanda.com>
1215         * server-src/amcheck.c: Don't assert if holding use is set to 0.
1216
1217 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
1218         * server-src/find.c (search_logfile): Count 'PARTIAL taper line'.
1219
1220 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
1221         Patch by Paul Bijens
1222         * server-src/amcheck.c: Print "tapelist" instead of "tapefile".
1223
1224 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
1225         * common-src/dgram.c (dgram_bind): Remove unused variables.
1226
1227 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
1228         * common-src/conffile.c, common-src/conffile.h: Add debug_amandad,
1229           debug_amidxtaped, debug_amindexd, debug_amrecover, debug_auth,
1230           debug_event, debug_holding, debug_protocol, debug_planner,
1231           debug_driver, debug_dumper, debug_chunker, debug_taper,
1232           debug_selfcheck, debug_sendsize, debug_sendbackup
1233           configurations options.
1234         * common-sc/debug.c: Use it's own clock function.
1235         * amandad-src/amandad.c, amandad-src/amandad_util.c,
1236           client-src/calcsize.c, client-src/client_util.c,
1237           client-src/killpgrp.c, client-src/rundump.c,
1238           client-src/runtar.c, client-src/selfcheck.c,
1239           client-src/sendbackup.c, client-src/sendsize.c,
1240           common-src/bsd-security.c, common-src/bsdtcp-security.c,
1241           common-src/bsdudp-security.c, common-src/debug.c,
1242           common-src/dgram.c, common-src/event.c,
1243           common-src/krb5-security.c, common-src/pipespawn.c,
1244           common-src/protocol.c, common-src/rsh-security.c,
1245           common-src/security.c, common-src/security-util.c,
1246           common-src/security-util.h, common-src/ssh-security.c,
1247           common-src/stream.c, common-src/util.c,
1248           recover-src/amrecover.c, restore-src/amidxtaped.c,
1249           server-src/amindexd.c, server-src/chunker.c,
1250           server-src/driver.c, server-src/dumper.c,
1251           server-src/planner.c,
1252           server-src/taper.c: Use the debug_* configuration options.
1253                               Use debug_prefix_time to print the time on
1254                               all debugging message.
1255
1256 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
1257         * amandad-src/amandad.c: Use CNF_REP_TRIES.
1258         * common-src/conffile.c: New CONNECT_TRIES, REQ_TRIES, REP_TRIES
1259                                  configuration options.
1260         * common-src/conffile.h: New CONNECT_TRIES, REQ_TRIES, REP_TRIES
1261                                  configuration options.
1262         * common-src/protocol.c: Use CNF_CONNECT_TRIES and CNF_REQ_TRIES.
1263         * common-src/protocol.c: Rename reqtries to resettries.
1264                                  Rename acktries to reqtries.
1265         * man/xml-source/amanda-client.conf.5.xml: Document new options.
1266         * man/xml-source/amanda.conf.5.xml: Document new options.
1267
1268 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
1269         * amandad-src/amandad.c: Read client configuratrion file.
1270         * client-src/client_util.c, client-src/selfcheck.c,
1271           client-src/sendbackup.c, client-src/sendbackup-dump.c,
1272           client-src/sendbackup-gnutar.c, client-src/sendsize.c,
1273           recover-src/amrecover.c, recover-src/extract_list.c,
1274           restore-src/amfetchdump.c, server-src/amadmin.c,
1275           server-src/amcheck.c, server-src/amflush.c,
1276           server-src/amflush.c, server-src/amlabel.c,
1277           server-src/amlogroll.c, server-src/amtrmidx.c,
1278           server-src/amtrmlog.c, server-src/chunker.c,
1279           server-src/diskfile.c, server-src/driver.c,
1280           server-src/dumper.c, server-src/getconf.c,
1281           server-src/planner.c, server-src/reporter.c,
1282           server-src/taper.c: Use generic macro/functions instead of
1283                               client/server functions.
1284         * client-src/client_util.h: Remove unuse macro.
1285         * client-src/Makefile.am: Remove clientconf.? files.
1286         * common-src/amanda.h: Define MAX_DUMPERS.
1287         * common-src/conffile.c: New file, merge of client-src/clientconf.c
1288                                                 and server-src/conffile.c
1289         * common-src/conffile.h: New file, merge of client-src/clientconf.c
1290                                                 and server-src/conffile.c
1291         * common-src/Makefile.am (libamanda_la_SOURCES): Add conffile.c
1292         * common-src/Makefile.am (noinst_HEADERS): Add conffile.h
1293         * common-src/util.c: Move many thing to common-src/conffile.c.
1294         * common-src/util.h: Move many thing to common-src/conffile.h.
1295         * server-src/driverio.h: Remove MAX_DUMPERS define.
1296         * server-src/Makefile.am: Remove conffile.[hc].
1297
1298 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
1299         * common-src/dgram.c (dgram_bind): Don't set SO_REUSEADDR on socket.
1300
1301 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
1302         * common-src/util.c (connect_port): Make EHOSTUNREACH and ENETUNREACH
1303                                             fatal error.
1304
1305 2006-09-18  Jean-Louis Martineau <martineau@zmanda.com>
1306         * common-src/util.c(dump_sockaddr): Convert from network to machine
1307                                             bytes order before printing.
1308         * common-src/dgram.c (dgram_recv): Print the fromaddr.
1309
1310 2006-09-15  Jean-Louis Martineau <martineau@zmanda.com>
1311         * amandad-src/amandad.c: Correct order of close/dup.
1312
1313 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
1314         * common-src/bsdtcp-security.c: Use AMANDA_SERVICE_NAME.
1315
1316 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
1317         * server-src/amstatus.pl.in: Check that $dumpers_active is defined.
1318
1319 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
1320         * common-src/util.c (conftoken_getc): Return an int.
1321
1322 2006-09-11  Jean-Louis Martineau <martineau@zmanda.com>
1323         * client-src/sendbackup-dump.c: Works if rundump is not used.
1324
1325 2006-09-05  Jean-Louis Martineau <martineau@zmanda.com>
1326         * Amanda 2.5.1 released.
1327         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1).
1328         * NEWS: Change in amanda-2.5.1
1329
1330 2006-08-30  Jean-Louis Martineau <martineau@zmanda.com>
1331         * server-src/dumper.c: Typo in error message.
1332
1333 2006-08-29  Jean-Louis Martineau <martineau@zmanda.com>
1334         * client-src/selfcheck.c: Print error message to stdout before
1335                                   calling error().
1336
1337 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
1338         * server-src/dumper.c (log_msgout): Seek to begining of file.
1339
1340 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
1341         * server-src/reporter.c: Report if a dump was successfully retried.
1342
1343 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
1344         * server-src/amstatus.pl.in: Correct size for retried dump.
1345
1346 2006-08-25  Jean-Louis Martineau <martineau@zmanda.com>
1347         * client-src/runtar.c: Check that strcmp(argv[3], "--create") == 0.
1348
1349 2006-08-24  Jean-Louis Martineau <martineau@zmanda.com>
1350         * common-src/statfs.c (scale): Macro replaced by a function.
1351
1352 2006-08-24  Jean-Louis Martineau <martineau@zmanda.com>
1353         * server-src/chunker.c: Use STREAM_BUFSIZE for stream_accept.
1354         * server-src/taper.c: Use STREAM_BUFSIZE for stream_accept.
1355
1356 2006-08-24  Maitreyee Karmarkar <maitreyee.zmanda.com>
1357         * man/xml-source/amcheck.8.xml: amcheck xml man page change 
1358
1359 2006-08-23  Kevin Till <ktill@zmanda.com>
1360         *  server-src/driver.c: fix typo
1361
1362 2006-08-23  Jean-Louis Martineau <martineau@zmanda.com>
1363         * server-src/driver.c (dumper_result): Decrement pendings_aborts.
1364         * server-src/driver.c (handle_dumper_result): Don't send duper result
1365           to chunker if we aborted it.
1366         * server-src/driverio.c (dumper_cmd, chunker_cmd): Don't close the fd
1367           on ABORT.
1368         * server-src/dumper.c: Accept ABORT command.
1369
1370 2006-08-23  Jean-Louis Martineau <martineau@zmanda.com>
1371         * restore-src/restore.c (restore): Set bytes_read to the return value
1372           of read_file_header.
1373
1374 2006-08-22  Jean-Louis Martineau <martineau@zmanda.com>
1375         * tape-src/output-tape.c: Works if EOVERFLOW is not defined.
1376
1377 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
1378         * amandad-src/amandad.c, common-src/rsh-security.c,
1379           common-src/ssh-security.c, restore-src/restore.c,
1380           server-src/changer.c, server-src/dumper.c: Fix sentinel warning.
1381
1382 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
1383         * example/amanda.conf.in: Typo.
1384
1385 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
1386         * server-src/driverio.c: Fix bogus "(unsigned long)-1".
1387
1388 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
1389         * server-src/driver.c (start_some_dumps): Remove bogus free_assignedhd.
1390
1391 2006-08-21  Maitreyee Karmarkar <maitreyee.zmanda.com>
1392         * server-src/amcheck.c: Check specific clients
1393         * man/amcheck.8: add the multiple client check format
1394
1395 2006-08-18  Ian Turner <ian@zmanda.com>
1396         * tape-src/amtapetype.c: Don't crash on exit
1397
1398 2006-08-17  Paddy Sreenivasan <paddy@zmanda.com>
1399         * server-src/driverio.c:
1400         * server-src/changer.c:
1401         * restore-src/amfetchdump.c:
1402         * recover-src/extract_list.c:
1403         * oldrecover-src/extract_list.c:
1404         * common-src/util.c:
1405         * common-src/stream.c:
1406         * common-src/file.c:
1407         * common-src/dgram.c: Fix warnings
1408
1409 2006-08-17  Kevin Till <ktill@zmanda.com>
1410         * common-src/stream.c: Loop 5 times (ntries > 5) on select error
1411
1412 2006-08-14  Paddy Sreenivasan <paddy@zmanda.com>
1413         * client-src/sendsize.c: Fix warning
1414         * server-src/reporter.c: Fix warnings
1415
1416 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
1417         * Amanda 2.5.1b2 released.
1418         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b2).
1419
1420 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
1421         * server-src/driver.c (find_diskspace): Make sure size > 0.
1422
1423 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
1424         * server-src/planner.c: Don't check new disk.
1425
1426 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
1427         * server-src/planner.c: Always log if full size estimate is larger
1428                                 than the available tape space.
1429
1430 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
1431         * server-src/planner.c: Always log if the latest full dump will be
1432                                 overwritten soon.
1433
1434 2006-07-27  Jean-Louis Martineau <martineau@zmanda.com>
1435         * common-src/clock.c (timesub): Don't make a negative time.
1436
1437 2006-07-27  Jean-Louis Martineau <martineau@zmanda.com>
1438         * man/xml-source/amanda.conf.5.xml: Tell which file are loaded.
1439         * man/xml-source/amanda-client.conf.5.xml: Ditto.
1440
1441 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
1442         * NEWS: for 2.5.1b2.
1443
1444 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
1445         * common-src/util.h (CONFTYPE_HOLDING): New conftype.
1446         * common-src/util.c (conf_init_holding, conf_set_holding,
1447                              get_conftype_hold): New fonction.
1448         * example/amanda.conf.in: Example of new holdingdisk value.
1449         * man/xml-source/amanda.8.xml: Example.
1450         * man/xml-source/amanda.conf.5.xml: Document it.
1451         * server-src/amadmin.c (disklist_one): Print holdingdisk value.
1452         * server-src/conffile.c: Parse new CONF_HOLDING type.
1453         * server-src/conffile.h (dumptype_get_to_holdingdisk): Change macro.
1454         * server-src/diskfile.c (parse_diskline): dumptype_get_to_holdingdisk.
1455         * server-src/driver.c: Use new CONFTYPE_HOLDING value.
1456
1457 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
1458         * client-src/selfcheck.c: Fix bug found by coverity.
1459         * common-src/debug.c: Fix bug found by coverity.
1460
1461 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1462         * server-src/amflush.c: Typo.
1463
1464 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1465         * server-src/amflush.c: Correct test for driver_stream.
1466
1467 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1468         * client-src/clientconf.c: Default CLN_AMANDATES to /etc/amandates.
1469         * common-src/util.c (conf_init_size): Type is CONFTYPE_SIZE.
1470         * server-src/conffile.c (getconf_taperalgo): New function.
1471         * server-src/conffile.h (getconf_taperalgo): Prototype.
1472         * server-src/driver.c: Use getconf_taperalgo.
1473
1474 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1475         * client-src/clientconf.c (client_getconf_boolean): New function.
1476         * client-src/clientconf.h (client_getconf_boolean): Prototype.
1477         * server-src/conffile.c (getconf_boolean): New function.
1478         * server-src/conffile.h (getconf_boolean): Prototype.
1479         * restore-src/amidxtaped.c: Use getconf_boolean.
1480         * server-src/amflush.c: Use getconf_boolean.
1481         * server-src/planner.c: Use getconf_boolean.
1482
1483 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1484         * server-src/getconf.c: Don't print BUGGY.
1485         * changer-src/chg-chio.pl.in: Don't parse BUGGY.
1486         * changer-src/chg-iomega.pl.in: Don't parse BUGGY.
1487         * changer-src/chg-zd-mtx.sh.in: Don't parse BUGGY.
1488         * man/xml-source/amgetconf.8.xml: Don't parse BUGGY.
1489         * server-src/amverifyrun.sh.in: Don't parse BUGGY.
1490         * server-src/amverify.sh.in: Don't parse BUGGY.
1491
1492 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1493         * restore-src/restore.c: Cleanup.
1494         * restore-src/amrestore.c: Don't fsf if the last read return 0.
1495
1496 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1497         * client-src/selfcheck.c: Fix bug found by klocwork.
1498         * common-src/rsh-security.c: Fix bug found by klocwork.
1499         * common-src/ssh-security.c: Fix bug found by klocwork.
1500         * server-src/planner.c: Fix bug found by klocwork.
1501
1502 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1503         * tape-src/output-tape.c (tape_tape_open): mt is declared inside #ifdef.
1504
1505 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1506         * server-src/amcheck.c: Fix quoting.
1507
1508 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1509         * client-src/clientconf.c: client_getconf* validate the type.
1510         * common-src/util.c (get_conftype_*): New function.
1511         * common-src/util.h (get_conftype_*): Prototype.
1512         * server-src/conffile.c: getconf* validate the type.
1513         * server-src/conffile.h: Use get_conftype_* function.
1514
1515 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1516         * client-src/clientconf.c: New AMANDATES client config option.
1517         * client-src/clientconf.h: New AMANDATES client config option.
1518         * client-src/amandates.c: Use AMANDATES.
1519         * client-src/amandates.h: Use AMANDATES.
1520         * client-src/selfcheck.c: Use AMANDATES.
1521         * client-src/sendbackup-gnutar.c: Use AMANDATES.
1522         * client-src/sendsize.c:: Use AMANDATES.
1523         * common-src/util.h : New CONF_AMANDATES.
1524         * man/xml-source/amanda-client.conf.5.xml: Document it.
1525
1526 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1527         * client-src/clientconf.c: New GNUTAR_LIST_DIR client config option.
1528         * client-src/clientconf.h: New GNUTAR_LIST_DIR client config option.
1529         * client-src/selfcheck.c: Use GNUTAR_LIST_DIR.
1530         * client-src/sendbackup-gnutar.c: Use GNUTAR_LIST_DIR.
1531         * client-src/sendsize.c: Use GNUTAR_LIST_DIR.
1532         * common-src/util.h: New CONF_GNUTAR_LIST_DIR.
1533         * man/xml-source/amanda-client.conf.5.xml: Document it.
1534
1535 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1536         * client-src/calcsize.c, client-src/killpgrp.c,
1537           client-src/rundump.c, client-src/runtar.c,
1538           client-src/selfcheck.c, client-src/sendbackup.c,
1539           client-src/sendsize.c, common-src/amanda.h,
1540           common-src/debug.c, oldrecover-src/amrecover.c,
1541           recover-src/amrecover.c, restore-src/amfetchdump.c,
1542           restore-src/amidxtaped.c, server-src/amadmin.c,
1543           server-src/amcheck.c, server-src/amcleanupdisk.c,
1544           server-src/amflush.c, server-src/amindexd.c,
1545           server-src/amlabel.c, server-src/amlogroll.c,
1546           server-src/amtape.c, server-src/amtrmidx.c,
1547           server-src/amtrmlog.c, server-src/chunker.c,
1548           server-src/driver.c, server-src/dumper.c,
1549           server-src/getconf.c, server-src/planner.c,
1550           server-src/reporter.c, server-src/taper.c: dbrename ot the config dir.
1551
1552 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1553         * common-src/amanda.h: Define DBG_SUBDIR_SERVER, DBG_SUBDIR_CLIENT
1554                                and DBG_SUBDIR_CLIENT.
1555         * amandad-src/amandad.c, changer-src/chg-scsi.c,
1556           changer-src/chg-scsi-chio.c, client-src/calcsize.c,
1557           client-src/killpgrp.c, client-src/rundump.c, client-src/runtar.c,
1558           client-src/selfcheck.c, client-src/sendbackup.c,
1559           client-src/sendsize.c,
1560           oldrecover-src/amrecover.c, recover-src/amrecover.c,
1561           restore-src/amfetchdump.c, restore-src/amidxtaped.c,
1562           restore-src/amrestore.c, server-src/amadmin.c,
1563           server-src/amcheck.c, server-src/amcleanupdisk.c,
1564           server-src/amflush.c, server-src/amindexd.c,
1565           server-src/amlabel.c, server-src/amlogroll.c,
1566           server-src/amtape.c, server-src/amtrmidx.c,
1567           server-src/amtrmlog.c, server-src/chunker.c,
1568           server-src/diskfile.c, server-src/driver.c,
1569           server-src/dumper.c, server-src/getconf.c,
1570           server-src/infofile.c, server-src/planner.c,
1571           server-src/reporter.c (dbopen): Use DBG_SUBDIR_SERVER,
1572                                          DBG_SUBDIR_CLIENT or DBG_SUBDIR_CLIENT.
1573
1574 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
1575         * client-src/calcsize.c: Get config on argument.
1576         * client-src/killpgrp.c: Get config on argument.
1577         * client-src/rundump.c: Get config on argument.
1578         * client-src/runtar.c: Get config on argument.
1579         * client-src/sendbackup.c: Call program with config as argument.
1580         * client-src/sendbackup-dump.c: Call program with config as argument.
1581         * client-src/sendbackup-gnutar.c: Call program with config as argument.
1582         * client-src/sendbackup.h: Add global g_options.
1583         * client-src/sendsize.c: Call program with config as argument.
1584
1585 2006-07-23  Jean-Louis Martineau <martineau@zmanda.com>
1586         * client-src/sendbackup-gnutar.c: Fix bug found by splint.
1587         * client-src/sendsize.c: Fix bug found by splint.
1588
1589 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
1590         * server-src/taper.c: Fix amfree(mem_splitbuf).
1591
1592 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
1593         * server-src/diskfile.c, server-src/taper.c: Fix memory leak found
1594                                                      by coverity.
1595
1596 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
1597         * server-src/taper.c: Fix split_buffer allocation problem.
1598
1599 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
1600         * client-src/selfcheck.c, common-src/security-util.c,
1601           restore-src/restore.c, server-src/diskfile.c: Fix memory leak found
1602                                                         by coverity.
1603
1604 2006-07-20  Jean-Louis Martineau <martineau@zmanda.com>
1605         * changer-src/chg-scsi.c, changer-src/scsi-changer-driver.c,
1606           client-src/amandates.c, client-src/calcsize.c,
1607           client-src/selfcheck.c, client-src/sendbackup.c,
1608           client-src/sendsize.c, common-src/security-util.c,
1609           recover-src/extract_list.c, restore-src/restore.c,
1610           server-src/amindexd.c, server-src/diskfile.c,
1611           server-src/driver.c, server-src/reporter.c,
1612           server-src/tapefile.c, server-src/taper.c: Fix memory leak found
1613                                                      by coverity.
1614
1615 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
1616         * client-src/selfcheck.c : Read client config file.
1617         * client-src/sendbackup.c: Read client config file.
1618         * client-src/sendsize.c  : Read client config file.
1619
1620 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
1621         * amandad-src/amandad.h (g_option_t): Add 'char *config';
1622         * amandad-src/amandad_util.c (parse_g_options): Parse 'config='.
1623         * common-src/amfeatures.h (fe_req_options_config): New amfeature.
1624         * common-src/amfeatures.c (am_init_feature_set):
1625                                                     set fe_req_options_config.
1626         * server-src/amcheck.c: Send 'config=' in global options.
1627         * server-src/dumper.c: Send 'config=' in global options.
1628         * server-src/planner.c: Send 'config=' in global options.
1629
1630 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
1631         * amandad-src/amandad.c: Call dbopen("amandad").
1632         * changer-src/chg-scsi.c: Call dbopen("server").
1633         * changer-src/chg-scsi-chio.c: Call dbopen("server").
1634         * client-src/calcsize.c: Call dbopen("client").
1635         * client-src/getfsent.c: Call dbopen(NULL).
1636         * client-src/killpgrp.c: Call dbopen("client").
1637         * client-src/rundump.c: Call dbopen("client").
1638         * client-src/runstar.c: Call dbopen("client").
1639         * client-src/runtar.c: Call dbopen("client").
1640         * client-src/selfcheck.c: Call dbopen("client").
1641         * client-src/sendbackup.c: Call dbopen("client").
1642         * client-src/sendsize.c: Call dbopen("client").
1643         * common-src/amanda.h (dbopen, debug_open): Take a 'char * subdir'
1644                                                     argument.
1645         * common-src/bsd-security.c: Call dbopen(NULL).
1646         * common-src/debug.c (debug_open): Call debug_setup_1(subdir)
1647         * common-src/debug.c (debug_setup_1): Take a subdir argument,
1648                                               add it to dbgdir.
1649         * common-src/file.c: Call dbopen(NULL).
1650         * common-src/statfs.c: Call dbopen(NULL).
1651         * common-src/token.c: Call dbopen(NULL).
1652         * oldrecover-src/amrecover.c: Call dbopen("client").
1653         * recover-src/amrecover.c: Call dbopen("client").
1654         * restore-src/amfetchdump.c: Call dbopen("server").
1655         * restore-src/amidxtaped.c: Call dbopen("server").
1656         * restore-src/amrestore.c: Call dbopen("server").
1657         * server-src/amadmin.c: Call dbopen("server").
1658         * server-src/amcheck.c: Call dbopen("server").
1659         * server-src/amcleanupdisk.c: Call dbopen("server").
1660         * server-src/amflush.c: Call dbopen("server").
1661         * server-src/amindexd.c: Call dbopen("server").
1662         * server-src/amlabel.c: Call dbopen("server").
1663         * server-src/amlogroll.c: Call dbopen("server").
1664         * server-src/amtape.c: Call dbopen("server").
1665         * server-src/amtrmidx.c: Call dbopen("server").
1666         * server-src/amtrmlog.c: Call dbopen("server").
1667         * server-src/chunker.c: Call dbopen("server").
1668         * server-src/diskfile.c: Call dbopen("server").
1669         * server-src/driver.c: Call dbopen("server").
1670         * server-src/dumper.c: Call dbopen("server").
1671         * server-src/getconf.c: Call dbopen("server").
1672         * server-src/infofile.c: Call dbopen("server").
1673         * server-src/planner.c: Call dbopen("server").
1674         * server-src/reporter.c: Call dbopen("server").
1675         * server-src/taper.c: Call dbopen("server").
1676
1677 2006-07-17  Jean-Louis Martineau <martineau@zmanda.com>
1678         * server-src/chunker.c: Fix rt computation.
1679         * server-src/dumper.c: Fix dumptime computation.
1680         * server-src/taper.c: Fix rt computation.
1681
1682 2006-07-17  Jean-Louis Martineau <martineau@zmanda.com>
1683         * NEWS: Klocwork defects fixed.
1684         * NEWS: Coverity defect fixed.
1685
1686 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
1687         * Makefile.am (pkgdata_DATA): add ReleaseNotes.
1688
1689 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
1690         * Amanda 2.5.1b1 released.
1691         * configure.in: Remove -Werror.
1692
1693 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
1694         * client-src/sendsize.c: Use read/write to copy tar snapshot file.
1695         * client-src/sendbackup-gnutar.c: Ditto.
1696
1697 2006-07-13  Jean-Louis Martineau <martineau@zmanda.com>
1698         * common-src/stream.c (stream_accept): Loop 5 times on select error.
1699
1700 2006-07-13  Jean-Louis Martineau <martineau@zmanda.com>
1701         * server-src/dumper.c: The datafd is not scheduled at start,
1702                                add test for it.
1703         * common-src/stream.c (tcpm_recv_token): Set error_msg.
1704         
1705 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
1706         * common-src/util.c (free_new_argv): Move out of
1707                                              #ifndef HAVE_LIBREADLINE.
1708
1709 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
1710         * server-src/amadmin.c (tape): Report the number of new tapes instead
1711                                        of "a new tape" for each tapes.
1712         * server-src/reporter.c (output_tapeinfo): Ditto.
1713
1714 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
1715         * server-src/taperscan.c (changer_taper_scan): Report error from
1716                                                        changer_find.
1717
1718 2006-07-11  John Franks jrfranks@zmanda.com
1719         * configure.in: Fix multiple definition of readline during cygwin
1720           compile.
1721
1722 2006-07-11  Paddy Sreenivasan <paddy@zmanda.com>
1723         * common-src/pipespawn.c : Fixed compiler warning
1724
1725 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
1726         * man/xml-source/amtapetype.8.xml: No default value for -e.
1727
1728 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
1729         * common-src/util.c: Don't conftoken_ungetc(ch) if ch == EOF.
1730         * server-src/reporter.c: Check tp == NULL.
1731
1732 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
1733         * tape-src/tapetype.c: Make -e an needed argument.
1734         * man/xml-source/amtapetype.8.xml: Update man page.
1735
1736 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
1737         * changer-src/chg-zd-mtx.sh.in: Remove .conf from changerfile.
1738
1739 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
1740         * recover-src/extract_list.c (check_file_overwrite): Renamed from
1741                                                           check_file_overwite.
1742         * recover-src/extract_list.c (check_file_overwrite): Do the path check
1743           in the correct order (from left ro right).
1744
1745 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
1746         * common-src/file.c (debug_agets): Remove call to dbprintf.
1747
1748 2006-07-10  Jean-Louis Martineau <martineau@zmanda.com>
1749         * recover-src/extract_list.c (add_to_unlink_list, do_unlink_list,
1750                       free_unlink_list): New function to manage unlink_list.
1751         * recover-src/extract_list.c (check_file_overwite): Check all
1752           component of an EXTRACT_LIST_ITEM, if a component is not a
1753           directory, add it to the unlink_list.
1754         * recover-src/extract_list.c (extract_files): Call do_unlink_list and
1755           free_unlink_list, rename buf to cwd.
1756
1757 2006-07-10  Jean-Louis Martineau <martineau@zmanda.com>
1758         * common-src/pipespawn.c (pipespawnv_passwd): Add prototype.
1759         * common-src/pipespawn.c (pipespawn, pipespawn): Remove 2 NULL
1760            parameters to the pipespawnv_passwd call.
1761         * common-src/pipespawn.c (pipespawnv_passwd): Remove passwdvar and
1762            passwdfd parameters, add passwdvar and local variable.
1763            Don't use memcpy to set passwdfd.
1764         * common-src/pipespawn.h (pipespawnv_passwd): Remove prototype.
1765
1766 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
1767         * common-src/security-util.c (stream_read_sync_callback): Remove bogus
1768           call of callback.
1769
1770 2006-07-07  Kevin Till  <ktill@zmanda.com>
1771         * common-src/bsd-security.c: use STREAM_BUFSIZE instead of -1
1772         * common-src/bsdtcp-security.c: ditto
1773         * common-src/krb4-security.c: ditto 
1774         * common-src/security-util.c: ditto
1775         * restore-src/amidxtaped.c: ditto
1776
1777 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
1778         * common-src/util.c (get_conftoken): Remove duplicate conftoken_ungetc.
1779
1780 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
1781         * common-src/security-util.c: Validate and report big packet size.
1782
1783 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
1784         * oldrecover-src/Makefile.am: Typo.
1785
1786 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
1787         * client-src/sendsize.c: Typo.
1788
1789 2006-07-06  John Franks <jrfranks@zmanda.com>
1790         * common-src/genversion.c:
1791                 Remove reference to error().  This causes a compile
1792                 error on cygwin.
1793
1794 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
1795         Klocwork bug 128, 170, 182, 470, 517
1796         * changer-src/chg-scsi.c: Validate drivenum, check count_file.
1797         * client-src/sendsize.c: Validate level.
1798         * oldrecover-src/amrecover.c: Use tm.
1799         * recover-src/amrecover.c: Use tm.
1800         * server-src/infofile.c (delete_txinfofile): Use local variable.
1801
1802 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
1803         * server-src/taper.c: Check for cur_filename.
1804         * tape-src/output-file.c: Use vstrextend.
1805         * tape-src/tapeio.c: Check for r.
1806
1807 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
1808         Fix splint warning
1809         * oldrecover-src/extract_list.c (clean_tape_list): Cleanup for splint.
1810         * recover-src/extract_list.c (clean_tape_list): Cleanup for splint.
1811         * server-src/amindexd.c: Add a /*@i@*/.
1812         * server-src/conffile.c: Cast to off_t for conf_init_am64.
1813         * server-src/driver.c: Cast to unsigned to print pid_t.
1814         * server-src/find.c (strip_failed_chunks): Cleanup for splint.
1815
1816 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
1817         Klocwork bug 114
1818         * server-src/amindexd.c: Free their_feature_string.
1819         Klocwork bug 130
1820         * restore-src/amrestore.c: Test maximum value for rst_flags->blocksize.
1821         Klocwork bug 294
1822         * common-src/genversion.c: Check NULL result of malloc.
1823         Klocwork bug 294
1824         * client-src/selfcheck.c: Check NULL result of fdopen.
1825         Klocwork bug 539, 542
1826         * oldrecover-src/extract_list.c: Fix pfn2->next = fn2.
1827         * recover-src/extract_list.c   : Ditto
1828         Klocwork bug 268, 272, 543, 544
1829         * oldrecover-src/extract_list.c: Check for cmd != NULL.
1830         * recover-src/extract_list.c   : Ditto
1831         Klocwork bug 510
1832         * restore-src/amidxtaped.c: Check for argv != NULL.
1833         Klocwork bug 435
1834         * changer-src/scsi-linux.c: Make buffer one larger.
1835         Klocwork bug 520
1836         * changer-src/scsi-changer-driver.c (OpenDevice): Validate parameters.
1837         Klocwork bug 182
1838         * changer-src/chg-scsi.c (clean_tape): Check usagetime != NULL.
1839
1840 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1841         Klocwork bug 551
1842         * regex-src/regcomp.c (allocset): Check for p->g->sets
1843                                                 and p->g->setbits
1844
1845 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1846         Klocwork bug 169, 170, 181
1847         * changer-src/chg-scsi.c: Validate input.
1848
1849 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1850         Klocwork bug 282
1851         * common-src/file.c (rmpdir): Check for p == NULL.
1852
1853 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1854         Klocwork bug 524
1855         * common-src/dgram.c (dgram_send_addr): Set addr_save earlier.
1856
1857 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1858         Klocwork bug 495
1859         * server-src/taper.c (file_reader_side): Maximum value for
1860                                                  fallback_splitsize.
1861
1862 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1863         Klocwork bug 532
1864         * recover-src/display_commands.c: Check for cmd != NULL.
1865         * oldrecover-src/display_commands.c: Ditto
1866
1867 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1868         Klocwork bug 410
1869         * restore-src/restore.c (restore): Check for tmp_filename.
1870
1871 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1872         Klocwork bug 234
1873         * server-src/driver.c: Check for h and activehd >= 0.
1874
1875 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1876         Klocwork bug 338 and 390
1877         * server-src/reporter.c (handle_partial, handle_strange): Check result
1878           of handle_success.
1879
1880 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1881         Klocwork bug 558
1882         * client-src/selfcheck.c (check_options, check_disk): Check for
1883                                                               calcprog == NULL
1884
1885 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1886         Klocwork bug 521
1887         * client-src/clientconf.c (add_client_conf): Check result of realloc.
1888
1889 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1890         Klocwork bug 447 and 449
1891         * restore-src/restore.c: Check for valid sendbackup request.
1892
1893 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1894         Klocwork bug 407
1895         * restore-src/restore.c (restore): Set statinfo.st_size.
1896
1897 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1898         Klocwork bug 189
1899         * common-src/file.c (sanitise_filename): Never return NULL.
1900
1901 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1902         * amandad-src/Makefile.am:    Remove tape-src and libamtape.
1903         * client-src/Makefile.am:     Remove tape-src and libamtape.
1904         * man/Makefile.am:            Cleanup.
1905         * oldrecover-src/Makefile.am: Remove tape-src and libamtape.
1906         * recover-src/Makefile.am:    Remove tape-src and libamtape.
1907         
1908 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1909         Klocwork bug 236
1910         * server-src/driver.c (handle_dumper_result): Check for
1911                                                       dumper->ev_read != NULL.
1912
1913 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1914         Klocwork bug 553
1915         * restore-src/restore.c (search_a_tape): Check for desired_tape == NULL.
1916
1917 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1918         Klocwork bug 556 and 557
1919         * common-src/security-util.c (bsd_recv_security_ok): Check result of
1920           strtok, check service == NULL.
1921
1922 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1923         Klocwork bug 161
1924         * client-src/calcsize.c (calc_load_file): Return NULL if fopen fail.
1925         * client-src/calcsize.c (main):  check NULL result from calc_load_file.
1926
1927 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1928         Klocwork bug 84
1929         * server-src/amflush.c (main): Check return of lookup_disk.
1930
1931 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1932         Klocwork bug 62, 85, 459, 463, 466, 469, 555, 559
1933         * common-src/security-util.c: Check result of fdopen.
1934         * client-src/sendsize.c     : Ditto.
1935         * server-src/amcheck.c      : Ditto.
1936         * server-src/amflush.c      : Ditto.
1937
1938 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1939         Klocwork bug 159, 375, 377, 379, 508, 509, 513, 519
1940         * common-src/bsd-security.c:    Replace malloc by alloc.
1941         * common-src/bsdudp-security.c: Ditto
1942         * common-src/genversion.c:      Ditto
1943         * recover-src/amrecover.c:      Ditto
1944         * restore-src/amidxtaped.c:     Ditto
1945         * server-src/reporter.c:        Ditto
1946
1947 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1948         Klocwork bug 562 and 475
1949         * recover-src/set_commands.c (cd_dir): Check result of rindex.
1950         * oldrecover-src/set_commands.c (cd_dir): ditto.
1951
1952 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1953         Klocwork bug 552
1954         * restore-src/restore.c (load_manual_tape): Alloc space for cur_tapedev.
1955
1956 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1957         Klocwork bug 406
1958         * restore-src/restore.c (restore): Check for final_filename.
1959
1960 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1961         Klocwork bug 318
1962         * server-src/list_dir.c (add_dir_list_item): Check for cur_list->next.
1963
1964 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1965         Klocwork bug 17, 32
1966         * server-src/amadmin.c (disklist_one): Check localtime return NULL.
1967         * server-src/amadmin.c (info_one)    : Ditto.
1968
1969 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1970         Klocwork bug 2, 83, 128, 384, 478, 504, 505, 506, 517, 566, 567
1971         * server-src/amadmin.c (seqdatestr): Check localtime return NULL.
1972         * common-src/util.c (construct_datestamp, construct_timestamp,
1973                              conf_print):         Ditto.
1974         * oldrecover-src/amrecover.c (main):      Ditto.
1975         * oldrecover-src/uscan.l (ll_parse_date): Ditto.
1976         * recover-src/amrecover.c (main):         Ditto.
1977         * recover-src/uscan.l (ll_parse_date):    Ditto.
1978         * server-src/amflush.c (main):            Ditto.
1979         * server-src/reporter.c (handle_success): Ditto.
1980
1981 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1982         Klocwork bug 470
1983         * client-src/sendsize.c (add_diskest): Check for level value.
1984
1985 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1986         Klocwork bug 372
1987         * server-src/reporter.c (nicedate): Check month value.
1988
1989 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1990         Klocwork bug 20
1991         * server-src/amadmin.c (tape): Limit nb_days to 10000.
1992
1993 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1994         Klocwork bug 21
1995         * server-src/amadmin.c (balance): Test 'later' after it is set.
1996
1997 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
1998         * common-src/alloc.c (internal_vstralloc): Don't return NULL.
1999
2000 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
2001         * server-src/infofile.c (open_txinfofile): Use local variable.
2002
2003 2006-06-29  Jean-Louis Martineau <martineau@zmanda.com>
2004         * restore-src/restore.c (label_of_current_slot): Close the tapefd if
2005                                                          the label mismatch.
2006
2007 2006-06-29  Jean-Louis Martineau <martineau@zmanda.com>
2008         * server-src/find.c (strip_failed_chunks):
2009           - Get a **output_find as parameter.
2010           - Check the label before remove a valid chunk.
2011           - Memory management fix.
2012
2013 2006-06-28  Jean-Louis Martineau <martineau@zmanda.com>
2014         * common-src/security-util.c: Improve message for .amandahosts.
2015
2016 2006-06-27  Ian Turner <ian@zmanda.com>
2017         * common-src/fileheader.c: Fix a bug where spanned dumps would 
2018           always fail.
2019
2020 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
2021         * server-src/amcheck.c: Fix test for holdingdisk negative size.
2022
2023 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
2024         * configure.in: Don't set DEFAULT_TAPE_DEVICE if it is not set.
2025         * client-src/clientconf.c: Work DEFAULT_TAPE_DEVICE not set.
2026         * common-src/genversion.c: Work DEFAULT_TAPE_DEVICE not set.
2027         * recover-src/amrecover.c: Work DEFAULT_TAPE_DEVICE not set.
2028         * server-src/getconf.c:    Work DEFAULT_TAPE_DEVICE not set.
2029
2030 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
2031         Patch by Paul Bijnens
2032         * server-src/amcheck.c: Check for access(hdp->diskdir, X_OK).
2033
2034 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
2035         * server-src/conffile.c (getconf_byname): Check for kt->keyword != NULL.
2036         * client-src/clientconf.c (client_getconf_byname): Ditto
2037
2038 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2039         * recover-src/extract_list.c: check_file_overwite.
2040
2041 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2042         * recover-src/extract_list.c: Do the cleanup of the extract list
2043                                       at the extraction time
2044         * oldrecover-src/extract_list.c: Ditto.
2045
2046 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2047         * NEWS: Add new features.
2048         * ReleasesNotes: New files.
2049
2050 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2051         * docs/Makefile.am (pkgdata_DATA): Add amaespipe.8.txt amcrypt.8.txt
2052           amcrypt-asym-ossl.8.txt amcrypt-ossl.8.txt amfetchdump.8.txt
2053         * docs/amaespipe.8.txt: New file.
2054         * docs/amcrypt.8.txt: New file.
2055         * docs/amcrypt-asym-ossl.8.txt: New file.
2056         * docs/amcrypt-ossl.8.txt: New file.
2057         * docs/amfetchdump.8.txt: New file.
2058
2059 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2060         * docs/Makefile.am (pkgdata_DATA): Add howto-auth.txt.
2061         * docs/howto-auth: Documentation on auth.
2062         * docs/*.txt: Update from xml-docs
2063
2064 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2065         * man/xml-source/amanda.conf.5.xml: Add notes about bsdudp and bsdtcp.
2066         * man/xml-source/amanda-client.conf.5.xml: Ditto.
2067
2068 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2069         * recover-src/extract_list.c (is_empty_dir): New function.
2070         * recover-src/extract_list.c: Print a warning if cwd is not empty.
2071
2072 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2073         * server-src/amadmin.c: Allow 'p' and 'P' in --sort argument.
2074
2075 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2076         * server-src/amadmin.c: Print errstr returned by match_disklist.
2077         * server-src/amcheck.c: Print errstr returned by match_disklist.
2078         * server-src/amflush.c: Print errstr returned by match_disklist.
2079         * server-src/diskfile.c (match_disklist): Return an error str.
2080         * server-src/diskfile.h (match_disklist): New prototype.
2081         * server-src/planner.c: Print errstr returned by match_disklist.
2082         * server-src/reporter.c: Accept host/disk as arguments.
2083
2084 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2085         * server-src/amindexd.c (uncompress_file): Set LC_ALL=C before
2086                                                    executing sort.
2087
2088 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2089         * server-src/driver.c (wait_children, kill_children): New function.
2090         * server-src/driver.c (wait_for_children): Use wait_children and
2091                                                    kill_children.
2092         * server-src/driver.c (main): Use wait_children.
2093         * server-src/driverio.c (taper_cmd, chunker_cmd): Close socket on QUIT
2094                                                           or ABORT command.
2095
2096 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2097         * common-src/amfeatures.c (am_init_feature_set): Set
2098           fe_amrecover_feedme_tape.
2099         * common-src/amfeatures.h (fe_amrecover_feedme_tape): New amfeatures.
2100         * common-src/fileheader.c (print_header): Fix.
2101         * recover-src/extract_list.c: Use fe_amrecover_feedme_tape.
2102         * restore-src/amfetchdump.c: Print error if get_lock == 0.
2103         * restore-src/amidxtaped.c: Call send_message if get_lock == 0.
2104         * restore-src/restore.c: Split search_tapes in 5 functions.
2105         * restore-src/restore.h (send_message): prototype.
2106
2107 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2108         * man/xml-source/amfetchdump.8.xml: Document -O and new -o.
2109         * restore-src/amfetchdump.c: Replace -o by -O
2110
2111 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
2112         * client-src/clientconf.c (parse_client_conf): Fix segmentation fault.
2113         * server-src/conffile.c (parse_server_conf): Fix segmentation fault.
2114
2115 2006-06-21  Kevin Till <ktill@zmanda.com>
2116         * changer-src/chg-juke.sh.in
2117         * changer-src/chg-manual.sh.in
2118         * changer-src/chg-mcutil.sh.in
2119         * changer-src/chg-multi.sh.in
2120         * changer-src/chg-mtx.sh.in
2121         * changer-src/chg-rait.sh.in
2122         * changer-src/chg-disk.sh.in
2123         * changer-src/chg-zd-mtx.sh.in
2124         * changer-src/chg-null.sh.in
2125         * changer-src/chg-chs.sh.in
2126         * client-src/patch-system.sh.in
2127         * amplot/amplot.sh.in
2128         * server-src/amcrypt-ossl.sh.in
2129         * server-src/amrmtape.sh.in
2130         * server-src/amcleanup.sh.in
2131         * server-src/amverifyrun.sh.in
2132         * server-src/amaespipe.sh.in
2133         * server-src/amdump.sh.in
2134         * server-src/amcrypt.sh.in
2135         * server-src/amcrypt-ossl-asym.sh.in
2136         * server-src/amcheckdb.sh.in
2137         * server-src/amfreetapes.sh.in
2138         * server-src/amverify.sh.in
2139          change /bin/sh to @SHELL@ for configure to pick up the correct
2140          shell. Sourceforge bug 1466655
2141         * man/xml-source/amcrypt-ossl-asym.8.xml: it's backup-privkey.pem
2142
2143 2006-06-20  Kevin Till <ktill@zmanda.com>
2144         * common-src/security-util.c: ignore EINTR in net_writev
2145           patch by Jean-Louis Martineau.
2146
2147 2006-06-20  John Franks <jrfranks@zmanda.com>
2148         * server-src/conffile.c:
2149                 Remove Duplicate keyword table entries and alphabetize
2150                 to make future duplicates easier to spot...
2151
2152         * server-src/taper.c:
2153                 Fix compiler warnings when no mmap function is present.
2154
2155 2006-06-20  John Franks <jrfranks@zmanda.com>
2156         * server-src/diskfile.c:
2157                 Default boolean values without parameters to yes if
2158                 no value is present in configuration file.  This
2159                 maintains backward compatibility and is logical since
2160                 a value such as "index" reads as an assertion of fact.
2161
2162 2006-06-19  Jean-Louis Martineau <martineau@zmanda.com>
2163         * docs/wishlist.txt: Remove features done in 2.5.0/2.5.1
2164
2165 2006-06-19  Jean-Louis Martineau <martineau@zmanda.com>
2166         * man/xml-source/amanda.conf.5.xml: amrecover_check_label and
2167                                             amrecover_do_fsf default to yes.
2168         * server-src/conffile (init_dumptype_defaults): DUMPTYPE_INDEX set to 1.
2169         * server-src/diskfile.c (parse_diskline): index set from
2170                                                   dumptype_get_index.
2171
2172 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
2173         * server-src/amstatus.pl.in: Match quotes in DONE line.
2174
2175 2006-06-16  Kevin Till <ktill@zmanda.com>
2176         * example/amanda-client.conf.in:
2177          correct DEFAULT_TAPE_SERVER/DEFAULT_SERVER
2178         * server-src/amcrypt-ossl-asym.sh.in:
2179           set RANDFILE for openssl to place entropy file.
2180         * server-src/amcrypt-ossl.sh.in: ditto
2181
2182 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
2183         * amandad-src/amandad.c   : Use strcasecmp to compare auth.
2184         * client-src/selfcheck.c  : Ditto
2185         * client-src/sendbackup.c : Ditto
2186         * restore-src/amidxtaped.c: Ditto
2187         * server-src/amindexd.c   : Ditto
2188
2189 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
2190         * server-src/amindexd.c (reply, lreply, fast_lreply): Correct use
2191           of arglist_start and arglist_end..
2192         * server-src/amindexd.c (lreply_backend): Remove function.
2193
2194 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
2195         * common-src/bsd-security.c (stream_read_callback): Send error to the
2196                                                             callback.
2197
2198 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
2199         * recover-src/extract_list.c: Typo.
2200         * restore-src/restore.c: Typo.
2201
2202 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
2203         * client-src/clientconf.c: Allow include.
2204         * client-src/clientconf.c (read_confline): Don't crash.
2205         * server-src/conffile.c (read_confline): Don't crash.
2206         * recover-src/amrecover.c: Exit if error in conf file.
2207
2208 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
2209         * common-src/arglist.h: Typo.
2210         * recover-src/extract_list.c: handle MESSAGE from amidxtaped.
2211
2212 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
2213         * common-src/amfeatures.c (am_init_feature_set): Set
2214                                                          fe_amrecover_message.
2215         * common-src/amfeatures.h (am_feature_e): Add fe_amrecover_message.
2216         * common-src/arglist.h (printf_arglist_function3): Prototype.
2217
2218 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
2219         * restore-src/restore.c (send_message): New function that send message
2220                                                 to stderr and/or amrecover.
2221         * restore-src/restore.c: Call send_message on some error path.
2222
2223 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
2224         * common-src/event.c (event_loop_wait, event_wait): Take an
2225                                          event_handle_t * as parameter.
2226         * common-src/event.h: New prototype.
2227         * common-src/bsd-security.c: Call event_wait(bs->ev_read).
2228         * common-src/krb4-security.c: Call event_wait(ks->ev_read).
2229         * common-src/krb5-security.c: Call event_wait(ks->ev_read).
2230         * common-src/security-util.c: Call event_wait(ss->ev_read).
2231
2232 2006-06-15  Kevin Till <ktill@zmanda.com>
2233         * man/xml-source/amcrypt-ossl-asym.8.xml: it's .am_passphrase
2234         * server-src/amcrypt-ossl-asym.sh.in: export PATH
2235         * server-src/amcrypt-ossl.sh.in: export PATH
2236
2237
2238 2006-06-15  Jean-Louis Martineau <martineau@zmanda.com>
2239         * server-src/amcheck.c: -w doesn't change the test selection.
2240         * man/xml-source/amcheck.8.xml
2241
2242 2006-06-15  Jean-Louis Martineau <martineau@zmanda.com>
2243         * server-src/planner.c: Log empty disklist and no DLE selected.
2244
2245 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
2246         * common-src/bsd-security.c: Use %u to print in_port_t data.
2247         * common-src/bsdudp-security.c: Ditto.
2248
2249 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
2250         * changer-src/chg-disk.sh.in: Return the number of slot in output of
2251                                       the -info command.
2252         * changer-src/chg-zd-mtx.sh.in: Ditto.
2253
2254 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
2255         * changer-src/chg-zd-mtx.sh.in: Accept changerfile that already
2256                                         have the .conf suffix.
2257
2258 2006-06-13  Jean-Louis Martineau <martineau@zmanda.com>
2259         * amandad-src/amandad.c (s_ackwait): Resend the REP on receive of a
2260                                              duplicate REQ.
2261
2262 2006-06-13  Jean-Louis Martineau <martineau@zmanda.com>
2263         * common-src/security-util.c (bsd_recv_security_ok): Set error only
2264           if we get an error.
2265
2266 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
2267         * server-src/driver.c: usetimestamps is a warning.
2268
2269 2006-06-12  Kevin Till <ktill@zmanda.com>
2270         * common-src/security-util.c: if host is 127.0.0.1 and either
2271           localhost or localhost.domain is in .amandahost, hostmatch passes.
2272         * common-src/security-util.h: update check_user_amandahosts prototype
2273
2274 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
2275         * amandad-src/amandad.c (process_writenetfd): Close the pipe if the
2276                                                       security_stream is closed.
2277         * recover-src/extract_list.c: Improve message if we don't get thei
2278                                       FEATURE line from amidxtaped.
2279
2280 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
2281         * recover-src/amrecover.c: Read amanda-client.conf and
2282                                    <conf>/amanda-client.conf.
2283
2284 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
2285         * common-src/security-util.c, common-src/tapelist.c,
2286           restore-src/restore.c, server-src/amcheck.c, server-src/amindexd.c,
2287           server-src/amtape.c, server-src/changer.c, server-src/driver.c,
2288           server-src/planner.c, server-src/taper.c,
2289           server-src/taperscan.c: Fix memory leak.
2290
2291 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
2292         * restore-src/restore.c: Fix Adding at end of list.
2293
2294 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
2295         * server-src/taper.c (syncpipe_putstr): Don't crash if str is NULL.
2296
2297 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
2298         * server-src/holding.c (pick_datestamp): Fix reading user input.
2299
2300 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
2301         * recover-src/amrecover.c (sigint_handler): Call send_command only if
2302                                                     amindexd is alive.
2303
2304 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
2305         * common-src/util.c (connect_port): ETIMEDOUT is a fatal error.
2306
2307 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
2308         * common-src/stream.c (stream_client_internal): Get errno set
2309                                                         correctly.
2310         * server-src/driver.c (handle_chunker_result): Don't assert(0) on
2311                               receive of a TRYAGAIN from a chunker, but set
2312                               chunker->result.
2313         * server-src/dumper.c: Try gethostbyname("localhost") before calling
2314                                stream_client and log appropriate message.
2315
2316 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
2317         * server-src/amcheck.c: Report ERROR if gethostbyname("localhost")
2318                                 doesn't succeed.
2319
2320 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
2321         * client-src/clientconf.c (add_client_conf): New function to map
2322                                                      normal option to their
2323                                                      -o equivalent.
2324         * client-src/clientconf.h (add_client_conf): Prototype.
2325         * man/xml-source/amrecover.8.xml: Document -o.
2326         * recover-src/amrecover.c: Also read <config>/amanda-client.conf
2327
2328 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
2329         * server-src/diskfile.c (parse_diskline): Only return 0 or -1.
2330
2331 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
2332         * amandad-src/amandad.h (g_option_t): Add auth.
2333         * amandad-src/amandad_util.c (init_g_options): Set auth to NULL.
2334         * amandad-src/amandad_util.c (parse_g_options): Parse auth.
2335         * amandad-src/amandad_util.c (free_g_options): Free auth.
2336         * client-src/sendbackup.c: Get amandad_auth from command line and
2337                                    compare with REQ packet.
2338         * common-src/amfeatures.h (fe_amindexd_options_hostname,
2339                                    fe_amindexd_options_features,
2340                                    fe_amindexd_options_auth,
2341                                    fe_amidxtaped_options_hostname,
2342                                    fe_amidxtaped_options_features,
2343                                    fe_amidxtaped_options_auth): New amfeatures.
2344         * common-src/amfeatures.c (am_init_feature_set): Set new amfeatures.
2345         * recover-src/amrecover.c: Send auth in OPTIONS of req packet.
2346         * recover-src/extract_list.c: Send auth in OPTIONS of req packet.
2347         * restore-src/amidxtaped.c: Parse amandad_auth from command line.
2348                                     Get auth from OPTIONS line.
2349                                     Compare them.
2350         * server-src/amindexd.c: Parse amandad_auth from command line.
2351                                  Get auth from OPTIONS line.
2352                                  Compare them.
2353
2354 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
2355         * common-src/util.c(connect_port): Return -2 on ECONNREFUSED error
2356                                            from connect.
2357
2358 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
2359         * amandad-src/amandad.c: exec the service with the auth as parameter.
2360         * amandad-src/amandad.c(writebuf): Do no close fd.
2361         * client-src/selfcheck.c: Read the auth for the command line and
2362                                   compare with the option string.
2363         * client-src/selfcheck.c(main): Do no close 0,1,2 fd.
2364
2365 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
2366         * man/xml-source/amanda.8.xml(CONFIGURATION OVERWRITE): New section.
2367         * man/xml-source/amadmin.8.xml,   man/xml-source/amcheck.8.xml,
2368           man/xml-source/amdump.8.xml,    man/xml-source/amflush.8.xml,
2369           man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml,
2370           man/xml-source/amreport.8.xml,
2371           man/xml-source/amrestore.8.xml: Add -o option.
2372
2373 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
2374         * common-src/util.c(get_conftoken): Merge from zmanda.
2375
2376 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
2377         * common-src/util.c(get_conftoken): Remove a conftoken_ungetc.
2378
2379 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
2380         * common-src/bsd-security.c (stream_read_callback): Merge with zmanda.
2381
2382 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
2383         * amandad-src/amandad.c(process_writenetfd): Call security_stream_read
2384                                                      only if size > 0.
2385
2386 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
2387         * server-src/conffile.c (lookup_interface): Fix merge error.
2388
2389 2006-06-07  John Franks <jrfranks@zmanda.com>
2390         * common-src/amanda.h:
2391                 Fix isnormal() replacement macro to indirectly
2392                 check if a floating point value is != 0.0.
2393                 This prevents compiler warnings.
2394
2395 2006-06-07  John Franks <jrfranks@zmanda.com>
2396         * common-src/util.c
2397                 Put in "/* NOTREACHED */" comments after error() calls.
2398         * server-src/diskfile.c
2399                 Change disktype index default to yes for backward compatibility.
2400
2401 2006-06-06  John Franks <jrfranks@zmanda.com>
2402         * amandad-src/amandad.c common-src/bsd-security.c:
2403                 Correct fix for infinite amandad loop.
2404
2405 2006-06-06  John Franks <jrfranks@zmanda.com>
2406         * common-src/stream.c common-src/util.c:
2407                 Lint clean again.
2408         * server-src/conffile.c:
2409                 Remove replicated line
2410
2411 2006-06-06  Jean-Louis Martineau <martineau@zmanda.com>
2412         * common-src/util.c (conftoken_ungetc): Return the character.
2413         * common-src/util.c (get_conftoken): Merge to allow escape character.
2414         * common-src/util.c (read_block): Allow STRING as IDENT.
2415         * server-src/conffile.c (getconf_long, getconf_size): New function.
2416         * server-src/conffile.c: Cleanup after Merge.
2417
2418 2006-06-06  Jean-Louis Martineau <martineau@zmanda.com>
2419         * server-src/amadmin.c, server-src/amcheck.c, server-src/amflush.c,
2420           server-src/amlabel.c, server-src/amlogroll.c, server-src/amtrmidx.c,
2421           server-src/amtrmlog.c, server-src/getconf.c,
2422           server-src/reporter.c: Usage -o
2423         * server-src/amflush.c, server-src/amlogroll.c, server-src/amtrmidx.c,
2424           server-src/amtrmlog.c, server-src/chunker.c, server-src/driver.c,
2425           server-src/dumper.c, server-src/getconf.c, server-src/planner.c,
2426           server-src/reporter.c,
2427           server-src/taper.c: Add call to report_bad_conf_arg.
2428         * server-src/conffile.c(get_comprate, get_compress): Parse CONF_END.
2429
2430 2006-06-06  John Franks <jrfranks@zmanda.com>
2431         * configure.in:
2432                 Increase checking level from 1 to 2 for SUN lint.
2433         * client-src/amandates.c client-src/clientconf.c
2434           common-src/security-util.c recover-src/amrecover.c
2435           recover-src/extract_list.c regex-src/regcomp.c server-src/amcheck.c
2436           server-src/amlabel.c server-src/chunker.c server-src/conffile.c
2437           server-src/conffile.h server-src/diskfile.c server-src/diskfile.h
2438           server-src/driver.c server-src/holding.c server-src/reporter.c
2439           server-src/tapefile.c server-src/taper.c tape-src/amdd.c:
2440                 Lint clean again.
2441         * common-src/util.h common-src/util.c:
2442                 Lint clean again.
2443                 Add missing conftype size.
2444         * common-src/bsd-security.c
2445                 Fix infinte loop which consumes all /tmp space and 1/2
2446                 the CPU time when EOF is reached on socket.
2447
2448 2006-06-05  Paddy Sreenivasan <paddy@zmanda.com>
2449         * common-src/util.c: Fix warning
2450
2451 2006-06-05  Jean-Louis Martineau <martineau@zmanda.com>
2452         * restore-src/amfetchdump.c, server-src/amcheck.c,
2453           server-src/amcheckdb.sh.in, server-src/amcleanup.sh.in,
2454           server-src/amdump.sh.in, server-src/amflush.c,
2455           server-src/amlabel.c, server-src/amlogroll.c,
2456           server-src/amtrmidx.c, server-src/amtrmlog.c,
2457           server-src/chunker.c, server-src/conffile.c,
2458           server-src/diskfile.c, server-src/driver.c,
2459           server-src/driverio.c, server-src/dumper.c,
2460           server-src/getconf.c, server-src/planner.c,
2461           server-src/reporter.c, server-src/taper.c,
2462           server-src/taperscan.c: Allow -o options and some memory fix.
2463         * server-src/conffile.c(lookup_dumptype, lookup_tapetype,
2464           lookup_interface): Use strcasecmp.
2465
2466 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
2467         * common-src/stream.c (stream_client_internal): Use connect_portrange.
2468         * common-src/util.c (connect_portrange): First, try to connect with a
2469                                                  port already used.
2470         * common-src/util.c (connect_port): Try to connect with a specific port.
2471         * common-src/util.h: Cleanup.
2472
2473 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
2474         * server-src/reporter.c: Remove empty if.
2475
2476 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
2477         * common-src/util.c (read_block): Don't read CONF_NL aftre the '{'.
2478         * server-src/conffile.c(get_holdingdisk, get_tapetype, get_interface):
2479           Read a CONF_NL after the call to read_block.
2480         * server-src/conffile.c(read_dumptype): Read a CONF_NL if we are not
2481                                                 called from diskfile.
2482         * server-src/diskfile.c: Don't loop on empty line after read_dumptype.
2483
2484 2006-06-01  Kevin Till  <ktill@zmanda.com>
2485         * server-src/amcrypt-ossl.sh.in: symmetric encrypt script using openSSL.
2486           Thanks to Ben Slusky.
2487         * server-src/amcrypt-ossl-asym.sh.in: public-ley encrypt script using openSSL.
2488         * man/xml-source/amcrypt-ossl.8.xml: man page
2489         * man/xml-source/amcrypt-ossl-asym.8.xml: man page
2490         * configure.in: ditto
2491         * man/Makefile.am: ditto
2492         * man/entities/global.entities: ditto
2493         * server-src/Makefile.am: ditto
2494
2495 2006-06-01  John Franks <jfranks@zmanda.com>
2496         Eliminate Cygwin compile warnings.
2497         * client-src/getfsent.c:  Quiet unused parameter warnings.
2498         * client-src/selfcheck.c: Quiet unused parameter warnings.
2499         * common-src/security-util.h: Make hostname const char *.
2500
2501 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
2502         * server-src/amcheck.c: holdingdisk_get_disksize() return an off_t.
2503         * server-src/find.c: result should be ssize_t.
2504
2505 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
2506         * common-src/amanda.h: Remove am64_t.
2507         * client-src/clientconf.c, client-src/clientconf.h, common-src/util.c,
2508           common-src/util.h, server-src/conffile.c, server-src/conffile.h:
2509           Second pass of config cleanup, add function to parse -o argument.
2510         * recover-src/amrecover.c: -o command argument.
2511         * restore-src/restore.c: Use off_t instead of am64_t.
2512         * server-src/amadmin.c: New config subcommand. -o command argument.
2513         * server-src/amlabel.c: Fix memory leak.
2514         * server-src/diskfile.c: Fix memory leak.
2515         * server-src/diskfile.h: Rename no_hold to to_holdingdisk.
2516         * server-src/driver.c: Many.
2517         * server-src/planner.c: am64_t to off_t.
2518
2519 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
2520         This is the first pass of a general rewrite of configuration file
2521         parsing, It will now use array to store all options.
2522
2523         * client-src/clientconf.c:
2524         * client-src/clientconf.h:
2525         * server-src/conffile.c:
2526         * server-src/conffile.h:
2527         * common-src/util.c: Many new functions.
2528         * common-src/util.h:
2529
2530         * restore-src/amidxtaped.c, server-src/amcheck.c,
2531           server-src/amcleanupdisk.c, server-src/amlabel.c,
2532           server-src/diskfile.c, server-src/driver.c, server-src/driverio.c,
2533           server-src/find.c, server-src/holding.c, server-src/planner.c,
2534           server-src/reporter.c,
2535           server-src/taper.c: Use new macro to get configuration option.
2536
2537 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
2538         * amandad-src/amandad.c, client-src/amandates.c, client-src/noop.c,
2539           client-src/selfcheck.c, client-src/sendsize.c,
2540           common-src/bsd-security.c, common-src/bsdtcp-security.c,
2541           common-src/bsdudp-security.c, common-src/fileheader.c,
2542           common-src/rsh-security.c, common-src/security-util.c,
2543           common-src/security-util.h, common-src/ssh-security.c,
2544           recover-src/extract_list.c, server-src/amcheck.c,
2545           server-src/amindexd.c, server-src/amlogroll.c,
2546           server-src/diskfile.c, server-src/driver.c, server-src/dumper.c,
2547           server-src/find.c, server-src/logfile.c, server-src/planner.c,
2548           server-src/reporter.c,
2549           server-src/tapefile.c: Fix memory and fd leak.
2550
2551 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
2552         * server-src/find.c (search_holding_disk): Take the datestamp from the
2553           file, not the directory name, otherwise usetimestamps=no doesn't
2554           work.
2555
2556 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
2557         * common-src/stream.c (stream_server): New priv parameter if we want
2558                                                a reserved port. Don't try to
2559                                                get a reserved port if priv==0.
2560         * common-src/stream.h (stream_server): New prototype.
2561         * common-src/bsd-security.c: Call stream_server with priv==0.
2562         * common-src/krb4-security.c: Call stream_server with priv==1.
2563         * common-src/security-util.c: Call stream_server with priv==0.
2564         * restore-src/amidxtaped.c: Call stream_server with priv==0.
2565         * server-src/chunker.c: Call stream_server with priv==0.
2566         * server-src/taper.c: Call stream_server with priv==0.
2567
2568 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
2569         * server-src/diskfile.c: Return -1 if open of diskfile failed.
2570         * server-src/driver.c: Change message if didn't get a DATE line.
2571         * server-src/reporter.c: Ignore faillure in reading amanda.conf
2572                                  disklist and tapelist.
2573
2574 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
2575         * man/xml-source/amanda.8.xml: Documents service in .amandahosts.
2576
2577 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
2578         Previous patch doesn't work because 'make -j2' will use fd 3.
2579         * amandad-src/Makefile.am: Use a temporary file for output of
2580                                    'make listlibsrc'.
2581         * changer-src/Makefile.am: Ditto.
2582         * client-src/Makefile.am: Ditto.
2583         * common-src/Makefile.am: Ditto.
2584         * oldrecover-src/Makefile.am: Ditto.
2585         * recover-src/Makefile.am: Ditto.
2586         * restore-src/Makefile.am: Ditto.
2587         * server-src/Makefile.am: Ditto.
2588         * tape-src/Makefile.am: Ditto.
2589
2590 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
2591         * amandad-src/Makefile.am: 'make listlibsrc' send it's ouput to fd 3.
2592         * changer-src/Makefile.am: Ditto.
2593         * client-src/Makefile.am: Ditto.
2594         * common-src/Makefile.am: Ditto.
2595         * oldrecover-src/Makefile.am: Ditto.
2596         * recover-src/Makefile.am: Ditto.
2597         * restore-src/Makefile.am: Ditto.
2598         * server-src/Makefile.am: Ditto.
2599         * tape-src/Makefile.am: Ditto.
2600
2601 2006-05-28  Paddy Sreenivasan <paddy@zmanda.com>
2602         * tape-src/tapeio.c : Fixed warnings
2603         * tape-src/output-rait.c : Fixed warnings
2604         * tape-src/output-null.c : Fixed warnings
2605         * tape-src/output-file.c : Fiexed warnings
2606         * recover-src/amrecover.c: Fixed warnings
2607         * recover-src/extract_list.c : Fixed warnings
2608         * server-src/amadmin.c : Fixed warnings
2609         * server-src/driver.c : Fixed warnings
2610         * server-src/infofile.c : Fixed warnings
2611
2612 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
2613         * server-src/conffile.c (read_dumptype): Parse SSH_KEYS.
2614
2615 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
2616         * common-src/security-util.c (udp_inithandle): Remove bad merge.
2617         * server-src/amindexd.c: Improve error message.
2618         * server-src/planner.c: Add a space in output.
2619
2620 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
2621         * server-src/conffile.c: Set dpcur.no_hold correctly,
2622                                  Fix for conffile program.
2623
2624 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
2625         Allow many services to share the same tcp connection for
2626         bsdtcp/ssh/rsh.
2627         Add a security_close_connection to the security-api.
2628         * amandad-src/amandad.c (wait_30s, exit_on_qlength): New variable to
2629                                         control auth specific behaviour.
2630         * common-src/bsd-security.c: Add sec_close_connection_none.
2631         * common-src/bsdudp-security.c: Add sec_close_connection_none.
2632         * common-src/krb4-security.c: Add sec_close_connection_none.
2633         * common-src/krb5-security.c: Add sec_close_connection_none.
2634         * common-src/security.h (security_close_connection): Prototype.
2635         * common-src/security-util.h (sec_close_connection_none,
2636                                       tcpm_close_connection): Prototype.
2637         * common-src/security-util.h (struct tcp_conn): Add toclose.
2638         * common-src/security-util.h (struct sec_stream): Add closed_by_me and
2639                                                           closed_by_network.
2640         * common-src/security-util.c (sec_close_connection_none,
2641                                       tcpm_close_connection): New function.
2642         * common-src/security-util.c: Handle many services on one connection.
2643         * common-src/bsdtcp-security.c: Handle many services on one connection.
2644         * common-src/rsh-security.c: Handle many services on one connection.
2645         * common-src/ssh-security.c: Handle many services on one connection.
2646         * recover-src/amrecover.c: Add call security_close_connection.
2647         * recover-src/extract_list.c: Add call security_close_connection.
2648         * server-src/amcheck.c: Add call security_close_connection.
2649         * server-src/dumper.c: Add call security_close_connection.
2650
2651 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
2652         * common-src/security-util.c (bsd_prefix_packet): We need the username
2653           of the getuid() user.
2654
2655 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
2656         * common-src/fileheader.c: Parse datestamp on F_TAPEEND.
2657         * restore-src/amrestore.c: Set read_result to the result of
2658                                    read_file_header.
2659         * restore-src/restore.c (read_file_header): Return a ssize_t.
2660                         Rename bytes_read by read_result.
2661                         Set read_result to the result of read_file_header.
2662         * restore-src/restore.h (read_file_header): New prototype.
2663
2664 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2665         * server-src/taperscan.c: Replace bogus newvstralloc by vstrextend.
2666
2667 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2668         * client-src/getfsent.c (print_entry): Add prototype.
2669         * common-src/token.c (main): Shut up compiler warning.
2670         * server-src/infofile.c (dump_rec, dump_db): Add prototype.
2671
2672 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2673         * amandad-src/amandad.c, common-src/bsd-security.c,
2674           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
2675           common-src/event.c, common-src/krb5-security.c,
2676           common-src/protocol.c, common-src/rsh-security.c,
2677           common-src/security-util.c, common-src/ssh-security.c,
2678           common-src/util.c, server-src/driver.c: comment debugging.
2679
2680 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2681         * common-src/security-util.c: typo.
2682         * server-src/amcheck.c: Make sure all check are done.
2683
2684 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2685         Fix for program not compiled by default.
2686         make bsdsecurity still not compile.
2687         * common-src/bsd-security.c(bind_portrange): prototype change.
2688         * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add match.o.
2689         * server-src/conffile.c: Many typo.
2690         * tape-src/tapeio.c: Use OFF_T_FMT and SSIZE_T_FMT when needed, typo.
2691         
2692 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2693         * common-src/fileheader.c (validate_datestamp): Works for 8 characters
2694                                                         datestamp.
2695         * common-src/security-util.c (tcpm_send_token): netlength must be
2696                                                         uint32_t.
2697         * common-src/security-util.c (bsd_prefix_packet): Fix typo.
2698         * common-src/util.c (get_time): Don't do computation for starttime.
2699         * server-src/conffile.c (read_dumptype): Do computation for starttime.
2700
2701 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2702         * common-src/krb5-security.c (krb5_sendpkt, krb5_stream_read_sync,
2703                                       recv_token): Return ssize_t.
2704         * common-src/krb5-security.c (krb5_accept, krb5_stream_accept,i
2705                                       krb5_stream_auth): Shut up compiler.
2706         * tape-src/output-file.c: Use SSIZE_MAX instead of SSIZE_T_MAX.
2707
2708 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
2709         * configure.in(AM_INIT_AUTOMAKE): Fix.
2710
2711 2006-05-25  John Franks <jrfranks@zmanda.com>
2712         Pass user CFLAGS correctly to machine generated code and do not
2713         enforce code quality checks on them.
2714         * configure.in:
2715           Put compiler code check flags into existing, but previously
2716           unused, AM_CFLAGS for Makefiles to pick up.  CFLAGS should
2717           now only contain mandatory flags.
2718
2719         * recover-src/Makefile.am  oldrecover-src/Makefile.am:
2720           Use CFLAGS for compiling C code generated from uparse.y and uscan.l
2721
2722 2006-05-24  John Franks <jrfranks@zmanda.com>
2723         Add support for binary path names on disk and in configuration files.
2724            (Allow spaces in filenames.)
2725
2726         Allow quoted strings for disklist entries.
2727
2728         Lint clean code using sun lint, splint and strict GCC warnings. 
2729         Type / size clean, dead code removal, portibility checks, etc.
2730         Many checks are still turned off.  See configure.in for lint flags used.
2731
2732         Increase debug output in /tmp/amanda/*debug files.
2733
2734         Set SO_REUSEADDR on sockets help avoid running out of ports.
2735
2736         * configure.in:
2737                 Added lint program discovery with specific targets for SUN lint and splint.
2738                 Check each compiler option to see if GCC supports it.
2739                 Enable more code quality warnings.
2740                 Change missing xsltproc to warning rather than error.
2741                 Define _GNU_SOURCES to build flags.
2742                 Make size_t and time_t printf format macros.
2743                 Check for isnormal() availability.
2744                 Don't install man pages if they are not built.
2745                 Fix man pages to not attempt build or install if
2746                         --without-built-manpages is set.
2747
2748         * Makefile.am amandad-src/Makefile.am changer-src/Makefile.am
2749           client-src/Makefile.am common-src/Makefile.am
2750           oldrecover-src/Makefile.am recover-src/Makefile.am
2751           restore-src/Makefile.am server-src/Makefile.am tape-src/Makefile.am:
2752                 Add lint target.
2753
2754         * common-src/amanda.h common-src/dgram.c common-src/stream.c
2755           common-src/util.c:
2756                 Keep checking for ports on all bind errors.
2757                 Delay and retry a few times if all ports are busy.
2758                 Retry bind failures after all methods fail.
2759                 increase bind checking timeout to 30 minutes.
2760
2761         * client-src/amandad.c
2762                 Issue wait when any child exits.  (Get rid of defunct processes)
2763                 Stat() index file before using system command.
2764                   (shell is not reporting failure if index is not present)
2765
2766         * recover-src/extract_list.c:
2767           Fix problem of 'add *' not adding directories.
2768           Fix problem of freeing pointer not obtained through malloc.
2769           Touch up file addition to actually use the file names
2770              retrieved when adding a directory and not the directory itself.
2771
2772         * server-src/taper.c
2773                 Strenghten error recovery for broken syncpipes and writer errors.
2774
2775         * changer-src/chg-scsi-chio.c client-src/amandates.c
2776           client-src/client_util.c client-src/findpass.c client-src/getfsent.c
2777           client-src/selfcheck.c client-src/sendbackup-gnutar.c
2778           client-src/sendbackup-star.c client-src/sendbackup.c
2779           client-src/sendsize.c common-src/bsd-security.c common-src/file.c
2780           common-src/krb5-security.c server-src/amcheck.c server-src/amindexd.c
2781           server-src/diskfile.c server-src/driver.c server-src/dumper.c
2782           server-src/holding.c server-src/infofile.c server-src/logfile.c
2783           server-src/tapefile.c:
2784                 allow empty lines in input streams.
2785
2786         * recover-src/uparse.y
2787                 print message when input is garbage.
2788
2789         * server-src/getconf.c:
2790                 Define HOSTNAME_INSTANCE if it was not already defined
2791                 for Kerberos.
2792
2793         * configure.in: Make readline warning less specific.  Readline is
2794           used by all input from terminal now.
2795
2796 2006-05-24  Kevin Till <ktill@@zmanda.com>
2797         * client-src/sendbackup.c: ignore SIGINT
2798         * common-src/ssh-security.c: add to total only when n > 0
2799         * common-src/ssh-security.c: add ssh to error,
2800           retry writev when EINTR, EAGAIN is seen
2801           to STDOUT. exit when options is chosen in template mode.
2802         * server-src/driver.c: make sure timestamp is not null
2803         * amanda/configure.in: remove template.d/amanda.conf which is a dup 
2804           of amanda-harddisk.conf
2805         * example/Makefile.am: add template.d/README
2806         * amanda-harddisk.conf.in: set tapedev
2807         * recover-src/amrecover.c: aclose socket before exit.
2808         * recover-src/extract_list.c: ditto
2809         * amanda_enterprise.spec: remove template.d/amanda.conf, add template.d/README
2810           in the failure cases. <> user input field.
2811         * server-src/amcheck.c: no quoted text is a warning
2812         * server-src/driver.c: no need to amfree qname
2813           argument. Search mtx in PATH too.
2814         * example/template.d/advanced.conf.in: fix comment for autoflush
2815         * example/template.d/advanced.conf.in: add usetimestamps
2816         * server-src/diskfile.c: to catch unsupported compress-encryption
2817           combination and abort amdump gracefully.
2818         * man/xml-source/amanda.conf.5.xml: fix syntax, add 
2819           dumptype references.  
2820         * man/xml-source/amanda.8.xml: fix syntax
2821         * configure.in:                 ditto
2822         * man/Makefile.am:              ditto
2823         * example/amanda.conf.in:       tidy up
2824         * man/xml-source/amaespipe.8.xml: add uuencode as requirement
2825         * man/xml-source/amcrypt.8.xml:   add uuencode as requirement
2826         * server-src/amcheck.c: catch dumptype misconfiguration
2827         * server-src/diskfile.c: ditto
2828         * server-src/driverio.c: ditto
2829         * server-src/planner.c:  ditto
2830         * server-src/conffile.c: check includefile before calling
2831           read_conffile_recursively
2832         * example/amanda.conf.in:       add public-key encryption dumptype example
2833         * man/xml-source/amanda.8.xml:  fix some formatting     
2834         * server-src/planner.c: adjust setuid() calling sequences so that ssh can work
2835         * server-src/dumper.c:  ditto
2836         * configure.in:              add LOW_TCPPORTRANGE for amrecover
2837         * common-src/stream.c:       use LOW_TCPPORTRANGE
2838         * server-src/amdump.sh.in:   check if config is supplied
2839         * man/xml-source/amrestore.8.xml: add notes on "-f" option
2840
2841 2006-05-24  Ian Turner <ian@zmanda.com>
2842         * configure.in: Properly document --without-xsltproc as itself, 
2843           and not the (nonexistant) option --without-built-manpages.
2844
2845 2006-05-16  John Franks <jrfranks@zmanda.com>
2846         * amandad-src/amandad.c client-src/clientconf.c common-src/bsd-security.c
2847           common-src/bsdudp-security.c common-src/dgram.c common-src/krb4-security.c
2848           common-src/krb5-security.c common-src/match.c common-src/packet.c
2849           common-src/security-util.c common-src/security-util.h
2850           common-src/security.h common-src/util.c oldrecover-src/Makefile.am
2851           oldrecover-src/set_commands.c recover-src/amrecover.c
2852           recover-src/extract_list.c server-src/conffile.c server-src/driver.c
2853           server-src/dumper.c server-src/planner.c server-src/reporter.c:
2854                 Minimal changes to get tree to compile along with some more
2855                 debugging output.
2856
2857 2006-05-15  Jean-Louis Martineau <martineau@zmanda.com>
2858         * server-src/amadmin.c (disklist_one): print spindle.
2859
2860 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
2861         * commmon-src/bsd-security.c: Typo.
2862
2863 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
2864         * common-src/Makefile.am (noinst_HEADERS): Add security-util.h.
2865
2866 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
2867         Build a big tok_t enum for server and client config.
2868         * client-src/clientconf.c: Move many things to util.c.
2869         * client-src/clientconf.h: Remove extern variable.
2870         * common-src/util.c: Add common part of clientconf.c and conffile.c
2871         * common-src/util.h: Prototype.
2872         * server-src/conffile.c: Move many things to util.c.
2873         * server-src/diskfile.c(disk_parserror): Rename from parserror.
2874         * server-src/taper.c: Make many variable static.
2875
2876 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
2877         * restore-src/restore.c: Fix use of possibly NULL input.
2878
2879 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
2880         * common-src/ssh-security.c (ssh_connect): Retrieve ssh_keys from
2881                                                    configuration.
2882         * server-src/amadmin.c(disklist_one): Print ssh_keys.
2883         * server-src/conffile.c(SSH_KEYS): Parse new dumptype option.
2884         * server-src/conffile.h(dumptype_t): Add ssh_keys.
2885         * server-src/diskfile.c(parse_diskline): Copy new field.
2886         * server-src/diskfile.h(disk_t) Add ssh_keys.
2887         * server-src/driverio.c(dumper_cmd): Send dp->ssh_keys in a PORT_DUMP
2888                                              command to the dumper.
2889         * server-src/dumper.c: Parse ssh_keys in a PORT_DUMP command.
2890         * server-src/dumper.c(dumper_get_security_conf): Return the ssh_keys.
2891         * server-src/server_util.c(amhost_get_security_conf): Return the
2892                                                               ssh_keys.
2893
2894 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
2895         * amandad-src/amandad.c: Set allow_many_services to 0 if auth=bsdtcp.
2896         * common-src/bsd-security.c: Use security-util.c.
2897         * common-src/bsdtcp-security.c: New security-api.
2898         * common-src/bsdudp-security.c: New secutity-api.
2899         * common-src/krb4-security.c: Use security-util.c.
2900         * common-src/krb5-security.c: Use security-util.c.
2901         * common-src/Makefile.am (libamanda_la_SOURCES): Add bsdtcp-security.c,
2902                                                              bsdtcp-security.c
2903                                                          and security-util.c.
2904         * common-src/protocol.c: Debuging cleanup.
2905         * common-src/rsh-security.c Use security-util.c.
2906         * common-src/security.c: Use bsdtcp_security_driver
2907                                  and bsdudp_security_driver.
2908         * common-src/security.h(accept): New prototype.
2909         * common-src/security-util.c: Many common function for security-api.
2910         * common-src/security-util.h: many prototype for security-api.
2911         * common-src/ssh-security.c Use security-util.c.
2912         * common-src/stream.c (stream_client_internal): Call connect_portrange.
2913         * common-src/util.c (make_socket): Make a socket.
2914         * common-src/util.c (connect_portrange): Make a socket, bind it and
2915                                                  connect.
2916         * common-src/util.h (connect_portrange): Prototype.
2917         * configure.in: new --with-bsdtcp-security and --with-bsdudp-security.
2918
2919 2006-05-10  Jean-Louis Martineau <martineau@zmanda.com>
2920         Patch by <amanda@inventivetechnology.at>
2921         * man/xml-source/amrecover.8.xml: Document listhost command.
2922
2923 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2924         Patch by <amanda@inventivetechnology.at>
2925         * server-src/amindexd.c: new LISTHOST command.
2926         * recover-src/set_commands.c (list_host): New function.
2927         * recover-src/amrecover.h (list_host): Prototype.
2928         * recover-src/help.c (list_host): Print help.
2929         * recover-src/uscan.l: Parse listhost command.
2930         * recover-src/uparse.y: LISTHOST command.
2931         * oldrecover-src/set_commands.c (list_host): New function.
2932         * oldrecover-src/amrecover.h (list_host): Prototype.
2933         * oldrecover-src/help.c (list_host): Print help.
2934         * oldrecover-src/uscan.l: Parse listhost command.
2935         * oldrecover-src/uparse.y: LISTHOST command.
2936
2937 2006-05-08  Ian Turner <ian@zmanda.com>
2938         * server-src/amcheck.c: Make it an error when the expected new 
2939           tape cannot be found. Thanks to Paul Bijnens
2940           <paul.bijnens@xplanation.com> for the patch and to Jason L 
2941           Tibbitts III <tibbs@math.uh.edu> for noticing this problem.
2942
2943 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2944         * driverio.h (shed_s): Add est_nsize, est_csize, degr_nsize, degr_csize
2945                                for nativa and compressed estimate size.
2946         * planner.c: Send the native and compressed estimate size to the driver.
2947         * driver.c: log with L_STATS the estimate of a successful dump.
2948         * reporter.c: Parse the L_STATS.
2949         * reporter.c(generate_bad_estimate): New function that will put in the
2950                                              NOTES section all bad estimate.
2951
2952 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2953         * configure.in (AC_CONFIG_FILES): Add oldrecover-src/Makefile.
2954         * Makefile.am (RECOVER_SUBDIRS): Add oldrecover-src.
2955         * oldrecover-src/amrecover.c: Copy of old recover-src/amrecover.c
2956         * oldrecover-src/amrecover.h: Copy of old recover-src/amrecover.h
2957         * oldrecover-src/display_commands.c: Copy of old
2958                                              recover-src/display_commands.c
2959         * oldrecover-src/extract_list.c: Copy of old recover-src/extract_list.c
2960         * oldrecover-src/help.c: Copy of old recover-src/help.c
2961         * oldrecover-src/Makefile.am: Copy of old recover-src/Makefile.am
2962         * oldrecover-src/set_commands.c: Copy of old recover-src/set_commands.c
2963         * oldrecover-src/uparse.y: Copy of old recover-src/uparse.y
2964         * oldrecover-src/uscan.l: Copy of old recover-src/uscan.l
2965         * recover-src/amrecover.c: Works with security-api.
2966         * recover-src/amrecover.h: Works with security-api.
2967         * recover-src/extract_list.c: Works with security-api.
2968
2969 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2970         * amandad-src/amandad.c: Fixup.
2971
2972 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2973         * common-src/packet.h: pkt_t.body is now a char*.
2974         * common-src/packet.c (pkt_init): Return an alloced pkt.body.
2975         * common-src/packet.c (pkt_cat): Increade pkt.body size if needed.
2976         * common-src/protocol.c: Free allocated pkt.body.
2977         * common-src/dgram.c (dgram_cat): Return int.
2978         * common-src/dgram.h (dgram_cat): New prototype.
2979         * common-src/krb5-security.c: Work with dynamicaly allocated packet
2980                                       body.
2981         * common-src/rsh-security.c: Work with dynamicaly allocated packet
2982                                      body.
2983         * common-src/ssh-security.c: Work with dynamicaly allocated packet
2984                                      body.
2985         * amandad-src/amandad.c: Work with dynamicaly allocated packet body.
2986         * server-src/amcheck.c: Don't limit packet size.
2987         * server-src/planner.c: Don't limit packet size.
2988
2989 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2990         * amandad-src/amandad.c (service_new): Apply the correct patch.
2991
2992 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
2993         * server-src/taper.c: Fix compiler warning.
2994         * common-src/match.c: Many function get const parameters.
2995         * common-src/amanda.h: Prototype change.
2996
2997 2006-05-07  Jean-Louis Martineau <martineau@zmanda.com>
2998         * amandad-src/amandad.c (service_new): Make sur that the 3 data_read[]
2999           and the 3 data_write[] fd are not in the range DATA_FD_OFFSET to
3000           DATA_FD_OFFSET+DATA_FD_COUNT-1.
3001
3002 2006-05-05  Jean-Louis Martineau <martineau@zmanda.com>
3003         * common-src/tapelist.c (append_to_tapelist): Remove bad amfree.
3004
3005 2006-05-05  Nikhil Bandiwadekar <nikhil@zmanda.com>
3006         * server-src/conffile.c: fix to correctly handle am64 datatype
3007
3008 2006-05-04  Jean-Louis Martineau <martineau@zmanda.com>
3009         * server-src/taper.c: Write the slot number in the
3010                               'taper: wrote label' line.
3011         * server-src/amverifyrun.sh.in: Parse that line.
3012
3013 2006-05-02  Jean-Louis Martineau <martineau@zmanda.com>
3014         * amstatus.pl.in: Limit characters for hostname in setup_estimate line.
3015
3016 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
3017         * common-src/rsh-security.c: Pass "amdump amindexd amidxtaped" option
3018                                      to amandad.
3019         * common-src/ssh-security.c: Ditto.
3020
3021 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
3022         * amandad-src/amandad.c: Accept a list of services on the command line.
3023
3024 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
3025         * common-src/tapelist.c (append_to_tapelist): Fix memory leak.
3026
3027 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
3028         * amandad-src/amandad.c: Fix memory leak.
3029         * amandad-src/amandad.h (free_g_options): Prototype.
3030         * amandad-src/amandad_util.c (free_g_options): New function to free a
3031                                                        g_option_t.
3032         * server-src/amcleanupdisk.c: Fix memory leak.
3033         * server-src/reporter.c: Fix memory leak.
3034         * server-src/tapefile.c: Fix memory leak.
3035         * server-src/taperscan.c: Put message in error_message.
3036
3037 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3038         * server-src/amcheck.c (start_server_check): Memory leak.
3039
3040 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3041         * amandad-src/Makefile.am (noinst_HEADERS): Add amandad.h.
3042         * client-src/Makefile.am (noinst_HEADERS): Add clientconf.h.
3043
3044 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3045         * man/xml-source/amanda-client.conf.5.xml: New file.
3046
3047 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3048         * common-src/amanda.h (check_user_ruserok, check_user_amandahosts):
3049           Remove prototype.
3050         * common-src/bsd-security.c: Pass the service name across check_user*
3051           function and validate it from the .amandahosts file.
3052
3053 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3054         * restore-src/amidxtaped.c: Can be launched by amandad.
3055         * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
3056         * server-src/Makefile.am (amidxtaped__LDADD): Link with libamandad.
3057         * restore-src/restore.c: Fix indentation.
3058
3059 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3060         * server-src/amindexd.c: Can be launched by amandad
3061         * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
3062         * server-src/Makefile.am (amindexd_LDADD): Link with libamandad.
3063
3064 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3065         * amandad-src/amandad.c: New file.
3066         * amandad-src/amandad.h: New file.
3067         * amandad-src/amandad_util.c: New file, add function init_g_options
3068                                       parse_g_options.
3069         * amandad-src/Makefile.am: New file.
3070         * client-src/amandad.c: Removed file.
3071         * client-src/amandad.h: Removed file.
3072         * client-src/client_util.c (init_g_options, parse_g_options): Remove.
3073         * client-src/client_util.h (init_g_options, parse_g_options): Remove.
3074         * client-src/Makefile.am (INCLUDES): -I$(top_srcdir)/amandad-src
3075         * client-src/Makefile.am (libexec_PROGRAMS): Remove amandad.
3076         * client-src/Makefile.am (LDADD): Add
3077                                   ../amandad-src/libamandad.$(LIB_EXTENSION).
3078         * client-src/selfcheck.c: #include "amandad.h".
3079         * client-src/sendsize.c: #include "amandad.h".
3080         * configure.in (AC_CONFIG_FILES): amandad-src/Makefile.
3081         * Makefile.am (SUBDIRS): amandad-src.
3082
3083 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3084         * docs/security-api.txt: Document security_read_sync.
3085         * common-src/security.h: Typo.
3086
3087 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3088         * client-src/amandad.c (service_new): Pass the "amandad" argument to
3089                                               the service.
3090
3091 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3092         * common-src/bsd-security.c: Allow to run many services on the same
3093                                      client. Cleanup.
3094         * common-src/rsh-security.c: Ditto.
3095         * common-src/ssh-security.c: Ditto.
3096
3097 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3098         * common-src/security.h (security_stream_read_sync): Prototype.
3099         * common-src/bsd-security.c (bsd_stream_read_sync): New function.
3100         * common-src/krb4-security.c (krb4_stream_read_sync): New function.
3101         * common-src/krb5-security.c (krb5_stream_read_sync): New function.
3102         * common-src/rsh-security.c (rsh_stream_read_sync): New function.
3103         * common-src/ssh-security.c (ssh_stream_read_sync): New function.
3104
3105 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3106         * client-src/amandad.c: Open pipe in both direction to the services.
3107         * client-src/sendbackup.c: Deal with the newer pipe.
3108
3109 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3110         * client-src/clientconf.c: New file to read the client configuration
3111                                    file.
3112         * client-src/clientconf.h: Header.
3113         * client-src/Makefile.am: Link clientconf into libamclient.
3114         * configure.in (AC_CONFIG_FILES): example/amanda-client.conf.
3115         * docs/amanda-client.conf.5.txt: New documentation.
3116         * docs/Makefile.am (pkgdata_DATA): amanda-client.conf.5.txt.
3117         * example/amanda-client.conf.in: exemple.
3118         * example/Makefile.am  (noinst_DATA): amanda-client.conf.
3119         * man/entities/global.entities: amclientconf.
3120         * man/Makefile.am (COMMON_MAN5_PAGES): amanda-client.conf.5.
3121         * man/xml-source/amanda.8.xml (SEE ALSO): amanda-client.conf(5).
3122         * man/xml-source/amanda.conf.5.xml (SEE ALSO): amanda-client.conf(5).
3123         * man/xml-source/amrecover.8.xml (SEE ALSO): amanda-client.conf(5).
3124
3125 2006-04-26  K. K. George<kkg@zmanda.com>
3126         * server-src/reporter.c: Fix to untaint the mailto parameter.
3127         * server-src/amcheck.c: Fix to untaint the mailto parameter
3128         * changer-src/chg-scsi.c: Fix to untaint the mailto parameter.
3129         * changer-src/chg-scsi-chio.c: Fix to untaint the mailto parameter.
3130         * common-src/util.h: Added function to check if the mailto 
3131           parameter is untainted
3132         * common-src/util.c: Added function to check if the mailto 
3133           parameter is untainted
3134
3135 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
3136         * common-src/event.c(event_wait): New function.
3137         * common-src/event.h(event_wait): prototype.
3138         * docs/eventapi.txt: Document event_wait.
3139
3140 2006-04-24  Jean-Louis Martineau <martineau@zmanda.com>
3141         * server-src/planner.c: Fix divide by zero if runtapes==0.
3142
3143 2006-04-24  K. K. George<kkg@zmanda.com>
3144         * server-src/reporter.c: Fix to make the mailto parameter in
3145           amanda.conf optional. Added two more commandline options
3146           -i & -Maddress.
3147         * server-src/amcheck.c: Fix to make the mailto parameter in
3148           amanda.conf optional.
3149         * man/xml-source/amreport.8.xml: Modified to document the
3150           -i & -Maddress commandline parameters
3151         * docs/amreport.8.txt: Modified to document the
3152           -i & -Maddress commandline parameters
3153         * changer-src/chg-scsi.c: Fix to make the mailto parameter in
3154           amanda.conf optional.
3155         * changer-src/chg-scsi-chio.c: Fix to make the mailto parameter in
3156           amanda.conf optional.
3157
3158 2006-04-23  Jean-Louis Martineau <martineau@zmanda.com>
3159         * server-src/driver.c (handle_chunker_result): make sure that
3160                                                        est_size > act-size.
3161
3162 2006-04-21  Jean-Louis Martineau <martineau@zmanda.com>
3163         * server-src/changer.c (changer_command): Make sure fd[0] != 1.
3164
3165 2006-04-19  Jean-Louis Martineau <martineau@zmanda.com>
3166         * restore-src/amidxtaped.c: Cleanup.
3167
3168 2006-04-19  Ian Turner <ian@zmanda.com>
3169         * tape-src/output-tape.c: Do a more thourough check to ensure 
3170           that we actually got a tape device, before proceeding to use 
3171           it.
3172
3173 2006-04-18  Ian Turner <ian@zmanda.com>
3174         * changer-src/chg-disk.sh.in: Check that the virtual device is a 
3175           directory with proper permissions.
3176         * server-src/changer.c: Do the right thing (failure) if there is 
3177           a problem with the changer.
3178
3179 2006-04-18  Ian Turner <ian@zmanda.com>
3180         * recover-src/uscan.l: Accept setdate of the form
3181           yyyy-MM-dd-hh-mm in addition to yyyy-MM-dd-hh-mm-ss.
3182         * man/xml-source/amrecover.8.xml: Document this change.
3183
3184 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
3185         * recover-src/help.c: Document setdate YYYY-MM-DD-HH-MM-SS format.
3186         * man/xml-source/amrecover.8.xml: Ditto.
3187
3188 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
3189         * client-src/amandad.c: Use %p to printf pointer.
3190
3191 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
3192         * server-src/amtape.c: Add update command.
3193
3194 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
3195         * server-src/taper.c: log_add(L_WARNING) the output of taper_scan if
3196                                no valid tape are found.
3197
3198 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
3199         * server-src/amcheck.c: Call taper_scan with
3200                 (..., FILE_taperscan_output_callback,outf) arguments.
3201         * server-src/amtape.c:  Call taper_scan with
3202                 (..., FILE_taperscan_output_callback,stderr) arguments.
3203         * server-src/taper.c:   Call taper_scan with
3204                 (..., CHAR_taperscan_output_callback, &error_msg) arguments.
3205         * server-src/taperscan.h(FILE_taperscan_output_callback,
3206                                  CHAR_taperscan_output_callback): Protoype.
3207         * server-src/taperscan.h(taper_scan): New protoype, remove
3208           error_message arg, add taperscan_output_callback and data arg.
3209         * server-src/taperscan.c(FILE_taperscan_output_callback): Callback
3210           that print the msg to it's arg, which is FILE*.
3211         * server-src/taperscan.c(CHAR_taperscan_output_callback): Callback
3212           that append the msg to it's arg, which is char*.
3213         * server-src/taperscan.c(taper_scan): Fix for new arguments.
3214         * server-src/taperscan.c(changer_taper_scan): Fix for new arguments.
3215
3216 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
3217         * man/xml-source/amanda.conf.5.xml: Document amandad_path and
3218                                             client_username dumptype option.
3219
3220 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
3221         * common-src/krb4-security.c: Increase timeout to 60 seconds.
3222         * common-src/rsh-security.c: Increase timeout to 60 seconds.
3223         * common-src/ssh-security.c: Increase timeout to 60 seconds.
3224
3225 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
3226         * server-src/conffile.c: New configuration option usetimestamps.
3227         * server-src/conffile.h: New configuration option usetimestamps.
3228         * example/amanda.conf.in: Document new usetimestamps options.
3229         * man/xml-source/amanda.conf.5.xml: Document new usetimestamps options.
3230         * server-src/amflush.c: Use datestamp or timestamp depending of
3231                                 usetimesstamps.
3232         * server-src/planner.c: Use datestamp or timestamp depending of
3233                                 usetimesstamps.
3234         * server-src/driver.c: Log an ERROR if many run a day and
3235                                usetimestamps us set to no.
3236
3237 2006-04-07  Ian Turner <ian@zmanda.com>
3238         * server-src/changer.c: Don't crash if we go to taperscan "Plan 
3239           B".
3240
3241 2006-04-07  Ian Turner <ian@zmanda.com>
3242         * server-src/changer.c: Only print changer debug messages if 
3243           there was a problem.
3244
3245 2006-04-07  Ian Turner <ian@zmanda.com>
3246         * recover-src/amrecover.c: Print a more helpful command if mount
3247           point autodetection fails.
3248         * recover-src/display_commands.c: Print a more helpful message
3249           if the user tries to ls without having setdisk earlier.
3250
3251 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
3252         * server-src/amadmin.c: Fix use of datestamp as int.
3253         * server-src/find.c: Ditto.
3254         * server-src/reporter.c: Ditto.
3255         * server-src/tapefile.c: Ditto.
3256
3257 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
3258         * common-src/Makefile.am: Fix dependency between genversion and
3259                                   versuff.o.
3260
3261 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
3262         * recover-src/amrecover.c: Change initialization of server_name and
3263                                    tape_server_name.
3264
3265 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
3266         * restore-src/amrestore.c: reset count_error to 0 on a restore.
3267
3268 2006-04-06  Kevin Till <ktill@zmanda.com>
3269         * server-src/Makefile.am: always install planner/dumper setuid-root
3270         * server-src/amcheck.c:   check planner/dumper for setuid-root
3271         * server-src/dumper.c:    drop privilege asap. Switch between bsd 
3272           and ssh auth is now possible with the same installation.
3273         * server-src/planner.c:   ditto
3274
3275 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
3276         * server-src/taperscan.c (changer_taper_scan): Pass a pointer to the
3277           changer_loadslot call.
3278
3279 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
3280         * server-src/tapefile.c (lookup_last_reusable_tape): Fix a datestamp
3281           test with an int.
3282
3283 2006-04-06  Ian Turner <vectro@vectro.org>
3284         * recover-src/amrecover.c (main): Check AMANDA_SERVER and 
3285           AMANDA_TAPE_SERVER environment variables before falling back 
3286           to compiled-in defaults. Document this new behavior. Thanks to 
3287           Malcolm Locke <malc@hoodee.co.uk> for the idea and patch.
3288
3289 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
3290         * server-src/reporter.c (handle_chunk): CHUNK line always have the
3291           datestamp.
3292
3293 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
3294         * server-src/krb5-security.c: Fix for krb5_connect call in
3295            open_callback.
3296
3297 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
3298         * server-src/driver.c (start_some_dumps): Recover correctly if the
3299           chunker reply with something that is not a PORT command.
3300         * server-src/driver.c (dump_to_tape): remove duplicate free_serial.
3301         * server-src/driverio.c: Improve debugging.
3302
3303 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
3304         * common-src/tapelist.c(unmarshal_tapelist_str): Fix
3305           "value computed is not used" compiler warning.
3306
3307 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
3308         * common-src/bsd-security.c (bsd_connect): New datap argument.
3309         * common-src/krb4-security.c (krb4_connect): New datap argument.
3310         * common-src/krb5-security.c (krb5_connect): New datap argument.
3311         * common-src/rsh-security.c (rsh_connect): New datap argument,
3312                  retrieve amanda_path and client_username from configuration.
3313         * common-src/ssh-security.c (ssh_connect): New datap argument,
3314                 retrieve amanda_path and client_username from configuration.
3315         * common-src/protocol.c: Pass new datap argument to security_connect.
3316         * common-src/security.h(connect): New prototype.
3317         * common-src/security.h(security_connect): Add datap to macro.
3318         * server-src/amadmin.c(disklist_one): Print amandad_path and
3319                                               client_username.
3320         * server-src/conffile.c(AMANDAD_PATH, CLIENT_USERNAME): Parse new
3321                                 dumptype option.
3322         * server-src/conffile.h(dumptype_t): Add amandad_path and
3323                                              client_username.
3324         * server-src/diskfile.c(parse_diskline): Copy new field.
3325         * server-src/diskfile.h(disk_t) Add amandad_path and client_username.
3326         * server-src/driverio.c(dumper_cmd): Send dp->amandad_path and
3327           dp->client_username in a PORT_DUMP command to the dumper.
3328         * server-src/dumper.c: Parse amandad_path and client_username in a
3329                                PORT_DUMP command.
3330         * server-src/dumper.c(dumper_get_security_conf): New function to return
3331                                 configuration option to the security-api.
3332         * server-src/dumper.c: Use dumper_get_security_conf for the callback
3333                                to protocol_sendreq.
3334         * server-src/planner.c Use amhost_get_security_conf for the callback
3335                                to protocol_sendreq.
3336         * server-src/amcheck.c: Use amhost_get_security_conf for the callback
3337                                 to protocol_sendreq.
3338         * server-src/server_util.c(amhost_get_security_conf): New function to
3339                         return configuration option to the security-api,
3340                         it expect an am_host_t arg.
3341         * server-src/server_util.h(amhost_get_security_conf): Prototype.
3342
3343 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
3344         * server-src/amstatus.pl.in: Remove duplicate instruction.
3345
3346 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
3347         * server-src/amindexd.c: Remove all code that set str_buffer_size,
3348                                  rename str_buffer_size to reply_buffer_size,
3349                                  rename buf to reply_buffer,
3350         * server-src/amindexd.c(reply, lreply_backend): Increase reply_buffer
3351                                                         size if required.
3352
3353 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
3354         * common-src/amfeatures.h: Add fe_amrecover_timestamp amfeature.
3355         * common-src/amfeatures.c (am_init_feature_set):
3356                                                  Add fe_amrecover_timestamp.
3357         * server-src/amindexd.c(opaque_ls_one): New function.
3358         * server-src/amindexd.c(disk_history_list,opaque_ls_one): Send only a
3359           datestamp if client doesn't have fe_amrecover_timestamp.
3360
3361 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
3362         * recover-src/uscan.l: Parse "setdate YYYY-MM-DD-HH-MM-SS".
3363         * server-src/amindexd.c (cmp_date): New function to cmp datestamp with
3364                                             timestamp, use it where needed.
3365         * server-src/amindexd.c (amindexd_nicedate): Fix for timestamp.
3366         * server-src/amtrmidx.c: Fix for timestamp.
3367         * server-src/disk_history.h (DUMP_ITEM): Increase size of date.
3368
3369 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
3370         * server-src/amflush.c: Send DATE line to driver, use timestamp.
3371         * server-src/amindex.c (getindexfname): Increase datebuf size.
3372         * server-src/amtrmlog.c: Fix bug with date_keep computation if
3373                                  dumpcycle is INF.
3374         * server-src/amtrmlog.c: rotate timestamped log file.
3375         * server-src/chunker.c: Receive START cmd, use timestamp.
3376         * server-src/driver.c: Receive DATE line, send START cmd to chunker,
3377                                use timestamp.
3378         * server-src/driverio.c (startup_dump_processes): Send START cmd to
3379                                                           dumper.
3380         * server-src/driverio.c (dumper_cmd, chunker_cmd): Send START command.
3381         * server-src/driverio.h (startup_dump_processes): Prototype change,
3382                                                           need the timestamp.
3383         * server-src/dumper.c: Receive START cmd, use timestamp.
3384         * server-src/find.c (find_nicedate): Fix for timestamp.
3385         * server-src/planner.c: Send DATE line to driver, use timestamp.
3386         * server-src/server_util.c (cmdstr): Add START.
3387         * server-src/server_util.h (cmd_t): Add START.
3388         * server-src/taper.c: Get timestamp from TAPER_START command.
3389
3390 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
3391         * server-src/amindexd.c (amindexd_nicedate): New function.
3392         * server-src/find.h (struct find_result_s): Remove datestamp and
3393                  datestamp_aux field, only timestamp will be used.
3394         * restore-src/amfetchdump.c: Convert datestamp to 'char *'.
3395         * restore-src/restore.c: Convert datestamp to 'char *'.
3396         * server-src/amindexd.c: Convert datestamp to 'char *'.
3397         * server-src/amlabel.c: Convert datestamp to 'char *'.
3398         * server-src/amtrmidx.c: Convert datestamp to 'char *'.
3399         * server-src/find.c: Convert datestamp to 'char *'.
3400         * server-src/reporter.c: Convert datestamp to 'char *'.
3401         * server-src/tapefile.c: Convert datestamp to 'char *'.
3402         * server-src/tapefile.h: Convert datestamp to 'char *'.
3403         * server-src/taper.c: Convert datestamp to 'char *'.
3404
3405 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
3406         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b1).
3407
3408 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
3409         * server-src/driver.c: Change expression to remove overflow.
3410
3411 2006-03-29  Jean-Louis Martineau <martineau@zmanda.com>
3412         * client-src/calcsize.c: Don't use declaration after instruction,
3413           older compiler don't accept it.
3414
3415 2006-03-23  Jean-Louis Martineau <martineau@zmanda.com>
3416         * Amanda 2.5.0 released.
3417         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0).
3418         * NEWS: Update for 2.5.0
3419
3420 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
3421         * server-src/dumper.c: wait for compress/index/encryp subprocess.
3422
3423 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
3424         * server-src/amstatus.pl.in: Parse PARTIAL reply.
3425
3426 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
3427         * server-src/driver.c: Put '#define HOLD_DEBUG' in comment.
3428
3429 2006-03-21  Jean-Louis Martineau <martineau@zmanda.com>
3430         * server-src/chunker.c: Don't loop on startup_chunker.
3431         * server-src/dumper.c: Don't wait for all children, some process (ssh)
3432           might not terminate.
3433
3434 2006-03-17  Ian Turner <ian@zmanda.com>
3435         * server-src/taper.c (read_file): When finished flushing a 
3436           chunked dump, print information about the whole dump, not just 
3437           the last chunk. Also, fix some memory leaks.
3438
3439 2006-03-16  Kevin Till <ktill@zmanda.com>
3440         * server-src/amverify.sh.in: check for EOI. amrestore only 
3441           reports EOI for some tapetypes.
3442
3443 2006-03-15  Jean-Louis Martineau <martineau@zmanda.com>
3444         * server-src/conffile.c: Fix heritage of auth.
3445
3446 2006-03-14  Kevin Till <ktill@@zmanda.com>
3447         * example/amanda.conf.in: add dumptype custom-compress. 
3448           add ssh,krb5 as valid input for auth. 
3449         * man/xml-source/amanda.conf.5.xml: give reference to 
3450           custom-compress, encrypt-fast dumptypes.
3451
3452 2006-03-14  Jean-Louis Martineau <martineau@zmanda.com>
3453         * common-src/amfeatures.h: Rename fe_amidxtaped_FEEDME to
3454                                           fe_amrecover_FEEDME
3455         * common-src/amfeatures.c (am_init_feature_set): Set
3456                                                          fe_amrecover_FEEDME.
3457         * restore-src/restore.h (search_tapes): Add their_features parameter.
3458         * restore-src/amfetchdump.c: Add NULL pointer to search_tapes call.
3459         * restore-src/amidxtaped.c: Add their_features to search_tapes call.
3460         * restore-src/restore.c (search_tapes): Send FEEDME only if client
3461                                                 support it.
3462
3463 2006-03-11  Jean-Louis Martineau <martineau@zmanda.com>
3464         * server-src/driverio.c : Fix errors found using Coverity tools.
3465
3466 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
3467         * server-src/taperscan.c: Fix Coverity fix.
3468
3469 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
3470         * changer-src/scsi-changer-driver.c:
3471                                          Fix errors found using Coverity tools.
3472         * server-src/diskfile.c: Fix errors found using Coverity tools.
3473         * server-src/planner.c: Fix errors found using Coverity tools.
3474         * server-src/taperscan.c: Fix errors found using Coverity tools.
3475
3476 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
3477         * server-src/driverio.c: Undo my bad fix.
3478         * server-src/infofile.c: Fix errors found using Coverity tools.
3479         * tape-src/tapetype.c: Fix errors found using Coverity tools.
3480
3481 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
3482         * restore-src/restore.c: Fix errors found using Coverity tools.
3483
3484 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
3485         * server-src/holding.c: Fix errors found using Coverity tools.
3486
3487 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
3488         * server-src/driverio.c: Fix errors found using Coverity tools.
3489         * server-src/planner.c: Fix errors found using Coverity tools.
3490
3491 2006-03-09  John Franks <jrfranks@zmanda.com>
3492         * changer-src/chg-scsi.c:        Fix errors found using Coverity tools.
3493         * changer-src/scsi-changer-driver.c:
3494                                          Fix errors found using Coverity tools.
3495         * changer-src/sense.c:           Fix errors found using Coverity tools.
3496         * client-src/sendbackup-dump.c:  Fix errors found using Coverity tools.
3497         * client-src/sendbackup.c:       Fix errors found using Coverity tools.
3498         * recover-src/display_commands.c:Fix errors found using Coverity tools.
3499         * regex-src/regcomp.c:           Fix errors found using Coverity tools.
3500         * restore-src/restore.c:         Fix errors found using Coverity tools.
3501         * server-src/amindexd.c:         Fix errors found using Coverity tools.
3502         * server-src/diskfile.c:         Fix errors found using Coverity tools.
3503         * server-src/driver.c:           Fix errors found using Coverity tools.
3504         * server-src/driverio.c:         Fix errors found using Coverity tools.
3505         * server-src/infofile.c:         Fix errors found using Coverity tools.
3506         * server-src/planner.c:          Fix errors found using Coverity tools.
3507         * server-src/taper.c:            Fix errors found using Coverity tools.
3508         * server-src/taperscan.c:        Fix errors found using Coverity tools.
3509         * server-src/conffile.c:         Change report default to use at least
3510                                          one space between every column.
3511
3512 2006-03-08  Jean-Louis Martineau <martineau@zmanda.com>
3513         * client-src/amandad.c: Fix coverity bug.
3514         * client-src/calcsize.c: Fix coverity bug.
3515         * client-src/client_util.c: Fix coverity bug.
3516         * client-src/sendbackup.c: Fix coverity bug.
3517         * client-src/sendsize.c: Fix coverity bug.
3518         * common-src/bsd-security.c: Fix coverity bug.
3519         * common-src/file.c: Fix coverity bug.
3520         * common-src/fileheader.c: Fix coverity bug.
3521         * common-src/pipespawn.c: Fix coverity bug.
3522         * recover-src/extract_list.c: Fix coverity bug.
3523         * restore-src/restore.c: Fix coverity bug.
3524         * server-src/amindexd.c: Fix coverity bug.
3525         * server-src/conffile.c: Fix coverity bug.
3526         * server-src/diskfile.c: Fix coverity bug.
3527         * server-src/driverio.c: Fix coverity bug.
3528         * server-src/dumper.c: Fix coverity bug.
3529         * server-src/planner.c: Fix coverity bug.
3530         * server-src/reporter.c: Fix coverity bug.
3531
3532 2006-03-07  Paddy Sreenivasan <paddy@zmanda.com>
3533         * man/xml-source/amanda.8.xml: added amaespipe and amcrypt.
3534
3535 2006-03-07  Jean-Louis Martineau <martineau@zmanda.com>
3536         * server-src/taper.c: Don't log a multi-line message in no-tape case.
3537
3538 2006-03-06  John Franks <jrfranks@zmanda.com>
3539         * recover-src/extract_list.c:
3540           1) Don't add '.' directory twice to tar extract list.
3541           2) Don't prepend extra '/' to extract patterns starting with '/'.
3542           3) Convert "/" extract pattern to "*" equivalent.
3543
3544 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
3545         * server-src/taperscan.c (scan_slot): append slotstr to
3546           ct->error_message.
3547         * server-src/taperscan.c: Add a '\n' after each slot error message.
3548
3549 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
3550         * server-src/reporter.c (handle_error): Handle error from taper.
3551
3552 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
3553         * server-src/taper.c (label_tape): Set errstr and return 0 if no
3554           valid tape are available.
3555
3556 2006-03-03  Ian Turner <ian@zmanda.com>
3557         * common-src/amanda.h: New macros MAX_TAPE_LABEL_LEN and 
3558           MAX_TAPE_LABEL_BUF.
3559         * common-src/amfeatures.h: New amfeature fe_amidxtaped_FEEDME
3560         * recover-src/extract_list.c: Accept port number with CONNECT; 
3561           implement fe_amidxtaped_FEEDME.
3562         * restore-src/amidxtaped.c: Introduce port number with CONNECT. 
3563           (closes SF bug 1431623)
3564         * restore-src/restore.c: Implement fe_amidxtaped_FEEDME.
3565           (closes SF bug 1421433)
3566         * restore-src/restore.h: Properly name rst_flags.
3567
3568 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
3569         * common-src/bsd-security.c (bsd_connect, netfd_read_callback, main):
3570           Set bh->proto_handle to NULL after allocating bh.
3571         * common-src/bsd-security.c (bsd_close): Donothing if
3572           bh->proto_handle == NULL.
3573
3574 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
3575         * common-src/protocol.c (s_repwait): Decrease p->timeout on receive
3576                                              of a PREP.
3577
3578 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
3579         * server-src/driver.c: Print dumper TRY_AGAIN message.
3580
3581 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
3582         * server-src/planner.c: Don't print estimate size if estimate failed.
3583
3584 2006-02-25  Ian Turner <ian@zmanda.com>
3585         * man/Makefile.am: Don't use static patterns (as they are not 
3586           portable), use implicit rules instead.
3587
3588 2006-02-20  Kevin Till <ktill@zmanda.com>
3589         * common-src/krb4-security.c: changes needed for krb4/5 to compile. Thanks to
3590                                       Orion Poplawski.
3591         * common-src/krb5-security.c: ditto.
3592
3593 2006-02-16  Kevin Till <ktill@zmanda.com>
3594         * example/amanda.conf.in: dumptype option is "encrypt"
3595         * man/xml-source/amanda.conf.5.xml: ditto
3596         * server-src/holding.c: util.h is include'd twice
3597         * common-src/ssh-security.c: set correct debug print 
3598
3599 2006-02-10  Kevin Till <ktill@zmanda.com>
3600         * man/xml-source/amanda.8.xml: replace informaltable with literallayout 
3601
3602 2006-02-13  John Franks <jrfranks@zmanda.com>
3603         * server-src/driver.c: Pring a more precise message when taper
3604           returns an error.  Include error message from taper in log.
3605           Print out "protocol error" if taper returns a bogus command.
3606
3607 2006-02-10  Kevin Till <ktill@zmanda.com>
3608         * man/xml-source/amanda.conf.5.xml: add note about first character of a 
3609                         tapetype string must be alphabet
3610
3611 2006-02-10  John Franks <jrfranks@zmanda.com>
3612         * server-src/taper.c: Call error() if an invalid string is read
3613           by syncpipe_getstr().
3614  
3615 2006-02-09  John Franks <jrfranks@zmanda.com>
3616         * Makefile.am, */Makefile.am:  Corrections generated by David Braun
3617           dustybird@users.sourceforge.net to properly set source directories
3618           for remote (VPATH) builds.
3619         * man/Makefile.am:  Fixed man page builds to use proper source and
3620           build paths.
3621         * autogen: Force rebuilding everything and print only syntax errors.
3622           (Errors are seen occasionally in system autogen files...)
3623         * configure.in: Eliminate possibility of empty string in shell tests.
3624           fix quoting of '[' and ']' characters in help messages.
3625           Fix default value for DUMPER_DIR to pick up EPREFIX correctly.
3626  
3627 2006-02-08  Ian Turner <ian@zmanda.com>
3628         * server-src/driver.c (handle_taper_result): Properly handle 
3629           SPLIT_NEEDNEXT case. Thanks to Josef Wolf for finding this bug.
3630           Also reindent.
3631
3632 2006-02-06 Kevin Till <ktill@zmanda.com> 
3633         * restore-src/restore.c: fix comment formatting on version 1.2.1
3634
3635 2006-02-06 Kevin Till <ktill@zmanda.com>
3636         * configure.in: Bug 1423731, SSH_SECURITY set only when --with-ssh-security used
3637         * server-src/Makefile.am:: not to install planner/dumper setuid-root --with-ssh-security
3638         * server-src/amcheck.c:    ditto
3639         * server-src/dumper.c:     ditto
3640         * restore-src/restore.c:    add missing "}"
3641         
3642 2006-02-06  Ian Turner <ian@zmanda.com>
3643         * restore-src/amidxtaped.c: Properly handle changers, 
3644           tape-label checking, and tape prompting in amrecover, 
3645           amindexd, and amidextaped. Thanks to Paul Bijnens 
3646           <pbijnens@users.sourceforge.net> for the patch.
3647         * restore-src/restore.c: ditto.
3648         * server-src/amindexd.c: ditto.
3649
3650 2006-02-04  Paddy Sreenivasan <paddy@zmanda.com>
3651         * man/xml-source/amfetchdump.8.xml
3652         * man/xml-source/amcrypt.8.xml
3653         * man/xml-source/amanda.conf.5.xml
3654         * man/xml-source/amanda.8.xml
3655         * man/xml-source/amaespipe.8.xml
3656         * man/entities/global.entities: Merged changes from xml-docs tree
3657
3658 2006-02-03  John Franks <jrfranks@zmanda.com>
3659         * server-src/taper.c: Fix null string printout in CHUNKERSUCCESS log line.
3660
3661 2006-02-03  Ian Turner <ian@zmanda.com>
3662         * server-src/amadmin.c (main): Don't free conf_tapelist too 
3663           early. Thanks to Cédric Lucantis
3664           <cedric-lucantis@users.sourceforge.net> for the patch.
3665
3666 2006-02-02 Kevin Till <ktill@zmanda.com>
3667         * man/xml-source/amanda.8.xml: fix formatting. <informaltable> problem 
3668                                        to be fixed.
3669         * man/xml-source/amrecover.8.xml: add note on client-encrypted tapes.
3670
3671 2006-02-02  Ian Turner <ian@zmanda.com>
3672         * recover-src/extract_list.c (extract_files_child): Run tar with 
3673           --numeric-owner if we are extracting a non-sambafied tar file. 
3674           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for 
3675           the patch. Thanks also to Mark Schaefer for suggesting this 
3676           change.
3677
3678 2006-02-01  Jean-Louis Martineau <martineau@zmanda.com>
3679         * restore-src/restore.c: Use OFF_T_FMT to printf off_t variable,
3680           cast size_t to am64_t and use AM64_FMT to printf them.
3681
3682 2006-01-31  Jean-Louis Martineau <martineau@zmanda.com>
3683         * server-src/driver.c (dumper_result): Reset sched(dp)->attempted to 0
3684           before adding it to tapeq.
3685
3686 2006-01-27  Ian Turner <ian@zmanda.com>
3687         * configure.in: Add new option --without-xsltproc (and
3688           --with-xsltproc), which turns off (or forces) the use of xsltproc to
3689           build manpages. Thanks to Paul Bijnens
3690           <pbijnens@users.sourceforge.net> for suggesting this feature.
3691
3692 2006-01-27  Ian Turner <ian@zmanda.com>
3693         * restore-src/amfetchdump.c: Properly clean up logfiles. Also, 
3694           run as user amanda even if we are started as some other user.
3695           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for the 
3696           patch.
3697
3698 2006-01-25  Paddy Sreenivasan <paddy@zmanda.com>
3699         * common-src/amanda.h:     Removed unnecessary header include files.
3700
3701 2006-01-25  Kevin Till<ktill@zmanda.com>
3702         * server-src/amadmin.c: fix for sourceforge bug 1412698
3703                                 add missing parameters to "amadmin x disklist"
3704         * server-src/amstatus.pl.in: untaint user input, enforce known path.
3705         * server-src/amoverview.pl.in: untaint user input (bug 1353481)
3706
3707 2006-01-25  Kevin Till<ktill@zmanda.com>
3708         * man/xml-source/amanda.conf.5.xml: fix formatting (<para> is not compatible 
3709                                             with some tag) add supported auth types.
3710
3711 2006-01-25  Kevin Till<ktill@zmanda.com>
3712         * common-src/bsd-security.c: move check_security to bsd_security.c, 
3713                                      fix faulty return
3714                                      Thanks to Paul Bijnens
3715         * restore-src/amidxtaped.c:  ditto
3716         * server-src/amindexd.c:     ditto and no need to tell client 
3717                                      about reason for denial
3718         * common-src/amanda.h:       add proto of check_security
3719         * server-src/conffile.c:     don't list CRYPT in the summary report 
3720                                      for now
3721         * restore-src/restore.c:     set outfd correctly for amfetchdump cases
3722                                      Thanks to Paul Bijnens
3723
3724 2006-01-24  Ian Turner <ian@zmanda.com>
3725         * man/xml-source/amanda.conf.5.xml: Put documentation of 
3726           split-dump options in the right place. Thanks to Paul Bijnens 
3727           <pbijnens@users.sourceforge.net> for the fix.
3728         * man/xml-source/amanda.8.xml: ditto.
3729
3730 2006-01-23  Ian Turner <ian@zmanda.com>
3731         * server-src/taperscan.c (find_brand_new_tape_label): Start 
3732           brand new tape labels at 1 instead of 0. Thanks to Paul 
3733           Bijnens <pbijnens@users.sourceforge.net> for the fix.
3734
3735 2006-01-18  Jean-Louis Martineau <martineau@zmanda.com>
3736         * Amanda 2.5.0b2 released.
3737         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b2).
3738         * NEWS: Update for 2.5.0b2
3739         
3740 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
3741         * server-src/disk_history.c: Fix memory leak.
3742
3743 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
3744         * common-src/bsd-security.c: Fix memory leak.
3745         * common-src/tapelist.c: Fix memory leak.
3746         * restore-src/amidxtaped.c: Fix memory leak.
3747         * restore-src/restore.c: Fix memory leak.
3748         * server-src/amindexd.c: Fix memory leak.
3749         * server-src/conffile.c: Fix memory leak.
3750         * server-src/disk_history.c: Fix memory leak.
3751         * server-src/find.c: Fix memory leak.
3752
3753 2006-01-13  John Franks <jrfranks@zmanda.com>
3754         * client-src/amandad.c:      Remove SO_LINGER and TCP_NDELAY.
3755                                      Loop on I/O if EINTR or EAGAIN.
3756         * client-src/noop.c:         Loop on I/O if EINTR or EAGAIN.
3757         * client-src/sendbackup.c:   Remove SIGPIPE handler.
3758                                      Loop on I/O if EINTR or EAGAIN.
3759                                      Check for EPIPE on writes.
3760         * common-src/bsd-security.c: Loop on I/O if EINTR or EAGAIN.
3761         * common-src/stream.c:       Remove SO_LINGER and TCP_NDELAY.
3762         * common-src/util.c:         Loop on I/O if EINTR or EAGAIN.
3763         * recover-src/amrecover.c:   Write commanda atomically in sigint handler
3764         * recover-src/extract_list.c:Remove SIGPIPE handler.
3765                                      Loop on I/O if EINTR or EAGAIN.
3766                                      Check for EPIPE on writes.
3767                                      Remove shutdown functions.
3768         * restore-src/amfetchdump.c: Remove SIGPIPE handler.
3769         * restore-src/amidxtaped.c:  Remove SO_LINGER and TCP_NDELAY.
3770                                      Remove SIGPIPE handler.
3771                                      read_file_header does not return if it
3772                                      Fix infinite loop on EOF or error and
3773                                      fail if memory reallocation failure in
3774                                      get_client_line_fd.
3775         * restore-src/restore.c:     Remove SIGPIPE handler.
3776                                      Loop on I/O if EINTR or EAGAIN.
3777                                      Remove shutdown functions.
3778                                      Simplify read loop.
3779         * restore-src/restore.h:     Change read_file_header to return void
3780         * server-src/amcheck.c:      Use fullread() to handel EINTR etc.
3781                                      Remove unused variable.
3782         * server-src/changer.c:      Remove SO_LINGER and TCP_NDELAY.
3783                                      Use fullwrite on socket.
3784         * server-src/driverio.c:     Remove SO_LINGER and TCP_NDELAY.
3785         * server-src/taper.c:        Use fullwrite() to write data.
3786                                      Use fullread() to read data.
3787         * tape-src/output-file.c;    Use fullwrite() to write data.
3788
3789 2006-01-13  Jean-Louis Martineau <martineau@zmanda.com>
3790         * server-src/amcheck.c (start_server_check): Remove unused variable
3791           errstr.
3792         * restore-src/restore.c (restore): Remove unused variable s, l and
3793           dataeof.
3794
3795 2006-01-12  Jean-Louis Martineau <martineau@zmanda.com>
3796         * recover-src/extract_list.c (send_to_tape_server): Do only on write.
3797         * restore-src/amidxtaped.c (get_client_line_fd): New function to read
3798           one complete line from an fd.
3799
3800 2006-01-09  John Franks <jrfranks@zmanda.com>
3801         * common-src/amanda.h:  Include tcp.h
3802         * client-src/amandad.c: Set TCP_NODELAY and SO_LINGER on sockets.
3803         * common-src/dgram.c:   No linger on datagrams
3804         * common-src/stream.c:  Set TCP_NODELAY and SO_LINGER on sockets.
3805         * common-src/util.c:    Fix fullwrite to return # of bytes written
3806                                 before failure.
3807         * example/amanda.conf.in: Cleanup exclude list template.
3808                                 Use configure directlries instead of /usr/local
3809         * recover-src/extract_list.c: Cleanup read loops.
3810                                 Use real fullwrite instead of inline versions.
3811                                 Remove extra setting of LINGER on socket.
3812         * restore-src/amidxtaped.c: Set TCP_NODELAY and SO_LINGER on sockets.
3813         * restore-src/restore.c:Use real fullwrite instead of inline versions.
3814         * server-src/changer.c: Set TCP_NODELAY and SO_LINGER on sockets.
3815         * server-src/chunker.c: Use real fullwrite instead of inline versions.
3816         * server-src/driverio.c:Set TCP_NODELAY and SO_LINGER on sockets.
3817         * server-src/dumper.c:  Use real fullwrite instead of inline versions.
3818
3819 2006-01-09  Ian Turner <ian@zmanda.com>
3820         * changer-src/scsi-changer-driver.c: If there is a problem opening
3821           the device during GenericRewind, don't retry for 201 minutes; give
3822           up after only 200 seconds.
3823
3824 2006-01-09  Ian Turner <ian@zmanda.com>
3825         * server-src/taperscan.c: When doing taper-scan algorithm, properly
3826           accept new tapes.
3827
3828 2006-01-09  Ian Turner <ian@zmanda.com>
3829         * tape-src/tapeio.c: Generate a more reasonable message when
3830         reading an empty tape label on brand-new tapes.
3831
3832 2006-01-09  Ian Turner <ian@zmanda.com>
3833         * server-src/amcheck.c: Actually do what the documentation for 
3834           amcheck -w says; that is, overwrite labels on tapes.
3835
3836 2006-01-06  Kevin Till<ktill@zmanda.com>
3837         * server-src/amcheck.c: check if encrypt or compress program is 
3838           executable. Check encrypt/compress configuration.
3839         * server-src/dumper.c: kill encrypt child when dump is stopped
3840         * server-src/amcrypt.sh.in: check for aespipe
3841         * server-src/amaespipe.sh.in: adjust PATH
3842         * man/xml-source/amtapetype.8.xml: fix format problem.
3843
3844 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
3845         * recover-src/extract-list.c: Remove 'U' argument for gtar extraction.
3846
3847 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
3848         * restore-src/restore.c (flush_open_outputs): Another shutdown is
3849           required.
3850
3851 2006-01-05  John Franks <jrfranks@zmanda.com>
3852         * recover-src/extract_list.c: Extend linger timeouts to 60 seconds.
3853           Use shutdown() on sockets.
3854           Retry reads in case of EINTR or EAGAIN.
3855         * common-src/stream.c: set linger on correct socket.
3856           Extend linger timeouts to 60 seconds.
3857         * restore-src/restore.c: Fix compiler warnings.
3858         * Call shutdown in more cases.
3859
3860 2006-01-05  John Franks <jrfranks@zmanda.com>
3861         * client-src/amandad.c: Set SO_LINGER on sockets.
3862         * common-src/dgram.c:   Set SO_LINGER on sockets.
3863         * common-src/stream.c:  Set SO_LINGER on sockets.
3864         * common-src/util.c:    Return any bytes already read on error or EOF.
3865         * recover-src/extract_list.c: Set SO_LINGER on data socket.
3866           Fix printf of unterminated string data.
3867           Check return codes on socket header reads.
3868         * restore-src/amidxtaped.c: Set SO_LINGER on sockets.
3869           Check return codes on socket header reads.
3870         * restore-src/restore.c:
3871           Flush newline after operator prompt.
3872         * common-src/debug.c:
3873           Fix memory leak when debug file name already exists.
3874           Print error text upon hard open() error.
3875           Allow group members read only access to log files.
3876
3877 2006-01-05  Kevin Till<ktill@zmanda.com>
3878         * restore-src/restore.c: handle sigpipe. Some program (e.g. bzip2) closes reading pipe
3879           early when it sees trailing garbage after EOF.
3880
3881 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
3882         * common-src/amanda.h: Add a FD_COPY macro.
3883         * recover-src/extract_list.c (writer_intermediary): Don't use
3884           writer_intermediary, do the select locally.
3885
3886 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
3887         * restore-src/restore.c (flush_open_outputs): Call shutdown before
3888           close.
3889
3890 2005-12-30  John Franks <jrfranks@zmanda.com>
3891         * recover-src/extract_list.c:
3892           Fix double clearing of buffer during normal read path.
3893         * restore-src/amidxtaped.c
3894           Actually initialize changer if it is needed.  (Set use_changer
3895           before checking it...)
3896         * Fix control messages being sent down the data pipe when
3897           restoring to client that does not support split dumps.
3898         * Print error and exit if a split dump is needed during restore
3899           and client can not handle it. 
3900
3901 2005-12-30  Ian Turner <ian@zmanda.com>
3902         * common-src/fileheader.c: Remove xx/UNKNOWN split-dump header 
3903           syntax, in favor of xx/-1.
3904
3905 2005-12-29  John Franks <jrfranks@zmanda.com>
3906         * recover-src/display_commands.c
3907           Fix list deletion which did not update list root with NULL pointer.
3908           Make free_dir_item() a non-recursive function to prevent stack bloat.
3909           Fix list insertion code which inserts item in list initializes entry.
3910         * recover-src/extract_list.c
3911           Fix to initialize lditem before using it...
3912           Prevent multiple frees of cmd string.
3913           Do not free err which is only initialized with static string pointers.
3914           Fix typo which caused newstralloc() to free the wrong memory.
3915         * server-src/amindexd.c
3916           Fix Compiler warning of unused variable.
3917         * server-src/taperscan.c
3918           Fix Compiler warning of bogus format specifier.
3919   
3920 2005-12-29  Kevin Till<ktill@zmanda.com>
3921         * man/xml-source/amcrypt.8.xml: add new amcrypt man page
3922         * man/xml-source/amaespipe.8.xml: add new amaespipe man page
3923
3924 2005-12-29  Ian Turner <ian@zmanda.com>
3925         * man/xml-source/amanda.conf.5.xml: Document label_new_tapes 
3926           config option.
3927
3928 2005-12-28  Ian Turner <ian@zmanda.com>
3929         * recover-src/amrecover.h: Use dynamic strings in struct DIR_ITEM.
3930         * recover-src/display_commands.c: ditto
3931         * recover-src/extract_list.c: ditto. Also use dynamic strings in
3932           struct EXTRACT_LIST and struct EXTRACT_LIST_ITEM.
3933
3934 2005-12-28  Ian Turner <ian@zmanda.com>
3935         * common-src/amfeatures.h: Add three new amfeatures:
3936           fe_amindexd_marshall_in_OLSD, fe_amindexd_marshall_in_ORLD,
3937           fe_amindexd_marshall_in_DHST.
3938         * common-src/amfeatures.c: ditto.
3939         * server-src/amindexd.c: Talk well to older clients.
3940
3941 2005-12-23  Ian Turner <ian@zmanda.com>
3942         * server-src/taperscan.c: Don't crash if find_brand_new_tape_label
3943           returns NULL. Also, don't return NULL from
3944           find_brand_new_tape_label without a good excuse.
3945         
3946 2005-12-23  Kevin Till <ktill@zmanda.com>
3947         * client-src/client_util.c: change server_decrypt_option to
3948           server-decrypt-option
3949         * client-src/sendbackup.c:  change client_decrypt_option to
3950           client-decrypt-option
3951         * server-src/dumper.c:      ditto
3952         * common-src/amfeatures.c:  add crypt related amfeaturs
3953         * common-src/amfeatures.h:  ditto  
3954         * server-src/diskfile.c:    amfeatures checking and warns on
3955           mis-configuration
3956
3957 2005-12-23  Paddy Sreenivasan <paddy@zmanda.com>
3958          * restore-src/restore.c:
3959          * server-src/amtape.c:
3960          * server-src/taperscan.c : Make scan_init static function
3961
3962 2005-12-23  John Franks <jrfranks@zmanda.com>
3963         * server-src/taper.c: Reduce I/O's system call overhead by 30%
3964           in main read / write loop. 
3965
3966 2005-12-23  John Franks <jrfranks@zmanda.com>
3967         * recover-src/restore.c  Remove inapproriate aclose which caused
3968           broken restore pipe.
3969         * recover-src/extract_list.c  Fix and cleanup read_buffer()
3970           mainly to fix hole that drops parital buffer of data if end
3971           of file is reached or an error occured..  Touched up calling
3972           functions to make sure EOF/timeouts are handled correctly.
3973           Increased normal path read timeout value from on second to
3974           whatever READ_TIMEOUT is set to.
3975
3976 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
3977
3978         * restore-src/restore.c (restore): Remova an aclose.
3979
3980 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
3981
3982         * restore-src/amidxtaped.c (cleanup): Function registered with atexit
3983           to remove the log file.
3984
3985 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
3986
3987         * server-src/Makefile.am (noinst_HEADERS): Add taperscan.h.
3988
3989 2005-12-20  John Franks <jrfranks@zmanda.com>
3990
3991         * restore-src/restore.c: Remove unused variables.
3992                                  Fix uninitialize reference to bytes_read.
3993         * server-src/amcheck.c:  Remove unused variables.
3994                                  Include taperscan.h for missing prototype.
3995         * server-src/amtape.c:   Remove unused variables.
3996                                  Include taperscan.h for missing prototype.
3997         * server-src/taper.c:    Remove unused variables.
3998                                  Minor indenting changes.
3999         * server-src/taperscan.c:Remove unused variables.
4000                                  Fix typo which assigns NULL rather than
4001                                   checks for NULL.
4002                                  Commented out reference to auto_pos which
4003                                   is assigned but never used...
4004
4005 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
4006
4007         * common-src/fileheader.c (parse_file_header): Parse '/' in part.
4008         * common-src/fileheader.c (build_header): Add space ' ' before "part".
4009
4010 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
4011
4012         * server-src/reporter.c: Fix report of output size.
4013
4014 2005-12-19  Ian Turner <ian@zmanda.com>
4015         * server-src/taperscan.c: Check that automatic tape labels satisfy
4016         the labelstr.
4017
4018 2005-12-19  Ian Turner <ian@zmanda.com>
4019         * server-src/fileheader.c: Fix broken split-dump file headers.
4020
4021 2005-12-18  Jean-Louis Martineau <martineau@zmanda.com>
4022         Patch by Paul Bijnens
4023
4024         * server-src/amcheck.c: Tapelist file is regular file.
4025
4026 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
4027
4028         * restore-src/restore.c (get_block): Return a ssize_t.
4029         * restore-src/restore.c: convert ssize_t to long for printing.
4030         * restore-src/restore.c (restore>): Remove unused variable, outpipe,
4031            outpipe2, i.
4032
4033 2005-12-17  John R. Franks <jrfranks@zmanda.com>
4034
4035         * restore-src/restore.h (read_file_header, restore): Return a ssize_t
4036           instead of using a global variable bytes_read.
4037         * restore-src/restore.c: Use local variable instead of global
4038           bytes_read. Many memory management fixe. Fixe pipe handling,
4039         * restore-src/amrestore.c: Use new read_file_header and restore.
4040         * restore-src/amfetchdump.c: Use new read_file_header and restore.
4041
4042 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
4043         With Kevin Till <ktill@zmanda.com>
4044
4045         * common-src/fileheader.c (parse_file_header): Fix parsing of first
4046           line.
4047         * common-src/fileheader.c (build_header): Print crypt after programi
4048            and only if it is needed.
4049
4050 2005-12-14  Ian Turner <ian@zmanda.com>
4051
4052         * common-src/alloc.c: Add new function vstrextend, which extends an
4053           existing string.
4054         * common-src/amanda.h: Define vstrextend.
4055         * example/amanda.conf.in: Document new option
4056           label_new_tapes. Change default labelstr.
4057         * man/xml-source/amcheck.8.xml: Emphasize the destructiveness of
4058           amcheck -w.
4059         * restore-src/restore.c: Use the new changer_find interface.
4060         * server-src/Makefile.am: Add new file taperscan.c
4061         * server-src/amcheck.c: Use the taper-scan algorithm in taperscan.c,
4062           instead of the previous separate amcheck implementation.
4063         * server-src/amtape.c: Use the taper-scan algorithm in taperscan.c,
4064           instead of the previous separate amtape implementation. Also, use
4065           the new changer_find interface for other kinds of tape finding.
4066         * server-src/changer.c: Eliminate changer_scan. Change the API to
4067           changer_find, so that callers can pass a user-data object, instead
4068           of using globals.
4069         * server-src/changer.h: Declare and document new changer_find
4070           interface.
4071         * server-src/conffile.c: Add new config option label_new_tapes.
4072         * server-src/conffile.h: ditto.
4073         * server-src/taper.c: Use the taper-scan algorithm in taperscan.c,
4074           instead of the previous separate taper implementation. Also,
4075           combine tape-label-reading for ZFTAPE and non-ZFTAPE drives (the
4076           difference only matters on writing).
4077         * server-src/taperscan.c: Refactor the taper-scan algorithm from
4078           taper, amtape, and amcheck. Implement label_new_tapes feature.
4079         * server-src/taperscan.h: Declare and document new taperscan
4080           interface.
4081         * tape-src/tapeio.c: Notice the difference between a non-Amanda tape
4082           and some other tape-reading problem.
4083         * tape-src/tapeio.h: New declarations.
4084
4085 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
4086
4087         * server-src/reporter.c (handle_success): On a taper line, the outsize
4088           should only count dump to tape, not flush.
4089
4090 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
4091
4092         * server-src/amstatus.pl.in: Parse chunker DONE line to set output size.
4093
4094 2005-12-09  John Franks <jrfranks@zmanda.com>
4095
4096         * client-src/Makefile.am: Do not include tape library if
4097           configuring with --without-server option.
4098         * recover-src/Makefile.am: Do not include tape library if
4099           configuring with --without-server option.
4100
4101 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
4102
4103         * configure.in: Move the size detection after detection of large
4104           file support. That change the size of off_t.
4105
4106 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
4107
4108         * common-src/amanda.h: Set OFF_T_FMT to printf format of a off_t.
4109         * server-src/taper.c: Use OFF_T_FMT.
4110
4111 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
4112
4113         * configure.in: Set LL_FMT correctly.
4114         * server-src/conffile.c: Use LL_FMT.
4115
4116 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
4117
4118         * server-src/conffile.c: Maxdumpsize is a AM64.
4119         * server-src/planner.c: conf_maxdumpsize, total_size, tape_length and
4120           tape_mark are am64_t.
4121
4122 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
4123
4124         * configure.in: Check for sizeof of many type. Check printf format of
4125           a 64-bit integers.
4126         * common-src/amanda.h: Typedef am64_t to a 64 bits signed type,i
4127           set AM64_FMT to the printf format of a am64_t variable.
4128         * server-src/conffile.c: New AM64 type.
4129         * server-src/conffile.h(getconf_am64): Prototype.
4130
4131 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
4132
4133         * client-src/Makefile.am: Remove amqde.
4134         * client-src/sendsize.c: Remove code to call amqde.
4135         * client-src/amqde.c: Remove file.
4136         * configure.in: Remove '--with-qde' option.
4137
4138 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
4139
4140         * server-src/amindexd.c (reply, lreply, fast_lreply): Must use
4141           str_buffer_sizebuf instead of sizeof(bug).
4142
4143 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
4144
4145         * server-src/planner.c: Print the time in the FINISH line.
4146         * server-src/reporter.c: The estimate time is based on the planner
4147           FINISH line.
4148
4149 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
4150
4151         * common-src/Makefile.am (bsdsecurity_LDADD): Add ssh-security.
4152
4153 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
4154
4155         * server-src/holding.c (scan_holdingdisk): Static function.
4156         * server-src/taper.c (signal_handler, install_signal_handlers): Ditto.
4157         * server-src/reporter.c (output_strange,do_postscript_output): Ditto.
4158
4159 2005-12-04  Jean-Louis Martineau <martineau@zmanda.com>
4160
4161         * server-src/logfile.c (logtype_str): Add important ','.
4162
4163 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
4164
4165         * server-src/planner.c (setup_estimate): Fix wrong order for argument.
4166
4167 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
4168
4169         * server-src/driver.c (start_some_dumps): Don't test for
4170           cur_idle == NOT_IDLE.
4171
4172 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
4173
4174         * server-src/driverio.c (check_unfree_serial): New fonction to check
4175           unfreed serial number.
4176         * server-src/driverio.c (free_serial_dp): Set stable[s].dp to NULL.
4177         * server-src/driverio.h (check_unfree_serial): Prototype.
4178         * server-src/driver.c (main): Call check_unfree_serial.
4179
4180 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
4181         Patch by Franz Fischer
4182
4183         * config/acinclude.m4i: Fix for __alpha.
4184
4185 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
4186
4187         * common-src/util.c: Debug must end with '\n'.
4188
4189 2005-12-01  Jean-Louis Martineau <martineau@zmanda.com>
4190
4191         * configure.in: Amanda support x86_64-unknown-linux-gnu.
4192
4193 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4194
4195         * common-src/rsh-security.c (rsh_sendpkt): buf is a char array.
4196         * common-src/ssh-security.c (rsh_sendpkt): buf is a char array.
4197         * config/acinclude.m4i (AX_CREATE_STDINT_H): Newer macro.
4198
4199 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4200
4201         * client-src/rundump.c: undef USE_RUNDUMP before define.
4202
4203 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4204         Patch by Franz Fischer
4205
4206         * client-src/amqde.c: Fix compiler warning.
4207
4208 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
4209         Patch by Franz Fischer
4210
4211         * common-src/event.h: Fix compiler warning.
4212         * server-src/conffile.h: Fix compiler warning.
4213
4214 2005-11-30  Kevin Till  <ktill@zmanda.com>
4215         
4216         * client-src/client_util.c add server-side, client-side encryption
4217           as well as custom compression. Custom compression patch is
4218           orginally created by Matthieu Lochegnies.
4219         * client-src/client_util.h Ditto
4220         * client-src/selfcheck.c Ditto
4221         * client-src/sendbackup-dump.c Ditto
4222         * client-src/sendbackup-gnutar.c Ditto
4223         * client-src/sendbackup.c Ditto
4224         * client-src/sendbackup.h Ditto
4225         * common-src/fileheader.c Ditto
4226         * common-src/fileheader.h Ditto
4227         * common-src/util.h Ditto
4228         * example/amanda.conf.in Ditto
4229         * man/xml-source/amanda.conf.5.xml Ditto
4230         * restore-src/amrestore.c Ditto
4231         * restore-src/restore.c Ditto
4232         * server-src/conffile.c Ditto
4233         * server-src/conffile.h Ditto
4234         * server-src/diskfile.c Ditto
4235         * server-src/diskfile.h Ditto
4236         * server-src/dumper.c Ditto
4237         
4238 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
4239
4240         * config/libtool.m4i: libtool 1.5.20
4241         * config/ltmain.sh: libtool 1.5.20
4242
4243 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
4244         Patch by Franz Fischer
4245
4246         * common-src/fileheader.c (build_header): Declation before instruction.
4247         * restore-src/amfetchdump.c: Don't use C++ style comment.
4248         * restore-src/restore.c: Don't use C++ style comment.
4249         * server-src/amindexd.c (reply, lreply, fast_lreply): buf must be
4250            dynamicaly allocated.
4251         * server-src/logfile.h: Don't use C++ style comment.
4252         * server-src/taper.c (free_split_buffer): Test splitbuf against NULL.
4253
4254 2005-11-22 Paddy Sreenivasan <paddy@zmanda.com>
4255         * common-src/rsh-security.c: Fix x86_64 compile warnings.
4256         * common-src/ssh-security.c: Fix x86_64 compile warnings.
4257         * man/Makefile.am: Added EXTRA_XML files.
4258         * man/xml-source/amanda.8.xml: Added spanning patch variables.
4259         * man/xml-source/amrecover.8.xml: Added amfetchdump to SEE ALSO.
4260         * xslt/global.entities: Removed file.
4261
4262 2005-11-20  Jean-Louis Martineau <martineau@zmanda.com>
4263         Patch by Jon H. LaBadie
4264
4265         * changer-src/chg-disk.sh.in: Check permission on file access.
4266
4267 2005-11-17  Paddy Sreenivasan <paddy@zmanda.com>
4268         * man/entities/global.entities: New file. Added man page entities.
4269         * man/entities/xinclude.dtd: New file.
4270         * man/xslt/man.xsl: Correct include path for settings.xsl.
4271
4272 2005-11-15  John R. Franks <jrfranks@zmanda.com>
4273         * changer-src/scsi-changer-driver.c: Fix IA-64 compile warnings.
4274         * common-src/rsh-security.c: Fix IA-64 compile warnings.
4275         * common-src/ssh-security.c: Fix IA-64 compile warnings.
4276         * regex-src/engine.c: Fix IA-64 compile warnings.
4277         * regex-src/regexec.c: Fix IA-64 compile warnings.
4278
4279 2005-11-15  Paddy Sreenivasan <paddy@zmanda.com>
4280
4281         * configure.in:  Changed defaults for tape_dev and nr_tape_dev.
4282         * example/amanda.conf.in: Leave only changerfile definition
4283           uncommented.
4284         * man/xml-source/amanda.conf.5.xml: Updated defaults for 
4285           tapedev and rawtapedev
4286
4287 2005-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4288
4289         * server-src/planner.c: Fix incronly.
4290
4291 2005-11-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4292
4293         * man/Makefile.am: Set man_MANS,
4294
4295 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4296
4297         * man/Makefile.am: Set man5_MANS and man8_MANS,
4298           install-data-hook use them.
4299
4300 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4301         Patch by Olivier Cherrier
4302
4303         * man/Makefile.am (install-data-hook): Set protection correclty
4304           for man5 and man8.
4305
4306 2005-10-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4307
4308         * common-src/util.c (bind_portrange): Increase port in all case.
4309
4310 2005-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4311
4312         * server-src/conffile.c: Allow runtapes==0.
4313         * server-src/driver.c: Use a global conf_runtapes. Don't start a
4314           taper if runtapes==0.
4315         * server-src/reporter.c: Don't print The next tapes if runtapes==0.
4316
4317
4318 2005-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4319
4320         * Amanda 2.5.0b1 released.
4321         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b1).
4322         * NEWS: Update for 2.5.0b1.
4323
4324 2005-10-25  Ian Turner <ian@zmanda.com>
4325         
4326         * man/Makefile.am: include amfetchdump.8.
4327         * man/xml-source/amadmin.8.xml: Add spanning-patch documentation.
4328         * man/xml-source/amanda.8.xml: ditto
4329         * man/xml-source/amrecover.8.xml: ditto
4330         * man/xml-source/amfetchdump.8.xml: ditto (new file)
4331         * man/xslt/global.entities: Add myself, Zmanda Inc.
4332         
4333 2005-10-24  Jean-Louis Martineau <martineau@zmanda.com>
4334
4335         * client-src/sendsize.c (getsize_wrapper): Add a NULL at the end of
4336           the argvchild array.
4337
4338 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
4339
4340         * server-src/server_util.c (getcmd): Print DEBUG to stderr.
4341
4342 2005-10-20  Ian Turner <ian@zmanda.com>
4343
4344         * configure.in: Check for xsltproc.
4345         * man/Makefile.am: Properly build, clean, and distribute generated
4346           manpages from XML source.
4347         * man/amadmin.8: Remove from CVS
4348         * man/amanda.8: Remove from CVS
4349         * man/amanda.conf.5: Remove from CVS
4350         * man/amcheck.8: Remove from CVS
4351         * man/amcheckdb.8: Remove from CVS
4352         * man/amcleanup.8: Remove from CVS
4353         * man/amdd.8: Remove from CVS
4354         * man/amdump.8: Remove from CVS
4355         * man/amflush.8: Remove from CVS
4356         * man/amgetconf.8: Remove from CVS
4357         * man/amlabel.8: Remove from CVS
4358         * man/ammt.8: Remove from CVS
4359         * man/amoverview.8: Remove from CVS
4360         * man/amplot.8: Remove from CVS
4361         * man/amrecover.8: Remove from CVS
4362         * man/amreport.8: Remove from CVS
4363         * man/amrestore.8: Remove from CVS
4364         * man/amrmtape.8: Remove from CVS
4365         * man/amstatus.8: Remove from CVS
4366         * man/amtape.8: Remove from CVS
4367         * man/amtapetype.8: Remove from CVS
4368         * man/amtoc.8: Remove from CVS
4369         * man/amverify.8: Remove from CVS
4370         * man/amverifyrun.8: Remove from CVS
4371         * man/xml-source/amadmin.8.xml: Add from xml-docs
4372         * man/xml-source/amanda.8.xml: Add from xml-docs
4373         * man/xml-source/amanda.conf.5.xml: Add from xml-docs
4374         * man/xml-source/amcheck.8.xml: Add from xml-docs
4375         * man/xml-source/amcheckdb.8.xml: Add from xml-docs
4376         * man/xml-source/amcleanup.8.xml: Add from xml-docs
4377         * man/xml-source/amdd.8.xml: Add from xml-docs
4378         * man/xml-source/amdump.8.xml: Add from xml-docs
4379         * man/xml-source/amflush.8.xml: Add from xml-docs
4380         * man/xml-source/amgetconf.8.xml: Add from xml-docs
4381         * man/xml-source/amlabel.8.xml: Add from xml-docs
4382         * man/xml-source/ammt.8.xml: Add from xml-docs
4383         * man/xml-source/amoverview.8.xml: Add from xml-docs
4384         * man/xml-source/amplot.8.xml: Add from xml-docs
4385         * man/xml-source/amrecover.8.xml: Add from xml-docs
4386         * man/xml-source/amreport.8.xml: Add from xml-docs
4387         * man/xml-source/amrestore.8.xml: Add from xml-docs
4388         * man/xml-source/amrmtape.8.xml: Add from xml-docs
4389         * man/xml-source/amstatus.8.xml: Add from xml-docs
4390         * man/xml-source/amtape.8.xml: Add from xml-docs
4391         * man/xml-source/amtapetype.8.xml: Add from xml-docs
4392         * man/xml-source/amtoc.8.xml: Add from xml-docs
4393         * man/xml-source/amverify.8.xml: Add from xml-docs
4394         * man/xml-source/amverifyrun.8.xml: Add from xml-docs
4395         * man/xslt/expand-sambadoc.xsl: Add from xml-docs
4396         * man/xslt/global.entities: Add from xml-docs
4397         * man/xslt/man.xsl: Add from xml-docs
4398         * man/xslt/settings.xsl: Add from xml-docs
4399
4400 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
4401
4402         * server-src/amstatus.pl.in: a FLUSH command can't be in an estimate
4403           phase.
4404         * server-src/driver.c: Start autoflush while waiting for estimate.
4405         * server-src/planner.c: Write FLUSH line before estimate.
4406
4407 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
4408         Patch by John R. Franks <jrfranks@zmanda.com>
4409
4410         * server-src/taper.c (create_split_buffer): Should not use sizeof().
4411
4412 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
4413
4414         * server-src/taper.c (read_file): Move the putresult(DONE) to the
4415           right place, some cleanup.
4416
4417 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
4418
4419         * server-src/planner.c: Increase DEFAULT_DUMPRATE to 1024 K/s.
4420
4421 2005-10-17  Ian Turner <ian@zmanda.com>
4422
4423         * Changelog: Fix line breaks.
4424         * restore-src/restore.c: Give more useful FSF error messages.
4425         * recover-src/extract_list.c: Do better error checking on passed port
4426           number.
4427         * common-src/tapelist.c: Do proper memory management of strings.
4428           Otherwise really bad stuff happens.
4429
4430 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
4431
4432         * server-src/taper.c: Set SIGPIPE to SIG_IGN, the code already
4433           handle it correctly.
4434
4435 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
4436
4437         * server-src/taper.c (signal_handler): Don't REMOVE_SHARED_MEMORY, it
4438           is done by exit.
4439
4440 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
4441
4442         * server-src/driverio.c (serial2disk): Print str if error.
4443
4444 2005-10-15  Paddy Sreenivasan <paddy@zmanda.com>
4445
4446         * server-src/taper.c: Shared memory need not be removed in normal paths.
4447           Done as part of atexit. 
4448
4449 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
4450         Patch by John R. Franks <jrfranks@zmanda.com>
4451
4452         * changer-src/scsi-aix.c: calls to open/openx guages success by
4453           checking for a file descriptor greater than 0.  0 is also a valid
4454           descriptor so the check should be >= 0.
4455           Calls to SCSI_OpenDevice does not check for error return.
4456           Calls to SCSI_OpenDevice does not check for error return.
4457           Calls to SCSI_OpenDevice does not check for error return.
4458           Call to opendir() does not check for error.
4459         * changer-src/scsi-hpux_new.c: Ditto.
4460         * changer-src/scsi-irix.c: Ditto.
4461         * changer-src/scsi-linux.c: Ditto.
4462         * changer-src/scsi-solaris.c: Ditto.
4463         * client-src/selfcheck.c: Call to open() does not check for error.
4464         * client-src/sendbackup.c: Call to freopen() does not check for error.
4465         * client-src/sendsize.c: Call to open() does not check for error.
4466         * common-src/bsd-security.c: Call to open() does not check for error.
4467         * common-src/file.c: Call to open() does not check for error.
4468         * restore-src/amrestore.c: Calls to tape_open() do not always check
4469           return code.  open() is called with open flags set to 0
4470           (Call always fails with an EINVAL)
4471         * restore-src/restore.c: fopen() return error check  is "fopen() < 0".
4472           fopen returns a pointer and the proper check should be
4473           "fopen() == NULL".
4474           Call to open() does not check for error.
4475         * tape-src/tapeio.c: tape_open() is called here and other places with a
4476           variable number of arguments, and yet is not defined as a varargs
4477           function...
4478         * tape-src/tapeio.h: Prototype for tape_open.
4479
4480 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
4481         Patch by Paddy Sreenivasan <paddy@zmanda.com>
4482
4483         * client-src/sendsize.c: Log message changes.
4484         * server-src/taper.c: And an atexit function to detach shared memory.
4485           Trap some signal and detach shared memory.
4486
4487 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
4488
4489         * regex-src/regcomp.c (findmust): Initialized start to NULL.
4490
4491 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
4492         Patch by John R. Franks <jrfranks@zmanda.com>
4493
4494         * regex-src/cclass.h: Fixed to add missing braces and reformat long
4495           strings to fix in 80 columns.
4496         * regex-src/cname.h: Fixed by adding braces and tidying up code a bit.
4497         * regex-src/regcomp.c (p_ere): Initialized prevback and prevfwd to 0.
4498           ifdef out unused mcsub, mcin and mcfind functions.
4499           (findmust) Initialized newstart to NULL.
4500         * regex-src/regerror.c: Adds missing braces.
4501         * regex-src/regexec.c (nope): Use only in assert, so it is not only
4502           defined if NDEBUG is not defined.
4503
4504 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
4505         Patch by John R. Franks <jrfranks@zmanda.com>
4506
4507         * common-src/krb4-security.c (krb4_security_dummy): Rename from dummy,
4508           it is not static int.
4509         * common-src/krb5-security.c (krb5_security_dummy): Rename from dummy,
4510           it is not static int.
4511
4512 2005-10-13  Jean-Louis Martineau <martineau@zmanda.com>
4513
4514         * common-src/util.c (bind_portrange): New argument proto.
4515           Check for reserved port.
4516         * common-src/util.h (bind_portrange): New prototype.
4517         * common-src/bsd-security.c (bind_portrange): New prototype.
4518         * common-src/dgram.c: Add "udp" as argument to bind_portrange.
4519         * common-src/stream.c: Add "tcp" as argument to bind_portrange.
4520
4521 2005-10-12  Jean-Louis Martineau <martineau@zmanda.com>
4522
4523         * restore-src/amidxtaped.c (check_security_buffer): i is a socklen_t.
4524         * restore-src/amidxtaped.c (main): Remove i, fd, amrestore_path, pid,
4525           isafile, stat_tape, tapename, s, fp, ch and errstr variable.
4526
4527 2005-10-11  Ian Turner <ian@zmanda.com>
4528         Patch by  Jean-Louis Martineau <martineau@zmanda.com>
4529         
4530         * restore-src/amfetchdump.c: Remove unused variable debug.
4531         * restore-src/amidxtaped.c: Remove lock_logfile(), which is also 
4532           in restore.c.
4533         * restore-src/Makefile.am: Include libamanda twice, to fix build 
4534           on some machines.
4535
4536 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4537
4538         * restore-src/Makefile (noinst_HEADERS): Add restore.h.
4539         * restore-src/restore.c (search_tapes): Add the fourth argument to
4540           read_file_header.
4541
4542 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4543
4544         * server-src/conffile.c: dpcur.s_split_diskbuffer must be initialize
4545           to 0.
4546         * server-src/reporter.c (handle_partial): Set repdata to the result
4547           of handle_success.
4548         * server-src/taper.c: Set the first-file.
4549
4550 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4551
4552         * client-src/client_util.c, server-src/amcheck.c,
4553           server-src/reporter.c: Add missing type for arguments.
4554
4555 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4556
4557         * server-src/taper.c (tape_writer_side): detach_buffers on normal exit.
4558
4559 2005-10-10  Ian Turner <ian@zmanda.com>
4560
4561         * server-src/amtape.h: Apply tape-spanning patch by John Stange
4562           <building@cs.umd.edu> as ported to 2.5.0 by Ian Turner, with
4563           contributions by Christopher Pascoe <c.pascoe@itee.uq.edu.au>.
4564         * configure.in: Ditto
4565         * amplot/Makefile.am: Ditto
4566         * changer-src/Makefile.am: Ditto
4567         * client-src/Makefile.am: Ditto
4568         * common-src/Makefile.am: Ditto
4569         * common-src/amanda.h: Ditto
4570         * common-src/amfeatures.c: Ditto
4571         * common-src/amfeatures.h: Ditto
4572         * common-src/fileheader.c: Ditto
4573         * common-src/fileheader.h: Ditto
4574         * common-src/match.c: Ditto
4575         * common-src/tapelist.c: Ditto
4576         * common-src/tapelist.h: Ditto
4577         * example/amanda.conf.in: Ditto
4578         * man/Makefile.am: Ditto
4579         * recover-src/amrecover.c: Ditto
4580         * recover-src/amrecover.h: Ditto
4581         * recover-src/display_commands.c: Ditto
4582         * recover-src/extract_list.c: Ditto
4583         * restore-src/Makefile.am: Ditto
4584         * restore-src/amfetchdump.c: Ditto
4585         * restore-src/amfetchdump.h: Ditto
4586         * restore-src/amidxtaped.c: Ditto
4587         * restore-src/amrestore.c: Ditto
4588         * restore-src/restore.c: Ditto
4589         * restore-src/restore.h: Ditto
4590         * server-src/Makefile.am: Ditto
4591         * server-src/amadmin.c: Ditto
4592         * server-src/amindexd.c: Ditto
4593         * server-src/amoverview.pl.in: Ditto
4594         * server-src/amtoc.pl.in: Ditto
4595         * server-src/amverify.sh.in: Ditto
4596         * server-src/changer.c: Ditto
4597         * server-src/conffile.c: Ditto
4598         * server-src/conffile.h: Ditto
4599         * server-src/disk_history.c: Ditto
4600         * server-src/disk_history.h: Ditto
4601         * server-src/diskfile.c: Ditto
4602         * server-src/diskfile.h: Ditto
4603         * server-src/driver.c: Ditto
4604         * server-src/driverio.c: Ditto
4605         * server-src/find.c: Ditto
4606         * server-src/find.h: Ditto
4607         * server-src/holding.c: Ditto
4608         * server-src/holding.h: Ditto
4609         * server-src/logfile.c: Ditto
4610         * server-src/logfile.h: Ditto
4611         * server-src/planner.c: Ditto
4612         * server-src/reporter.c: Ditto
4613         * server-src/server_util.c: Ditto
4614         * server-src/server_util.h: Ditto
4615         * server-src/taper.c: Ditto
4616
4617 2005-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4618
4619         * server-src/taper.c: Change message: on new tape due to
4620
4621 2005-10-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4622         Patch by John R. Franks 
4623
4624         * common-src/amflock.c (main): Don't call safe_fd, it's not needed
4625           during configure.
4626         * configure.in: '#include <sys/types.h>' in the check
4627           'for Linux like scsi support (sg)'
4628
4629 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4630
4631         * client-src/amandad.c (writebuf): Call waitpid in the parent.
4632
4633 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4634
4635         * client-src/amandad.c (service_delete): Remove call to sleep.
4636         * common-src/bsd-security.c: Add bsdprintf. Add more debug.
4637           The handle is used as a string, instead of 2 int.
4638
4639 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4640
4641         * common-src/rsh-security.c: rshprintf should call dbprint.
4642         * common-src/ssh-security.c: rshprintf should call dbprint, add many
4643           rshprintf.
4644         * common-src/event.c: Add eventprintf, use it. Add debug_prefix_time
4645           to the log. 
4646
4647 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4648
4649         * common-src/stream.c: len is a socklen_t.
4650         * server-src/amindexd.c: Add socklen as a socklen_t.
4651         * restore-src/amidxtaped.c: Add socklen as a socklen_t.
4652         * tape-src/tapetype.c: Change printf format.
4653         * server-src/amlabel.c: Add a variable isa_zftape. init fd to -1.
4654         * server-src/dumper.c: Init outfd to -1.
4655         * common-src/file.c (areads_getbuf): First argument is const.
4656
4657 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4658
4659         * server-src/reporter.c: Don't trunk hostname/diskname in
4660           'FAILURE AND STRANGE DUMP SUMMARY' section.
4661
4662 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4663
4664         * server-src/chunker.c (main): Remove outfd.
4665
4666 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4667
4668         * server-src/conffile.c, server-src/diskfile.c, server-src/infofile.c,
4669           client-src/getfsent.c, common-src/statfs.c, common-src/token.c
4670           (main): Remove fd declaration.
4671
4672 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4673
4674         * client-src/runtar.c: 'e' and 'bdf' are only needed if GNUTAR.
4675
4676 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4677
4678         * common-src/sl.c (insert_sort_sl). Typo.
4679
4680 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4681
4682         * config/config.guess: Update from automake 1.9.5.
4683         * config/config.sub: Update from automake 1.9.5.
4684         * config/depcomp: Update from automake 1.9.5.
4685         * config/install-sh: Update from automake 1.9.5.
4686         * config/missing: Update from automake 1.9.5.
4687         * config/mkinstalldirs: Update from automake 1.9.5.
4688         * config/ltmain.sh: Update from libtool-1.5.16.
4689         * config/libtool.m4i: Update from libtool-1.5.16.
4690
4691 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4692
4693         * common-src/bsd-security.c: Fix small bug.
4694
4695 2005-09-22  John R. Jackson <jrj@purdue.edu>
4696
4697         * configure.in: If --without-server is specified, either on the
4698           command line or via config.site, make sure --without-restore
4699           is also in effect.  Avoids compilation errors if mismatched.
4700         * example/config.site: Document above.
4701
4702 2005-09-21  John R. Jackson <jrj@purdue.edu>
4703
4704         * server-src/getconf.c: Allow CLIENT_LOGIN to be retrieved via
4705           "amgetconf build.CLIENT_LOGIN".
4706
4707 2005-09-21  John R. Jackson <jrj@purdue.edu>
4708
4709         * server-src/amlabel.c: 'int fd' is only needed if HAVE_LINUX_ZFTAPE_H
4710           is defined.
4711
4712 2005-09-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4713
4714         * server-src/amlabel.c: 'int fd' is needed.
4715
4716 2005-09-20  John R. Jackson <jrj@purdue.edu>
4717
4718         * server-src/reporter.c: Fix minor typo noticed by Scott R. Burns
4719           <Scott.Burns@Netcontech.Com>.
4720
4721 2005-09-20  John R. Jackson <jrj@purdue.edu>
4722
4723         * common-src/file.c: Create safe_fd() to do common file descriptor
4724           safety operations at the start of every program.  In addition
4725           to closing everything from three on up that used to be done
4726           with explicit code, make sure stdin, stdout and stderr are
4727           open per a potential (but unlikely) security report from Ben
4728           Schwarz <bschwarz@EECS.berkeley.EDU>.
4729         * common-src/amanda.h: Ditto.
4730         * client-src/amandad.c: Ditto.
4731         * client-src/calcsize.c: Ditto.
4732         * client-src/getfsent.c: Ditto.
4733         * client-src/killpgrp.c: Ditto.
4734         * client-src/rundump.c: Ditto.
4735         * client-src/runtar.c: Ditto.
4736         * client-src/selfcheck.c: Ditto.
4737         * client-src/sendbackup.c: Ditto.
4738         * client-src/sendsize.c: Ditto.
4739         * client-src/versionsuffix.c: Ditto.
4740         * common-src/amflock.c: Ditto.
4741         * common-src/rsh-security.c: Ditto.
4742         * common-src/ssh-security.c: Ditto.
4743         * common-src/statfs.c: Ditto.
4744         * common-src/token.c: Ditto.
4745         * recover-src/amrecover.c: Ditto.
4746         * restore-src/amidxtaped.c: Ditto.
4747         * restore-src/amrestore.c: Ditto.
4748         * server-src/amadmin.c: Ditto.
4749         * server-src/amcheck.c: Ditto.
4750         * server-src/amcleanupdisk.c: Ditto.
4751         * server-src/amflush.c: Ditto.
4752         * server-src/amindexd.c: Ditto.
4753         * server-src/amlabel.c: Ditto.
4754         * server-src/amlogroll.c: Ditto.
4755         * server-src/amtape.c: Ditto.
4756         * server-src/amtrmidx.c: Ditto.
4757         * server-src/amtrmlog.c: Ditto.
4758         * server-src/chunker.c: Ditto.
4759         * server-src/conffile.c: Ditto.
4760         * server-src/diskfile.c: Ditto.
4761         * server-src/driver.c: Ditto.
4762         * server-src/getconf.c: Ditto.
4763         * server-src/infofile.c: Ditto.
4764         * server-src/planner.c: Ditto.
4765         * server-src/reporter.c: Ditto.
4766         * server-src/taper.c: Ditto.
4767         * server-src/dumper.c: Ditto plus remove incorrect chdir to hard
4768           coded "/tmp/amanda".
4769
4770 2005-09-20  John R. Jackson <jrj@purdue.edu>
4771
4772         * client-src/calcsize.c: Fix format string.
4773         * server-src/diskfile.c: Fix compiler warnings.
4774         * server-src/planner.c: Fix compiler warnings.
4775
4776 2005-09-20  John R. Jackson <jrj@purdue.edu>
4777
4778         * common-src/amanda.h: Add dbreopen() so debug file can be closed
4779           and then reopened if needed.
4780         * common-src/debug.c: Ditto.
4781         * client-src/runtar.c: Close the debug file (fd 10) around the
4782           exec of GNU tar.  Newer versions complain about stray file
4783           descriptors.
4784         * server-src/getconf.c: Use dbreopen() to create the debug file.
4785           Do not try to open config file unless needed (allows clients to
4786           use build.XXX/dbopen.XXX/dbclose.XXX).
4787
4788 2005-09-20  John R. Jackson <jrj@purdue.edu>
4789
4790         * client-src/sendbackup-dump.c: Ignore a new message from Solaris
4791           vxdump.
4792
4793 2005-09-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4794
4795         * common-src/bsd-security.c: Generate a unique event_id, thei
4796           proto_handle is not always unique.
4797
4798 2005-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4799
4800         * server-src/amverify.sh.in: Don't check for EOI, it's buggy.
4801
4802 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4803
4804         * server-src/driverio.c: Don't save history with size < 0.
4805
4806 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4807         Patch by Geert Uytterhoeven <geert@linux-m68k.org>
4808
4809         * server-src/planner.c: Don't use history with size < 0.
4810
4811 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4812         Patch Paul Bijnens <paul.bijnens@xplanation.com>
4813
4814         * server-src/planner.c(delay_dumps): Delay incremental dump also
4815           larger than tape.
4816
4817 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4818         Patch by Orion Poplawski <orion@cora.nwra.com>
4819
4820         * server-src/amoverview.pl.in: Add options -last, -num0 and -togo0.
4821         * man/amoverview.8: Document -last, -num0 and -togo0.
4822
4823 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4824         Patch by Orion Poplawski <orion@cora.nwra.com>
4825
4826         * server-src/driver.c: Make tape_length and tape_left unsigned long.
4827
4828 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4829         Patch by Stefan G. Weichinger <monitor@oops.co.at>
4830
4831         * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases.
4832
4833 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4834
4835         Bug found by John E Hein <jhein@timing.com>.
4836         * server-src/amadmin.c: Fix of by one with NB_HISTORY.
4837         * server-src/infofile.c:x: Fix of by one with NB_HISTORY.
4838
4839 2005-06-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4840         Patch by Jay Fenlason <fenlason@redhat.com>
4841
4842         * client-src/sendsize.c: Fix dbprintf call.
4843
4844 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4845             Stefan G. Weichinger <monitor@oops.co.at>
4846
4847         * example/amanda.conf.in: edited the default-value for the
4848                                   holdingdisk-usage to "use -100 Mb".
4849                                   The old value "use 290 Mb" didn't make much
4850                                   sense anymore.
4851
4852 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4853
4854         * server-src/amverifyrun.sh.in: Remove buggy space.
4855
4856 2005-05-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4857
4858         * server-src/amadmin.c: Add [--days <num>] argument to tape subcommand.
4859
4860 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4861
4862         * example/amanda.conf.in: Update from 2.4.5.
4863
4864 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4865
4866         * docs/*: New documentation from xml-docs.
4867         * docs/Makefile.am (pkgdata_DATA): Update for new files.
4868
4869 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4870
4871         * man/Makefile.am (COMMON_MAN_PAGES): Add amanda.conf.5.
4872
4873 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4874
4875         * man/*: Use man pages form xml-docs.
4876         * configure.in (AC_CONFIG_FILES): Remove all man pages.
4877         * man/Makefile.am (EXTRA_DIST): Add amadmin.8 amanda.8 amanda.conf.5 
4878           amcheck.8 amcheckdb.8 amcleanup.8 amdump.8 amflush.8 amgetconf.8
4879           amlabel.8 amoverview.8 amreport.8 amrecover.8 amrmtape.8 amstatus.8
4880           amtapetype.8 amtoc.8 amverify.8 amverifyrun.8
4881
4882 2005-05-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4883
4884         * common-src/rsh-security.c (net_read_fillbuf): Read only a packet,
4885           nothing more.
4886         * common-src/ssh-security.c (net_read_fillbuf): Read only a packet,
4887           nothing more.
4888         * common-src/rsh-security.c (conn_put): Don't kill the process, only do
4889           a wait with WNOHANG.
4890         * common-src/ssh-security.c (conn_put): Don't kill the process, only do
4891           a wait with WNOHANG.
4892
4893 2005-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4894
4895         * changer-src/chg-zd-mtx.sh.in: Improve handling of
4896           "Unknown Storage Element Loaded".
4897
4898 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4899         - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052
4900
4901         * server-src/amverifyrun.sh.in: Filter changer log file.
4902
4903 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4904
4905         * server-src/amcheck.c: Improve messages.
4906
4907 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4908
4909         * client-src/sendsize.c (generic_calc_estimates): Use amname instead
4910           of dirname in message.
4911
4912 2005-03-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4913
4914         * server-src/conffile.h: Rename getcont_unit_divisor to
4915           getconf_unit_divisor.
4916         * server-src/amadmin.c: Use getconf_unit_divisor.
4917         * server-src/amcheck.c: Use getconf_unit_divisor.
4918         * server-src/conffile.c: Use getconf_unit_divisor.
4919         * server-src/conffile.c (unit_divisor): Init to 1.
4920         * server-src/reporter.c: Use getconf_unit_divisor. The mb macro always
4921           divide by 1024. Add the du macro. Use mb or du where appropriate.
4922
4923 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4924
4925         * server-src/infofile.h (history_t): Add secs field.
4926         * server-src/infofile.c (read_txinfofile): Parse info file with secs
4927           in history.
4928         * server-src/infofile.c (write_txinfofile): Write secs in history.
4929         * server-src/driverio.c (update_info_dumper): Update secs in history.
4930
4931 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4932
4933         * server-src/planner.c: Improve server estimate.
4934         * server-src/planner.c: Write server estimate like others estimate.
4935
4936 2005-02-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4937
4938         * server-src/amstatus.pl.in: last_level is negative, on new disk.
4939
4940 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4941
4942         * server-src/amstatus.pl.in: Use '-?' to match negative values
4943           instead of '-*'.
4944
4945 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4946         Patch by Orion Poplawski <orion@cora.nwra.com>
4947
4948         * server-src/amoverview.pl.in: Print the total number of level 0
4949           dumps for each disk and the number of runs until the last level 0
4950           dump will be overwritten.
4951
4952 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4953         Patch by Phil Homewood <pdh@snapgear.com>
4954
4955         * server-src/amoverview.pl.in: Add -skipmissed option.
4956
4957 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4958
4959         * server-src/driver.c: Print the chunksize to the log.
4960
4961 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4962
4963         * client-src/calcsize.c: Print estimate to STDERR.
4964         * client-src/sendsize.c (generic_calc_estimates): Read calcsize result,
4965           and send it to amandad. Write debuging message.
4966
4967 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4968         Patch by Franz G. Fischer
4969
4970         * server-src/conffile.c: Adds a value type LONG and a val_t.l long
4971           union member and changes get_number() to return long and
4972           get_simple() to fill val_t.l if called for a long value.  The
4973           get_simple() calls have been changed to LONG for typetype_t.blocksize
4974           typetype_t.length, typetype_t.filemark, holdingdisk_t.disksize and
4975           holdingdisk_t.chunksize.
4976
4977 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4978
4979         * server-src/amdump.sh.in: Redirect in append mode.
4980         * server-src/driver.c: Set stdout and stderr to not buffered.
4981         * server-src/planner.c: Set stderr to not buffered.
4982           Print 'setup_estimate:' on one line.
4983         * server-src/amstatus.pl.in: Parse new 'setup_estimate:' line.
4984
4985 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4986
4987         * client-src/calcsize.c: Improve estimate for sparse file and count
4988           space for filenames.
4989
4990 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4991
4992         * server-src/planner.c: Improve message if no incremental estimate.
4993
4994 2004-12-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4995         Patch by Christopher Pascoe <c.pascoe@itee.uq.edu.au>
4996
4997         * common-src/match.c (match_glob, match_tar): Don't amfree(regex)
4998           before calling error().
4999
5000 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5001
5002         * server-src/driver.c (startaflush): Use ALGO_SMALLEST if nothing fit.
5003
5004 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5005
5006         * server-src/driver.c: Typo.
5007
5008 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5009
5010         * restore-src/amrestore.c: Should now work correctly with empty file.
5011         * server-src/amverify.sh.in: Parse "End-of-Information detected."
5012           message from amrestore.
5013
5014 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5015
5016         * server-src/driver.c: tape_left should not become negative.
5017
5018 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5019         Patch by Orion Poplawski <orion@cora.nwra.com>
5020
5021         * server-src/diskfile.c: Parse negative spindle (-1).
5022
5023 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5024
5025         * server-src/amadmin.c: Balance subcommand use displayunit.
5026         * server-src/amcheck.c: Small cleanup.
5027
5028 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5029
5030         * restore-src/amrestore.c: Undo patch from 2004-11-11, it break
5031           the file: dirver.
5032
5033 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5034
5035         * server-src/amstatus.pl.in: Remove trace.
5036
5037 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5038
5039         * server-src/diskfile.c: Compilation fix.
5040
5041 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5042
5043         * server-src/conffile.c: Parse displayunit,
5044           new fonction getcont_unit_divisor().
5045         * server-src/conffile.h: Prototype of getcont_unit_divisor().
5046         * server-src/amcheck.c: Use displayunit to display holding disk size.
5047         * server-src/amstatus.pl.in: Use displayunit to display dump size.
5048         * server-src/reporter.c: use displayunit to display dump size.
5049         * Document displayunit.
5050
5051 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5052
5053         * server-src/reporter.c: Change 'Daily' for 'Incr.'.
5054
5055 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5056
5057         * server-src/amstatus.pl.in Fix for level -1.
5058
5059 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5060         Patch by Daniel Widyono <widyono@seas.upenn.edu>
5061
5062         * changer-src/chg-zd-mtx.sh.in: Fix for library with barcode.
5063
5064 2004-11-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5065
5066         * restore-src/amrestore.c: Read empty file.
5067
5068 2004-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5069
5070         * tape-src/tapetype.c: Use new tape.
5071
5072 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5073
5074         * server-src/amstatus.pl.in: Display partial estimate.
5075
5076 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5077
5078         * server-src/diskfile.c (read_diskline): A spindle must be numerical.
5079
5080 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5081
5082         * server-src/holding.c (rename_tmp_holding): Always rename files.
5083
5084 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5085
5086         * server-src/driver.c: Print message when too many retry.
5087         * server-src/amstatus.pl.in: Detect a failed dump after too many retry.
5088         * amplot/amplot.awk: Parse these message.
5089
5090 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5091
5092         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
5093           if dumper returns DONE and taper returns TRYAGAIN.
5094
5095 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5096
5097         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
5098           if dumper returns TRYAGAIN and taper returns DONE.
5099
5100 2004-10-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5101
5102         * server-src/amflush.c: Don't start a driver if nothing to flush.
5103
5104 2004-10-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5105         Patch by Eric Siegerman <erics@telepres.com>
5106
5107         * example/3hole.ps: Fix for multiple tape.
5108
5109 2004-10-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5110
5111         * server-src/amverify.sh.in: Terminate if no tape online.
5112
5113 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5114
5115         * server-src/amadmin.c (main): Call check_dumpuser() as soon as posible.
5116
5117 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5118
5119         * server-src/conffile.c (getconf_byname): Special case for typ == BOOL.
5120
5121 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5122
5123         * server-src/planner.c (promote_hills): Use dumpcycle instead of
5124           tapecycle.
5125         * example/amanda.conf.in: Remove warning for tapecyle set to inf.
5126
5127 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5128
5129         * server-src/amadmin.c (balance): Don't core dump if DUMPCYLE is too
5130           big.
5131
5132 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5133
5134         * tape-src/tapetype.c: New -o option, doesn't overwrite amanda
5135           tape without -o.
5136         * man/amtapetype.8.in: Document new -o option.
5137
5138 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5139
5140         * server-src/amstatus.pl.in: Works with failed dump to tape.
5141
5142 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5143
5144         * client-src/sendbackup-gnutar.c (end_backup): Write warning message
5145           in not fatal error.
5146         * server-src/dumper.c (process_dumpline): Parse warning message.
5147         * server-src/reporter.c (handle_strange): Print warning message in
5148           the STRANGE summary.
5149
5150 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5151
5152         * server-src/driverio.c (free_serial): Set stable[s].dp to NULL.
5153         * server-src/driverio.c (disk2serial): Check that stable[s].dp == NULL.
5154
5155 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5156         Patch by Joe Rhett <jrhett@isite.net>
5157
5158         * common-src/alloc.c (safe_env): Keep SYSTEMROOT if __CYGWIN__.
5159
5160 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5161         Patch by Orion Poplawski <orion@cora.nwra.com>
5162
5163         * server-src/conffile.c (copy_dumptype): Copy maxpromoteday.
5164
5165 2004-08-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5166
5167         * client-src/selfcheck.c (check_disk): More check for CALCSIZE.
5168
5169 2004-08-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5170
5171         * common-src/amfeatures.h (fe_selfcheck_calcsize): New feature.
5172         * common-src/amfeatures.c (am_init_feature_set): Set
5173           fe_selfcheck_calcsize.
5174         * client-src/selfcheck.c: Check if calcsize binary is available if
5175           it is needed.
5176         * server-src/amcheck.c (start_host): Call selfcheck with CALCSIZE
5177           if it support fe_selfcheck_calcsize.
5178
5179 2004-08-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5180
5181         * man/amanda.8.in: Document 'estimate' dumptype option.
5182
5183 2004-08-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5184
5185         * server-src/amrmtape.sh.in: Understand history info.
5186
5187 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5188
5189         * server-src/driver.c: Typo.
5190
5191 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5192
5193         * server-src/amstatus.pl.in: Parse CONTINUE and RQ-MORE-DISK line,
5194           print if a dump is waiting for holding disk space (roomq).
5195
5196 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5197
5198         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
5199           Don't call free_serial().
5200         * server-src/driver.c (dumper_result): Call free_serial_dp(dp).
5201         * server-src/driverio.c (dumper_cmd): Remove CONTINUE cmd.
5202         * server-src/driverio.c (chunker_cmd): Print serial number for CONTINUE
5203           command.
5204         * server-src/driverio.c (disk2serial): Try to find a 'dp' before
5205           allocating a new serial.
5206         * server-src/driverio.c (free_serial_dp): New function to remove the
5207           serial for a dp.
5208         * server-src/driverio.h (free_serial_dp): Prototype.
5209         * server-src/chunker.c (databuf_flush): Read serial number for CONTINUE
5210           command.
5211
5212 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5213
5214         * server-src/planner.c (getsize): Do SERVER estimate, call sendsize with
5215           CALCSIZE estimate.
5216
5217 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5218
5219         * client-src/calcsize.c: Support exclude and include like gnutar,
5220           change in program argument.
5221         * client-src/sendsize.c: Execute calcsize as requested.
5222         * common-src/amfeatures.h (fe_calcsize_estimate): New feature.
5223         * common-src/amfeatures.c (am_init_feature_set): set
5224           fe_calcsize_estimate.
5225         * server-src/amcheck.c (start_host): Check if client support CALCSIZE
5226           estimate.
5227
5228 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5229
5230         * server-src/conffile.h (ES_CLIENT, ES_SERVER, ES_CALCSIZE): New define
5231           for estimate type.
5232         * server-src/conffile.h (dumptype_t): Add 'estimate' and 's_estimate'
5233         * server-src/conffile.c (get_estimate): New function to parse estimate
5234           type, ....
5235         * server-src/diskfile.c (read_diskline): Copy 'estimate'.
5236         * server-src/diskfile.h (disk_t): Add 'estimate'.
5237         * server-src/amadmin.c (disklist_one): Print estimate type.
5238
5239 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5240
5241         * common-src/match.c (match_tar, tar_to_regex): New fonction similar
5242           to the exclude option of tar.
5243         * common-src/amanda.h (match_tar, tar_to_regex): Prototype.
5244
5245 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5246
5247         * server-src/infofile.h (history_t): new struct.
5248         * server-src/infofile.h (info_t): Add a history_t.
5249         * server-src/infofile.c (read_txinfofile): Parse history data.
5250         * server-src/infofile.c (write_txinfofile): Print history data.
5251         * server-src/amadmin.c (export_one): export history data.
5252         * server-src/amadmin.c (import_one): import history data.
5253         * server-src/driverio.c (update_info_dumper): update history data.
5254
5255 2004-05-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5256         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
5257
5258         * server-src/planner.c: Log L_DISK for autoflush disk.
5259
5260 2004-05-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5261
5262         * server-src/planner.c (handle_result): Add dp to pestq at the
5263           correct place.
5264
5265 2004-04-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5266
5267         * common-src/amanda.h: #include "amanda-int.h" only if !CONFIGURE_TEST.
5268
5269 2004-04-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5270
5271         * config/acinclude.m4i (AX_CREATE_STDINT_H) : New macro.
5272         * configure.in: Use AX_CREATE_STDINT_H(common-src/amanda-int.h).
5273         * common-src/amanda.h: include "common-src/amanda-int.h".
5274         * changer-src/scsi-cam.c: Change u_int32_t for uint32_t.
5275
5276 2004-04-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5277
5278         * configure.in: Fix for automake 1.8.4.
5279         * config/acinclude.m4i: Fix for automake 1.8.4.
5280
5281 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5282
5283         * configure.in: Result of autoupdate.
5284
5285 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5286
5287         * config/config.guess: Update from automake 1.8.
5288         * config/config.sub: Update from automake 1.8.
5289         * config/depcomp: Update from automake 1.8.
5290         * config/install-sh: Update from automake 1.8.
5291         * config/missing: Update from automake 1.8.
5292         * config/mkinstalldirs: Update from automake 1.8.
5293         * config/ltmain.sh: Update from libtool-1.5.6.
5294         * config/libtool.m4i: Update from libtool-1.5.6.
5295
5296 2004-04-26  Marc Mengel <mengel@fnal.gov>
5297
5298         * tape-src/output-rait.c: Verify reads correctly.
5299
5300 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5301
5302         * server-src/driver.c (continue_dumps): Fix deadlock if holding disk
5303         fill up when in degraded mode.
5304
5305 2004-04-23  Eric Siegerman <eric_97@pobox.com>
5306
5307         Bug fix: amflush would run, and consume a tape, even if there
5308         were no Amanda directories waiting to be flushed:
5309         * common-src/sl.c (is_empty_sl): New function to test
5310           whether a list is empty.
5311         * common-src/sl.h (is_empty_sl): Prototype.
5312         * server-src/amflush.sh (main): Use is_empty_sl(),
5313           rather than ==NULL, to test emptiness of datestamp_list.
5314
5315 2004-04-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5316
5317         * server-src/planner.c (setup_estimate): Typo.
5318
5319 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5320
5321         Allow bumpsize, bumppercent, bumpdays and bumpmult to be in a dumptype.
5322         * server-src/conffile.c: Parse.
5323         * server-src/conffile.h: Define.
5324         * server-src/amadmin.c (disklist_one): Use.
5325         * server-src/diskfile.c (read_diskline): Initialize.
5326         * server-src/diskfile.h: Define.
5327         * server-src/planner.c: Use.
5328         * man/amanda.8.in: Document.
5329
5330 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5331         Fix by Paul Bijnens <paul.bijnens@xplanation.com>
5332
5333         * server-src/planner.c (setup_estimate): Only ask for level 0 estimate
5334           if strategy is noinc.
5335
5336 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5337         Documentation from Paul Bijnens <paul.bijnens@xplanation.com>
5338
5339         * man/amoverview.8.in: Document results.
5340
5341 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5342         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
5343
5344         * server-src/amoverview.pl.in: Print last two characters.
5345
5346 2004-04-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5347
5348         * changer-src/chg-disk.sh.in: Fix for sh compatibility.
5349
5350 2004-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5351         Fix by John Koyle <jkoyle@rfpdepot.com>
5352
5353         * common-src/dgram.c: Fix EAGAIN on Linux.
5354
5355 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5356
5357         * server-src/amadmin.c (bumpsize): Typo.
5358
5359 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5360
5361         New bumppercent global option.
5362         * example/amanda.conf.in: Document it.
5363         * man/amanda.8.in: Document it.
5364         * server-src/amadmin.c (bumpsize): Write it.
5365         * server-src/conffile.c: Parse it.
5366         * server-src/conffile.h: Define It.
5367         * server-src/planner.c (bump_thresh): New size_level_0 parameter,
5368           use the new bumppercent option.
5369
5370 2004-04-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5371
5372         * server-src/amadmin.c: Rename host_t to amhost_t.
5373         * server-src/amcheck.c: Ditto.
5374         * server-src/amindexd.c: Ditto.
5375         * server-src/diskfile.c: Ditto.
5376         * server-src/diskfile.h: Ditto.
5377         * server-src/driver.c: Ditto.
5378         * server-src/planner.c: Ditto.
5379
5380 2004-03-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5381
5382         * amplot/amplot.awk: Parse "driver: tape size" line.
5383
5384 2004-03-22  Stefan G. Weichinger <monitor@oops.co.at>
5385
5386         * server-src/amcheck.c (start_host): Added warning for hostname
5387           localhost.
5388         * docs/TOP-TEN-QUESTIONS: added note about localhost-warning.
5389
5390 2004-03-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5391
5392         * docs/Makefile.am (pkgdata_DATA): Add TOP-TEN-QUESTIONS.
5393
5394 2004-03-18  Stefan G. Weichinger <monitor@oops.co.at>
5395
5396         * docs/TOP-TEN-QUESTIONS: New file.
5397
5398 2004-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5399
5400         * server-src/reporter.c (handle_success): Set stats[i].coutsize
5401           correctly.
5402         * server-src/taper.c: Do not subtract tt_blocksize_kb from filesize.
5403
5404 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5405
5406         * common-src/ssh-security.c: New ssh security driver.
5407         * common-src/Makefile.am (libamanda_la_SOURCES): Add ssh-security.c.
5408         * common-src/security.c: Add ssh security driver.
5409         * configure.in: Add --with-ssh-security. Define SSH_SECURITY.
5410
5411 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5412
5413         * server-src/amcheck.c: Do labelstr check in correct order.
5414
5415 2004-03-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5416
5417         Use only one time event for all dumpers, no wait event.
5418         start_some_dumps is called everytime a dumper or taper finish.
5419         * server-src/driver.c (dumpers_ev_time): New global event.
5420         * server-src/driver.c (start_some_dumps): Remove dumper argument,
5421           can start many dump.
5422         * server-src/driver.c (dumper_result): Call start_some_dumps instead
5423           of event_wakeup.
5424         * server-src/driver.c (handle_idle_wait): Remove function.
5425         * server-src/driver.c (handle_dumpers_time): new handle for
5426           dumpers_ev_time, it call start_some_dumps.
5427         * server-src/driverio.h (dumper_t): Remove ev_wait.
5428         * server-src/driverio.c (startup_dump_process): Don't set ev_wait.
5429
5430 2004-03-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5431
5432         * common-src/fileheader.c (print_header): Fix fprintf use.
5433         * client-src/amqde.c (parse_exclude_path): Fix = by ==.
5434         * common-src/protocol.c (s_repwait): Fix compiler warning.
5435         * common-src/rsh-security.c (runrsh): Fix compiler warning.
5436
5437 2004-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5438
5439         * common-src/pipespawn.c (pipespawn): Remove passwdvar and passwdfd.
5440
5441 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5442         Reported by Allen Liu <allen@bellglobal.com>
5443
5444         * server-src/amverifyrun.sh.in: Replace '-e' test by '-f'.
5445
5446 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5447
5448         * server-src/amcheck.c: Verify the tape is listed in the tapelist file.
5449         * server-src/taper.c: Ditto
5450
5451 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5452
5453         * server-src/driver.c (dump_schedule): Print complete name.
5454
5455 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5456
5457         The estimate send a PREP (partial REP) packet after each estimate.
5458         * client-src/amandad.c: Send PREP packet if sendsize.
5459         * common-src/amfeatures.c (am_init_feature_set): Add
5460           fe_partial_estimate.
5461         * common-src/amfeatures.h (am_feature_e): Add fe_partial_estimate.
5462         * common-src/packet.c (pktypes[]): Add PREP.
5463         * common-src/packet.h (pktype_t): Add P_PREP.
5464         * common-src/protocol.c (action_t): Add A_CONTPEND.
5465         * common-src/protocol.c: Handle P_PREP packet.
5466         * server-src/amstatus.pl.in: Parse "got partial result" line.
5467         * server-src/planner.c: Handle P_PREP packet.
5468
5469 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5470         Reported by Jason Brooks <jason.brooks@windriver.com>
5471
5472         * server-src/reporter.c: Remove duplicate setting of cd to
5473           &ColumnData[Level].
5474
5475 2004-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5476         Patch by Philippe Charnier <charnier@xp11.frmug.org>
5477
5478         * server-src/amtrmidx.c: Add '\n'.
5479
5480 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5481
5482         * recover-src/set_commands.c (cd_glob): Fix memory leak.
5483
5484 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5485
5486         * recover-src/set_commands.c (cd_dir, set_directory): Fix memory leak.
5487         * recover-src/uscan.l: Fix double amfree.
5488
5489 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5490
5491         * server-src/driver.c: Build holding disk name with timestamp.
5492         * server-src/holding.c (is_datestr): Check also for timestamp.
5493         * server-src/planner.c: Flush today's dump with autoflush.
5494         * server-src/find.c: Find holding disk with timestamp.
5495         * server-src/find.h (find_result_t): Add timestamp field.
5496
5497 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5498
5499         * changer-src/chg-zd-mtx.sh.in: Works if all slot and tape are full.
5500
5501 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5502
5503         * server-src/amverifyrun.sh.in: Do not execute amverify if no tape
5504           to verify.
5505
5506 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5507
5508         * server-src/amdump.sh.in: Do not redirect to /dev/null.
5509
5510 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5511
5512         * config/acinclude.m4i: Define CF_WAIT_INT.
5513         * configure.in: Call CF_WAIT_INT.
5514         * common-src/amanda.h: Try to make waitpid doesn't warn.
5515
5516 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5517
5518         * Makefile.am (EXTRA_DIST): Add contrib/mkamandisk.
5519
5520 2004-01-29  Christoph Pospiech <pospiech@de.ibm.com>
5521
5522         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-iomega.pl.
5523         * changer-src/Makefile.am (libexec_SCRIPTS) Add chg-iomega.
5524         * changer-src/chg-iomega.pl.in: New changer script.
5525         * docs/TAPE.CHANGERS: Document chg-iomega.
5526         * contrib/mkamandisk: Script to format iomega disk.
5527
5528 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5529
5530         * restore-src/amidxtaped.c (scan_init): Remove the log file if it exit.
5531
5532 2004-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5533
5534         * configure.in: Set GNUTAR_LISTED_INCREMENTAL_DIRX.
5535         * example/amanda.conf.in: Update record documentation.
5536         * man/amanda.8.in: Update record documentation.
5537
5538 2004-01-14  Stefan G. Weichinger <monitor@oops.co.at>
5539
5540         * docs/INSTALL: Add config for xinetd.
5541
5542 2004-01-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5543
5544         * server-src/planner.c (handle_result): Detect bad estimate (-1).
5545         * server-src/planner.c (analyze_estimate): Don't schedule level
5546           if the estimate is bad.
5547
5548 2003-12-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5549
5550         * docs/HOWTO-FILE-DRIVER: New file.
5551         * docs/TAPE.CHANGERS: Explain chg-disk.
5552         * docs/Makefile.am (pkgdata_DATA): add HOWTO-FILE-DRIVER.
5553
5554 2003-12-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5555
5556         * docs/SYSTEM.NOTES: Add a note about sendsize coredump on AIX.
5557
5558 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5559         Patch by Jean-Christian SIMONETTI <simonetti@echo.fr>
5560
5561         * changer-src/chg-disk.sh.in: New changer script.
5562         * changer-src/Makefile.am (libexec_SCRIPTS): Add chg-disk.
5563         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-disk.sh.
5564
5565 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5566
5567         * tape-src/tapetype.c: extern int optind.
5568         * tape-src/tapeio.c: extern int optind.
5569
5570 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5571         Patch by C.Scheeder <christoph.scheeder@scheeder.de>
5572
5573         * changer-src/sense.c (SenseType): Add "DAT AutoChanger" and "C1537A".
5574
5575 2003-11-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5576
5577         * server-src/driver.c: Print the tape size.
5578         * server-src/amstatus.pl.in: print % of tape use.
5579
5580 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5581
5582         * server-src/conffile.c (copy_dumptype): Copy in/exclude only if seen.
5583
5584 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5585
5586         * server-src/reporter.c (output_tapeinfo): Fix printing of new tape.
5587
5588 2003-11-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5589
5590         * server-src/amcheck.c (taperscan_slot): Deal with label not in
5591           tapelist case.
5592         * server-src/amtape.c (taperscan_slot): Ditto.
5593         * server-src/taper.c (taperscan_slot): Ditto.
5594
5595 2003-11-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5596
5597         * server-src/driver.c (handle_taper_result): Always call
5598           continue_dumps() in TRYAGAIN case.
5599
5600 2003-11-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5601
5602         * changer-src/chg-chio.pl.in (getTapeStatus): Set $drives[$num] to 0
5603         if no tape in drive.
5604
5605 2003-11-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5606
5607         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-AFS.
5608
5609 2003-11-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5610         Patch by Mitch Collinsworth <mitch@ccmr.cornell.edu>
5611
5612         * client-src/selfcheck.c: Skip accessibility check for AFS entries.
5613         * docs/HOWTO-AFS: New file.
5614
5615 2003-11-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5616
5617         * server-src/amadmin.c (tape): Display the next new tapes.
5618         * server-src/reporter.c (output_tapeinfo): Ditto.
5619
5620 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5621
5622         * docs/Makefile.am (pkgdata_DATA): Add chg-scsi.notes.
5623
5624 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5625
5626         * server-src/amcheck.c (taperscan_slot): Set found=3 if new tape.
5627         * server-src/amcheck.c (taper_scan): Handle found==3.
5628         * server-src/amtape.c (taperscan_slot): Set found=3 if new tape.
5629         * server-src/amtape.c (taper_scan): Handle found==3.
5630         * server-src/taper.c (taperscan_slot): Set found=3 if new tape.
5631         * server-src/taper.c (taper_scan): Handle found==3.
5632
5633 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5634
5635         * server-src/amcheck.c: Use stralloc(optarg).
5636         * tape-src/ammt.c: Use stralloc(optarg).
5637         * tape-src/tapetype.c: Use stralloc(optarg).
5638
5639 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5640         Patch by Jay Fenlason <fenlason@redhat.com>
5641
5642         * server-src/dumper.c: Don't set SIGCHLD to SIG_IGN.
5643
5644 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5645         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
5646
5647         * client-src/sendbackup-gnutar.c (AM_SIZE_RE): Fix regex for samba3.
5648
5649 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5650
5651         * server-src/amadmin.c (find): Call find_dump to allow dynamic disklist.
5652         * server-src/amindexd.c: Call find_dump to allow dynamic disklist.
5653         * server-src/amtrmidx.c:  Call find_dump to allow dynamic disklist.
5654         * server-src/diskfile.c (add_disk): Set device and todo.
5655         * server-src/find.c: Build disklist dynamicaly from log files.
5656         * server-src/find.h (find_dump): New prototype.
5657
5658 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5659
5660         * server-src/amlogroll.c: set_pname("amlogroll").
5661
5662 2003-10-24  Todd M. Kover <kovert@omniscient.com>
5663
5664         * add amqde for "quick and dirty estimates" under gnutar (program
5665           that will traverse the filesystem rather than invoke gnutar).
5666           controlled via configure option --with-qde.  This really wants to
5667           be configured in the server.
5668
5669 2003-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5670
5671         * server-src/amverify.sh.in: Fix usage message.
5672         * common-src/fileheader.c (print_header): fprintf to outf.
5673         * server-src/tapefile.c (lookup_last_reusable_tape): Check for
5674           tp->datestamp > 0.
5675         * server-src/amadmin.c (disklist_one): Don't print ':' on device line.
5676
5677 2003-10-23  Todd Kover <kovert@omniscient.com>
5678
5679         * make amrecover link against readline rather than libamanda so
5680           only amrecover would require the shared library (if it's found)
5681
5682 2003-10-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5683         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
5684
5685         * client-src/amandates.c (finish_amandates): Call error() if the
5686           close of amdf fail.
5687         * common-src/amflock.c (create_lock): Return -1 if the close of f fail.
5688         * common-src/amflock.c (read_lock): Don't set f to NULL if the close
5689           fail.
5690         * server-src/tapefile.c (write_tapelist): Return 1 if the close of
5691           tapef fail.
5692
5693 2003-10-14  John R. Jackson (jrj@purdue.edu)
5694
5695         * docs/SYSTEM.NOTES: Add FreeBSD 5.1 note about setting the UDP packet
5696           size, compliments of Nicolas Ecarnot <nicolas.ecarnot@accim.com>.
5697
5698 2003-10-14  John R. Jackson (jrj@purdue.edu)
5699
5700         * client-src/sendsize.c: Handle case where PID's get re-used.
5701
5702 2003-10-14  John R. Jackson (jrj@purdue.edu)
5703
5704         * configure.in: Need to check for sys/gscdds.h on AIX to enable
5705           SCSI changer.
5706
5707 2003-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5708
5709         * common-src/genversion.c (prundefvar): New function to print an
5710           undefined variable.
5711         * common-src/genversion.c: Print undefined variable.
5712         * server-src/amcheck.c: Improve message for no LPRCMD defined.
5713
5714 2003-07-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5715
5716         * restore-src/amidxtaped.c: Don't clea re_label before checking
5717           for the changer.
5718
5719 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5720         Patch by Scott Mcdermott <smcdermott@questra.com>
5721
5722         * changer-src/chg-zd-mtx.sh.in (initial_poll_delay): New config
5723           variable to add a pause after a tape loading.
5724
5725 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5726         Fix by John E. Hein <jhein@timing.com>
5727
5728         * changer-src/chg-manual.sh.in: Quote @EGREP@.
5729         * changer-src/chg-null.sh.in: Quote @EGREP@.
5730
5731 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5732
5733         * amplot/amplot.sh.in: Remove files before runnig amplot.awk.
5734         * amplot/amplot.awk: Parse 'flush line', fix tape_wait line.
5735         * server-src/driver.c (read_flush): Write a 'flush size' to the
5736           debug file.
5737
5738 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5739
5740         * changer-src/chg-chio.pl.in: Fix next/prev command.
5741
5742 2003-07-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5743         patch by Paul Bijnens <paul.bijnens@xplanation.com>
5744
5745         * client-src/client_util.c (add_include): Count include with 2 /,
5746           Fix descriptor leak.
5747
5748 2003-06-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5749
5750         * server-src/amstatus.pl.in: Fix print spacing for idle dumpers.
5751
5752 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5753
5754         * server-src/holding.c: Fix compiler error.
5755         * server-src/planner.c: Use snprintf.
5756
5757 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5758         patch by Paul Bijnens <paul.bijnens@xplanation.com>
5759
5760         * tape-src/tapetype.c: Avoid a numerical overflow for large tape
5761           capacities.
5762
5763 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5764
5765         * server-src/amstatus.pl.in: Fix to failed tape.
5766
5767 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5768
5769         * server-src/planner.c (delay_dumps): Delay not delay forced full
5770           before forced full.
5771
5772 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5773
5774         * changer-src/chg-zd-mtx.sh.in: Log the changer file used.
5775
5776 2003-06-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5777
5778         * server-src/amverify.sh.in: Do not advance to next tape.
5779
5780 2003-06-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5781         patch by Eric Siegerman <eric_97@pobox.com>
5782
5783         * server-src/planner.c: Make promote_hills() honour maxpromotedays.
5784
5785 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5786
5787         * changer-src/scsi-bsd.c: Use pDev[DeviceFD].fd instead of DeviceFD.
5788         * changer-src/scsi-hpux_new.c:Use pDev[DeviceFD].fd instead of DeviceFD.
5789         * changer-src/scsi-linux.c: Use pDev[ip].fd instead of DeviceFD.
5790
5791 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5792
5793         * client-src/noop.c: #include "util.h".
5794
5795 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5796
5797         * server-src/amflush.c: Implement new -b and -s options.
5798         * man/amflush.8.in: Document it.
5799
5800 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5801
5802         * server-src/driver.c (dump_to_tape): Don't go in degraded mode if
5803           taper reply DONE.
5804
5805 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5806
5807         * tape-src/output-rait.c: Don't call waitpid if we didn't fork.
5808
5809 2003-06-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5810
5811         * server-src/amverify.sh.in: Use @MAXTAPEBLOCKSIZE@ instead of 32.
5812
5813 2003-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5814         Bug reported by Sven Rudolph <rudsve@drewag.de>
5815
5816         * server-src/holding.c (mkholdingdir): New function to create a holding
5817           directory.
5818         * server-src/holding.h (mkholdingdir): Prototype.
5819         * server-src/driver.c: Use mkholdingdir;
5820         * server-src/chunker.c: Call mkholdingdir before opening a file for
5821           writing.
5822
5823 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5824         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
5825
5826         * server-src/amstatus.pl.in: Fix for missing amdump.1 or amflush.1.
5827
5828 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5829         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
5830
5831         * server-src/amstatus.pl.in: If nothing is active, it now gives the
5832           status of the last run (amdump or amflush).
5833         * man/amstatus.8.in: Document it.
5834
5835 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5836
5837         * tape-src/output-file.c (check_online): Write error if opendir failed.
5838
5839 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5840         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
5841
5842         * server-src/amoverview.pl.in: Use 'amadmin <conf> disklist' instead
5843           of parsing the disklist file.
5844
5845 2003-05-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5846
5847         * server-src/tapefile.c (read_tapelist,parse_tapeline): Fix for
5848           previous patch.
5849
5850 2003-05-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5851
5852         * common-src/versuff.c.in: Use @VERSION_SUFFIX@.
5853
5854 2003-05-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5855
5856         * example/amanda.conf.in: Add more amrecover_changer doc.
5857         * man/amanda.8.in: Add more amrecover_changer doc.
5858         * man/amrecover.8.in: Add more amrecover_changer doc.
5859
5860 2003-05-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5861
5862         * server-src/tapefile.c (read_tapelist): Ignore blank line.
5863         * server-src/tapefile.c (parse_tapeline): Newer status parameter, set
5864           it to '1' when reading blank line.
5865
5866 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5867
5868         * configure.in (AC_CHECK_HEADERS): Enleve linux/ftape-header-segment.h,
5869           linux/ftape-vendors.h et linux/ftape.h.
5870
5871 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5872         Patch by Darin Dugan <dddugan@iastate.edu>
5873
5874         * server-src/amcheck.c: Change subject in email if no error.
5875
5876 2003-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5877
5878         * common-src/error.c (output_error_message): Always prepend program
5879           name.
5880
5881 2003-04-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5882
5883         * server-src/amstatus.pl.in: Fix for estimate disk.
5884
5885 2003-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5886
5887         * server-src/taper.c: Read holding file correctly if blocksize != 32k.
5888
5889 2003-04-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5890         New file by Robert C Dege <RDege@northropgrumman.com>
5891
5892         * configure.in: Find mcutil binary.
5893         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-mcutil.sh and
5894           example/chg-mcutil.conf.
5895         * changer-src/Makefile (libexec_SCRIPTS): Add chg-mcutil.
5896         * changer-src/chg-mcutil.sh.in: New file.
5897         * example/Makefile (EXTRA_DIST): Add chg-mcutil.conf
5898         * example/chg-mcutil.conf.in: New file.
5899
5900 2003-04-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5901
5902         * man/amanda.8.in (blocksize): Document the --with-maxtapeblocksize
5903           configure option.
5904
5905 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5906
5907         * server-src/amverifyrun.sh.in: Run the amverify command.
5908
5909 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5910         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
5911
5912         * server-src/reporter.c: Get the filenumber correct.
5913
5914 2003-04-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5915         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
5916
5917         * server-src/reporter.c: Print a postscript label for each tape used.
5918
5919 2003-03-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5920
5921         * configure.in (*-sco3.2v4*): It is not like *-sco3.2v5*,
5922           define DEV_PREFIX and RDEV_PREFIX.
5923
5924 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5925
5926         * configure.in: Typo.
5927
5928 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5929         Patch by Gert Doering <gert@greenie.muc.de>
5930
5931         * client-src/getfsent.c (get_fstab_nextentry): Compile on *-sco3.2v4*.
5932
5933 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5934
5935         * configure.in: Compile on *-sco3.2v4*
5936
5937 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5938
5939         * configure.in: Use '=' instead of '=='.
5940
5941 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5942
5943         * recover-src/set_commands.c (set_tape): Recognize null:, rait:,
5944           file: and tape: as driver, not host name.
5945
5946 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5947
5948         * server-src/amrmtape.sh.in: Print better output.
5949
5950 2003-03-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5951
5952         * changer-src/Makefile.am (libexec_SCRIPTS): Missing \.
5953
5954 2003-03-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5955
5956         * client-src/client_util.c (add_include): If include contain 2 '/' then
5957           use at asis, don't try to match it.
5958
5959 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5960
5961         * server-src/changer.h (changer_label): Return an int.
5962         * server-src/changer.h (changer_label): First parameter is char *.
5963
5964 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5965
5966         * file tape-src/output-rait.c (rait_open): Call tapefd_set_master_fd();
5967         * file tape-src/tapeio.c (struct tape_info): Add master_fd field.
5968         * file tape-src/tapeio.c (tape_info_init): Set master_fd to -1;
5969         * file tape-src/tapeio.c (tapefd_getinfo_host, tapefd_getinfo_disk,
5970           tapefd_getinfo_level): Return info of master_fd.
5971         * file tape-src/tapeio.c (tapefd_set_master_fd): New function to set
5972           master_fd.
5973         * file tape-src/tapeio.h (tapefd_set_master_fd): Prototype.
5974
5975 2003-03-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5976
5977         * tape-src/output-file.c (file_tapefd_can_fork): New function that
5978           return 1 if the file: can be run under a forked process.
5979         * tape-src/output-file.h (file_tapefd_can_fork): Prototype.
5980         * tape-src/output-null.c (null_tapefd_can_fork): New function that
5981           return 1 if the null: can be run under a forked process.
5982         * tape-src/output-null.h (null_tapefd_can_fork): Prototype.
5983         * tape-src/output-rait.c (rait_close, rait_tapefd_ioctl): Fork only if
5984         * tapefd_can_fork() return 1.
5985         * tape-src/output-rait.c (rait_tapefd_can_fork): New function that
5986           return 1 if the rait: can be run under a forked process.
5987         * tape-src/output-rait.h (rait_tapefd_can_fork): Prototype.
5988         * tape-src/output-tape.c (tape_tapefd_can_fork): New function that
5989           return 1 if the tape: can be run under a forked process.
5990         * tape-src/output-tape.h (tape_tapefd_can_fork): Prototype.
5991         * tape-src/tapeio.c (struct virtualtape): Add xxx_tapefd_can_fork and
5992           initialize vtable[];
5993         * tape-src/tapeio.c (tapefd_can_fork): New function to can the driver
5994           xxx_tapefd_can_fork function.
5995         * tape-src/tapeio.h (tapefd_can_fork): Prototype.
5996
5997 2003-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5998
5999         * tape-src/output-file.c (file_tapefd_write): Call file_release(fd)
6000           before opening the file for writing.
6001
6002 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6003
6004         * changer-src/chg-zd-mtx.sh.in: Default for driveslot is 0.
6005
6006 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6007
6008         * amplot/amplot.sh.in: New -b option for b/w postscript.
6009         * amplot/amplot.awk: Add 'color' to command if bw is set.
6010         * amplot/amplot.g: Change line 6 to line 8.
6011         * man/amplot.8: Document -b option.
6012
6013 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6014
6015         * recover-src/extract_list.c: Fix the name of the
6016           amidxtaped.<timestamp>.debug file.
6017
6018 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6019         Patch by Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
6020         
6021         * restore-src/amidxtaped.c: Use the device sent by the changer.
6022
6023 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6024
6025         * restore-src/amidxtaped.c: Remove lock 'unlink(conf_logfile)' on
6026           all failure path.
6027
6028 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6029
6030         * server-src/changer.c: Sync with 2.4.4.
6031
6032 2003-02-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6033
6034         * client-src/client_util.c: Print error except ENOENT for
6035           exclude/include files.
6036
6037 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6038
6039         * tape-src/tapetype.c: Use %ld to print some variable.
6040
6041 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6042
6043         * server-src/conffile.c (init_defaults): conf_printer.s must be set
6044           with stralloc("").
6045
6046 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6047         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
6048
6049         * tape-src/tapetype.c: Document -c option.
6050
6051 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6052
6053         * changer-src/chg-zd-mtx.sh.in:Print "are you sure your drive slot is n"
6054
6055 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6056
6057         * server-src/tapefile.c (read_tapelist): return 1 if can't open the
6058           tapelist file.
6059
6060 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6061
6062         * man/amtapetype.8.in: Add doc from a mail by John R. Jackson.
6063
6064 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6065
6066         * server-src/amcheck.c: New -a option.
6067         * man/amcheck.8.in: Document it.
6068
6069 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6070
6071         * server-src/amindexd.c (build_disk_table): Compare the level.
6072
6073 2003-02-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6074         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
6075
6076         * tape-src/tapetype.c: New -c argument to do only the compression test.
6077           Better detection of compression.
6078         * man/amtapetype.8.in: Document -c argument.
6079
6080 2003-02-09  John R. Jackson (jrj@purdue.edu)
6081
6082         * tape-src/tapetype.c: Allocate the I/O buffers on page boundaries.
6083           This helps performance on some OS's.
6084
6085 2003-02-08  John R. Jackson (jrj@purdue.edu)
6086
6087         * restore-src/amrestore.c: Clean up strtol() argument processing.
6088
6089 2003-02-08  John R. Jackson (jrj@purdue.edu)
6090
6091         * docs/INSTALL: Clean up supporting package versions and URL's.
6092
6093 2003-02-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6094
6095         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-CYGWIN.html.
6096
6097 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6098         Patch by Christophe Kalt <kalt@taranis.org>
6099
6100         * client-src/sendbackup-dump.c: New AM_SIZE_RE for NetApp.
6101         * client-src/sendsize.c: New re_size for NetApp.
6102
6103 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6104         Fix by Colin Henein <cmh@>
6105
6106         * common-src/amanda.h: Fix for the where S_ISDIR is not defined.
6107
6108 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6109         Patch by Doug Kingston <dpk@randomnotes.org>
6110
6111         * configure.in (NEED_SETUID_CLIENT): Set to false on *-pc-cygwin.
6112         * configure.in (WANT_SETUID_CLIENT): Set if NEED_SETUID_CLIENT != false.
6113         * client-src/Makefile.am: Don't chmod u+s if WANT_SETUID_CLIENT.
6114
6115 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6116         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
6117
6118         * man/amtapetype.8.in: Fix example.
6119
6120 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6121
6122         * common-src/amanda.h: #define S_ISDIR if not already defined.
6123
6124 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6125         File from Doug Kingston <dpk@randomnotes.org>
6126
6127         * docs/HOWTO-CYGWIN.html: New file.
6128
6129 2003-01-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6130
6131         * configure.in: Define WANT_RUNTIME_PSEUDO_RELOC on cygwin
6132         * client-src/Makefile.am: AM_LDFLAGS="-Wl,-enable-runtime-pseudo-reloc"
6133           if WANT_RUNTIME_PSEUDO_RELOC.
6134         * recover-src/Makefile.am: Ditto.
6135
6136 2003-01-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6137
6138         * tape-src/output-rait.h: #define stralloc strdup
6139         * tape-src/output-rait.c: Revert patch of 2003-01-26, we don't have
6140           vstralloc in standalone.
6141
6142 2003-01-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6143         Reported by Doug Kingston <dpk@randomnotes.org>
6144
6145         * recover-src/Makefile.am: Set AM_YFLAGS instead of YFLAGS.
6146
6147 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6148
6149         * tape-src/output-rait.c (tapeio_next_devname): Use vstralloc.
6150
6151 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6152
6153         * changer-src/chg-scsi-chio.c: Change strdup to stralloc.
6154         * changer-src/chg-scsi.c: Ditto.
6155         * changer-src/scsi-aix.c: Ditto.
6156         * changer-src/scsi-bsd.c: Ditto.
6157         * changer-src/scsi-cam.c: Ditto.
6158         * changer-src/scsi-changer-driver.c: Ditto.
6159         * changer-src/scsi-hpux_new.c: Ditto.
6160         * changer-src/scsi-irix.c: Ditto.
6161         * changer-src/scsi-linux.c: Ditto.
6162         * changer-src/scsi-solaris.c: Ditto.
6163         * changer-src/sense.c: Ditto.
6164         * tape-src/output-rait.c: Ditto.
6165
6166 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6167
6168         * server-src/taper.c (read_file): Don't count header in filesize.
6169
6170 2003-01-25  John R. Jackson (jrj@purdue.edu)
6171
6172         * tape-src/tapeio.c: Fix tape_access() and tape_stat() problem caused
6173           by indeterminate compiler order of evaluation.
6174
6175 2003-01-25  John R. Jackson (jrj@purdue.edu)
6176
6177         * restore-src/amidxtaped.c: Log errno when tape_stat fails.
6178         * restore-src/amrestore.c: Ditto.
6179         * tape-src/output-rait.c: Ditto.
6180
6181 2003-01-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6182
6183         * server-src/amstatus.pl.in: print an usage by tape.
6184
6185 2003-01-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6186
6187         * recover-src/extract_list.c (add_extract_item, delete_extract_item):
6188           Check also for level when comparing label.
6189
6190 2003-01-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6191
6192         Do not build chg-scsi-chio, it is buggy.
6193         * changer-src/Makefile.am (libexec_PROGRAMS): remove $(CHIO_SCSI).
6194         * changer-src/Makefile.am (EXTRA_PROGRAMS): add $(CHIO_SCSI).
6195
6196 2003-01-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6197
6198         * configure.in: disable amrestore if --without-server is set.
6199
6200 2003-01-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6201
6202         * client-src/amandad.c: Use the dbfd macro instead of the external
6203           variable db_fd.
6204         * client-src/selfcheck.c: Ditto.
6205         * client-src/sendbackup.c: Ditto.
6206         * client-src/sendsize.c: Ditto.
6207         * client-src/sendbackup-gnutar.c: Use save_errno instead of errno.
6208         * common-src/debug.c: Move most declaration inside #ifdef DEBUG_CODE.
6209         * server-src/amindexd.c: dup db_fd() to stderr.
6210         * server-src/conffile.c: Don't call error() if the config file does not
6211           exist, just write to stderr and set got_parserror.
6212
6213 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6214
6215         * recover-src/amrecover.c: Fix memory leak.
6216
6217 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6218
6219         Add new maxpromoteday option in a dumptype.
6220         * example/amanda.conf.in: Give an example
6221         * man/amanda.8.in: Document it.
6222         * server-src/amadmin.c: Print it in the disklist subcommand.
6223         * server-src/conffile.c: read it.
6224         * server-src/conffile.h (dumptype_t): Add maxpromoteday and
6225           s_maxpromoteday.
6226         * server-src/diskfile.c (read_diskline): Copy maxpromoteday from
6227           dumptype_t to disk_t.
6228         * server-src/diskfile.h (disk_t):  Add maxpromoteday.
6229         * server-src/planner.c (promote_highest_priority_incr): Don't promote
6230           a disk if est(dp)->next_level0 > dp->maxpromoteday.
6231
6232 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6233         Reported by Josh More <jmore@remote-print.com>
6234
6235         * client-src/client_util.c (add_exclude, add_include): Remove the
6236           need for MAXPATHLEN.
6237
6238 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6239         Fix by Josh More <jmore@remote-print.com>
6240
6241         * tape-src/output-tape.c: Add a ; after f = MT_UNLOAD
6242
6243 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6244         Undo patch of 2002-11-27. That doesn't work well for the planner.
6245
6246         * common-src/amanda.h (days_diff): Revert to old macro.
6247         * server-src/amadmin.c: Undo Fix for newer days_diff.
6248         * server-src/planner.c: Undo Fix for newer days_diff.
6249
6250 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6251
6252         * client-src/client_util.c: Fix memory leak reported by valgrind.
6253         * client-src/selfcheck.c: Ditto.
6254         * client-src/sendbackup.c: Ditto.
6255         * client-src/sendsize.c: Ditto.
6256         * common-src/amfeatures.c: Ditto.
6257         * common-src/debug.c: Ditto.
6258         * recover-src/amrecover.c: Ditto.
6259         * recover-src/extract_list.c: Ditto.
6260         * recover-src/set_commands.c: Ditto.
6261         * recover-src/uparse.y: Ditto.
6262         * recover-src/uscan.l: Ditto.
6263         * server-src/amindexd.c: Ditto.
6264         * server-src/amlabel.c: Ditto.
6265         * server-src/amtape.c: Ditto.
6266         * server-src/amtrmidx.c: Ditto.
6267         * server-src/amtrmlog.c: Ditto.
6268         * server-src/changer.c: Ditto.
6269         * server-src/conffile.c: Ditto.
6270         * server-src/driver.c: Ditto.
6271         * server-src/driverio.c: Ditto.
6272         * server-src/dumper.c: Ditto.
6273         * server-src/find.c: Ditto.
6274         * server-src/holding.c: Ditto.
6275         * server-src/logfile.c: Ditto.
6276         * server-src/planner.c: Ditto.
6277         * server-src/reporter.c: Ditto.
6278         * server-src/tapefile.c: Ditto.
6279         * server-src/taper.c: Ditto.
6280
6281 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6282
6283         * amplot/amplot.awk: Many fix.
6284
6285 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6286
6287         * server-src/planner.c (promote_highest_priority_incremental): Promote
6288           a disk > balanced size if no full today. Do not promote a disk it's
6289           the only disk due that day and no full today.
6290
6291 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6292         Patch by Brad Roberts <braddr@puremagic.com>
6293
6294         * server-src/amflush.c: Remove 2 redundant amfree call after remove_sl.
6295         * server-src/holding.c (get_flush): Ditto.
6296
6297 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6298
6299         * server-src/conffile.c: New taperalgo configuration keyword.
6300         * server-src/conffile.h: Ditto.
6301         * man/amanda.8.in: Document it.
6302         * server-src/driver.c (startaflush): New function to start a flush to
6303           tape.
6304
6305 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6306
6307         * server-src/diskfile.c (parse_diskline): Allow skip in dumptype.
6308
6309 2002-12-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6310
6311         * server-src/amstatus.pl.in: Parse features from PORT-WRITE line.
6312
6313 2002-12-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6314
6315         Don't use the G flag for samba backup restore by tar.
6316         * recover-src/extract_list.c (enum dumptypes): Add IS_SAMBA_TAR.
6317         * recover-src/extract_list.c (extract_files_child): Set dumptype to
6318           IS_SAMBA_TAR if it's a SAMBA backup. Don't pass the G flag to tar
6319           if it's IS_SAMBA_TAR.
6320
6321 2002-12-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6322
6323         * amplot/amplot.awk: Parse line with features, parse ENDFLUSH line.
6324
6325 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6326
6327         * server-src/planner.c (promote_highest_priority_incremental): Newer
6328           algorithm that reduce the number of level 0 by hosts on a single day.
6329
6330 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6331
6332         * amplot/amplot.awk: Parse newer log lines.
6333
6334 2002-12-11  Jean-Louis Martineau <martineau@iro.umontreal.ca> 
6335         * server-src/reporter.c (output_stats): Typo.
6336
6337 2002-12-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6338
6339         * server-src/reporter.c: Print an usage by tape.
6340
6341 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6342
6343         * tape-src/tapeio.c (do_read): Init count to 0.
6344
6345 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6346
6347         * tape-src/Makefile.am: Install tapetype program as amtapetype.
6348         * docs/TAPETYPES: Change for amtapetype.
6349         * man/amtapetype.8.in: New man page
6350         * man/Makefile.am: Install it.
6351         * configure.in (AC_CONFIG_FILES): Add man/amtapetype.8.
6352
6353 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6354
6355         * tape-src/ammt.c (optind): Add prototype.
6356         * tape-src/amdd.c (optind): Add prototype.
6357
6358 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6359
6360         * common-src/arglist.h (printf_arglist_function,
6361           printf_arglist_function1, printf_arglist_function2): Define if
6362           STDC_HEADERS is not defined.
6363
6364 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6365
6366         * server-src/amstatus.pl.in: New --date option to display datestamp.
6367         * server-src/amstatus.pl.in: Increase some field size.
6368         * server-src/amstatus.pl.in: The host field adjust it's length to the
6369          largest.
6370
6371 2002-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6372
6373         * common-src/amanda.h (days_diff): Don't add a half day.
6374         * server-src/amadmin.c: Fix for newer days_diff.
6375         * server-src/planner.c: Fix for newer days_diff.
6376
6377 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6378
6379         * client-src/amandad.c: Fix compiler warning.
6380         * common-src/Makefile.am (bsdsecurity): Link with file.o.
6381         * common-src/bsd-security.c: Fix compiler warning.
6382         * common-src/bsd-security.c (construct_datestamp, construct_timestamp):
6383           Add function if TEST.
6384         * server-src/chunker.c: Fix compiler warning.
6385         * server-src/dumper.c: Fix compiler warning.
6386
6387 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6388
6389         * tape-src/tapetype.c: Cast time_t to long for printing.
6390
6391 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6392
6393         * server-src/amflush.c: Write a "amflush: start at ???" line.
6394         * server-src/amstatus.pl.in: parse the "amflush: start at ???" line.
6395
6396 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6397
6398         * server-src/planner.c (delay_dumps): Use snprintf.
6399
6400 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6401
6402         * common-src/debug.c: Most of the code must in #ifdef DEBUG_CODE.
6403         * client-src/client_util.c: Use AMANDA_TMPDIR instead of AMANDA_DBGDIR.
6404
6405 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6406
6407         * docs/TAPE.CHANGERS: Sync with 2.4.3.
6408
6409 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6410
6411         * server-src/amadmin.c: Cleanup.
6412
6413 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6414
6415         * man/amadmin.8.in: Document new --days option of balance subcommand.
6416
6417 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6418
6419         * server-src/amadmin.c (days_diff): Make next_level0 more acurate.
6420         * server-src/amadmin.c (balance): Improve output.
6421
6422 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6423
6424         * recover-src/extract_list.c: Add Retry and Skip command to amrecover.
6425
6426 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6427
6428         * tape-src/output-tape.c (tape_tapefd_fsf): Must not be static.
6429
6430 2002-11-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6431
6432         * server-src/reporter.c: Fix for LPRCMD not defined.
6433
6434 2002-11-14  Marc Mengel <mengel@fnal.gov>
6435
6436         New changer scripts for use with rait: code, run several other
6437         changers in tandem and return a rait: tape device.  Makes fake
6438         amanda.conf files under AMANDA_DEBUGDIR for each changer used,
6439         then cleans up.
6440
6441         * changer-src/chg-rait.sh.in:   New file. Multi-changer script.
6442         * changer-src/chg-null.sh.in:   New File. Null-device changer script.
6443         * docs/TAPE.CHANGERS:  Descriptions of above.
6444         * configure.in: added above files.
6445         * changer-src/Makefile.am: Likewise.
6446
6447 2002-11-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6448         Patch by Orion Poplawski <orion@colorado-research.com>
6449
6450         * server-src/planner.c (delay_dumps): Add the estimate size to all call
6451           of delay_one_dump.
6452
6453 2002-11-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6454
6455         * server-src/reporter.c: Increase width of some field.
6456
6457 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6458
6459         * changer-src/scsi-solaris.c (SCSI_ExecuteCommand): Init ret to 0.
6460
6461 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6462
6463         * recover-src/extract_list.c (delete_file): j is int.
6464         * changer-src/scsi-defs.h (B, B1): Check if already defined.
6465         * server-src/taper.c: Some cast to int.
6466         * tape-src/amdd.c (read_func, write_func): Complete prototype.
6467         * tape-src/tapeio.h (tapefd_read, tapefd_write): return ssize_t,
6468           third argument is size_t.
6469         * tape-src/tapeio.c: Ditto.
6470         * tape-src/output-file.h (file_tapefd_read, file_tapefd_write): return
6471           ssize_t, third argument is size_t.
6472         * tape-src/output-file.c: Ditto.
6473         * tape-src/output-null.h (null_tapefd_read, null_tapefd_write): return
6474           ssize_t, third argument is size_t.
6475         * tape-src/output-null.c: Ditto.
6476         * tape-src/output-rait.h (rait_read, rait__write): return ssize_t,
6477           third argument is size_t.
6478         * tape-src/output-rait.c: Ditto.
6479         * tape-src/output-tape.h (tape_tapefd_read, tape_tapefd_write): return
6480           ssize_t, third argument is size_t.
6481         * tape-src/output-tape.c: Ditto.
6482
6483 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6484
6485         * configure.in: socklen_t default to int.
6486         * common-src/dgram.c (dgram_recv): addrlen is socklen_t.
6487         * common-src/stream.c (stream_server): len is socklen_t.
6488         * recover-src/extract_list.c (add_file): j is int.
6489
6490 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6491
6492         * client-src/client_util.c (test_name_len) Remove variable.
6493         * common-src/match.c (len_prefix): Change type to int.
6494         * server-src/taper.c: Use %p to print pointer.
6495         * tape-src/amdd.c (read_func, write_func):Change return type to ssize_t.
6496         * tape-src/amdd.c (debug): Renamed to debug_amdd.
6497         * tape-src/ammt.c (debug): Renamed to debug_ammt.
6498
6499 2002-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6500
6501         * restore-src/amidxtaped.c: Fix restore from file.
6502
6503 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6504
6505         * restore-src/amidxtaped.c: Fix newline in string literal.
6506
6507 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6508
6509         * server-src/conffile.c (maxdumpsize): New option.
6510         * server-src/conffile.h: Ditto.
6511         * server-src/planner.c: Use maxdumpsize if set.
6512         * example/amanda.conf.in: Document it.
6513         * man/amanda.8.in: Document it.
6514
6515 2002-11-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6516
6517         * common-src/amfeatures.h (fe_amidxtaped_fsf, fe_amidxtaped_label,
6518           fe_amidxtaped_device, fe_amidxtaped_host, fe_amidxtaped_disk,
6519           fe_amidxtaped_datestamp, fe_amidxtaped_header, fe_amidxtaped_nargs,
6520           fe_amidxtaped_config): New features.
6521         * common-src/amfeatures.c (am_init_feature_set): Set new features.
6522         * recover-src/extract_list.c: Send new protocol data to amidxtaped.
6523         * restore-src/Makefile.am: amidxtaped.c need libamserver.
6524         * restore-src/amidxtaped.c: Read new protocol data from amrecover.
6525         * restore-src/amidxtaped.c: Use new configuration options.
6526         * server-src/conffile.c (conf_amrecover_do_fsf,
6527           conf_amrecover_check_label, conf_amrecover_changer): New config.
6528         * server-src/conffile.h: New config options.
6529         * example/amanda.conf.in: Document them.
6530         * man/amanda.8.in: Document them.
6531
6532 2002-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6533
6534         * autogen: touch config/config.h.in
6535         * configure.in: Patch from autoupdate-2.53 and LIBOBJS.
6536         * common-src/Makefile.am: Build versuff.o before version.o
6537         * recover-src/Makefile.am: Remove work around for automake-1.2
6538
6539 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6540
6541         * configure.in: Remove --disable-libtool.
6542         * */Makefile.am: Remove WANT_LIBTOOL.
6543
6544 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6545
6546         * changer-src/chg-scsi.c (config_name, config_dir): Remove declaration.
6547         * server-src/amadmin.c: Ditto.
6548         * server-src/amcheck.c: Ditto.
6549         * server-src/amcleanupdisk.c: Ditto.
6550         * server-src/amflush.c: Ditto.
6551         * server-src/amindexd.c: Ditto.
6552         * server-src/amlabel.c: Ditto.
6553         * server-src/amlogroll.c: Ditto.
6554         * server-src/amtape.c: Ditto.
6555         * server-src/amtrmidx.c: Ditto.
6556         * server-src/amtrmlog.c: Ditto.
6557         * server-src/chunker.c: Ditto.
6558         * server-src/diskfile.c: Ditto.
6559         * server-src/driver.c: Ditto.
6560         * server-src/dumper.c: Ditto.
6561         * server-src/getconf.c: Ditto.
6562         * server-src/planner.c: Ditto.
6563         * server-src/reporter.c: Ditto.
6564         * server-src/taper.c: Ditto.
6565         * server-src/conffile.c (config_name, config_dir): Add declaration.
6566
6567 2002-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6568
6569         * man/amrestore.8: Amrestore doesn't use a changer.
6570
6571 2002-11-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6572
6573         * configure.in (SHELL): Don't set it, libtool do it.
6574
6575 2002-10-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6576
6577         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.3.
6578
6579 2002-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6580
6581         * restore-src/amrestore.c: New '-l <label>' flag, Do a rewind and
6582           check the label before restoring.
6583         * man/amrestore.8: Document -l flag.
6584
6585 2002-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6586
6587         * configure.in (AM_HAVE_MT_FLAGS, AM_HAVE_MT_FILENO, AM_HAVE_MT_BLKNO,
6588           AM_HAVE_MT_DSREG,AM_HAVE_MT_ERREG): Rename to HAVE_MT_FLAGS,
6589           HAVE_MT_FILENO, HAVE_MT_BLKNO, HAVE_MT_DSREG and HAVE_MT_ERREG.
6590         * tape-src/output-tape.c: Ditto.
6591
6592 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6593         Undo patch of 2002-10-24. They are needed by amrecover.
6594
6595         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
6596           is_local_fstype): Add Prototype.
6597         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
6598           is_local_fstype): remove Prototype.
6599
6600 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6601         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
6602
6603         * tape-src/tapetype.c: Detects and warns the user if the tape drive
6604           has hardware compression enabled.
6605
6606 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6607
6608         * restore-src/amrestore.c: New '-f <fileno>' flag, Do a rewind and
6609           'fsf <fileno>' if -f is set.
6610         * man/amrestore.8: Document -f flag.
6611         
6612 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6613
6614         * common-src/amfeatures.h (fe_amindexd_fileno_in_OLSD, 
6615           fe_amindexd_fileno_in_ORLD): New amfeatures.
6616         * common-src/amfeatures.c (am_init_feature_set): Set
6617           fe_amindexd_fileno_in_OLSD and fe_amindexd_fileno_in_ORLD.
6618         * recover-src/amrecover.h (struct DIR_ITEM): Add fileno.
6619         * recover-src/display_commands.c (add_dir_list_item): Set fileno
6620           in struct DIR_ITEM.
6621         * recover-src/display_commands.c (suck_dir_list_from_server): Read
6622           fileno if fe_amindexd_fileno_in_OLSD is set.
6623         * recover-src/extract_list.c (struct EXTRACT_LIST): Add fileno.
6624         * recover-src/extract_list.c (add_file): Read fileno if
6625           fe_amindexd_fileno_in_ORLD is set.
6626         * recover-src/extract_list.c (delete_file): Read fileno if
6627           fe_amindexd_fileno_in_ORLD is set.
6628         * server-src/amindexd.c (opaque_ls): Write fileno if
6629           fe_amindexd_fileno_in_OLSD or fe_amindexd_fileno_in_ORLD are set.
6630
6631 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6632         patch by Doug Kingston <dpk@pobox.com>
6633
6634         * configure.in (NEED_PATH_ENV, IGNORE_UID_CHECK, IGNORE_FSTAB,
6635           DONT_SUID_ROOT): Defined if on *-pc-cygwin.
6636         * client-src/Makefile.am: Fix for cygwin.
6637         * client-src/getfsent.c: Don't use fstab if IGNORE_FSTAB.
6638         * client-src/killpgrp.c: Don't suid(0) if DONT_SUID_ROOT.
6639         * client-src/rundump.c: Don't suid(0) if DONT_SUID_ROOT.
6640         * client-src/runtar.c: Don't suid(0) if DONT_SUID_ROOT.
6641         * client-src/selfcheck.c (check_suid): Don't check uid if
6642           IGNORE_UID_CHECK.
6643         * common-src/alloc.c (safe_env): Add PATH to ENV if NEED_PATH_ENV.
6644         * recover-src/amrecover.c: Don't check uid if IGNORE_UID_CHECK.
6645
6646 2002-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6647
6648         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
6649           is_local_fstype): Remove Prototype.
6650         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
6651           is_local_fstype): Add Prototype.
6652
6653 2002-10-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6654
6655         * server-src/amindexd.c: New FEATURES command that read the features
6656           set from the client and reply the features set of the server.
6657         * recover-src/amrecover.h: include "amfeatures.h"
6658         * recover-src/amrecover.c: Send the FEATURES command to the server
6659           and read it's features set.
6660
6661 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6662
6663         * client-src/Makefile.am: Work around for CYGWIN.
6664         * server-src/Makefile.am: Ditto.
6665
6666 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6667
6668         * configure.in: Remove empty command from $program_transform_name.
6669
6670 2002-10-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6671
6672         * recover-src/extract_list.c (READ_TIMEOUT): Increased to 240*60.
6673
6674 2002-09-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6675
6676         * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined.
6677
6678 2002-09-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6679
6680         * server-src/amverifyrun.sh.in: New program.
6681         * man/amverifyrun.8.in: Man page for amverifyrun.
6682         * configure.in (AC_OUTPUT): add man/amverifyrun.8 and
6683           server-src/amverifyrun.sh.
6684         * man/Makefile.am (SERVER_MAN_PAGES): Add amverifyrun.8.
6685         * man/amanda.8.in: Add amdd, ammt and amverifyrun in SEE ALSO.
6686         * man/amverify.8.in: Add amverifyrun(8) in SEE ALSO.
6687         * server-src/Makefile.am (sbin_SCRIPTS): Add amverifyrun.
6688
6689 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6690
6691         * server-src/amverify.sh.in: Accept runtapes as a third argument.
6692         * man/amverify.8.in: Document it.
6693
6694 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6695
6696         * config/missing: Updated from automake-1.5.
6697
6698 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6699
6700         * config/config.guess: Updated from ftp://ftp.gnu.org/gnu/config/
6701         * config/config.sub: Updated from ftp://ftp.gnu.org/gnu/config/
6702
6703 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6704
6705         * client-src/sendsize.c (getsize_dump): Print the fstype.
6706         * client-src/sendbackup-dump.c (start_backup): Print the fstype.
6707
6708 2002-09-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6709         Patch by  Florian Hars <hars@bik-gmbh.de>
6710
6711         * changer-src/chg-zd-mtx.sh.in: Fix default value for cleancycle.
6712
6713 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6714
6715         * recover-src/extract_list.c (extract_files): print tape drive
6716           and host before asking to load tape.
6717
6718 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6719
6720         * server-src/taper.c (read_file): Initialize file, 
6721           stat(file.cont_filename) before opening it.
6722           
6723 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6724
6725         * server-src/amverify.sh.in: Don't check that the device is
6726           a character device, it could be a file: or rait:
6727
6728 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6729
6730         * common-src/amfeatures.c (am_set_default_feature_set):
6731           fe_rep_options_sendbackup_options is a default feature.
6732
6733 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
6734
6735         * server-src/amstatus.pl.in: Sort a disk in datestamp order.
6736
6737 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6738         Text by Jean-Francois Malouin <Jean-Francois.Malouin@bic.mni.mcgill.ca>
6739
6740         * docs/EXCLUDE: Improve documentation.
6741
6742 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6743
6744         * server-src/reporter.c: Fix compilation error if LPRCMD is not defined.
6745
6746 2002-08-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6747         Patch by Jason Brooks <jason0@mail.wrs.com>
6748
6749         * docs/chg-scsi.notes: New document.
6750         * changer-src/chg-scsi.c: Adding printout of "emubarcode" values 
6751           in the debug file.
6752         * changer-src/scsi-changer-driver.c: Added dlt8000 and L500 to 
6753           ChangerIO[].
6754         * changer-src/sense.c: Added dlt8000 and L500 to SenseType[].
6755
6756 2002-08-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6757
6758         * tape-src/output-null.c (null_tape_stat, null_tape_access): Use
6759           "/dev/null" instead of filename.
6760
6761 2002-08-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6762
6763         * changer-src/chg-mtx.sh.in: Sync with 2.4.3 branch.
6764         * changer-src/chg-scsi-chio.c: Ditto.
6765         * changer-src/chg-scsi.c: Ditto.
6766         * changer-src/scsi-aix.c: Ditto.
6767         * changer-src/scsi-bsd.c: Ditto.
6768         * changer-src/scsi-cam.c: Ditto.
6769         * changer-src/scsi-changer-driver.c: Ditto.
6770         * changer-src/scsi-defs.h: Ditto.
6771         * changer-src/scsi-hpux_new.c: Ditto.
6772         * changer-src/scsi-irix.c: Ditto.
6773         * changer-src/scsi-linux.c: Ditto.
6774         * changer-src/scsi-solaris.c: Ditto.
6775         * tape-src/tapeio.c: Ditto.
6776
6777 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6778
6779         * recover-src/uparse.y: Fix compiler warning.
6780
6781 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6782
6783         * server-src/amtrmidx.c: Continue if a directory doesn't exist.
6784
6785 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6786
6787         * man/amanda.8.in (tapecycle): Improve documentation.
6788
6789 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6790
6791         * server-src/amstatus.pl.in: Works with features.
6792
6793 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6794
6795         * common-src/amfeatures.c (am_feature_to_string): Return the string
6796           "UNKNOWNFEATURE" if no features.
6797         * common-src/amfeatures.c (am_string_to_feature): Return NULL if the
6798           string is "UNKNOWNFEATURE".
6799
6800 2002-08-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6801
6802         * common-src/file.c (debug_agets): line_free was badly set when
6803         the buffer size in increased.
6804
6805 2002-07-19  John R. Jackson (jrj@purdue.edu)
6806
6807         * common-src/amanda.h: Fix bad #define.
6808
6809 2002-07-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6810         Patch by
6811           David Munro <D.Munro@surrey.ac.uk>
6812
6813         * common-src/sl.c (new_sl): Alloc (sl_t) instead of (sl_t *).
6814           
6815 2002-06-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6816         Bug reported by 
6817           Jonathan R. Johnson <Jonathan.Johnson@MinnetonkaSoftware.com>
6818
6819         * server-src/reporter.c: Fix psfname filename.
6820
6821 2002-05-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6822
6823         * client-src/sendbackup.c: Don't do compression if it is server side.
6824         * client-src/sendbackup-dump.c: Ditto.
6825         * client-src/sendbackup-gnutar.c: Ditto.
6826
6827 2002-05-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6828         Patch by Manuel Bouyer <bouyer@antioche.lip6.fr>
6829
6830         * server-src/taper.c (detach_buffers): Fix compilation with mmap.
6831
6832 2002-04-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6833
6834         * recover-src/extract_list.c (extract_files): Set dump_device_name
6835           after the call of okay_to_continue.
6836
6837 2002-04-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6838
6839         New features to describe the OPTIONS line of a REP packet.
6840         * common-src/amfeatures.h: Add fetures fe_rep_options_maxdumps,
6841           fe_rep_options_hostname, fe_rep_options_features and
6842           fe_rep_options_sendbackup_options.
6843         * common-src/amfeatures.c (am_init_feature_set): Add
6844           fe_rep_options_features.
6845         * client-src/selfcheck.c: Write REP packet according to server features.        * client-src/sendbackup.c: Ditto.
6846         * client-src/sendsize.c: Ditto.
6847
6848 2002-04-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6849
6850         * common-src/amfeatures.h:
6851              Rename fe_g_options_maxdump  to fe_req_options_maxdumps
6852              Rename fe_g_options_hostname to fe_req_options_hostname
6853              Rename fe_g_options_features to fe_req_options_features
6854         * common-src/amfeatures.c: Ditto
6855         * server-src/amcheck.c: Ditto
6856         * server-src/dumper.c: Ditto
6857         * server-src/planner.c: Ditto
6858
6859 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6860
6861         * server-src/amcheck.c: Check if it can send features, hostname or
6862           maxdumps on the global options line. Don't send hostname and
6863           maxdumps for a noop service.
6864         * server-src/dumper.c: Ditto.
6865         * server-src/planner.c: Ditto.
6866
6867 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6868
6869         * client-src/sendbackup.c: (optionstr): Add srvcomp-best and
6870           srvcomp-fast options.
6871
6872 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6873
6874         * server-src/amcheck.c (start_host): Check the todo bit before 
6875           sending noop REQ.
6876
6877 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6878
6879         * client-src/client_util.c (parse_options, parse_g_options): Check
6880           for duplication options.
6881         * client-src/client_util.h (COMPR_SERVER_FAST, COMPR_SERVER_BEST):
6882           Declare.
6883         * client-src/selfcheck.c: Check for COMPR_FAST or COMPR_BEST.
6884
6885 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6886
6887         * client-src/selfcheck.c (host):Remove variable,use g_options->hostname.
6888         * client-src/sendbackup.c: Ditto.
6889         * client-src/sendsize.c: Ditto.
6890
6891 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6892
6893         * client-src/client_util.c (parse_g_options) New function to parse
6894           the global options string.
6895         * client-src/client_util.h (parse_g_options): Prototype.
6896         * client-src/selfcheck.c: use parse_g_options.
6897         * client-src/sendbackup.c: use parse_g_options.
6898         * client-src/sendsize.c: use parse_g_options.
6899
6900 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6901
6902         * server-src/diskfile.c: Improve message for missing features.
6903
6904 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6905
6906         Add many features.
6907         * common-src/amfeatures.c (am_set_default_feature_set): New function 
6908           to set the default features set.
6909         * common-src/amfeatures.h (am_set_default_feature_set): Prototype.
6910         * common-src/amfeatures.h: Rename amanda_feature_auth_keyword to 
6911           fe_options_auth.
6912         * client-src/client_util.c: Check features.
6913         * server-src/amcheck.c: Ditto.
6914         * server-src/diskfile.c: Ditto.
6915         * server-src/driverio.c: Ditto.
6916         * server-src/planner.c: Ditto.
6917         * server-src/diskfile.h (optionstr): Change prototype.
6918         * client-src/sendsize.c: Fix compiler warning.
6919
6920 2002-04-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6921
6922         * common-src/amfeatures.c: Include "amfeatures.h"
6923         * common-src/rsh-security.c: Don't assert on undefined variable.
6924
6925 2002-04-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6926
6927         * common-src/amfeatures.c: Renamed from features.c
6928         * common-src/amfeatures.h: Renamed from features.h
6929         * common-src/Makefile.am: Rename features to amfeatures.
6930         * client-src/amandad.c: Ditto.
6931         * client-src/client_util.h: Ditto.
6932         * client-src/selfcheck.c: Ditto.
6933         * client-src/sendbackup.c: Ditto.
6934         * client-src/sendsize.c: Ditto.
6935         * server-src/amcheck.c: Ditto.
6936         * server-src/chunker.h: Ditto.
6937         * server-src/diskfile.h: Ditto.
6938         * server-src/dumper.c: Ditto.
6939         * server-src/planner.c: Ditto.
6940         * server-src/taper.c: Ditto.
6941
6942 2002-04-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6943
6944         * server-src/conffile.c: Default dumporder set to "ttt".
6945         * server-src/driver.c: If dumporder is too short, use t and T.
6946         * man/amanda.8.in: Default dumporder set to "ttt".
6947
6948 2002-04-13  John R. Jackson (jrj@purdue.edu)
6949
6950         * common-src/features.c: Add amanda_feature_auth_keyword feature so
6951           authorization in the OPTIONS string is backward compatible.
6952         * common-src/features.h: Ditto.
6953         * client-src/client_util.c: Ditto.
6954         * client-src/client_util.h: Ditto.
6955         * client-src/selfcheck.c: Ditto.
6956         * client-src/sendbackup.c: Ditto.
6957         * client-src/sendsize.c: Ditto.
6958         * server-src/diskfile.c: Ditto.
6959         * server-src/planner.c: Fix compiler warning.
6960
6961 2002-04-13  John R. Jackson (jrj@purdue.edu)
6962
6963         * server-src/diskfile.c: Fix memory leak.
6964
6965 2002-04-13  John R. Jackson (jrj@purdue.edu)
6966
6967         * server-src/amcheck.c: Fix error parsing in packet.
6968
6969 2002-04-13  John R. Jackson (jrj@purdue.edu)
6970
6971         * common-src/features.c: New file.  Add support for feature sets so
6972           different Amanda versions can work together.
6973         * common-src/features.h: Ditto.
6974         * common-src/Makefile.am: Ditto.  Add "features" test program.
6975         * client-src/amandad.c: Add "noop" service to return the feature set.
6976         * client-src/selfcheck.c: Accept and return a feature set in OPTIONS.
6977           Improve parsing.
6978         * client-src/sendbackup.c: Ditto.
6979         * client-src/sendsize.c: Ditto.
6980         * common-src/bsd-security.c: Minor message change.
6981         * common-src/error.c: Use strcasecmp.
6982         * common-src/protocol.c: Use dbprintf for PROTO_DEBUG and improve
6983           messages.
6984         * restore-src/amidxtaped.c: Improve parsing.
6985         * server-src/amcheck.c: Ask for client features via "noop" before
6986           doing the real "selfcheck" service requests.  Improve parsing.
6987         * server-src/amflush.c: Minor coding format cleanup.
6988         * restore-src/amindexd.c: Improve parsing.
6989         * server-src/chunker.c: Deal with features string in commands.  Improve
6990           parsing.
6991         * server-src/diskfile.c: Initialize the features hosttype field.
6992         * server-src/diskfile.h: Add the features hosttype field.
6993         * server-src/driver.c: Save the features from the schedule.  Clean
6994           up some error messages.
6995         * server-src/driverio.c: Add features string to several commands.
6996         * server-src/dumper.c: Deal with features string in commands.  Improve
6997           parsing.
6998         * server-src/planner.c: Ask for client features via "noop" before
6999           doing the real "sendsize" service requests.  Improve parsing.
7000         * server-src/server_util.c: Minor coding cleanup.
7001         * server-src/server_util.h: Increase the number of args allowed on
7002           commands.
7003         * server-src/taper.c: Deal with features string in commands.  Improve
7004           parsing.
7005
7006 2002-04-12  John R. Jackson (jrj@purdue.edu)
7007
7008         * server-src/driver.c: Fix crash when only processing a tape queue
7009           (e.g. amflush).
7010
7011 2002-04-11  John R. Jackson (jrj@purdue.edu)
7012
7013         * server-src/driver.c: Protect against crash when taper has died.
7014
7015 2002-04-11  John R. Jackson (jrj@purdue.edu)
7016
7017         * common-src/stream.c: Clean up an error message.
7018
7019 2002-04-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7020
7021         * docs/DUMPER-API: Remove the section about USER and GROUP.
7022
7023 2002-04-09  John R. Jackson (jrj@purdue.edu)
7024
7025         * server-src/driver.c: Fix send of QUIT to taper when it is down.
7026
7027 2002-04-07  John R. Jackson (jrj@purdue.edu)
7028
7029         * server-src/dumper.c: Change sendbackup response parsing to handle
7030           2.4 changes.  Improve packet parse error processing.  Make packet
7031           logging conditional on an #ifdef instead of commented out.
7032
7033 2002-04-07  John R. Jackson (jrj@purdue.edu)
7034
7035         * client-src/amandad.c: Fix FORCE_USERID to run the service as the
7036           client user if amandad was started as root.
7037
7038 2002-04-07  John R. Jackson (jrj@purdue.edu)
7039
7040         * common-src/clock.c: Move definition of amanda_gettimeofday() macro
7041           to the header file so it could be used other places.  Use new
7042           amanda_timezone macro to avoid some #ifdef's.
7043         * common-src/clock.h: Ditto.
7044         * common-src/bsd-security.c: Fix compatibility problems with pre-2.5
7045           servers trying to talk to 2.5 clients.  The HANDLE value was not
7046           being properly handled, and the sequence number was being ignored.
7047
7048 2002-04-07  John R. Jackson (jrj@purdue.edu)
7049
7050         * server-src/reporter.c: Move column routines to conffile.c so amcheck
7051           can use them in its tests.  Do not abort on several failures, but
7052           generate messages in the FAILURE AND STRANGE DUMP SUMMARY section.
7053         * server-src/conffile.c: Move column routines to here.
7054         * server-src/conffile.h: Ditto.
7055         * server-src/amcheck.c: Add several config file tests.
7056         * server-src/logfile.c: Change "reporter" to "amreport".
7057
7058 2002-04-07  John R. Jackson (jrj@purdue.edu)
7059
7060         * configure.in: Add /usr/local/sbin to LOCPATH.
7061
7062 2002-03-31  John R. Jackson (jrj@purdue.edu)
7063
7064         * server-src/amcheck.c: Send maxdumps and hostname in packet OPTIONS.
7065
7066 2002-03-31  John R. Jackson (jrj@purdue.edu)
7067
7068         * changer-src/scsi-defs.h: Fix compiler warning and bug it was hiding.
7069         * changer-src/scsi-solaris.c: Ditto.
7070
7071 2002-03-31  John R. Jackson (jrj@purdue.edu)
7072
7073         * client-src/amandad.c: Fix arguments to pkt_cat.
7074         * common-src/bsd-security.c: Ditto.
7075
7076 2002-03-31  John R. Jackson (jrj@purdue.edu)
7077
7078         * client-src/amandad.c: Add relative timestamps to a lot of debug
7079           file messages, and add more messages, to better track what is
7080           going on.  Various general cleanup.
7081         * client-src/calcsize.c: Ditto.
7082         * client-src/client_util.c: Ditto.
7083         * client-src/selfcheck.c: Ditto.
7084         * client-src/sendbackup-dump.c: Ditto.
7085         * client-src/sendbackup-gnutar.c: Ditto.
7086         * client-src/sendbackup.c: Ditto.
7087         * client-src/sendbackup.h: Ditto.
7088         * client-src/sendsize.c: Ditto.
7089         * common-src/amanda.h: Ditto.
7090         * common-src/bsd-security.c: Ditto.
7091         * common-src/clock.c: Ditto.
7092         * common-src/clock.h: Ditto.
7093         * common-src/debug.c: Ditto.
7094         * common-src/dgram.c: Ditto.
7095         * common-src/error.c: Ditto.
7096         * common-src/file.c: Ditto.
7097         * common-src/pipespawn.c: Ditto.
7098         * common-src/stream.c: Ditto.
7099         * common-src/util.c: Ditto.
7100         * man/amanda.8.in: Ditto.
7101         * restore-src/amidxtaped.c: Ditto.
7102         * restore-src/amrestore.c: Ditto.
7103         * server-src/amindexd.c: Ditto.
7104         * server-src/getconf.c: Ditto.
7105         * server-src/planner.c: Ditto.
7106
7107 2002-03-31  John R. Jackson (jrj@purdue.edu)
7108
7109         * client-src/sendsize.c: Pay attention to the spindle number.
7110
7111 2002-03-30  John R. Jackson (jrj@purdue.edu)
7112
7113         * server-src/planner.c: General delay_dumps code cleanup.
7114
7115 2002-03-30  John R. Jackson (jrj@purdue.edu)
7116
7117         * server-src/planner.c: Make sure individual dumps larger than a tape
7118           are not added back into the schedule.  Found by Uncle George
7119           <gatgul@voicenet.com>.
7120
7121 2002-03-29  John R. Jackson (jrj@purdue.edu)
7122
7123         * man/amanda.8.in: Move "comment" in tapetype after inclusion of
7124           previous definition.  Found by Uncle George <gatgul@voicenet.com>.
7125
7126 2002-03-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7127
7128         * client-src/client_util.c (fixup_relative): New function to prepend
7129           the dirname if relative.
7130         * client-src/client_util.c (build_exclude, build_include): Use
7131           fixup_relative.
7132         * client-src/client_util.c (parse_options): Do not prepend the dirname.
7133         * client-src/selfcheck.c (check_options): Don't generate ERROR for samba
7134           if optional is set.
7135
7136 2002-03-24  John R. Jackson (jrj@purdue.edu)
7137
7138         * common-src/debug.c: Change dbopen() message slightly to match what
7139           amdump generates, making it easier to parse.
7140
7141 2002-03-24  John R. Jackson (jrj@purdue.edu)
7142
7143         * common-src/Makefile.am: Move clock routines to common-src so
7144           everyone may use them.
7145         * server-src/Makefile.am: Ditto.
7146
7147 2002-03-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7148
7149         * client-src/sendbackup-gnutar.c: Fix use of no_record.
7150
7151 2002-03-24  John R. Jackson (jrj@purdue.edu)
7152
7153         * client-src/amandad.c: Make sure argv[0] is valid before using it.
7154         * restore-src/amidxtaped.c: Ditto.
7155         * server-src/amindexd.c: Ditto.
7156
7157 2002-03-24  John R. Jackson (jrj@purdue.edu)
7158
7159         * client-src/client_util.c: Use the Amanda memory allocation code.
7160         * client-src/sendbackup-gnutar.c: Ditto.
7161         * client-src/sendsize.c: Ditto.
7162         * common-src/match.c: Ditto.
7163         * recover-src/amrecover.c: Ditto.
7164         * recover-src/display_commands.c: Ditto.
7165         * recover-src/extract_list.c: Ditto.
7166         * restore-src/amidxtaped.c: Ditto.
7167         * server-src/amflush.c: Ditto.
7168         * server-src/disk_history.c: Ditto.
7169         * server-src/driver.c: Ditto.
7170         * server-src/dumper.c: Ditto.
7171         * common-src/amanda.h: Always pass the source file and line number
7172           to the memory routines to make it easier to debug.
7173         * common-src/alloc.c: Ditto.
7174         * common-src/file.c: Ditto.
7175
7176 2002-03-23  John R. Jackson (jrj@purdue.edu)
7177
7178         * changer-src/chg-scsi-chio.c: Use agets instead of fgets.
7179         * changer-src/chg-scsi.c: Use agets instead of fgets.
7180         * client-src/client_util.c: Use agets instead of fgets.
7181         * recover-src/amrecover.c: Clean up output on EOF.
7182         * recover-src/extract_list.c: Use agets instead of direct stdio.
7183           Clean up output on EOF.  Add '?' help.
7184         * recover-src/set_commands.c: Quote the new device in the verify
7185           output to make it stand out.
7186         * server-src/amflush.c: Clean up output on EOF.  Clean up output
7187           when multiple holding disk areas selected.  Clean up parsing.
7188           Loop until valid user response.
7189         * server-src/find.c: Do not complain if log file is missing for
7190           a new (datestamp == 0) tape.
7191         * server-src/holding.c: Use agets instead of fgets. Clean up
7192           interactive input and output.
7193
7194 2002-03-23  John R. Jackson (jrj@purdue.edu)
7195
7196         * client-src/selfcheck.c: Fix a compiler warning.
7197         * client-src/sendbackup.c: Ditto.
7198         * client-src/sendsize.c: Ditto.
7199
7200 2002-03-23  John R. Jackson (jrj@purdue.edu)
7201
7202         * client-src/getfsent.c (close_fstab()): Call endfsent() instead
7203           of fclose(), if available.
7204
7205 2002-03-23  John R. Jackson (jrj@purdue.edu)
7206
7207         * common-src/dbprintf (debug_printf): Make sure errno is preserved
7208           across dbprint() calls.
7209
7210 2002-03-23  John R. Jackson (jrj@purdue.edu)
7211
7212         * configure.in: Add -R$dir as well as -L$dir on Solaris when processing
7213           --with-libraries to support shared libraries of support products.
7214
7215 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7216
7217         * server-src/chunker.c: Get result from dumper.
7218         * server-src/driver.c: Send dumper result to chunker.
7219         * server-src/driverio.c (chunker_cmd): Send DONE and FAILED command.
7220         * server-src/driverio.h (chunker_t): New down field.
7221         * server-src/dumper.c: Cleanup.
7222         * server-src/logfile.c (logtype_str): Add "PARTIAL".
7223         * server-src/logfile.h (logtype_e): Add L_PARTIAL log.
7224         * server-src/reporter.c: Handle PARTIAL log.
7225         * server-src/server_util.c (cmdstr): Add "PARTIAL".
7226         * server-src/server_util.h (cmd_t): Add PARTIAL command.
7227         * server-src/taper.c (read_file): Result is PARTIAL if dumper
7228           result is not DONE.
7229
7230 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7231
7232         * server-src/tapefile.c (write_tapelist): Write to a temp file and
7233           rename it.
7234         * server-src/amlabel.c: Do not rename the tapelist file.
7235         * server-src/taper.c (label_tape): Do not rename the tapelist file.
7236
7237 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7238
7239         * client-src/client_util.c (parse_options): Do not check if the
7240           exclude file exist, it's done later.
7241
7242 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7243
7244         * client-src/client_util.c (parse_options): Parse exclude-optional and
7245           include-optional.
7246         * client-src/client_util.h (option_t): New exclude_optional and
7247           include_optional field.
7248         * man/amanda.8.in: Document optional.
7249         * server-src/amadmin.c (disklist_one): Display optional.
7250         * server-src/conffile.c: Parse optional keyword.
7251         * server-src/conffile.h (dumptype_t): New exclude_optional and
7252           include_optional field.
7253         * server-src/diskfile.c (read_diskline): Copy optional bits.
7254         * server-src/diskfile.c (optionstr): Print optional bits.
7255         * server-src/diskfile.h (disk_t): New exclude_optional and
7256           include_optional field.
7257         * server-src/planner.c (getsize): Use new sendsize format if optional
7258           bits are used.
7259
7260 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7261
7262         * server-src/driver.c (dump_to_tape): Call start_degraded_mode() if
7263           taper failed.
7264
7265 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7266
7267         * recover-src/extract_list.c (extract_files_setup): Add ^$ to host.
7268
7269 2002-03-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7270         Patch from Michael Frankowski <mfrankow@winternet.com>
7271
7272         * client-src/sendbackup-gnutar.c: Test for subdir before dbprintf.
7273
7274 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7275
7276         * client-src/client_util.c (init_options): New function.
7277         * client-src/client_util.h (init_options): Prototype.
7278         * client-src/sendsize.c (main): Use init_options.
7279
7280 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7281
7282         * client-src/client-util.c: Check for include and exclude files.
7283
7284 2002-03-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7285
7286         * server-src/amstatus.pl.in: Fix.
7287         * server-src/conffile.c(get-compress): Change message for bad 
7288           compress argument.
7289
7290 2002-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7291
7292         * server-src/amstatus.pl.in: Fix.
7293         * client-src/client_util.c (parse_options): Parse auth= option.
7294         * client-src/client_util.h (option_t): Add auth field.
7295         * client-src/sendbackup.c: Use auth instead of bsd-auth.
7296         * client-src/sendsize.c: Init auth.
7297
7298 2002-03-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7299
7300         * client-src/sendbackup-dump.c: use amdevice as argument to
7301           amname_to_fstype.
7302         * client-src/sendsize.c: Use amdevice as argument to amname_to_dirname.
7303         * server-src/dumper.c: clear device if it is set to NODEVICE.
7304
7305 2002-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7306
7307         * server-src/amindexd.c: Compilation fix.
7308
7309 2002-03-07 John R. Jackson (jrj@purdue.edu)
7310
7311         * changer-src/chg-zd-mtx.sh.in: Allow whitespace on a VolumeTag line.
7312           Compliments of Christopher McCrory <chrismcc@pricegrabber.com>.
7313
7314 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7315
7316         * recover-src/amrecover.h (list_disk): Prototype.
7317         * recover-src/set_commands.c (list_disk): New function.
7318         * recover-src/uparse.y: parse LISTDISK.
7319         * recover-src/uscan.l: listdisk keyword.
7320         * recover-src/help.c: help for listdisk.
7321         * man/amrecover.8.in: Doc for listdisk.
7322         * server-src/amindexd.c: New LISTDISK command.
7323         * docs/INDEXING: Document LISTDISK command.
7324
7325 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7326
7327         * server-src/amstatus.pl.in: Better output for autoflush.
7328
7329 2002-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7330
7331         * server-src/amstatus.pl.in: Fix.
7332
7333 2002-03-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7334
7335         * server-src/amadmin.c (disklist_one): Print dp->device.
7336         * server-src/amcheck.c (start_host): Send device if specified.
7337         * server-src/amstatus.pl.in: Parse line with device.
7338         * server-src/diskfile.c (parse_diskline): Parse device.
7339         * server-src/diskfile.c (match_disklist): Match on device.
7340         * server-src/diskfile.h (disk_t): New field device.
7341         * server-src/driverio.c: (dumper_cmd): Send device.
7342         * server-src/dumper.c (main): Parse device in request.
7343         * server-src/dumper.c (start_dump): New device argument, send
7344           device to client.
7345         * server-src/planner.c (getsize): Send device to client.
7346         * server-src/server_util.h (MAX_ARGS): Set it to 12.
7347         * client-src/client_util.c (add_include, build_exclude, build_include,
7348           parse_options): New device argument.
7349         * client-src/client_util.h (build_exclude,build_include,parse_options):
7350           New prototype.
7351         * client-src/selfcheck.c: Use device.
7352         * client-src/sendbackup-dump.c: Use device.
7353         * client-src/sendbackup-gnutar.c: Use device.
7354         * client-src/sendbackup.c: Use device.
7355         * client-src/sendbackup.h (start_backup): New device argument.
7356         * client-src/sendsize.c: Use device.
7357         * man/amanda.8.in: Document new disklist syntax.
7358         * example/disklist: Give example.
7359
7360 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7361
7362         * server-src/amstatus.pl.in: Write "wait to flush" only if waittaper
7363           is requested.
7364
7365 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7366
7367         * server-src/amstatus.pl.in: Fix for failed tape.
7368
7369 2002-02-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7370
7371         * man/amanda.8.in: Document multiple exclude.
7372         * man/amanda.8.in: Document include.
7373
7374 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7375
7376         * client-src/client-util.c (add_include): Include are glob expression.
7377
7378 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7379
7380         * common-src/debug.c (debug_open); Don't try to renmae an already 
7381           renamed file.
7382
7383 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7384
7385         * server-src/conffile.c (dump_configuration): Print multiple 
7386           exclude and include.
7387
7388 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7389
7390         * client-src/client_util.c (add_exclude, add_include): Typo.
7391
7392 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7393
7394         * client-src/client_util.c (build_include, build_exclude): Fix for 
7395           bad eof detection.
7396
7397 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7398
7399         * client-src/client_util.c (get_name): Create a file name.
7400         * client-src/client_util.c (build_name): Remove old files,
7401           build an unused file name.
7402         * client-src/client_util.c (add_exclude): Add an exclude pattern to
7403           the exclude file.
7404         * client-src/client_util.c (add_include): Add an include to the
7405           include file.
7406         * client-src/client_util.c (build_exclude): Concat all excludes in 
7407           one file.
7408         * client-src/client_util.c (build_include): Concat all includes in 
7409           one file.
7410         * client-src/client_util.h (build_exclude, build_include): Prototype.
7411         * client-src/selfcheck.c.diff (check_options): Call build_exclude 
7412           and build_include.
7413         * client-src/sendsize.c.diff: Call gtar with one 
7414           exclude file/include file.
7415         * client-src/sendbackup-gnutar.c.diff: Call gtar with one 
7416           exclude file/include file.
7417
7418 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7419
7420         * common-src/amanda.h (amfree): Change e local variable to e__errno.
7421         * common-src/amanda.h (strappend): Change t local variable to t_t_t.
7422
7423 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7424
7425         * client-src/sendsize.c: Set include_file and include_list to NULL
7426           when using old protocol.
7427         * client-src/sendbackup-gnutar.c: Include "." when using old protocol.
7428
7429 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7430
7431         * server-src/conffile.h (dumptype_t): Add include_file and include_list.
7432         * server-src/conffile.c: Read include.
7433         * server-src/diskfile.h (disk_t): Add include_file and include_list.
7434         * server-src/diskfile.c (optionstr): Add include to the optionstr.
7435         * server-src/amadmin.c (disklist_one): Print include.
7436         * server-src/planner.c: Use new protocol if include is used.
7437         * client-src/client_util.h (option_t): Add include_file and include_list
7438         * client-src/client_util.c (parse_options): Parse include.
7439         * client-src/selfcheck.c (check_options): Print ERROR if include are 
7440           used for SAMBA or DUMP.
7441         * client-src/sendsize.c: Send include to gnutar.
7442         * client-src/sendbackup-gnutar.c: Send include to gnutar.
7443
7444 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7445
7446         * client-src/client_util.c (parse_options): Check that files from
7447           'exclude list' exist'.
7448         * client-src/selfcheck.c (check_options): Give ERROR if multiple
7449           exclude are used with samba or if exclude are used with DUMP.
7450
7451 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7452
7453         * client-src/sendbackup.h: Remove bad stuff introduced in previous
7454           patch.
7455         * client-src/sendbackup-gnutar.c: Ditto.
7456
7457 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7458
7459         * client_src/client_util.c (parse_options): Function to parse 
7460           the option string. 
7461         * client_src/client_util.h (parse_options): Prototype.
7462         * client_src/client_util.h (option_t): Struct for options.
7463         * client_src/Makefile.am: Compile client_util.
7464         * client_src/selfcheck.c: Use new option_t and multiple exclude.
7465         * client_src/sendbackup.h: Use new option_t and multiple exclude.
7466         * client_src/sendbackup.c: Use new option_t and multiple exclude.
7467         * client_src/sendbackup-dump.c: Use new option_t and multiple exclude.
7468         * client_src/sendbackup-gnutar.c: Use new option_t and multiple exclude.
7469         * client_src/sendsize.c: Use new option_t and multiple exclude.
7470         * server-src/conffile.h: Use sl_t for exclude_file and exclude_list.
7471         * server-src/conffile.c: Multiple exclude.
7472         * server-src/diskfile.h: Use sl_t for exclude_file and exclude_list.
7473         * server-src/diskfile.c: Multiple exclude.
7474         * server-src/planner.c: Multiple exclude.
7475
7476 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7477
7478         * common-src/pipespawn.c (pipespawnv): Typo, ap_snprintf -> snprintf.
7479
7480 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7481
7482         * common-src/pipespawn.c (pipespawnv): New funtion taking an 
7483           argv argument.
7484         * common-src/pipespawn.h (pipespawnv): Prototype.
7485
7486 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7487
7488         * server-src/holding.h: Use sl_t instead of holding_t
7489         * server-src/holding.c: Ditto.
7490         * server-src/amcleanupdisk.c: Ditto.
7491         * server-src/amflush.c: Ditto.
7492         * server-src/find.c: Ditto.
7493         * server-src/planner.c: Ditto.
7494
7495 2002-02-11 John R. Jackson (jrj@purdue.edu)
7496
7497         * configure.in: AIX needs the "other" getconf argument to find out
7498           about large file support (XBS5_ILP32_OFFBIG instead of LFS).
7499
7500 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7501
7502         * common-src/sl.h: New header file
7503         * common-src/sl.c: New file for list of string struct.
7504         * common-src/Makefile.am: Compile sl.c
7505
7506 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7507
7508         * changer-src/chg-zd-mtx.sh.in: Don't use '^' in expr match argument.
7509
7510 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7511
7512         * common-src/fileheader.c (build_header): Typo.
7513
7514 2002-02-10 John R. Jackson (jrj@purdue.edu)
7515
7516         * configure.in: Add new file-pad tapetype option to take the place
7517           of a positive/negative blocksize.  Blocksize may now only be
7518           positive.  File-pad defaults to "true" which pads the last tape
7519           record like it always has.
7520         * man/amanda.8.in: Ditto.
7521         * server-src/amlabel.c: Ditto.
7522         * server-src/conffile.c: Ditto.  Fix typo in conffile test program.
7523         * server-src/conffile.h: Ditto.
7524         * server-src/planner.c: Ditto.
7525         * server-src/taper.c: Ditto.
7526
7527 2002-02-10 John R. Jackson (jrj@purdue.edu)
7528
7529         * configure.in: Save the ./configure args and display them in the
7530           version string (e.g. amandad*debug and "amadmin xx version").
7531         * common-src/genversion.c: Ditto.
7532
7533 2002-02-10 John R. Jackson (jrj@purdue.edu)
7534
7535         * common-src/alloc.c: Fix type mismatch issues discovered by splint
7536           (www.splint.org).  Compliments of jens persson <jens@persson.cx>.
7537         * common-src/bsd-security.c: Ditto.
7538         * common-src/debug.c: Ditto.
7539         * common-src/dgram.c: Ditto.
7540         * common-src/file.c: Ditto.
7541         * common-src/fileheader.c: Ditto.
7542         * common-src/fileheader.h: Ditto.
7543         * common-src/genversion.c: Ditto.
7544         * common-src/getcwd.c: Ditto.
7545         * common-src/match.c: Ditto.
7546         * common-src/stream.c: Ditto.
7547         * common-src/strstr.c: Ditto.
7548         * common-src/token.c: Ditto.
7549         * recover-src/amrecover.c: Ditto.
7550         * recover-src/display_commands.c: Ditto.
7551         * recover-src/extract_list.c: Ditto.
7552         * recover-src/set_commands.c: Ditto.
7553         * server-src/reporter.c: Ditto.
7554
7555 2002-02-10 John R. Jackson (jrj@purdue.edu)
7556
7557         * changer-src/chg-zd-mtx.sh.in: Major cleanup and general overhaul.
7558         * docs/TAPE.CHANGERS: Cleanup.
7559
7560 2002-02-09 John R. Jackson (jrj@purdue.edu)
7561
7562         * common-src/arglist.h: Clean up gcc detection of printf style variable
7563           argument list functions.
7564         * changer-src/scsi-changer-driver.c: Ditto.
7565         * common-src/debug.c: Ditto.
7566         * common-src/dgram.c: Ditto.
7567         * common-src/error.c: Ditto.
7568         * common-src/packet.c: Ditto.
7569         * common-src/packet.h: Ditto.
7570         * common-src/security.c: Ditto.
7571         * common-src/snprintf.c: Ditto.
7572         * common-src/token.c: Ditto.
7573         * common-src/token.h: Ditto.
7574         * server-src/amindexd.c: Ditto.
7575         * server-src/conffile.c: Ditto.
7576         * server-src/diskfile.c: Ditto.
7577         * server-src/logfile.c: Ditto.
7578         * server-src/logfile.h: Ditto.
7579         * server-src/server_util.c: Ditto.
7580
7581 2002-02-09 John R. Jackson (jrj@purdue.edu)
7582
7583         * configure.in: Must look in both strings.h and string.h when trying
7584           to find function declarations (strncasecmp was not found on AIX
7585           but is really there and our override caused a mismatch error).
7586
7587 2002-02-09 John R. Jackson (jrj@purdue.edu)
7588
7589         * configure.in: Add code to test for a type defined in other than the
7590           autoconf expected locations.  Use it to look for socklen_t.
7591
7592 2002-02-08 John R. Jackson (jrj@purdue.edu)
7593
7594         * server-src/amadmin.c (check_dumpuser): Make it fatal to attempt to
7595           do an operation that would alter any files when run as someone other
7596           than the dump user from amanda.conf.  This should prevent files from
7597           ending up with incorrect ownership.
7598
7599 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7600
7601         * man/amrecover.8.in (settape): Document that the hostname is required
7602           if the protocol (tape:, file:, rait:, null:) is specified.
7603         * man/amrecover.8.in (settape): Document that it is posible to
7604           change the tape device when asked to load tape.
7605
7606 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7607
7608         * server-src/holding.c (scan_holdingdir): Create the list in 
7609           datestamp order.
7610
7611 2002-02-02 John R. Jackson (jrj@purdue.edu)
7612
7613         * configure.in: Add unistd.h to list of places to look for ruserok()
7614           declaration.  Reported by John Koenig <jfkoenig@vipb.com> on ALPHA
7615           running OSF1 v5.1
7616
7617 2002-02-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7618         Reported by Roland E. Lipovits <rel@lipo.at0.net>
7619
7620         * server-src/amstatus.pl.in: Don't double-counts the failed 
7621           estimate partitions.
7622
7623 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7624
7625         * configure.in: New --with-maxtapeblocksize with a default of 32.
7626         * common-src/amanda.h: MAX_TAPE_BLOCK_KB is defined in amanda.h
7627
7628 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7629
7630         * common-src/fileheader.c (build_header): Never write the
7631           BLOCKSIZE= line.
7632         * common-src/fileheader.c (parse_file_header): Do not parse the
7633           BLOCKSIZE= line.
7634
7635 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7636
7637         * common-src/fileheader.c (build_header): Write the BLOCKSIZE= line
7638           after the dd if=... line.
7639
7640 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7641
7642         * server-src/driver.c: Init code to 0.
7643
7644 2002-01-29 John R. Jackson (jrj@purdue.edu)
7645
7646         * tape-src/output-tape.c (tape_tapefd_fsf): Some systems cannot deal
7647           with large stack variables, so allocate tape I/O buffers dynamically.
7648         * tape-src/tapeio.c (tapefd_rdlabel): Ditto.
7649
7650 2002-01-25 John R. Jackson (jrj@purdue.edu)
7651
7652         * server-src/driver.c: Log non-zero exit codes and signals from all
7653           the dumpers and taper.
7654
7655 2002-01-25 John R. Jackson (jrj@purdue.edu)
7656
7657         * server-src/amindexd.c: Clean up reporting of errors by gethostby*()
7658           functions.  Make sure they always report what they were trying to
7659           look up, and don't bother reporting errno (it would be h_errno).
7660
7661 2002-01-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7662
7663         * common-src/fileheader.h (dumpfile_t): Add blocksize field.
7664         * common-src/fileheader.h (build_header): Change prototype.
7665         * common-src/fileheader.c (fh_init): blocksize default to 
7666           DISK_BLOCK_BYTES.
7667         * common-src/fileheader.c (parse_file_header): Parse BLOCKSIZE= line.
7668         * common-src/fileheader.c (build_header): Remove blocksize parameter, 
7669           write the BLOCKSIZE= line.
7670         * tape-src/tapeio.c: set file.blocksize, Change call to build_header.
7671         * restore-src/amrestore.c: Ditto.
7672         * server-src/dumper.c: Ditto.
7673         * server-src/taper.c: Ditto.
7674         * server-src/holding.c: Ditto.
7675         * server-src/chunker.c: Ditto.
7676
7677 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7678
7679         * changer-src/scsi-changer-driver.c (SCSI_ReadElementStatus):
7680           set ret to -1.
7681
7682 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7683
7684         * server-src/planner.c: Check for dp->todo.
7685
7686 2002-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7687         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
7688
7689         * changer-src/chg-scsi.c: Typo.
7690
7691 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7692
7693         * changer-src/Makefile.am: Run `perl -c' on perl script.
7694         * client-src/Makefile.am: Ditto.
7695         * dumper-src/Makefile.am: Ditto.
7696         * server-src/Makefile.am: Ditto.
7697
7698 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7699         Reported by Geert Uytterhoeven <geert@linux-m68k.org>
7700
7701         * README: Amanda compile on Linux/m68k.
7702
7703 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7704
7705         * changer-src/chg-rth.pl.in: Typo. fi -> }.
7706
7707 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7708         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
7709
7710         * changer-src/chg-chio.pl.in: Typo. fi -> }.
7711         * changer-src/chg-chio.pl.in (prefix, exec_prefix): Set correctly.
7712         * changer-src/chg-chio.pl.in (max_picker): Init to -1.
7713
7714 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7715
7716         * recover-src/extract_list.c (okay_to_continue_tape): Ignore \n
7717           at end of string.
7718
7719 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7720
7721         * server-src/amoverview.pl.in: Ignore some line from amadmin.
7722
7723 2002-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7724
7725         * common-src/event.c: Use ASSERTIONS not ASSERT.
7726
7727 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7728
7729         * tape-src/output-tape.c (tape_tapefd_rewind, tape_tapefd_unload):
7730           Init rc to -1.
7731         * changer-src/scsi-irix.c (SCSI_OpenDevice): Cast to int.
7732         * common-src/match.c (clean_regex): Cast to int.
7733
7734 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7735         Reported by <ian.willis@sge.net>
7736
7737         * common-src/rsh-security.c: Fix for RSH_DEBUG.
7738
7739 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7740
7741         * config/ltconfig: Remove
7742         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.2.
7743         * config/config.guess: Update from
7744           ftp://ftp.gnu.org/gnu/config/config.guess
7745         * config/config.sub: Update from 
7746           ftp://ftp.gnu.org/gnu/config/config.sub
7747         * config/depcomp, config/install-sh, config/missing, 
7748           config/mkinstalldirs: Update from automake 1.5
7749         * config/Makefile.am (EXTRA_DIST): Remove ltconfig.
7750
7751 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7752         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
7753
7754         * configure.in: Add missing [.
7755
7756 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7757         Patch by Jason Thomas <jason@topic.com.au>
7758              and Eric Siegerman <erics@telepres.com>
7759
7760         * common-src/bsd-security.c (check_user_amandahosts): improve message.
7761
7762 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7763
7764         * server-src/driver.c: Do not go in degraded mode in nodump mode.
7765         * server-src/conffile.c:Check many options to be sure they are positive.
7766
7767 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7768
7769         * changer-src/chg-scsi.c (get_relative_target): return -1;
7770         * changer-src/scsi-irix.c (SCSI_ExecuteCommand): Remove Zero variable.
7771         * common-src/amanda.h: include strings.h if HAVE_STRINGS_H is defined.
7772         * server-src/amadmin.c (info_one): Remove lev0date variable.
7773         * server-src/amadmin.c (import_db): Remove vers_comment variable.
7774         * server-src/amindexd.c (main): Remove arg_len variable.
7775         * server-src/amtrmidx.c (main): Remove level_position and
7776           datestamp_position variables.
7777         * server-src/changer.c (changer_current): Remove checked variable.
7778         * server-src/conffile.c (read_confline): Check value of RESERVE.
7779         * server-src/conffile.c (get_tapetype): Check value of LENGTH and
7780           FILEMARK.
7781         * server-src/diskfile.h: bit field of 1 bit must be unsigned.
7782         * server-src/driver.c (main): Don't check the value of RESERVE.
7783         * server-src/driver.c (find_diskspace): Remove as_pref variable.
7784         * server-src/driverio.c (getresult): cast cmd_t.
7785         * server-src/chunker.c (databuf_flush): save_type is a filetype_t.
7786         * server-src/find.c (search_logfile): Remove host_undo_ch and
7787           disk_undo_ch variables.
7788         * server-src/holding.c (pick_datestamp): Remove result variable.
7789         * server-src/server_util.c (getcmd): Loop on a cmd_t variable.
7790         * server-src/taper.c (tape_writer_side): Remove out_open variable.
7791         * tape-src/tapeio.c (tapefd_close): Cast to (void *).
7792
7793 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7794
7795         * client-src/selfcheck.c: Fix compiler warning.
7796         * changer-src/chg-scsi.c: Ditto.
7797         * changer-src/scsi-changer-driver.c: Ditto.
7798         * changer-src/scsi-defs.h: Ditto.
7799         * server-src/server_util.c: Ditto.
7800         * common-src/fileheader.c: Ditto.
7801
7802 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7803
7804         * configure.in: Set MAX_TAPE_BLOCK_KB on linux
7805
7806 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7807         Patch by Blaz Zupan <blaz@amis.net>
7808
7809         * changer-src/chg-zd-mtx.sh.in: typo.
7810
7811 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7812
7813         * client-src/selfcheck.c (check_access): New function (old check_file
7814           function).
7815         * client-src/selfcheck.c (check_file): Check that the filename is a
7816           file.
7817         * client-src/selfcheck.c (check_dir): Check that dirname is a directory.
7818
7819 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7820         Patch by Henning Schmiedehausen <henning@forge.intermeta.de>
7821
7822         * common-src/file.c (safe_cd): Create the AMANDA_DBGDIR and
7823           AMANDA_TMPDIR directory.
7824
7825 2001-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7826
7827         * server-src/amverify.sh.in: Check that @AMANDA_TMPDIR@ exist.
7828         * server-src/amrmtape.sh.in: Ditto.
7829
7830 2001-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7831
7832         * changer-src/Makefile.am: fix setting of libexec_PROGRAMS.
7833
7834 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7835
7836         * server-src/amstatus.pl.in: Work with amflush log.
7837
7838 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7839
7840         * server-src/driver.c (nodump): new argument, Don't start the dumpers
7841           if set.
7842         * server-src/holding.c (get_flush): chdir to original cwd.
7843         * server-src/reporter.c: accept driver and amflush line in log.
7844         * server-src/amflush.c: exec driver to do the flushing.
7845
7846 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7847
7848         * server-src/amstatus.pl.in: Fixup for estimate, write flush line.
7849
7850 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7851
7852         * recover-src/extract_list.c: You can change the tape device
7853           between each tape.
7854
7855 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7856
7857         * restore-src/amrestore.c (restore): try to find the next chunk 
7858           in the current directory.
7859
7860 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7861
7862         * example/amanda.conf.in: typo.
7863
7864 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7865
7866         Patch by Roland E. Lipovits <rel@lipo.at0.net>
7867         * example/amanda.conf.in: typo.
7868
7869 2001-12-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7870
7871         * server-src/dumper.c, server-src/taper.c, server-src/chunker.c:
7872         Replace TRY_AGAIN by TRYAGAIN.
7873
7874 2001-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7875         Patch by Michael D. Beynon <beynon@ll.mit.edu>
7876
7877         * server-src/driver.c (main): Take care of empty tapeq.
7878
7879 2001-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7880
7881         * server-src/diskfile.c (lookup_host): Match must be exact.
7882
7883 2001-11-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7884
7885         * server-src/planner.c: Add host, disk, datestamp and level on 
7886         FLUSH line. Add datestamp on DUMP line.
7887         * server-src/driver.c (read_flush): Read new format of FLUSH line.
7888         * server-src/driver.c (read_schedule): Read new format of DUMP line.
7889         * server-src/amflush.c: Write a datestamp on stderr.
7890         * server-src/amdump.sh.in: Write a datestamp on stderr.
7891         * server-src/amstatus.pl.in: Works with autoflush.
7892
7893 2001-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA> 
7894         * server-src/conffile.c (autoflush): New configuration options.
7895         * server-src/conffile.h (autoflush): New configuration options.
7896         * man/amanda.8.in: Document it.
7897         * example/amanda.conf.in: Document it.
7898         * server-src/holding.h (get_flush, pick_datestamp, pick_all_datestamp,
7899         cleanup_holdingdisk): New prototype.
7900         * server-src/holding.c (scan_holdingdir, cleanup_holdingdisk,
7901         get_flush): New function.
7902         * server-src/holding.c (pick_datestamp, pick_all_datestamp): New
7903         verbose argument.
7904         * server-src/amcleanupdisk.c: Change call to pick_all_datestamp.
7905         * server-src/amflush.c: Change call to pick_all_datestamp.
7906         * server-src/find.c: Change call to pick_all_datestamp.
7907         * server-src/planner.c: Write FLUSH line to driver, the schedule
7908         line contain the keyword DUMP.
7909         * server-src/planner.c: Add datestamp to SUCCESS and FAIL line.
7910         * server-src/amstatus.pl.in: New parsing of DUMP line.
7911         * server-src/driverio.h: New datestamp field in sched_t;
7912         * server-src/driver.c (build_diskspace): New function to build a
7913         assignedhd_t from an holding file.
7914         * server-src/driver.c (read_flush): New function to read the list
7915         of files to flush.
7916         * server-src/driver.c (read_schedule): Parse the keyword DUMP.
7917         * server-src/driver.c: Add datestamp to FAIL line.
7918         * server-src/dumper.c: Add datestamp to FAIL line.
7919         * server-src/reporter.c (timedata_t, repdata_t) : Major change of
7920         structure.
7921         * server-src/taper.c: Add datestamp to FAIL line.
7922
7923 2001-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7924
7925         * server-src/conffile.c: New dumporder configuration.
7926         * server-src/conffile.h: Likewise.
7927         * server-src/driver.c (start_some_dumps): Use dumporder to
7928         select the next disk to dump.
7929         * example/amanda.conf.in: Give an example of dumporder.
7930         * man/amanda.8.in: Document it.
7931
7932 2001-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7933
7934         * recover-src/amrecover.h (cd_glob, cd_regex, cd_dir): New prototypes.
7935         * recover-src/set_commands.c (cd_glob, cd_regex, cd_dir): New functions.
7936         * recover-src/uparse.y: Add new token CDX, call cd_glob instead 
7937         of set_directory for cd command, call cd_regex for cdx command.
7938         * recover-src/uscan.l: On cdx string return CDX token.
7939         * recover-src/help.c: Document it.
7940         * man/amrecover.8.in: Document it.
7941
7942 2001-09-26 John R. Jackson (jrj@purdue.edu)
7943
7944         * server-src/reporter.c: Fix problem when column sizes are negative.
7945
7946 2001-09-21 John R. Jackson (jrj@purdue.edu)
7947
7948         * server-src/Makefile.am: Add -I../common-src so genversion.h can be
7949           found (since it is built on the fly).  Only fails when build is done
7950           in a different directory than the sources.
7951
7952 2001-09-17 John R. Jackson (jrj@purdue.edu)
7953
7954         * server-src/getconf.c: Add capabilities to amgetconf to return
7955           build environment values and also to open and close a debug file
7956           (e.g. for scripts).
7957         * man/amgetconf.8.in: Ditto.
7958         * changer-src/chg-scsi.c: Ditto.
7959         * common-src/amanda.h: Ditto.
7960         * common-src/debug.c: Ditto.
7961         * common-src/error.c: Ditto.
7962         * server-src/dumper.c: Ditto.
7963
7964 2001-09-17 John R. Jackson (jrj@purdue.edu)
7965
7966         * server-src/planner.c: Make sure we do not attempt to bump beyond
7967           level 9.
7968
7969 2001-09-16 Thomas Hepper (th@ant.han.de)
7970         * changer-src/chg-scsi.c: Added new config option autoinv, 
7971         if not set no auto inventory will be done if the label db is out of 
7972         sync. Reworked MapBarCode, now the parameters are passed as a struct 
7973         and the result is returned in this struct (MBC_T), 
7974         also removed some duplicate/nonsens code from MapBarCode
7975         Changed the definitions for slot_file. It was used duplicate, 
7976         1. as the config file set by amanda.conf, and second set by the
7977         config option in the chg-scsi config file. Now the file from
7978         amanda.conf is called chg_scsi_conf. and changer_file is renamed 
7979         to slot_file.
7980         Added check if cleanfile is not set, if true clean_file is set to NULL
7981         Now return if tape_device is not in the range 0-9.
7982         Added some checks if we have all informations like slot_file, 
7983         devices etc. Fixed and error in the search function, 
7984         if the searched vol is already loaded return the correct info 
7985         and not 'label not found'. Fixed error in the parameter passing 
7986         to get_relative_slot. If the option was -slot last we where 
7987         1 above the end parameter..
7988
7989         * changer-src/scsi-bsd.c: Fix compile problems.
7990         * changer-src/scsi-changer-driver.c: Fixed the last problems :-) 
7991         for the label/barcode handling...
7992         * changer-src/scsi-defs.h: Added new struct MBC_T
7993         * changer-src/sense.c: Added some more messages for Exabyte 210 lib
7994
7995 2001-09-01 John R. Jackson (jrj@purdue.edu)
7996
7997         * client-src/sendsize.c: Fix memory allocation problem.
7998
7999 2001-08-31 John R. Jackson (jrj@purdue.edu)
8000
8001         * server-src/amindex.c: Fix memory leak.  Compliments of Robert Minsk
8002           <egbert@centropolisfx.com>.
8003         * server-src/logfile.c: Fix memory leak.  Compliments of Robert Minsk
8004           <egbert@centropolisfx.com>.
8005
8006 2001-08-30 John R. Jackson (jrj@purdue.edu)
8007
8008         * server-src/planner.c: Fix problem with maintenance of total level
8009           0 size when disk being brought back into the schedule was not doing
8010           a level 0.  Compliments of Robert Minsk <egbert@centropolisfx.com>.
8011
8012 2001-08-24 John R. Jackson (jrj@purdue.edu)
8013
8014         * server-src/amverify.sh.in: Fix missing backtick error.
8015
8016 2001-08-24 John R. Jackson (jrj@purdue.edu)
8017
8018         * server-src/taper.c: Allocate buffers on page boundaries.
8019
8020 2001-08-22 John R. Jackson (jrj@purdue.edu)
8021
8022         * tape-src/Makefile.am: Add chown/chgrp rules for ammt/amdd install
8023           so they end up like all the other Amanda programs.
8024
8025 2001-08-15 Thomas Hepper (th@ant.han.de)
8026         * changer-src/chg-scsi.c. Removed version 1 DB support from mapBarCode. Changed the way parameter
8027         are given to MapBarCode and returned from there. No a struct is passed where all infos
8028         will be returned to the calling function.
8029         If eject is set we will not call LogSense in chg-scsi because it is also called in the
8030         eject function.
8031         * changer-src/scsi-defs.h: Added struct MBC_T used by MapBarCode.
8032         * changer-src/scsi-changer-driver.c: Changed all calls to MapBarCode to the new way
8033
8034 2001-08-14 John R. Jackson (jrj@purdue.edu)
8035
8036         * docs/EXCLUDE: New document from Andrew Hall <ahall@secureworks.net>
8037           describing how to set up and use GNU tar exclusions.
8038         * docs/Makefile.am: Added EXCLUDE and PORT.USAGE.
8039
8040 2001-08-14 John R. Jackson (jrj@purdue.edu)
8041
8042         * docs/PORT.USAGE: New document about how Amanda ports are used.
8043
8044 2001-08-14 John R. Jackson (jrj@purdue.edu)
8045
8046         * client-src/sendsize.c: Fix patch merge goof (ap_snprintf -> snprintf).
8047
8048 2001-08-14 John R. Jackson (jrj@purdue.edu)
8049
8050         * common-src/stream.c: Add stream_client_privileged() function to
8051           get a privileged port and fail if one is not available.  The older
8052           stream_client() function gets a (non-privileged) port in the
8053           configured portrange, if set and possible, else anything available.
8054         * common-src/stream.h: Prototypes.
8055         * recover-src/amrecover.c: Use stream_client_privileged() instead of
8056           stream_client().
8057         * recover-src/extract_list.c: Ditto.
8058         * configure.in: Added several more port range sanity checks.  Added
8059           --with-tcpportrange as an alias for --with-portrange.
8060
8061 2001-08-09 Thomas Hepper (th@ant.han.de)
8062         * changer-src/chg-scsi.c: Added check in MapBarCode if the labelfile
8063         parameter is empty, and if yes return. 
8064         Added global variable do_inventory, and if set do an inventory before
8065         exit.
8066         In MapBarCode changed the way the UPDATE_SLOT is done, now it uses
8067         the slot number passed to MapBarCode to find and update the record.
8068         * changer-src/scsi-changer-driver.c: Added def. for BreeceHill Q7
8069         Added global variables which are set by the tape_rdlabel function
8070         in eject/unload.
8071         Reworked the way how the updates of the labelfile are done.
8072
8073 2001-08-01 John R. Jackson (jrj@purdue.edu)
8074
8075         * client-src/selfcheck.c: Fix typos I introduced into the PC subdir
8076           patch.
8077         * client-src/sendbackup-gnutar.c: Ditto.
8078         * client-src/sendsize.c: Ditto.
8079
8080 2001-08-01 Marko Injac <marko.injac@mail.insert.si> via John R. Jackson (jrj@purdue.edu)
8081
8082         * client-src/findpass.c: Allow backup of subdirs of PC shares for
8083           amanda-2.4.1beta1 by Greg Shebert amanda-hackers list Tue Feb 1,
8084           2000.  Ported to amanda-2.4.2p2 on debian potato by Marko Injac.
8085         * client-src/findpass.h: Ditto.
8086         * client-src/selfcheck.c: Ditto.
8087         * client-src/sendbackup-gnutar.c: Ditto.
8088         * client-src/sendsize.c: Ditto.
8089         * docs/SAMBA: Ditto.
8090
8091 2001-08-01 John R. Jackson (jrj@purdue.edu)
8092
8093         * client-src/sendsize.c: Prefix each debug line with sendsize process
8094           information to make picking out the output from a particular estimate
8095           run easier when maxdumps > 1.
8096
8097 2001-08-01 John R. Jackson (jrj@purdue.edu)
8098
8099         * server-src/amcheck.c: Unlink the temp files as soon as they are
8100           created so they always go away when amcheck terminates.  Use
8101           pipespawn() instead of system() to call the MAILER program.  Call
8102           dbopen()/dbclose() in main() to write to a debug file instead of
8103           stderr.
8104
8105 2001-08-01 John R. Jackson (jrj@purdue.edu)
8106
8107         * common-src/debug.c: Only rename files that end in ".debug".
8108
8109 2001-08-01 John R. Jackson (jrj@purdue.edu)
8110
8111         * common-src/pipespawn.c: Show empty pipespawn() args as "".
8112
8113 2001-07-31 John R. Jackson (jrj@purdue.edu)
8114
8115         * server-src/conffile.h: Add support for tapetype "blocksize" keyword.
8116         * server-src/conffile.c: Add tapetype "blocksize" keyword.  Use
8117           DISK_BLOCK_KB where appropriate instead of TAPE_BLOCK_SIZE.  Disallow
8118           negative tape length and tapemark size.
8119         * common-src/alloc.c: Add new amtable_free() function.  Adjust args
8120           to amtable_alloc() to be consistent with amtable_free().
8121         * common-src/amanda.h: Add new am_round() and am_floor() macros.
8122           Define new DISK_BLOCK_KB, DISK_BLOCK_BYTES, MAX_TAPE_BLOCK_KB,
8123           MAX_TAPE_BLOCK_BYTES constants.  Remove TAPE_BLOCK_SIZE and
8124           TAPE_BLOCK_BYTES.
8125         * common-src/bsd-security.c: TAPE_BLOCK_BYTES -> NETWORK_BLOCK_BYTES.
8126           Use -1 instead of DEFAULT_SIZE.
8127         * common-src/rsh-security.c: Ditto.
8128         * common-src/fileheader.c: Change write_header() to build_header().
8129           Add blocksize arg.  Get rid of unused fill_buffer() function.
8130         * common-src/fileheader.h: Ditto.
8131         * common-src/stream.c: Use negative value to indicate default buffer
8132           size.
8133         * common-src/stream.h: Add NETWORK_BLOCK_BYTES and STREAM_BUFSIZE
8134           constants.  Remove DATABUF_SIZE and DEFAULT_SIZE.
8135         * man/amanda.8.in: Document the new "blocksize" tapetype keyword.
8136           Document that "length" in tapetype has meaning to some output
8137           drivers.  Fix "bumpdays" and "speed" defaults.  Document new "file:"
8138           output driver record length data file.
8139         * man/amrestore.8: Add new "-b blocksize" arg.  Add description of
8140           how to catalogue the images on a tape.
8141         * recover-src/amrecover.c: DEFAULT_SIZE -> -1.
8142         * recover-src/extract_list.c: DEFAULT_SIZE -> -1.  Use DISK_BLOCK_BYTES
8143           instead of TAPE_BLOCK_BYTES for the header size.
8144         * restore-src/amrestore.c: Add new "-b blocksize" arg.  Document how
8145           the header is handled.  Deal with arbritrary tape record sizes.
8146         * server-src/amlabel.c: Use the tapetype blocksize.
8147         * server-src/chunker.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
8148           appropropriate instead of older constants.  Rewrite disk I/O buffer
8149           management.  Never pad output stream (e.g. to holding disk).  Use
8150           -1 for default stream buffer size.
8151         * server-src/driver.c: Use DISK_BLOCK_KB where appropriate instead of
8152           TAPE_BLOCK_SIZE.
8153         * server-src/driverio.c: Set chunker argv[0] to name based on which
8154           dumper it is working with.
8155         * server-src/dumper.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
8156           appropropriate instead of older constants.  Rewrite disk I/O buffer
8157           management.  Never pad output stream (e.g. to holding disk).  Use
8158           -1 for default stream buffer size.
8159         * server-src/holding.c: Change TAPE_BLOCK_BYTES to DISK_BLOCK_BYTES.
8160           Use fullread() instead of fill_buffer().
8161         * server-src/planner.c: Use tapetype blocksize instead of constant
8162           for tape length calculations.
8163         * server-src/taper.c: Support tapetype blocksize.  Only pad writes if
8164           blocksize is negative.  Reorganize shared memory buffers to put
8165           data on page boundaries.  Try reducing tapebuf count if allocation
8166           fails.
8167         * tape-src/output-file.c: Maintain record size information.  Use mask
8168           and flags from caller.
8169         * tape-src/output-null.c: Use new amtable_alloc() arg order.
8170         * tape-src/output-rait.c: Use new amtable_alloc() arg order.  Add
8171           private version of amtable_free() for standalone build.  Fix off
8172           by one and other table allocation problems.
8173         * tape-src/output-rait.h: Maintain file descriptor count in the
8174           structure.
8175         * tape-src/tapeio.c: Support tapetype blocksize.  Use new
8176           amtable_alloc() arg order.  Fix some error message text.  
8177         * tape-src/tapeio.h: New prototypes with blocksize arg.
8178         * tape-src/tapetype.c: Add "-b blocksize" arg.  Fix some end case
8179           aborts.
8180
8181 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
8182
8183         * recover-src/amrecover.c: Improve the "Unexpected server end of file"
8184           message.
8185
8186 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
8187
8188         * man/amanda.8.in: Document includefile.
8189         * man/amdump.8.in: Add note that local crontab documention should be
8190           checked for proper syntax.
8191         * man/amrecover.8.in: Document use of PAGER environment variable.
8192         * man/amrestore.8: Document that GNU tar must be used as some vendor
8193           tar programs cannot read GNU tar format.
8194         * docs/FAQ: Update location of online FAQ.
8195
8196 2001-07-25 John R. Jackson <jrj@purdue.edu>
8197
8198         * docs/TAPE.CHANGER: Changes from Ben Lewis (bhlewis@purdue.edu) to
8199           document the new (but optional) searchable features.
8200
8201 2001-07-19 John R. Jackson <jrj@purdue.edu>
8202
8203         * common-src/error.c: Fix function prototype error.
8204
8205 2001-07-19 John R. Jackson <jrj@purdue.edu>
8206
8207         * common-src/error.c: Add new function errordump() that acts like
8208           error() but calls abort() to (try to) drop core.
8209         * common-src/amanda.h: Prototype.
8210         * common-src/alloc.c: Call errordump() instead of error() for some
8211           memory allocation failures to aid traceback.
8212
8213 2001-07-19 John R. Jackson <jrj@purdue.edu>
8214
8215         * server-src/amadmin.c: Improve the error message when read_conffile()
8216           fails.
8217         * server-src/amcheck.c: Ditto.
8218         * server-src/amcleanupdisk.c: Ditto.
8219         * server-src/amflush.c: Ditto.
8220         * server-src/amlabel.c: Ditto.
8221         * server-src/amlogroll.c: Ditto.
8222         * server-src/amtape.c: Ditto.
8223         * server-src/amtrmidx.c: Ditto.
8224         * server-src/amtrmlog.c: Ditto.
8225         * server-src/driver.c: Ditto.
8226         * server-src/dumper.c: Ditto.
8227         * server-src/getconf.c: Ditto.
8228         * server-src/planner.c: Ditto.
8229         * server-src/reporter.c: Ditto.
8230         * server-src/taper.c: Ditto.
8231
8232 2001-07-19 John R. Jackson <jrj@purdue.edu>
8233
8234         * server-src/driverio.c: Make the name "ps" reports match the dumper
8235           name (e.g. "dumper3").
8236
8237 2001-07-18 John R. Jackson <jrj@purdue.edu>
8238
8239         * changer-src/chg-chio.pl.in: Try to unload the drive before moving
8240           a tape back to a slot.  Fixes a problem on Ecrix AutoPAK devices.
8241           Patch compliments of Sam Leffler <sam@errno.com>.
8242
8243 2001-07-18 John R. Jackson <jrj@purdue.edu>
8244
8245         * server-src/amverify.sh.in: Change to the Amanda temp directory
8246           instead of the config directory.  In addition to making amverify
8247           act like most other Amanda programs, this gets around an
8248           xfsrestore bug.
8249
8250 2001-07-18 John R. Jackson <jrj@purdue.edu>
8251
8252         * man/amanda.8.in: Describe the .amandahosts format better.  Clean up
8253           a couple of minor typos.
8254
8255 2001-07-13 John R. Jackson <jrj@purdue.edu>
8256
8257         * common-src/dgram.h: Improve UDP datagram size calculation.
8258         * server-src/amcheck.c: Break up large requests into pieces.
8259         * server-src/planner.c: Break up large requests into pieces.
8260
8261 2001-07-12 John R. Jackson <jrj@purdue.edu>
8262
8263         * tape-src/amdd.c: Use tapefd_close() in amdd if the file was
8264           opened with tape_open().  This does any necessary output driver
8265           cleanup (such as moving the current file position for "file:").
8266
8267 2001-07-12 John R. Jackson <jrj@purdue.edu>
8268
8269         * Makefile.am: Fix automake warning.
8270
8271 2001-07-11 John R. Jackson <jrj@purdue.edu>
8272
8273         * tape-src/tapetype.c: Use tapefd_write() instead of write().
8274
8275 2001-07-11 John R. Jackson <jrj@purdue.edu>
8276
8277         * common-src/file.c: Fix a memory leak.  Grab exponentially larger
8278           chunks of memory up to a point, then level out.
8279
8280 2001-07-11 John R. Jackson <jrj@purdue.edu>
8281
8282         * tape-src/tapetype.c: Only report a pass summary when stderr is not
8283           a tty.  Deal with some obscure end cases.
8284
8285 2001-07-10 John R. Jackson <jrj@purdue.edu>
8286
8287         * changer-src/scsi-aix.c: Convert Tape_Eject to Tape_Ioctl.
8288         * changer-src/scsi-solaris.c: Ditto.
8289
8290 2001-07-10 John R. Jackson <jrj@purdue.edu>
8291
8292         * server-src/amcheck.c: Move user name check before attempt to create
8293           temp files so more appropriate error message is generated.
8294
8295 2001-07-09 John R. Jackson <jrj@purdue.edu>
8296
8297         * common-src/dgram.c: Fix error end case unitialized variable.
8298
8299 2001-07-05 John R. Jackson <jrj@purdue.edu>
8300
8301         * docs/TAPE.CHANGERS: Minor docs/TAPE.CHANGERS update to clarify
8302           that -slot and -eject unload and put the current tape away.
8303
8304 2001-07-02 John R. Jackson <jrj@purdue.edu>
8305
8306         * changer-src/chg-manual.sh.in: Add yet another ONLINEREGEX, this one
8307           compliments of Nick (n_hibma@qubesoft.com) for some FreeBSD variant.
8308
8309 2001-06-29 John R. Jackson <jrj@purdue.edu>
8310
8311         * tape-src/tapeio.c: Move the device name parsing routines from the
8312           RAIT module to tapeio and make them generic.  This allows one
8313           module to open another, e.g. rait:{null:,z1,z2,z3}.  Maintain
8314           both the original open flags and mask and use them on the real open.
8315         * tape-src/amdd.c: Make sure this compiles "stand-alone".  To do so,
8316           use: gcc -Wall -DNO_AMANDA amdd.c output-rait.c output-tape.c.
8317           Abort as soon as one of the open calls fails instead of waiting
8318           for read/write to report a bad file descriptor.
8319           Pass a mask to the open function in case the output is created.
8320         * tape-src/ammt.c: Make sure this compiles "stand-alone".  To do so,
8321           use: gcc -Wall -DNO_AMANDA ammt.c output-rait.c output-tape.c.
8322         * tape-src/output-file.c: Maintain both the original open flags and
8323           mask and use them on the real open.
8324         * tape-src/output-null.c: Ditto.
8325         * tape-src/output-file.h: Change to non-prototype declaration of
8326           file_tape_open() to deal with the optional mask parameter.
8327         * tape-src/output-null.h: Ditto.
8328         * tape-src/output-tape.h: Ditto.
8329         * tape-src/tapeio.h: Ditto.  Add device name parsing prototypes.
8330         * tape-src/output-rait.c: Make sure this compiles "stand-alone".
8331           Maintain both the original open flags and mask and use them on the
8332           real open.
8333         * tape-src/output-rait.h: Make sure this compiles "stand-alone".
8334         * tape-src/output-tape.c: Make this part of the "stand-alone" compile
8335           of ammt and amdd since it knows all the proper ioctl operations.
8336           Maintain both the original open flags and mask and use them on the
8337           real open.
8338
8339 2001-06-27 John R. Jackson <jrj@purdue.edu>
8340
8341         * changer-src/chg-manual.sh.in: Add "bs=32k" to the dd command so
8342           some kernels would not complain about the tape block being larger
8343           than the buffer.
8344         * changer-src/chg-mtx.sh.in: Ditto.
8345
8346 2001-06-21 John R. Jackson <jrj@purdue.edu>
8347
8348         * server-src/planner.c: If the compression rate is very small (such
8349           as zero after some types of errors) and FORCE_FULL is set, a path
8350           is taken that (among other bad things) generates a schedule that
8351           driver cannot read (syntax errors).
8352         * server-src/conffile.c: Do not allow negative comprate values.
8353
8354 2001-06-19 John R. Jackson <jrj@purdue.edu>
8355
8356         * server-src/holding.c: Use fullread() instead of read() to read the
8357           holding disk file.
8358
8359 2001-06-19 John R. Jackson <jrj@purdue.edu>
8360
8361         * server-src/amtape.c: Document "slot advance" in the help output.
8362
8363 2001-06-19 John R. Jackson <jrj@purdue.edu>
8364
8365         * server-src/amindexd.c: Minor gethostbyaddr() argument change to be
8366           consistent with other Amanda usage.
8367
8368 2001-06-19 John R. Jackson <jrj@purdue.edu>
8369
8370         * server-src/amverify.sh.in: Better cross platform tar detection.
8371
8372 2001-06-19 John R. Jackson <jrj@purdue.edu>
8373
8374         * server-src/amverify.sh.in: More of the vrestore vs. 'b' flag change.
8375
8376 2001-06-19 John R. Jackson <jrj@purdue.edu>
8377
8378         * recover-src/amrecover.c: Add more debugging to guess_disk()
8379           function to better track how the disk is determined from the
8380           current working directory.  Report current working directory in
8381           error message.  Change "Trying" to "Trying disk" to distinguish
8382           this from host attempts.
8383         * recover-src/set_commands.c: Remove redundant amfree() call.  Remove
8384           redundant "OISD /" exchange.  Change "Trying" to "Trying host" to
8385           distinguish this from disk attempts.
8386
8387 2001-06-19 Thomas Hepper <th@ant.han.de>
8388         * changer-src/chg-scsi.c: Made clean_slot a global var. Removed
8389         the label db update stuff from the COM_SLOT part (moved to unload
8390         in scsi-changer-driver.c)
8391         * changer-src/scsi-changer-driver.c: Do an unload if the tape is
8392         loaded in the Inventory function. Added an marker to avoid recursion
8393         in Inventroy function. Added label db check in unload function and
8394         call Inventroy if it indicates an out of sync db
8395         
8396 2001-06-18 John R. Jackson <jrj@purdue.edu>
8397
8398         * recover-src/extract_list.c: Do not pass a 'b' (blocking) factor
8399           flag to vrestore.  Some versions do not like it.
8400
8401 2001-06-18 John R. Jackson <jrj@purdue.edu>
8402
8403         * common-src/dgram.c: Use a sin_addr arg to inet_ntoa() like all the
8404           other Amanda code.
8405         * common-src/stream.c: Ditto.
8406
8407 2001-06-18 John R. Jackson <jrj@purdue.edu>
8408
8409         * changer-src/chg-manual.sh.in: Add yet another online regex.  Found
8410           by George Herson <gherson@snet.net>.
8411
8412 2001-06-12 Thomas Hepper <th@ant.han.de>
8413         * changer-src/scsi-changer-driver.c (Inventory): Call Tape_Ready and let this function
8414         decide how to get the tape drive status.
8415         * changer-src/scsi-changer-driver.c (Tape_Ready): Now this function looks how to get
8416         the tape drive status.
8417         * changer-src/scsi-linux.c: changed some dbprintf to DebugPrint
8418         
8419 2001-06-10 Thomas Hepper <th@ant.han.de>
8420         * changer-src/chg-scsi.c: If get_current_slot gets an error from the fscanf function
8421         return also an error (-1) to the calling fucntion. (Fixes an error if the slot file
8422         is created with an touch)
8423         * changer-src/scsi-changer-driver.c: Fixed some NULL pointer errors in PrintConf
8424         Fixed an error in the unload function if the destination slot for the unload is not empty.
8425         (cut and paste error !!)
8426         
8427 2001-06-07 Thomas Hepper <th@ant.han.de>
8428         * changer-src/scsi-changer-driver.c: Change the type of TapeStatus from void to int.
8429         In PrintConf changed the loop variable for scan of pDev from 3 to CHG_MAXDEV.
8430         In PrintConf check if pDev[count].inquiry is a NULL pointer, and if yes skip.
8431         * changer-src/scsi-irix.c: Changed a lot, now it should work.
8432         * client-src/sendbackup-dump.c: Removed a { in the vxfsdump part. 
8433         * tape-src/output-tape.c: Fixed the tape status checks, the structure elelemt
8434         is called buf.mt_dposn not buf.mt.dposn.
8435         
8436 2001-06-04 Thomas Hepper <th@ant.han.de>
8437         * changer-src/scsi-changer-driver.c: Renamed Tape_Eject to Tape_Ioctl
8438         incl. change of passwd parameter.
8439
8440 2001-06-04 Thomas Hepper <th@ant.han.de>
8441         * changer-src/chg-scsi.c: include dmalloc.h for debugging of mem problems
8442         * changer-src/scsi-cam.c: Replaced Tape_Eject with a more generic 
8443         function to send different ioctls (Tape_Ioctl)
8444         * changer-src/scsi-bsd.c: see above
8445         * changer-src/scsi-hpux_new.c: see above
8446         * changer-src/scsi-irix.c: If the device can be opened in SCSI_OpenDevice
8447         set pDev[ip].avail to 1.
8448         * changer-src/scsi-linux.c: include dmalloc.h for debugging of mem problems.
8449         Fixed an invalid free in SCSI_OpenDevice. Replaced Tape_Eject with Tape_Ioctl.  
8450         * changer-src/scsi-changer-driver.c: include dmalloc.h for debugging of mem problems
8451         Eject the tape in the inventory function before the scan to get all
8452         barcode labels. Check in GenericEject if the device is able to receive
8453         SCSI commands, if not use the ioctl interface to eject the tape.
8454         Same for the GenericRewind function.
8455         Added the LogSense in the GenericEject function.
8456         * changer-src/scsi-defs.h: Added define for Tape_Ioctl commands, IOCTL_EJECT.
8457         
8458 2001-06-01 John R. Jackson <jrj@purdue.edu>
8459
8460         * server-src/amindexd.c (build_disk_table): Make sure a holding disk
8461           image is used rather than a copy also on tape, if both exist.
8462
8463 2001-06-01 Thomas Hepper <th@ant.han.de>
8464         * changer-src/scsi-changer-driver.c: Added an range check in the load
8465         function and abort if the requested slot is out of range.
8466         Fixed in incorrect pointer in the eject function if the ioctl
8467         interface is used
8468
8469 2001-05-29 John R. Jackson <jrj@purdue.edu>
8470
8471         * server-src/reporter.c: Fix PostScript output to only show what went
8472           on the tape, not what the total amount dumped.  Compliments of
8473           Joshua Baker-LePain <jlb17@duke.edu>.
8474
8475 2001-05-28 Thomas Hepper <th@ant.han.de>
8476         * changer-scsi/chg-scsi.c: Made the array for pDev configurable, #define CHG_MAXDEV
8477         * changer-scsi/scsi-defs.h: Added the define for CHG_MAXDEV
8478         * changer-src/scsi-cam.c: Set the flag pDev[x].avail to 1 if the device can be openend.
8479         Added debug message if the open fails. Implemented the function Tape_Status (not tested)
8480         * changer-src/scsi-changer-driver.c: Added the function DLT448ElementStatus, was lost
8481         during merge from 2.4.2. The difference to GenericElementStatus is that the DecodeModeSense
8482         needs an offset of 12, not 0 as in GenericElementStatus.
8483         Added an unload/GenericResetStatus in the Inventory function if an bar code reader is 
8484         available. This is to get the label from the loaded tape.
8485         The function TapeStatus sets now the status regardless of the status of the tape.
8486         If the device is capable for sending SCSI commands use the SCSI interface to get
8487         the status of the tape.
8488         * docs/TAPE.CHANGERS: Added some notes about the debuglevel keyword and a short
8489         description on how to use the sgen interface on solaris 2.8
8490         
8491 2001-05-18 John R. Jackson <jrj@purdue.edu>
8492
8493         * client-src/patch-system.sh.in: Missed a reference to kamanda in the
8494           last patch.  Compliments of Tom Schutter <t.schutter@att.net>.
8495
8496 2001-05-16 John R. Jackson <jrj@purdue.edu>
8497
8498         * client-src/patch-system.sh.in: Go ahead and update /etc/services
8499           on a client even if the services themselves are not turned on to
8500           inetd.  Compliments of Tom Schutter <t.schutter@att.net>.  Add
8501           the TCP port for amandad for future use.
8502
8503 2001-05-14 John R. Jackson <jrj@purdue.edu>
8504
8505         * client-src/amandad.c: Fix hang when the incoming packet size is
8506           larger than the pipe buffer.  Also, report back when too much
8507           data for a packet is returned by the service (this is not properly
8508           diagnosed back to, e.g., amcheck, but that's for another day).
8509         * common-src/bsd-security.c: Fix minor comment error.
8510
8511 2001-05-11 John R. Jackson <jrj@purdue.edu>
8512
8513         * common-src/util.c (bind_portrange): Log a debug message stating
8514           explicitly that all ports in the requested range were busy, or
8515           that a specific port failed bind() for an unexpected reason.
8516
8517 2001-05-07 John R. Jackson <jrj@purdue.edu>
8518
8519         * client-src/sendbackup-dump.c: Do not use full path to sed.  Found by
8520           Roland E. Lipovits (rel@lipo.at0.net).
8521
8522 2001-05-07 Thomas Hepper <th@ant.han.de>
8523         * changer-src/chg-scsi.c : Fixed NULL pointer in debug print of the config.
8524         * changer-src/scsi-canger-driver.c : Try to get and set the status of the tape drive in
8525         GenericElementStatus if there is an error condition. Move from tape to tape to get the
8526         tape loaded if it is only ejected.
8527         * changer-src/scsi-defs.h : New define for the Tape_Status fucntion, TAPE_NOT_LOADED
8528         * changer-src/scsi-linux.c : Added return type for tape not loaded
8529         * changer-src/scsi-solaris.c : In SCSI_ExecuteCommand force the direction to write if the
8530         databuffersize is 0, if the direction is input the ioctl returns with errno 22, invalid argument.
8531         The function Tape_Status will now return either tape loaded or not.
8532         * example/chg-scsi-solaris.conf.in : Added pointer to doc/TAPE.CHANGERS on how to configure
8533         the sgen driver.
8534         * doc/TAPE.CHANGERS : Updated the description of the chg-scsi.conf options, short description on
8535         how to confgure the sgen driver on solaris 2.8
8536         
8537 2001-05-04 John R. Jackson <jrj@purdue.edu>
8538
8539         * config/depcomp: Fix problem with argument*  processing and update to
8540           latest version.
8541
8542 2001-05-01 Thomas Hepper <th@ant.han.de>
8543         * changer-src/chg-scsi.c : Added patch for the slot advance command from John R. Jackson
8544         * changer-src/scsi-changer-driver.c : Renamed EXB120BarCode to EXB_BarCode. The currently
8545         known Exabyte libs handles the reader in the same way.
8546         
8547 2001-04-28 Thomas Hepper <th@ant.han.de>
8548         * changer-scsi/chg-scsi.c : Added missing break in MapBarCode
8549         Changed the way an tape label is read, use tape_open to open the
8550         device, not own open.
8551         * changer-src/scsi-changer-driver.c : Changed the way an tape label 
8552         is read, use tape_open to open the device, not own open.
8553         * changer-src/scsi-linux.c : Fixed error on reopen of non SCSI devices
8554         (/dev/nst0 for example)
8555         
8556 2001-04-26 Thomas Hepper <th@ant.han.de>
8557
8558         * changer-src/scsi-aix.c : Added more different ret values depending on the SCSI
8559         error condition. 
8560         * changer-src/scsi-changer-driver.c: Split GenericElementStatus in GetElementStatus which
8561         reads the element Status, and GenericElementStatus which handles the errors.
8562         Removed DLT448ElementStatus. Rework the handling of some SCSI error conditions...
8563         * changer-src/scsi-defs.h: Added more defs for the debug SECTION types.
8564         * changer-src/scsi-linux.c: Fixed an bug in the non SCSI device handling in SCSI_OpenDevice
8565         * changer-src/sense.c: Added EXB-210 defs, added defs for READ_ELEMENT_STATUS error conditions.
8566         
8567 2001-04-25 John R. Jackson <jrj@purdue.edu>
8568
8569         * changer-src/chg-rth.pl.in: Add exec_prefix back since it is usually
8570           used to define sbindir.  Sigh.  Include X=X assignments to get rid
8571           of the Perl warnings.
8572         * server-src/amoverview.pl.in: Ditto.
8573
8574 2001-04-24 John R. Jackson <jrj@purdue.edu>
8575
8576         * changer-src/chg-chio.pl.in: Remove unused exec_prefix to get rid of
8577           warning message.  Patch from Nick Hibma <n_hibma@qubesoft.com>.
8578
8579 2001-04-23 John R. Jackson <jrj@purdue.edu>
8580
8581         * client-src/selfcheck.c: Allow Samba shares with no password.
8582         * client-src/sendbackup-gnutar.c: Ditto.
8583         * client-src/sendsize.c: Ditto.
8584
8585 2001-04-15 Thomas Hepper <th@ant.han.de>
8586         * Makefile.am: Added contrib/gsc files to EXTRA_DIST
8587         
8588 2001-04-15 Thomas Hepper <th@ant.han.de>
8589         * changer-src/scsi-aix.c: Rework of the SCSI interface, support
8590         to talk to an device handled by the gsc driver (not tested yet)
8591         * changer-src/scsi-bsd.c (SCSI_ExecuteCommand): Fix error in
8592         device handling, Changed the return codes in case of an error
8593         * changer-src/scsi-cam.c (SCSI_ExecuteCommand): Fix error in 
8594         device handling, Changed the return codes in case of an error
8595         * changer-src/scsi-changer-driver.c: Changed the way 
8596         SCSI_ExecuteCommand passes error conditions back, error handling
8597         should now be done by the calling function, SCSI_Run for example.
8598         * changer-src/scsi-changer-driver.c (CheckMove): If the 
8599         DeviceCapabilitiesPage is not set do not return an error, print
8600         an warning to the debug file.
8601         * changer-src/scsi-defs.h: New define for AIX_USE_GSC
8602         New defines for the return codes of SCSI_ExecuteCommand
8603         * changer-src/scsi-hpux_new.c: Fix error in device handling.
8604         Changed the return codes in case of an error
8605         * changer-src/scsi-irix.c: Fix error in device handling.
8606         Changed the return codes in case of an error
8607         * changer-src/scsi-solaris.c: Fix error in device handling.
8608         Changed the return codes in case of an error
8609         
8610 2001-04-15 Thomas Hepper <th@ant.han.de>
8611         *contrib/gsc: Generic SCSI interface for AIX, used by chg-scsi
8612
8613 2001-04-13 John R. Jackson <jrj@purdue.edu>
8614
8615         * example/amanda.conf.in: Fix multiple holding disks comment.
8616
8617 2001-04-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8618
8619         * client-src/getfsent.h (search_fstab): New prototype.
8620         * client-src/getfsent.c (search_fstab): New arg check_dev, skip
8621         entry if check_dev==1 and device stats failed.
8622         * client-src/getfsent.c (open_fstab for linux): Open MOUNTED.
8623         * client-src/getfsent.c (close_fstab for linux): close MOUNTED.
8624         * client-src/getfsent.c (get_fstab_nextentry for linux): parse MOUNTED.
8625         * client-src/getfsent.c (amname_to_devname, amname_to_dirname, 
8626         amname_to_fstype): Call search_fstab sequentialy with 1 and 0 
8627         for check_dev.
8628
8629 2001-04-10 John R. Jackson <jrj@purdue.edu>
8630
8631         * docs/INSTALL: Update location to GNUPLOT per Lars Hecking
8632           <lhecking@nmrc.ie>.
8633
8634 2001-04-09 Thomas Hepper <th@ant.han.de>
8635         * changer-src/scsi-changer-driver.c: More rework on the debug output.
8636         changed definition SENSE_NO_TAPE to SENSE_TAPE_NOT_ONLINE
8637         In function GenericRewind do an check before the rewind to see
8638         if the tape is loaded.
8639         * changer-src/scsi-defs.h: New #define for the debug, SECTION_TAPE
8640         * changer-src/sense.c: New definition for SENSE_RETRY, ASC=4, ASCQ=1
8641         
8642 2001-04-08  Alexandre Oliva  <aoliva@redhat.com>
8643
8644         * client-src/getfsent.c (search_fstab): Don't skip entry just
8645         because device stats failed.
8646
8647 2001-04-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8648
8649         * config/config.guess: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
8650         * config/config.sub: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
8651         * config/mkinstalldirs: Upgrade from automake CVS.
8652
8653 2001-04-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8654
8655         * config/depcomp: new file for automake.
8656
8657 2001-04-03 John R. Jackson <jrj@purdue.edu>
8658
8659         * Makefile.am: Remove *.test.c from the distribution.
8660
8661 2001-04-02 John R. Jackson <jrj@purdue.edu>
8662
8663         * NEWS: Update some of the 2.4.2 items.
8664
8665 2001-03-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8666
8667         * client-src/getfsent.c (search_fstab): If the device doesn't 
8668         exist, it will take the entry from /etc/mtab.
8669
8670 2001-03-26 John R. Jackson <jrj@purdue.edu>
8671
8672         * server-src/amtape.c: Do not rewind for slot "advance".  Do not report
8673           device name (which is bogus) for slot "advance".
8674
8675 2001-03-23 John R. Jackson <jrj@purdue.edu>
8676
8677         * example/amanda.conf.in: Add warning that the sample amanda.conf
8678           will not work as is and must be edited to match the installation.
8679
8680 2001-03-21 John R. Jackson <jrj@purdue.edu>
8681
8682         * recover-src/extract_list.c (extract_files_child): Fix problem that
8683           caused xfsrestore arg list to not be NULL terminated.
8684
8685 2001-03-19 John R. Jackson <jrj@purdue.edu>
8686
8687         * configure.in: Add --with-debug-days (default is 4) and remove
8688           --with-pid-debug-files.
8689         * common-src/Makefile.am: Clean up test program dependencies.
8690         * common-src/debug.c: Create timestamped debug file names and remove
8691           files older (based on file name) than --with-debug-days.  Rename old
8692           style names to new style (based on modification time) the first time
8693           they are seen.
8694         * common-src/file.c: Use construct_datestamp() instead of private code.
8695         * common-src/genversion.c: Display AMANDA_DEBUG_DAYS and remove
8696           DEBUG_FILE_WITH_PID.
8697         * common-src/util.c: Move construct_datestamp to here and add new
8698           function construct_timestamp.  Change time used to build string to
8699           be an optional parameter instead of always getting it in the routine.
8700         * common-src/util.h: Add prototypes.
8701         * server-src/amcleanupdisk.c: Change construct_datestamp call to pass
8702           indication that it should get the current time.
8703         * server-src/amflush.c: Ditto.
8704         * server-src/chunker.c: Ditto.
8705         * server-src/driver.c: Ditto.
8706         * server-src/dumper.c: Ditto.
8707         * server-src/planner.c: Ditto.
8708         * server-src/server_util.c: Remove construct_datestamp (now in util.c).
8709         * server-src/server_util.h: Remove prototype.
8710
8711 2001-03-15 John R. Jackson <jrj@purdue.edu>
8712
8713         * server-src/planner.c (analyze_estimate): Do not do an incremental
8714           if FORCE_NO_BUMP is set and the last dump was a level 0.
8715
8716 2001-03-14 John R. Jackson <jrj@purdue.edu>
8717
8718         * server-src/amcheck.c: Change message from NOTE to WARNING when
8719           the hold file exists.
8720         * man/amcheck.8.in: Ditto.
8721
8722 2001-03-14 John R. Jackson <jrj@purdue.edu>
8723
8724         * client-src/selfcheck.c: Send smbclient via pipe instead of command
8725           line arg.  Various minor cleanups.  Use pipespawn instead of system()
8726           to clean up quoting problems and be consistent with sendsize and
8727           sendbackup.
8728         * client-src/sendbackup-dump.c: Send smbclient via pipe instead of
8729           line arg.  Various minor cleanups.
8730         * client-src/sendbackup-gnutar.c: Send smbclient via pipe instead of
8731           line arg.  Various minor cleanups.  Clean up listed incremental file
8732           handling.
8733         * client-src/sendbackup.c: Various minor cleanups.
8734         * client-src/sendsize.c: Send smbclient via pipe instead of command
8735           line arg.  Various minor cleanups.  Clean up listed incremental file
8736           handling.
8737         * docs/SAMBA: Update and cleanup.
8738         * common-src/pipespawn.c: Import from 2.4.2 branch.
8739         * common-src/pipespawn.h: Import from 2.4.2 branch.
8740         * common-src/Makefile.am: Add pipespawn.[ch] references.
8741
8742 2001-03-13 John R. Jackson <jrj@purdue.edu>
8743
8744         * recover-src/extract_list.c (extract_files_child): Fix xfsrestore
8745           argument list processing.
8746
8747 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8748
8749         * server-src/dumper.c (read_datafd): set errstr and return on
8750         databuf_write error.
8751
8752 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8753
8754         * server-src/dumper.c (read_indexfd): Ignore error while writing
8755         to the index file. Log an L_INFO message.
8756
8757 2001-03-09 John R. Jackson <jrj@purdue.edu>
8758
8759         * server-src/taper.c: Initialize tape_fd to -1 and test in a couple
8760           more places.  Run normal protocol after a tape startup error (e.g.
8761           "cannot overwrite") instead of just exiting to keep driver from
8762           reporting a broken pipe.
8763
8764 2001-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8765         Reported by Eric Schnoebelen <eric@cirr.com>
8766
8767         * server-src/changer.c (changer_command): Fix fd leak.
8768
8769 2001-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8770
8771         * server-src/server_util.c (cmdstr, getcmd, putresult): New.
8772         * server-src/server_util.h (cmdstr, getcmd, putresult): Prototype.
8773         * server-src/server_util.h (cmd_t): New.
8774         * server-src/driverio.c (cmdstr): Remove.
8775         * server-src/driverio.c: Use new cmdstr and cmd_t.
8776         * server-src/driverio.h: (tok_t): Remove.
8777         * server-src/amflush.c: Use new cmd_t.
8778         * server-src/driver.c: Use new cmd_t.
8779         * server-src/chunker.c (cmd_t, getcmd, putresult): Remove.
8780         * server-src/chunker.c: Use new cmd_t, getcmd and putresult.
8781         * server-src/dumper.c (cmd_t, getcmd, putresult): Remove.
8782         * server-src/dumper.c: Use new cmd_t, getcmd and putresult.
8783         * server-src/taper.c (cmd_t, getcmd, putresult): Remove.
8784         * server-src/taper.c: Use new cmd_t, getcmd and putresult.
8785
8786 2001-03-05 John R. Jackson <jrj@purdue.edu>
8787
8788         * common-src/util.c: The fullread() and fullwrite() functions should
8789           call read() and write(), not tapefd_read() and tapefd_write().
8790
8791 2001-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8792
8793         * server-src/planner.c (setup_estimate): Don't re-ask for level 0
8794         if last_level is 0 and FORCE_NO_BUMP is set.
8795
8796 2001-02-27 John R. Jackson <jrj@purdue.edu>
8797
8798         * common-src/stream.h: Move DATABUF_SIZE to stream.h.
8799         * client-src/sendbackup.c: Do not ask for a big receive buffer.
8800         * server-src/dumper.c: Ask for a bigger send buffer.  Minor typos.
8801         * server-src/taper.c: Ask for a bigger receive buffer.
8802         * recover-src/amrecover.c: Use stream_client instead of specific
8803           (and incorrect) bind() code.
8804         * recover-src/extract_list.c: Ditto.
8805
8806 2001-02-27 John R. Jackson <jrj@purdue.edu>
8807
8808         * common-src/dgram.c: Add lots more error logging to help track down
8809           problems.
8810
8811 2001-02-27 John R. Jackson <jrj@purdue.edu>
8812
8813         * common-src/stream.c: Add lots more error logging to help track down
8814           problems.
8815
8816 2001-02-27 John R. Jackson <jrj@purdue.edu>
8817
8818         * server-src/amtape.c: Rewind after loading a slot either by slot
8819           or by label.
8820
8821 2001-02-27 John R. Jackson <jrj@purdue.edu>
8822
8823         * configure.in: Add some commentary about why pushdef/popdef are
8824           needed around AC_CHECK_TYPE.
8825
8826 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8827         Patch by Alex Pilosov <alex@pilosoft.com>
8828
8829         * changer-src/scsi-cam.c: Clean up some SCSI CAM code,
8830         and permit use of both bus:target:lun(btl) and a full
8831         device name (/dev/ch0) as changerdev.
8832         
8833 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8834         Patch by Joe Rhett <jrhett@isite.net>
8835         and Jason Hollinden <jhollind@sammg.com>
8836
8837         * changer-src/chg-zd-mtx.sh.in:  Added barcode reader support,
8838         >9 tape slot support, variable for 'offline' or 'ONLINE'
8839         return value of tape device, and multi-config support.  Moved
8840         all user settable variables to 'changerfile'.conf in the
8841         amanda config directory.  Added commented out example of .conf
8842         file into script.
8843
8844 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8845
8846         * server-src/amindexd.c (uncompress_file): remove uncompressed
8847         index file if the command failed.
8848
8849 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8850
8851         * restore-src/amrestore.c (main): init r to 0.
8852
8853 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8854
8855         * changer-src/scsi-defs.h (PrintConf): Add prototype.
8856         * changer-src/scsi-changer-driver.c (SCSI_Run): Add prototype.
8857         * changer-src/scsi-linux.c (ScanBus): remove btl variable, return 0.
8858
8859 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8860
8861         * man/Makefile.am (EXTRA_DIST): add amdd.8 and ammt.8.
8862
8863 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8864
8865         * server-src/planner.c (setup_estimate): ask for level 0 for 
8866         a new disk if force-bump is set, 
8867         log force-bump and force-nobump command.
8868
8869 2001-02-17 Thomas Hepper <th@ant.han.de>
8870
8871         * changer-scsi/chg-scsi.c: New Option -genconf to create an example config file
8872          based on the information found on the system, works for Linux and BSD with cam
8873          support. New config option debuglevel
8874         * changer-src/scsi-changer-deriver.c: Reworked the debug output, it is now possible
8875          to control the amount of information by the config option debuglevel in the config
8876          file (docs follow), not complete yet.
8877         * changer-src/scsi-changer-driver.c: New function PrintConf to create an example
8878           config file.
8879           New function DebugPrint to print debug information based on the variable debuglevel.
8880           Replaced a lot of dbprintf with new Function DebugPrint
8881         * changer-src/scsi-aix.c: changed parameter for ScanBus
8882         * changer-src/scsi-irix.c: changed parameter for ScanBus
8883         * changer-src/scsi-solaris.c: changed parameter for ScanBus
8884         * changer-src/scsi-bsd.c: changed parameter for ScanBus
8885         * changer-src/scsi-cam.c: Implemented function ScanBus
8886         * changer-src/scsi-linux.c: Implemented function ScanBus
8887         
8888 2001-02-09 John R. Jackson <jrj@purdue.edu>
8889
8890         * server-src/diskfile.c: Fix core dump in test program.
8891
8892 2001-02-09 John R. Jackson <jrj@purdue.edu>
8893
8894         * tape-src/output-file.c: Use a "data" subdirectory of the main
8895           file driver device directory to hold the tape "files".  This
8896           allows the status file to be moved to the main directory.
8897         * man/amanda.8.in: Document these changes.
8898
8899 2001-02-08 Thomas Hepper <th@ant.han.de>
8900
8901         * changer-src/scsi-aix.c: Added dummy ScanBus function
8902         * changer-src/scsi-bsd.c: Added dummy ScanBus function
8903         * changer-src/scsi-cam.c: Added dummy ScanBus function
8904         * changer-src/scsi-hpux_new.c: Added dummy ScanBus function
8905         * changer-src/scsi-irix.c: Added dummy ScanBus function
8906         * changer-src/scsi-defs.h: Added prototype for ScanBus function
8907
8908 2001-02-04 John R. Jackson <jrj@purdue.edu>
8909
8910         * man/amanda.8.in: Fix mailto to space separated, not comma.
8911
8912 2001-02-03 John R. Jackson <jrj@purdue.edu>
8913
8914         * .cvsignore: Add entries to keep CVS quiet.
8915         * */.cvsignore: Ditto.
8916
8917 2001-02-03 John R. Jackson <jrj@purdue.edu>
8918
8919         * client-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
8920         * common-src/Makefile.am: Add more sources as needed to the test
8921           programs so they would compile.
8922         * server-src/Makefile.am: Create TEST_PROGS make variable ala the
8923           other Makefile.am files.
8924         * tape-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
8925
8926 2001-02-03 John R. Jackson <jrj@purdue.edu>
8927
8928         * server-src/diskfile.c: Fix test program compilation error and bug
8929           when just a config name was given on the command line.
8930
8931 2001-02-02 John R. Jackson <jrj@purdue.edu>
8932
8933         * server-src/reporter.c: Fix problem with enum being unsigned on
8934           some systems.
8935
8936 2001-01-29 John R. Jackson <jrj@purdue.edu>
8937
8938         * tape-src/tapeio.c (tape_fsf): Go back to using snprintf as this
8939           is now "the way".
8940
8941 2001-01-29 John R. Jackson <jrj@purdue.edu>
8942
8943         * tape-src/output-tape.c (tape_tapefd_status): Convert flag values
8944           to booleans (compliments of Marc W. Mengel <mengel@fnal.gov>).
8945         * tape-src/tapeio.c (tape_fsf): Use ap_snprintf instead of snprintf
8946           (also compliments of Marc).
8947
8948 2001-01-26 John R. Jackson <jrj@purdue.edu>
8949
8950         * changer-src/Makefile.am: Double up the references to libamanda to
8951           handle systems that put regex in strange places.
8952         * client-src/Makefile.am: Ditto.
8953         * recover-src/Makefile.am: Ditto.
8954         * restore-src/Makefile.am: Ditto.
8955         * server-src/Makefile.am: Ditto.
8956         * tape-src/Makefile.am: Ditto.
8957
8958 2001-01-23 John R. Jackson <jrj@purdue.edu>
8959
8960         * configure.in: Add tapeio switch from Marc Mengel <mengel@fnal.gov>,
8961           enhance and add "null" and "file" output drivers.  Change all
8962           tape changers (except chg-scsi) to use amdd and ammt.  Change all
8963           tape changers (except chg-scsi) to log and use a consistent
8964           error reporting scheme.  Fix various bugs along the way.  Add new
8965           chg-multi config option, posteject, which is an optional script
8966           to call after each "tape" is ejected (e.g. to use to start a
8967           CDROM writer).  Remove special code for tapedev of /dev/null
8968           (now handled by the "null" output driver).  Changed the taper
8969           protocol to pass the host/disk/level so the write can send that
8970           along to the output driver.  Fairly major rework of amrestore
8971           to clean up tape/non-tape and other oddities.
8972         * changer-src/chg-chio.pl.in: Ditto.
8973         * changer-src/chg-chs.sh.in: Ditto.
8974         * changer-src/chg-manual.sh.in: Ditto.
8975         * changer-src/chg-mtx.sh.in: Ditto.
8976         * changer-src/chg-multi.sh.in: Ditto.
8977         * changer-src/chg-rth.pl.in: Ditto.
8978         * changer-src/chg-zd-mtx.sh.in: Ditto.
8979         * client-src/sendbackup.c: Ditto.
8980         * common-src/alloc.c: Ditto.
8981         * common-src/amanda.h: Ditto.
8982         * docs/INTERNALS: Ditto.
8983         * man/Makefile.am: Ditto.
8984         * man/amanda.8.in: Ditto.
8985         * man/amdd.8: Ditto.
8986         * man/ammt.8: Ditto.
8987         * restore-src/amrestore.c: Ditto.
8988         * server-src/amcheck.c: Ditto.
8989         * server-src/amlabel.c: Ditto.
8990         * server-src/amtape.c: Ditto.
8991         * server-src/amverify.sh.in: Ditto.
8992         * server-src/conffile.c: Ditto.
8993         * server-src/conffile.h: Ditto.
8994         * server-src/taper.c: Ditto.
8995         * tape-src/Makefile.am: Ditto.
8996         * tape-src/amdd.c: Ditto.
8997         * tape-src/ammt.c: Ditto.
8998         * tape-src/output-file.c: Ditto.
8999         * tape-src/output-file.h: Ditto.
9000         * tape-src/output-null.c: Ditto.
9001         * tape-src/output-null.h: Ditto.
9002         * tape-src/output-rait.c: Ditto.
9003         * tape-src/output-rait.h: Ditto.
9004         * tape-src/output-tape.c: Ditto.
9005         * tape-src/output-tape.h: Ditto.
9006         * tape-src/tapeio.c: Ditto.
9007         * tape-src/tapeio.h: Ditto.
9008         * tape-src/tests/amtapeio.test.000: Ditto.
9009         * tape-src/tests/amtapeio.test.001: Ditto.
9010         * tape-src/tests/amtapeio.test.002: Ditto.
9011         * tape-src/tests/amtapeio.test.003: Ditto.
9012         * tape-src/tests/amtapeio.test.004: Ditto.
9013         * tape-src/tests/amtapeio.test.005: Ditto.
9014         * tape-src/tests/amtapeio.test.006: Ditto.
9015         * tape-src/tests/amtapeio.test.007: Ditto.
9016         * tape-src/tests/amtapeio.test.008: Ditto.
9017         * tape-src/tests/amtapeio.test.009: Ditto.
9018         * tape-src/tests/amtapeio.test.010: Ditto.
9019         * tape-src/tests/amtapeio.test.011: Ditto.
9020         * tape-src/tests/amtapeio.test.012: Ditto.
9021         * tape-src/tests/amtapeio.test.013: Ditto.
9022         * tape-src/tests/amtapeio.test.014: Ditto.
9023         * tape-src/tests/amtapeio.test.015: Ditto.
9024         * tape-src/tests/amtapeio.test.016: Ditto.
9025         * tape-src/tests/amtapeio.test.017: Ditto.
9026         * tape-src/tests/amtapeio.test.018: Ditto.
9027         * tape-src/tests/cleartape: Ditto.
9028         * tape-src/tests/newtest: Ditto.
9029         * tape-src/tests/rerun: Ditto.
9030         * tape-src/tests/runtest: Ditto.
9031         * tape-src/tests/testdist: Ditto.
9032         * tape-src/tests/torture: Ditto.
9033
9034 2001-01-24 John R. Jackson <jrj@purdue.edu>
9035
9036         * client-src/amandad.c: Improve packet logging.
9037
9038 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9039
9040         * server-src/driver.c (start_some_dumps): typo.
9041
9042 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9043
9044         * server-src/driverio.h (sched_t): new field no_space.
9045         * server-src/driver.c (start_some_dumps): don't start a disk if
9046           no_space is set.
9047         * server-src/driver.c (continue_dumps): set no_space if it's the
9048           only active dumpers, case c.
9049         * server-src/driver.c (read_schedule): set no_space to 0.
9050
9051 2001-01-23 John R. Jackson <jrj@purdue.edu>
9052
9053         * configure.in: Test for setmntent.
9054         * client-src/getfsent.c: Add some support for Redhat 7 /etc/fstab
9055           changes that indirectly reference the device for a file system.
9056
9057 2001-01-22  Marc W. Mengel <mengel@fnal.gov>
9058
9059         * recover-src/extract_list.c: Added -U to tar recover options
9060         to reduce errors recovering shared libs and/or binaries on
9061         active filesystems.
9062
9063 2001-01-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9064
9065         * docs/INSTALL: Notes about tar-1.13.19
9066
9067 2001-01-17  Thomas Hepper <th@ant.han.de>
9068
9069         * changer-src/chg-scsi.c: Moved definitions for config_t and
9070         changer_t into scsi-defs.h
9071         * changer-src/chg-scsi.c: New config option havebarcode
9072         * changer-src/scsi-changer-driver.c: Changed GenericBarCode do handle
9073         the option havebarcode. Replaced NoBarCode with GenericBarCode.
9074         Fixed compile warnings from -Wshadow
9075         * changer-src/scsi-linux.c: New function ScanBus to scan the SCSI Bus.
9076         not used yet.
9077         * changer-src/scsi-solaris.c: Changed the return value to
9078         Command.uscsi_status in SCSI_ExecuteCommand if the return from the
9079         ioctl is not 0;
9080         
9081 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9082
9083         * man/amanda.8.in: New section "HOST & DISK EXPRESSION" and 
9084           "DATESTAMP EXPRESSION".
9085         * man/amadmin.8.in: Document new usage.
9086         * man/amflush.8.in: Document new usage.
9087         * man/amcheck.8.in: Document new usage.
9088         * man/amdump.8.in: Document new usage.
9089         * man/amrestore.8: Document new usage.
9090         * server-src/amadmin.c: Fix usage.
9091         * server-src/amflush.c: Fix usage.
9092         * server-src/amcheck.c: Fix usage.
9093
9094 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9095
9096         * server-src/diskfile.c (match_disklist): Return if no args.
9097
9098 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9099
9100         * server-src/diskfile.c (match_disklist): Fix.
9101
9102 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9103
9104         * server-src/diskfile.c (match_disklist): Updated for
9105           [host [disk]*]* syntax.
9106
9107 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9108
9109         * common-src/match.c (match_datestamp): New function.
9110         * common-src/amanda.h (match_datestamp): Prototype.
9111         * server-src/amflush.c: Use match_datestamp.
9112         * restore-src/amrestore.c: Use match_datestamp.
9113
9114 2001-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9115
9116         * common-src/match.c (match_word): Support for leading ^ and
9117           trailing $.
9118
9119 2001-01-04 John R. Jackson <jrj@purdue.edu>
9120
9121         * common-src/error.c (error): If the debug file pointer is set, log
9122           any fatal error message to it and close the file so it has a good
9123           trace of what happened and when.
9124
9125 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9126
9127         * taper-src/am-dd.c: include "tapeio.h", fix debug warning.
9128         * taper-src/am-mt.c: include "tapeio.h", fix debug warning.
9129         * taper-src/output-rait.c: include "tapeio.h", new define for
9130            rait_debug
9131         * taper-src/tapeio.c(many): Remove unused tfd variable.
9132         * taper-src/tapeio.h (tape_unload,tape_status): Prototype.
9133
9134 2001-01-04 John R. Jackson <jrj@purdue.edu>
9135
9136         * client-src/killpgrp.c: Calls to error() do not need a newline.
9137
9138 2001-01-04 John R. Jackson <jrj@purdue.edu>
9139
9140         * man/amanda.8.in: Try to make it clearer that dumpcycle and maxdumps
9141           changes in the main part of the config file must appear before any
9142           dumptype definitions, and also that inherited dumptypes must appear
9143           before their reference.
9144
9145 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9146
9147         * server-src/driver.c (continue_dumps): Don't reduce est_size if
9148           it is already larger than holding space allocated.
9149         * server-src/dumper.c: Remove all code for FILE_DUMP command.
9150         * server-src/chunker.c: Better handling of ENOSPC from
9151           write_tapeheader().
9152
9153 2001-01-04 John R. Jackson <jrj@purdue.edu>
9154
9155         * server-src/conffile.c (main): Fix conffile test program so it builds
9156           and works again.
9157
9158 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9159
9160         * changer-src/scsi-defs.h (ChangerCMD_T): replace array function
9161           pointer by enumerated pointers.
9162         * changer-src/scsi-changer-driver.c: Use new calling convention.
9163
9164 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9165
9166         * server-src/amstatus.pl.in: Better support for TRY-AGAIN and
9167           ABORT-FINISHED result.
9168
9169 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9170
9171         * server-src/amflush.c: Use getopt to parse argument.
9172         * server-src/amflush.c: New [-D date]* argument.
9173         * man/amflush.8.in: Document it.
9174
9175 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9176         Patch by Andreas F Mueller <afm@othello.ch>
9177
9178         * server-src/amadmin.c (force_no_bump_one): Fix message.
9179
9180 2001-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9181
9182         * tape-src/am-dd.c: include "amanda.h"
9183         * tape-src/am-mt.c: include "amanda.h"
9184         * tape-src/am-mt.c (main): res is int.
9185         * tape-src/output-rait.c: include "amanda.h", do not define stderr.
9186         * tape-src/tapeio.c (xxx_tapefd_read, plain_tapefd_read): second
9187           argument should be "char *"
9188         * tape-src/tapeio.c (xxx_tapefd_write, plain_tapefd_write): second
9189           argument should be "const char *"
9190
9191 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9192
9193         * server-src/find.c (find_match): Use todo bit.
9194         * server-src/find.c (find_dump): No arguments.
9195         * server-src/find.h (find_dump): Change prototype.
9196         * server-src/amadmin.c (find): New [host disk]* pair arguments.
9197         * server-src/amindexd.c: Change call to find_dump().
9198         * server-src/amtrmidx.c: Change call to find_dump().
9199
9200 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9201
9202         * configure.in: Don't check krb5 include if krb5 is not selected.
9203
9204 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9205
9206         * tape-src/Makefile.am (noinst_HEADERS): Add output-rait.h
9207
9208 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9209
9210         * server-src/amadmin.c (diskloop): typo.
9211
9212 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9213
9214         * server-src/amadmin.c (diskloop): New [host disk]* pair arguments.
9215         * server-src/amadmin.c (diskloop, reuse, noreuse): use get_pname()
9216         instead of argv[0].
9217
9218 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9219
9220         * server-src/amflush.c (main):log DISK after checking if logfile exist.
9221
9222 2000-12-30 John R. Jackson <jrj@purdue.edu>
9223
9224         * common-src/bsd-security.c: Improve the .rhosts/.amandahosts messages
9225           when things go wrong.  Add support for "bsdsecurity" test program
9226           in common-src.
9227         * common-src/Makefile.am: Ditto.
9228         * common-src/amanda.h: Ditto.
9229         * restore-src/amidxtaped.c: Ditto.
9230         * server-src/amindexd.c: Ditto.
9231
9232 2000-12-30 John R. Jackson <jrj@purdue.edu>
9233
9234         * ChangeLog: Bring Jean-Louis into the right month :-).
9235         * changer-src/scsi-changer-driver.c: Untested changes to at least
9236           get the code to compile on Solaris and to remove some warnings.
9237         * changer-src/scsi-defs.h: Ditto.
9238         * changer-src/scsi-solaris.c: Ditto.
9239
9240 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9241
9242         * server-src/diskfile.c (add_disk): New function.
9243         * server-src/diskfile.h (add_disk): Prototype.
9244         * server-src/logfile.h (logtype_e): add L_DISK.
9245         * server-src/logfile.c (logtype_str): add "DISK".
9246         * server-src/amflush.c (main): log DISK.
9247         * server-src/planner.c (main): log DISK.
9248         * server-src/reporter.c: use DISK if available.
9249
9250 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9251
9252         * server-src/amcheck.c: New [host disk]* pair arguments.
9253         * server-src/amflush.c: Ditto.
9254         * server-src/planner.c: Ditto.
9255         * server-src/amdump.sh.in: Ditto.
9256         * server-src/amrestore.c: Use new host/disk matcher.
9257         * man/amcheck.8.in: Document new [host disk]* pair arguments.
9258         * man/amflush.8.in: Ditto.
9259         * man/amdump.8.in: Ditto.
9260
9261 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9262
9263         * server-src/diskfile.c (match_disklist): new function.
9264         * server-src/diskfile.h (struct disk_s): new field todo.
9265         * server-src/diskfile.h (match_disklist): prototype.
9266
9267 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9268
9269         * common-src/match.c (match_word, match_host, match_disk): 
9270         new functions.
9271         * common-src/amanda.h (match_host, match_disk): prototype.
9272
9273 2000-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9274
9275         * server-src/planner.c (analyze_estimate): pick incremental level
9276         if no estimate of level 0.
9277
9278 2000-12-28 Marc W. Mengel <mengel@fnal.gov>
9279         * changer-src/chg-juke.sh.in: New File
9280         * changer-src/Makefile.am: Added support for chg-juke.
9281         * docs/TAPE.CHANGERS: Likewise.
9282         * configure.in: Likewise.
9283
9284 2000-12-24 John R. Jackson <jrj@purdue.edu>
9285
9286         * server-src/getconf.c: Fix free() of static text string (BUGGY) when
9287           the parameter being looked up is bad.
9288
9289 2000-12-23 David Wolfskill  <dhw@whistle.com>
9290
9291         * server-src/amcheck.c (start_server_check): Change directory
9292           writable check to be for the tapelist directory instead of
9293           the config file directory.  Remove config file directory test.
9294         * man/amcheck.8.in: Add mention of tapelist directory and do
9295           some other directory writable cleanup.
9296
9297 2000-12-12 John R. Jackson <jrj@purdue.edu>
9298
9299         * client-src/sendbackup-gnutar.c: Fix regex pattern to accept blanks
9300           or tabs.
9301
9302 2000-12-12 John R. Jackson <jrj@purdue.edu>
9303
9304         * Makefile.am: Work around problem with automake 1.4 not including
9305           pkgdata_DATA.
9306         * docs/Makefile.am: Include RAIT and VTAPE-API in distribution.
9307           Work around problem with automake 1.4 not including pkgdata_DATA.
9308         * tape-src/rait.h: Renamed to rait.h.
9309         * tape-src/rait.c: Renamed to rait.c.
9310         * tape-src/output-rait.h: Renamed from rait.h.
9311         * tape-src/output-rait.c: Renamed from rait.c.
9312         * tape-src/Makefile.am: Reflect the new rait.[ch] names.
9313         * tape-src/tapeio.c: Use output-rait.h name.  Minor typo changes.
9314
9315 2000-12-08 Marc Mengel <mengel@fnal.gov>
9316
9317         * docs/RAIT: New file.
9318         * docs/VTAPE-API: New file.
9319         * tape-src/rait.c: New File providing RAIT virtual tape type.
9320         * tape-src/tapeio.c: Major Surgery.
9321           (vtable): New static table of virtual tape types.
9322           (fdtable): New static table mapping file descriptors.
9323           (tapefd_fsf_ioctl): Renamed tapefd_fsf, with added ioctl argument.
9324           (tapefd_rewind_ioctl): Likewise.
9325           (tapefd_unload_ioctl): Likewise.
9326           (tapefd_weof_ioctl): Likewise.
9327           (tapefd_status_ioctl): Likewise.
9328           (tape_open): Now is a virtual tape table lookup and call.
9329           (tape_access): Now is a switch through virtual tape table.
9330           (tape_stat): Likewise.
9331           (tapefd_close): Likewise.
9332           (tapefd_fsf): Likewise.
9333           (tapefd_read): Likewise.
9334           (tapefd_rewind): Likewise.
9335           (tapefd_resetofs): Likewise.
9336           (tapefd_unload): Likewise.
9337           (tapefd_status): Likewise.
9338           (tapefd_weof): Likewise.
9339           (tapefd_write): Likewise.
9340           (plain_tape_access): Rename of tape_access.
9341           (plain_tape_open): Likewise.
9342           (plain_tapefd_read): Likewise.
9343           (plain_tape_stat): Likewise.
9344           (plain_tapefd_write): Likewise.
9345           (plain_tapefd_close): Likewise.
9346           (plain_tapefd_fsf): Now calls tapefd_fsf_ioctl with &ioctl().
9347           (plain_tapefd_rewind): Likewise.
9348           (plain_tapefd_resetofs): Likewise.
9349           (plain_tapefd_unload): Likewise.
9350           (plain_tapefd_status): Likewise.
9351           (plain_tapefd_weof): Likewise.
9352
9353 2000-12-04 John R. Jackson  <jrj@purdue.edu>
9354
9355         * server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami
9356           problem.
9357
9358 2000-12-04 John R. Jackson  <jrj@purdue.edu>
9359
9360         * server-src/conffile.c (read_conffile_recursively): If the file name
9361           for the includefile directive is not absolute, make it relative to
9362           the configuration directory.
9363
9364 2000-12-03 John R. Jackson  <jrj@purdue.edu>
9365
9366         * restore-src/amrestore.c: Fix header when compression is included.
9367           Use "fast" option for -c and add new -C option to get "best".
9368         * man/amrestore.8: Document the new option, the compression level,
9369           and clean up some nroff issues.
9370
9371 2000-11-30 Marc Mengel <mengel@fnal.gov>
9372
9373         * changer-src/chg-chio.pl.in: Use am-mt and am-dd versus mt and dd.
9374         * changer-src/chg-chs.sh.in: Likewise.
9375         * changer-src/chg-manual.sh.in: Likewise.
9376         * changer-src/chg-mtx.sh.in: Likewise.
9377         * changer-src/chg-multi.sh.in: Likewise.
9378         * changer-src/chg-rth.pl.in: Likewise.
9379         * changer-src/chg-zd-mtx.sh.in:  Likewise.
9380         * tape-src/am-dd.c: New file. Replacement for dd.
9381         * tape-src/am-mt.c: New file. replacement for mt.
9382         * tape-src/Makefile.am: Add build for am-mt and am-dd.
9383         * tape-src/tapeio.c (tape_unload, tapefd_unload, tape_status, 
9384           tapefd_status): New functions.
9385           (tape_rewind, tape_fsf, tape_rdlabel): Change error message 
9386                 for tape being offline so it matches online/offline regex 
9387                 in changer scripts.
9388           (tape_open): Ifdef-out mode flag clearing, so you can pass 
9389                 O_TRUNC, etc.  in for am-dd.
9390
9391 2000-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9392
9393         * common-src/util.c: #include "../tape-src/tapeio.h"
9394         * tape-src/tapeio.c(tapefd_write): second arg is const.
9395         * tape-src/tapeio.h(tapefd_write): Likewise.
9396         * common-src/event.c(event_loop): declare entry if ASSERT is defined.
9397         * changer-src/chg-scsi.c: Fix compiler warning.
9398         * changer-src/scsi-aix.c: Likewise.
9399         * changer-src/scsi-bsd.c: Likewise.
9400         * changer-src/scsi-cam.c: Likewise.
9401         * changer-src/scsi-changer-driver.c: Likewise.
9402         * changer-src/scsi-defs.h: Likewise.
9403         * changer-src/scsi-hpux.c: Likewise.
9404         * changer-src/scsi-hpux_new.c: Likewise.
9405         * changer-src/scsi-irix.c: Likewise.
9406         * changer-src/scsi-linux.c: Likewise.
9407         * changer-src/scsi-solaris.c: Likewise.
9408         * changer-src/sense.c: Likewise.
9409
9410 2000-11-22 John R. Jackson  <jrj@purdue.edu>
9411
9412         * contrib/dbbackup.ksh: Deal with adm being a symlink.
9413         * contrib/dbbackup.tcl: Update for Tcl 8.3 and newer Oratcl versions.
9414
9415 2000-11-22 John R. Jackson  <jrj@purdue.edu>
9416
9417         * Makefile.am: Forgot to add contrib/sst/README.Amanda to the list
9418           of files to put in a distribution.
9419
9420 2000-11-21 John R. Jackson  <jrj@purdue.edu>
9421
9422         * recover-src/extract_list.c (extract_files_child): Add support for
9423           XFSRESTORE.
9424
9425 2000-11-21 John R. Jackson  <jrj@purdue.edu>
9426
9427         * server-src/amcheck.c: Minor message wording changes.
9428
9429 2000-11-21 John R. Jackson  <jrj@purdue.edu>
9430
9431         * configure.in: Forgot to check in this part of new amgetconf.8.in.
9432
9433 2000-11-21 John R. Jackson  <jrj@purdue.edu>
9434
9435         * contrib/sst/README.Amanda: New file of Amanda specific sst notes.
9436         * contrib/sst/sst.c: Attempt at letting gcc compile sst.
9437
9438 2000-11-21 John R. Jackson  <jrj@purdue.edu>
9439
9440         * man/amgetconf.8.in: New man page.
9441         * man/Makefile.am: Add support for amgetconf.8.in.
9442         * man/amadmin.8.in: Update for 2.4.2 and do general cleanup.
9443         * man/amanda.8.in: Ditto.
9444         * man/amcheck.8.in: Ditto.
9445         * man/amcheckdb.8.in: Ditto.
9446         * man/amcleanup.8.in: Ditto.
9447         * man/amdump.8.in: Ditto.
9448         * man/amflush.8.in: Ditto.
9449         * man/amlabel.8.in: Ditto.
9450         * man/amrecover.8.in: Ditto.
9451         * man/amreport.8.in: Ditto.
9452         * man/amrestore.8: Ditto.
9453         * man/amrmtape.8.in: Ditto.
9454         * man/amstatus.8.in: Ditto.
9455         * man/amtape.8: Ditto.
9456         * man/amtoc.8.in: Ditto.
9457         * man/amverify.8.in: Ditto.
9458
9459 2000-11-21 John R. Jackson  <jrj@purdue.edu>
9460
9461         * contrib/sst/sst.c (sst_ioctl): Allow non-root users to use sst.
9462
9463 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9464
9465         * server-src/amdump.sh.in: exit if amgetconf exit with status != 0.
9466         * server-src/amcleanup.sh.in: ditto
9467         * server-src/amstatus.pl.in: ditto
9468
9469 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9470
9471         * server-src/driver.c (start_some_dumps): don't check free_kps if
9472         curusage == 0.
9473         * server-src/driver.c (free_kps): remove the kludge.
9474
9475 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9476
9477         * server-src/conffile.c: It's an error to have a negative chunksize.
9478         * man/amanda.8.in: remove documentation of negative chunksize.
9479         * example/amanda.conf.in: ditto
9480         * example/amanda.conf.chg-scsi.in:ditto
9481         * NEWS: negative chunksize is no longer supported.
9482
9483 2000-11-03 John R. Jackson  <jrj@purdue.edu>
9484
9485         * server-src/driver.c (handle_taper_result): the holding disk entry
9486         should not be removed just because taper could not write it out in
9487         the "too many taper retries" case.  It should be left for amflush.
9488
9489 2000-11-01 John R. Jackson  <jrj@purdue.edu>
9490
9491         * server-src/amverify.sh.in: use common form for getting the first
9492         line of a file/pipe.  Sed is more portable than head.
9493
9494 2000-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9495
9496         * client-src/selfcheck.c (check_disk): Write an appropriate
9497         message if the disk name start with '//' and the program is DUMP
9498         or SAMBA is not compiled in.
9499
9500 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9501
9502         * server-src/driver.c (handle_chunker_result): The dumpsize is
9503         the third argument, not the fourth.
9504
9505 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9506
9507         * server-src/driver.c (handle_chunker_result): don't check
9508         pending_aborts, call event_release() ob ABORT-FINISHED.
9509
9510 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9511
9512         * server-src/chunker.c (databuf_flush): workaround to prevent a
9513         hang on a ABORT command.
9514
9515 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9516
9517         * server-src/driver.c (continue_dumps): set estimate to more than 
9518         what is already use instead of setting no_hold=1 when a disk
9519         don't fit on holding disk.
9520
9521 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9522
9523         * server-src/chunker.c: chunker was broken after RQ-MORE-DISK.
9524
9525 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9526
9527         * server-src/amstatus.pl.in: add '&' when calling &usage() 
9528         or &dump_size().
9529
9530 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9531         reported by The Hermit Hacker <scrappy@hub.org>
9532
9533         * changer-src/chg-chio.pl.in: remove unused $libexecdir.
9534
9535 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9536         reported by The Hermit Hacker <scrappy@hub.org>
9537
9538         * changer-src/chg-chio.pl.in: remove comma after LOG, 
9539         typo: r should be 0.
9540
9541 2000-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9542
9543         * docs/INDEXING: doc updated.
9544
9545 2000-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9546
9547         * AUTHORS: add Thomas Hepper.
9548
9549 2000-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9550
9551         * server-src/driverio.c (chunker_cmd): send ABORT command.
9552
9553 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9554
9555         * server-src/amverify.sh.in: grep only the first line of the header.
9556
9557 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9558
9559         * server-src/amverify.sh.in: verify with tar even if the
9560         server and the client are not configured with the same path.
9561
9562 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9563
9564         * NEWS: A new `ctimeout' keyword in amanda.conf to replace 
9565         the CHECK_TIMEOUT constant in amcheck.c.
9566
9567 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9568
9569         * server-src/amlabel.c: Don't set tape_ok to 0 if 
9570         tape_wrlabel is successful.
9571
9572 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9573
9574         * server-src/taper.c: amfree(strclosing).
9575
9576 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9577
9578         * server-src/driver.c: typo.
9579
9580 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9581
9582         * configure.in: --with-samba-user is deprecated.
9583         * docs/SAMBA: the username is now on the amandapass file.
9584         * NEWS: the username is now on the amandapass file.
9585         * client-src/findpass.c (findpass): accept "*" as diskname.
9586         * client-src/selfcheck.c (check_disk): call to samba changed.
9587         * client-src/sendsize.c (getsize_smbtar): ditto.
9588         * client-src/sendbackup-gnutar.c (start_backup): ditto.
9589         * recover-src/extract_list.c (extract_files_child): ditto.
9590
9591 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9592
9593         * server-src/taper.c: give better message when failing 
9594         to open a chunk.
9595
9596 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9597
9598         * server-src/diskfile.c (headqueue_disk): new function to
9599         insert at the head of the queue.
9600         * server-src/diskfile.h (headqueue_disk): prototype.
9601         * server-src/driver.c (taper_queuedisk): insert with
9602         headqueue_disk() if disk already attempted.
9603
9604 2000-10-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9605
9606         * AUTHORS: fix my email address.
9607
9608 2000-09-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9609
9610         * server-src/amcheck.c: Don't accept -m or -M option if MAILER
9611         is not defined.
9612         * server-src/reporter.c: Need a -f optionn if MAILER is not defined.
9613
9614 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9615         patch by <jeg@time.ucsc.edu>
9616
9617         * server-src/reporter.c (output_summary): check for tape_labels.
9618
9619 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9620
9621         * server-src/amindexd.c: use strcasecmp to compare hostname.
9622
9623 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9624
9625         * server-src/amstatus.pl.in: fix plural misuse.
9626
9627 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9628
9629         * man/amanda.8.in: add all pages in the SEE ALSO section.
9630
9631 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9632
9633         * man/amreport.8.in: amreport does not rotate the log.
9634         * man/amrestore.8: note on holdingdisk.
9635         * restore-src/amrestore.c: update usage.
9636         * server-src/amrmtape.sh.in: update usage.
9637         * server-src/amverify.sh.in.usage: update usage.
9638
9639 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9640
9641         * server-src/amoverview.pl.in: update usage information,
9642         -config is no longer needed for ccompatibility with other program.
9643         * man/amoverview.8.in: -config is no longer needed.
9644
9645 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9646
9647         * example/amanda.conf.in: chunk should not be larger than
9648         MAX_FILE_SIZE - 1Mb.
9649
9650 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9651
9652         * client-src/sendsize.c (getsize_smbtar): remove unused debug_level
9653         variable.
9654         * server-src/amlabel.c (main): init errstr to NULL, 
9655         fix compiler warning.
9656
9657 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9658         patch by jason Thomas <jet@users.sourceforge.net>
9659
9660         * tape-src/tapetype.c: fix help message.
9661
9662 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9663         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
9664
9665         * common-src/file.c (mkpdir): check p != NULL
9666         * man/amstatus.8.in: typo
9667
9668 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9669         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
9670
9671         * client-src/calcsize.c:sets correct program name,
9672         prevent coredumps and some improrer command line error mesages
9673
9674 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9675
9676         * common-src/amanda.h: prototype clean_regex().
9677         * common-src/match.c: new function clean_regex() that escape
9678         all non-alphanumeric character.
9679         * recover-src/extract_list.c (add_file, delete_file): use clean_regex().
9680
9681 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9682
9683         * server-src/amcheck.c: (start_server_check): check for the oldlog
9684         directory.
9685
9686 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9687
9688         * server-src/amtrmlog.c: better check of the oldlog directory.
9689
9690 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9691
9692         * server-src/amcheck.c: (start_server_check): don't check the tape
9693         if tapedev is /dev/null.
9694
9695 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9696
9697         * server-src/reporter.c (output_tapeinfo): test reversed for run_tapes.
9698
9699 2000-07-31 Thomas Hepper <th@ant.han.de>
9700         * changer-src/chg-scsi.c: Rework of the device handling.
9701         Every device is opend for an operation and than closed.
9702         This will hopefully fix the problems with openening the tape device
9703         and the SCSI control device for the tape
9704         new option emubarcode (see docs/TAPE.CHANGERS)
9705         * changer-src/scsi-cam.c: Changed to work with the new device handling.
9706         * changer-src/scsi-hpux_new.c: Changed to work with the new device handling.
9707         * changer-src/scsi-irix.c: Changed to work with the new device handling. (Not tested)
9708         * changer-src/scsi-solaris.c: Changed to work with the new device handling. (Not tested)
9709         * changer-src/scsi-linux.c: Changed to work with the new device handling.
9710         * changer-src/scsi-changer-driver.c: Changed to work with the new device handling
9711         * changer-src/scsi-defs.h: Changed to work with the new device handling
9712 2000-07-18 John R. Jackson  <jrj@purdue.edu>
9713
9714         * changer-src/chg-chio.pl.in (do_time): fix chg-chio.pl timestamp
9715         function to return a string instead of writing to stdout.
9716
9717 2000-07-18 John R. Jackson  <jrj@purdue.edu>
9718
9719         * server-src/taper.c (file_reader_side): detach and destroy shared
9720         memory areas on an error condition.  Found by Patrik Andersin
9721         <cat@iki.fi>.
9722
9723 2000-07-17 Thomas Hepper <th@ant.han.de>
9724         * docs/TAPE.CHANGERS: Added some notes for the cam driver
9725         * changer-src/scsi-cam.c: New syntax for telling scsi ids
9726         (bus:target:lun)
9727         SCSI_ExecuteCommand now returns the correct sense buffer.
9728
9729 2000-07-17 Thomas Hepper <th@ant.han.de>
9730         * configure.in: Added check for BSD SCSI CAM Support
9731         * changer-src/scsi-cam.c: New, functions for SCSI CAM Support
9732         ( at the moment for FreeBSD 4.0)
9733         * changer-src/Makefile.am: added scsi-cam.s to the list of sources
9734         * changer-src/chg-scsi.c: The structs for the OpenFiles_T is now
9735         allocated in chg-scsi and passed to OpenDevice.
9736         * changer-src/scsi-changer-driver.c: New Parameter for OpenDevice
9737         (OpenFiles_T)
9738
9739 2000-07-10 Marc Mengel <mengel@fnal.gov>
9740         * tape-src/tapeio.c -- add tape_{stat,access}, allow "plain:" prefix
9741                 on tape device names
9742         * tape-src/tapeio.h -- add tape_{stat,access} prototypes
9743         * common-src/util.c -- call tape_{read,write}() in full{read,write}()
9744         * restore-src/amidxtaped.c -- use tape_stat() on tapename
9745         * restore-src/amrestore.c -- use tape_stat() on tapename
9746         * server-src/amcheck.c -- use tape_access() on tapename
9747         * client-src/Makefile.am -- now needs libamtape.a twice
9748         * server-src/Makefile.am -- now needs libamtape.a twice
9749         * recover-src/Makefile.am -- now needs libamtape.a twice
9750         * Makefile.am -- tape-src before client-src
9751
9752 2000-07-05 Thomas Hepper <th@ant.han.de>
9753         * changer-src/chg-scsi.c: fixed an core dump if tapeident was set
9754         * changer-src/scsi-changer-driver.c (OpenFile):
9755          if the ident ist set in the config set this in the internal device 
9756          struct too.
9757         * changer-src/scsi-changer-driver.c (GenerciSenseHandler):
9758          changed the type for the info text from char * to char ** which
9759          is passwd to Sense2Action
9760         * changer-src/scsi-changer-driver.c (ChangerStatus):
9761          fixed the bug which causes an core dump for chg-scsi -status robot
9762          if an bar code reader is detected. Fixed also the bug that the
9763          mapping Label -> Barcode was not displayed.
9764         * changer-src/scsi-defs.h: Changed the prototype for Sense2Action
9765         * changer-src/sense.c: Added the defs for the Spectra TreeFrog lib
9766         * changer-src/sense.c (Sense2Action); Fixed the handling if no match
9767          was found (fall back to the generic description)
9768
9769 2000-06-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9770
9771         * server-src/list_dir.c (add_dir_list_item): add at head of list.
9772
9773 2000-06-24 Thomas Hepper <th@ant.han.de>
9774         * changer-src/chg-scsi-chio.c: Merged changes from 2.4.2 
9775         * changer-src/chg-scsi.c: Merged changes from 2.4.2
9776         * changer-src/sense.c: New file. Contains an table and function for the 
9777           mapping of sense/ASC/ASCQ conditions from the SCSI sense.
9778         * changer-src/scsi-changer-driver.c: Merged changes from 2.4.2
9779           Changed handling for the sense keys. Now there is only one function
9780           to decide what to do with an sense/ASC/ASCQ conditon (abort,retry ..)
9781         * changer-src/Makefile.am: Added sense.c to the source list.
9782         * changer-src/scsi-solaris.c: Merged changes from 2.4.2 
9783         * changer-src/scsi-linux.c: Merged changes from 2.4.2 
9784         * changer-src/scsi-irix.c: Merged changes from 2.4.2 
9785         * changer-src/scsi-hpux_new.c: Merged changes from 2.4.2 
9786         * changer-src/scsi-defs.h: Merged changes from 2.4.2 
9787         
9788 2000-06-12  Jeroen Ruigrok van der Werven  <asmodai@wxs.nl>
9789
9790         * server-src/amlabel.c (main): Do not amfree(config_name).
9791
9792 2000-06-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9793
9794         * server-src/holding.c (pick_datestamp): convert ch to upper.
9795
9796 2000-05-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9797
9798         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
9799           delay call to dumper_result().
9800
9801 2000-05-28  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9802
9803         * client-src/sendbackup-gnutar.c: Ignore `socket ignored' GNU tar
9804         messages.
9805
9806 2000-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9807
9808         * chunker.c: allow chunk to be written on different holding disk.
9809         * server-src/driver.c: allow chunk to be written on different
9810           holding disk.
9811         * server-src/conffile.c: make sure that disksize and chunksize
9812           are multiple of TAPE_BLOCK_SIZE.
9813         * server-src/conffile.h: disksize and chunksize are long.
9814         * server-src/diskfile.c (find_disk): new function to see if a
9815           given disk is contained in a list structure.
9816         * server-src/diskfile.h (find_disk): prototype.
9817         * server-src/driverio.h (RQ_MORE_DISK): Added message.
9818         * server-src/driverio.h (free_assignedhd): prototype.
9819         * server-src/driverio.h (assignedhd_t): new data structure.
9820         * server-src/driverio.c (cmdstr): added comamnd RQ-MORE-DISK.
9821         * server-src/driverio.c (free_assignedhd): new function to free an
9822           array of assignedhd_t.
9823         
9824 2000-05-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9825
9826         * server-src/driver.c (chunker_program): new variable.
9827
9828 2000-04-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9829
9830         * server-src/amstatus.pl.in: handle chunker line.
9831
9832 2000-04-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9833
9834         * recover-src/Makefile.am (LDADD): Removed libamtape.
9835         Reported by Paul Yeatman <pyeatman@ucsd.edu>
9836
9837 2000-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9838
9839         * server-src/chunker.c: new file for the chunker program.
9840         * server-src/Makefile.am: compile it.
9841         * server-src/driver.c: many modification.
9842         * server-src/driverio.c: many modification.
9843         * server-src/driverio.c (startup_chunk_process, chunker_cmd):
9844         new functions.
9845         * server-src/driverio.h: prototype them.
9846         * server-src/driverio.h (struct chunker_s): new structure.
9847         * server-src/logfile.c: handle chunker log.
9848         * server-src/logfile.h: ditto.
9849         * server-src/reporter.c: ditto.
9850         * server-src/taper.c: size reduced by TAPE_BLOCK_SIZE.
9851
9852 2000-04-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9853
9854         * server-src/taper.c: don't crash if the tapelist file
9855         doesn't exist.
9856
9857 2000-04-09  Frank Wojcik  <fwojcik@lucent.com>
9858
9859         * server-src/taper.c (detach_buffers): Fixed typo in error message.
9860
9861         * server-src/amrmtape.sh.in: Fix occurrence of `Infofile', that
9862         should have been `InfoFile'.
9863
9864 2000-04-09  Davide Marchignoli  <marchign@di.unipi.it>
9865   
9866         * server-src/conffile.h (confparm_t): Added CTIMEOUT.
9867         * server-src/conffile.c: Added ctimeout support.  Default to 30.
9868         * example/amanda.conf.in: Likewise.
9869         * man/amanda.8.in: Documented it.
9870         * server-src/amcheck.c: Use ctimeout from configuration file instead
9871         of CHECK_TIMEOUT.
9872
9873 2000-04-09  Stan Brown  <stanb@awod.com>
9874
9875         * recover-src/amrecover.c (guess_disk): Omit DEV_PREFIX only if
9876         it is actually a prefix of fsname.
9877
9878 2000-04-09  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9879
9880         * server-src/amlabel.c (main): Check label *after* writing end mark.
9881
9882 2000-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9883
9884         * server-src/amlabel.c: don't crash if the tapelist file 
9885         doesn't exist.
9886
9887 2000-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9888
9889         * server-src/amstatus.pl.in: "0 dumpers busy" should be "0 dumper busy".
9890
9891 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9892
9893         * server-src/amadmin.c (force_one, force_bump_one): FORCE_FULL
9894         and FORCE_BUMP are mutually exclusive.
9895
9896 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9897
9898         * server-src/driver.c (main): use the holding disk even if the
9899         datestamped directory already exist.
9900
9901 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9902
9903         * server-src/amstatus.pl.in (prefix, exec_prefix): Refer to them
9904         twice to avoid warnings of possible typo.
9905
9906         * amplot/amplot.awk: Ignore dumper's RQ-MORE-DISK.
9907         Reported by David Wolfskill <dhw@whistle.com>
9908         * amplot/amplot.awk: Handle taper's TRY-AGAIN like TAPE-ERROR.
9909
9910         * server-src/amstatus.pl.in: Compute and display TRY-AGAIN tape
9911         errors.
9912         Reported by David Wolfskill <dhw@whistle.com>
9913
9914         * man/amtoc.8.in: Document -w.
9915
9916 2000-01-21  David Wolfskill  <dhw@whistle.com>
9917
9918         * server-src/amtoc.pl.in: Add `-w' to add new lines and form feeds.
9919
9920 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9921
9922         * man/amlabel.8.in: Tapes are no longer requested in reverse order
9923         of amlabeling.
9924         Reported by Brad Guillory <round@baileylink.net>
9925
9926         * server-src/amstatus.pl.in: New option --stats, to display
9927         statistics about dumpers and taper.
9928         * man/amstatus.8.in: Document it.
9929
9930 2000-01-21  David Wolfskill  <dhw@whistle.com>
9931
9932         * server-src/amstatus.pl.in: Sort dumpers by number.
9933
9934 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9935
9936         * server-src/amstatus.pl.in: Remove bogus (?) line `$$host=1'.
9937
9938         * configure.in (MAILER): Warn or print an error if not found,
9939         depending on whether server code is disabled or not.
9940
9941         * server-src/reporter.c (output_tapeinfo): Report used tapes
9942         regardless of tape errors.
9943
9944         * config/acinclude.m4i (CF_WAIT): Simplify the test.  Declare wait()
9945         in the global scope.
9946
9947 2000-01-21  Garrett Wollman  <wollman@khavrinen.lcs.mit.edu>
9948
9949         * config/acinclude.m4i (CF_WAIT): Avoid warnings on systems
9950         where `union wait' works but is deprecated.
9951
9952 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9953
9954         * recover-src/uscan.l (settape): Recognize it.
9955         * recover-src/uparse.y: Parse it.
9956         * recover-src/amrecover.h (set_tape): Declare it.
9957         * recover-src/set_commands.c (set_tape): Implement it.
9958         * recover-src/help.c (help_list): Document it.
9959         * man/amrecover.8.in: Likewise.
9960         * recover-src/extract_list.c (extract_files): Warn if tape device is
9961         /dev/null.
9962         * recover-src/amrecover.c (tape_device_name): Default to
9963         server-determined default.
9964
9965 2000-01-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9966
9967         * configure.in: Recognize alpha*-*-linux-* and sparc*-*-linux-*.
9968
9969         * tape-src/Makefile.am (../common-src/libamanda.$(LIB_EXTENSION)):
9970         Allow for `make tapetype' before libamanda is built.
9971
9972         * server-src/amoverview.pl.in: Year doesn't take just 2 bytes.
9973
9974 2000-01-06  David Wolfskill  <dhw@whistle.com>
9975
9976         * docs/TAPETYPES: Typo.
9977         
9978 2000-01-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9979
9980         * docs/TAPETYPES: Removed all tapetype entries.  Pointed to
9981         example/amanda.conf, to the mailing list archives and to the on-line
9982         tapetype list.  Explained the meaning of length, filemark and speed,
9983         and how to build and use the tapetype utility.
9984
9985 1999-12-12 John R. Jackson  <jrj@purdue.edu>
9986
9987         * configure.in: egrep was having trouble with quoting on some systems.
9988         Broke it apart into multiple unquoted statements.  Also, changed the
9989         script to run the steps on all dump tests and added "Label" as another
9990         line to ignore.
9991
9992 1999-12-12 John R. Jackson  <jrj@purdue.edu>
9993
9994         * tape-src/tapetype.c: tweak the algorithm to write files in both
9995         passes and compute the tape mark size as the difference.  Never
9996         report a negative tape mark size.  Various other minor cleanup.
9997
9998 1999-11-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9999
10000         * client-src/sendbackup-gnutar.c (re_table): #if out the debugging
10001         Samba messages unless SAMBA_VERSION < 2.
10002
10003 1999-11-29  John E.P.Hynes  <john@hytronix.ne.mediaone.net>
10004
10005         * client-src/sendbackup-gnutar.c (re_table): Update for Samba 2.0.6.
10006
10007 1999-11-25 John R. Jackson  <jrj@purdue.edu>
10008
10009         * server-src/amflush.c (main): conf_logdir should not be free'd
10010           (found by Espen H Wiborg <espenhw@infotek.no>).
10011
10012 1999-11-10 John R. Jackson  <jrj@purdue.edu>
10013
10014         * recover-src/extract_list.c: report the tape server host in the
10015           message to check the amidxtaped.debug file.   If extract_list_child
10016           fails (such as when amidxtaped fails to read the tape), ask if
10017           things should continue instead of aborting.
10018
10019 1999-11-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10020
10021         * server-src/driverio.c (update_info_dumper): Discard information on
10022         older same- or higher-level dumps.
10023         * server-src/driver.c (dump_to_tape): Add comment that _dumper must
10024         be called before _taper.
10025
10026         * docs/FAQ: Sometimes FQDNs are wrong for amandahosts.
10027
10028 1999-11-10 John R. Jackson  <jrj@purdue.edu>
10029
10030         * server-src/amindexd.c (build_disk_table): need to clear the old
10031           disk history list before building a new one.
10032
10033 1999-11-10 John R. Jackson  <jrj@purdue.edu>
10034
10035         * server-src/taper.c (label_tape): issue a warning when tapedev is
10036           set to /dev/null.
10037         * server-src/amcheck.c (start_server_check): make warning message
10038           text the same for amcheck and taper when tapedev is /dev/null.
10039
10040 1999-11-10 John R. Jackson  <jrj@purdue.edu>
10041
10042         * server-src/amcleanupdisk.c (main): try to remove empty holding disk
10043           areas.
10044         * server-src/holding.c (scan_holdingdisk): do not automatically remove
10045           empty holding disk areas since this function is called by various
10046           utilities and a dump might be in progress.
10047
10048 1999-11-10  James FitzGibbon  <james@targetnet.com>
10049
10050         * server-src/infofile.c (put_info): d.size should have been
10051         d.dsize.
10052
10053 1999-11-09 John R. Jackson  <jrj@purdue.edu>
10054
10055         * server-src/amcheck.c (start_server_check): test tapedev for
10056           "/dev/null" and issue warning that dumps will be thrown away.
10057
10058 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
10059
10060         * server-src/amadmin.c (main): Second occurrence of CNF_TAPELIST
10061         should have been CNF_INFOFILE; fixed.
10062
10063 1999-11-02  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10064
10065         * common-src/amflock.c (struct flock): Do not assume the fields are
10066         declared in any particular order.
10067         Reported by Sean Kelly <kelly@plutotech.com>
10068
10069         * Makefile.am (EXTRA_DIST): Added contrib/set_prod_link.pl.
10070         * docs/INSTALL: Likewise.
10071
10072 1999-11-02  Ricardo Malta  <rmalta@bigfoot.com>
10073         
10074         * contrib/set_prod_link.pl: Create the links for a configuration
10075         with --with-suffix.
10076
10077 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
10078
10079         * common-src/rsh-security.c (net_writev): The result of a cast is
10080         not an lvalue; fixed.
10081
10082 1999-10-26  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
10083
10084         * server-src/amtoc.pl.in: Correct a bug for total report.
10085
10086 1999-11-01 John R. Jackson  <jrj@purdue.edu>
10087
10088         * server-src/amcleanupdisk.c (main): do not free the config name (it
10089           was never alloc-d).
10090
10091 1999-10-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10092
10093         * common-src/debug.c: Do not assume stderr is a compile-time
10094         constant.  On glibc 2.2 (RedHat Linux 6.1), it is not.
10095
10096 1999-10-11  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
10097
10098         * server-src/amtoc.pl.in: Add new options -i and -t.  Print original
10099         size, instead of size on tape.
10100
10101 1999-10-07 John R. Jackson  <jrj@purdue.edu>
10102
10103         * common-src/stream.c (stream_server): remove reference to portrange
10104           variable.  Compliments of Randy Dees <rrd@amherst.com>.
10105
10106 1999-10-03 John R. Jackson  <jrj@purdue.edu>
10107
10108         * server-src/driver.c (main): now that multiple results can come back
10109           from taper and dumper without a handshake (e.g. NO-ROOM), we need to
10110           process them all rather than just the first one.  Call the new
10111           areads_dataready() function to peek and see if more data is ready.
10112         * common-src/amanda.h: declare areads_dataready().
10113         * common-src/file.c: define areads_dataready().  Fix some variable
10114           types.  Fix a buffer expansion problem.  Add code to the test
10115           program to force buffer expansion to be checked out.
10116
10117 1999-10-03 John R. Jackson  <jrj@purdue.edu>
10118
10119         * common-src/file.c (areads_getbuf): fix a buffer allocation problem.
10120
10121 1999-10-03 John R. Jackson  <jrj@purdue.edu>
10122
10123         * common-src/amflock.c (main): do not use aclose() in the configure
10124           test case.  During configure we do not have areads_relbuf()
10125           available and it makes configure think all the tests have failed.
10126
10127 1999-10-03 John R. Jackson  <jrj@purdue.edu>
10128
10129         * common-src/amanda.h: protect the close macros and areads* from
10130           out of range file descriptors.
10131         * common-src/file.c: ditto.
10132
10133 1999-10-02 John R. Jackson  <jrj@purdue.edu>
10134
10135         * server-src/amindexd.c (build_disk_table): only "OK" results from
10136           find_dump should be considered.
10137
10138 1999-10-02 John R. Jackson  <jrj@purdue.edu>
10139
10140         * common-src/file.c (areads): when NO-ROOM became advisory and didn't
10141           participate in a full handshake, it exposed a problem in areads()
10142           where a static buffer was shared among all I/O.  Changed it to use
10143           a separate buffer for each file descriptor.  Enhanced the test
10144           program to check out the code.
10145         * common-src/amanda.h: ditto
10146         * restore-src/amidxtaped.c: minor areads/agets comment typo.
10147         * server-src/amindexd.c: ditto
10148
10149 1999-10-02 John R. Jackson  <jrj@purdue.edu>
10150
10151         * server-src/amlogroll.c: fix minor memory leak.
10152
10153 1999-09-29 John R. Jackson  <jrj@purdue.edu>
10154
10155         * server-src/dumper.c (do_dump): closed the dump messages file too
10156           soon.
10157
10158 1999-09-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10159
10160         * recover-src/extract_list.c (samba_extract_method): Default to
10161         SAMBA_TAR, for similarity with other restore programs.
10162         (extract_files_child): If restore with SMBCLIENT is enabled, explain
10163         that Samba shares will be restored to the SMB share.
10164
10165 1999-09-22 John R. Jackson  <jrj@purdue.edu>
10166
10167         * configure.in: wrong variable when processing LIBRARY_DIRS.  Fix
10168           compliments of John M. Vogtle <jmvogtle@kodak.com>.
10169
10170 1999-09-20 John R. Jackson  <jrj@purdue.edu>
10171
10172         * server-src/Makefile.am: use new amlogroll utility to rename the log
10173           file to the datestamped name.
10174         * server-src/amcheck.c: ditto.
10175         * server-src/amcleanup.sh.in: ditto and call all utilities with the
10176           config file name as an argument.
10177         * server-src/amdump.sh.in: ditto and call all utilities with the
10178           config file name as an argument.
10179         * server-src/amflush.c: ditto.
10180         * server-src/amlogroll.c: new utility.
10181         * server-src/driverio.c: ditto and call all utilities with the
10182           config file name as an argument.
10183         * server-src/reporter.c: ditto.
10184
10185 1999-09-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10186
10187         * amlogroll.c: It was missing; copied from the 2.4.2 branch.
10188
10189         * configure.in (AMANDA_TMPDIR): Added comment for config.h.in.
10190
10191 1999-09-19 John R. Jackson  <jrj@purdue.edu>
10192
10193         * server-src/amverify.sh.in: this script is important enough it should
10194           not depend on having perl installed.  Clean up the AIX "mt status"
10195           code.  Test for presense of other restore programs and check that
10196           they are executable during processing.
10197
10198 1999-09-19 John R. Jackson  <jrj@purdue.edu>
10199
10200         * server-src/amverify.sh.in: put back an "mt status" wait loop I
10201           erroneously removed, but protect it from AIX.
10202
10203 1999-09-19 John R. Jackson  <jrj@purdue.edu>
10204
10205         * common-src/util.c: fix math in bind_portrange so ports requested
10206           are between those the caller passed and make sure port 0 does not
10207           accidentally get requested, which returns a non-privileged port.
10208         * common-src/dgram.c: bind_portrange last port argument is inclusive.
10209         * common-src/stream.c: ditto.
10210         * recover-src/amrecover.c: ditto.
10211         * recover-src/extract_list.c: ditto.
10212
10213 1999-09-19 John R. Jackson  <jrj@purdue.edu>
10214
10215         * server-src/driver.c: do not send a FILE_WRITE to the taper when the
10216           tape queue is empty during a TRYAGAIN (driver core dumped).
10217
10218 1999-09-19 John R. Jackson  <jrj@purdue.edu>
10219
10220         * server-src/taper.c: fix protocol problems when out of tape.  Add
10221           FAKE_TAPE_ERROR debugging code to simulate tape errors.  Fix problem
10222           with command line argument processing.
10223
10224 1999-09-18 John R. Jackson  <jrj@purdue.edu>
10225
10226         * configure.in: several compress/uncompress variables were not being
10227           set properly.
10228
10229 1999-09-18 John R. Jackson  <jrj@purdue.edu>
10230
10231         * client-src/sendbackup.c: pclose returns a child exit status of the
10232           pipe, not an errno, so do not try to strerror it.
10233           Have the index child process exit with the pclose exit code.
10234           Treat index failures as strange rather than fatal so the dump gets
10235           fully processed.  It's more important to have the dump image than
10236           to skip it just because indexing had a (possibly unrelated) problem.
10237
10238 1999-09-15 John R. Jackson  <jrj@purdue.edu>
10239
10240         * server-src/amtoc.pl.in: handle an image failing on one tape and
10241           succeeding on the next.
10242
10243 1999-09-15 John R. Jackson  <jrj@purdue.edu>
10244
10245         * server-src/amstatus.pl.in: generalize the "driver: state" parsing
10246           so it can handle current and future information.
10247
10248 1999-09-15 John R. Jackson  <jrj@purdue.edu>
10249
10250         * common-src/bsd-security.c: if the user field is not present in the
10251           .amandahosts file, it should default to the local user, not the
10252           remote user.  For our purposes, that is CLIENT_USER, not the user
10253           we are running as (although they should be the same).
10254
10255 1999-09-14 John R. Jackson  <jrj@purdue.edu>
10256
10257         * configure.in: Add --with-tmpdir to ./configure and use it for
10258           all Amanda temporary files.  Default --with-dbgdir to --with-tmpdir.
10259           Move libexec/getconf to sbin/amgetconf and add an optional
10260           config parameter.  Add optional config parameter to several
10261           other programs.
10262           Add debugging to chg-chio.
10263           Call new safe_cd() function in most programs to cd to --with-tmpdir
10264           so if they drop core, it goes to a known spot.  Rename existing
10265           core files so more than one failure may be tracked.  Remove most
10266           chdir() and umask() calls (umask is set in safe_cd).
10267         * amplot/amplot.sh.in: ditto.
10268         * changer-src/chg-chio.pl.in: ditto.
10269         * changer-src/chg-chs.sh.in: ditto.
10270         * changer-src/chg-manual.sh.in: ditto.
10271         * changer-src/chg-mtx.sh.in: ditto.
10272         * changer-src/chg-multi.sh.in: ditto.
10273         * changer-src/chg-rth.pl.in: ditto.
10274         * changer-src/chg-scsi-chio.c: ditto.
10275         * changer-src/chg-scsi.c: ditto.
10276         * changer-src/chg-zd-mtx.sh.in: ditto.
10277         * client-src/amandad.c: ditto.
10278         * client-src/calcsize.c: ditto.
10279         * client-src/killpgrp.c: ditto.
10280         * client-src/rundump.c: ditto.
10281         * client-src/runtar.c: ditto.
10282         * client-src/selfcheck.c: ditto.
10283         * client-src/sendbackup-gnutar.c: ditto.
10284         * client-src/sendbackup.c: ditto.
10285         * client-src/sendsize.c: ditto.
10286         * common-src/alloc.c: ditto.
10287         * common-src/amanda.h: ditto.
10288         * common-src/amflock.c: ditto.
10289         * common-src/bsd-security.c: ditto.
10290         * common-src/debug.c: ditto.
10291         * common-src/file.c: ditto.
10292         * common-src/genversion.c: ditto.
10293         * restore-src/amidxtaped.c: ditto.
10294         * server-src/Makefile.am: ditto.
10295         * server-src/amadmin.c: ditto.
10296         * server-src/amcheck.c: ditto.
10297         * server-src/amcheckdb.sh.in: ditto.
10298         * server-src/amcleanup.sh.in: ditto.
10299         * server-src/amcleanupdisk.c: ditto.
10300         * server-src/amdump.sh.in: ditto.
10301         * server-src/amflush.c: ditto.
10302         * server-src/amfreetapes.sh.in: ditto.
10303         * server-src/amindex.c: ditto.
10304         * server-src/amindex.h: ditto.
10305         * server-src/amindexd.c: ditto.
10306         * server-src/amlabel.c: ditto.
10307         * server-src/amrmtape.sh.in: ditto.
10308         * server-src/amstatus.pl.in: ditto.
10309         * server-src/amtape.c: ditto.
10310         * server-src/amtrmidx.c: ditto.
10311         * server-src/amtrmlog.c: ditto.
10312         * server-src/amverify.sh.in: ditto.
10313         * server-src/changer.c: ditto.
10314         * server-src/changer.h: ditto.
10315         * server-src/conffile.c: ditto.
10316         * server-src/conffile.h: ditto.
10317         * server-src/diskfile.c: ditto.
10318         * server-src/driver.c: ditto.
10319         * server-src/driverio.c: ditto.
10320         * server-src/dumper.c: ditto.
10321         * server-src/find.c: ditto.
10322         * server-src/getconf.c: ditto.
10323         * server-src/holding.c: ditto.
10324         * server-src/infofile.c: ditto.
10325         * server-src/logfile.c: ditto.
10326         * server-src/planner.c: ditto.
10327         * server-src/reporter.c: ditto.
10328         * server-src/tapefile.c: ditto.
10329         * server-src/taper.c: ditto.
10330
10331 1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10332
10333         * common-src/bsd-security.c (bsd_stream): fn should take an ssize_t.
10334         (bsd_stream_read): Likewise, declaration.
10335         * common-src/rsh-security.c (rsh_stream): Likewise.
10336         (rsh_stream_read): Likewise, declaration and definition.
10337         * common-src/krb4-security.c (dummy): Compile when disabled.
10338         * common-src/krb5-security.c (dummy): Likewise.
10339
10340         * server-src/reporter.c (sDivZero): Change from float to double, to
10341         build with DEC cc.
10342
10343         * configure.in: Get snapshot date from SNAPSHOT file, if it exists.
10344         (VERSION): Add the date to it.
10345         (SNAPSHOT_STAMP): AC_SUBST to the SNAPSHOT file, if it exists.
10346         * Makefile.am (EXTRA_DIST): Added $(SNAPSHOT_STAMP).
10347         (config.status): Depend on $(SNAPSHOT_STAMP).
10348         (SNAPSHOT): Dummy rule to allow reconfigure if it's removed.
10349
10350         * config/Makefile.am: Remove all traces of acconfig.h.
10351
10352         * server-src/changer.c (changer_command): Fix for amwait_t != int.
10353
10354 1999-09-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10355
10356         * config/acinclude.m4i: Added comments for config/config.h.in to all
10357         AC_DEFINEs.
10358         * configure.in: Likewise.
10359         * config/acconfig.h: Deleted.
10360         * autogen: Updated.
10361
10362 1999-09-05 John R. Jackson  <jrj@purdue.edu>
10363
10364         * changer-src/chg-chio.pl.in: add -w to #! line to catch more errors.
10365         * recover-src/display_commands.c: fix some compiler warnings.
10366         * recover-src/extract_list.c: fix some compiler warnings.
10367         * restore-src/amrestore.c: fix some compiler warnings.
10368         * server-src/planner.c: fix some compiler warnings.
10369
10370 1999-09-05 John R. Jackson  <jrj@purdue.edu>
10371
10372         * recover-src/extract_list.c: add VRESTORE and VXRESTORE support.
10373
10374 1999-09-05 John R. Jackson  <jrj@purdue.edu>
10375
10376         * common-src/stream.c: make sure errno is returned properly from
10377           stream_client() and stream_server().
10378         * server-src/taper.c: report errors from stream_server() and
10379           abort.
10380         * recover-src/extract_list.c: make sure errno is preserved.
10381
10382 1999-09-05 John R. Jackson  <jrj@purdue.edu>
10383
10384         * configure.in: make sure the dump and restore programs are defined
10385           in pairs, do not allow just the dump program without restore.
10386         * client-src/sendbackup-dump.c: assume restore program is present
10387           if dump program is.
10388         * common-src/genversion.c: assume restore program is present if
10389           dump program is.
10390
10391 1999-09-05 John R. Jackson  <jrj@purdue.edu>
10392
10393         * common-src/genversion.c: CLIENT_LOGIN has to be defined so there
10394           is no point testing for it.
10395         * server-src/conffile.c: ditto.
10396
10397 1999-09-05 John R. Jackson  <jrj@purdue.edu>
10398
10399         * server-src/amverify.sh.in: add SMBCLIENT, VRESTORE, VXRESTORE
10400           and XFSRESTORE support.
10401
10402 1999-09-05 John R. Jackson  <jrj@purdue.edu>
10403
10404         * server-src/conffile.c: add several common abbreviations to config
10405           file processing.
10406
10407 1999-09-01 John R. Jackson  <jrj@purdue.edu>
10408
10409         * server-src/amtoc.pl.in: allow multiple -s entries.
10410
10411 1999-09-01 John R. Jackson  <jrj@purdue.edu>
10412
10413         * server-src/reporter.c: handle/report a common columnspec syntax
10414           error instead of dumping core.
10415
10416 1999-09-01 John R. Jackson  <jrj@purdue.edu>
10417
10418         * man/amanda.8.in: typo in columnspec description.
10419
10420 1999-09-01 John R. Jackson  <jrj@purdue.edu>
10421
10422         * common-src/dgram.h: expressions in #define should be protected by
10423           parenthesis.
10424
10425 1999-08-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
10426
10427         * changer-src/chg-chs.sh.in (changerdev): Pass it as -f flag to CHS.
10428         * docs/TAPE.CHANGERS: Document it.
10429         Reported by Mike Horansky <moho@stanford.EDU>
10430
10431         * server-src/conffile.c (read_dumptype): Renamed from get_dumptype.
10432         Extended to support reading a named dumptype from a specified FILE.
10433         (get_dumptype): Use read_dumptype.
10434         (main): Read disklist, so that custom dumptypes are shown.
10435         * server-src/conffile.h (read_dumptype): Declare.
10436         * server-src/diskfile.c (parse_diskline): Get line_num and line by
10437         reference.  New argument diskf.  Use read_dumptype if dumptype
10438         starts with `{'.
10439         (main): Update.
10440         * man/amanda.8.in (disklist): Document it.
10441         * NEWS: Likewise.
10442         * example/disklist: Exemplify it.
10443
10444 1999-08-23 John R. Jackson  <jrj@purdue.edu>
10445
10446         * recover-src/amrecover.c (main): fix test for IPPORT_RESERVED.
10447         * recover-src/extract_list.c (extract_files_setup): ditto.
10448
10449 1999-08-23 John R. Jackson  <jrj@purdue.edu>
10450
10451         * server-src/reporter.c (copy_template_file): make sure all data is
10452           written to label template pipeline.
10453
10454 1999-08-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
10455
10456         * common-src/Makefile.am: Replace .o with OBJEXT.  List sources
10457         explicitly, instead of LDADDing the corresponding objects.
10458         (OBJ_EXTENSION): Wipe out, use OBJEXT.
10459
10460         * configure.in: Call AC_OBJEXT.
10461         (LTLIBOBJS, LTALLOCA): Define, according to ac_objext.
10462         * common-src/Makefile.am (libamanda_la_LIBADD): Use them.
10463         (libamanda_a_LIBADD): Use LIBOBJS and ALLOCA.
10464
10465         * common-src/Makefile.am (genversion.o): Revert last change, it was
10466         just a bug in automake's --disable-dependency-tracking.
10467
10468 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
10469
10470         * README (platforms): Added OpenBSD.
10471         Reported by Ian Darwin <ian@sq.com>
10472         (platforms): Added SunOS 5.7.
10473
10474 1999-08-15  Derek Ney <derek@hipgraphics.com>, Alexandre Oliva  <oliva@dcc.unicamp.br>
10475
10476         * client-src/sendsize.c (SAMBA_DEBUG_LEVEL): New macro, "0" for
10477         Samba >= 2, "3" for older ones.
10478         (getsize_smbtar): Use `du' if SAMBA_VERSION >= 2, and the
10479         appropriate SAMBA_DEBUG_LEVEL.
10480
10481 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
10482
10483         * common-src/Makefile.am (genversion.o): Depend on genversion.c
10484         too.  It seems that IRIX's make doesn't work without it.
10485         Reported by Brian Cuttler <brian@wadsworth.org>
10486
10487 1999-08-15  Jon LaBadie  <jon@jgcomp.com>
10488         
10489         * tape-src/tapetype.c: Speed it up by using larger sections in the
10490         second pass.
10491
10492 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
10493
10494         * man/amanda.8.in (skip-full, incronly): Document existing bugs.
10495
10496         * server-src/conffile.c (init_defaults): Default disksize to 0.
10497         * man/amanda.8.in (holdingdisk use): Document it.
10498         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
10499
10500         * server-src/planner.c (setup_estimate): Typo.
10501         (next_level0): Typo.
10502
10503         * config/ltconfig, config/ltmain.sh: Update from libtool 1.3.3.
10504
10505         * example/amanda.conf.in: Clarify holdingdisk::use 0.
10506
10507         * config/missing: Update from automake 1.4a.
10508
10509 1999-07-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10510
10511         * man/amanda.8.in: typo.
10512
10513 1999-06-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
10514
10515         * man/amrestore.8: Document holding-file usage.
10516
10517 1999-06-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
10518
10519         * Makefile.am (pkgdata_DATA): Install COPYRIGHTs.
10520         (EXTRA_DIST): Remove docs/*.
10521         * docs/Makefile.am: New file.
10522         (pkgdata_DATA): Install all docs.
10523         * configure.in: Output docs/Makefile.
10524         Suggested by Paul L. Lussier <plussier@baynetworks.com>
10525
10526         * docs/FAQ (selfcheck time-out): NIS services, inetd rebooting,
10527         keyboard time-out, lsof.
10528
10529         * server-src/amverify.sh.in (HEADER): Use `sed 1q'  instead of the
10530         not-that-portable `head -1'.
10531         Reported by Andrew Lare <lare@eos913c.gsfc.nasa.gov>
10532
10533 1999-06-19  Alexander Zangerl  <az@Austria.EU.net>
10534
10535         * client-src/sendbackup-dump.c (re_table): Match Solaris vxdump
10536         output.
10537
10538 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10539
10540         * server-src/dumper.c (read_indexfd): typo
10541
10542 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10543
10544         * server-src/dumper.c (do_dump): Close the indexout fh and wait
10545         for the completion of the index compress process.
10546         * server-src/dumper.c (read_mesgfd,read_datafd): Call stop_dump only
10547         if the index fd is already shut down.
10548         * server-src/dumper.c (read_indexfd): On EOF, call stop_dump() if both
10549         the mesg and data fd are shut down.
10550
10551 1999-06-15  Adam Hammer  <hammer@math.purdue.edu>
10552
10553         * server-src/amverify.sh.in: Wait until device becomes ready after
10554         rewinding.
10555
10556 1999-06-15  Björn Brezger <Bjoern.Brezger@uni-konstanz.de>, Alexandre Oliva  <oliva@dcc.unicamp.br>
10557
10558         * client-src/calcsize.c (ROUND): Rewrite, it was broken.
10559         Reported by Erik Lindahl <erik@theophys.kth.se>
10560
10561 1999-06-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
10562
10563         * server-src/conffile.h: Changed all `long's to `int's, as they
10564         broke get_number et al on 64bit platforms.
10565         Reported by Erik Lindahl <erik@theophys.kth.se>
10566
10567         * configure.in (bcopy, bzero): Oops, ICE_CHECK_DECL already checks
10568         for availability.
10569
10570         * configure.in (bcopy, bzero): Check whether they're available.
10571         * common-src/amanda.h (bcopy, bzero): If not, use memmove and
10572         memset.
10573         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
10574
10575         * server-src/amcheck.c (start_server_check): If info file does not
10576         exist, explain that it is supposed to be created on the next run.
10577
10578 1999-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
10579
10580         * server-src/tapefile.c (lookup_last_reusable_tape): Fix order of
10581         arguments in match() invocation.
10582         From Anthony Worrall <Anthony.Worrall@reading.ac.uk>
10583
10584 1999-06-08  Mike Grupenhoff <kashmir@munge.com>
10585
10586         * restore-src/amrestore.c: second arg to restore() is a char *, not
10587         a string_t.  Adjust prototype accordingly.
10588
10589 1999-06-07  Mike Grupenhoff <kashmir@munge.com>
10590
10591         * common-src/util.c (bind_portrange): function that attempts
10592         to bind a network connection to a port in a given range.
10593         * common-src/util.h: prototype bind_portrange().
10594         * common-src/dgram.c (bind_reserved): remove, superceeded by
10595         bind_portrange().
10596         (dgram_bind): use bind_portrange() instead of bind_reserved(), and
10597         try user specified ports first, then reserved ports, then regular
10598         ports.
10599         * common-src/dgram.h: remove prototype for bind_reserved().
10600         * common-src/stream.c (stream_server, stream_client): use
10601         bind_portrange() instead of bind_reserved(), and try user
10602         specified ports first, then reserved ports, then regular
10603         ports.
10604         * recover-src/amrecover.c (main): use bind_portrange() instead
10605         of bind_reserved(), and verify that the port it gives us is
10606         a reserved one.
10607         * recover-src/extract_list.c (extract_files_setup): use
10608         bind_portrange() instead of bind_reserved(), and verify that
10609         the port it gives us is a reserved one.
10610
10611 1999-06-07  Mark F. Vlems  <mvlems@vbox.xs4all.nl>
10612
10613         * server-src/amindexd.c (reply, lreply, fast_lreply): Return code 0
10614         of printf does not imply an error on some systems (Openstep) even if
10615         the number of written characters is more than 0.  The weakened error 
10616         check has no implication for the correct implementations of printf.
10617
10618 1999-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
10619
10620         * server-src/driver.c (dump_to_tape): Tell hard from soft
10621         (retryable) failures in both dumper and taper results, and behave
10622         accordingly.
10623
10624         * docs/SYSTEM.NOTES: On Trusted Solaris, the format of inetd.conf is 
10625         slightly different.
10626         Reported by Julian Stevens <julian.stevens@baedsl.co.uk>
10627
10628 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
10629
10630         * common-src/util.c (fullread, fullwrite): versions of
10631         read()/write() that keep looping until the buffer is
10632         completely read/written, or an error occurs.
10633         * common-src/Makefile.am: build util.c/util.h
10634         * common-src/fileheader.c, common-src/fileheader.h
10635         (fill_buffer): remove, replaced with fullread()
10636         * server-src/holding.c: use fullread() instead of fill_buffer().
10637         * common-src/bsd-security.c, restore-src/amrestore.c,
10638         server-src/amcheck.c, server-src/driverio.c, server-src/dumper.c,
10639         server-src/logfile.c, server-src/taper.c: use fullread/fullwrite
10640         instead of doing the retry loops manually.
10641
10642 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
10643
10644         * server-src/dumper.c (read_mesgfd, read_datafd): upon EOF,
10645         close the stream.  If the other stream is also closed, shut
10646         down.
10647
10648 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
10649
10650         * client-src/amandad.c (REP_TIMEOUT): bump up to six hours, for slow
10651         machines.
10652         (exit_check): remove waitpid(), let the service reap its own
10653         children.
10654         (s_repwait): rename 'err' to 'errstr' to avoid conflict with
10655         function in some libcs.
10656         (s_ackwait): if no pipes were opened by this service, then shut
10657         it down here.
10658         (process_netfd): on EOF, be sure to also close the network
10659         stream.  Also, if this is the last stream to be closed, shut
10660         down the service.
10661         (allocstream): correct a comment
10662         (service_delete): only close the security handle if it is still
10663         open.  Reap our children here instead of in exit_check().
10664
10665 1999-06-01  Mike Grupenhoff <kashmir@munge.com>
10666
10667         * server-src/taper.c (write_buffer): assert properly
10668
10669 1999-06-01  John Williams  <williams@morinda.com>
10670
10671         * changer-src/scsi-hpux.c (eject_tape): Enable it, it works.
10672
10673 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
10674
10675         * docs/INSTALL: Point to the patches page.  Update version numbers.
10676
10677         * example/config.site: Document UDPPORTRANGE.
10678
10679 1999-06-01  Jens Persson  <jens.persson@btj.se>
10680
10681         * configure.in (UDPPORTRANGE): Set from --with-udpportrange.
10682         * config/acconfig.h: Add UDPPORTRANGE.
10683         * common-src/dgram.c: Implement it.
10684
10685 1999-05-27  Mike Grupenhoff <kashmir@munge.com>
10686
10687         * common-src/alloc.c (alloc, debug_alloc, newalloc, debug_newalloc):
10688         make the size argument a size_t.
10689         (alloc): if an allocation fails, in the error message print how
10690         many bytes we tried to alloc.  This helps us determine if the
10691         alloc call was errant, or we really were out of memory.
10692         * common-src/amanda.h: update alloc/newalloc prototypes for
10693         size_t changes.
10694
10695 1999-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
10696
10697         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
10698         to libtool 1.3.2 plus a few patches.
10699         * config/config.guess, config/config.sub: Ditto.
10700
10701 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
10702
10703         * common-src/protocol.c: retry connection failures three times,
10704         waiting five seconds between each attempt.  Also, fix a lot
10705         of untrue comments.
10706
10707 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
10708
10709         * client-src/amandad.c: add a lot more dbprintfs so we know what's
10710         going on.
10711         (service_new): use error() instead of dbprintf(); exit()
10712
10713
10714 1999-05-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
10715
10716         * docs/FAQ (tar-patch): Mention sparse file problem.
10717
10718         * recover-src/uscan.l: #undef `ECHO' after #include amanda.h; some
10719         system header files may define it.
10720         Reported by Dan Lipofsky <danlip@cyc.com>
10721
10722         * */Makefile.am: Do not define ACLOCAL_M4, COMPILE or
10723         AMANDA_CFLAGS.
10724         * Makefile.am: Create acinclude.m4 in the top-level directory.
10725         * config/Makefile.am: Create link to acconfig.h in the top-level
10726         directory.
10727         * configure.in: Add AMANDA_CFLAGS to CFLAGS.  Set DUMPER_DIR without 
10728         trying to run it.
10729         * common-src/Makefile.am: Create genversion.h with #defines, to
10730         avoid genversion-specific CPPFLAGS.
10731         * common-src/genversion.c: #include genversion.h
10732
10733 1999-05-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10734
10735         * server-src/amandad.c (state2str): string "s_processrep" is 13
10736         caracters.
10737
10738 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
10739
10740         * server-src/amcheck.c (main): if we reap a bogus pid, print
10741         out the error message we generate, instead of whatever junk
10742         happens to be in the buffer.
10743
10744 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
10745
10746         * common-src/bsd-security.c (bsd_stream_read): remove old
10747         code that was part of something that ended up not happening.
10748         (stream_read_callback): use ssize_t.
10749
10750 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
10751
10752         * common-src/event.c (event_register): restructure asserts, and
10753         for EV_READFD/EV_WRITEFD, assert that the fd is < FD_SETSIZE.
10754
10755 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
10756
10757         * common-src/queue.h: move the multiple-inclusion #defines
10758         into application namespace.  #undef each macro before defining
10759         it, in case the OS has an identical macro.
10760
10761 1999-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
10762
10763         * server-src/amindex.h: Keep P macro expression in a single line.
10764         Reported by Patrick Harrold <patrickh@nasco-inc.com>
10765
10766         * common-src/Makefile.am (statfs_LDADD): Added alloc.obj.
10767
10768         * common-src/statfs.c (STATFS_SCALE, sys/statvfs.h): If f_frsize is
10769         zero, use f_bsize.  It now works with GNU libc 2.1.
10770         Reported by Heikki Vatiainen <hessu@cs.tut.fi>
10771
10772 1999-05-22 Alex Pilosov <alex@pilosoft.com>
10773
10774         * server-src/amindexd.c (is_dump_host_valid): sanitize_name(host)
10775         before doing a stat.
10776         * server-src/tapefile.c (lookup_nb_tape): init pos to 0.
10777
10778 1999-05-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10779
10780         * server-src/reporter.c: take the orig size from the SUCCESS line.
10781         use value from the infofile only the datestamp are equal.
10782         Write all available value.
10783
10784 1999-05-18  Mike Grupenhoff <kashmir@munge.com>
10785
10786         * common-src/strerror.c (strerror): restructure so that it doesn't
10787         need to malloc.
10788
10789 1999-05-17  Mike Grupenhoff <kashmir@munge.com>
10790
10791         * common-src/genversion.c (prvar): prototype declared it static,
10792         but actual function was still extern.
10793
10794 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10795
10796         * server-src/planner.c (pick_inclevel): check for base_level+1 if
10797         we don't have estimate for base_level. Needed for FORCE_BUMP.
10798         * server-src/planner.c (promote_highest_priority_incremental):
10799         Don't promote if we don't have level 0 estimate. No more need
10800         to check for skip_full, DS_NOFULL, DS_INCRONLY or FORCE_BUMP.
10801
10802 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10803
10804         * server-src/amflush.c: ignore SIGPIPE
10805         * server-src/driver.c: ignore SIGPIPE
10806         * server-src/driverio.c (taper_cmd, dumper_cmd): return 0 on error, 
10807         1 on success.
10808         * server-src/driverio.h (taper_cmd, dumper_cmd): prototype.
10809
10810 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
10811
10812         * server-src/dumper.c: make prototypes consistent, (putresult):
10813         make first arg const.
10814
10815 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
10816
10817         * server-src/conffile.c (getconf_byname): islower takes an int
10818         for an arg.
10819         * server-src/diskfile.c (upcase): islower takes an int for an
10820         arg.
10821         * server-src/driver.c (update_failed_dump_to_tape): prototype.
10822         * server-src/holding.c (insert_dirname, scan_holdingdisk):
10823         prototype and make static, (is_datestr): isdigit takes an int
10824         for an arg.
10825
10826 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
10827
10828         * client-src/calcsize.c (basename): make static, prototype, and
10829         only include if BUILTIN_EXCLUDE_SUPPORT is defined and
10830         HAVE_BASENAME is not defined.
10831         * client-src/getfsent.c (dev2rde, samefile): prototype and
10832         make static.
10833         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c
10834         (start_backup, end_backup): prototype.
10835         * client-src/sendbackup.c (index_closed, save_fd): prototype
10836         and make static.
10837         * client-src/versionsuffix.c (main): prototype.
10838         * common-src/alloc.c (internal_vstralloc): prototype.
10839         * common-src/file.c (mk1dir): prototype, make static, and make
10840         first arg const.
10841         * server-src/amadmin.c (check_dumpuser): prototype.
10842         * server-src/amflush.c (get_letter_from_user): prototype and make
10843         static.
10844         * server-src/amindexd.c: prototype and make static numerous local
10845         functions.
10846         * server-src/amlabel.c (main): prototype.
10847         * server-src/amtrmidx.c (main): prototype.
10848         * server-src/changer.c (report_bad_resultstr, run_changer_command):
10849         prototype.
10850         * server-src/conffile.h: properly prototype getconf_holdingdisks()
10851         * server-src/driverio.h: properly prototype init_driverio().
10852         * server-src/find.c (find_compare, parse_taper_datestamp_log):
10853         prototype.
10854         * server-src/infofile.c (zero_info, open_txinfofile,
10855         close_txinfofile, read_txinfofile, write_txinfofile,
10856         delete_txinfofile): prototype and make static.
10857         * server-src/planner.c (main, askfor): prototype.
10858
10859 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
10860
10861         * server-src/server_util.c: include server_util.h for prototypes
10862         * server-src/tapefile.h: properly prototype lookup_nb_tape()
10863         * server-src/driverio.c (childstr): make static, make return
10864         val const.
10865
10866 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
10867
10868         * server-src/find.h: properly prototype find_log()
10869         * server-src/amtrmlog.c (main): prototype.  find_log() takes
10870         no arguments.
10871
10872 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
10873
10874         * server-src/reporter.c: make all functions and globals
10875         static.  Prototype all functions, and make them consistent wrt
10876         K&R.  Place all prototypes together.  Place data type
10877         declarations before the prototypes that use them.  Remove
10878         unused sort_by_time().
10879
10880 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
10881
10882         * server-src/dumper.c (process_dumpline): clean up the error
10883         return code
10884         * server-src/dumper.c (log_msgout): no need to reuse errf global,
10885         it makes me nervous.  Also, use amfree instead of free.
10886
10887 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
10888
10889         * common-src/packet.c (pkt_cat): remove a bogus assert - len is
10890         a size_t, which is unsigned, so it will always be >= 0.
10891
10892 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
10893
10894         * client-src/amandad.c (action_t): consolidate A_PKTTIMEOUT and
10895         A_REPTIMEOUT into just A_TIMEOUT.
10896
10897 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
10898
10899         * common-src/amanda.h, common-src/alloc.c, common-src/event.c,
10900         common-src/rsh-security.c, server-src/driver.c,
10901         server-src/dumper.c: (min, max): consolidate all min/max
10902         definitions into amanda.h
10903
10904 1999-05-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
10905
10906         * docs/TAPE.CHANGERS (chg-rth): URL for chs is no longer valid.
10907
10908 1999-05-12  Mike Grupenhoff <kashmir@munge.com>
10909
10910         * common-src/amanda.h, common-src/alloc.c, common-src/file.c:
10911         const the filename arg to all of the dbmalloc versions of
10912         alloc and io functions
10913
10914 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
10915
10916         * common-src/protocol.c (proto_t): don't need prev and next ptrs
10917         anymore
10918
10919 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
10920
10921         * common-src/amanda.h, common-src/alloc.c: remove the static
10922         buffer manager - nothing uses it.  It can be resurrected in
10923         the future if needed.
10924
10925 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
10926
10927         * common-src/amanda.h: define stringconcat() macros that
10928         concatenate two const strings together
10929         * common-src/versuff.c.in (versionsuffix, version): generate
10930         data at compile time using stringconcat().
10931         * common-src/genversion.c: simplify, don't need to alloc anything
10932         * common-src/Makefile.am (genversion_LDADD): this doesn't need
10933         alloc.o or error.o anymore
10934
10935 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
10936
10937         * common-src/security.c (security_handleinit, security_streaminit):
10938         change default error message "unknown error" to "unknown protocol
10939         error" or "unknown stream error" to help identify where an
10940         messageless error was triggered.
10941
10942 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
10943
10944         * client-src/amandad.c (main): call initgroups(), and also set
10945         the real gid.
10946
10947 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
10948
10949         * server-src/driver.c (start_some_dumps): if a dumper is
10950         constrained, and some dumpers or the taper are active, register
10951         a EV_WAIT event.
10952         * server-src/driver.c (handle_taper_result,
10953         handle_dumper_result):  wakeup constrained dumpers after we
10954         have freed some resources.
10955
10956 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
10957
10958         * common-src/fileheader.c, common-src/fileheader.h: rework the
10959         fileheader parse and format code to remove a lot of duplicated
10960         code (in the F_DUMPFILE and F_CONT_DUMPFILE cases), consting
10961         arguments, and simplifying parse code.
10962
10963 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
10964
10965         * client-src/sendsize.c (getsize_dump): print out the strerror
10966         if we can't exec killpgrp.
10967
10968 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
10969
10970         * server-src/dumper.c (add_msg_data): first two arguments
10971         to memmove() were backwards.
10972
10973 1999-05-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10974
10975         * example/amanda.conf.in: typo
10976
10977 1999-05-07  Mike Grupenhoff <kashmir@munge.com>
10978
10979         * common-src/alloc.c (safe_env): allow DISPLAY into the
10980         environment for purify.
10981         * server-src/holding.c (rename_tmp_holding): if fill_buffer
10982         returns 0, don't try to parse a nonexistant header.
10983         * server-src/taper.c (file_reader_side): init datestamp to
10984         NULL, and don't try to free it if it's still NULL on exit.
10985
10986 1999-05-06  Mike Grupenhoff <kashmir@munge.com>
10987
10988         * server-src/driver.c (start_some_dumps): sleep_time is an
10989         offset, not an absolute.  Leave it that way when we return from
10990         this function.
10991
10992 1999-05-05  Mike Grupenhoff <kashmir@munge.com>
10993
10994         * server-src/amverify.sh.in (pecho): new function.  Like echo
10995         but doesn't append newline, and supports \r, etc.  Implemented
10996         using perl.
10997         * server-src/amverify.sh.in: use pecho where we used to use echo -n,
10998         etc.  It's nearly impossible to figure out which echo needs what
10999         flags and also know if it supports \r.  So we just punt and use
11000         perl.
11001
11002 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
11003
11004         * server-src/driver.c: convert to use event handler.
11005         (some_dumps_in_progress, lookup_dumper): nuke.
11006         (sleep_time): make a time_t and static.
11007         (IDLE_NO_DUMPERS): give a lower precedence than IDLE_START_WAIT.
11008         (start_some_dumps): make this work on one dumper instead of all.
11009         Call when a dumper is finished and needs more work.
11010         (handle_idle_wait): callback for dumpers waiting for delayed
11011         disks to start up.
11012         * server-src/driverio.c: initialize event handles for dumpers
11013         and the taper.  Nuke addfd().
11014         * server-src/driverio.h: add event handles for each dumper, and
11015         one global one for the taper.  Nuke maxfd and readset globals.
11016
11017 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
11018
11019         * server-src/driver.c (taper_queuedisk): new function that takes
11020         a disk_t, and, if the taper is not busy, tells it to write it out,
11021         or else adds it to the tapeq.  Make use_lffo global static.
11022         * server-src/driver.c (handle_taper_result, handle_dumper_result):
11023         call taper_queuedisk() instead of queueing ourself.
11024
11025 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
11026
11027         * server-src/driver.c: make all local functions static.
11028         Exposed two prototypes for nonexistant functions
11029         (diskname2filename, driver_main), and one function (dump_state)
11030         that was never called.  #if 0 out dump_state.
11031         Nuke inside_dump_to_tape global - it's value was never used.
11032         Make pending_aborts global a static local in handle_dumper_result.
11033
11034 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
11035
11036         * server-src/driverio.h (dumper_t): merge infd and outfd into
11037         just 'fd'.  Comment the other members of the struct.
11038         * server-src/driverio.c: infd/outfd -> fd
11039         * server-src/driver.c (handle_dumper_result): merge some common
11040         code between the FAILED and TRYAGAIN cases.  Comment the
11041         ABORT_FINISHED case.  Also infd/outfd -> fd.
11042
11043 1999-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11044
11045         * server-src/planner.c (when_overwrite): return a big number (1024)
11046         if the tape is not reusable.
11047
11048 1999-04-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
11049
11050         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
11051         from libtool 1.3.
11052
11053 1999-04-29  Mike Grupenhoff <kashmir@munge.com>
11054
11055         * server-src/driver.c (handle_dumper_result): remove FATAL_TRYAGAIN
11056         case, nothing uses it.
11057         * server-src/driverio.c, server-src/driverio.h: garbage collect
11058         FATAL_TRYAGAIN.  static & const cmdstr.
11059
11060 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
11061
11062         * server-src/diskfile.c (read_diskfile): rework to take a
11063         disklist_t * as an argument, and return -1 on error, or 0 on
11064         success.  const the filename argument.  Kill a few globals.
11065         * server-src/diskfile.c (lookup_host, lookup_disk): const
11066         arguments
11067         * server-src/diskfile.h: adjust prototypes for above changes
11068         * server-src/amadmin.c, server-src/amcheck.c,
11069         server-src/amcleanupdisk.c, server-src/amflush.c,
11070         server-src/amindexd.c, server-src/amtrmidx.c,
11071         server-src/amtrmlog.c, server-src/driver.c,
11072         server-src/planner.c, server-src/reporter.c: adjust calls to
11073         read_diskfile() to deal with convention
11074
11075 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
11076
11077         * server-src/dumper.c (read_mesgfd, read_indexfd): on EOF, just
11078         stop reading these streams.  We let EOF on the data stream cause
11079         the entire dump to be stopped.
11080
11081 1999-04-27  Mike Grupenhoff <kashmir@munge.com>
11082
11083         * common-src/rsh-security.c (conn_read_callback): cast
11084         event_wakeup() arg to event_id_t.
11085
11086 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
11087
11088         * common-src/versuff.c.in: Adjust constness to match version.h.
11089
11090         * docs/SYSTEM.NOTES: Recommend GNU tar for Linux.
11091
11092 1999-04-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11093
11094         * server-src/amdump.sh.in: execute amtrmlog.
11095
11096 1999-04-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11097
11098         * client-src/sendbackup.c: rename write_tapeheader to info_taperheader
11099         we already have a write_tapeheader function in dumper.c
11100         * client-src/sendbackup.h: ditto
11101         * client-src/sendbackup-dump.c: ditto
11102         * client-src/sendbackup-gnutar.c: ditto
11103
11104 1999-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11105
11106         * dumper-src/gnutar.pl.in: add debuging code.
11107         * server-src/planner.c (getsize): send optionstr() for estimate 
11108         with a wrapper.
11109         * client-src/selfcheck.c: init program_is_wrapper to 0.
11110         * client-src/sendsize.c: implement DUMPER-API, support only
11111          estimate-direct.
11112
11113 1999-04-22 John R. Jackson  <jrj@purdue.edu>
11114
11115         * configure.in: add --with-broken-fsf to use a read() loop instead
11116         of the fsf ioctl on some broken systems.
11117         * config/acconfig.h: ditto
11118         * tape-src/tapeio.c (tapefd_fsf): ditto
11119
11120 1999-04-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
11121
11122         * docs/SYSTEM.NOTES: Typo
11123         * docs/SAMBA: Update on samba-largefs patch.
11124         * docs/FAQ: New FAQ about promotion of full dumps.
11125
11126 1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
11127
11128         * tape-src/tapeio.c (tape_open): Retry after EBUSY and EINTR too.
11129         Comment out test that would set filename to /dev/null.
11130
11131 1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
11132
11133         * docs/WISHLIST: Global reformat.  Removed fixed issues.  Added
11134         auto-flush mode.
11135
11136 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11137
11138         * server-src/server_util.c: use snprintf instead of ap_snprintf.
11139
11140 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11141
11142         * server-src/server_util.c: new file for utility function.
11143         New function construct_datestamp.
11144         * server-src/server_util.h: ditto
11145         * server-src/Makefile.am: link server_util.c with libamserver.
11146         * amcleanupdisk.c (construct_datestamp): remove function.
11147         * server-src/driver.c: ditto
11148         * server-src/dumper.c: ditto
11149         * server-src/amflush.c: ditto
11150         * server-src/planner.c: ditto
11151
11152 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
11153
11154         * common-src/bsd-security.c: this doesn't need queue.h
11155
11156 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
11157
11158         * common-src/event.c: Insert new events at the head of the eventq,
11159         not the tail, so we don't loop forever if a newly registered
11160         event has the same type as the one currently firing.  Noticed
11161         and diagnosed by Jean-Louis Martineau.
11162         Use a LIST for the eventq, instead of a TAILQ, since we don't need
11163         to do tail insertions anymore.
11164         Make the eventq_* functions take a queue name so we can also use
11165         them for the handle cache.  Rename eventq_append() to eventq_add().
11166
11167 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11168
11169         * dumper-src/gnutar.pl.in: add DUMPER_DIR to INC.
11170
11171 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11172
11173         * client-src/selfcheck.c: Implement DUMPER-API.
11174         * dumper-src/gnutar.pl.in (command_selfcheck): print OK, the function
11175         is not implemented.
11176         * dumper-src/generic-dumper.pl.in (parse_options): option are
11177         separated by ;
11178
11179 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
11180
11181         * server-src/dumper.c: make dumpsize and headersize static.  Rename
11182         nb_header_block to headersize and also make it static.  headersize
11183         now counts bytes instead of blocks, just like the other two.
11184         Use SEEK_SET in an lseek instead of hardcoding 0.
11185
11186 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
11187
11188         * configure.in: implement --with-cflags to allow turning on
11189         compiler warnings and optimizations
11190
11191 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
11192
11193         * common-src/event.c (gethandle, puthandle): new functions that
11194         keep a cache of handles to reduce calls to malloc/free.
11195
11196 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
11197
11198         * common-src/alloc.c (dbmalloc_caller_loc): const the file
11199         arg, use the queue macros to maintain the list.
11200
11201 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
11202
11203         * common-src/versuff.c.in: const the return str of version()
11204         and versionsuffix.  Bump copyright to 1999.
11205
11206 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
11207
11208         * client-src/amandad.c, client-src/amandad.h,
11209         client-src/sendbackup-dump,c, client-src/sendbackup-gnutar.c,
11210         client-src/sendbackup.c, common-src/bsd-security.c,
11211         common-src/dgram,c, common-src/dgram.h, common-src/event.c,
11212         common-src/event.h, common-src/krb4-security.c,
11213         common-src/krb5-security.c, common-src/packet.c,
11214         common-src/packet.h, common-src/protocol.c, common-src/security.c,
11215         common-src/security.h, server-src/amcheck.c, server-src/conffile.c,
11216         server-src/conffile.h, server-src/dumper.c:
11217         update copyright to 1999 on things I've touched this year.
11218
11219 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
11220
11221         * common-src/amanda.h: remove version_info extern.  Bump
11222         copyright to 1999
11223         * common-src/genversion.c: constify version_info.  Emit
11224         {KRB4,KRB5,RSH}_SECURITY.  Bump copyright.
11225         * common-src/version.h: const VERSION_COMMENT and version_info.
11226         const return str and fully prototype versionsuffix() and version()
11227         prototypes.  Bump copyright.
11228         * server-src/planner.c (main): iterate through version_info using
11229         an index instead of a pointer.
11230
11231 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
11232
11233         * server-src/conffile.c: explicitly give the seen_columnspec global
11234         an int type instead of letting the compiler default to it.
11235
11236 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
11237
11238         * common-src/event.h (event_id_t): a new typedef for the
11239         first arg to event_register.  Should be wide enough to
11240         reasonably hold an int or a pointer (but it is ok to trunc
11241         the pointer if necessary).  Update proto for event_register()
11242         and event_wakeup().
11243         * common-src/event.c: struct event_handle->data is now an
11244         event_id_t.
11245         (event_register, event_wakeup): adjust args for event_id_t)
11246         (event_register): event_id_t is unsigned, no need to assert
11247         positivity anymore.
11248         * common-src/rsh-security.c (rsh_stream_read): cast first arg to
11249         event_register() to event_id_t.
11250
11251
11252 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
11253
11254         * common-src/event.c (release): nuke, and inline into event_loop.
11255         * common-src/event.c (event_loop): flesh out the timeout comment.
11256         Combone the EV_WAIT and EV_DEAD empty cases in the post-select loop.
11257         * common-src/event.h: flesh out the event_type_t comment.
11258
11259 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
11260
11261         * common-src/event.c (fire): inline this with a macro.  Remove
11262         timestamp arg.  eh->lastfired is now only valid for EV_TIME
11263         events.  Removes several time() systems from the critical path.
11264         * common-src/event.c (event_wakeup): have this fire EV_WAIT events
11265         directly instead of deferring back to the event loop.  Removes the
11266         sequencing restriction for event_wakeup.
11267
11268 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
11269
11270         * server-src/planner.c (getsize): put the hosts disks on the waitq
11271         before sending the request, not after.
11272
11273 1999-04-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
11274
11275         * docs/UPGRADE: Update URL for archived message.
11276
11277 1999-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11278
11279         * server-src/amcheck.c (main): should not set real uid to 0.
11280
11281 1999-04-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11282
11283         * common-src/bsd-security.c (bsd_connect): dgram_bind return the port
11284         number, we don't need ntohs().
11285
11286 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
11287
11288         * common-src/dgram.c,common-src/dgram.h: nothing uses dgram_alloc()
11289         anymore, gc them.
11290
11291 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
11292
11293         * server-src/amindexd.c: dgram.h not needed
11294
11295 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
11296
11297         * common-src/event.c: fix a bunch of inaccurate comments.
11298         * common-src/event.c (event_loop): prune dead events in the
11299         pre-select pass instead of in the EV_WAIT pass.
11300         * common-src/event.c (fire): factor out all code that fires
11301         events into a 'fire' function.
11302         * common-src/event.c (signal_handler): bounds check the signal
11303         number against the size of sigtable instead of assuming sigtable
11304         is NSIG big.
11305
11306 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
11307
11308         * client-src/amandad.c (allocstream): if security_stream_server()
11309         fails, dbprintf the error.
11310
11311 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
11312
11313         * configure.in: implement --with-rsh-security
11314         * common-src/rsh-security.c: first attempt at using rsh or a rsh-like
11315         command for dump transport and authentication.  Still has lots
11316         of "issues"
11317         * common-src/Makefile.am: build rsh-security.c
11318         * common-src/security.c: add rsh_security_driver to the drivers array
11319         * config/acconfig.h: define RSH_SECURITY
11320
11321 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
11322
11323         * server-src/dumper.c (runcompress): use the proper end of the pipe
11324         for writing and reading.  Also, grab errno early on fork error
11325         before calling close.
11326         * server-src/dumper.c (sendbackup_response): make sure the client
11327         at least send us a mesgfd and datafd.
11328
11329 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
11330
11331         * client-src/amandad.c (main): don't dup stdout to db_fd - it might
11332         be needed by the security driver
11333         * client-src/amandad.c (s_ackwait, allocstream,): on error, don't
11334         attempt to event_release a handle we haven't attached yet.
11335
11336 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
11337
11338         * ap_snprintf -> snprintf, ap_vsnprintf -> vsnprintf
11339
11340 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11341
11342         * client-src/Makefile.am (noinst_HEADERS): add amandad.h
11343
11344 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11345
11346         * common-src/Makefile.am (libamanda_la_SOURCES): build
11347         krb4-security.c
11348
11349 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11350
11351         * configure.in: implement --with-dbmalloc=[dir], where dir is
11352         where the dist is unpacked and built.  This could be improved on,
11353         because it doesn't handle the case where it's installed.
11354
11355 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11356
11357         * client-src/sendbackup.c: security changes:
11358         remove krb4 code and NAUGHTY_BITS macros.
11359         (parse_options): don't look for krb4 options
11360         (main): don't close pipes that were handed to us from amandad.
11361         Don't open stream directly - just use the pipes given to us.
11362         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c:
11363         Remove krb4 code and NAUGHTY_BITS macros.
11364
11365 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11366
11367         * client-src/amandad.h: new file describing the pipes between
11368         amandad and children.
11369         * client-src/amandad.c: rewrite for security changes.  Can
11370         now handle multiple requests simultaneously, and has a state
11371         machine to deal with each active request.
11372         This handles all network transmissions and authentication.
11373         Each child process (sendbackup, selfcheck) gets three general
11374         purpose pipes to amandad which it may allocate for anything.
11375         amandad relays these pipes to equivalent security_streams.
11376         Lots of other stuff.
11377         Finally, NEED_KEYPIPE stuff removed.
11378
11379 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11380
11381         * server-src/dumper.c: security changes:
11382         Remove krb4 includes and NAUGHTY_BITS macros.
11383         Remove no-longer-true comment about DATABUF_SIZE ==
11384         TAPE_BLOCK_BYTES for krb4
11385         Remove file descriptor and event handle from streams array.  Add
11386         a security_stream_t.
11387         Remove global read buffer.
11388         (check_options): remove krb4 code.
11389         (service_ports_init): remove, now handled by individual security
11390         drivers.
11391         (main): remove dgram usage.
11392         (do_dump): remove DUMPER_SOCKET_BUFFERING - now handled in the
11393         bsd driver.  schedule reads on the streams using
11394         security_stream_read.
11395         (read_mesgfd,read_datafd,read_indexfd): adapt to
11396         security_stream_read callback interface.
11397         (stop_dump): just call security_stream_close on all non-null
11398         streams.
11399         (sendbackup_response): adapt to new protocol layer error return.
11400         Remove krb4 code.
11401         (startup_dump): stinky hack to parse the security driver string out of
11402         the options passed to us from driver.
11403         Lookup the security driver with said string.
11404         Remove krb4 code.
11405         Free request after calling protocol_sendreq().
11406
11407 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11408
11409         * server-src/planner.c: security changes:
11410         (main): Remove dgram usage.  Call protocol_init().  Remove
11411         krb4 code.
11412         (getsize): remove krb4 code.  Handle protocol layer api changes.
11413         Lookup security driver/complain if not found.  Free request
11414         after calling sendreq.  All hosts get put on the waitq since
11415         sendreq never returns an error.
11416         (handle_result): deal with new protocol layer error semantics.
11417         Remove krb4 code.
11418
11419 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11420
11421         * server-src/conffile.c: remove INTERFACE undef hack.  Our
11422         namespace isn't polluted by krb4 headers anymore, so it's
11423         unneeded.
11424
11425 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11426
11427         * server-src/amcheck.c: security changes:
11428         (main): ignore SIGPIPE - some security drivers might get it.
11429         Remove all usages of dgram.
11430         Make our real uid root and our effective uid amanda so we can
11431         get back to root later (on most os's :()
11432         (start_client_checks): remove krb4 bits.
11433         The dump user check should check the effective uid.
11434         Get the name of the security driver for this host out of
11435         host->diskp->security_driver.
11436         Free req after calling protocol_sendreq() because it will internalize
11437         it.
11438         protocol_sendreq doesn't return any errors - they're all returned
11439         via handle_response.
11440         (handle_result): renamed from handle_response for consistency.
11441         The protocol layer doesn't pass us a proto_t anymore, so detect
11442         errors based on pkt being NULL.
11443         Remove krb4 bits - security violations will be indicated by a 
11444         NULL pkt.
11445
11446 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11447
11448         * common-src/protocol.[ch]: rewrite for security api.  The entry
11449         points now have the 'protocol' prefix.  See protocol.h for more
11450         info.
11451         * common-src/security.c: rewrite for security api.  This now contains
11452         the functions for the 'base class' or some approximation of it.
11453         See security.h for the entry points, or docs/SECURITY-API.
11454
11455 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11456
11457         * common-src/amanda.h: rip out krb4 defines, headers, and
11458         prototypes.  Also, make assert() abort() after calling error().
11459         * common-src/krb4-security.c: stub file that pulls in the real
11460         krb4-security out of amanda-krb-2 if KRB4_SECURITY is defined.
11461
11462 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11463
11464         * server-src/conffile.h: aggregate all of the compress defines
11465         (COMP_{NONE,FAST,BEST,...}) into an enum and typedef it to comp_t.
11466         Make dumptype_t->compress a comp_t.
11467         * server-src/dumper.c: make srvcompress global a comp_t.
11468         * server-src/dumper.c (runcompress): add a comp_t third arg
11469         that specifies the level of compression for this fd.
11470         * server-src/dumper.c (do_dump): always compress index files
11471         with COMP_BEST compression, as pointed out by Jean-Louis Martineau.
11472         * server-src/dumper.c (read_indexfd): read the indexfd, not the
11473         datafd.  Also noted by Jean-Louis Martineau.
11474
11475 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
11476
11477         * server-src/planner.c (main): ignore SIGPIPE.  tcp based
11478         security drivers may get this while getting estimates.
11479         Set the real uid to root, and the effective uid to the amanda
11480         user, so we can get back to root later if needed.
11481         * server-src/planner.c (handle_result): rework error logic
11482         so we don't need to use p->state, which will eventually go
11483         away.
11484
11485 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
11486
11487         * server-src/dumper.c: rewrite to use the event handler instead
11488         of a select loop.  Also, compress the index output using
11489         runcompress() instead of forking a compress ourselves.
11490
11491 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
11492
11493         * server-src/dumper.c (sendbackup_response): don't krb4 authenticate
11494         streams if krb4_auth if false.
11495
11496 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
11497
11498         * server-src/dumper.c (do_dump): some formatting cleanups.  Nuke
11499         'killerr' - we can do without it.
11500
11501 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
11502
11503         * server-src/dumper.c (do_dump): store compresspid inside of
11504         the databuf
11505
11506 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
11507
11508         * server-src/dumper.c (parse_info_line): parse info lines
11509         from sendbackup directly into the 'file' global.  Eliminate
11510         the backup_name, recover_cmd, and compress_suffix globals.
11511         * server-src/dumper.c (finish_tapeheader): nuke usage
11512         of above globals.  Nuke unneeded explicit nul terminations (we
11513         memset the whole thing in fn_init).
11514
11515 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
11516
11517         * server-src/dumper.c (process_dumpline): rewrite to use strtok
11518         and const the argument.
11519         * server-src/dumper.c (make_tapeheader): rename to finish_tapeheader
11520         and prototype it.  Remove the 'type' arg, since it's always
11521         F_DUMPFILE.  Remove call to fn_init().
11522         * server-src/dumper.c (do_dump): call fh_init on 'file' while
11523         initializing globals.  Call finish_tapeheader after getting info
11524         endline.
11525
11526 1999-04-07 John R. Jackson  <jrj@purdue.edu>
11527
11528         * tape-src/tapeio.c: allow tapedev to be /dev/null.
11529         * server-src/taper.c: allow tapedev to be /dev/null.
11530         * man/amanda.8.in: allow tapedev to be /dev/null.
11531
11532 1999-04-07  Mike Grupenhoff <kashmir@munge.com>
11533
11534         * server-src/dumper.c: collect got_info_endline, got_sizeline,
11535         got_endline, and header_done into one bitmask global, and make it
11536         static.  Also, make 'file' static.
11537
11538 1999-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11539
11540         * server-src/reporter.c (TextRule): Fix to write the full string.
11541
11542 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
11543
11544         * configure.in: MIT krb5 has libk5crypto, Cygnus kerbnet 1.2
11545         calls it libcrypto.  Check for both.
11546
11547 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
11548
11549         * common-src/bsd-security.c (check_user): if an .amandahosts
11550         file is missing or unreadable, log this fact to the debug file
11551         instead of claiming that a user doesn't have permission.
11552         * common-src/bsd-security.c (bsd_stream_client): if
11553         DUMPER_SOCKET_BUFFERING is defined, set the socket read buffer to
11554         be twice the size of our read buffer.
11555
11556 1999-04-06  David Mankins <dm@k12-nis-2.bbn.com>
11557
11558         * common-src/security.c (bsd_security_ok): if an .amandahosts
11559         file is missing or unreadable, log this fact to the debug file
11560         instead of claiming that a user doesn't have permission.
11561
11562 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
11563
11564         * server-src/dumper.c: put all of the streams (data,mesg,index)
11565         into an array with a name tag.
11566         * server-src/dumper.c (stop_dump): new function that cleans up
11567         and shuts down all of the streams.
11568         * server-src/dumper.c (sendbackup_response): make static, pass
11569         response_error through p->datap instead of making it global.
11570         Rewrite the parsing to use strtok() and take advantage of the
11571         streams array instead of repeading code for all three streams.
11572
11573 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
11574
11575         * server-src/dumper.c (main): keep our real uid as 0, and make
11576         our effective uid nonprivlidged, so we can get back to root
11577         later.  Don't print what port we bound to.  This info won't
11578         always be available or even applicable.
11579         * server-src/dumper.c (do_dump): create the stats line with one
11580         snprintf instead of a huge amount of code.
11581
11582 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
11583
11584         * server-src/dumper.c (startup_dump): make static, and const all
11585         of the string args
11586         * server-src/dumper.c (do_dump): make static
11587
11588 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
11589
11590         * server-src/dumper.c (do_dump): no need to have a separate buffer
11591         to read the mesgfd - just reuse the one we used for data reads.
11592         Gets rid of one more global.  Also, we don't need to leave
11593         space for a NUL anymore.
11594         * server-src/dumper.c (main): wait for children after closing
11595         our fds.  Some children may be blocked waiting for EOF on outfd,
11596         effectively causing deadlock between dumper and child.
11597
11598 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
11599
11600         * server-src/dumper.c (add_msg_data): now takes a 'len' arg, and
11601         doesn't expect the data to be nul terminated.  Also, move
11602         the buffer from global scope into the function, and have a NULL
11603         arg flush it out if there is leftover data at the end.  Finally,
11604         resize the buffer in 256 byte chunks.
11605
11606 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
11607
11608         * common-src/stream.c, common-src/stream.h (stream_client): add
11609         yet another arg - if nonzero, do a nonblocking connect
11610         * server-src/dumper.c: catch up with extra arg to stream_client()
11611
11612 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
11613
11614         * common-src/bsd-security.c, common-src/security.h: attempt
11615         to decouple security streams from security handles.  Lots of
11616         other restructuring.
11617
11618 1999-04-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11619
11620         * server-src/amcheck.c: -t should read the tapelist to validate
11621         the label.
11622
11623 1999-03-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
11624
11625         * patches/samba-largefs.patch: updated to patch that ended up
11626         installed in the Samba CVS tree
11627
11628         * patches/tar-1.12.patch: patch the configure script so that it
11629         requires autoconf and autoheader to be run; improve the
11630         printf_long_long test so that it doesn't get false positives because 
11631         of endianness
11632
11633         * changer-src/scsi-chio.c: since we do not support FreeBSD 3's
11634         camlib.h interface, #ifdef out all the code
11635         Reported by Francis Lam <Francis.Lam@Leitch.com>
11636
11637         * configure.in (VXSYSLOCPATH): apparently a complex path expression
11638         gets AC_PATH_PROGS confused; set the path beforehand
11639         Reported by Francis Lam <Francis.Lam@Leitch.com>
11640
11641 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11642
11643         * server-src/reporter.c: compiler warning.
11644
11645 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11646
11647         * server-src/amtrmlog.c: new program to move unused log 
11648         to logdir/oldlog.
11649         * server-src/Makefile.am: install amtrmlog.
11650         * server-src/find.h: declare find_log().
11651         * server-src/find.c(find_log): new function to return an array of
11652         all the logfile name that are still needed.
11653         * server-src/find.c(search_logfile): special case if output_find==NULL,
11654         return 1 if it the logfile fir the label.
11655
11656 1999-03-25  Neil Crellin  <neil@wallaby.cc>
11657
11658         * docs/TAPE.CHANGERS (chg-chs): URL for chs
11659
11660 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>, Tom Schutter  <tom@platte.com>, Cloyce D. Spradling  <cloyce@headgear.org>
11661
11662         * patches/samba-largefs.patch: updated for Samba 2.0.*
11663
11664 1999-03-25  Charles Owens  <owensc@enc.edu>
11665
11666         * changer-src/chg-chio.pl.in (changeTape): do not print status to
11667         both stdout and stderr; this causes failures on FreeBSD
11668
11669 1999-03-23  Mike Grupenhoff <kashmir@munge.com>
11670
11671         * common-src/stream.c, common-src/stream.h (stream_client):
11672         const the hostname arg
11673
11674 1999-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11675
11676         * configure.in: AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
11677         * dumper-src/gnutar.pl.in: use @GNUTAR_LISTED_INCREMENTAL_DIR@
11678
11679 1999-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11680
11681         * configure.in: default for DUMPER_DIR is $exec_prefix/dumper.
11682         * Makefile.am: make dumper-src directory
11683         * dumper-src: directory for program that implement the DUMPER-API.
11684         * dumper-src/Makefile.am:
11685         * dumper-src/generic-dumper.pl.in: first draft of a generic wrapper.
11686         * dumper-src/gnutar.pl.in: first draft of a gnutar wrapper.
11687
11688 1999-03-21  Elmar Bartel  <bartel@Informatik.TU-Muenchen.DE>
11689
11690         * conffile.h, conffile.c: new columnspec option
11691         * reporter.c: use it
11692         * man/amanda.8.in: description and example
11693         * example/amanda.conf.in: ditto
11694
11695 1999-03-20  Dahn Nilsson <dahn.nilsson@maxlab.lu.se>
11696
11697         * configure.in: SAMBA_VERSION is not set correctly.
11698
11699 1999-03-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
11700
11701         * client-src/sendbackup-dump.c (re_table): generalize a bit some of
11702         the regular expressions, so as to make us more adaptable to future
11703         minor changes and bugfixes the the output format of some dumps
11704
11705 1999-03-16 Thomas Hepper <th@ant.han.de>
11706         * changer-src/chg-scsi.c: If the open of the TapeDevice fails
11707         the programm is not terminated.
11708         * changer-src/scsi-aix.c: The wrong ident string was checked
11709         for 0 termination.
11710         * changer-src/scsi-bsd.c: see scsi-aix.c
11711         * changer-src/scsi-linux.c: see scsi-aix.c
11712         * changer-src/scsi-solaris.c: see scsi-aix.c
11713         * changer-src/scsi-changer-driver.c: Added some more debug prints.
11714         Wrong fd passwd to LogSense.
11715         * docs/TAPE.CHANGERS: added note about linux and aha1542
11716
11717 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
11718
11719         * common-src/packet.h: explicitly list the numeric values for
11720         the pktype_t enum, so we can use them on the wire
11721
11722 1999-03-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
11723
11724         * config/ltconfig, config/ltmain.sh: updated from libtool 1.2f
11725         * config/libtool.m4i, config/config.guess, config/config.sub: ditto
11726         * configure.in: dropped AC_PROG_RANLIB, as suggested by libtoolize
11727
11728 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
11729
11730         * common-src/bsd-security.c (recv_security_ok): bring over
11731         increased verbosity change from common-src/security.c
11732
11733 1999-03-14  Mathias Herberts  <Mathias.Herberts@ago.fr>
11734
11735         * man/amrecover.8.in: document mode and setmode
11736
11737 1999-03-14  Jon Stevens  <jon@clearink.com>
11738
11739         * common-src/security.c (bsd_security_ok): increase the verbosity of 
11740         failed authentication messages
11741
11742 1999-03-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
11743
11744         * configure.in (powerpc-*-linux-*): supported platform
11745         * README: ditto
11746         Reported by Jon Stevens <jon@clearink.com>
11747
11748 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11749
11750         * configure.in: new option --with-dumperdir=DIR to specify the 
11751         directory for the dumpers (dumper api).
11752         * config/acconfig.h: add def of DUMPER_DIR
11753
11754 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11755
11756         * server-src/conffile.c: accept any string for the program.
11757         * server-src/amcheck.c: add the keyword DUMPER to the request if 
11758         the program is not DUMP or GNUTAR.
11759         * server-src/planner.c: ditto
11760         * server-src/dumper.c: ditto
11761
11762 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11763
11764         * server-src/dumper.c (startup_dump): rename dumpname to progname.
11765         the function will use the parameter progname instead of the
11766         global variable.
11767
11768 1999-03-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
11769
11770         * configure.in (openbsd): according to Ralf Gebhart
11771         <rgebhart@cybernet-ag.net>, sparc-unknown-openbsd2.3 is supported;
11772         I assume other openbsd platforms work too.
11773
11774 1999-03-06 Thomas Hepper <th@ant.han.de>
11775
11776         * client-src/sendbackup-gnutar.c: Replaced #fi with #endif
11777         * changer-src/: Get in sync with 2.4.2 Version
11778
11779 1999-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11780
11781         * configure.in: set SAMBA_VERSION
11782         * client-src/sendbackup-gnutar.c (start_backup): use -q flag
11783         if SAMBA_VERSION >= 2
11784
11785 1999-03-05 Mathias Herberts <Mathias.Herberts@ago.fr>
11786
11787         * recover-src/amrecover.h (set_mode, show_mode) declare new functions.
11788         * recover-src/amrecover.h (SAMBA_SMBCLIENT, SAMBA_TAR) define new 
11789         constant.
11790         * recover-src/extract_list.c: declare variable samba_extract_method.
11791         * recover-src/extract_list.c (extract_files_child): set dumptype
11792         according to samba_extract_method.
11793         * recover-src/help.c (help_list): print help for new command mode
11794         and showmode.
11795         * recover-src/set_commands.c (set_mode, show_mode): new functions.
11796         * recover-src/uscan.l:
11797         * recover-src/uparse.y:
11798
11799 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
11800
11801         * common-src/amanda.h: use ssize_t in writev return value
11802         * common-src/bsd-security.c (bsd_stream_write,bsd_stream_read):
11803         use ssize_t over int
11804         * common-src/file.c (areads): use ssize_t to hold read() return val
11805         * common-src/fileheader.c (fill_buffer): usse ssize_t to hold read()
11806         return val
11807         * common-src/security.h: stream_read's callback now takes a ssize_t
11808         as the third argument.
11809         * common-src/writev.c (writev): return a ssize_t
11810
11811 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
11812
11813         * configure.in: check for ssize_t, make it int if not present
11814         * config/acconfig.h: add def for ssize_t
11815
11816 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
11817
11818         * common-src/base64.c (base64encode): don't cast away a const
11819         needlessly.
11820
11821 1999-03-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11822
11823         * common-src/bsd-security.c (stream_read_callback): change n to int
11824         since ssize_t doesn't exist on all OS.
11825
11826 1999-03-03  Ralf Fassel <ralf@akutech.de>
11827
11828         * common-src/conffile.h: bit field of length 1 should be unsigned int,
11829         not int.
11830
11831 1999-03-03  Ralf Fassel <ralf@akutech.de>
11832
11833         * common-src/bsd-security.c (stream_read_callback): n should be ssize_t.
11834
11835 1999-03-03  Ralf Fassel <ralf@akutech.de>
11836
11837         * changer-src/scsi-changer-driver.c (CloseDevice): wrong assignment.
11838
11839 1999-03-03  Ralf Fassel <ralf@akutech.de>
11840
11841         * common-src/base64.c (base64encode): remove warning from sgi cc
11842         compiler.
11843
11844 1999-03-03  Mike Grupenhoff <kashmir@munge.com>
11845
11846         * common-src/bsd-security.c: use EV_WAIT events instead of
11847         maintaining a queue of listeners.  Refcnt the dgram read event
11848         handle.
11849
11850 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11851
11852         * server-src/driverio.h: new parameter level to update_info_taper().
11853         * server-src/driverio.c (update_info_taper): use parameter instead
11854         of sched(dp)->level.
11855         * server-src/driver.c: call update_info_taper with level parameter.
11856         * server-src/amflush.c: call update_info_taper with level parameter.
11857         no longer need to create a sched_t struct.
11858
11859 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11860
11861         * server-src/driverio.h: remove declaration of inparallel, cmdstr()
11862         and childstr(), declare init_driverio(), add inparallel parameter
11863         to startup_dump_processes().
11864         * server-src/driverio.c (init_driverio): new function to initialize
11865         dmptable and taper.
11866         * server-src/driverio.c (childstr): scan for all dumpers (MAX_DUMPERS)
11867         instead of only inparallel
11868         * server-src/driverio.c (startup_dump_processes): new parameter
11869         inparallel is used instead of global variable.
11870         * server-src/driver.c (main): call init_driverio.
11871         * server-src/driver.c (main): call startup_dump_processes with 
11872         inparallel parameter.
11873         * server-src/amflush.c (main): call init_driverio.
11874
11875 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11876
11877         * server-src/amrmtape.sh.in: work with "last_level" and
11878         "consecutive_runs" in the ouput of "amadmin export".
11879
11880 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
11881
11882         * common-src/security.h: implement security_connect callback and
11883         security_status_t changes
11884
11885 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
11886
11887         * common-src/bsd-security.c (bsd_connect): properly munge the uids
11888         to get a reserved port
11889         * common-src/bsd-security.c: adapt to the security_connect
11890         callback changes
11891         * common-src/bsd-security.c (bsd_sendpkt): dgram_cat is varargs now,
11892         so skip the vstralloc
11893
11894 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
11895
11896         * common-src/event.c: implement EV_WAIT events.  Implement macros
11897         for adding/removing/traversing the event queue
11898         * common-src/event.h: define EV_WAIT, and prototype event_wakeup()
11899
11900 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11901
11902         * docs/WISHLIST: protocol between the driver and dumpers.
11903
11904 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11905
11906         * server-src/amtoc.pl.in: output the datestamp of each dump, because
11907         amflush can flush the same disk multiple date.
11908
11909 1999-02-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11910
11911         * server-src/holding.h: declare struct holding_t.  Remove 
11912         declaration of insert_dirname, scan_holdingdisk.  Declare 
11913         new function free_holding_list.  pick_datestamp and 
11914         pick_all_datestamp now return (holding_t *).
11915         * server-src/holding.c (insert_dirname): new parameter holding_list
11916         where we add the name. Can add more than MAX_DIRS name.
11917         * server-src/holding.c (free_holding_list): new function to free
11918         a holding list.
11919         * server-src/holding.c (scan_holdingdisk): new parameter holding_list.
11920         * server-src/holding.c (pick_all_datestamp, pick_datestamp): return
11921         a list instead of a (char **).
11922         * server-src/find.c (search_holding_disk): use the list return by
11923         pick_all_datestamp.
11924         * server-src/amflush.c: use the list return by pick_datestamp.
11925         * server-src/amcleanupdisk.c (check_disks): use the list return by
11926         pick_all_datestamp.
11927
11928 1999-02-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11929
11930         * server-src/driverio.c (addfd): bug fixe.
11931
11932 1999-02-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
11933
11934         * client-src/sendbackup-gnutar.c: new regexp for SAMBA
11935         Reported by Grzegorz Mucha <grzegorz.mucha@solidex.com.pl>
11936
11937 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
11938
11939         * server-src/amtoc.pl.in: minor fixes for multi-tape runs
11940
11941 1999-02-17  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
11942
11943         * server-src/amtoc.pl.in: complete, backward-incompatible rewrite;
11944         command-line arguments changed
11945         * man/amtoc.8.in: ditto
11946
11947 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
11948
11949         * changer-src/chg-multi.sh.in: minor portability changes
11950         * docs/TAPE.CHANGERS: originally by James da Silva
11951
11952 1999-02-17  Jean-Francois Dockes <dockes@cdkit.remcomp.fr>
11953
11954         * changer-src/chg-multi.sh.in: various portability changes and
11955         general fixes, particularly for multieject; new cycle mode
11956         * docs/TAPE.CHANGERS: detailed description of chg-multi
11957         * example/chg-multi.conf: updated; added reference to
11958         docs/TAPE.CHANGERS for details
11959
11960 1999-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11961
11962         * server-src/driverio.h: remove declaration of addfd.
11963         * server-src/driverio.c (addfd): 2 new arguments, readset and maxfd,
11964         don't use global variable.
11965         * server-src/driverio.c (startup_tape_process, startup_dump_process):
11966         call addfd with new argument.
11967
11968 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11969
11970         * server-src/driverio.c (startup_tape_process): new taper_program
11971         argument.
11972         * server-src/driverio.h: remove declaration of taper_program.
11973         * server-src/driver.c (main): declare taper_program.
11974         * server-src/driver.c: call startup_tape_process with the new 
11975         taper_program argument.
11976         * server-src/amflush.c (run_dumps): declare taper_program.
11977         * server-src/amflush.c (run_dumps): call startup_tape_process with 
11978         the new taper_program argument.
11979
11980 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11981
11982         * server-src/driverio.c (startup_dump_process, startup_dump_processes):
11983         new dumper_program argument.
11984         * server-src/driverio.h: remove declaration of dumper_program.
11985         * server-src/driver.c: declare dumper_program.
11986         * server-src/driver.c: call startup_dump_process and
11987         startup_dump_processes with the new dumper_program argument.
11988
11989 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11990
11991         * server-src/list_dir.h: remove global variable dir_list, declare
11992         new function get_dir_list.
11993         * server-src/list_dir.c (get_dir_list): new function to return dir_list.
11994         * server-src/amindexd.c (opaque_ls): use get_dir_list.
11995
11996 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11997
11998         * server-src/holding.h: remove declaration of get_letter_from_user()
11999         and select_dir().
12000         * server-src/holding.c: remove function get_letter_from_user() and
12001         select_dir().
12002         * server-src/holding.c (pick_datestamp): return empty array instead
12003         of calling exit if no directory are found.
12004         * server-src/amflush.c (get_letter_from_user): new function copied
12005         from holding.c.
12006         * server-src/amflush.c (confirm): write a message and exit if no
12007         directory were found.
12008
12009 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12010
12011         * server-src/amflush.c (flush_holdingdisk): don't update the database
12012         when flushing a partial dump.
12013
12014 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12015
12016         * server-src/holding.h (get_dumpfile): new function
12017         * server-src/holding.c (get_dumpfile): new function to fill a 
12018         dumpfile_t struct from a holding file.
12019
12020 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12021
12022         * server-src/amlabel.c: compiler warning: too many arguments for format
12023
12024 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12025
12026         * server-src/amlabel.c: remove the label from the tapefile in
12027         case it was already there (-f).
12028
12029 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12030
12031         * server-src/dumper.c: make sure holding files are not larger
12032         that chunksize.
12033
12034 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12035
12036         * server-src/amcleanupdisk.c: new program to scan and find temporary
12037         file on holding disks.
12038         * server-src/Makefile.am (libexec_PROGRAMS): add amcleanupdisk.
12039         * server-src/amcleanup.sh.in: call amcleanupdisk.
12040
12041 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12042
12043         * server-src/holding.c (pick_all_datestamp): new function to return
12044         all datestamp in the holding disks.
12045         * server-src/holding.h: declare pick_all_datestamp.
12046
12047 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12048
12049         * server-src/diskfile.h (host_t): new start_t field.
12050         * server-src/diskfile.c (read_diskline): set start_t to 0.
12051         * server-src/driver.c (start_some_dumps): Don't start a dump if
12052         the host->start_t > now.
12053         * server-src/driver.c (start_some_dumps): set host->start_t to 15 sec
12054         in the future when starting a FILE_DUMP.
12055         * server-src/driver.c (dump_to_tape): set host->start_t to 15 sec in
12056         the future when starting a PORT_DUMP.
12057
12058 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
12059
12060         * server-src/amlabel.c (main): try to read just-written tape label
12061         back; if wrendmark overwrote the label, suggest using a
12062         non-rewinding device
12063         * tape-src/tapeio.c (tape_wrendmark): would not close tape device if 
12064         wrendmark failed
12065
12066 1999-02-10  Paul Bijnens  <Paul.Bijnens@lant.be>
12067
12068         * server-src/amoverview.pl.in: Y2K fix in output to user
12069         * server-src/amtoc.pl.in (print_info): ditto
12070
12071 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
12072
12073         * client-src/sendsize.c (getsize_dump): do not redirect standard
12074         output of estimator to /dev/null if we HAVE_DUMP_ESTIMATE
12075
12076 1999-02-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
12077
12078         * NEWS: fix description of incronly: it won't really perform full
12079         backups
12080
12081         * NEWS: support for ufsdump -S, incronly strategy and new chunksize
12082         default
12083
12084         * server-src/conffile.c (init_holdingdisk_defaults, chunksize):
12085         default to 1Gb
12086         * example/amanda.conf.in: ditto
12087         * man/amanda.8.in: ditto
12088
12089         * configure.in (amanda_cv_dump_estimate): check for support for -S
12090         too, and define HAVE_DUMP_ESTIMATE as the estimate switch, if any
12091         * client-src/sendsize.c (re_size): new regexps for Solaris ufsdump
12092         -S and Samba `du'.  Restrict regexp that matched Digital Unix'
12093         dump -E so that it doesn't match smbclient's output any more.
12094         Move some regexps around, and only define them if the corresponding
12095         dump program is available
12096
12097 1999-02-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
12098
12099         * example/amanda.conf.in: document the behavior of relative
12100         exclude-list files
12101         * man/amanda.8.in: ditto
12102
12103         * man/amanda.8.in (exclude list): the GNU tar flag is
12104         --exclude-from, not --exclude-list
12105         Reported by Tom Schutter <tom@platte.com>
12106
12107         * client-src/sendbackup-gnutar.c (re_table): ignore `session request 
12108         to' message printed by Samba 2.0.0
12109
12110 1999-01-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
12111
12112         * man/amanda.8.in (comprate): it is not used when there is history
12113         information; useful for large disks that compress little
12114         Reported by job bogan <job@piquin.uchicago.edu>
12115
12116         * Makefile.am: select which SUBDIRS to descend to here
12117         * client-src/Makefile.am: removed if WANT_CLIENT
12118         * tape-src/Makefile.am: removed if WANT_TAPE
12119         * server-src/Makefile.am: removed if WANT_SERVER
12120         * changer-src/Makefile.am: ditto
12121         * restore-src/Makefile.am: removed if WANT_RESTORE
12122         * recover-src/Makefile.am: removed if WANT_RECOVER
12123         * amplot/Makefile.am: removed if WANT_AMPLOT
12124
12125 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
12126
12127         * NEWS: chg-scsi ports, Samba 2.0.0 support and SECURITY API
12128
12129         * configure.in (USE_AMANDAHOSTS): enable by default
12130         * example/config.site: ditto
12131         * docs/INSTALL: ditto
12132         * NEWS: ditto
12133
12134         * docs/INSTALL: updated URLs for GNU packages and Samba
12135         * docs/SAMBA: note that Samba 2.0.0 is supported
12136
12137         * docs/SYSTEM.NOTES (HP/UX): what does `Link severed' mean?
12138
12139 1999-01-27  Thomas Hepper <th@ant.han.de>
12140         * changer-src/scsi-changer-driver.c SCSI_ReadElementStatus
12141         A while loop has to start with while, not if .....
12142
12143 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
12144
12145         * Makefile.am (EXTRA_DIST): sst was added within contrib
12146
12147         * ltmain.sh, ltconfig, libtool.m4i: updated from libtool CVS
12148         * configure.in: AC_SUBST LIBTOOL_DEPS
12149         * Makefile.am: regen libtool if neded
12150
12151         * Makefile.am: declare that we want automake 1.4 and we're a foreign 
12152         package
12153
12154         * configure.in: require autoconf 2.13, and use
12155         AC_VALIDATE_CACHED_SYSTEM_TUPLE instead of
12156         AC_VALIDATE_CACHE_SYSTEM_TYPE
12157         * config/acinclude.m4i: removed AC_VALIDATE_CACHE_SYSTEM_TYPE
12158
12159         * configure.in (SAMBA_CLIENT): updated check for smbclient to
12160         support Samba 2.0.0
12161
12162 1999-01-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
12163
12164         * server-src/amdump.sh.in (runuser): set to LOGNAME if defined, and
12165         to the output of whoami otherwise
12166         Reported by Tom Schutter <tom@platte.com>
12167
12168 1999-01-26  Thomas Hepper <th@ant.han.de>
12169         * Makefile.am Added sst driver files to EXTRA_DIST
12170
12171 1999-01-26      Thomas Hepper <th@ant.han.de>   
12172         * changer-src/Makefile.am added to LDADD 
12173         ../tape-src/libamtape.$(LIB_EXTENSION)
12174         * changer-src/chg-scsi.c If statfile is not set try to get the info
12175         about the current loaded tape direct from the changer.
12176         Fixed debug output for the eject value if > 1
12177         * changer-src/libscsi.h Prototype for GetCurrentSlot
12178         * changer-src/scsi-aix.c If the Device we open is not a changer or tape
12179         return NULL, so that the above function can abort. New eject per mtio ioctl.
12180         * changer-src/scsi-bsd.c see scsi-aix.c
12181         * changer-src/scsi-linux.c see scsi-aix.c
12182         * changer-src/scsi-hpux_new.c see scsi-aix.c
12183         * changer-src/scsi-irix.c see scsi-aix.c
12184         * changer-src/scsi-solaris.c see scsi-aix.c and added a retry loop for
12185         the execution of SCSI commands.
12186         * changer-src/scsi-changer-driver.c New Function SCSI_ReadElementStatus
12187         split ReadElementStatus in device and device independed part
12188         New EXB120ElementStatus, renamed ReadElementStatus in GenericElementStatus
12189         added EXB 120 and DLT7000 to the devices list.
12190         Removed the linked list for the element status. Now every element
12191         type has its own array allocated in the *ElementStatus functions.
12192         Check in the functions which sends SCSI commands if the fd is able to
12193         receive SCSI commands.
12194         In GenericEject check which type of eject to use (ioctl/SCSI)
12195         New GetCurrentSlot, try to get the info about the loaded tape direct from
12196         the changer.
12197         * changer-src/scsi-chio.c Add function GetCurrentSlot (not well tested yet)
12198         * changer-src/scsi-defs.h Added missing decl. in MediumTransportElementDescriptor_T
12199         for LITTLE_ENDIAN_BITFIELDS
12200         new field from in ElementInfo_T
12201         * changer-src/sci-hpux.c EMpty function GetCurrentSlot, do we still need scsi-hpux.c ?
12202         * docs/TAPE.CHANGERS added some notes for HP-UX, expanded list of tested devices
12203         
12204 1999-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12205
12206         * server-src/conffile.c (init_defaults): default value of runspercycle
12207         is 0.
12208         * server-src/amadmin.c (balance): use default value of runspercycle.
12209         * server-src/planner.c (main): use default value of runspercycle.
12210
12211 1999-01-22  Martin Apel <apel@tecmath.de>
12212
12213         * example/amanda.conf.in: explanation of incronly strategy.
12214         * man/amanda.8.in: explanation of incronly strategy.
12215         * server-src/amadmin.c: recognize incronly strategy
12216         * server-src/conffile.c: read the incronly strategy in the
12217         configuration file.
12218         * server-src/conffile.h: definition of DS_INCRONLY
12219         * server-src/planner.c: Do planning for incronly strategy:
12220         If the force flag is set perform a full dump, otherwise do
12221         normal incremental processing but avoid full dumps.
12222         * server-src/tapefile.c: Bugfix so only tapes which match
12223         the regular expression for tape labels in the current 
12224         configuration are considered for writing.
12225
12226 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
12227
12228         * common-src/bsd-security.c (check_user): there was no uid variable
12229         here; replace with getuid()
12230
12231 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
12232
12233         * server-src/planner.c (output_scheduleline): removed `or historical
12234         data' from `no estimate' message; historical data doesn't matter any 
12235         more
12236         Reported by Giorgos Vlachos <Giorgos.Vlachos@eurodyn.com>
12237
12238 1999-01-20  Todd Pfaff  <pfaff@mcmaster.ca>
12239         
12240         * client-src/sendbackup-gnutar.c: more Samba 2.0.0 messages
12241
12242         * client-src/sendbackup-gnutar.c: new Samba 2.0.0 message 
12243
12244 1999-01-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12245
12246         * server-src/amflush.c: use ap_snprintf instead of snprintf.
12247         * server-src/amflush.c: rotation of new amflush log was broken.
12248
12249 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12250
12251         * server-src/reporter.c: always call output_stats(), the problem is
12252         that degraded_mode is set if amflush fills the tape.
12253
12254 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12255
12256         * server-src/amflush.c: write debuging info to $logdir/amflush
12257         instead of /dev/null if we run in background.
12258         * server-src/amcleanup.sh.in: rename $logdir/amflush.
12259
12260 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
12261
12262         * server-src/dumper.c (make_tapeheader): explicitly compare
12263         srvcompress against srvcomp_none instead of assuming that
12264         srvcomp_none's value is 0.
12265
12266 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
12267
12268         * server-src/dumper.c: move max() macro to top of file.  Add min()
12269         * server-src/dumper.c (databuf_write): use min() to determine the
12270         copy size
12271         * server-src/dumper.c (databuf_flush): more clearly calculate the
12272         buffer offset in the write loop
12273
12274 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
12275
12276         * server-src/dumper.c (databuf_write): Egads!  Also increment the
12277         source pointer doing a partial buf copy
12278
12279 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
12280
12281         * common-src/bsd-security.c (check_user): use getpwnam(CLIENT_LOGIN)
12282         instead of getpwuid(getuid()), in case our caller has not done
12283         the setuid().
12284
12285 1999-01-12  Mike Grupenhoff <kashmir@munge.com>
12286
12287         * server-src/dumper.c (add_msg_data): properly check for half-sent
12288         msg lines.
12289
12290 1999-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12291
12292         * server-src/amstatus.pl.in: fix a divide by zero error.
12293
12294 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
12295
12296         * server-src/dumper.c (add_msg_data): clarify and comment.  Remove
12297         'len' arg.  Const 'str' arg.
12298         * server-src/dumper.c (do_dump): compresspid and indexpid should
12299         be pid_t's.  Also, remove len from add_msg_data call.
12300
12301 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
12302
12303         * server-src/fileheader.c (parse_file_header): const the buffer
12304         argument
12305         * server-src/fileheader.h: update parse_file_header proto for const
12306         change
12307
12308 1999-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12309
12310         * server-src/amstatus.pl.in: report the current dump when reporting
12311         the busy time of each dumper.
12312
12313 1998-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12314
12315         * server-src/dumper.c: open temporary holding file with O_TRUNC flags
12316         and with mode 0600.
12317
12318 1998-12-28  John R. Jackson  <jrj@purdue.edu>
12319
12320         * server-src/reporter.c: do not drop core generating labels if the
12321         tape label is not defined, e.g. in degraded mode (compliments of
12322         Jan L. Peterson <jlp@Part.NET>).
12323
12324 1998-12-28  John R. Jackson  <jrj@purdue.edu>
12325
12326         * server-src/amtape.c: initialize two strings to NULL to avoid a
12327         core dump, compliments of G. Allen Morris III <gam3@acm.org>.
12328
12329 1998-12-27  John R. Jackson  <jrj@purdue.edu>
12330
12331         * man/amreport.8.in: remove reference to 8.5x11 paper size for the
12332         3-hole binder.
12333
12334 1998-12-27  John R. Jackson  <jrj@purdue.edu>
12335
12336         * example/3hole.ps: new lbl-templ file for 3 hole punch reports
12337         * example/Makefile.am: add 3hole.ps
12338
12339 1998-12-22  Thomas Hepper <th@icem.de>
12340
12341         * docs/TAPE.CHANGERS Update notes about chg-scsi
12342         * changer-src/chg-scsi.c Added new config option tapestatus,
12343         if set the tape log pages are written to this file.
12344         changed parameter list for get_clean_state/ask_clean,
12345         * changer-src/libscsi.h changed parameter list for get_clean_state
12346         * changer-src/scsi-changer-driver.c Added new functions OpenDevice
12347         CloseDevice LookupDevice. 
12348         Added new functions to read and decode the Tape LOG Pages.
12349         Tape Eject and ready check is now done by SCSI calls
12350
12351         * changer-src/scsi-aix.c
12352         * changer-src/scsi-bsd.c
12353         * changer-src/scsi-hpux_new.c
12354         * changer-src/scsi-hpux.c
12355         * changer-src/scsi-irix.c
12356         * changer-src/scsi-solaris.c
12357         Changed all SCSI_OpenDevice/SCSI_CloseDevice functions so that they
12358         fit to the new OpenDevice/CloseDevice calls. Removed mtio.h from 
12359         includes, remove Tape_Ready and Tape_Eject
12360         * changer-src/scsi-chio.c
12361         * changer-src/scsi-defs.h
12362
12363         For all changer-src files, removed tabs, run indent (from xemacs)
12364         Added emacs variables to the end (no tab, gnu style)
12365
12366 1998-12-21  John R. Jackson  <jrj@purdue.edu>
12367
12368         * man/amanda.8.in: document the lbl-templ tapetype option.
12369
12370 1998-12-21  John R. Jackson  <jrj@purdue.edu>
12371
12372         * man/amreport.8.in: fix formatting problem.
12373
12374 1998-12-20  John R. Jackson  <jrj@purdue.edu>
12375
12376         * configure.in: define NEED_RESETOFS unless LFS (large file system
12377         support) is available.
12378         * config/acconfig.h: add NEED_RESETOFS tag.
12379         * server-src/taper.c: only reset the tape offset if NEED_RESETOFS
12380         is defined and only once per 2 GBytes.
12381
12382 1998-12-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
12383
12384         * server-src/amlabel.c (main): datestamp for new tapes is now 0
12385         * server-src/tapefile.c (reusable_tape): recognize datestamp 0 as
12386         reusable
12387         * man/amlabel.8.in: document that tapes are added to tapelist
12388
12389 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
12390
12391         * server-src/dumper.c (runcompress): new function.  Given an output
12392         file descriptor, inserts a gzip/compress in front of that descriptor.
12393         * server-src/dumper.c (do_dump): if srvcompress is true, insert
12394         the gzip (using runcompress) in front of the output fd instead
12395         of the input fd.  Only do this after the tapeheader has been written.
12396
12397 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
12398
12399         * server-src/dumper.c (startup_chunker): new function.  When doing
12400         chunking, fork a piped subprocess that reads in a fileheader and
12401         a data stream, and writes out the headered, chunked files.  This
12402         allows us to treat unchunked, chunked, and port-dump dumps exactly
12403         the same.
12404         * server-src/dumper.c (main): file-dump: if chunksize > 0,
12405         call startup_chunker for our outfd.  Otherwise, open the
12406         holding file directly.
12407
12408 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
12409
12410         * server-src/dumper.c (struct databuf): add a chunk_size member,
12411         the size of each chunk.  Remove chunksize global.
12412         * server-src/dumper.c (main): add a chunksize local var
12413         * server-src/dumper.c (databuf_init): init the chunk_size member
12414         with the same value as split_size
12415         * server-src/dumper.c (databuf_flush): increment db->split_size
12416         by the amount in db->chunk_size instead of the global chunksize
12417
12418 1998-12-19  John R. Jackson  <jrj@purdue.edu>
12419
12420         * server-src/amstatus.pl.in: instead of just displaying why no
12421         dumpers were busy, display reason(s) why N+1 were not busy.
12422
12423 1998-12-18  John R. Jackson  <jrj@purdue.edu>
12424
12425         * server-src/amstatus.pl.in: add statistics about how much time
12426         taper and each dumper is busy, how much time N dumpers are busy
12427         and why no dumpers were busy.
12428
12429 1998-12-18  Mike Grupenhoff <kashmir@munge.com>
12430
12431         * server-src/dumper.c (struct databuf): add 'filename', 'filename_seq',
12432         and 'split_size' members to replace the equivalent globals.  Nuke
12433         those globals.
12434         * server-src/dumper.c (databuf_init): add 'filename' and 'split_size'
12435         args to init those members.  Init filename_seq to 0.
12436         * server-src/dumper.c (main): declare and init the databuf here
12437         * server-src/dumper.c (databuf_flush): refer to split_size, filename,
12438         and filename_seq in the databuf instead of the globals.
12439         * server-src/dumper.c (do_dump): now takes a databuf instead of an
12440         output file descriptor.
12441
12442 1998-12-18  John R. Jackson  <jrj@purdue.edu>
12443
12444         * server-src/amstatus.pl.in: fix two perl warnings.
12445
12446 1998-12-18  John R. Jackson  <jrj@purdue.edu>
12447
12448         * server-src/amstatus.pl.in: fix two minor typos.  Add percentage
12449         display to the summary comparing real and estimated size and real
12450         versus total estimate (showing how well the estimates are doing and
12451         a rough guess at how far along the run is).  Also the percentage of
12452         total holding disk space in use.
12453
12454 1998-12-18  John R. Jackson  <jrj@purdue.edu>
12455
12456         * server-src/amstatus.pl.in: take the --file argument as is if it
12457         is an absolute path.
12458
12459 1998-12-18  John R. Jackson  <jrj@purdue.edu>
12460
12461         * server-src/driver.c: call short_dump_state() one last time before
12462         quitting so amstatus gets a last good status.  Tell taper to quit
12463         after the dumpers since it writes more information to the amdump
12464         file (helps prevent mixed messages).
12465
12466 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
12467
12468         * server-src/dumper.c (databuf_flush): return 0 on success
12469
12470 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
12471
12472         * server-src/dumper.c (databuf_flush): new function.  Writes
12473         the contents of the databuf out to its backing file, doing splitting
12474         if necessary
12475         * server-src/dumper.c (databuf_write): call databuf_flush when the
12476         databuf fills up.  Fully complete all writes (no short writes)
12477         * server-src/dumper.c (do_dump): databuf_write now guarantees complete
12478         writes, so remove retry loop.  Call databuf_flush() when eof is hit.
12479         Do not close datafd on eof, because our caller (main) passed it to
12480         us and therefore owns it (and main does close it again).
12481
12482 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
12483
12484         * server-src/dumper.c (databuf_init): new function, initializes
12485         a struct databuf.
12486         * server-src/dumper.c (update_dataptr): rename to databuf_write,
12487         and have it take a buffer and a size, and return how many bytes
12488         of the buffer were written
12489         * server-src/dumper.c (do_dump): use databuf_init to initialize db.
12490         Use databuf_write to add incomign data to the databuf.
12491         Make size1 and size2 local to the blocks they are used in.
12492
12493 1998-12-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
12494
12495         * common-src/Makefile.am (noinst_DATA): removed; bogus
12496         * config/config.guess, config/config.sub: config/install-sh,
12497         config/mkinstalldirs: updated to current pre-2.13 autoconf CVS tree
12498         * patches/autoreconf.patch: removed
12499         * config/libtool/libtool.m4: renamed to config/libtool.m4i
12500         * config/acinclude.m4: renamed to config/acinclude.m4i
12501         * config/Makefile.am (EXTRA_DIST): updated to reflect changes
12502         * autogen: build config/acinclude.m4  by concatenating acinclude.m4i
12503         and libtool.m4i
12504         * configure.in: no longer test whether libtool is installed; require 
12505         newer autoconf
12506         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: updated to
12507         libtool 1.2d
12508         * amplot/Makefile.am (EXTRA_DIST): no longer needed
12509         * changer-src/Makefile.am (chg_scsi_SOURCE): move scsi-defs.h closer 
12510         to the beginning of the list
12511         * docs/INSTALL: fixed URL to gnuplot; recommend autoconf and
12512         automake from CVS
12513
12514 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
12515
12516         * common-src/genversion.c (main): rip out krb4 defines.  If we
12517         need this info, each driver will have to do it individually.
12518
12519 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
12520
12521         * server-src/conffile.c: remove KRB4_AUTH, BSD_AUTH tokens, auth
12522         element from dumptype_t, and get_auth() lookup func.  Add
12523         security_driver to dumptype_t and parse value of AUTH keyword
12524         as a string.
12525         * server-src/conffile.h: nuke auth_t.  Remove auth_t auth, int s_auth
12526         from typetype_t; add char *security_driver, int s_security_driver.
12527         * server-src/diskfile.c: nuke auth_t auth from disk_t, add
12528         char *security_driver.  Inherit security_driver from the dumptype_t
12529         for this disk.
12530         * server-src/diskfile.h: ditto
12531         * server-src/amadmin.c (disklist_one): output the security-driver
12532         string in place of the auth type
12533         * server-src/amcheck.c (start_client_checks, handle_response):
12534         enum type hostp->disks->auth is gone.  check the string in the
12535         security_driver for this disk for krb4 auth.
12536         * server-src/planner.c (getsize, handle_result): check the string
12537         in hostp->disks->security_driver for the auth type.
12538
12539 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
12540
12541         * server-src/amindexd.c: no need to include protocol.h
12542
12543 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
12544
12545         * server-src/amindexd.c: remove duplication inclusion of version.h.
12546         Include tapefile.h to get read_tapelist() prototype
12547         * server-src/amindexd.c (build_disk_table): remove a plethora of
12548         unused local vars
12549         * server-src/amindexd.c (main): rename security_ok() call to
12550         check_security(), and define check_security() locally.  security_ok
12551         will disappear when the new security api goes in
12552
12553 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
12554
12555         * server-src/changer.c (changer_label): make it return void
12556         to keep gcc warning about control reaching the end of a nonvoid
12557         function.
12558         * server-src/changer.c: update changer_label's proto for previous
12559
12560 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
12561
12562         * common-src/amanda.h: define SET, CLR, ISSET macros for dealing
12563         with bitmasks
12564         * server-src/amadmin.c: use the bitmask macros for setting
12565         and clearing the bits in the infofile command word
12566         * server-src/planner.c: ditto.  This fixes a bug in the code that
12567         tried to clear FORCE_FULL with an xor expression that was
12568         never assigned (x ^ FORCE_FULL)
12569
12570 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
12571
12572         * common-src/bsd-security.c (bsd_sendpkt): cast uid's to long and
12573         use %ld to print them.
12574
12575 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
12576
12577         * common-src/dgram.h: mark dgram_cat with gcc's printf attribute
12578         * common-src/packet.h: ditto for pkt_cat
12579         * common-src/security.h: likewise for security_seterror
12580
12581 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
12582
12583         * common-src/error.c (error): const the format arg
12584         * common-src/amanda.h: mark error with gcc's noreturn attribute, and
12585         const its format arg
12586
12587 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
12588
12589         * common-src/debug.c (debug_printf): const the format arg
12590         * common-src/amanda.h: const debug_printf's format arg
12591
12592 1998-12-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
12593
12594         * configure.in (BSD SCSI): test ... -a ... is not portable, and less 
12595         so when written test ... -a test ... :-)
12596
12597 1998-12-14  Thomas Hepper <th@icem.de>
12598
12599         * changer-src/Makefile.am Added scsi-bsd.c
12600         * changer-src/chg-scsi.c Initialize *scsitapedevice
12601         * changer-src/scsi-changer-driver.c remove LITTLE_ENDIAN_BITFILEDS
12602         defenition
12603         changed RequestSense to pRequestSense (there is a function 
12604         called RequestSense)
12605         changed error handling in ResetStatus (fix for IRIX)
12606         FIxed length handling for the pages in ReadElemtStatus
12607         * changer-src/scsi-chio.c get_clean_state only returns 0, the
12608         ioctl to get the clean flag is not portable ;-(
12609         changed all (f)printf to dbprintf
12610
12611         * changer-src/scsi-defs.h ElementStatusData_T is for BIG and
12612         LITTLE endian the same ...
12613
12614         * changer-src/scsi-bsd.c New file for FreeBSD
12615
12616         * changer-src/scsi-irix.c Clean up in the return handling
12617         changed RequestSense to pRequestSense
12618         Removed unused function TapeStatus
12619
12620         * changer-src/scsi-linux.c changed RequestSense to pRequestSense
12621         Removed unused function TapeStatus
12622
12623         * changer-src/scsi-solaris.c changed RequestSense to pRequestSense
12624         Removed unused function TapeStatus
12625
12626         * config/acconfig.h added def for BSD_LIKE_SCSI
12627
12628         * configure.in Added check for ENDIAN type AC_C_BIGENDIAN
12629         added sys/scsiio.h and check for BSD SCSI interface
12630
12631 1998-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12632
12633         * server-src/driver.c (handle_dumper_result): rename .tmp files
12634         when receiving ABORT_FINISHED.
12635
12636 1998-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12637
12638         * server-src/driver.c (start_some_dumps): Use the holdp returned
12639         by find_diskspace for a big_dumper in degraded mode.
12640
12641 1998-12-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
12642
12643         * docs/SYSTEM.NOTES (Ultrix): recommend gcc or egcs
12644         (IRIX): patch for xfsdump estimates
12645
12646 1998-12-10  John R. Jackson  <jrj@purdue.edu>
12647
12648         * common-src/amflock.c (main): remove call set_pname() for
12649         CONFIGURE_TEST since error.o is not linked in.
12650
12651 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
12652
12653         * server-src/dumper.c (struct databuf): add a fd member - the file
12654         descriptor that we are buffering
12655         * server-src/dumper.c (update_dataptr): remove
12656         outf arguments, use the fd in the passed databuf.  Return 0 on
12657         success, and -1 on error.
12658         * server-src/dumper.c (update_dataptr): rework and comment the
12659         chunk code a bit.  Get rid of the cont_filename global.
12660         * server-src/dumper.c (do_dump): init the fd member of the databuf
12661         * server-src/dumper.c (write_dataptr): fold back into update_dataptr
12662
12663 1998-12-10  John R. Jackson  <jrj@purdue.edu>
12664
12665         * common-src/amflock.c (main): report CONFIGURE_TEST error messages to
12666         stderr.
12667
12668 1998-12-10  John R. Jackson  <jrj@purdue.edu>
12669
12670         * common-src/amflock.c (main): call set_pname() for CONFIGURE_TEST.
12671         * configure.in: do not set up pname global for lnlock CONFIGURE_TEST.
12672
12673 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
12674
12675         * server-src/dumper.c (update_dataptr): remove pointless backups
12676         of the databuf and associated vars when creating next chunk.
12677         Remove duplicate setting of file.cont_filename.
12678
12679 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
12680
12681         * server-src/dumper.c (main): reuse outfd to clear the open files
12682         passed to us.  Nuke the fd var.
12683         * server-src/dumper.c (update_dataptr): nuke 'split' argument - it
12684         was always set to 1
12685
12686 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
12687
12688         * server-src/dumper.c (write_tapeheader): kill dead code
12689         * server-src/dumper.c (main): remove useless amfree of datestamp.
12690         Add missing break to 'default' case in command loop.
12691         * server-src/dumper.c: kill databuf, spaceleft, and dataptr globals.
12692         Create a 'struct databuf' that holds all three.
12693         * server-src/dumper.c (write_dataptr, update_dataptr): make
12694         these take a 'struct databuf *' as an argument, and have them
12695         operate on its contents instead of the aforementioned globals
12696         * server-src/dumper.c (do_dump): declare a 'struct databuf' here.
12697         Make it static, because it's large.  Use it instead of the
12698         globals.
12699
12700 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
12701
12702         * server-src/dumper.c (main): rework the command loop a bit.
12703         Consolidate all duplicated error cleanup into one place at the
12704         end of the loop after each command has been processed.  Exit
12705         with exit(), not return.
12706
12707 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
12708
12709         * server-src/dumper.c (main, getcmd, write_dataptr): kill argc and
12710         argv globals, pass them as arguments to getcmd() via struct cmdargs.
12711         * server-src/dumper.c (getcmd): make the command lookup table driven.
12712         * server-src/dumper.c (write_dataptr): restructure the command
12713         logic a bit to hopefully clarify things.
12714
12715 1998-12-09  Henning P. Schmiedehausen  <henning@tanstaafl.de>
12716
12717         * client-src/sendbackup.c (parse_options): Added check whether the
12718         pathname of the exclude file is relative and if yes, use the
12719         mountpoint of the filesystem as anchor.  So you can put your exclude
12720         file in the root of the filesystem to backup.
12721         * client-src/sendsize.c (getsize_gnutar): added the same check as
12722         above so sendsize uses the same exclude file.
12723
12724 1998-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12725
12726         * server-src/holding.c (size_holding_files): return size in KB.
12727         * server-src/driver.c (adjust_diskspace): use KB returned by
12728         size_holding_files.
12729         * server-src/driver.c: rename .tmp file
12730         * server-src/dumper.c: do not rename .tmp file. let the driver do it.
12731
12732 1998-12-09  John R. Jackson  <jrj@purdue.edu>
12733
12734         * common-src/stream.c (stream_server): do not request a reserved port
12735         if we are root but PORTRANGE is defined.  Also, clean up the code
12736         and make sure *portp is -1 on all error returns.
12737
12738 1998-12-08  John R. Jackson  <jrj@purdue.edu>
12739
12740         * Makefile.am: add the user-contributed area.
12741         * contrib/README: describe the user-contributed area.
12742         * contrib/dbbackup.README: README for Oracle database backup system.
12743         * contrib/dbbackup.ksh: Oracle database backup system wrapper.
12744         * contrib/dbbackup.sql: Oracle database backup system setup commands.
12745         * contrib/dbbackup.tcl: Oracle database backup system main body.
12746
12747 1998-12-08  John R. Jackson  <jrj@purdue.edu>
12748
12749         * amplot/Makefile.am: fix install rule when DESTDIR is non-null,
12750         compliments of Henning P. Schmiedehausen <hps@tanstaafl.de>.
12751
12752 1998-12-08  John R. Jackson  <jrj@purdue.edu>
12753
12754         * configure.in: fix reversed code for --with-amrecover, compliments
12755         of Yar Tikhiy <yar@radio-msu.net>.
12756
12757 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12758
12759         * common-src/fileheader.h (dumpfile_t): new is_partial field.
12760         * common-src/fileheader.c: add codee for new is_partial field.
12761         * server-src/holding.h (rename_tmp_holding): declare new function.
12762         * server-src/holding.c (rename_tmp_holding): new function.
12763         * server-src/dumper.c (do_dump): return 1 if succeded, otherwise 0.
12764         * server-src/dumper.c (main): open .tmp when dumping to disk, 
12765         rename .tmp if do_dump return 1.
12766         * server-src/dumper.c (update_dataptr): open .tmp for new chunk.
12767         * server-src/amstatus.pl.in (dump_size): return size of .tmp file.
12768
12769 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
12770
12771         * server-src/amtape.c (main, usage): make command lookup and usage
12772         table-driven
12773
12774 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
12775
12776         * server-src/amadmin.c: make command lookup and usage table-driven
12777         * server-src/amadmin.c (balance, tape, bumpsize): add
12778         argc/argv arguments to make them like the rest
12779         * server-src/amadmin.c (show_version): new function, implements
12780         the version command, so it is done like the other commands
12781         * server-src/amadmin.c (main): iterate through cmdtab[] when
12782         looking up the command, instead of a huge if/then/else
12783         * server-src/amadmin.c (usage): iterate through cmdtab[] when
12784         displaying usage strings.  Display the "disklist" usage string.
12785
12786 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12787
12788         * config/acconfig.h: add "#undef HAVE_WRITEV_DECL".
12789
12790 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12791
12792         * NEWS: document new force-bump, force-no-bump and unforce-bump
12793         command in amadmin.
12794
12795 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12796
12797         * server-src/holding.c (size_holding_files): new function to
12798         return the sum of the size of all chunk of an image.
12799         * server-src/holding.h (size_holding_files): declare.
12800         * server-src/driver.c (adjust_diskspace): use size_holding_files
12801         instead of doing a stat of only the first chunk.
12802
12803 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12804
12805         * server-src/amadmin.c: new force-bump, force-no-bump and unforce-bump
12806         command.
12807         * man/amadmin.8.in: document them.
12808
12809 1998-12-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
12810
12811         * docs/FAQ (large filesystems): fixed reference to results missing
12812         (results missing): updated to 64Kb UDP packets
12813
12814 1998-12-04  Mike Grupenhoff <kashmir@munge.com>
12815
12816         * common-src/amanda.h: implement WIFSIGNALED() if not already
12817         defined
12818         * server-src/amcheck.c: ream out compat definitions of WEXITSTATUS(),
12819         WTERMSIG(), and WIFSIGNALED().  These are already handled in amanda.h
12820         * server-src/changer.c: ditto
12821
12822 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
12823
12824         * common-src/bsd-security.c (recv_security_ok): only check for
12825         a reserved port for REQ packets
12826
12827 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
12828
12829         * common-src/bsd-security.c (recvpkt_callback): only compare
12830         the sin_addr and sin_port fields in the sockaddr when determining
12831         what handle an incoming packet belongs to.
12832         * common-src/bsd-security.c (pkthdr2str): use %s for the handle,
12833         since it's a string.
12834
12835 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
12836
12837         * common-src/bsd-security.c (bsd_sendpkt): newline-terminate
12838         the 'SECURITY USER' line in the packet
12839         * common-src/bsd-security.c (check_user): fix many bugs
12840         in the USE_AMANDAHOSTS case
12841
12842 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
12843
12844         * configure.in: AC_REPLACE_FUNCS(writev)
12845
12846 1998-12-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12847
12848         * server-src/infofile.h: rename PLANNER_FORCE to FORCE_FULL
12849         * server-src/planner.c: rename PLANNER_FORCE to FORCE_FULL
12850         * server-src/amadmin.c: rename PLANNER_FORCE to FORCE_FULL
12851
12852 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
12853
12854         * config/acconfig.h: add KRB5_SECURITY.  Update comment above
12855         krb4 define to make clear that they are for krb4
12856
12857 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
12858
12859         * configure.in: if we're doing krb4 and -lcom_err is there, pull
12860         it in
12861         * configure.in: implement --with-krb5-security.
12862
12863 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
12864
12865         * common-src/dgram.c (dgram_cat): now can take printf-style
12866         arguments
12867         * common-src/dgram.g (dgram_cat): update prototype
12868
12869 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
12870
12871         * common-src/bsd-security.c: wrap entire file in #ifdef BSD_SECURITY
12872         * common-src/bsd-security.c (bsd_connect): catch up with
12873         security interface changes - upper layer now allocates our handle
12874         Also, pass up useful error message about why connects failed
12875         via the handle we are given
12876         * common-src/bsd-security.c (gethandle): rename to inithandle,
12877         since we are now passed the handle's memory.  No need to allocate
12878         memory or initialize the error msg pointer
12879         * common-src/bsd-security.c (bsd_close): now an empty function - no
12880         memory to free
12881         * common-src/bsd-security.c (recvpkt_callback): allocate the handle
12882         before calling inithandle() (nee gethandle()).
12883         * common-src/bsd-security.c (stream_read_callback): put
12884         strerror(errno) in the handle's error buffer before passing a
12885         read error up to the caller
12886
12887 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
12888
12889         * common-src/krb5-security.c: new stub file that pulls in the
12890         krb5 bits from the amanda-krb-2 tree if KRB5_SECURITY is
12891         defined
12892
12893 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
12894
12895         * common-src/base64.{c,h}: new files, implement base64 encoding
12896         and decoding.  Implementation based on routines in bind, and so
12897         copyright is held by ISC and IBM (but is BSD-like).
12898
12899 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
12900
12901         * common-src/security.h: add 'handlesize' to the driver struct, also
12902         make the connect function pointer return int and take a handle
12903         argument
12904         * common-src/security.h (security_connect): addd a 'const char **'
12905         errmsg argument for returning connect errors
12906
12907 1998-12-01  John R. Jackson  <jrj@purdue.edu>
12908
12909         * server-src/amcheck.c: make -t mean do the tape checks, add new -l
12910         option for doing just the local server (non-tape) checks.  Have -w
12911         turn on -t.  Have -cs (or -sc) do both server and client checks.
12912         * man/amcheck.8.in: document above changes and clean up some minor
12913         formatting issues.
12914
12915 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
12916
12917         * common-src/event.c (release): nuke bogus comment about signal
12918         handler release
12919         * common-src/event.c (event_loop): move the reentrancy assert
12920         after the empty queue check.  Otherwise, calling event_loop()
12921         with an empty event queue would cause the entry count to get
12922         out of sync.  Also, on exit, assert that the entry count has
12923         gone to 0
12924         * common-src/event.c (event_loop): fix bogus comment about event
12925         removal
12926
12927 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
12928
12929         * common-src/arglist.h: implement arglist_function3()
12930
12931 1998-11-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12932
12933         * server-src/driver.c (start_some_dumps): In degraded mode,
12934         a big dumper should do high priority dump before low priority.
12935         * server-src/driver.c (sort_by_priority_reversed): sort by
12936         time if priority is equal.
12937
12938 1998-11-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12939
12940         * server-src/infofile.h: declare FORCE_BUMP and FORCE_NO_BUMP
12941         as command.
12942         * server-src/amadmin.c (force_one,unforce_one,info_one): work
12943         with info.command with bit operator.
12944         * server-src/planner.c (setup_estimate): work with info.command
12945         with bit operator, support for FORCE_BUMP and FORCE_NO_BUMP command.
12946
12947 1998-11-27  Thomas Hepper    <th@icem.de>
12948
12949         * changer-src/scsi-aix.c Some changes in the error handling in
12950         scsi command execution
12951         * changer-src/scsi-changer-driver.c More debug prints.
12952         removed Endian16/Endian24 (replaced with macros)
12953         * changer-src/scsi-chio.c make get_clean_state work on linux
12954         * changer-src/scsi-defs.h  added macros for converting from/to
12955         SCSI CDB MSB type
12956         * docs/TAPE.CHANGERS add note about AIX and chg-scsi
12957
12958 1998-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12959
12960         * server-src/amadmin.c(export_one): export the last_level and
12961         consecutive_runs field.
12962         * server-src/amadmin.c(import_one): import the last_level and
12963         consecutive_runs field.
12964
12965 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
12966
12967         * common-src/amanda.h: uhh, every other decl has a leading
12968         'extern' so writev() should as well
12969
12970 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
12971
12972         * common-src/amanda.h: if no writev() decl exists, declare one
12973
12974 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
12975
12976         * configure.in: check for <sys/uio.h>, check for a writev() decl
12977         in <unistd.h> and/or <sys/uio.h>
12978
12979 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
12980
12981         * common-src/writev.c (writev): new file, implements writev for
12982         systems that lack it
12983
12984 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
12985
12986         * common-src/amanda.h: include <sys/uio.h> if it exists.  Otherwise,
12987         define struct iovec
12988
12989 1998-11-24  John R. Jackson  <jrj@purdue.edu>
12990
12991         * server-src/amlabel.c: insist on being run as the dump user (ala
12992         amlabel) to keep permissions straight.
12993
12994 1998-11-24  John R. Jackson  <jrj@purdue.edu>
12995
12996         * server-src/amadmin.c: fix minor message format problem.
12997
12998 1998-11-24  John R. Jackson  <jrj@purdue.edu>
12999
13000         * server-src/amlabel.c: insist on being run as the dump user (ala
13001         amflush) to keep permissions straight.
13002
13003 1998-11-24  John R. Jackson  <jrj@purdue.edu>
13004
13005         * server-src/amrmtape.sh.in: insist on being run as the dump user (ala
13006         amdump) to keep permissions straight.
13007
13008 1998-11-24  John R. Jackson  <jrj@purdue.edu>
13009
13010         * server-src/amadmin.c: issue a warning for update commands that might
13011         leave ownership incorrect.
13012
13013 1998-11-24  John R. Jackson  <jrj@purdue.edu>
13014
13015         * server-src/amcheck.c: add a "-t" option to disable tape tests in the
13016         server checks.  This lets server checks be done without mounting a
13017         tape.  Add lots more sanity checks, in particular, ownership and
13018         permissions of the index area and text format database.  Warn if
13019         amcheck is not run as the dump user listed in amanda.conf.  Minor
13020         consistency cleanup in the messages.
13021         * man/amcheck.8.in: document the changes.
13022
13023 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
13024
13025         * common-src/dgram.c (dgram_bind): always try to get a reserved
13026         port, even if KRB4_SECURITY is defined
13027
13028 1998-11-23  Mike Grupenhoff <kashmir@munge.com>
13029
13030         * common-src/bsd-security.c (struct bsd_handle): change 'int handle'
13031         to 'char proto_handle[32]' because the remote client might generate
13032         handles that aren't completely numerical
13033         * common-src/bsd-security.c (gethandle, str2pkthdr): the 'handle' arg
13034         is now a string
13035         * common-src/bsd-security.c (bsd_connect): convert our generated
13036         handle into a string to pass to gethandle()
13037         * common-src/bsd-security.c (str2pkthdr): rewrite to parse with
13038         strtok().  Parse the handle as a string instead of trying to
13039         convert it into a number
13040
13041 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
13042
13043         * server-src/amcleanup.sh.in (logdir/amdump): arrange that it is
13044         renamed if it exists, even if no log file could be found.
13045
13046 1998-11-20  Mike Grupenhoff <kashmir@munge.com>
13047
13048         * common-src/bsd-security.c: define STREAM_BUFSIZE to be
13049         the size of the tcp socket buffers
13050         * common-src/bsd-security.c (bsd_stream_server, bsd_stream_client):
13051         adapt to the stream_server() interface changes.  Set socket
13052         buffers to STREAM_BUFSIZE.
13053
13054 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
13055
13056         * config/ltmain.sh, config/ltconfig, config/libtool/libtool.m4:
13057         updated to current CVS libtool
13058
13059 1998-11-19  John R. Jackson  <jrj@purdue.edu>
13060
13061         * server-src/conffile.c (get_holdingdisk, init_holdingdisk_defaults):
13062         set the default chunksize and the "0" and "-1" special chunksizes
13063         to 64 KBytes less than the maximum to allow the final read at EOF.
13064         * server-src/dumper.c (main): leave the chunksize as it is when it
13065         comes in except to truncate it to a 32 KByte boundary.
13066         * man/amanda.8.in: add some chunksize comments and clean up a few
13067         minor odds and ends.
13068
13069 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
13070
13071         Give amrecover its own security bits.  It has different needs
13072         and a different protocol than the rest of amanda, so it shouldn't
13073         try to reuse the security bits
13074         * recover-src/amrecover.c (get_security): new function, implements
13075         bsd security
13076         * recover-src/amrecover.c (main): call get_security()
13077         * recover-src/amrecover.h: get_security() prototype
13078         * recover-src/extract_list.c (extract_files_setup): call
13079         get_security()
13080         * restore-src/amidxtaped.c (check_security): new function, implements
13081         * restore-src/amidxtaped.c (main): call check_security()
13082
13083 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
13084
13085         * common-src/stream.c (stream_server, stream_client): cast 4th
13086         arg of setsockopt() to (void *) to quash a compiler warning
13087         under solaris.
13088
13089 1998-11-19  John R. Jackson  <jrj@purdue.edu>
13090
13091         * recover-src/amrecover.c (main): use set_host to find the initial
13092         host name so we get the same alias resolution at startup as the
13093         sethost command.
13094         * recover-src/set_commands.c (set_host): report alternate names being
13095         attempted and only clear the directory list if a host is found.
13096
13097 1998-11-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
13098
13099         * server-src/driverio.c (update_info_dumper): do not update
13100         compression or dump rates when called from
13101         update_failed_dump_to_date
13102         Reported by Michael Schmitz <mschmitz@sema.de>
13103
13104 1998-11-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13105
13106         * server-src/dumper.c (main): reduce the size of the chunksize by
13107         2 blocks.
13108
13109 1998-11-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
13110
13111         * configure.in: hack for paxutils was not working; fixed
13112
13113 1998-11-18  Michael Povel  <mcp@ladyada.han.de>
13114
13115         * server-src/changer.h added new functions:changer_query
13116         ,changer_search,changer_find, changer_label
13117         * server-src/changer.c added changer_query, changer_search,
13118         changer_find, changer_label
13119         * server-src/amcheck.c (taper_scan) now uses changer_find 
13120         * server-src/amtape.c (load_label and taper_scan) now use changer_find
13121         * server-src/taper.c (taper_scan) now uses changer_find
13122         * server-src/amlabel.c (main) added call to changer_label
13123         which is only an empty dummy at the moment
13124
13125 1998-11-18  Thomas Hepper <th@icem.de>
13126
13127         * changer-src/chg-scsi.c Added debug print option
13128         * changer-src/chg-scsi.c If the load fails do not continue
13129         * changer-src/scsi-aix.c changed #include <config.h> to <amanda.h>
13130         * changer-src/scsi-aix.c Added debug prints to SCSI_ExecuteCommand
13131         * changer-src/scsi-changer-driver.c changed #include <config.h> to 
13132         #include <amanda.h>
13133         * changer-src/scsi-changer-driver.c Added debugging prints
13134         * changer-src/scsi-changer-driver.c Remove unused funktion TestUnitReady
13135         * changer-src/scsi-chio.c added missing funktion Tape_Ready
13136         * changer-src/scsi-hpux.c removed #include "config.h", is already done
13137         in amanda.h
13138         * changer-src/scsi-hpux_new.c  changed #include <config.h> to 
13139         #include <amanda.h>
13140         * changer-src/scsi-irix.c changed #include <config.h> to 
13141         #include <amanda.h>
13142         * changer-src/scsi-linux.c changed #include <config.h> to 
13143         #include <amanda.h>
13144         * changer-src/scsi-solaris.c changed #include <config.h> to 
13145         #include <amanda.h>
13146
13147 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
13148
13149         * client-src/sendsize.c: disable HAVE_DUMP_ESTIMATE if SAMBA_CLIENT
13150         is defined
13151
13152 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13153
13154         * server-src/tapefile.c (lookup_last_reusable_tape): Wrong order
13155         to shift the tpsave array.
13156
13157 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
13158
13159         * example/amanda.conf.in: document that infofile is supposed to be a
13160         directory with the default database format
13161         * docs/FAQ: New questions: `infofile update failed' and `using the
13162         same host in different configurations'
13163
13164 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13165
13166         changer-src/scsi-linux.c (Tape_Ready): typo, the argument Device
13167         to the SCSI_CloseDevice() is not defined, I changed it to tapedev.
13168
13169 1998-11-17  Brendan M Coffey <bcoffey@connix.com>
13170
13171         * common-src/stream.c (stream_server): add requested send and receive
13172         socket size parameters.
13173         * common-src/stream.h (stream_server): ditto
13174         * server-src/taper.c (file_reader_side): set a large receive socket
13175         buffer size.
13176         * client-src/sendbackup.c (main): set a large send and receive socket
13177         buffer size for the data path, use defaults for the message and index
13178         paths.
13179
13180 1998-11-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
13181
13182         * changer-src/scsi-solaris.c (Tape_Ready): typo in Thomas' patch
13183
13184 1998-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13185
13186         * server-src/infofile.h (get_dumpdate): rename record parameter to info.
13187         * server-src/infofile.h (get_info): rename record parameter to info.
13188         * server-src/infofile.h (put_info): rename record parameter to info.
13189         * server-src/infofile.c (get_dumpdate): rename rec parameter to info.
13190         * server-src/infofile.c (zero_info): rename ip parameter to info.
13191         * server-src/infofile.c (get_info): rename record parameter to info.
13192         * server-src/infofile.c (put_info): rename record parameter to info.
13193         * server-src/infofile.c (dump_rec): rename r parameter to info.
13194         * server-src/infofile.c (dump_db): rename record variable to info.
13195         * server-src/planner.c (last_level): rename ip parameter to info.
13196         * server-src/planner.c (next_level0): rename ip parameter to info.
13197         * server-src/planner.c (runs_at): rename ip parameter to info.
13198         * server-src/planner.c (askfor): rename inf parameter to info.
13199         * server-src/planner.c (setup_estimate): rename inf variable to info.
13200         * server-src/driverio.c (update_info_dumper): rename inf parameter 
13201         to info.
13202         * server-src/driverio.c (update_info_taper): rename inf parameter 
13203         to info.
13204         * server-src/amadmin.c (next_level0): rename ip parameter to info.
13205         * server-src/amadmin.c (force_one): rename inf variable to info.
13206         * server-src/amadmin.c (unforce_one): rename inf variable to info.
13207         * server-src/amadmin.c (delete_one): rename inf variable to info.
13208         * server-src/amadmin.c (info_one): rename inf variable to info.
13209         * server-src/amadmin.c (due_one): rename inf variable to info.
13210         * server-src/amadmin.c (balance): rename inf variable to info.
13211
13212 1998-11-11  Thomas Hepper <th@icem.de>
13213
13214         * configure.in: amanda_cv_hpux_scsi was double defined.
13215         Replaced it in the chio check with amanda_cv_hpux_scsi_chio
13216         * docs/TAPE.CHANGERS: update the notes about chg-scsi
13217         * changer-src/chg-scsi.c: Unload the cleaning tape only
13218         if it is loaded
13219         Pass the changerdev and tapedev Tape_Ready, so we can check
13220         if changerdev=tapedev. In this case the fd is already open.
13221         * changer-src/scsi-aix.c: cleanup and first parts are running :-)
13222         * changer-src/scsi-changer-driver.c: Pass back the scsi status
13223         field to the calling function, not the result from the ioctl
13224         if the return form the ioctl is >= 0
13225         * changer-src/scsi-hpux.c: Add additional param to Tape_Ready
13226         fill Tape_Ready with live 
13227         * changer-src/scsi-hpux_new.c: Return the scsi status if 
13228         the ioctl result is >=0. Add new Parameter to Tape_Ready
13229         * changer-src/scsi-irix.c: same as scsi-hpux_new.c
13230         * changer-src/scis-linux.c: Add additional param to Tape_Ready
13231         * changer-src/scsi-solaris.c: same as scsi-hpux_new.c
13232
13233 1998-11-11  Mike Grupenhoff <kashmir@munge.com>
13234
13235         * server-src/security.h: add driver entry points and macros
13236         for security_stream_accept() and security_stream_auth()
13237         * server-src/bsd-security.c: implement security_stream_accept()
13238         and security_stream_auth() for bsd security
13239
13240 1998-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13241
13242         * server-src/driver.c (main): redo my patch about total_disksize that
13243         Alexendre has undone, only the 2.4.1 branch was broken.
13244
13245 1998-11-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
13246
13247         * server-src/driver.c (main): total_disksize was only added after
13248         the loop terminated, i.e., when hdp was NULL -> crash.  fixed.
13249
13250 1998-11-09  John R. Jackson  <jrj@purdue.edu>
13251
13252         * server-src/reporter.c (main): ignore SIGPIPE so if a child process
13253         dies we do not also go away.  Also fix a core dump if amanda.conf
13254         cannot be processed, and clean up a few error messages.
13255
13256 1998-11-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13257
13258         * server-src/infofile.h (struct info_s): add last_level and 
13259         consecutive_runs.
13260         * server-src/infofile.c: support new last_level and consecutive_runs
13261         * server-src/planner.c (last_level): return ip->last_level.
13262         * server-src/planner.c (runs_at): return ip->consecutive_runs.
13263         * server-src/driverio.c (update_info_dumper): update inf.last_level
13264         and inf.consecutive_runs.
13265         
13266 1998-11-09  Mike Grupenhoff <kashmir@munge.com>
13267
13268         * client-src/sendbackup-dump.c (start_backup): don't close indexf
13269         if it was never open
13270         * client-src/sendbackup-gnutar.c (start_backup): ditto
13271
13272 1998-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13273
13274         * server-src/driver.c (main): add hdp->disksize to total_disksize
13275         even when we create the datestamp dir. (reserve was unusable).
13276
13277 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
13278
13279         * Makefile.am (EXTRA_DIST): added EVENT-API, SECURITY-API and
13280         STRATEGY-API
13281         * docs/STRATEGY-API: new file
13282
13283         * configure.in (GNUTAR): accept tar from Free paxutils, the new name
13284         of GNU tar
13285
13286 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
13287
13288         * changer-src/scsi-solaris.c: added missing #endif
13289
13290         * configure.in: merge with camlib.h patch from Oct 31
13291         remove all uses of test ... -a ...; this is not portable.
13292         (AC_CHECK_HEADERS) added header files for Linux and Solaris
13293
13294 1998-11-07  Thomas Hepper  <th@icem.de>
13295
13296         * changer-src/chg-scsi: Add config option scsidev
13297         * changer-src/chg-scsi: Remove function tape_ready
13298         * changer-src/chg-scsi: Add new parameter tapedev to function
13299         ask_clean
13300         * changer_src/scsi-hpux.c: changed HAVE_HPUX_SCSI to 
13301         HAVE_HPUX_SCSI_CHIO, changed in configure.in too
13302         * changer-src/libscsi.h: Expand definition for get_clean_state
13303         * new files in /changer-src:
13304         scsi-aix.c, scsi-changer-driver.c, scsi-defs.h
13305         scsi-hpux_new.c, scsi-irix.c, scsi-linux.c, scsi-solaris.c
13306         * configure.in checks for scsi ioctl added, check for header files
13307         for the scsi suport added
13308         * config/acconfig.h new:
13309         HAVE_HPUX_LIKE_SCSI, HAVE_HPUX_SCSI_CHIO, HAVE_LINUX_LIKE_SCSI
13310         HAVE_IRIX_LIKE_SCSI, HAVE_SOLARIS_LIKE_SCSI, HAVE_AIX_LIKE_SCSI
13311                removed: HAVE_HPUX_SCSI
13312         * changer-src/Makefile.am: New conditional for building chg-scsi-chio
13313         and chg-scsi. chg-scsi-chio is the old chg-scsi
13314
13315 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
13316
13317         * common-src/bsd-security.c (bsd_stream_write): callback's third
13318         arg should now be an int.
13319         * common-src/bsd-security.c: quash some gcc -Wall warnings
13320
13321 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
13322
13323         * common-src/security.h: the callback to stream_read should
13324         take signed type as its 'length' argument so errors can be
13325         expressed as a negative number.
13326
13327 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
13328
13329         * common-src/bsd-security.c (stream_read_callback): do reads into
13330         a buffer of size TAPE_BLOCK_BYTES, instead of 256, and place the
13331         buffer in the stream handle instead of on the stack, since it's
13332         huge
13333
13334 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
13335
13336         * common-src/event.c (event_loop): Consider error conditions on
13337         file descriptors as read or write events.  The caller will be
13338         able to differentiate when they call read or write and it
13339         fails.
13340
13341 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
13342
13343         * common-src/event.c (event_loop): print out WHY select failed
13344
13345 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
13346
13347         * common-src/bsd-security.c: adjust for the recvpkt timeout
13348         interface changes
13349         * common-src/bsd-security.c (handleq_remove): add a missing ; after
13350         an assertion
13351         * common-src/bsd-security.c (gethandle): initialize the error buffer
13352         in the security handle, since errors may be set before the handle
13353         is passed up to the general security layer
13354         * common-src/bsd-security.c (bsd_recvpkt_cancel): allow it to be
13355         called several times, or when no recvpkt was scheduled
13356
13357 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
13358
13359         * common-src/security.h: define security_recvpkt_status_t
13360         * common-src/security.h: security_driver_t->recvpkt() now
13361         takes a timeout argument, and its callback takes a
13362         security_recvpkt_status_t
13363         * common-src/security.h: adjust the security_recvpkt() macro
13364         for the above changes
13365
13366 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
13367
13368         * common-src/event.c (event_loop): assert that we are not firing
13369         a dead event
13370
13371 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13372
13373         * recover-src/amrecover.c: remove declaration of errstr.
13374
13375 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13376
13377         * server-src/amindexd.c (build_disk_table): call find_dump() instead
13378         of popen("amadmin <conf> find ...")
13379
13380 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13381
13382         * server-src/holding.h: rename dir_list to holding_list because
13383         dir_list is also declared in amflush.c
13384         * server-src/holding.c: ditto
13385         * server-src/find.c: ditto
13386
13387 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13388
13389         * server-src/amstatus.pl.in: remove warning.
13390
13391 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
13392
13393         * common-src/event.c (event_register): delete some improper debug
13394         code that shouldn't have made it in
13395
13396 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
13397
13398         * common-src/bsd-security.c: new file: security driver that
13399         implements "BSD" security.
13400
13401 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
13402
13403         * common-src/security.h: new file: the security api header
13404
13405 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
13406
13407         * common-src/event.c: new file: the event handler.  Handles file
13408         descriptor io, signals, and timed events.
13409         * common-src/event.h: new file: interface for the event handler.
13410
13411 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
13412
13413         * common-src/packet.c: new file: description of pkt_t's and routines
13414         for formatting
13415         * common-src/packet.h: new file: header for common-src/packet.c
13416
13417 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
13418
13419         * common-src/queue.h: new file: the 4.4BSD queue macros, with
13420         additions from NetBSD
13421
13422 1998-11-04  John R. Jackson  <jrj@purdue.edu>
13423
13424         * server-src/amverify.sh.in: tolerate extra amtape output.
13425
13426 1998-11-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
13427
13428         * configure.in: bumped to 2.5.0
13429
13430         * server-src/taper.c (read_file): if a new tape cannot be found,
13431         report a no-tape error to the log file and exit, just like it does
13432         for the first tape
13433
13434 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13435
13436         * server-src/planner.c (pick_inclevel): return base_level even
13437         when the estimate failed.
13438         * server-src/planner.c (output_scheduleline): test for degr_size
13439         instead of degr_level.
13440
13441 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13442
13443         * server-src/planner.c (last_level): update last_date otherwise only
13444         level 0 or the highest is returned.
13445
13446 1998-11-03  Mike Grupenhoff  <kashmir@munge.com>
13447
13448         * common-src/alloc.c: const arguments to the stralloc functions
13449         * common-src/amanda.h: update stralloc prototypes for const
13450         poisoning
13451
13452 1998-11-03  John R. Jackson  <jrj@purdue.edu>
13453
13454         * server-src/dumper.c (do_dump): do not report FAILED back to driver
13455         when it sent us ABORT.  Clean up and send back ABORT-FINISHED.
13456
13457 1998-11-03  John R. Jackson  <jrj@purdue.edu>
13458
13459         * server-src/driver.c (handle_dumper_result): do not abort a dumper
13460         that reports NO-ROOM if taper is busy since some holding disk space
13461         will eventually be released (this code it not used when PORT-DUMP is
13462         in progress).
13463
13464 1998-11-03  John R. Jackson  <jrj@purdue.edu>
13465
13466         * server-src/taper.c (write_buffer): calling lseek after every tape
13467         write is wasteful and makes utilities like lsof less useful.  Only
13468         reset the offset when the amount written is about to go over 2 GBytes.
13469
13470 1998-11-02  John R. Jackson  <jrj@purdue.edu>
13471
13472         * server-src/driver.c (main, start_degraded_mode): fix rounding problem
13473         that made the code think there was a little room for full dumps in
13474         degraded mode, and fix the code that decides whether to do a full dump
13475         in degraded mode.
13476
13477 1998-11-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13478
13479         * server-src/amstatus.pl.in: initialize variable to remove warning.
13480
13481 1998-11-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
13482
13483         * client-src/Makefile.am (CLIENT_SCRIPTS): rename to
13484         CLIENT_SCRIPTS_OPT, because *_SCRIPTS is interpreted by automake
13485         * configure.in (CLIENT_SCRIPTS): ditto
13486         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
13487
13488         * configure.in (LIBTOOL_M4): no longer defined
13489         (LIBTOOL_M4_MACRO_DIR): defined assuming CWD is top_srcdir
13490         * Makefile.am (ACLOCAL_M4_FROM_SRCDIR): relative to srcdir
13491         (ACLOCAL_M4): defined and created using ACLOCAL_M4_FROM_SRCDIR
13492         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
13493         
13494         * client-src/sendbackup.c (backup_program): rename to
13495         gnutar_program, that's the name it should have had from the
13496         beginning
13497         * client-src/sendbackup-gnutar.c (backup_program): ditto
13498
13499 1998-10-31  Michael Schmitz <mschmitz@iname.com>
13500
13501         * configure.in: let configure check whether strcasecmp is
13502         present
13503         * common-src/strcasecmp.c: new file which contains a definition
13504         of strcasecmp
13505         * common-src/amanda.h: added code to declare strcasecmp in
13506         case it's not declared in a standard header
13507
13508 1998-10-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
13509
13510         * configure.in (snprintf): arrange that it is included in the
13511         distribution automatically
13512         * common-src/Makefile.am (EXTRA_DIST): removed, not needed
13513
13514         * changer-src/Makefile.am (libexec_SCRIPTS): would only be enabled
13515         if WANT_CHG_SCSI
13516
13517         * configure.in (NO_SCSI_CHANGER_MODE): chg-scsi does not support the
13518         new FreeBSD 3.0 chio.h, so disable it if camlib.h is found.
13519         * docs/SYSTEM.NOTES (FreeBSD 3.0): add a note about this
13520         (SunOS 4.x): libtool will no longer find incorrect library versions
13521
13522 1998-10-30  John R. Jackson  <jrj@purdue.edu>
13523
13524         * common-src/security.c (bsd_security_ok): change error message to
13525         reflect that it is a host name we were looking up rather than an
13526         address (also makes the two similar messages unique).
13527
13528 1998-10-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
13529
13530         * docs/SYSTEM.NOTES: Debian 2's dump uses /var/lib/dumpdates 
13531
13532 1998-10-28  John R. Jackson  <jrj@purdue.edu>
13533
13534         * recover-src/set_commands.c (set_host): if the host given by the user
13535         does not work, try the canonical name and aliases returned by
13536         gethostbyname.
13537
13538 1998-10-28  John R. Jackson  <jrj@purdue.edu>
13539
13540         * configure.in: use "df /" instead of just "df" when trying to find
13541         the device that has the root file system to avoid things like NFS
13542         hangs that df sometimes suffers from.
13543
13544 1998-10-27  Mike Grupenhoff <kashmir@munge.com>
13545
13546         * common-src/stream.c (stream-client): add a 'localport' argument
13547         in which we can get the port this stream is bound to locally
13548         * common-src/stream.h (stream-client): update prototype
13549         * server-src/dumper.c: update stream-client calls
13550
13551 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13552
13553         * client-src/amandad.c (main): better logging of received packet,
13554         do not send a P_ACK when the received packet is not a P_REQ.
13555
13556 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13557
13558         * client-src/amandad.c (main): terminate immediately if started
13559         by a P_ACK packet without sending a P_NAK packet.
13560
13561 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13562
13563         * server-src/conffile.h (dtimeout): new keyword 
13564         * server-src/conffile.c (dtimeout): ditto
13565         * server-src/dumper.c: use dtimeout instead of READ_TIMEOUT
13566         * example/amanda.conf.in: document it
13567         * man/amanda.8.in: ditto
13568         * NEWS: ditto
13569
13570 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13571
13572         * server-src/dumper.c (sendbackup_response): a nak error will
13573         be a TRY-AGAIN instead of a FAILED.
13574
13575 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13576
13577         * server-src/amlabel.c: move declaration of vtbl_no, datestr
13578         and slotcommand to the main function.
13579
13580 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13581
13582         * server-src/amlabel.c: remove declaration of pname.
13583
13584 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13585
13586         * server-src/amcheckdb.sh.in: modify to match new tapelist file
13587         format (keyword reuse and no-reuse). Probably no-one use this
13588         program.
13589
13590 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13591
13592         * server-src/driver.c (handle_dumper_result): Add sleep time
13593         when a dumper failed, it could be a temporary network problem,
13594         such as NIS or NFS, better wait a few seconds before retrying.
13595
13596 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13597
13598         * server-src/driverio.h: remove declaration of argc et argv.
13599         * server-src/driverio.h (getresult): add parameters result_argc, 
13600         result_argv and max_arg.
13601         * server-src/driverio.c (getresult): use new parameters.
13602         * server-src/amflush.c (flush_holdingdisk, run_dumps): declare
13603         and use result_argc and result_argv instead of global variables
13604         argc and argv.
13605         * server-src/driver.c (main, handle_taper_result, 
13606         handle_dumper_result, dump_to_tape): ditto
13607
13608 1998-10-24  John R. Jackson  <jrj@purdue.edu>
13609
13610         * server-src/amstatus.pl.in: do not be quite so accurate in matching
13611         the log file lines since messages may be intermixed.  Turn on perl
13612         -w switch and make first cut at cleaning up warnings.
13613
13614 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13615
13616         * server-src/driverio.h: remove datestamp declaration.
13617         * server-src/amcheck.c: remove 'extern' to datestamp declaration.
13618         * server-src/amflush.c: declare datestamp.
13619         * server-src/amtape.c: remove 'extern' to datestamp declaration.
13620         * server-src/driver.c: declare datestamp.
13621         * server-src/dumper.c: remove 'extern' to datestamp declaration.
13622         * server-src/reporter.c: remove 'extern' to datestamp declaration.
13623
13624 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13625
13626         * server-src/driverio.h: remove declaration of tok.
13627         * server-src/amflush.c (flush_holdingdisk,run_dumps): declare
13628         tok locally.
13629         * server-src/driver.c (main, handle_taper_result, handle_dumper_result,
13630         dump_to_tape): declare tok locally.
13631
13632 1998-10-23  John R. Jackson  <jrj@purdue.edu>
13633
13634         * configure.in: disable the -E and -h dump estimate checks if $DUMP
13635         is not executable.
13636
13637 1998-10-19  John R. Jackson  <jrj@purdue.edu>
13638
13639         * server-src/amindexd.c (is_config_valid): fix core dump by moving
13640         amfree of conf_dir later in case it is needed in an error message.
13641
13642 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13643
13644         * server-src/reporter.c: remove declaration of curlinenum,
13645         curlog, curprog and curstr.
13646
13647 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13648
13649         * server-src/amflush.c (main): move declaration of diskqp from
13650         global to local.
13651
13652 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13653
13654         * server-src/amcheck.c (main): move declaration of mailout and 
13655         tempfname from global to local.
13656
13657 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13658
13659         * server-src/amadmin.c (search_logfile): remove declaration
13660
13661 1998-10-15  Mike Grupenhoff <kashmir@munge.com>
13662
13663         * server-src/amadmin.c (reuse, no-reuse): don't core dump if tape
13664         label not found
13665
13666 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13667
13668         * server-src/conffile.h: remove declaration of holdingdisks and 
13669         num_holdingdisks, declare getconf_holdingdisks().
13670         * server-src/conffile.c: define getconf_holdingdisks(),
13671         * server-src/holding.c: use getconf_holdingdisks
13672         * server-src/find.c: ditto
13673         * server-src/amcheck.c: ditto
13674         * server-src/amflush.c: ditto
13675         * server-src/driver.c ditto
13676
13677 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13678
13679         * server-src/driver.c: remove verbose and force_parameters
13680         variables.
13681
13682 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13683
13684         * server-src/dumper.c: remove declaration of pid.
13685         * server-src/dumper.c(do_dump): move declaration of runtime, 
13686         dumptime, compresspid, indexpid and killerr from global to local.
13687
13688 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13689
13690         * server-src/planner.c: remove declaration of total_waiting and
13691         result_socket.
13692         * server-src/planner.c(main): move declaration of initial_size from
13693         global to local.
13694
13695 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13696
13697         * server-src/driverio.h,server-src/driver.c: move declaration
13698         of big_dumpers, degraded_mode and reserved_space from 
13699         driverio.h to driver.c
13700
13701 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13702
13703         * server-src/driverio.h (optionstr): remove declaration
13704
13705 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13706
13707         * configure.in (SAMBA_CLIENT): fix typo
13708
13709 1998-10-14  John R. Jackson  <jrj@purdue.edu>
13710
13711         * restore-src/amrestore.c (read_file_header): make a couple of error
13712         messages clearer that they refer to problems with a header rather
13713         than the image data.
13714
13715 1998-10-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
13716
13717         * client-src/Makefile.am (libamclient_a_SOURCES): missing since
13718         clean-up; re-added
13719
13720 1998-10-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13721
13722         * docs/INTERNALS (driver and dumper): document <dumpdate> in 
13723         FILE-DUMP and PORT-DUMP request, document <chunksize> in 
13724         FILE-DUMP request.
13725
13726 1998-10-12  John R. Jackson  <jrj@purdue.edu>
13727
13728         * server-src/amtape.c (usage, main, show_device): apply patch from
13729         Chris Jones <cjones@clydesdale.math.montana.edu> to support "device"
13730         as an option to return the drive device name as reported by the
13731         changer.
13732         * man/amtape.8: document the new "device" option.
13733         * server-src/amverify.sh.in: use the new amtape "device" option to
13734         better handle tape changers.  Overhaul for general cleanup and some
13735         security issues, plus amverify now tries to support non-tar images.
13736         * man/amverify.8.in: document non-tar image issues.
13737
13738 1998-10-08  John R. Jackson  <jrj@purdue.edu>
13739
13740         * example/amanda.conf.in: fix runspercycle example and comments
13741
13742 1998-10-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
13743
13744         * configure.in (SAMBA_CLIENT): try to find it by default; minimal
13745         checking
13746         * client-src/Makefile.am (WANT_SAMBA): use automake conditionals to
13747         enable findpass.o
13748         * docs/SAMBA: document that --with-smbclient is no longer required
13749         to enable SAMBA support
13750         
13751         * docs/FAQ: about inconsistencies in active filesystems
13752
13753 1998-10-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13754
13755         * docs/DUMPER-API: add `no-record' option to the `backup' command.
13756
13757 1998-10-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13758
13759         * docs/DUMPER-API: subdivise section 3.1.
13760
13761 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13762
13763         * docs/DUMPER-API: New `index-<mode>' options.
13764         define `support parse-estimate' and `support parse-backup' subcommand.
13765         New 'estimate-direct', `estimate-parse', `backup-direct' and
13766         `backup-parse' options.
13767         Remove PARSE keyword from estimate and backup command.
13768
13769 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13770
13771         * docs/DUMPER-API: define PARSE keyword in stderr of the backup
13772         command
13773
13774 1998-10-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
13775
13776         * man/Makefile.am (EXTRA_DIST): make sure the man-pages that are not 
13777         generated by autoconf get into the distribution
13778
13779 1998-10-02  Josef Karthauser  <joe@pavilion.net>
13780
13781         * changer-src/chg-chio.pl.in (getTapeParams): fix regular expression 
13782         for $line; the trailing `s' of slots was missing
13783
13784 1998-10-02  John R. Jackson  <jrj@purdue.edu>
13785
13786         * server-src/amstatus.pl.in: fix error message.
13787
13788 1998-10-02  John R. Jackson  <jrj@purdue.edu>
13789
13790         * server-src/taper.c (write_file): fix a problem with tha taper
13791         stats where the times were all the same.  The wallclock_str function
13792         returns a pointer to a static area so it cannot be called more
13793         than once as an argument to a function.
13794
13795 1998-10-01  John R. Jackson  <jrj@purdue.edu>
13796
13797         * common-src/protocol.c (parse_integer): allow negative numbers.
13798
13799 1998-10-01  John R. Jackson  <jrj@purdue.edu>
13800
13801         * server-src/amstatus.pl.in: add timestamps.
13802
13803 1998-10-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
13804
13805         * docs/DUMPER-API: define `support index', to be used instead of the
13806         previous `index-*' sub-commands
13807
13808 1998-09-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
13809
13810         * server-src/Makefile.am (libexec_PROGRAMS, sbin_SCRIPTS): don't use 
13811         backslashes for continuation; this seems to break automake :-(
13812
13813 1998-09-30  John R. Jackson  <jrj@purdue.edu>
13814
13815         * man/amanda.8.in: minor typo in "reserve" description.
13816
13817 1998-09-29  John R. Jackson  <jrj@purdue.edu>
13818
13819         * server-src/taper.c (end_tape): do not rewind the tape when done.
13820
13821 1998-09-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
13822
13823         * configure.in (WANT_CLIENT, WANT_RESTORE, WANT_SERVER, 
13824         WANT_RECOVER, WANT_TAPE, WANT_AMPLOT, WANT_CHG_SCSI): automake
13825         conditionals
13826         * amplot/Makefile.am: use them
13827         * changer-src/Makefile.am: ditto
13828         * client-src/Makefile.am: ditto
13829         * common-src/Makefile.am: ditto
13830         * man/Makefile.am: ditto
13831         * recover-src/Makefile.am: ditto
13832         * restore-src/Makefile.am: ditto
13833         * server-src/Makefile.am: ditto
13834         * tape-src/Makefile.am: ditto
13835
13836         * Makefile.am: don't print commands that work around old aclocal bug
13837
13838         * docs/DUMPER-API: remove environment variables, and mention a
13839         program that will help translating disklist entries to device names, 
13840         mount points and filesystem types
13841
13842         * recover-src/extract_list.c (extract_files_child): do not crash
13843         after failing to read the dump file header
13844         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
13845
13846 1998-09-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
13847
13848         * server-src/taper.c (taperscan_slot): initialize scan_datestamp, to
13849         avoid amfree of uninitialized pointer
13850         Reported by Lance A. Brown <brown9@niehs.nih.gov>
13851
13852 1998-09-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
13853
13854         * docs/DUMPER-API (USER, GROUP): detailed security mechanisms
13855         (estimate, estimate-parse): can print `KILL' after the estimate
13856         
13857         * docs/DUMPER-API: various suggestions from Eric Siegerman
13858         <erics@now.com> and some explanations added
13859         
13860 1998-09-27  Andy Farkas  <andyf@speednet.com.au>
13861
13862         * man/amlabel.8.in (labelstr): fix typo
13863
13864 1998-09-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
13865
13866         * recover-src/extract_list.c (extract_files_child): fix-up
13867         no_initial_params if password or domain information is not found
13868         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
13869
13870         * docs/DUMPER-API: extended `index' to `index-from-output' or
13871         `index-from-image', as suggested by Dale Hagglund <rdh@best.com>.
13872         Explained that the dumptype option `program' is the name of the
13873         wrapper program
13874
13875 1998-09-25  John R. Jackson  <jrj@purdue.edu>
13876
13877         * configure.in: fix --with-dump-honor-nodump test.  Patch by
13878         Jonas Oberg <jonas@coyote.org>.
13879
13880 1998-09-24  John R. Jackson  <jrj@purdue.edu>
13881
13882         * example/disklist: document the "spindle" and "interface" fields.
13883         Reported by Brendan M Coffey <bcoffey@connix.com>.
13884
13885 1998-09-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
13886
13887         * docs/DUMPER-API: added draft description of the DUMPER API
13888         * Makefile.am (EXTRA_DIST): add it to the distribution
13889
13890         * config/acinclude.m4 (AC_VALIDATE_CACHE_SYSTEM_TYPE): make sure
13891         cached values for host, build and target system types match with the
13892         guessed ones
13893         * configure.in: use it
13894
13895 1998-09-23  John R. Jackson  <jrj@purdue.edu>
13896
13897         * server-src/amstatus.pl.in: sort the host and partition names.
13898         From David Wolfskill <dhw@whistle.com>.
13899
13900 1998-09-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
13901
13902         * server-src/taper.c (getcmd): typo in last DEBUGging patch
13903
13904 1998-09-22  Tim Perkins  <Tim.Perkins@ddg.phar.cam.ac.uk>,  Alexandre Oliva <oliva@dcc.unicamp.br>
13905
13906         * client-src/selfcheck.c (check_disk): fix VDUMP auto-detection
13907
13908 1998-09-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
13909
13910         * changer-src/chg-mtx.sh.in: replace rew with rewind
13911         * changer-src/chg-zd-mtx.sh.in: ditto
13912         Reported by Henning Holtschneider <hh@loca.net>
13913
13914         * client-src/sendsize.c: remove usage of #error
13915         Reported by Jay Orr <orr@vss.fsi.com>
13916
13917 1998-09-21  John R. Jackson  <jrj@purdue.edu>
13918
13919         * man/amanda.8.in: document the new "tapebufs" parameter.
13920
13921 1998-09-21  Kelly Setzer  <setzer@telalink.net>
13922
13923         * server-src/taper.c (NBUFS): replaced with conf_tapebufs
13924         (THRESHOLD): now means `empty bufs' instead of `full bufs'
13925         * server-src/conffile.c: add support for the "tapebufs" option
13926         * server-src/planner.c: ditto
13927         * examples/amanda.conf.in: add sample "tapebufs" entry
13928
13929         * server-src/amlabel.c (main): adds entry to tapelist with date
13930         19700101
13931
13932 1998-09-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
13933
13934         * server-src/taper.c (getcmd): print DEBUGging output to stderr
13935         Reported by Henning Holtschneider <hh@loca.net>
13936
13937 1998-09-19  Eric Doutreleau <Eric.doutreleau@int-evry.fr>
13938
13939         * server-src/driverio.h (MAX_DUMPERS): increased from 15 to 63 in
13940         order to launch more dumper in parallel
13941         * example/amanda.conf.in (inparallel): Add the fact that it is
13942         limited by MAX_DUMPERS
13943
13944 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
13945
13946         * common-src/Makefile.am (libamanda_la_LDFLAGS): use libtool
13947         -release instead of -version_info, so as to encode the Amanda
13948         release number in the library name.  Problems related with
13949         pre-installed libraries should disappear, and separate releases can
13950         now be installed into the same directory without the risk of one
13951         using libraries from the other.
13952
13953 1998-09-18  Michael C. Povel  <Michael.Povel@hub.de>
13954
13955         * changer-src/chg-scsi.c (wait_ready): new function; keeps retrying
13956         until success or timeout
13957         (ask_clean, main): use it
13958
13959 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
13960
13961         * client-src/selfcheck.c (check_options): don't require runtar for
13962         SAMBA backups
13963         
13964         * client-src/rundump.c: fix support for VDUMP-only installation
13965         * client-src/selfcheck.c (check_options): fix detection of advfs
13966         * client-src/sendsize.c (getsize_dump): ditto
13967         * client-src/sendbackup-dump.c (start_backup): ditto
13968         Reported by Tim Perkins <Tim.Perkins@ddg.phar.cam.ac.uk>
13969
13970 1998-09-16  John R. Jackson  <jrj@purdue.edu>
13971
13972         * man/amadmin.8.in: document that "hostname" is optional for "info".
13973         Reported by David Wolfskill <dhw@whistle.com>.
13974
13975 1998-09-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
13976
13977         * docs/FAQ: common compile-time and link-time errors
13978
13979 1998-09-11  John R. Jackson  <jrj@purdue.edu>
13980
13981         * server-src/tapefile.c (lookup_last_reusable_tape): use new
13982         calling sequence that passes how old a tape to return.  Remove
13983         lookup_previous_reusable_tape().
13984         * server-src/tapefile.h (lookup_last_reusable_tape): use new
13985         calling sequence that passes how old a tape to return.  Remove
13986         lookup_previous_reusable_tape().
13987         * server-src/amadmin.c (tape): use new lookup_last_reusable_tape
13988         calling sequence.
13989         * server-src/amcheck.c (taper_scan, start_server_check): use new
13990         lookup_last_reusable_tape calling sequence.
13991         * server-src/amflush.c (confirm): use new lookup_last_reusable_tape
13992         calling sequence.
13993         * server-src/amtape.c (taper_scan): use new lookup_last_reusable_tape
13994         calling sequence.
13995         * server-src/reporter.c (output_tapeinfo): use new
13996         lookup_last_reusable_tape calling sequence.
13997         * server-src/taper.c (taper_scan): use new lookup_last_reusable_tape
13998         calling sequence.
13999
14000 1998-09-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
14001
14002         * client-src/sendbackup-gnutar.c (re_table): ignore
14003         `load_client_codepage' message from SAMBA
14004
14005 1998-09-11  John R. Jackson  <jrj@purdue.edu>
14006
14007         * server-src/amstatus.pl.in (all): fix USE_VERSION_SUFFIXES=yes
14008         problems.  Reported by David Eckelkamp <davide@locutus.tradewave.com>.
14009
14010         * man/amstatus.8.in (all): fix minor typos.
14011
14012 1998-09-10  John R. Jackson  <jrj@purdue.edu>
14013
14014         * configure.in (LFS): add code that might support configuring large
14015         files on HP-UX.
14016
14017 1998-09-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
14018
14019         * server-src/conffile.c (dump_configuration): runspercycle is not a
14020         member of dumptype_t
14021         (init_holdingdisk_defaults): init chunksize with documented default,
14022         not -1, because it wouldn't be recalculated
14023
14024         * docs/INSTALL: URL for SAMBA was broken; note about 1.9.18p10 bug
14025
14026 1998-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14027
14028         * docs/SAMBA: 1.9.18p10 has a bug
14029
14030 1998-09-09  Terje Malmedal  <tm@funcom.com>
14031
14032         * common-src/stream.c (stream_server, stream_client): added
14033         SO_KEEPALIVE option so we get an error if the other side crashes
14034
14035 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
14036
14037         * configure.in (CHIO): look for chio and AC_SUBST it
14038         (MT, CHS): if not found, use just the program name
14039         
14040 1998-09-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14041
14042         * server-src/planner.c (last_level): return the last level
14043         even it is still on holding disk if reserve < 100.
14044
14045 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
14046
14047         * server-src/reporter.c (divzero, divzero_wide): print `#'s on
14048         overflow
14049
14050         * server-src/amtape.c (show_init): no longer print `scanning'
14051         message
14052         (show_init_show, current_init_all): call show_init, then print the
14053         appropriate `scanning' message
14054         Reported by David Wolfskill <dhw@whistle.com>
14055
14056         * changer-src/chg-scsi.c (main): use new multi-configuration
14057         mechanism only if tape_device contains only a single digit
14058
14059 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14060
14061         * server-src/planner.c (setup_estimate): Don't write a
14062         "mismatch: no tapelist record, but curinfo next_level0" message
14063         and force a level 0 when reserve < 100.
14064
14065 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14066
14067         * server-src/holding.h (get_amanda_names): return a filetype_t
14068         instead of an int.
14069         * server-src/holding.c (get_amanda_names): return the filetype_t
14070         of the file or F_UNKNOWN if it's not an amanda file.
14071         * server-src/find.c (search_holding_disk): Use the new return 
14072         type of get_amanda_names.
14073         * server-src/amflush.c (flush_holdingdisk): Don't write a
14074         "ignoring cruft file" message for chunk files,
14075         filetype is F_CONT_DUMPFILE.
14076
14077 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14078
14079         * recover-src/extract_list.c (extract_files_child): don't write
14080         the samba password to the debug file.
14081
14082 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14083
14084         * server-src/driverio.c (update_info_dumper): set inf.command to
14085         NO_COMMAND if reserve< 100 because if you force a level 0 with
14086         'amadmin force', it will do level 0 every days until you flush them
14087         to tape.
14088
14089 1998-09-03  Matthias Urlichs    <smurf@noris.net>
14090
14091         * recover-src/uscan.l: recognize "?" as alias for "help"
14092
14093         * configure.in (MAILER): recognize "mail" as well as "Mail" and
14094         "mailx"
14095
14096         * client-src/calcsize.c (add_file_dump, add_file_unknown): only get
14097         sizes of directories and files
14098
14099         * client-src/amandates.c (start_amandates): create amandates if
14100         error is either EINTR or ENOENT
14101
14102         * common-src/dgram.c (dgram_send_addr): handle ECONNREFUSED by not
14103         dying when receiving, and retrying when sending, a packet.  The
14104         server may get this error when a client reboots and hasn't started
14105         inetd yet.
14106         * common-src/protocol.c (handle_incoming_packet): ditto
14107
14108         * server-src/driver.c (read_schedule): catch cases when the time
14109         goes negative.  Some operators have the bad habit of syncing clocks
14110         late at night. ;-)
14111
14112         * common-src/dgram.h (MAX_DGRAM): increased to 64Kb
14113         * NEWS: ditto
14114         * client-src/amandad.c (main): read the pipe from the child
14115         incrementally: the pipe buffer of many OSes is shorter than
14116         MAX_DGRAM.  Instead of SIGCHLD, note end-of-data by way of
14117         end-of-file
14118         (sigchild_jump, sigchild_flag): removed
14119         * client-src/sendbackup.c (main): instead of fork-and-exit, tell
14120         amandad to process our data by closing our end of the pipe
14121         
14122 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
14123
14124         * NEWS: another typo (too late :-(
14125
14126 1998-09-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14127
14128         * server-src/driver.c: amanda will not use an holding disk
14129         if the directory with the datestamp already exist.
14130
14131 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
14132
14133         * Amanda 2.4.1 released
14134         
14135 1998-08-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14136
14137         * NEWS: typo
14138
14139 1998-08-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
14140
14141         * docs/INSTALL: update some version numbers; SAMBA 1.9.18p10 has
14142         fixed the bug in p8; using p8 is not recommended any more
14143         * docs/SAMBA: ditto
14144
14145         * config/config.guess: updated to libtool 1.2b's, in order to
14146         auto-detect some recent architectures
14147         * config/config.sub: ditto
14148
14149         * server-src/amcleanup.sh.in (sbindir): amreport now lives in
14150         sbindir; added it to PATH and removed full pathnames to binaries
14151
14152 1998-08-27  Blair Zajac  <blair@gps.caltech.edu>
14153
14154         * configure.in: Add the directory /usr/lib/fs/vxfs to the search
14155         path where configure looks for vxdump and vxrestore.  This is for
14156         Solaris so it can automatically handle vxfs filesystems.
14157         * client-src/sendbackup-dump.c: add missing last NULL argument to
14158         newvstralloc().
14159         * server-src/dumper.c: add missing last NULL argument to
14160         newvstralloc().
14161         * NEWS: reorder 2.4.1 items into most to least important for most
14162         users.
14163         * config/acconfig.h: update comment for VXDUMP and VXRESTORE to
14164         include systems where the Veritas filesystem is used.
14165
14166 1998-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
14167
14168         * man/amanda.8.in (nofull): only level 1 incrementals
14169
14170 1998-08-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
14171
14172         * changer-src/chg-mtx.sh.in (PATH): added /usr/local/bin
14173
14174         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): added chg-zd-mtx
14175         (AC_OUTPUT): ditto
14176         * changer-src/Makefile.am (EXTRA_SCRIPTS): ditto
14177         * docs/TAPE.CHANGERS (chg-zd-mtx): documented it
14178         (chg-mtx): mentioned chg-zd-mtx
14179
14180 1998-08-20  Eric Doutreleau  <Eric.Doutreleau@int-evry.fr>
14181
14182         * changer-src/chg-zd-mtx.sh.in: new changer script for
14183         Zubkoff/Dandelion version of mtx.
14184
14185 1998-08-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
14186
14187         * docs/SAMBA: updated; documented new patch (sambatar.diff,
14188         available in the patches page) and requirements about backup user.
14189         * docs/INSTALL: documented new patch
14190
14191 1998-08-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
14192
14193         * client-src/sendsize.c (regex_s): refuse to compile if SAMBA_CLIENT
14194         and HAVE_DUMP_ESTIMATE are both defined: the regexp that matches the
14195         estimate from DU 4.0's dump also matches an output line from
14196         smbclient, that provides an incorrect estimate.
14197         * docs/SYSTEM.NOTES: document the problem
14198
14199 1998-08-14  John R. Jackson  <jrj@purdue.edu>
14200
14201         * docs/TAPE.CHANGERS: describe "advance" and clean up some spelling.
14202
14203 1998-08-13  Alexandre Oliva  <oliva@dcc.unicamp.br>, Marcel Hild  <hild@id-pro.de>
14204
14205         * configure.in (--with-portrange): validate and define PORTRANGE
14206         * example/config.site: document it
14207         * config/acconfig.h (PORTRANGE): prepare for configure define
14208         * common-src/stream.c (stream_server): use PORTRANGE to limit TCP
14209         unreserved server sockets
14210
14211 1998-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
14212
14213         * docs/FAQ: working around `dumps way too big'
14214
14215 1998-08-11  Alexandre Oliva  <oliva@dcc.unicamp.br>, Gunnar Gunnarsson  <gunnar@ki.ericsson.se>
14216
14217         * common-src/token.h (rxquote, shquote): new functions
14218         * common-src/token.c (rxquote) quotes a string into an equivalent
14219         regular expression
14220         (shquote): quotes all shell special meta-characters, so that a
14221         string can be safely passed down for shell interpretation in
14222         system() or popen()-like calls
14223         * server-src/amindexd.c (build_disk_table): quote the disk_name with 
14224         both rxquote and shquote
14225
14226 1998-08-11  John R. Jackson  <jrj@purdue.edu>
14227
14228         * changer-src/chg-manual.sh.in: put the debug file in DEBUG_DIR for
14229         security.  Clean up and enhance logging.  Fix locations of the
14230         changer files.  Source the changerfile into the script so it can
14231         override the request() function and allow alternatives to /dev/tty
14232         (e.g. E-mail, syslog).  Issue rewind before status (Solaris does
14233         not give a good status report right after a tape is loaded).
14234
14235 1998-08-10  Nick Hibma  <nick.hibma@jrc.it>
14236
14237         * changer-src/chg-chio.pl.in: move to first slot if last is unused
14238
14239 1998-08-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
14240
14241         * example/Makefile.am (EXTRA_DIST): add DIN-A4.ps
14242
14243 1998-08-07  Günter Felkel  <G.Felkel@edelmann.de>
14244
14245         * example/DIN-A4.ps: new file
14246
14247 1998-08-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
14248
14249         * tape-src/tapetype.c (initrandombytes): use random() instead of
14250         rand(), its low-order bits are more random
14251         (main): call srandom(seed) instead of srand(seed)
14252         (USE_RAND): if defined, reverts to using rand() and srand(seed)
14253
14254         * docs/FAQ: some notes about driving real tape changers
14255
14256 1998-08-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
14257
14258         * man/amreport.8.in (SYNOPSIS): replace `amtoc' with `amreport'
14259
14260 1998-08-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
14261
14262         * client-src/sendsize.c: revert 1998-08-01's change, it wouldn't
14263         even compile, as amfree() expands to a statement, not an expression, 
14264         so it cannot be used as the `increment' part of a for loop.
14265
14266         * server-src/planner.c (main): if runs_per_cycle is set to zero or
14267         negative, set it to 1, in order to avoid division by zero.
14268         * server-src/amadmin.c (balance): ditto
14269
14270 1998-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
14271
14272         * client-src/sendsize.c: replace free(line) with amfree(line),
14273         because line is not ensured to be non-NULL
14274         
14275         * docs/FAQ: amandad: error receiving message
14276         
14277         * docs/FAQ: difference between skip-full and strategy nofull
14278
14279 1998-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
14280
14281         * docs/FAQ: software or hardware compression?
14282
14283         * server-src/driver.c (adjust_diskspace): do not abort just because
14284         a holding disk file is missing
14285         (main): report warning if holding disk directory could not be
14286         created, and do not use it
14287         Reported by Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
14288
14289         * example/Makefile.am (EXTRA_DIST): add 8.5x11.ps to the
14290         distribution
14291         Reported by Jason L Tibbitts III <tibbs@hpc.uh.edu>
14292
14293         * server-src/conffile.c (get_holdingdisk): define chunksize 0 as
14294         INT_MAX/1024, and chunksize -1 as -INT_MAX/1024
14295         * server-src/driver.c (find_diskspace): accept negative chunksizes
14296         as the maximum size (in modulus) for using the holding disk
14297         * man/amanda.8.in (chunksize): document the usage of negative
14298         values, and improve the explanation of chunking
14299         * example/amanda.conf.in: ditto
14300
14301 1998-07-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
14302
14303         * docs/FAQ: disk offline
14304
14305 1998-07-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
14306
14307         * restore-src/amidxtaped.c (main): use tape_rewind() instead of
14308         running `mt'
14309
14310         * server-src/amcleanup.sh.in (reporter): update to call amreport.
14311         (amdump.<n>) update to use the same renaming technique introduced in
14312         June 30's change to amdump.
14313
14314 1998-07-25  Michael Graff  <explorer@vix.com>
14315
14316         * changer-src/Makefile.am (install-exec-hook): support $(DESTDIR)
14317         * client-src/Makefile.am (install-exec-hook): ditto
14318         * man/Makefile.am (install-data-hook): ditto
14319         * recover-src/Makefile.am (install-exec-hook): ditto
14320         * restore-src/Makefile.am (install-exec-hook): ditto
14321         * server-src/Makefile.am (install-exec-hook): ditto
14322
14323         * configure.in: link krb5 and com_err in for Kerberos support, if
14324         they exist
14325
14326 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14327
14328         * server-src/reporter.c (copy_template_file): add braces to 
14329         remove warning
14330         * tape-src/tapeio.h: declare is_zftape to remove warning in
14331         amlabel.c and taper.c
14332
14333 1998-07-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
14334
14335         * server-src/driver.c (any_delayed_disk): new variable, to ensure
14336         that we do not leave the main driver loop if there are delayed disks 
14337         but there are no active dumpers
14338         (main): instead of checking whether idle_reason is IDLE_START_WAIT,
14339         check whether there is any_delayed_disk for remaining in the loop
14340         (start_degraded_mode): set any_delayed_disk when needed
14341         Reported by Peter Walker <peter@talarian.com>
14342
14343 1998-07-23  John R. Jackson  <jrj@purdue.edu>
14344
14345         * server-src/reporter.c (main): handle LPRCMD being undefined.
14346
14347 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14348
14349         * client-src/selfcheck.c (check_suid): new function to check if a
14350         program is SUID root.
14351         * client-src/selfcheck.c (check_overall): check that runtar and
14352         rundump are SUID root.
14353
14354 1998-07-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
14355
14356         * configure.in: version number set to 2.4.1
14357
14358         * recover-src/Makefile.am (LDADD): libamtape imports symbols from
14359         libamanda, so it must be listed first
14360
14361         * changer-src/Makefile.am (LDADD): remove duplication of libamserver
14362         and libamanda, as they no longer provide symbols for each other
14363         * server-src/Makefile.am (LDADD): ditto
14364         
14365 1998-07-21  Blair Zajac  <blair@gps.caltech.edu>
14366
14367         * server-src/amrmtape.sh.in: now use amanda.conf's tapelist variable
14368         * server-src/amcheckdb.sh.in:  now use amanda.conf's tapelist variable
14369         * server-src/amfreetapes.sh.in: now use amanda.conf's tapelist variable
14370         * server-src/amtoc.pl.in: now use amanda.conf's tapelist variable,
14371         make perl4 compatible
14372
14373 1998-07-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
14374
14375         * docs/FAQ (results missing): suggestions to work around the UDP
14376         packet size limit
14377
14378 1998-07-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
14379
14380         * docs/FAQ (amrecover): a config name may have to be specified
14381         Reported by digital messiah <dmessiah@silcon.com>
14382
14383 1998-07-15  Blair Zajac  <blair@gps.caltech.edu>
14384
14385         * server-src/reporter.c (main): declare optind
14386
14387 1998-07-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
14388
14389         * configure.in: created Amanda 2.4.1 branch
14390
14391         * example/amanda.conf.in: strategy noinc is not implemented yet
14392
14393 1998-07-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14394
14395         * NEWS: new runspercycle keyword
14396         * server-src/conffile.h: new runspercycle keyword
14397         * server-src/conffile.c: new runspercycle keyword
14398         * server-src/amadmin.c (balance): new runspercycle keyword
14399         * server-src/planner.c (main): new runspercycle keyword
14400         * man/amanda.8.in: document new runspercycle keyword
14401         * example/amanda.conf.in: example for new runspercycle keyword
14402
14403 1998-07-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
14404
14405         * docs/FAQ: What to do if DUMP program is not available.
14406         * client-src/selfcheck.c (check_overall): if a needed program is
14407         missing, print an error message.
14408         Reported by Klaus Hoffmann <handatalog@csi.com>
14409
14410         * */Makefile.am: checked library version numbers, no need for update
14411         
14412         * configure.in: version number set to 2.4.1b1
14413
14414 1998-07-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
14415
14416         * docs/FAQ: new entries: how to label tapes, (not) spanning large
14417         filesystems across tapes, how to enable index generation,
14418         overwriting selected tapes, cleaning up databases, selecting tape
14419         changer.
14420         
14421 1998-07-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
14422
14423         * man/Makefile.am (EXTRA_DIST): amreport.8 is built from .8.in
14424
14425         * configure.in (AC_OUTPUT): generate chg-chio.pl
14426         * changer-src/Makefile.am (EXTRA_DIST): removed chg-chio.c
14427         * changer-src/chg-chio.c: removed, as it was confusing make
14428         
14429 1998-07-10  Nick Hibma  <nick.hibma@jrc.it>, Alexandre Oliva <oliva@dcc.unicamp.br>
14430
14431         * changer-src/chg-chio.pl.in: new script, created to replace old
14432         chg-chio written in C
14433         * docs/TAPE.CHANGERS (chg-chio): document it
14434         * changer-src/Makefile.am (EXTRA_SCRIPTS): add chg-chio
14435         (EXTRA_DIST): still include chg-chio.c, just in case it is useful
14436         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): add chg-chio
14437         
14438 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
14439
14440         * server-src/reporter.c (main): if no arguments are given, preserve
14441         original behavior; require config name otherwise.  Perform better
14442         argument checking.
14443         * example/DLT.ps (DrawHost): discard additional argument introduced
14444         in Steven Freed's modification
14445         * example/EXB-8500.ps (DrawHost): ditto
14446         * example/HP-DAT.ps (DrawHost): ditto
14447
14448         * server-src/Makefile.am (amreport_SOURCES): build from reporter.c
14449         (driver_SOURCES) removed, no longer needed
14450         * man/Makefile.am (EXTRA_DIST): added amreport.8
14451
14452 1998-07-08  Steven Freed  <sfreed@gilasoft.com>
14453
14454         * server-src/reporter.c (usage): new function
14455         (main): accept command-line arguments for selecting config name,
14456         output file, log file name to read from, postscript file to write
14457         to.
14458         (output_summary): print tape labels list, tape section numbers and
14459         dump sizes.
14460         * server-src/amdump.sh.in: run amreport
14461         * server-src/amflush.c (main): ditto
14462         (run_dumps): ditto
14463         * configure.in (BUILD_SERVER_PROGS_SBIN): add amreport
14464         (BUILD_SERVER_PROGS_LIBEXEC): remove reporter
14465         * man/amreport.8.in: new file
14466         * man/Makefile.am (man_MANS): added amreport.8
14467         * example/8.5x11.ps: new file
14468
14469 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
14470
14471         * Makefile.am (ACLOCAL_M4): fix ||/&& precedence problem
14472
14473 1998-07-07  John R. Jackson  <jrj@purdue.edu>
14474
14475         * changer-src/scsi-chio.c: move #include's so this will compile on
14476         systems without <sys/mtio.h> (e.g. AIX).
14477
14478 1998-07-06  John R. Jackson  <jrj@purdue.edu>
14479
14480         * client-src/sendsize.c (handle_dumpline): allow the dump block
14481         count estimate to be negative.  Found by Lance A. Brown
14482         <brown9@niehs.nih.gov> on NeXT.
14483
14484         * common-src/Makefile.am, common-src/security.c: add TEST code to
14485         security.c so people can do "make security" and have a test program
14486         to track down why they are getting "access as XXX not allowed from
14487         YYY@ZZZ".
14488
14489         * common-src/security.c (bsd_security_ok): allow the remote user
14490         field in .amandahosts to be empty ala .rhosts.
14491
14492 1998-07-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14493
14494         * server-src/amcheck.c (start_server_check): report space use for
14495         holding disk if a negative value is given in the use parameter.
14496
14497         * server-src/driver.c (main): compute holding disk space if 
14498         a negative value is given in the use parameter..
14499
14500         * man/amanda.8.in (use) : document negative use paramater for 
14501         holding disk.
14502
14503         * example/amanda.conf.in (use): document negative use paramater for
14504         holding disk..
14505
14506 1998-07-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
14507
14508         * man/amanda.8.in (reserve): document it
14509         * example/amanda.conf.in (reserve, gigabytes): ditto
14510         (etimeout) negative number stands for total estimate time
14511
14512         * NEWS: documented major changes since amanda 2.3.0.4
14513
14514         * docs/INSTALL: refer to patch-system for editing services and
14515         inetd.conf
14516
14517         * docs/FAQ: added entries for common amdump and amcheck errors
14518
14519         * COPYRIGHT: updated to 1998, refer to Amanda Development Team
14520         * AUTHORS: who is the Amanda Development Team
14521
14522 1998-07-03  John R. Jackson  <jrj@purdue.edu>
14523
14524         * docs/SYSTEM.NOTES: add comment about using the variable device name
14525         on IRIX.  Otherwise, IRIX will write 4KByte physical blocks, which
14526         it appears to read OK, but not if you take the tape to some other
14527         system that does what you tell it.  Discovered by Steve E. Khoo
14528         (steve@gordian.com).
14529
14530 1998-07-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
14531
14532         * server-src/planner.c (setup_estimate): handle new disks with
14533         skip-full correctly.
14534
14535         * Makefile.am (aclocal.m4): must depend on libtool.m4, so as to
14536         force it to be newer on distributions.
14537
14538 1998-07-01  John R. Jackson  <jrj@purdue.edu>
14539
14540         * server-src/driverio.h: change reserved_space to unsigned long to
14541         match free_space() and avoid a compiler warning.
14542
14543 1998-06-30  John R. Jackson  <jrj@purdue.edu>
14544
14545         * man/amanda.8.in: fix amrecover synopsis and add a short description.
14546         Noted by Brendan M Coffey <bcoffey@connix.com>.
14547
14548         * example/amanda.conf.in: make tapecycle example fit dumpcycle value
14549         better.  Noted by Tom.Croll@radisys.com and suggested comments from
14550         Alexandre Oliva <oliva@dcc.unicamp.br>.
14551
14552 1998-06-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
14553
14554         * server-src/amdump.sh.in (maxdays): set up with tapecycle+2
14555         (days): loops from 1 to $maxdays, but stops if amdump.$days does not 
14556         exist, so that we only rename amdump log files that exist.  This
14557         prevents too long loops in case of an infinite tapecycle.
14558         Reported by Nick Hibma <nick.hibma@jrc.it>
14559
14560 1998-06-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
14561
14562         * common-src/security.c (bsd_security_ok): accept case mismatches
14563         when comparing hostnames and usernames from amandahosts, and assume
14564         localuser if username is missing.
14565         * docs/INSTALL: clarify BSD security and amandahosts, WRT to
14566         non-FQDNs.
14567         Reported by Chris Shenton <chris@absinthe.shenton.org>
14568
14569         * server-src/reporter.c (output_tapeinfo): degraded mode no longer
14570         implies incremental dumps only.
14571         Reported by Randy Dees <rrd@amherst.com>
14572
14573 1998-06-26  John R. Jackson  <jrj@purdue.edu>
14574
14575         * configure.in: fix BSD/OS Kerberos include file location.
14576
14577 1998-06-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
14578
14579         * config/ltmain.sh: install official patch to libtool 1.2a
14580
14581         * configure.in: do not set max file size for Solaris 2.6, it is no
14582         longer used.
14583
14584 1998-06-26  Tim McNerney  <mumbly@netcom.com>
14585
14586         * common-src/fileheader.c (parse_file_header): accept missing
14587         PROGRAM in tape section header, for backward compatibility.
14588
14589 1998-06-25  Blair Zajac  <blair@gps.caltech.edu>
14590
14591         * server-src/amflush.c: fix mismatch arguments to error()
14592
14593 1998-06-24  Steven Freed  <sfreed@gilasoft.com>
14594
14595         * configure.in (dump-honor-nodump): fix test for `-h' support
14596
14597 1998-06-24  Scott Mesches  <mesches@allison.Colorado.EDU>
14598
14599         * example/DLT.ps: new file
14600         * example/Makefile.am (EXTRA_DIST): add DLT.ps
14601
14602 1998-06-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
14603
14604         * Makefile.am (EXTRA_DIST): moved CHANGES into ChangeLog
14605
14606         * recover-src/extract_list.c (extract_files_child): handle
14607         IS_UNKNOWN dumptype as IS_DUMP
14608
14609         * client-src/sendsize.c (getsize_dump): always create pipe for
14610         killpgrp.
14611
14612         * client-src/amandad.c (sendnak): report `UNKNOWN' error if str is
14613         NULL.
14614
14615         * amplot/amplot.awk: ignore `interface-state'
14616         Reported by Peter Walker <peter.walker@talarian.com>
14617
14618 1998-06-24 Alexandre Oliva <oliva@dcc.unicamp.br>
14619
14620         * server-src/amrmtape.sh.in: enable verbose by default; implement -q 
14621         for quiet.
14622         * man/amrmtape.8.in: ditto
14623         Suggested by Nick Hibma  <nick.hibma@jrc.it>
14624         
14625 1998-06-24  Nick Hibma  <nick.hibma@jrc.it>
14626
14627         * server-src/amrmtape.sh.in: better error reporting for incorrect
14628         database entries
14629
14630 1998-06-24  Dan Swartzendruber <dswartz@druber.com>
14631         
14632         * server-src/conffile.h (RESERVE): new keyword.
14633         * server-src/conffile.c (RESERVE): ditto.
14634         (getconf_seen): recognize "reserve" keyword.
14635         (getconf_int): return value of "reserve" keyword.
14636         (read_confline): parse "reserve" line.
14637         * server-src/driverio.h (reserved_space): new global
14638         * server-src/driver.c (main): compute holding disk space to reserve
14639         for degraded dumps.
14640         (start_degraded_mode): if we haven't hit degraded mode reservation
14641         limit, allow full dump.
14642         
14643 1998-06-18  Blair Zajac <blair@gps.caltech.edu>
14644
14645         * config/ltconfig: update to 1.2a
14646         * config/ltmain.sh: update to 1.2a
14647         * config/libtool/libtool.m4: update to 1.2a
14648
14649 1998-06-17  John R. Jackson  <jrj@purdue.edu>
14650
14651         * server-src/dumper.c (write_tapeheader): comment out some variables
14652         to get rid of a compiler warning.
14653
14654 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14655
14656         * server-src/amadmin.c (bumpsize): write wrong equation for bump
14657         threshold.
14658
14659 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14660
14661         * man/amanda.8.in: add info about the chunksize parameter
14662         of the holdingdisk.
14663         * man/amanda.8.in: add info about amstatus command
14664
14665 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
14666
14667         * common-src/Makefile.am (libamanda_version): updated
14668         * tape-src/Makefile.am (libtape_version): updated
14669         * client-src/Makefile.am (libclient_version): updated
14670         * server-src/Makefile.am (libserver_version): updated
14671
14672         * server-src/taper.c (read_file): if switching to the next file
14673         fails or there's no next file, do not send a `W' to taper writer.
14674
14675         * server-src/changer.h (changer_clean): new function
14676         * server-src/changer.c (changer_clean): ditto
14677
14678 1998-06-13  Michael C. Povel  <mcp@ladyada.han.de>
14679
14680         * changer-src/chg-scsi.c: added ejetct_tape and sleep for external
14681         tape devices, and changed some code to allow multiple drives to use
14682         their own slots. Also added support for reserverd slots.
14683         * changer-src/libscsi.h (get_clean_state, eject_tape): new functions 
14684         * changer-src/scsi-chio.c (get_clean_state, eject_tape): implemented 
14685         using Linux ioctls
14686         * changer-src/scsi-hpux.c (get_clean_state, eject_tape): do nothing, 
14687         until someone implements them
14688         * changer-src/scsi-proto.c (get_clean_state, eject_tape): new
14689         functions
14690         * docs/TAPE.CHANGERS: document new configuration file format
14691         * example/chg-scsi.conf: sample configuration file
14692         * example/Makefile.am: add chg-scsi.conf to the distribution
14693         * server-src/amtape.c: add support for `clean' command
14694
14695 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
14696
14697         * docs/SYSTEM.NOTES: clean-up
14698
14699         * docs/FAQ: new file
14700         * docs/SUNOS4.BUG: removed
14701         * Makefile.am: remove docs/SUNOS4.BUG and add docs/FAQ
14702         
14703         * example/amanda.conf.in (bumpmult): fixed equation for threshold
14704         * man/amanda.8.in (bumpsize): fix threshold example.
14705         problem reported by Brian McEntire <brianm@fsg1.nws.noaa.gov>
14706
14707         * server-src/logfile.c (open_log): open log file with mode 0600.
14708
14709         * server-src/amdump.sh.in: refuse to run if either amdump or log
14710         exist in logdir.
14711         * server-src/amflush.c (main): refuse to run if log exists.
14712         * server-src/amcheck.c (start_server_check): do not perform tape
14713         testing if amdump and/or log exist in logdir.
14714
14715 1998-06-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14716
14717         * restore-src/amrestore.c (restore): fixed -p flag (and amrecover)
14718         should not dup2( A, B ); aclose(A) when A == B
14719
14720 1998-06-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
14721
14722         * client-src/sendsize.c (getsize_dump): use killpgrp
14723         unconditionally, so we're not bitten by setuid dump programs.
14724         * client-src/killpgrp.c: enable unconditionally.
14725
14726         * tape-src/tapetype.c: new program: calculates tapetype parameters.
14727         * tape-src/Makefile.am (EXTRA_PROGRAMS): added tapetype.
14728         * example/amanda.conf.in: point to tapetype program.
14729
14730 1998-06-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
14731
14732         * docs/SAMBA: added notes about (not) backing up registry files and
14733         ACLs with SAMBA.
14734         * docs/INSTALL: point to docs/SAMBA for usage and limitations
14735
14736 1998-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
14737
14738         * configure.in (amanda_cv_print_command): removed; using PRINT
14739         instead.
14740
14741 1998-06-07  Todd Kover <kovert@omniscient.com>
14742
14743         * add --with-owner option to allow installed binaries to be owned
14744         by someone other than the amanda user
14745
14746         * add GB as valid holding disk size.
14747
14748 1998-06-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14749
14750         * server-src/amadmin.c (info): don't need to specify an host.
14751
14752         * server-src/amadmin.c (due): new due command to write when a
14753         filesystem is due ffor next level 0 or how much days it is
14754         overdue.
14755
14756         * server-src/amstatus.pl.in (dump_size): new function to report
14757         the size of a dump split on multiple files.
14758
14759 1998-06-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14760
14761         * recover-src/extract_list.c (read_buffer): write a message
14762         when amrecover timeout waiting for amrestore to send the dump.
14763
14764 1998-06-04  John R. Jackson  <jrj@purdue.edu>
14765
14766         * client-src/getfsent.c (main): use a dynamically allocated string
14767         for the lookups since dev2rdev alters it on the fly and some systems
14768         drop core for trying to write into read only memory.  Also add the
14769         capability of passing additional lookups on the command line.
14770
14771         * common-src/Makefile.am, common-src/file.c (main),
14772         common-src/token.c (main), server-src/conffile.c (dump_configuration,
14773         main), server-src/diskfile.c (main), server-src/infofile.c (main):
14774         Clean up compiler warnings in the test programs and make them all
14775         work again.
14776
14777 1998-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
14778
14779         * amplot/amplot.sh.in: modified command line argument parsing
14780         mechanism, so as to prevent shell quoting problems and unportable
14781         constructs.
14782         Reported by Chris Jones <cjones@clydesdale.math.montana.edu>
14783
14784 1998-06-02  John R. Jackson  <jrj@purdue.edu>
14785
14786         * server-src/amcheck.c (main), server-src/reporter.c (main): make
14787         sure internal errors, such as the mail command failing, get
14788         reported.  In the case of amcheck, they go to stderr even if -m is
14789         set since there didn't seem to be anyplace better to do so and if
14790         this is running from a cron job it might get back to a real user.
14791         For reporter, the errors go to .../amdump along with everything
14792         else from the amdump script, and they should also go to .../log,
14793         except since it's reporter that's having the trouble, they probably
14794         will not make it into the mail report.
14795
14796 1998-06-01  John R. Jackson  <jrj@purdue.edu>
14797
14798         * client-src/killpgrp.c: clean up minor compiler warnings by not
14799         building term_kill_{soft,hard} unless they are needed.
14800
14801         * server-src/driverio.c (dumper_cmd): clean up compiler warning
14802         in printf format by forcing argument to always be long and using %ld.
14803
14804         * server-src/driver.c: include <holding.h> to get declaration for
14805         unlink_holding_files and avoid a compiler warning.
14806
14807         * common-src/amanda.h, common-src/match.c (validate_glob, match_glob,
14808         glob_to_regex), recover-src/amrecover.h, recover-src/extract_list.c
14809         (add_glob, add_regex, add_file, delete_glob, delete_regex,
14810         delete_file), recover-src/help.c (help_list), recover-src/uparse.y,
14811         recover-src/uscan.l, man/amrecover.8.in: add shell wildcard support
14812         for the add/delete amrecover commands.  Add addx/deletex commands
14813         that use regular expressions.  Support more characters in path names.
14814
14815 1998-06-01  Dan Swartzendruber  <dswartz@druber.com> via John R. Jackson
14816
14817         * server-src/amlabel.c (main): check argc before referencing too
14818         far into argv for "-f".
14819
14820 1998-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
14821
14822         * docs/SYSTEM.NOTES: advise Linux users to use dump without
14823         setuid/setgid
14824
14825         * docs/INDEXING: update dumptype syntax
14826
14827 1998-05-29  John R. Jackson  <jrj@purdue.edu>
14828
14829         * server-src/amindexd.c (uncompress_file, process_ls_dump,
14830         build_disk_table, is_dir_valid_opaque, opaque_ls): fix file
14831         descriptor leak, log the amadmin find command, fix error reporting
14832         from routines that do not generate system errors.
14833         * common-src/amanda.h: make sure errno is saved through amfree().
14834
14835 1998-05-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
14836
14837         * docs/SYSTEM.NOTES: GNU tar must be patched on HP/UX.
14838         * patches/tar-1.12.patch: ditto.
14839
14840         * server-src/taper.c (endtape): do not log amount of used tape after 
14841         entering degraded mode.
14842
14843         * client-src/sendsize.c (getsize_dump): pass at least argv[0] to
14844         killpgrp.
14845
14846 1998-05-28  Paul R. Johnson  <prj@mit.edu>
14847
14848         * client-src/sendbackup.c (check_status): when checking whether
14849         return status 1 is valid for dump, make sure it was *not* tar that
14850         was running.
14851
14852 1998-05-28  Tom Lear <toml@accesscom.com>, John R. Jackson  <jrj@purdue.edu>
14853
14854         * man/amcheck.8.in: document new -Maddress command line flag.
14855         * server-src/amcheck.c (usage, main): add -Maddress command line
14856         flag to send mail to a specific address instead of mailto from
14857         amanda.conf.
14858
14859 1998-05-27  John R. Jackson  <jrj@purdue.edu>
14860
14861         * man/amrestore.8: update for host/disk/date triplets.
14862         * recover-src/extract_list.c (extract_files_setup): pass datestamp
14863         argument in new position and without -d.
14864         * restore-src/amidxtaped.c (main): remove -d checks.
14865         * restore-src/amrestore.c (restore, usage, main): fix file descriptor
14866         leak, move datestamp to host/disk triplet and allow all to be repeated.
14867
14868 1998-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
14869
14870         * client-src/killpgrp.c (main): wait for either SIGTERM or EOF on
14871         stdin.
14872
14873         * client-src/sendsize.c (getsize_dump): close the other end of
14874         killpgrp's stdin pipe before trying to kill it, because we just
14875         can't kill it.
14876
14877         * configure.in (HAVE_HPUX_SCSI): check whether sys/scsi.h actually
14878         supports HP/UX-like changer commands.
14879
14880         * config/acconfig.h (HAVE_HPUX_SCSI): indicates HP/UX-like changer
14881         interface is supported.
14882
14883         * changer-src/scsi-hpux.c: check for HAVE_HPUX_SCSI instead of
14884         HAVE_SYS_SCSI_H.
14885
14886 1998-05-25  Allen Briggs  <briggs@canolog.ninthwonder.com>
14887
14888         * changer-src/chg-manual.sh.in (ONLINEREGEX): add `^er=0$' for
14889         NetBSD's mt
14890
14891 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
14892
14893         * client-src/sendsize.c (getsize_dump): killpgrp must be direct
14894         child of sendsize, otherwise sendsize won't be able to kill it.
14895
14896 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
14897
14898         * configure.in (bcopy, bzero, fread, fwrite, vfprintf, vprintf,
14899         vsprintf): check for these in stdlib.h
14900         (memmove): check for it in strings.h
14901         
14902         * common-src/amanda.h (memmove): fix declaration of memmove, so as
14903         to be compatible with the ones in common-src/memmove.c and
14904         regex-src/fake/memmove.c
14905         
14906         reported by Tim Potter <tpot@acsys.anu.edu.au>
14907
14908 1998-05-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
14909
14910         * client-src/sendbackup.c (check_status): when checking whether dump 
14911         returned 1, make sure it was not tar; #ifdef'ed out the code that
14912         ignores exit status 2 from gnutar (will be compiled in only if
14913         IGNORE_TAR_ERRORS is defined)
14914         * client-src/sendbackup-gnutar.c (GNUTAR active filesystem errors): 
14915         updated comment; compile in GNUTAR error messages as DMP_NORMAL if
14916         IGNORE_TAR_ERRORS is defined; compile in SMBCLIENT error messages as 
14917         DMP_NORMAL if IGNORE_SMBCLIENT_ERRORS is defined.
14918         
14919 1998-05-20  Tom Lear  <toml@accesscom.com>
14920
14921         * client-src/sendbackup.h (tarpid): new variable, used to check
14922         whether it is gnutar that is running
14923         * client-src/sendbackup-gnutar.c (start_backup): set tarpid when
14924         starting gnutar
14925         * client-src/sendbackup.c (check_status): if gnutar returns 2,
14926         ignore the error
14927
14928 1998-05-19  Jean-Louis Martineau <martineau@IRO.UMontrealCA>
14929
14930         * client-src/amandad.c: set parse_errmsg when unexpected packet
14931         * recover-src/amrecover.c: overflow in clean_pathname()
14932         * recover-src/extract_list.c: add log in delete_file().
14933         small bug when call clean_pathname()
14934         * server-src/amindexd.c: ORLD command is not working
14935         * server-src/dumper.c: fixe overflow
14936
14937 1998-05-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
14938
14939         * configure.in: do not check for MAXFILESIZE
14940         * config/acconfig.h: do not define MAXFILESIZE
14941         * server-src/conffile.c: use INT_MAX instead of MAXFILESIZE
14942         * example/amanda.conf.in: ditto
14943
14944         * server-src/driver.c (interface_state): new function; print the
14945         free bandwidth for each interface.
14946         (short_dump_state): call interface_state before holdingdisk_state
14947
14948         * ChangeLog: renamed from CHANGES.  Original entries follow.
14949
14950         fix skip-incr handling so that reporter reports SKIPPED
14951         instead of missing result.
14952         -Jim Simmons <s4i@sws6.ctd.ornl.gov>
14953
14954         split big dumps ( > MAXFILESIZE ) in multiple files on holding disk. 
14955         new chunksize parameter in holdingdisk description of 
14956         the amanda.conf file.
14957         -J-L Martineau <martineau@IRO.UMontreal.CA>
14958
14959         an amstatus command that give the current state of a run.
14960         -J-L Martineau <martineau@IRO.UMontreal.CA>
14961
14962         possibility to amflush multiple runs on one tape.
14963         possibility to select dump by datestamp in amrestore (-d datestamp).
14964         -J-L Martineau <martineau@IRO.UMontreal.CA>
14965
14966         amidxtrm keep index of all active tapes as listed in tapelist file.
14967         -J-L Martineau <martineau@IRO.UMontreal.CA>
14968
14969         the tapelist file keep every active tapes.
14970         "amadmin reuse" and "amadmin no-reuse" to mark tapes you want
14971         to keep for a long time.
14972         -J-L Martineau <martineau@IRO.UMontreal.CA>
14973
14974         amlabel will not overwrite an amanda tape.
14975         The -f flag allow to overwriting an amanda tape.
14976         -J-L Martineau <martineau@IRO.UMontreal.CA>
14977
14978         be consistent and use 1048576 as a dump size everyplace instead of
14979         100000 in some places (mostly cosmetic).  -JJ
14980
14981         negative numbers are now accepted in the configuration file
14982         parser.  -oliva
14983
14984         allow a total estimate time-out to be specified.  -oliva
14985         Suggested by Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
14986
14987         fix amtoc behavior in case of failed reads.
14988         -Niek Rijnbout <niek@knoware.nl>
14989
14990         index files are now stored in a directory tree ala curinfo instead
14991         of a flat namespace. -JJ
14992
14993         amrecover will now restore files using SAMBA.
14994         -Rob Riggs <rob@devilsthumb.com>
14995
14996         VXDUMP needs not be run as root, so it no longer enables
14997         rundump automatically.  -oliva
14998
14999         new `killpgrp' setuid-root program.  It is used to kill
15000         VDUMP, VXDUMP and XFSDUMP or with-rundump DUMP estimates in a
15001         safe manner.
15002         -Joerg Behrens <jbehren@umpa06.gwdg.de> & oliva
15003
15004         fixed amrmtape so that it will delete from tapelist only the
15005         entry that corresponds to the specified tape, not others that
15006         contain the tape name as a substring.
15007         -Nick Hibma <nick.hibma@jrc.it> & oliva
15008
15009         Added support for FreeBSD dump -h flag (honor nodump).
15010         -James E. Housley <housley@pr-comm.com>
15011
15012         Added support for ZFTAPE on Linux.
15013         -Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
15014
15015         Added support for printing tape labels.
15016         -Scott Mesches <mesches@allison.Colorado.EDU>
15017
15018         Do not let amrecover die because of SIGPIPE if the pager terminates
15019         early during a long listing.  Use the PAGER environment variable if
15020         available, else "more".  -JJ
15021
15022         Change log() calls to log_add() so it does not conflict with the math
15023         function of the same name.  Replace pname global variable with two
15024         functions to set/get.  Get rid of libamnolog.  -JJ
15025
15026         chg-chio was renamed to chg-scsi, and now it will support not
15027         only chio.h, but also tape changer interfaces available on
15028         HPUX, Solaris 2.5, IRIX and possibly others.  Currently, only
15029         chio and HPUX are implemented.
15030         -Eric Schnoebelen <eric@cirr.com>
15031
15032         Numerous bugs/errors were fixed in chg-chio/chg-scsi.  it now
15033         properly responds to -eject requests, among other things.
15034         -Eric Schnoebelen <eric@cirr.com>
15035
15036 Version 2.4.0p1
15037
15038         updated to libtool 1.2a.  -oliva
15039
15040         fix kerberos encryption to work.  -Chris Ross <cross@uu.net>
15041
15042         add --with-owner option to optionally not have things owned by
15043         the amanda user.  (meant to be in 2.4.0) -kovert
15044
15045         only call initgroups() if it is available.  -oliva
15046
15047         check whether GNUTAR_LISTED_INCREMENTAL_DIR is a directory.
15048         -oliva, reported by J.A. Gutierrez <spd@gtc1.cps.unizar.es>
15049
15050         amindexd no longer considers prefixes of hostnames as valid
15051         hostnames. -oliva
15052
15053         fix strappend2 so that it accepts a NULL first argument.
15054         -Rob Riggs <rob@devilsthumb.com>
15055
15056         pass kerberos encryption switch to client.
15057         -Fredrik Jönsson <fjo@nada.kth.se>
15058
15059         rename afree to amfree, to work around IRIX 6.4's afree.
15060         -oliva, reported Stephan P. Martin <smartin@schlund.de>
15061
15062         implement `strategy skip' just like `ignore'.
15063         -oliva,
15064         reported by Michael O'Shaughnessy <mikeo@emg.sms.siemens.com>
15065
15066         amcheck now checks whether COMPRESS_PATH is executable, which
15067         would prevent server-compression and indexing from working.
15068         -oliva, reported by Peter Schultze <peter@mbi.ucla.edu>
15069
15070         fixed dump estimate regular expression for DU 4.0.
15071         -Andreas Schmitz <schmitz@theorie.physik.uni-wuppertal.de>
15072
15073 Version 2.4.0
15074
15075         fixed memory corruption error in amtape.
15076         -oliva
15077
15078         fixed VXDUMP support.
15079         -Andrew Ivanov <ivanov@mics.msu.su> & oliva
15080
15081         typos fixed in chg-chs.
15082         -David Barr <dbarr@simplex.com>
15083
15084         chg-mtx now prints error message if tapedev or changerdev must
15085         be defined.
15086         -Adrian T. Filipi-Martin <atf3r@cs.virginia.edu>
15087
15088         fixed amflush problem, reported by Dietmar Goldbeck
15089         <dietmar@telemedia.de>  -oliva
15090
15091 Version 2.4.0-980319
15092
15093         chg-mtx should use changer-dev if specified.
15094         -Steve Khoo <steve@gordian.com>
15095
15096         flex-related backward-compatibility problem fixed.
15097         -Norman K Scherer <nsche@seros-48.hac.com>
15098
15099         ported to RISCOS 4BSD.  -Harlan Stenn <Harlan.Stenn@pfcs.com>
15100
15101         when amrecover starts up, it will warn you $CWD is not the root
15102         of the selected filesystem.  -oliva
15103
15104         removed all uses of #elif, because some C compilers won't
15105         handle it correctly. -Gunther Felkel <G.Felkel@edelmann.de>
15106
15107         fixed VDUMP-only (no DUMP defined) estimates.
15108         -Joern Behrens <jbehren@umpa05.gwdg.de>
15109
15110         ported to UnixWare.  -Jeff Moscow <jeff@rtr.com>
15111
15112         improved vxdump support so that rundump will be used for vxfs
15113         filesystems only, and it will be enabled automatically.  -oliva
15114
15115         various portability problems fixed.
15116
15117         taper will now log reason for tape error to log.<DATE> file,
15118         in addition to amdump.<n>.
15119         -Liudvikas Bukys <bukys@cs.rochester.edu>
15120
15121         amflush now correctly updates the info database.  -oliva
15122         reported by Liudvikas Bukys <bukys@cs.rochester.edu>
15123
15124         sendsize now wait()s for tar and samba child processes.  -oliva
15125         reported by Brian Morris <brian@mvhs.fuhsd.org>
15126
15127         ensure that `amadmin find' reports multiple backups performed on
15128         the same day in the correct sequence.
15129         -Liudvikas Bukys <bukys@cs.rochester.edu>
15130
15131         if backup server has multiple IP addresses, security code
15132         might reject it.  -Gunnar Gunnarsson <gunnar@ki.ericsson.se>
15133
15134         vdump would not work.  -oliva
15135
15136         kerberos support was broken.  -mike
15137
15138 Version 2.4.0-980222
15139
15140         retry tape open on AIX if it fails with EAGAIN errno.
15141         -Francois Morris <Francois.Morris@lmcp.jussieu.fr>
15142
15143         fix amrmtape so that it behaves well when files to amflush
15144         remain.  Reported by Dietmar Goldbeck <dietmar@telemedia.de>
15145
15146         retry tape rewind on FreeBSD.  -Bob Willcox <bob@prm.com>
15147
15148         read all output from amrestore otherwise, instead of the
15149         beginning of the next tape section, it would read garbage.
15150         -Terje Malmedal <tm@odin.funcom.com> & oliva
15151
15152         formatting error in amoverview fixed.
15153         -Terje Malmedal <tm@odin.funcom.com>
15154
15155 Version 2.4.0b6p4
15156
15157         use vdump to dump advfs filesystems only.  add support for vdump
15158         indexes.
15159         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk> & oliva
15160
15161         change index generation commands so that they are less prone
15162         to be fooled by blanks or strange characters in filenames.
15163         -oliva
15164
15165         check whether exclude-list file exists before calling gnutar.
15166         If it does not, log a message to debugging file and discard it.
15167         selfcheck should check for that too, and print a warning message,
15168         but this is left for a future version.  -oliva
15169
15170         fix sendbackup-gnutar crashing problem.  -oliva
15171
15172         ensure that, in case of tape failure when dumping to tape, no
15173         incremental relative to the failed backup is performed.
15174         -oliva & Liudvikas Bukys <bukys@cs.rochester.edu>
15175
15176         Fix buffer use and write() error handling in the index pipeline.
15177         -Dietmar Goldbeck <dietmar@telemedia.de>
15178         & Lars Fenneberg <lf@elemental.net>
15179
15180         new index generation commands.  -oliva
15181
15182 Version 2.4.0b6p3
15183
15184         accept curses and ncurses in addition to termcap for readline
15185         support, just as readline itself does.  -oliva
15186
15187         fix NO-ROOM handling when Kerberos encryption is enabled.
15188         -oliva & Eric Siegerman <erics@now.com>
15189
15190         patch file for automake 1.2d provided. -oliva
15191
15192         sendbackup.debug now contains the argument list of child
15193         processes. -oliva
15194
15195         wait() for child processes, such as server compressor, before
15196         accepting other commands.
15197         -Liudvikas Bukys <bukys@cs.rochester.edu>
15198
15199         amrecover will print an error message if it is not run by root.
15200         It will not crash if you `pwd' before selecting a disk.  -oliva
15201
15202         updated to libtool 1.0i. -oliva
15203
15204         fixed tape block size of vxdump on HPUX 10.20.
15205         -Andrew Ivanov <ivanov@mics.msu.su>
15206
15207         Use "a" mode instead of "w" for the fdopen of the debug file.
15208         -David Lamkin <drl@net-tel.co.uk>
15209
15210         allow multiple concurrent gnutar backups, by fixing amandates
15211         locking mechanism.
15212         -Liudvikas Bukys <bukys@cs.rochester.edu>
15213
15214         amdump should check for a hold file, as says the man-page.
15215         -oliva
15216
15217         fix automatic enabling of USE_RUNDUMP for systems that require
15218         this.  xfsdump support no longer requires USE_RUNDUMP to be
15219         defined, rundump will be enabled and used for xfs filesystems
15220         even if USE_RUNDUMP is not defined, unless XFSDUMP is not defined.
15221         This seems to have completely solved the xfsdump problems.
15222         -oliva
15223
15224         when USE_RUNDUMP is enabled, instead of checking for read or write
15225         access in selfcheck, just test for the existence of disk devices.
15226         -oliva
15227
15228         fixed code that computed the dump size when incomplete
15229         writes occurred in dumper.  -Eric Siegerman <erics@now.com>
15230
15231         amplot no longer crashes if there's no holding disk. -oliva
15232
15233 Version 2.4.0b6p2
15234
15235         fix xfsdump index generation command.
15236         -Robert Tarrall <tarrall@bamboo.colorado.edu>
15237
15238         tape device wouldn't rewind if opened O_WRONLY.
15239         -Palle Girgensohn <girgen@partitur.se> & oliva
15240
15241         use setpgid instead of setpgrp if available
15242         -Mark Woodford <woodford@uniprise.com> & oliva
15243
15244         chg-mtx will check whether slot 6 is a cleaning tape or not.
15245         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
15246
15247         amrmtape updated to text database.  -oliva
15248
15249         incorrect NO-ROOM error when dumping directly to tape fixed.
15250         -oliva
15251
15252         --with-user and --with-group become are now required.  -oliva
15253
15254         patch-system script much more configurable.  -oliva
15255
15256         amindexd must get an exact match for diskname.
15257         -Richard Kail <e8903122@student.tuwien.ac.at> & oliva 
15258
15259         fix serial number message in amflush
15260         -Liudvikas Bukys <bukys@cs.rochester.edu>
15261
15262         removed backslashes from inside macro calls.
15263         un-indented # directives.
15264         -Gregory Neil Shapiro <gshapiro@WPI.EDU>
15265
15266         bsd-security is now enabled by default.  -oliva
15267
15268         fixed estimate command for XFSDUMP.
15269         -Mark Radleigh <radleigh@image.ucr.edu>
15270         & Jeff Moskow <jeff@rtr.com>
15271
15272 Version 2.4.0b6p1
15273
15274         documented etimeout configuration option.  -oliva&jrj
15275
15276         prevent a few crashes in dumper and reporter.  -jrj
15277
15278         reporter would report the same host and disk for RESULTS MISSING.
15279         -martineau
15280
15281         fix a few file-locking configure bugs.  -oliva
15282
15283         chg-multi updates and bugfixes.
15284         -Liudvikas Bukys <bukys@cs.rochester.edu>
15285
15286 Version 2.4.0b6
15287
15288         amindexd bugfix -Jos Alsters <Jos.Alsters@sci.kun.nl>
15289
15290         New --disable-libtool configure option, for those who really don't
15291         want libraries to be installed.  Shared libraries won't be
15292         built, of course.  -oliva
15293
15294         samba-related bugfixes.
15295         -Klaus Thiele <kth@becker-software.com>
15296
15297         xfsdump, DNS and amidxtaped bugfixes. -martineau
15298
15299         exclude-list support was broken, the filename was not copied
15300         to the gnutar argument list.
15301         -Stefan Bohm <Stefan.Bohm@rp-online.de>
15302
15303         chg-chio still thought it was seagate-changer, and contained a
15304         few bugs.  -Tim Tsai <tim@futuresouth.com>
15305
15306         New file docs/RESTORE, by Daniel Moore <dmoore@jeffco.k12.co.us>
15307
15308 Version 2.4.0b5
15309
15310         Make sure amverify waits for the tape device to be ready before it
15311         starts reading each section. -oliva
15312
15313         Fix amrecover so that it accepts filenames with blanks.
15314         -J. Shirk <jshirt@ksu.edu> & oliva
15315
15316         Add a TIMEOUT config file parameter to replace the hard coded value
15317         in planner.  -Daniel David Benson <bensond@ucdavis.edu>
15318
15319         Change amrecover/amindexd/amidxtaped to require a SECURITY
15320         exchange if --with-bsd-security is enabled.  It is done on a
15321         reserved port, which means amrecover must be run as root and that
15322         amindexd/amidxtaped need an entry for the incoming amrecover in
15323         either .rhosts or .amandahosts (Kerberos is not yet supported).  --JJ
15324
15325         Make our internal TEXTDB the default database style for the infofile.
15326         If you wish to keep using a dbm style database use the configure
15327         option "--with-db={db,dbm,gdbm,ndbm}".
15328         -scott
15329
15330         Sanitise the disk name in the TEXTDB code.
15331         **NOTE** if your infofile database uses TEXTDB (which has only been
15332                  available since Amanda-2.4.0b1) and you have '/'s in the
15333                  first field in disklist you will need to 'amadmin export'
15334                  the data using the old version of Amanda, 'mv' the old
15335                  database out of the way and 'amadmin import' it back again
15336                  using the new version.  When you are happy with the new
15337                  version you may delete the old database.
15338         -scott
15339
15340         Get rid of DEV_ROOT/DEV_RROOT and figure out the raw name on the
15341         fly by trying a leading 'r' before each path element one at a time
15342         until we find a character device.  This should handle all the current
15343         cases plus things like Solaris DiskSuite that have /dev/md/rdsk/xxx
15344         names.  -JJ
15345
15346         Change kill logic in sendsize to try TERM first, then KILL if that
15347         does not get dump's attention.  This fixes a problem on AIX 4.x
15348         where dump was always getting a KILL and leaving orphaned message
15349         queues, which would eventually run the system out of resources.  -JJ
15350
15351         Extensive buffer management, bug and defensive coding overhaul
15352         including:
15353             * Use proper fgets/fread/read buffer size.
15354             * Wrote agets and areads to get a line without buffer overflow
15355               and changed most gets/fgets and some read calls to use it.
15356             * Replaced all *scanf("...%s...") with explicit pointer work.
15357             * Replaced most fixed size buffers with dynamic ones.  This has
15358               no doubt introduced some memory leaks.
15359             * Replaced most sprintf calls with vstralloc (new routine).
15360             * Added overflow checks to some remaining explicit buffer
15361               management.
15362             * Made almost all read() and write() calls into loops to handle
15363               short and broken up transfers.
15364             * Fixed potentially uninitialized fstype field.
15365             * Added more sanity checks when parsing various things, including
15366               converting some assert() calls to real code.
15367             * The pattern amtrmidx used to find old index files to delete
15368               thought the date field was YYYY-MM-DD, but it is YYYYMMDD,
15369               so no files were being deleted.
15370             * Limited the number of directories listed by amflush to 26 to
15371               avoid funny characters in the user prompt.
15372             * Changed some of the amrecover routines to soak up the rest of
15373               the continuation lines after an error.
15374             * If a dumper dies, driver still tries to send a QUIT command
15375               which fails because the file descriptor has been closed.
15376             * Wrote afree macro that calls free and then sets the pointer
15377               to NULL.  Changed most free calls to afree.
15378             * Wrote aclose/afclose/apclose macros to do the associated close
15379               and then set the argument to something invalid (-1 or NULL).
15380             * Check the file descriptor before calling FD_ISSET in dumper.
15381               Otherwise it goes to -1 on EOF and FD_* doesn't like that.
15382             * Call aclose() after FD_CLR (so the descriptor is not -1).
15383         Odds and ends:
15384             * Added some TEXTDB support code to the infofile test program.
15385             * Set it up so -DPROTO_DEBUG could come from the compiler command
15386               line instead of having to modify the source.
15387             * Added -t command line flag code to sendbackup.c to support some
15388               limited debugging.
15389             * Added a test to amcheck to see if the log file is writable
15390               (if it already exists).  During debugging, I keep leaving one
15391               around owned by root :-).
15392             * Changed upper limit on close loops from 255 to FD_SETSIZE.
15393               This probably needs some more study.
15394         -JJ
15395
15396         If krb4 auth was compiled in but not enabled, clients would hang
15397         forever.  -Aidan Cully <aidan@panix.com>
15398
15399         Make sure SAMBA will not clear archive bits when performing an
15400         incremental backup, so any incremental will be a level 1.
15401         -martineau
15402
15403         Add a LOGDIR option to amanda.conf and use it to replace the
15404         --with-logdir option to configure (this was only used for the
15405         amdump files) and the logfile option in amanda.conf.  Log
15406         files are now LOGDIR/log and amdump files are LOGDIR/amdump.
15407         Note: if there is a LOGFILE option in amanda.conf it has its
15408         filename removed and is used as the LOGDIR (eg, if you have
15409         "logfile /usr/adm/amanda/log" in amanda.conf it is translated to
15410         "logdir /usr/adm/amanda" instead).  This should not cause a
15411         problem for most sites.
15412         -scott
15413
15414         Remove --with-dbdir option from configure.  This was only used
15415         to setup things for the man pages and example files.  Oh.. and
15416         amrmtape.  Fix this as well.
15417         -scott
15418
15419         Remove --with-indexdir option from configure.  This is obtained
15420         from amanda.conf at run time.  Also fix things so that it *is*
15421         obtained from amanda.conf in all cases.
15422         -scott
15423
15424         This is no longer tested on configure.in, since it is
15425         expressly forbidden to include kernel headers under glibc,
15426         according to Matthias Urlichs <smurf@noris.de>.  However, Eric
15427         Doutreleau <ed@cti.ecp.fr> said he needed to include this
15428         header file in order to build amanda on
15429         sparc-unknown-linux-gnu.  -oliva
15430
15431         It is now possible to specify a username to be used to backup
15432         up with samba.
15433         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
15434
15435         Make sure dumper replies with ABORT_FINISHED when a PORT-DUMP
15436         is aborted because of tape error.
15437         -Michael C. Povel <Michael.Povel@hub.de>
15438
15439         Amcheck checks only for the needed features.
15440         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
15441
15442         Performance and memory-usage improvements to amrecover.
15443         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
15444
15445         Use extended regular expressions.
15446         -Noel Hunt <noel@jpmorgan.com>
15447
15448         Fixed regular expressions for samba support.
15449         -Brian Fernald <fernald@nsi.edu>
15450
15451         Fixed a few bugs that caused arithmetic exceptions in planner.
15452         -Bob Willcox <bob@luke.pmr.com>, Evan Champion
15453         <evanc@synapse.net>, scott and oliva
15454
15455         amrecover should now be able to handle GNUtar restores.
15456         -Jean-Louis Martineau <martinea@iro.umontreal.ca>, plus
15457         incremental (-G) patch by Lars Fenneberg <lf@elemental.net>
15458
15459         Ported to SINIX (Reliant Unix V5.43).
15460         -Michael Schmitz <mschmitz@iname.com>
15461
15462         Configure now looks for large file support and will use it under
15463         Solaris 2.6 and above.
15464         -Blair Zajac <blair@gps.caltech.edu>
15465
15466         Compatibility problems fixed for:
15467                 SCO OpenServer 5.0.2: Paul Gampe <paulg@twics.com>
15468
15469 Version 2.4.0b4
15470
15471         New changerfile and changerdev configuration keywords, that
15472         allow changer scripts to be configured in the main amanda
15473         configuration file.  Each changer script has been adapted, so
15474         that it uses those flags whenever possible.  Also,
15475         documentation about built-in scripts has been added to
15476         docs/TAPE.CHANGERS.  -oliva & Eric Schnoebelen
15477         <eric@egsner.cirr.com>
15478
15479         --with-debugging now accepts a directory name, where debugging
15480         files should be stored.  -John R. Jackson <jrj@cc.purdue.edu>
15481
15482         Compatibility problems fixed for:
15483                 NextStep 3.3: Fabrice GAILLARD <gaillard@ina.fr>
15484                 SCO OpenServer V5: Christopher B. Olsen <colsen@compus.com>
15485                 AIX: Georg Rehfeld <georg@wmd.de>
15486
15487         Planner would core dump if it had to delay dumps.  -Georg
15488         Rehfeld <georg@wmd.de>
15489
15490         Added patch for samba to support very long filenames.  -Todd
15491         Pfaff <todd@edge.cis.mcmaster.ca>
15492
15493         Added VXDUMP support to estimate program.  -oliva & John
15494         R. Jackson <jrj@cc.purdue.edu>
15495
15496         Fixed amflush so that it cd's to the configuration directory
15497         before invoking reporter.  -oliva
15498
15499         driver no longer opens the infofile, so a deadlock is
15500         prevented.  -oliva & John R. Jackson <jrj@cc.purdue.edu>
15501
15502         Fixed typo in sendbackup-dump that would prevent compilation
15503         if either xfsdump or vxdump were enabled.  -oliva
15504
15505         Debugging messages produced by sendbackup are no longer
15506         included in the dump stream.  -oliva
15507
15508         amrestore should wait for the child process to die before
15509         re-opening the tape device.  -Dietmar Braun
15510         <dietmar@tin-lizzy.hig>
15511
15512 Version 2.4.0b3 
15513
15514         fixed race condition in debug file open operation.  -oliva and
15515         Thomas Schmeidl
15516
15517         exclude-list and exclude-file are correctly handled by
15518         sendsize.  -oliva and Johann Klasek <jk@auto.tuwien.ac.at>
15519
15520         fix some kerberos4 problems; no longer require low ports for
15521         kerberized connections; now use amanda@REALM instead of
15522         amanda.amanda@REALM in .klogin's.  -kovert
15523
15524         amrecover no longer depends on GNU flex library.  -oliva
15525
15526         Ensure that malloc(0) is not called.  -Wolfram Schmidt
15527         <Wolfram.Schmidt@iao.fhg.de>
15528
15529         Compression is now performed where specified, and server
15530         compress best specifications are obeyed. -oliva
15531
15532         genversion now correctly recognizes the selected locking scheme.
15533         -Thomas Schmeidl <schmeidl@nwp.kwu.siemens.de>
15534
15535 Version 2.4.0b2
15536
15537         Several bugfixes by John R. Jackson <jrj@cc.purdue.edu>
15538
15539         AIX's restore support added to amrecover.  -David B. Anderson
15540         <dbanders@mail.physics.utah.edu>
15541
15542         Dump process would not be killed unless it supported the -E
15543         flag (flipped #ifdef): fixed.  -Steve Bower <sbower@raytheon.com>
15544
15545         --with-testing now supports a trailing argument, that
15546         specifies the a string to be appended to service names.  -oliva
15547
15548         Recent versions of Samba require additional arguments so that
15549         estimates and total sizes are logged to stdout, not to syslog.
15550         -Ernie Oporto <ernie_oporto@MENTORG.COM> & Norbert Holzknecht
15551         <Holzknecht@fs31.vdeh-bfi.de>
15552
15553 Version 2.4.0b1
15554
15555         Improved planner backup-delaying mechanism.  -scott
15556
15557         Concurrent estimates are now supported.  -oliva
15558
15559         Shared library support included with GNU libtool.  -oliva
15560
15561         New hard-link-based locking mechanism for operating systems
15562         that do not support standard locking system calls.  -scott
15563
15564         New configuration file format, simpler and easier to
15565         extend.  -scott
15566
15567         New curinfo database format that uses only text files.  The
15568         old dbm format is used by default, though.  -scott
15569
15570         DGUX support. -Brian Harvey <bharvey@raven.phs.com>
15571
15572         Tentative HPUX vxdump support.  -oliva
15573
15574         Integrated amgetidx into dumper/sendbackup protocol.  This
15575         ***breaks backward compatibility***!  -oliva
15576
15577         Have sendbackup-dump and sendbackup-gnutar list the actual
15578         program that should be used to restore a file from a backup
15579         instead of just listing restore or gtar. -blair&oliva
15580
15581         Have configure check for the initgroups() declaration in
15582         unistd.h in addition to grp.h and sys/types.h, which is where
15583         some OSes have the declaration. -blair
15584
15585         SAMBA backups wouldn't succeed if GNUTAR listed incrementals
15586         were enabled.  SAMBA password file can now specify workgroup
15587         and may contain comments.  -oliva
15588
15589         Fixed xfsdump support. -oliva
15590
15591         Fixed srvcompress option. -oliva
15592
15593         Fixed exclude/exclude-list support. -oliva
15594
15595         Change umask to 066 before creating index file in /tmp. -oliva
15596
15597         Fixed autoconf for gdbm on linux. -oliva
15598
15599         configure now seeks out a few possible locations for
15600         kerberos4 includes and tries to find the correct path if
15601         the kerberos bits have been installed.  It's possible for
15602         someone to just specify the root of a kerberos tree for
15603         where the bits live, as well. -kovert
15604
15605 Version 2.3.0.4
15606
15607         Have bsd_security_ok() in amandad return 1 when BSD security is
15608         not turned on.  Patch from Michael C. Grant
15609         <mcgrant@rascals.Stanford.EDU>.
15610
15611         Add a configure option, --with-db, which lets the user specify
15612         the database library to use.  The available codes to look for
15613         are db,dbm,gdbm,ndbm.  The new configure code goes to a lot
15614         more length to find pairs of header files and libraries.  If a
15615         header file exists and the library does not, but dbm_open() is
15616         found by linking against -lc, then that header file is used.
15617         Patch from Blair Zajac <blair@gps.caltech.edu>.
15618
15619         Fixed bug at line 158 where selfcheck was testing that the
15620         result returned by open() was nonzero.  The correct thing to do
15621         is check for non-negative values returned by open().  Changed
15622         the "ERROR" in line 169 to "OK" to prevent selfcheck from
15623         flagging the non-existence of /etc/amandapass as an error.
15624         Using "OK" in this line flags this condition as an informative
15625         statement rather than an error - which is to say this will be
15626         reported along with other errors but it isn't enough in itself
15627         to generate an error report.  The reason that I think this is
15628         the right fix is because although every Amanda client is
15629         capable of backing up PCs using smbclient it isn't the case
15630         that we will back up PCs with every Amanda client.  This also
15631         implies that we don't want to have /etc/amandapass files on all
15632         these machines either.  If an Amanda client does have a samba
15633         "//host/share" entry in its disklist file then selfcheck will
15634         flag the non-existence of the /etc/amandapass file on line 105
15635         when it attempts to check that partition, so I believe that
15636         this is a safe fix.  Patch from Michael Brantley
15637         <Michael-Brantley@deshaw.com>.
15638
15639         Have all calls to gethostname() leave the result in character
15640         arrays of length 1025.  This will make sure that gethostname
15641         behaves correctly.  Patch from  blair Zajac
15642         <blair@gps.caltech.edu>.
15643
15644         Have amrecover.c include history.h or readline/history.h if
15645         configure finds it.  Patch from blair Zajac
15646         <blair@gps.caltech.edu>.
15647
15648         Have Amanda use cat if gzip and compress cannot be found.  In
15649         this case, do not #define COMPRESS_FAST_OPT, COMPRESS_BEST_OPT,
15650         or UNCOMPRESS_OPT as "" since cat will look look for a file by
15651         the name of "".  Place #ifdef's around code that uses any of
15652         the _OPT defines.  Patch from Blair Zajac
15653         <blair@gps.caltech.edu>.
15654
15655         Rewrite amgetidx to use amandad instead of rsh/rcp.  amgetidx
15656         now only gets the index files from a given day.  It now takes
15657         two optionally arguments <on day> or <ago days>.  <on day> lets
15658         the user specify the day in one of the forms YYYYMMDD MMDD DD
15659         YYYY-MM-DD --MM-DD ---DD.  <ago days> gets the files from days
15660         days ago.  Have configure look for an appropriate directory to
15661         use for the temporary files on the clients.  Use /var/tmp, then
15662         /usr/tmp, and if neither of those exist, then use /tmp.  Have
15663         selfcheck check if the index holding directory has enough space
15664         in it.  Add a new program called sendindex which sends the
15665         index files.  Add the file docs/INDEXING which describes the
15666         index code.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
15667
15668         Have configure set up mt to use either the -f or the -t option
15669         depending upon the operating system.  Patch from Blair Zajac
15670         <blair@gps.caltech.edu>.
15671
15672         Include the amanda_tapetypes.txt file as docs/TAPETYPES.  File
15673         composed by Chris Stacey <chris@snrc.uow.edu.au>.
15674
15675         Allow certain dumptypes to be kicked off at specific times.
15676         Add a new, optional, parameter to the dumptype description in
15677         the config file.  The parameter is called "starttime" and takes
15678         one argument which is a time of day (local timezone) formated
15679         as either hhmm or hmm (no `.'s, no `:'s, just an integer).
15680                 define dumptype comp-user-2am {
15681                         comment "Non-root partitions on fast machines"
15682                         options compress-fast
15683                         priority medium
15684                         starttime 0200
15685                 }
15686         Any partitions listed in disklist with this dumptype will be
15687         fired off no earlier than 2am.  If 2am today is less than 43200
15688         seconds past (12 hours ago) it will assume you meant 2am today
15689         and fire the dumps off right away.  But if 2am today is more
15690         than 12 hours in the past, it will wait till 2am tomorrow.
15691         Patch from Brad Huntting <huntting@misc.glarp.com>.
15692
15693         Totally rewrite the socket buffering code for dumper.
15694         Eliminate SO_SNDTIMEO and SO_RCVTIMEO setsockopt calls.  Remove
15695         the check for HAVE_SO_SNDTIMEO from configure.  Add a new
15696         option to configure named --enable-buffered-dump to enable this
15697         code.  Patch from Brad Huntting <huntting@misc.glarp.com>.
15698
15699         Have amflush call setsid() to detach amflush from the
15700         controlling terminal.  Patch from Ken Laprade
15701         <klaprade@harris.com>.
15702
15703         Have configure correctly work on systems where dbm_open is in
15704         libc.  Patch from Farzad Farid <farzy@sgip.fr>.
15705
15706         Patches to amrmtape which remove C style comments and let the
15707         script remove a tape if there is only one tape in the tapelist
15708         file.  Patch from Andrew A. Ivanov <IVANOV@mics.msu.su>.
15709
15710         Sprintf formatting error in amgetidx fixed.  Patch from Yossi
15711         Gottlieb <yogo@xpert.com>.
15712
15713         I'm using a Sony SDT/STL-7000 4mm DAT changer.  I could not
15714         find any method of directly controlling the device, except for
15715         simply using the 'offline' mt command for advancing to the next
15716         tape.  Using this method, however, I could not go beyond the
15717         last cassette (that is, to roll back to the first one).  This
15718         means the device is currently being used as a simple gravity
15719         changer, only able to change forward.  The chg-generic.conf
15720         should list the default tape device for all slots, disable
15721         'needeject', enable 'gravity' and enable the new option named
15722         'multieject'.  Patch from Yossi Gottlieb <yogo@xpert.com>.
15723
15724         Update the example chg-generic.conf file to include comments
15725         that describe how to use the multieject feature of the script.
15726         Patch from Yossi Gottlieb <yogo@xpert.com>.
15727
15728         Protocol seems to loop when a A_TIMEOUT occurs because
15729         p->reqtries was not being decremented.  Problem noted by Neal
15730         Becker <neal@ctd.comsat.com>.
15731
15732         About half the calls to gethostname() in Amanda fail to
15733         null-terminate properly.  This patch makes them all
15734         consistent.  In addition it updates sendbackup-dump and
15735         sendbackup-gnutar so they handle USE_FQDN is a way consistent
15736         with the amindex stuff.  In particular when USE_FQDN is set,
15737         the dump clients will not truncate their hostname before
15738         putting it in the dump headers.  My patches to amflush are
15739         already in the Amanda betas so amflush should be able to match
15740         up both FQDN and non-FQDN clients against FQDN and non-FQDN
15741         disklist files.  I also fixed an error message that was
15742         attributed to gethostname when it actually came from
15743         getpeername.  Patches from James Mathiesen
15744         <james@nyc.deshaw.com>.
15745
15746         I have run into the problem, on a Linux system, where the first
15747         time I run configure it generates valid Makefiles and Amanda
15748         compiles without problem.  If I run configure again, or I alter
15749         a Makefile.in or something which causes autoconf to be called,
15750         the resulting Makefiles are no good - the programs in
15751         server-src don't finish linking because there is no dbm
15752         library.  That is, the first time through configure -lgdbm is
15753         added to LIBS but the second, and any subsequent times, it is
15754         not.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
15755
15756         I've just found a bug that has prevented Amanda from running on
15757         my site for almost one week.  Just after a dumper replied that
15758         it timed-out, the driver would send it another dump request.
15759         Then the driver would log to amdump an event of receiving a
15760         message from the dumper, but that message would be empty, the
15761         holding file for the requested filesystem would not exist, and
15762         driver would quit.  It turned out that the problem was that
15763         dumper started to close its sockets (datafd, mesgfd and outfd)
15764         since release 2.3.0.4b3.  outfd is initialized before invoking
15765         startup_dump, but it is sendbackup_response, intended to be
15766         invoked by the amandad protocol driver, that opens sockets and
15767         initializes datafd and mesgfd.  If sendbackup_response is never
15768         run (because the amandad request times out), datafd and mesgfd
15769         will not be initialized, so they may contain already closed
15770         (and possibly already reopened) file descriptor numbers or
15771         still be uninitialized, containing any garbage, but usually 0
15772         --- but 0 is stdin, used for reading commands from the driver,
15773         it should not be closed!  I've solved the problem by
15774         initializing them to -1 in startup_dump.  Patch from Alexandre
15775         Oliva <oliva@dcc.unicamp.br>.
15776
15777         Include declarations for select(), bind(), connect(), fread(),
15778         fwrite(), getopt(), getpeername(), getsockname(), getsockopt(),
15779         initgroups(), listen(), lstat(), mktemp(), mktime(), puts(),
15780         recvfrom(), select(), sendto(), setpgrp(), setsockopt(),
15781         shmat(), shmctl(), shmdt(), shmget(), socketpair(), sscanf(),
15782         strftime(), strncasecmp(), system() if the system does not
15783         declare these in any header files.  Patch from Blair Zajac
15784         <blair@gps.caltech.edu>.
15785
15786         Have configure correctly substitute for DB_DIR and LOG_DIR in
15787         example/amanda.conf when --prefix was not used.  Problem noted
15788         by Philippe Charnier <charnier@xp11.frmug.org>.
15789
15790         Include seagate-changer.c from Larry D. Pyeatt
15791         <pyeatt@cs.colostate.edu>.  This program was written to control
15792         the Seagate/Conner/Archive autoloading DAT drive.  This drive
15793         normally has 4 tape capacity but can be expanded to 12 tapes
15794         with an optional tape cartridge.  This program may also work on
15795         other drives.  This program works for me under Linux with Gerd
15796         Knorr's <kraxel@cs.tu-berlin.de> SCSI media changer driver
15797         installed as a kernel module.  The kernel module is available
15798         at
15799         http://sunsite.unc.edu/pub/Linux/kernel/patches/scsi/scsi-changer*
15800         Since the Linux media changer is based on NetBSD, this program
15801         should also work for NetBSD, although I have not tried it.  It
15802         may be necessary to change the IOCTL calls to work on other
15803         OS's.
15804
15805         Add a new configure option, --with-group, which tells Amanda
15806         the group to install all files as.  Patch from Alexandre Oliva
15807         <oliva@dcc.unicamp.br>.
15808
15809         If --with-bsd-security was not set, then dumper would not find
15810         the amanda/udp port to use to connect to clients.  Patch from
15811         Alan McIvor <alan@auck.irl.cri.nz>.
15812
15813         The order of dump programs to search for (ufsdump, vdump, dump,
15814         backup) didn't work on AIX systems, where backup should be used
15815         but a program named dump exists on the system.  Patch by Blair
15816         Zajac <blair@gps.caltech.edu>.
15817
15818         The configure --with-mmap was not working properly since
15819         configure was using the wrong variable to see if the system had
15820         a working mmap().  Problem noted by Keith Mitchell
15821         <kmitch@weenix.guru.org>.
15822
15823 Version 2.3.0.4b3
15824
15825         Save the results of getchar() into int's instead of char's in
15826         amidxtaped.c.  Patch by Blair Zajac <blair@gps.caltech.edu>.
15827
15828         Fix sendbackup-gnutar so that it can be compiled with a K&R
15829         compiler.  Patch by Blair Zajac <blair@gps.caltech.edu>.
15830
15831         Since I installed Amanda 2.3.0.4b3, I noticed some annoying
15832         messages in amdump:
15833                 dumper: pid 8696 setsockopt(SO_SNDTIMEO): Invalid argument
15834         This is because Solaris 2.5 does declare SO_SNDTIMEO in
15835         sys/socket.h, but fails to setsockopt with the given
15836         arguments.  Unfortunately, it is not documented, so I could not
15837         find out the correct way to do this, so I just added a test in
15838         configure to check whether SO_SNDTIMEO works as expected or
15839         not.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
15840
15841         Include amplot-2.2.6 written by Olafur Gudmundsson
15842         <ogud@tis.com> into Amanda.  Have amplot be configured using
15843         configure instead of amplot.conf.  It will be installed if
15844         gnuplot and the version of awk configure finds can handle
15845         variable assignment from the command line.  I also changed some
15846         of the command line options so that the amdump files will not
15847         be compressed unless amplot is told to do so on the command
15848         line.  It also takes a new command line option, -t, which lets
15849         the user set the time of the right side of the plot.  Work done
15850         by Blair Zajac <blair@gps.caltech.edu>.
15851
15852         Made rth-changer check all system calls for valid returns.
15853         Patch by Blair Zajac <blair@gps.caltech.edu>.
15854
15855         amrestore.c and sendbackup-common.c would do an ifdef on
15856         HAVE_GZIP, which was no longer being defined if Amanda was
15857         using gzip.  Now, define HAVE_GZIP if gzip is being used.
15858         Patch by Blair Zajac <blair@gps.caltech.edu>.
15859
15860         Include a script, amoverview, that outputs an overview of all
15861         of the backups done on all of the disks.  Script written by
15862         Dave Disser <disser@sdd.hp.com>.
15863
15864         The prototype for amname_to_fstype() is missing in
15865         createindex-dump.c when xfsdump is available.  Patch from Ken
15866         Laprade <klaprade@harris.com>.
15867
15868         Apparently SGI provides a dummy libsun.a that does not really
15869         have anything in it.  I guess this tricks configure into adding
15870         it to the Makefile.  Have configure not check for libsun.a on
15871         SGI systems.  Patch from Ken Laprade <klaprade@harris.com>.
15872
15873         The global variable overwrite in amcheck.c apparently is seen
15874         as a potential conflict with the overwrite() curses function
15875         which is apparently in SGI's libtermcap.a.  Declaring the
15876         variable static eliminates the warning.  Patch from Ken Laprade
15877         <klaprade@harris.com>.
15878
15879         Add a new configure option, --with-fqdn, which allows Amanda to
15880         back up systems in different domains.  This requires that the
15881         disklist file have the fully qualified domain names (FQDNs)
15882         listed.  Patch from Joe Ammond <Joe.Ammond@ee.gatech.edu>.
15883
15884         Include rundump, a setuid program that runs dump as root.  This
15885         is used under OSF1 systems.  Patch from Alexandre Oliva
15886         <oliva@dcc.unicamp.br>.
15887
15888         Install setuid files executable only by the owner and group of
15889         the files.  This stops other users from running these programs,
15890         making security tighter.  Patch from Alexandre Oliva
15891         <oliva@dcc.unicamp.br>.
15892
15893         On FreeBSD 3.0, amanda.h needs to include <sys/types.h> before
15894         <dirent.h>.  Problem noted by Keith Mitchell
15895         <kmitch@weenix.guru.org>.
15896
15897         Amanda had a bug regarding the recent addition of support for
15898         excluding files in GNUTAR.  planner and sendsize did not
15899         understand each other about empty exclusion lists, so there
15900         were failures using gnutar, as dump does not support excludes.
15901         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
15902
15903         Fixed a problem in configure where DUMP was being set to
15904         /no/restore/available when no restore program could be found
15905         instead of setting RESTORE to this.  Patch from Alexandre Oliva
15906         <oliva@dcc.unicamp.br>.
15907
15908         Have no-changer and hp-changer check for the existence of the
15909         logging directory before trying to use it.  Patch by Blair
15910         Zajac <blair@gps.caltech.edu>.
15911
15912         Patches to have nicer looking Samba support code.  Patch from
15913         Michael Zucchi <cismpz@cis.unisa.edu.au>.
15914
15915         Got Amanda to compile fine on a m88k-motorola-sysv4 system.
15916         Patches from Blair Zajac <blair@gps.caltech.edu>.
15917
15918         In amandad.c, pk_t dupmsg was conflicting with dupmsg in
15919         /usr/include/sys/stream.h on an m88k-motorola-sysv4 system.
15920         Rename dupmsg to dup_msg.  To keep things consistent, rename
15921         inmsg to in_msg and outmsg to out_msg.  Patch by Blair Zajac
15922         <blair@gps.caltech.edu>.
15923
15924         Check for the dbm_open declaration in any header file that may
15925         contain it.  If it doesn't exist, then declare it and all of
15926         the other dbm_ functions.  Check if struct datum is declared in
15927         any header files and if it isn't then declare it.  Patch from
15928         Blair Zajac <blair@gps.caltech.edu>.
15929
15930         Have runtar make sure that it is being invoked by the
15931         CLIENT_LOGIN user, since it is a suid executable.  Patch from
15932         Alexandre Oliva <oliva@dcc.unicamp.br>.
15933
15934         Have selfcheck check for /etc/vdumpdates if vdump is being
15935         used.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
15936
15937         If we're on an Ultrix system, then define STATFS_ULTRIX.  Patch
15938         by Blair Zajac <blair@gps.caltech.edu>.
15939
15940         amadmin export produces a full version number (2.3.0.4b2, for
15941         instance), while amadmin import expects three integers
15942         separated by dots, so it fails to import an exported file by
15943         itself.  Patch by Alexandre Oliva <oliva@dcc.unicamp.br>.
15944
15945         Sendsize.c would loop forever if debugging was not turned on.
15946         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
15947
15948         Define STATFS_OSF1 if we are on a *-dec-osf-* system.  Change
15949         ifdef OSF1_HANG_BUG to ifdef OSF1_VDUMP, since I'd rather not
15950         have too many defines floating around.  Patch by Blair Zajac
15951         <blair@gps.caltech.edu>.
15952
15953         There was a bug in selfcheck.c when Blair installed the Samba
15954         support.  I deleted an extra space that was added after
15955         SAMBA_CLIENT when the command was being put together.  Fix by
15956         Michael Zucchi <cismpz@cis.unisa.edu.au>.
15957
15958         Add a needed ; to client-src/Makefile.am and
15959         server-src/Makefile.am.  Patch from Alexandre Oliva
15960         <oliva@dcc.unicamp.br>.
15961
15962         Have planner.c and amcheck.c always get the amanda port number
15963         even if BSD security is turned off.  Patch by Blair Zajac
15964         <blair@gps.caltech.edu>.
15965
15966         Change the way amgetidx caches host up/down information.  It
15967         used to stralloc() a string depending on if the host was up or
15968         down.  Now, create two static character arrays, one holding
15969         "down" and the other holding "up" and simply point the
15970         hostinfo->up pointer to one of the two arrays.  This should
15971         save a little memory.  Patch by Blair Zajac
15972         <blair@gps.caltech.edu>.
15973
15974         The Bourne shell in FreeBSD can't handle setting IFS to : and
15975         expanding $LOCPATH:$SYSPATH.  Create two new variables before
15976         their use called $LOCSYSPATH and $SYSLOCPATH.  Patch by Blair
15977         Zajac <blair@gps.caltech.edu>.
15978
15979         Have open_fstab for BSD systems return the value of setfsent.
15980         Patch by Blair Zajac <blair@gps.caltech.edu>.
15981
15982         Configure was searching for the dump program in the following
15983         order: ufsdump, vdump, backup, dump.  On HP-UX systems,
15984         configure would find backup, which is a valid program but does
15985         not do what dump does.  So switch the order of the programs to
15986         ufsdump, vdump, dump, backup.  Patch by Blair Zajac
15987         <blair@gps.caltech.edu>.
15988
15989         Fixed some dbprintf(()) bugs in amgetidx.c.  Patch by Blair
15990         Zajac <blair@gps.caltech.edu>.
15991
15992         Have amrecover.c always declare
15993             extern char *optarg;
15994             extern int optind;
15995         This makes amrecover.c compile on Ultrix systems.  Problem
15996         noted by Scott Gasch <scott@cray-ymp.acm.stuorg.vt.edu>.
15997
15998         Patch to configure to have it recognize gnutar version 1.11.2.
15999         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
16000
16001 Version 2.3.0.4b2
16002
16003         Have amcleanup, no-changer, and hp-changer find out where the
16004         logging directory, or amdump error file is from getconf instead
16005         of using @LOG_DIR@ or @DB_DIR@ from configure.  Problem noted
16006         by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
16007
16008         Remove VarDir=@DB_DIR@ from amrmtape.sh.in, since amrmtape
16009         figures out where the curinfo files are from the amanda.conf
16010         file.  Problem noted by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
16011
16012         Include rth-changer, a tape changer script for the Robotic Tape
16013         Handling system OEM'd by Andataco (RTH-406).  Script written by
16014         Erik Frederick <edf@tyrell.mc.duke.edu>.
16015
16016         Add a new configure option called --with-pid-debug-files which
16017         has Amanda append the process ID to the debugging files placed
16018         in /tmp.  The PID will not be appended unless this option is
16019         used.  Suggestion by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
16020
16021         Add a new #define UNCOMPRESS_OPT to pass to UNCOMPRESS_PATH to
16022         get compressed standard input decompressed and pass it to
16023         standard output.  The configure script only recognized gzip and
16024         compress right now, so it will set UNCOMPRESS_OPT to -dc and
16025         set UNCOMPRESS_PATH to the same value as COMPRESS_PATH.  Edit
16026         all of the files that make use of UNCOMPRESS_PATH to also make
16027         use of UNCOMPRESS_OPT now.  Patch by Blair Zajac
16028         <blair@gps.caltech.edu>.
16029
16030         The readline() substitute in amrecover.c when the real
16031         readline() code is not available did not return to the caller
16032         what the user typed in.  It now does so.  Patch from Blair
16033         Zajac <blair@gps.caltech.edu>.
16034
16035         Avoid -lnsl on Irix.  On IRIX 5.x and 6.x systems that have the
16036         svr4net module installed, there will be a /usr/lib/libnsl.so
16037         present on the system. The configure script looks for this and
16038         tosses into the library list if it's there.  It is not
16039         advisable to link against libnsl on IRIX unless you really need
16040         it for SVR4 networking (TLI/STREAMS). If you _do_ link against
16041         it, you should use include '-lc' _before_ '-lnsl'. The reason
16042         for this is that libnsl.so also contains the SysV TI-RPC code,
16043         which is RPC based on STREAMS/TLI rather than sockets. (Solaris
16044         2.x now uses this by default.) TI-RPC has some compatibility
16045         functions with the same names as older RPC functions, such as
16046         clnt_call(), clnt_create(), clnt_destroy(), and these conflict
16047         with the functions in libc.so. The main place this will hose
16048         you is NIS: NIS v2 expects the underlying RPC code to use
16049         sockets, not STREAMS, and it fails if the TI-RPC symbols in
16050         libnsl.so override the RPC symbols in libc.so.  Again, you
16051         don't need libnsl.so unless you're actually using STREAMS/TLI
16052         or TI-RPC, so in Amanda's case it's safe to just ignore it. If
16053         you _do_ need it, you must do 'cc -o foo foo.c -lc -lnsl' in
16054         order to make sure the linker resolves the RPC symbol
16055         references correctly. The primary symptom of this problem is
16056         that things like getpwent(), getgrent() and getnetgrent() stop
16057         working in an NIS environment.  To make a long story short: on
16058         IRIX, avoid using libnsl. Amanda doesn't need it anyway. So far
16059         I haven't encountered a problem with this, but you never know.
16060         Note from Bill Paul <wpaul@ctr.columbia.edu>.
16061
16062         Include patches to have Amanda do incrementals of gnutar based
16063         backups.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
16064
16065         Delete the GNUTAR_BROKEN_PIPE from configure and acconfig.h
16066         since no code was testing for it.  Patch by Blair Zajac
16067         <blair@gps.caltech.edu>.
16068
16069         Have configure check for the number of arguments that
16070         gettimeofday takes and have clock.c use the appropriate number
16071         of arguments.  Patch by Blair Zajac <blair@gps.caltech.edu>.
16072
16073         Have sendbackup-common.c include tapeio.h instead of defining
16074         BUFFER_SIZE.  Fix by Philip Guenther <guenther@gac.edu>.
16075
16076         Put in more support for AIX by defining AIX_BACKUP if the
16077         system is an AIX system.  Fix createindex-dump.c to pass the -B
16078         flag to restore to have it read from standard input.  Problem
16079         noted by Bill Paul <wpaul@ctr.columbia.edu>.  Patch by Blair
16080         Zajac <blair@gps.caltech.edu>.
16081
16082         Add a regexp for AIX 4's backup in sendbackup-dump.c and
16083         sendsize.c.  Patch from Bill Paul <wpaul@ctr.columbia.edu>.
16084
16085         Add a comment to tapeio.h about BUFFER_SIZE and what it is used
16086         for and how people should not change it.  Noted by Bill Paul
16087         <wpaul@ctr.columbia.edu>.
16088
16089         Added a --with-mmap option to force the use of mmap() instead
16090         of shared memory support.  Requested by wpaul@ctr.columbia.edu
16091         <Bill Paul>.  Patch by Blair Zajac <blair@gps.caltech.edu>.
16092
16093         On FreeBSD 2.x and 3.x, the SO_SNDTIMEOUT value is too large in
16094         dumper.c.  Looking at the kernel source, the maximum value for
16095         tv_sec is about 227.  The value used is READ_TIMEOUT/4, or
16096         (30*60)/4 == 450 seconds.  This causes setsockopt() to return
16097         EDOM (Numerical argument out of domain), and again everything
16098         grinds to a halt.  I changed the value from READ_TIMEOUT/4 to
16099         READ_TIMEOUT/8, which reduces the SO_SNDTIMEO value to 225.  I
16100         haven't extensively tested this yet, but based on eyeballing
16101         the kernel source it should work.  Patch from Bill Paul
16102         <wpaul@ctr.columbia.edu>.
16103
16104         In dumper.c:do_dump(), there is code to set the transmission
16105         timeout, receive buffer size and receive low water mark on the
16106         data socket using setsockopt().  For SO_RECVBUF, the receive
16107         buffer size (recbuf) is set to DATABUF_SIZE * 4, which is
16108         32*1024*4, or 131072.  On SunOS 4.1.x, this value is too
16109         large:  dumper generates a 'no buffer space available' error
16110         and everything grinds to a halt.  I took away the '*4', which
16111         reduces the size to 32767 bytes, which seems to work.  I'm
16112         surprised nobody else has noticed this since it breaks SunOS
16113         Amanda servers.  I can only surmise that people aren't using
16114         SunOS machines as servers these days. :)   Patch from Bill Paul
16115         <wpaul@ctr.columbia.edu>.
16116
16117         Have Amanda include either readline.h or readline/readline.h
16118         Fix suggested by Neal Becker <neal@ctd.comsat.com>.
16119
16120         Have --with-includes put the -I flags into $CPPFLAGS and
16121         $CFLAGS so that AC_CHECK_HEADERS will find other include
16122         files.  Problem noted by Neal Becker <neal@ctd.comsat.com>.
16123
16124         Fixed common-src/Makefile.am to put the extra libamanda.a
16125         sources into the EXTRA_libamanda_a_SOURCES variable instead of
16126         EXTRA_DIST.  Fix from Tom Tromey <tromey@drip.Colorado.EDU>.
16127
16128         When compiling amgetidx.c with some compilers, trigraph
16129         substitutions were being made when they should not have been.
16130         Protect the code from this.  Patch from Blair Zajac
16131         <blair@gps.caltech.edu>.
16132
16133         Test for flock support in the following order:
16134                 1) POSIX fcntl file locking
16135                 2) flock locking
16136                 3) lockf locking
16137         The common-src/flock.c file will only be used if the lockf type
16138         locking is needed on this system.  Patch from Blair Zajac
16139         <blair@gps.caltech.edu>.
16140
16141         Have Samba support compile in only if requested by the user.
16142         Patch from Blair Zajac <blair@gps.caltech.edu>.
16143
16144         Configure was not using $CFLAGS and $CPPFLAGS when trying to
16145         calculate the select argument type.  Patch from Blair Zajac
16146         <blair@gps.caltech.edu>.
16147
16148         Updated amanda.h to include alloca.h if the system has it and
16149         if it's ok to include.  Also protect more include files with
16150         #ifdefs found by configure.  Patch from Blair Zajac
16151         <blair@gps.caltech.edu>.
16152
16153         Linux does not use the raw device names to do backups.
16154         configure now checks to see if it can find a raw disk device
16155         file whose name is built from root's mount point.  If it can't,
16156         then set RDEV_PREFIX to use /dev/ instead of /dev/r.  Fix
16157         suggested by Brian <brian.s.mogged@uwrf.edu> and Ken Latta
16158         <latta@parc.xerox.com>.
16159
16160         Fixed const cast message from regex.c.  Problem noted by Ken
16161         Laprade <klaprade@harris.com>.  Patch from Blair Zajac
16162         <blair@gps.caltech.edu>.
16163
16164         Configure was not checking for the OSF1_VDUMP #ifdef used in
16165         Amanda.  It now will set OSF1_VDUMP if vdump is found on the
16166         system.  However, it does not check if the system is really a
16167         OSF system.  Patch from Blair Zajac <blair@gps.caltech.edu>.
16168
16169         Have configure check for asm/byteorder.h for
16170         sparc-unknown-linux-gnu.  Problem noted by Eric Doutreleau
16171         <ed@cti.ecp.fr>.
16172
16173         Remove the check for libintl.h from configure.  It was only
16174         being used for regex.c, which really didn't need it.  Patch
16175         from Blair Zajac <blair@gps.caltech.edu>.
16176
16177         Convert all code to K&R C by trying to compile Amanda using
16178         /usr/bin/cc on a SunOS 4.1.1 machine.  Have configure check if
16179         the compiler can handle the volatile keyword and if it can't,
16180         #define it to empty in the config.h file.  Patch from Blair
16181         Zajac <blair@gps.caltech.edu>.
16182
16183         Move the contents of versuff.h into version.h and remove
16184         versuff.h.  Add a new function called version() which returns
16185         the version string.  Use version() in some of the programs.
16186         Patch from Blair Zajac <blair@gps.caltech.edu>.
16187
16188         m88k-motorola-sysv4 systems define L_FAIL, which is used by
16189         logfile.h.  Undefine it in logfile.h.  Patch from Blair Zajac
16190         <blair@gps.caltech.edu>.
16191
16192         Include amindex-1.0 from Alan McIvor.  It includes these
16193         improvements over 0.3:
16194                 Amrecover now provides the ability to restore files
16195                 from the tapes, via the "extract" command.
16196
16197                 Support for gnutar based index generation (but not file
16198                 restoration yet).
16199
16200                 Numerous bug fixes.
16201
16202         Have amgetidx try to open a socket to the shell/tcp port on the
16203         remote machine and cache if it succeeds.  If it connection
16204         attempt succeeds, then attempt to get the index files over from
16205         the client.  Patch from Blair Zajac <blair@gps.caltech.edu>.
16206
16207         Update patch-system to include the amidxtape service at
16208         10083/tcp.  Patch from Blair Zajac <blair@gps.caltech.edu>.
16209
16210         Configure said that the server configuration was OK and then
16211         next said it wasn't.  Remove these checks.  Patch from Blair
16212         Zajac <blair@gps.caltech.edu>.
16213
16214         Fixed building Amanda for multiple architectures in
16215         subdirectories of Amanda.  Problem noted by Thomas Hepper
16216         <Thomas.Hepper@icem.de>.
16217
16218 Version 2.3.0.4b1
16219
16220         Fix a problem with `amadmin <conf> balance' dumping core.  If
16221         some disks are overdue, they are stored in the sequence array
16222         with a negative index.  This has the potential to cause memory
16223         corruption, and it makes the reported balance figures not add up
16224         to the same as the total.  Since overdue disks are really going
16225         to be candidated for today's backups, they are thrown in the
16226         bin for those.  Patch from Ken Laprade <klaprade@harris.com>.
16227
16228         Add Samba client support using smbclient to Amanda.  Samba must
16229         be patched with the file patches/samba-1.9.16p2.1.patch - this
16230         is a patch for 1.9.16p2 of Samba, and modifies the way the
16231         'dir' command works, and adds totals to both the dir command
16232         and the tar command, via stderr.  These are used by amanda to
16233         estimate and count backup sizes.  This should be installed on
16234         an amanda 'client' host, that will act as the 'samba server'
16235         host.  This will most likely be the same machine as the Amanda
16236         master server.  Patches from Michael Zucchi
16237         <zucchi@cis.unisa.edu.au>.
16238
16239         Amrmtape converted from Bash to Bourne shell.  Patch from Blair
16240         Zajac <blair@gps.caltech.edu>.
16241
16242         Fix the indexing code to use "arglist.h" instead of <stdarg.h>
16243         Patch from Blair Zajac <blair@gps.caltech.edu>.
16244
16245         Have amdump call amgetidx and amtrmidx.  Put amgetidx and
16246         amtrmidx into the libexec directory instead of the bin
16247         directory, since Amanda users will not use these by hand.
16248         Patch from Blair Zajac <blair@gps.caltech.edu>.
16249
16250         Modified diskfile.c to match hostname in the backup header
16251         against the fully qualified domain name in disklist file,
16252         because amflush fails in a multidomain backup environment, as
16253         backup headers have only the hostname.  Patch from Karl
16254         Lehenbauer <karl@neosoft.com>.
16255
16256         Have autoconf figure out if some functions are not declared and
16257         if they are not, then declare them.  Patch from Blair Zajac
16258         <blair@gps.caltech.edu>.
16259
16260         Add security fixes to amandad.c.  It now checks the forward and
16261         reverse DNS names for consistency.  Added a configure option
16262         --amandahosts to use Michael's code to use .amandahosts instead
16263         of .rhosts.  Patch from Michael Douglass <mikedoug@texas.net>.
16264
16265         Add amverify, a simple shell script to check Amanda tapes -
16266         gnutar driven backups only.  Patch from Thomas Hepper
16267         <Thomas.Hepper@icem.de>.
16268
16269         Add the version option to amadmin (eg amadmin <conf> version).
16270         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
16271
16272         Add the current option to amtape (eg amtape <conf> current).
16273         This let's you the label of the current tape only without using
16274         dd.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
16275
16276         Gnutar support for amindex added.  Patch from Thomas Hepper
16277         <Thomas.Hepper@icem.de>.
16278
16279         Calcsize supports exclude-list (gtar).  The source was
16280         extracted from gnutar itself to be 100% compatible.  Patch from
16281         Thomas Hepper <Thomas.Hepper@icem.de>.
16282
16283         Calcsize checks the file type and ignores special files and
16284         pipes.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
16285
16286         Calcsizes calculation for gnu tar archives had a bug (gtar file
16287         blocks always are a multiple of 2k).  Patch from Thomas Hepper
16288         <Thomas.Hepper@icem.de>.
16289
16290         `amandates.c': amdandad suffered by missing AMANDATES_FILE.
16291         Now it creates this file before missing it.  Patch from Thomas
16292         Hepper <Thomas.Hepper@icem.de>.
16293
16294         `createindex-gnutar.c' added.  Patch from Thomas Hepper
16295         <Thomas.Hepper@icem.de>.
16296
16297         alloca(), strdup.c and getcwd added for those system who don't
16298         have them.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
16299
16300         A dirty hack for BSD based systems without sigaction(), see
16301         amanda.h.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
16302  
16303         Add two scripts, hp-changer and no-changer. hp-changer is a
16304         tape changer script for a HP DAT changer. Every 10th tape a
16305         taper clean runs.  no-changer is a changer-like script for
16306         single tape streamer.  It makes Amanda see a tape changer unit
16307         with an infinite count of tapes (and requires an operator to
16308         change the tapes :-)). Every 10 tapes the operator is
16309         recommended to insert a cleaning tape.  Patch from Thomas
16310         Hepper <Thomas.Hepper@icem.de>.
16311
16312         The version suffix adding is done with a seperate function
16313         versionsuffix() also available as standalone program.  Patch
16314         from Thomas Hepper <Thomas.Hepper@icem.de>.
16315
16316         Several files got debug support. Patch from Thomas Hepper
16317         <Thomas.Hepper@icem.de>.
16318
16319         Added an idle type file-too-large to driver.c to avoid dumping
16320         files to the holding disk(s) which exceed the maximum file size
16321         (2 GB on the most 32-bit machines).  Patch from Thomas Hepper
16322         <Thomas.Hepper@icem.de>.
16323
16324         Some minor bug fixes, mostly regarding missing or wrong casts
16325         confusing c compilers (shmat()/shmdt(), select()).  Patch from
16326         Thomas Hepper <Thomas.Hepper@icem.de>.
16327
16328         Genversion gives some more information.  Patch from Thomas
16329         Hepper <Thomas.Hepper@icem.de>.
16330
16331         getfsent.c and statfs.c have been cleaned up. The have to be
16332         checked on non-Irix/Solaris/NextStep/HPUX/AIX/Linux-systems.
16333         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
16334
16335         Simple support if readline.a is missing.  NEVER TESTED!  Patch
16336         from Thomas Hepper <Thomas.Hepper@icem.de>.
16337
16338         Linux requires libdb.a and ndbm.h to handle database files. Not
16339         really what I expected.  Patch from Thomas Hepper
16340         <Thomas.Hepper@icem.de>.
16341  
16342         Here's a simple patch which fixes a problem that causes amflush
16343         to erroneously complain "ignoring cruft file" about good dump
16344         files on the holding disk, and fail to flush them to tape.
16345         This happens if your holding disk directory has a long name,
16346         and the dump file also has a long name (i.e. if you use
16347         filesystem mount points in disklist).  The problem occurs if
16348         the holding directory + filename exceeds 80 bytes.  The patch
16349         still leaves a length limitation, but at least it matches the
16350         size limit imposed by driver (and thus dumper & taper) of 128
16351         bytes.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
16352
16353         Use regex.h and regex.c from
16354         ftp://prep.ai.mit.edu/sh-utils-1.15.tar.gz instead of the regex
16355         checking code in the system.  This code includes re_comp and
16356         re_exec calls, so it will work on any system.  Patch by Blair
16357         Zajac <blair@gps.caltech.edu>.
16358
16359         Amadmin find reports the wrong tape file numbers after when a
16360         dump is amflush'ed to tape.  Patch by Ralf Fassel
16361         <ralf@atg.venture.de>.
16362
16363         Fix a bug where dumps of disks on the Amanda server are counted
16364         against the available network bandwidth.  Patch from Marion
16365         Hakanson <hakanson@cse.ogi.edu>.
16366
16367         Tell gnutar to not exit with a nonzero value if a read failed.
16368         This prevents backups from aborting if a file disappeared
16369         before gnutar could save it.  Patch from Hal Snyder
16370         <hal@vailsys.com>.
16371
16372         Fix dumper which can cause the entire amdump run to hang after
16373         dumper issues a "TRY-AGAIN" message to driver while dumping
16374         directly to tape.  Patch from Marion Hakanson's
16375         <hakanson@cse.ogi.edu>.
16376
16377         Added Marion Hakanson's <hakanson@cse.ogi.edu> patches to fix
16378         problems when amanda dumps directly to tape (i.e. when holding
16379         space is full, or you're backing up a huge filesystem, etc.).
16380         The bug occurs in the way taper determines it has succeeded
16381         when doing a PORT-WRITE operation (i.e. dumping directly to
16382         tape).  It used to assume that an EOF meant no more data --
16383         true if it's reading from a file, but when reading from a port
16384         (i.e. directly from a dump process), an EOF could signal
16385         abnormal exit as well as a normal one.  So, I extended the
16386         protocol between driver and taper when dumping directly to tape
16387         (see dump_to_tape() in driver.c) so the taper will wait for the
16388         driver to pass PORT-WRITE-SUCCESS or PORT-WRITE-FAILURE to the
16389         taper (since driver gets OK/not-OK from the dumper) before the
16390         taper records success or failure.  Note that this change
16391         affects only the PORT-WRITE case in taper.  FYI, the bug
16392         resulted in the curinfo database for a failed port-dump to have
16393         the tape-label & file-number fields updated with the location
16394         of the failed dump, even though the timestamp & dump statistics
16395         still have the values of the last successful dump (the latter
16396         fields are updated by dumper itself).
16397
16398         Patches from George Scott <George.Scott@cc.monash.edu.au> to
16399         fix the following problems in planner.c.
16400         1) Initialise total_size, total_lev0 and balanced_size.  They
16401         are updated in analyze_estimates() but never initialised.  Zero
16402         them before the first call.
16403         2) Remove oversize dumps.   If there is a dump whose estimated
16404         size is larger than the tape the planner would tend to throw
16405         away all the other dumps and then probably generate an
16406         unworkable plan anyway.  (The standard 2.2.6 planner probably
16407         tossed these dumps fairly quickly for other reasons, but my
16408         next fix made this one almost mandatory!)  The fix is to drop
16409         these enormous dumps right at the begining.  This shouldn't be
16410         triggered for anyone with a sane configuration.
16411         3) Promote hills.  There are two ways to create a balanced
16412         cycle.  The first is to fill in any holes and the second is to
16413         remove any hills.  The original planner is good at doing the
16414         first but doesn't even attempt the second.  A quick look at
16415         "amadmin balance" would show big hills quite clearly.  This fix
16416         effectively does an "amadmin balance" and promotes a dump from
16417         one of the "hills".  This type of promotion is quite
16418         restricted:
16419           - don't bother if we already plan to do any level 0 dumps
16420           - don't promote a dump if it was going to be the only level 0
16421             to be done on that run (ie, ignore hills that are only one
16422             dump high)
16423           - only promote one level 0 by this method
16424           - don't exceed tape_length
16425         The key to it is the first restriction.  Large sites (with
16426         large numbers of disks and a large balanced_size) will have at
16427         least one level 0 scheduled for each day in the dump cycle and
16428         will already have a balanced cycle.  This code will not
16429         activate for them.  Small sites will probably not have a level
16430         0 scheduled and will benefit.  The second restriction will stop
16431         Amanda from constantly promoting dumps when the schedule is as
16432         balanced as it will go.  The third restriction will stop Amanda
16433         over reacting.  Promoting one dump by this method would take
16434         total_lev0 larger that balanced_size.  If it wouldn't then the
16435         first stage promotion didn't work like it should.
16436         4) Initialise got_estimate for all cases.  This fix was from
16437         der Mouse <mouse@collatz.mcrcim.mcgill.edu>.  "got_estimate"
16438         wasn't being initialised for skipped disks.  Later in the code
16439         it was being used in all cases.  The fix is to move its
16440         initialisation up a few lines.
16441         5) Explicitly ignore off-line disks.  If a disk is off-line
16442         when the planner is run it gets -1 for all dump sizes.  These
16443         were ignored at a later stage.  This fix explicitly ignores
16444         them up front.
16445         6) Ignore down machines.  If a machine is down when the planner
16446         is run it guesses from historical data what the size of
16447         tonights dump is likely to be and schedules a dump anyway.  The
16448         dumper then usually discovers that the machine is still down
16449         and ends up with a half full tape.  Unfortunately the planner
16450         had to delay another dump because it thought that the tape was
16451         full.  The fix here is for the planner to discard unavailable
16452         machines totally rather than just ignore the fact that they are
16453         unavailable.
16454         7) Keep at least one total.  Amanda moves level 0 dumps back to
16455         incrementals to try and fit everything onto the tape.
16456         Unfortunately if all your incrementals are too big (or your
16457         tape too small) it can move all of your level 0 dumps.  This
16458         ends up being a kind of deadlock since, unless a level 0 gets
16459         done, the incrementals will not reduce in size and until the
16460         incrementals reduce in size there will not be enough room to
16461         fit in a level 0.  (This is not quite accurate since a level 4
16462         dump can get bumped to a level 5 which reduces its size.
16463         However, this deadlock has happened to me and for many days in
16464         a row.)  The fix is to pick on the highest priority level 0 and
16465         not let it be moved.  This change will not affect users with
16466         reasonably sized tapes since Amanda would not have moved all
16467         their disks to incrementals.
16468         8) Make usage of total_lev0 consistent.  "total_lev0" is a
16469         double and doesn't include tape_mark's.  Make it so.
16470
16471         Add a fflush(outf) to amcheck.c.  Patch from Mike Russell
16472         <Michael_Russell@Brown.EDU>.
16473
16474         Fix problems with amhpfixdevs.  Patch from Michael Schmitz
16475         <mschmitz@iname.com>.
16476
16477         Have DEC OSF1 use installbsd instead of install.  Patch from
16478         Rainer Landes <rlandes@fphws01.physik.uni-karlsruhe.de>.
16479
16480         Have amcontrol take the first command line argument as the
16481         configuration to use.  If there are no command line arguments,
16482         then use daily.  Patch from Thomas Schmeidl
16483         <schmeidl@nwp.kwu.siemens.de>.
16484
16485         Removed --atime-preserve from sendbackup-gnutar.c so that
16486         incremental backups of filesystems will work.  Patch from
16487         Alexandre Oliva <oliva@dcc.unicamp.br>.
16488
16489         Change all #if __STDC__ to #ifdef __STDC__ for those systems
16490         that define __STDC__ to 0, such as Solaris using cc -Xt, cc
16491         -Xa.  Patch from Blair Zajac <blair@gps.caltech.edu>.
16492
16493         Increase the socket buffer size, and set a low watter mark at
16494         32k.  This cut the number of syscalls done to process one 32k
16495         block from dozens down to 4 (select, read, lseek, write).
16496         Patch from Brad Huntting <huntting@glarp.com>.
16497
16498         Include amindex-0.3 from Alan McIvor <alan@salan.auck.irl.cri.nz>.
16499
16500         Add the "srvcompress" option to compress dumps on the tape host
16501         instead of on the client machines.  This may be useful when a
16502         fast tape host is backing up slow clients.  The patches add a
16503         dump-type option, analogous to "compress-fast" or
16504         "compress-best" - the way to use it is to create a new dumptype
16505         in your amanda.conf that includes "srvcompress" and use the new
16506         dumptype for those filesystems you wish to have compressed on
16507         the tape server. For example, in amanda.conf:
16508             define dumptype srvcomp-user {
16509             comment "Partitions on slow machines, compressed on tapehost"
16510             options srvcompress
16511             priority medium
16512         }
16513         Patches from Eric Volpe <epv@panix.com>.
16514
16515         Increase the planner timeout for one estimate from 30 seconds
16516         to 120 seconds.  Patch from Michael Schmitz
16517         <mschmitz@iname.com>.
16518
16519         The select(2) prototype on HPUX specifies 'int' as argument
16520         type of the filedescriptor arguments. All other systems I know
16521         of use 'fd_set'. This has been fixed by having configure check
16522         the argument type to select and adding casts to the select(2)
16523         calls.  Patch from Michael Schmitz  <mschmitz@iname.com>.
16524
16525         Improve the diagnostic output and increase the robustness of
16526         the system by adding better error checking on communication
16527         between taper & driver, and among the two taper processes.
16528         Patches from Marion Hakanson <hakanson@cse.ogi.edu>.
16529
16530         Convert all flock() calls to use POSIX-style locks via the
16531         fcntl(2) call.  This operation was prompted by the fact that
16532         the flock() emulation in the Amanda-provided common-src/flock.c
16533         was broken for read-only file descriptors, and the fcntl(2)
16534         locks are widely available.  This patch makes it possible to
16535         have a read-only lock on the /etc/amandates file on systems
16536         which want to use it.  I've built and tested the patched code
16537         on Amanda servers running on Digital Unix v3.2B (on Alpha
16538         hardware) and on SPARC Solaris-2.5.1.  It's also been compiled
16539         here on SPARC's running SunOS-4.1.3u1b, HP-UX 9.0[345], and
16540         NeXTstep-3.3 (NeXT hardware).  Note that the patches also
16541         remove all trace of the NEED_FLOCK define, and I have removed
16542         the file common-src/flock.c from our source tree here.  Patch
16543         from Marion Hakanson <hakanson@cse.ogi.edu>.
16544
16545         For disk/filesystem names which are wider than 14 characters,
16546         have reporter print out the rightmost characters of the disk
16547         name, which is usually more meaningful in a daily backup
16548         summary.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
16549
16550         Lets amflush work in a wider variety of cases than was
16551         previously true (it used to work if the disklist contains only
16552         the first token of each hostname).  sendbackup-dump.c and
16553         sendbackup-gnutar.c now do not trim the domain name from the
16554         host name that is sent back to the server.  amflush now looks
16555         for an exact match, in the database.  If it can't find one it
16556         strips the last token off the dump header hostname and keeps
16557         trying until it finds a match in the disklist or runs out of
16558         tokens.  This also has the advantage that if gethostname()
16559         returns FQDNs and you specify the same FQDNs in the disklist,
16560         then amflush will always work.  It will also work as long as
16561         the disklist and gethostname() on the clients return enough
16562         information to be unambiguous.  Patch from James Mathiesen
16563         <james@deshaw.com>.
16564
16565         Increase the READ_TIMEOUT in dumper.c to 30 minutes.  This
16566         needs to be longer than the longest amount of time dump will
16567         not produce output.  People have observed dumps taking more
16568         than 10 minutes to finish mapping some of the passes
16569         sometimes.  Patch from James Mathiesen <james@deshaw.com>.
16570         
16571         Added Adrian T. Filipi-Martin's <atf3r@cs.virginia.edu>
16572         amrmtape script, which allows you to invalidate the contents of
16573         an existing backup tape within the Amanda current tape
16574         database.  This is meant as a recovery mecanism for when a good
16575         backup is damaged either by faulty hardware or user error,
16576         i.e.  the tape is eaten by the tape drive, or the tape has been
16577         overwritten.  Blair Zajac wrote a quick little manual page for
16578         this script.
16579
16580         amrmtape was using the return value from amadmin and amadmin
16581         was exiting with a non-zero value, causing amrmtape to quit.
16582         Added a return 0 statement to amadmin.c.  Patch from Blair
16583         Zajac <blair@gps.caltech.edu>.
16584
16585         Went through all of the files and changed void main()'s to int
16586         main()'s.  Patch from Blair Zajac <blair@gps.caltech.edu>.
16587
16588         Removed the 50 tape file limit in amcleanup and amdump.
16589
16590         createindex-dump and sendbackup-dump did not always take into
16591         account the version suffix.  This is now handled.  Patch from
16592         Philippe Charnier <charnier@lirmm.fr>
16593
16594         Compile and install amrecover and amrestore as client programs,
16595         not a server program.  The motovation for this is that
16596         amrecover is truly a program for all of the users on the
16597         system, while the remaining amanda programs could be used by
16598         only the system administrator.  Patch from Alexandre Oliva
16599         <oliva@dcc.unicamp.br>.
16600
16601         The program amtrmidx fails to close some of the pipes it uses,
16602         and this can lead to failure on systems with large numbers of
16603         disks with incomplete database sets, and file descriptor
16604         ulimits set.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
16605
16606 Version 2.3.0.3
16607
16608         Expanded the width of the DISK column from the reporter
16609         output.  I like to use mount points like /export/home?? instead
16610         of device names to back up.  Since the width of the disk name
16611         field from reporter's output is pretty small, I couldn't easily
16612         figure out the statistics for a particular partition.  Patch
16613         from Blair Zajac <blair@gps.caltech.edu>.
16614
16615         Included Eric Doutreleau <ed@cti.ecp.fr> patch's for amadmin to
16616         handle multiple tapes better.  The patch that he posted on used
16617         a hardwired value of 6 for runtapes, which I changed.
16618
16619         Included Marion Hakanson's <hakanson@cse.ogi.edu> patches to
16620         amadmin.c and amadmin.8 to let amadmin use the same disk
16621         regular expression matching as amrestore.  So now "^/$" will
16622         match only the root partition, not all of the disks.
16623
16624         Added a patch from George.Scott@cc.monash.edu.au which makes
16625         new disks and forces dump with a higher priority.
16626
16627         Changed tools/munge to delete blank lines and the commented
16628         lines that the C preprocessor generates (i.e. # 123).  We also
16629         remove the space after the = sign that can be generated by cpp
16630         on some systems.
16631
16632         Installed amindex-0.2 from Alan McIvor <alan@auck.irl.cri.nz>
16633         with the following patches:
16634
16635                 Fix problem so that rsh'ing on a hpux host works.
16636                 Patch from Neal Becker <neal@ctd.comsat.com>.  This
16637                 patch includes a new #define for RSH_COMMAND, which is
16638                 set to rsh in config-common.h and defined as remsh in
16639                 config.h-hpux.
16640
16641                 Fix bugs in createindex-dump.c when comparing errno to
16642                 EINTR.  The code was using = instead of ==.  Patch from
16643                 Neal Becker <neal@ctd.comsat.com>.  I'm guessing this
16644                 might fix some of the runaway createindex-dump
16645                 processes that I have seen on my system.
16646
16647                 On my system, we use MAE which likes to generate path
16648                 names with spaces in them.  I patched
16649                 createindex-dump.c so that filenames with spaces have
16650                 the whole filename listed.  Patch from Blair Zajac
16651                 <blair@gps.caltech.edu>.
16652
16653                 Patch amtrmidx.c so that backups using the mount points
16654                 for disks instead of the device name have the /'s
16655                 replaced with _'s.  Patch from Blair Zajac
16656                 <blair@gps.caltech.edu>.
16657
16658 Version 2.3.0.2
16659
16660         Changed the signals being sent to xfsdump for Irix so that it
16661         will be killed without dumping a core.
16662
16663         Fixed a typo in the definition of XFSDUMP in config.h-irix.
16664
16665         Removed the extra option.s-* and copied options.h to
16666         options.h-vanilla.
16667
16668         Moved the amrestore manual page into the man directory so it
16669         would get installed.
16670
16671 Version 2.3.0.1
16672
16673         amindex-0.1 written by Alan McIvor <alan@kauri.auck.irl.cri.nz>
16674         installed.  amindex generates an index of all of the files that
16675         were dumped.  It is nice to see what files were dumped before
16676         you restore a whole bunch of tapes looking for a file.  I
16677         patched some of this code.  Here are some of the changes:
16678
16679                 Switched the Imakefile to Makefile and Makefile.in to
16680                 be more consistent with the system used by the rest of
16681                 amanda.
16682
16683                 Moved the configuration #defines out of the specific
16684                 files (such as amrecover.c) into options.h, so that
16685                 people installing this version of amanda would be able
16686                 to see the required changes more easily and not have to
16687                 edit multiple files.
16688
16689                 Made some changes to the codes to remove #include's
16690                 where amanda.h would include them and also check if the
16691                 system had the particular include file.
16692
16693                 Added code to set_commands.c and amgetidx.c to change
16694                 /'s in disk names to _'s.
16695
16696                 Added code to amrecover.c to properly compile on
16697                 Solaris hosts.
16698
16699                 With the -Xc compiler option on Solaris and with
16700                 amindex, the sigaction structure was not being
16701                 declared.  Added -D__EXTENSIONS__ to config.h-sunos5 so
16702                 that sigaction would be declared.
16703
16704                 I changed a bunch of fprintf to perrors.
16705
16706         Include Sean Kelly's <kelly@fsl.noaa.gov> patch for tools/munge
16707         for FreeBSD-2.1.5.
16708
16709         Used Peter Lackner's <plo@came.sbg.ac.at> patches for DU 4.0.
16710
16711         Installed Ken Laprade's <klaprade@harris.com> patches for
16712         amanda to handle both EFS and XFs file systems on the same
16713         client.  The only change from his patch is to #ifdef XFSDUMP
16714         the kill(-dumppid, SIGTERM) so the SIGTERM signal will be used
16715         on other systems, while SIGQUIT will be used on Irix systems.
16716
16717         Installed Marion Hakanson's <hakanson@cse.ogi.edu> patches for
16718         the main config file to include subsidiary config files.
16719
16720         On Solaris, sometimes the hdr->handle variable in amandad.c
16721         would be null, causing core dumps when it was used in a sprintf
16722         statement.  The code now checks if hdr->handle is null and
16723         prints a "" if it is null.  This was only done in amandad.c.
16724
16725         Fix a problem where new disks would be added but not backed up
16726         concurrently.  Changes to diskfile.c.  I forgot who put this
16727         patch up on the mailing list.
16728
16729         I made some changes to options.h to allow the user to more
16730         easily install the programs under a different user.  This meant
16731         defining two new #defines, MK_AMANDA_USER and
16732         MK_QUOTED_AMANDA_USER which are used in the appropriate
16733         Makefiles.
16734
16735         Used Marion Hakanson's <hakanson@cse.ogi.edu> patch for taper.c
16736         for multiple tapes.
16737
16738         Included Joachim Loehr's <Joachim.Loeh@stadt-mh.de>
16739         script to automatically figure out which kind of HP-UX file
16740         system is being dumped.  Look in tools for the script and a
16741         README.
16742
16743 Local Variables:
16744 mode: change-log
16745 left-margin: 8
16746 fill-column: 76
16747 End: