Imported Upstream version 2.5.1p1
[debian/amanda] / ChangeLog
1 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
2         * Amanda 2.5.1p1 released.
3         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1p1).
4         * NEWS: Update for 2.5.1p1
5
6 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
7         * restore-src/restore.c: Improve debugging.
8         * server-src/changer.c: Make sure to dup the fd out of the 0..2 range.
9
10 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
11         * restore-src/amfetchdump.c: Pass new prompt_in parameter to
12                                      search_tapes.
13         * restore-src/restore.c (search_tapes, load_manual_tape): New prompt_in
14                                                                   parameter.
15         * restore-src/restore.h (search_tapes): New prompt_in parameter.
16         * restore-src/amidxtaped.c: Set new 'FILE *' instead of reusing stdin
17                                     and stdout.
18         * server-src/amindexd.c: Set new 'FILE *' instead of reusing stdin
19                                  and stdout.
20
21 2006-09-27  Jean-Louis Martineau <martineau@zmanda.com>
22         Patch by Orion Poplawski <orion@cora.nwra.com>
23         * server-src/planner.c: Add a skip_quoted_line() on error.
24
25 2006-09-23  Jean-Louis Martineau <martineau@zmanda.com>
26         * server-src/amstatus.pl.in: Fix parsing of 'taper: wrote label' line.
27         * server-src/amtoc.pl.in: Fix parsing of 'START taper' line.
28
29 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
30         Patch by William Jojo
31         * client-src/sendsize.c: Fix #endif for AIX.
32
33 2006-09-22  Jean-Louis Martineau <martineau@zmanda.com>
34         * common-src/packet.c: Fix use of arglist_start/arglist_end.
35         * server-src/amindexd.c: Fix use of vsnprintf (for IRIX).
36         * server-src/logfile.c: Fix use of arglist_start/arglist_end.
37
38 2006-09-21  Jean-Louis Martineau <martineau@zmanda.com>
39         * server-src/amcheck.c: Don't assert if holding use is set to 0.
40
41 2006-09-21  Jean-Louis Martineau <martineau@zmanda.com>
42         * common-src/util.c: Declare keytable.
43         * common-src/util.h: Declare keytable as extern.
44
45 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
46         * contrib/sst: Removed
47         * Makefile.am (EXTRA_DIST): Remove sst files.
48
49 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
50         * server-src/find.c (search_logfile): Count 'PARTIAL taper line'.
51
52 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
53         Patch by Paul Bijens
54         * server-src/amcheck.c: Print "tapelist" instead of "tapefile".
55
56 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
57         * common-src/dgram.c (dgram_bind): Remove unused variables.
58
59 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
60         * common-src/dgram.c (dgram_bind): Don't set SO_REUSEADDR on socket.
61
62 2006-09-19  Jean-Louis Martineau <martineau@zmanda.com>
63         * common-src/util.c (connect_port): Make EHOSTUNREACH and ENETUNREACH
64                                             fatal error.
65
66 2006-09-18  Jean-Louis Martineau <martineau@zmanda.com>
67         * common-src/util.c(dump_sockaddr): Convert from network to machine
68                                             bytes order before printing.
69         * common-src/dgram.c (dgram_recv): Print the fromaddr.
70
71 2006-09-15  Jean-Louis Martineau <martineau@zmanda.com>
72         * amandad-src/amandad.c: Correct order of close/dup.
73
74 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
75         * common-src/bsdtcp-security.c: Use AMANDA_SERVICE_NAME.
76
77 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
78         * server-src/amstatus.pl.in: Check that $dumpers_active is defined.
79
80 2006-09-12  Jean-Louis Martineau <martineau@zmanda.com>
81         * common-src/util.c (conftoken_getc): Return an int.
82
83 2006-09-11  Jean-Louis Martineau <martineau@zmanda.com>
84         * client-src/sendbackup-dump.c: Works if rundump is not used.
85
86 2006-09-05  Jean-Louis Martineau <martineau@zmanda.com>
87         * Amanda 2.5.1 released.
88         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1).
89         * NEWS: Change in amanda-2.5.1
90
91 2006-08-30  Jean-Louis Martineau <martineau@zmanda.com>
92         * server-src/dumper.c: Typo in error message.
93
94 2006-08-29  Jean-Louis Martineau <martineau@zmanda.com>
95         * client-src/selfcheck.c: Print error message to stdout before
96                                   calling error().
97
98 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
99         * server-src/dumper.c (log_msgout): Seek to begining of file.
100
101 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
102         * server-src/reporter.c: Report if a dump was successfully retried.
103
104 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
105         * server-src/amstatus.pl.in: Correct size for retried dump.
106
107 2006-08-25  Jean-Louis Martineau <martineau@zmanda.com>
108         * client-src/runtar.c: Check that strcmp(argv[3], "--create") == 0.
109
110 2006-08-24  Jean-Louis Martineau <martineau@zmanda.com>
111         * common-src/statfs.c (scale): Macro replaced by a function.
112
113 2006-08-24  Jean-Louis Martineau <martineau@zmanda.com>
114         * server-src/chunker.c: Use STREAM_BUFSIZE for stream_accept.
115         * server-src/taper.c: Use STREAM_BUFSIZE for stream_accept.
116
117 2006-08-24  Maitreyee Karmarkar <maitreyee.zmanda.com>
118         * man/xml-source/amcheck.8.xml: amcheck xml man page change 
119
120 2006-08-23  Kevin Till <ktill@zmanda.com>
121         *  server-src/driver.c: fix typo
122
123 2006-08-23  Jean-Louis Martineau <martineau@zmanda.com>
124         * server-src/driver.c (dumper_result): Decrement pendings_aborts.
125         * server-src/driver.c (handle_dumper_result): Don't send duper result
126           to chunker if we aborted it.
127         * server-src/driverio.c (dumper_cmd, chunker_cmd): Don't close the fd
128           on ABORT.
129         * server-src/dumper.c: Accept ABORT command.
130
131 2006-08-23  Jean-Louis Martineau <martineau@zmanda.com>
132         * restore-src/restore.c (restore): Set bytes_read to the return value
133           of read_file_header.
134
135 2006-08-22  Jean-Louis Martineau <martineau@zmanda.com>
136         * tape-src/output-tape.c: Works if EOVERFLOW is not defined.
137
138 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
139         * amandad-src/amandad.c, common-src/rsh-security.c,
140           common-src/ssh-security.c, restore-src/restore.c,
141           server-src/changer.c, server-src/dumper.c: Fix sentinel warning.
142
143 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
144         * example/amanda.conf.in: Typo.
145
146 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
147         * server-src/driverio.c: Fix bogus "(unsigned long)-1".
148
149 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
150         * server-src/driver.c (start_some_dumps): Remove bogus free_assignedhd.
151
152 2006-08-21  Maitreyee Karmarkar <maitreyee.zmanda.com>
153         * server-src/amcheck.c: Check specific clients
154         * man/amcheck.8: add the multiple client check format
155
156 2006-08-18  Ian Turner <ian@zmanda.com>
157         * tape-src/amtapetype.c: Don't crash on exit
158
159 2006-08-17  Paddy Sreenivasan <paddy@zmanda.com>
160         * server-src/driverio.c:
161         * server-src/changer.c:
162         * restore-src/amfetchdump.c:
163         * recover-src/extract_list.c:
164         * oldrecover-src/extract_list.c:
165         * common-src/util.c:
166         * common-src/stream.c:
167         * common-src/file.c:
168         * common-src/dgram.c: Fix warnings
169
170 2006-08-17  Kevin Till <ktill@zmanda.com>
171         * common-src/stream.c: Loop 5 times (ntries > 5) on select error
172
173 2006-08-14  Paddy Sreenivasan <paddy@zmanda.com>
174         * client-src/sendsize.c: Fix warning
175         * server-src/reporter.c: Fix warnings
176
177 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
178         * Amanda 2.5.1b2 released.
179         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b2).
180
181 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
182         * server-src/driver.c (find_diskspace): Make sure size > 0.
183
184 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
185         * server-src/planner.c: Don't check new disk.
186
187 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
188         * server-src/planner.c: Always log if full size estimate is larger
189                                 than the available tape space.
190
191 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
192         * server-src/planner.c: Always log if the latest full dump will be
193                                 overwritten soon.
194
195 2006-07-27  Jean-Louis Martineau <martineau@zmanda.com>
196         * common-src/clock.c (timesub): Don't make a negative time.
197
198 2006-07-27  Jean-Louis Martineau <martineau@zmanda.com>
199         * man/xml-source/amanda.conf.5.xml: Tell which file are loaded.
200         * man/xml-source/amanda-client.conf.5.xml: Ditto.
201
202 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
203         * NEWS: for 2.5.1b2.
204
205 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
206         * common-src/util.h (CONFTYPE_HOLDING): New conftype.
207         * common-src/util.c (conf_init_holding, conf_set_holding,
208                              get_conftype_hold): New fonction.
209         * example/amanda.conf.in: Example of new holdingdisk value.
210         * man/xml-source/amanda.8.xml: Example.
211         * man/xml-source/amanda.conf.5.xml: Document it.
212         * server-src/amadmin.c (disklist_one): Print holdingdisk value.
213         * server-src/conffile.c: Parse new CONF_HOLDING type.
214         * server-src/conffile.h (dumptype_get_to_holdingdisk): Change macro.
215         * server-src/diskfile.c (parse_diskline): dumptype_get_to_holdingdisk.
216         * server-src/driver.c: Use new CONFTYPE_HOLDING value.
217
218 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
219         * client-src/selfcheck.c: Fix bug found by coverity.
220         * common-src/debug.c: Fix bug found by coverity.
221
222 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
223         * server-src/amflush.c: Typo.
224
225 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
226         * server-src/amflush.c: Correct test for driver_stream.
227
228 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
229         * client-src/clientconf.c: Default CLN_AMANDATES to /etc/amandates.
230         * common-src/util.c (conf_init_size): Type is CONFTYPE_SIZE.
231         * server-src/conffile.c (getconf_taperalgo): New function.
232         * server-src/conffile.h (getconf_taperalgo): Prototype.
233         * server-src/driver.c: Use getconf_taperalgo.
234
235 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
236         * client-src/clientconf.c (client_getconf_boolean): New function.
237         * client-src/clientconf.h (client_getconf_boolean): Prototype.
238         * server-src/conffile.c (getconf_boolean): New function.
239         * server-src/conffile.h (getconf_boolean): Prototype.
240         * restore-src/amidxtaped.c: Use getconf_boolean.
241         * server-src/amflush.c: Use getconf_boolean.
242         * server-src/planner.c: Use getconf_boolean.
243
244 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
245         * server-src/getconf.c: Don't print BUGGY.
246         * changer-src/chg-chio.pl.in: Don't parse BUGGY.
247         * changer-src/chg-iomega.pl.in: Don't parse BUGGY.
248         * changer-src/chg-zd-mtx.sh.in: Don't parse BUGGY.
249         * man/xml-source/amgetconf.8.xml: Don't parse BUGGY.
250         * server-src/amverifyrun.sh.in: Don't parse BUGGY.
251         * server-src/amverify.sh.in: Don't parse BUGGY.
252
253 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
254         * restore-src/restore.c: Cleanup.
255         * restore-src/amrestore.c: Don't fsf if the last read return 0.
256
257 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
258         * client-src/selfcheck.c: Fix bug found by klocwork.
259         * common-src/rsh-security.c: Fix bug found by klocwork.
260         * common-src/ssh-security.c: Fix bug found by klocwork.
261         * server-src/planner.c: Fix bug found by klocwork.
262
263 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
264         * tape-src/output-tape.c (tape_tape_open): mt is declared inside #ifdef.
265
266 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
267         * server-src/amcheck.c: Fix quoting.
268
269 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
270         * client-src/clientconf.c: client_getconf* validate the type.
271         * common-src/util.c (get_conftype_*): New function.
272         * common-src/util.h (get_conftype_*): Prototype.
273         * server-src/conffile.c: getconf* validate the type.
274         * server-src/conffile.h: Use get_conftype_* function.
275
276 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
277         * client-src/clientconf.c: New AMANDATES client config option.
278         * client-src/clientconf.h: New AMANDATES client config option.
279         * client-src/amandates.c: Use AMANDATES.
280         * client-src/amandates.h: Use AMANDATES.
281         * client-src/selfcheck.c: Use AMANDATES.
282         * client-src/sendbackup-gnutar.c: Use AMANDATES.
283         * client-src/sendsize.c:: Use AMANDATES.
284         * common-src/util.h : New CONF_AMANDATES.
285         * man/xml-source/amanda-client.conf.5.xml: Document it.
286
287 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
288         * client-src/clientconf.c: New GNUTAR_LIST_DIR client config option.
289         * client-src/clientconf.h: New GNUTAR_LIST_DIR client config option.
290         * client-src/selfcheck.c: Use GNUTAR_LIST_DIR.
291         * client-src/sendbackup-gnutar.c: Use GNUTAR_LIST_DIR.
292         * client-src/sendsize.c: Use GNUTAR_LIST_DIR.
293         * common-src/util.h: New CONF_GNUTAR_LIST_DIR.
294         * man/xml-source/amanda-client.conf.5.xml: Document it.
295
296 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
297         * client-src/calcsize.c, client-src/killpgrp.c,
298           client-src/rundump.c, client-src/runtar.c,
299           client-src/selfcheck.c, client-src/sendbackup.c,
300           client-src/sendsize.c, common-src/amanda.h,
301           common-src/debug.c, oldrecover-src/amrecover.c,
302           recover-src/amrecover.c, restore-src/amfetchdump.c,
303           restore-src/amidxtaped.c, server-src/amadmin.c,
304           server-src/amcheck.c, server-src/amcleanupdisk.c,
305           server-src/amflush.c, server-src/amindexd.c,
306           server-src/amlabel.c, server-src/amlogroll.c,
307           server-src/amtape.c, server-src/amtrmidx.c,
308           server-src/amtrmlog.c, server-src/chunker.c,
309           server-src/driver.c, server-src/dumper.c,
310           server-src/getconf.c, server-src/planner.c,
311           server-src/reporter.c, server-src/taper.c: dbrename ot the config dir.
312
313 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
314         * common-src/amanda.h: Define DBG_SUBDIR_SERVER, DBG_SUBDIR_CLIENT
315                                and DBG_SUBDIR_CLIENT.
316         * amandad-src/amandad.c, changer-src/chg-scsi.c,
317           changer-src/chg-scsi-chio.c, client-src/calcsize.c,
318           client-src/killpgrp.c, client-src/rundump.c, client-src/runtar.c,
319           client-src/selfcheck.c, client-src/sendbackup.c,
320           client-src/sendsize.c,
321           oldrecover-src/amrecover.c, recover-src/amrecover.c,
322           restore-src/amfetchdump.c, restore-src/amidxtaped.c,
323           restore-src/amrestore.c, server-src/amadmin.c,
324           server-src/amcheck.c, server-src/amcleanupdisk.c,
325           server-src/amflush.c, server-src/amindexd.c,
326           server-src/amlabel.c, server-src/amlogroll.c,
327           server-src/amtape.c, server-src/amtrmidx.c,
328           server-src/amtrmlog.c, server-src/chunker.c,
329           server-src/diskfile.c, server-src/driver.c,
330           server-src/dumper.c, server-src/getconf.c,
331           server-src/infofile.c, server-src/planner.c,
332           server-src/reporter.c (dbopen): Use DBG_SUBDIR_SERVER,
333                                          DBG_SUBDIR_CLIENT or DBG_SUBDIR_CLIENT.
334
335 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
336         * client-src/calcsize.c: Get config on argument.
337         * client-src/killpgrp.c: Get config on argument.
338         * client-src/rundump.c: Get config on argument.
339         * client-src/runtar.c: Get config on argument.
340         * client-src/sendbackup.c: Call program with config as argument.
341         * client-src/sendbackup-dump.c: Call program with config as argument.
342         * client-src/sendbackup-gnutar.c: Call program with config as argument.
343         * client-src/sendbackup.h: Add global g_options.
344         * client-src/sendsize.c: Call program with config as argument.
345
346 2006-07-23  Jean-Louis Martineau <martineau@zmanda.com>
347         * client-src/sendbackup-gnutar.c: Fix bug found by splint.
348         * client-src/sendsize.c: Fix bug found by splint.
349
350 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
351         * server-src/taper.c: Fix amfree(mem_splitbuf).
352
353 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
354         * server-src/diskfile.c, server-src/taper.c: Fix memory leak found
355                                                      by coverity.
356
357 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
358         * server-src/taper.c: Fix split_buffer allocation problem.
359
360 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
361         * client-src/selfcheck.c, common-src/security-util.c,
362           restore-src/restore.c, server-src/diskfile.c: Fix memory leak found
363                                                         by coverity.
364
365 2006-07-20  Jean-Louis Martineau <martineau@zmanda.com>
366         * changer-src/chg-scsi.c, changer-src/scsi-changer-driver.c,
367           client-src/amandates.c, client-src/calcsize.c,
368           client-src/selfcheck.c, client-src/sendbackup.c,
369           client-src/sendsize.c, common-src/security-util.c,
370           recover-src/extract_list.c, restore-src/restore.c,
371           server-src/amindexd.c, server-src/diskfile.c,
372           server-src/driver.c, server-src/reporter.c,
373           server-src/tapefile.c, server-src/taper.c: Fix memory leak found
374                                                      by coverity.
375
376 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
377         * client-src/selfcheck.c : Read client config file.
378         * client-src/sendbackup.c: Read client config file.
379         * client-src/sendsize.c  : Read client config file.
380
381 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
382         * amandad-src/amandad.h (g_option_t): Add 'char *config';
383         * amandad-src/amandad_util.c (parse_g_options): Parse 'config='.
384         * common-src/amfeatures.h (fe_req_options_config): New amfeature.
385         * common-src/amfeatures.c (am_init_feature_set):
386                                                     set fe_req_options_config.
387         * server-src/amcheck.c: Send 'config=' in global options.
388         * server-src/dumper.c: Send 'config=' in global options.
389         * server-src/planner.c: Send 'config=' in global options.
390
391 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
392         * amandad-src/amandad.c: Call dbopen("amandad").
393         * changer-src/chg-scsi.c: Call dbopen("server").
394         * changer-src/chg-scsi-chio.c: Call dbopen("server").
395         * client-src/calcsize.c: Call dbopen("client").
396         * client-src/getfsent.c: Call dbopen(NULL).
397         * client-src/killpgrp.c: Call dbopen("client").
398         * client-src/rundump.c: Call dbopen("client").
399         * client-src/runstar.c: Call dbopen("client").
400         * client-src/runtar.c: Call dbopen("client").
401         * client-src/selfcheck.c: Call dbopen("client").
402         * client-src/sendbackup.c: Call dbopen("client").
403         * client-src/sendsize.c: Call dbopen("client").
404         * common-src/amanda.h (dbopen, debug_open): Take a 'char * subdir'
405                                                     argument.
406         * common-src/bsd-security.c: Call dbopen(NULL).
407         * common-src/debug.c (debug_open): Call debug_setup_1(subdir)
408         * common-src/debug.c (debug_setup_1): Take a subdir argument,
409                                               add it to dbgdir.
410         * common-src/file.c: Call dbopen(NULL).
411         * common-src/statfs.c: Call dbopen(NULL).
412         * common-src/token.c: Call dbopen(NULL).
413         * oldrecover-src/amrecover.c: Call dbopen("client").
414         * recover-src/amrecover.c: Call dbopen("client").
415         * restore-src/amfetchdump.c: Call dbopen("server").
416         * restore-src/amidxtaped.c: Call dbopen("server").
417         * restore-src/amrestore.c: Call dbopen("server").
418         * server-src/amadmin.c: Call dbopen("server").
419         * server-src/amcheck.c: Call dbopen("server").
420         * server-src/amcleanupdisk.c: Call dbopen("server").
421         * server-src/amflush.c: Call dbopen("server").
422         * server-src/amindexd.c: Call dbopen("server").
423         * server-src/amlabel.c: Call dbopen("server").
424         * server-src/amlogroll.c: Call dbopen("server").
425         * server-src/amtape.c: Call dbopen("server").
426         * server-src/amtrmidx.c: Call dbopen("server").
427         * server-src/amtrmlog.c: Call dbopen("server").
428         * server-src/chunker.c: Call dbopen("server").
429         * server-src/diskfile.c: Call dbopen("server").
430         * server-src/driver.c: Call dbopen("server").
431         * server-src/dumper.c: Call dbopen("server").
432         * server-src/getconf.c: Call dbopen("server").
433         * server-src/infofile.c: Call dbopen("server").
434         * server-src/planner.c: Call dbopen("server").
435         * server-src/reporter.c: Call dbopen("server").
436         * server-src/taper.c: Call dbopen("server").
437
438 2006-07-17  Jean-Louis Martineau <martineau@zmanda.com>
439         * server-src/chunker.c: Fix rt computation.
440         * server-src/dumper.c: Fix dumptime computation.
441         * server-src/taper.c: Fix rt computation.
442
443 2006-07-17  Jean-Louis Martineau <martineau@zmanda.com>
444         * NEWS: Klocwork defects fixed.
445         * NEWS: Coverity defect fixed.
446
447 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
448         * Makefile.am (pkgdata_DATA): add ReleaseNotes.
449
450 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
451         * Amanda 2.5.1b1 released.
452         * configure.in: Remove -Werror.
453
454 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
455         * client-src/sendsize.c: Use read/write to copy tar snapshot file.
456         * client-src/sendbackup-gnutar.c: Ditto.
457
458 2006-07-13  Jean-Louis Martineau <martineau@zmanda.com>
459         * common-src/stream.c (stream_accept): Loop 5 times on select error.
460
461 2006-07-13  Jean-Louis Martineau <martineau@zmanda.com>
462         * server-src/dumper.c: The datafd is not scheduled at start,
463                                add test for it.
464         * common-src/stream.c (tcpm_recv_token): Set error_msg.
465         
466 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
467         * common-src/util.c (free_new_argv): Move out of
468                                              #ifndef HAVE_LIBREADLINE.
469
470 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
471         * server-src/amadmin.c (tape): Report the number of new tapes instead
472                                        of "a new tape" for each tapes.
473         * server-src/reporter.c (output_tapeinfo): Ditto.
474
475 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
476         * server-src/taperscan.c (changer_taper_scan): Report error from
477                                                        changer_find.
478
479 2006-07-11  John Franks jrfranks@zmanda.com
480         * configure.in: Fix multiple definition of readline during cygwin
481           compile.
482
483 2006-07-11  Paddy Sreenivasan <paddy@zmanda.com>
484         * common-src/pipespawn.c : Fixed compiler warning
485
486 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
487         * man/xml-source/amtapetype.8.xml: No default value for -e.
488
489 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
490         * common-src/util.c: Don't conftoken_ungetc(ch) if ch == EOF.
491         * server-src/reporter.c: Check tp == NULL.
492
493 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
494         * tape-src/tapetype.c: Make -e an needed argument.
495         * man/xml-source/amtapetype.8.xml: Update man page.
496
497 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
498         * changer-src/chg-zd-mtx.sh.in: Remove .conf from changerfile.
499
500 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
501         * recover-src/extract_list.c (check_file_overwrite): Renamed from
502                                                           check_file_overwite.
503         * recover-src/extract_list.c (check_file_overwrite): Do the path check
504           in the correct order (from left ro right).
505
506 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
507         * common-src/file.c (debug_agets): Remove call to dbprintf.
508
509 2006-07-10  Jean-Louis Martineau <martineau@zmanda.com>
510         * recover-src/extract_list.c (add_to_unlink_list, do_unlink_list,
511                       free_unlink_list): New function to manage unlink_list.
512         * recover-src/extract_list.c (check_file_overwite): Check all
513           component of an EXTRACT_LIST_ITEM, if a component is not a
514           directory, add it to the unlink_list.
515         * recover-src/extract_list.c (extract_files): Call do_unlink_list and
516           free_unlink_list, rename buf to cwd.
517
518 2006-07-10  Jean-Louis Martineau <martineau@zmanda.com>
519         * common-src/pipespawn.c (pipespawnv_passwd): Add prototype.
520         * common-src/pipespawn.c (pipespawn, pipespawn): Remove 2 NULL
521            parameters to the pipespawnv_passwd call.
522         * common-src/pipespawn.c (pipespawnv_passwd): Remove passwdvar and
523            passwdfd parameters, add passwdvar and local variable.
524            Don't use memcpy to set passwdfd.
525         * common-src/pipespawn.h (pipespawnv_passwd): Remove prototype.
526
527 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
528         * common-src/security-util.c (stream_read_sync_callback): Remove bogus
529           call of callback.
530
531 2006-07-07  Kevin Till  <ktill@zmanda.com>
532         * common-src/bsd-security.c: use STREAM_BUFSIZE instead of -1
533         * common-src/bsdtcp-security.c: ditto
534         * common-src/krb4-security.c: ditto 
535         * common-src/security-util.c: ditto
536         * restore-src/amidxtaped.c: ditto
537
538 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
539         * common-src/util.c (get_conftoken): Remove duplicate conftoken_ungetc.
540
541 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
542         * common-src/security-util.c: Validate and report big packet size.
543
544 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
545         * oldrecover-src/Makefile.am: Typo.
546
547 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
548         * client-src/sendsize.c: Typo.
549
550 2006-07-06  John Franks <jrfranks@zmanda.com>
551         * common-src/genversion.c:
552                 Remove reference to error().  This causes a compile
553                 error on cygwin.
554
555 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
556         Klocwork bug 128, 170, 182, 470, 517
557         * changer-src/chg-scsi.c: Validate drivenum, check count_file.
558         * client-src/sendsize.c: Validate level.
559         * oldrecover-src/amrecover.c: Use tm.
560         * recover-src/amrecover.c: Use tm.
561         * server-src/infofile.c (delete_txinfofile): Use local variable.
562
563 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
564         * server-src/taper.c: Check for cur_filename.
565         * tape-src/output-file.c: Use vstrextend.
566         * tape-src/tapeio.c: Check for r.
567
568 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
569         Fix splint warning
570         * oldrecover-src/extract_list.c (clean_tape_list): Cleanup for splint.
571         * recover-src/extract_list.c (clean_tape_list): Cleanup for splint.
572         * server-src/amindexd.c: Add a /*@i@*/.
573         * server-src/conffile.c: Cast to off_t for conf_init_am64.
574         * server-src/driver.c: Cast to unsigned to print pid_t.
575         * server-src/find.c (strip_failed_chunks): Cleanup for splint.
576
577 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
578         Klocwork bug 114
579         * server-src/amindexd.c: Free their_feature_string.
580         Klocwork bug 130
581         * restore-src/amrestore.c: Test maximum value for rst_flags->blocksize.
582         Klocwork bug 294
583         * common-src/genversion.c: Check NULL result of malloc.
584         Klocwork bug 294
585         * client-src/selfcheck.c: Check NULL result of fdopen.
586         Klocwork bug 539, 542
587         * oldrecover-src/extract_list.c: Fix pfn2->next = fn2.
588         * recover-src/extract_list.c   : Ditto
589         Klocwork bug 268, 272, 543, 544
590         * oldrecover-src/extract_list.c: Check for cmd != NULL.
591         * recover-src/extract_list.c   : Ditto
592         Klocwork bug 510
593         * restore-src/amidxtaped.c: Check for argv != NULL.
594         Klocwork bug 435
595         * changer-src/scsi-linux.c: Make buffer one larger.
596         Klocwork bug 520
597         * changer-src/scsi-changer-driver.c (OpenDevice): Validate parameters.
598         Klocwork bug 182
599         * changer-src/chg-scsi.c (clean_tape): Check usagetime != NULL.
600
601 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
602         Klocwork bug 551
603         * regex-src/regcomp.c (allocset): Check for p->g->sets
604                                                 and p->g->setbits
605
606 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
607         Klocwork bug 169, 170, 181
608         * changer-src/chg-scsi.c: Validate input.
609
610 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
611         Klocwork bug 282
612         * common-src/file.c (rmpdir): Check for p == NULL.
613
614 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
615         Klocwork bug 524
616         * common-src/dgram.c (dgram_send_addr): Set addr_save earlier.
617
618 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
619         Klocwork bug 495
620         * server-src/taper.c (file_reader_side): Maximum value for
621                                                  fallback_splitsize.
622
623 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
624         Klocwork bug 532
625         * recover-src/display_commands.c: Check for cmd != NULL.
626         * oldrecover-src/display_commands.c: Ditto
627
628 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
629         Klocwork bug 410
630         * restore-src/restore.c (restore): Check for tmp_filename.
631
632 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
633         Klocwork bug 234
634         * server-src/driver.c: Check for h and activehd >= 0.
635
636 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
637         Klocwork bug 338 and 390
638         * server-src/reporter.c (handle_partial, handle_strange): Check result
639           of handle_success.
640
641 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
642         Klocwork bug 558
643         * client-src/selfcheck.c (check_options, check_disk): Check for
644                                                               calcprog == NULL
645
646 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
647         Klocwork bug 521
648         * client-src/clientconf.c (add_client_conf): Check result of realloc.
649
650 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
651         Klocwork bug 447 and 449
652         * restore-src/restore.c: Check for valid sendbackup request.
653
654 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
655         Klocwork bug 407
656         * restore-src/restore.c (restore): Set statinfo.st_size.
657
658 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
659         Klocwork bug 189
660         * common-src/file.c (sanitise_filename): Never return NULL.
661
662 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
663         * amandad-src/Makefile.am:    Remove tape-src and libamtape.
664         * client-src/Makefile.am:     Remove tape-src and libamtape.
665         * man/Makefile.am:            Cleanup.
666         * oldrecover-src/Makefile.am: Remove tape-src and libamtape.
667         * recover-src/Makefile.am:    Remove tape-src and libamtape.
668         
669 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
670         Klocwork bug 236
671         * server-src/driver.c (handle_dumper_result): Check for
672                                                       dumper->ev_read != NULL.
673
674 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
675         Klocwork bug 553
676         * restore-src/restore.c (search_a_tape): Check for desired_tape == NULL.
677
678 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
679         Klocwork bug 556 and 557
680         * common-src/security-util.c (bsd_recv_security_ok): Check result of
681           strtok, check service == NULL.
682
683 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
684         Klocwork bug 161
685         * client-src/calcsize.c (calc_load_file): Return NULL if fopen fail.
686         * client-src/calcsize.c (main):  check NULL result from calc_load_file.
687
688 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
689         Klocwork bug 84
690         * server-src/amflush.c (main): Check return of lookup_disk.
691
692 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
693         Klocwork bug 62, 85, 459, 463, 466, 469, 555, 559
694         * common-src/security-util.c: Check result of fdopen.
695         * client-src/sendsize.c     : Ditto.
696         * server-src/amcheck.c      : Ditto.
697         * server-src/amflush.c      : Ditto.
698
699 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
700         Klocwork bug 159, 375, 377, 379, 508, 509, 513, 519
701         * common-src/bsd-security.c:    Replace malloc by alloc.
702         * common-src/bsdudp-security.c: Ditto
703         * common-src/genversion.c:      Ditto
704         * recover-src/amrecover.c:      Ditto
705         * restore-src/amidxtaped.c:     Ditto
706         * server-src/reporter.c:        Ditto
707
708 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
709         Klocwork bug 562 and 475
710         * recover-src/set_commands.c (cd_dir): Check result of rindex.
711         * oldrecover-src/set_commands.c (cd_dir): ditto.
712
713 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
714         Klocwork bug 552
715         * restore-src/restore.c (load_manual_tape): Alloc space for cur_tapedev.
716
717 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
718         Klocwork bug 406
719         * restore-src/restore.c (restore): Check for final_filename.
720
721 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
722         Klocwork bug 318
723         * server-src/list_dir.c (add_dir_list_item): Check for cur_list->next.
724
725 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
726         Klocwork bug 17, 32
727         * server-src/amadmin.c (disklist_one): Check localtime return NULL.
728         * server-src/amadmin.c (info_one)    : Ditto.
729
730 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
731         Klocwork bug 2, 83, 128, 384, 478, 504, 505, 506, 517, 566, 567
732         * server-src/amadmin.c (seqdatestr): Check localtime return NULL.
733         * common-src/util.c (construct_datestamp, construct_timestamp,
734                              conf_print):         Ditto.
735         * oldrecover-src/amrecover.c (main):      Ditto.
736         * oldrecover-src/uscan.l (ll_parse_date): Ditto.
737         * recover-src/amrecover.c (main):         Ditto.
738         * recover-src/uscan.l (ll_parse_date):    Ditto.
739         * server-src/amflush.c (main):            Ditto.
740         * server-src/reporter.c (handle_success): Ditto.
741
742 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
743         Klocwork bug 470
744         * client-src/sendsize.c (add_diskest): Check for level value.
745
746 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
747         Klocwork bug 372
748         * server-src/reporter.c (nicedate): Check month value.
749
750 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
751         Klocwork bug 20
752         * server-src/amadmin.c (tape): Limit nb_days to 10000.
753
754 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
755         Klocwork bug 21
756         * server-src/amadmin.c (balance): Test 'later' after it is set.
757
758 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
759         * common-src/alloc.c (internal_vstralloc): Don't return NULL.
760
761 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
762         * server-src/infofile.c (open_txinfofile): Use local variable.
763
764 2006-06-29  Jean-Louis Martineau <martineau@zmanda.com>
765         * restore-src/restore.c (label_of_current_slot): Close the tapefd if
766                                                          the label mismatch.
767
768 2006-06-29  Jean-Louis Martineau <martineau@zmanda.com>
769         * server-src/find.c (strip_failed_chunks):
770           - Get a **output_find as parameter.
771           - Check the label before remove a valid chunk.
772           - Memory management fix.
773
774 2006-06-28  Jean-Louis Martineau <martineau@zmanda.com>
775         * common-src/security-util.c: Improve message for .amandahosts.
776
777 2006-06-27  Ian Turner <ian@zmanda.com>
778         * common-src/fileheader.c: Fix a bug where spanned dumps would 
779           always fail.
780
781 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
782         * server-src/amcheck.c: Fix test for holdingdisk negative size.
783
784 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
785         * configure.in: Don't set DEFAULT_TAPE_DEVICE if it is not set.
786         * client-src/clientconf.c: Work DEFAULT_TAPE_DEVICE not set.
787         * common-src/genversion.c: Work DEFAULT_TAPE_DEVICE not set.
788         * recover-src/amrecover.c: Work DEFAULT_TAPE_DEVICE not set.
789         * server-src/getconf.c:    Work DEFAULT_TAPE_DEVICE not set.
790
791 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
792         Patch by Paul Bijnens
793         * server-src/amcheck.c: Check for access(hdp->diskdir, X_OK).
794
795 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
796         * server-src/conffile.c (getconf_byname): Check for kt->keyword != NULL.
797         * client-src/clientconf.c (client_getconf_byname): Ditto
798
799 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
800         * recover-src/extract_list.c: check_file_overwite.
801
802 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
803         * recover-src/extract_list.c: Do the cleanup of the extract list
804                                       at the extraction time
805         * oldrecover-src/extract_list.c: Ditto.
806
807 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
808         * NEWS: Add new features.
809         * ReleasesNotes: New files.
810
811 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
812         * docs/Makefile.am (pkgdata_DATA): Add amaespipe.8.txt amcrypt.8.txt
813           amcrypt-asym-ossl.8.txt amcrypt-ossl.8.txt amfetchdump.8.txt
814         * docs/amaespipe.8.txt: New file.
815         * docs/amcrypt.8.txt: New file.
816         * docs/amcrypt-asym-ossl.8.txt: New file.
817         * docs/amcrypt-ossl.8.txt: New file.
818         * docs/amfetchdump.8.txt: New file.
819
820 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
821         * docs/Makefile.am (pkgdata_DATA): Add howto-auth.txt.
822         * docs/howto-auth: Documentation on auth.
823         * docs/*.txt: Update from xml-docs
824
825 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
826         * man/xml-source/amanda.conf.5.xml: Add notes about bsdudp and bsdtcp.
827         * man/xml-source/amanda-client.conf.5.xml: Ditto.
828
829 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
830         * recover-src/extract_list.c (is_empty_dir): New function.
831         * recover-src/extract_list.c: Print a warning if cwd is not empty.
832
833 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
834         * server-src/amadmin.c: Allow 'p' and 'P' in --sort argument.
835
836 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
837         * server-src/amadmin.c: Print errstr returned by match_disklist.
838         * server-src/amcheck.c: Print errstr returned by match_disklist.
839         * server-src/amflush.c: Print errstr returned by match_disklist.
840         * server-src/diskfile.c (match_disklist): Return an error str.
841         * server-src/diskfile.h (match_disklist): New prototype.
842         * server-src/planner.c: Print errstr returned by match_disklist.
843         * server-src/reporter.c: Accept host/disk as arguments.
844
845 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
846         * server-src/amindexd.c (uncompress_file): Set LC_ALL=C before
847                                                    executing sort.
848
849 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
850         * server-src/driver.c (wait_children, kill_children): New function.
851         * server-src/driver.c (wait_for_children): Use wait_children and
852                                                    kill_children.
853         * server-src/driver.c (main): Use wait_children.
854         * server-src/driverio.c (taper_cmd, chunker_cmd): Close socket on QUIT
855                                                           or ABORT command.
856
857 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
858         * common-src/amfeatures.c (am_init_feature_set): Set
859           fe_amrecover_feedme_tape.
860         * common-src/amfeatures.h (fe_amrecover_feedme_tape): New amfeatures.
861         * common-src/fileheader.c (print_header): Fix.
862         * recover-src/extract_list.c: Use fe_amrecover_feedme_tape.
863         * restore-src/amfetchdump.c: Print error if get_lock == 0.
864         * restore-src/amidxtaped.c: Call send_message if get_lock == 0.
865         * restore-src/restore.c: Split search_tapes in 5 functions.
866         * restore-src/restore.h (send_message): prototype.
867
868 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
869         * man/xml-source/amfetchdump.8.xml: Document -O and new -o.
870         * restore-src/amfetchdump.c: Replace -o by -O
871
872 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
873         * client-src/clientconf.c (parse_client_conf): Fix segmentation fault.
874         * server-src/conffile.c (parse_server_conf): Fix segmentation fault.
875
876 2006-06-21  Kevin Till <ktill@zmanda.com>
877         * changer-src/chg-juke.sh.in
878         * changer-src/chg-manual.sh.in
879         * changer-src/chg-mcutil.sh.in
880         * changer-src/chg-multi.sh.in
881         * changer-src/chg-mtx.sh.in
882         * changer-src/chg-rait.sh.in
883         * changer-src/chg-disk.sh.in
884         * changer-src/chg-zd-mtx.sh.in
885         * changer-src/chg-null.sh.in
886         * changer-src/chg-chs.sh.in
887         * client-src/patch-system.sh.in
888         * amplot/amplot.sh.in
889         * server-src/amcrypt-ossl.sh.in
890         * server-src/amrmtape.sh.in
891         * server-src/amcleanup.sh.in
892         * server-src/amverifyrun.sh.in
893         * server-src/amaespipe.sh.in
894         * server-src/amdump.sh.in
895         * server-src/amcrypt.sh.in
896         * server-src/amcrypt-ossl-asym.sh.in
897         * server-src/amcheckdb.sh.in
898         * server-src/amfreetapes.sh.in
899         * server-src/amverify.sh.in
900          change /bin/sh to @SHELL@ for configure to pick up the correct
901          shell. Sourceforge bug 1466655
902         * man/xml-source/amcrypt-ossl-asym.8.xml: it's backup-privkey.pem
903
904 2006-06-20  Kevin Till <ktill@zmanda.com>
905         * common-src/security-util.c: ignore EINTR in net_writev
906           patch by Jean-Louis Martineau.
907
908 2006-06-20  John Franks <jrfranks@zmanda.com>
909         * server-src/conffile.c:
910                 Remove Duplicate keyword table entries and alphabetize
911                 to make future duplicates easier to spot...
912
913         * server-src/taper.c:
914                 Fix compiler warnings when no mmap function is present.
915
916 2006-06-20  John Franks <jrfranks@zmanda.com>
917         * server-src/diskfile.c:
918                 Default boolean values without parameters to yes if
919                 no value is present in configuration file.  This
920                 maintains backward compatibility and is logical since
921                 a value such as "index" reads as an assertion of fact.
922
923 2006-06-19  Jean-Louis Martineau <martineau@zmanda.com>
924         * docs/wishlist.txt: Remove features done in 2.5.0/2.5.1
925
926 2006-06-19  Jean-Louis Martineau <martineau@zmanda.com>
927         * man/xml-source/amanda.conf.5.xml: amrecover_check_label and
928                                             amrecover_do_fsf default to yes.
929         * server-src/conffile (init_dumptype_defaults): DUMPTYPE_INDEX set to 1.
930         * server-src/diskfile.c (parse_diskline): index set from
931                                                   dumptype_get_index.
932
933 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
934         * server-src/amstatus.pl.in: Match quotes in DONE line.
935
936 2006-06-16  Kevin Till <ktill@zmanda.com>
937         * example/amanda-client.conf.in:
938          correct DEFAULT_TAPE_SERVER/DEFAULT_SERVER
939         * server-src/amcrypt-ossl-asym.sh.in:
940           set RANDFILE for openssl to place entropy file.
941         * server-src/amcrypt-ossl.sh.in: ditto
942
943 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
944         * amandad-src/amandad.c   : Use strcasecmp to compare auth.
945         * client-src/selfcheck.c  : Ditto
946         * client-src/sendbackup.c : Ditto
947         * restore-src/amidxtaped.c: Ditto
948         * server-src/amindexd.c   : Ditto
949
950 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
951         * server-src/amindexd.c (reply, lreply, fast_lreply): Correct use
952           of arglist_start and arglist_end..
953         * server-src/amindexd.c (lreply_backend): Remove function.
954
955 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
956         * common-src/bsd-security.c (stream_read_callback): Send error to the
957                                                             callback.
958
959 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
960         * recover-src/extract_list.c: Typo.
961         * restore-src/restore.c: Typo.
962
963 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
964         * client-src/clientconf.c: Allow include.
965         * client-src/clientconf.c (read_confline): Don't crash.
966         * server-src/conffile.c (read_confline): Don't crash.
967         * recover-src/amrecover.c: Exit if error in conf file.
968
969 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
970         * common-src/arglist.h: Typo.
971         * recover-src/extract_list.c: handle MESSAGE from amidxtaped.
972
973 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
974         * common-src/amfeatures.c (am_init_feature_set): Set
975                                                          fe_amrecover_message.
976         * common-src/amfeatures.h (am_feature_e): Add fe_amrecover_message.
977         * common-src/arglist.h (printf_arglist_function3): Prototype.
978
979 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
980         * restore-src/restore.c (send_message): New function that send message
981                                                 to stderr and/or amrecover.
982         * restore-src/restore.c: Call send_message on some error path.
983
984 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
985         * common-src/event.c (event_loop_wait, event_wait): Take an
986                                          event_handle_t * as parameter.
987         * common-src/event.h: New prototype.
988         * common-src/bsd-security.c: Call event_wait(bs->ev_read).
989         * common-src/krb4-security.c: Call event_wait(ks->ev_read).
990         * common-src/krb5-security.c: Call event_wait(ks->ev_read).
991         * common-src/security-util.c: Call event_wait(ss->ev_read).
992
993 2006-06-15  Kevin Till <ktill@zmanda.com>
994         * man/xml-source/amcrypt-ossl-asym.8.xml: it's .am_passphrase
995         * server-src/amcrypt-ossl-asym.sh.in: export PATH
996         * server-src/amcrypt-ossl.sh.in: export PATH
997
998
999 2006-06-15  Jean-Louis Martineau <martineau@zmanda.com>
1000         * server-src/amcheck.c: -w doesn't change the test selection.
1001         * man/xml-source/amcheck.8.xml
1002
1003 2006-06-15  Jean-Louis Martineau <martineau@zmanda.com>
1004         * server-src/planner.c: Log empty disklist and no DLE selected.
1005
1006 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
1007         * common-src/bsd-security.c: Use %u to print in_port_t data.
1008         * common-src/bsdudp-security.c: Ditto.
1009
1010 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
1011         * changer-src/chg-disk.sh.in: Return the number of slot in output of
1012                                       the -info command.
1013         * changer-src/chg-zd-mtx.sh.in: Ditto.
1014
1015 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
1016         * changer-src/chg-zd-mtx.sh.in: Accept changerfile that already
1017                                         have the .conf suffix.
1018
1019 2006-06-13  Jean-Louis Martineau <martineau@zmanda.com>
1020         * amandad-src/amandad.c (s_ackwait): Resend the REP on receive of a
1021                                              duplicate REQ.
1022
1023 2006-06-13  Jean-Louis Martineau <martineau@zmanda.com>
1024         * common-src/security-util.c (bsd_recv_security_ok): Set error only
1025           if we get an error.
1026
1027 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
1028         * server-src/driver.c: usetimestamps is a warning.
1029
1030 2006-06-12  Kevin Till <ktill@zmanda.com>
1031         * common-src/security-util.c: if host is 127.0.0.1 and either
1032           localhost or localhost.domain is in .amandahost, hostmatch passes.
1033         * common-src/security-util.h: update check_user_amandahosts prototype
1034
1035 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
1036         * amandad-src/amandad.c (process_writenetfd): Close the pipe if the
1037                                                       security_stream is closed.
1038         * recover-src/extract_list.c: Improve message if we don't get thei
1039                                       FEATURE line from amidxtaped.
1040
1041 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
1042         * recover-src/amrecover.c: Read amanda-client.conf and
1043                                    <conf>/amanda-client.conf.
1044
1045 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
1046         * common-src/security-util.c, common-src/tapelist.c,
1047           restore-src/restore.c, server-src/amcheck.c, server-src/amindexd.c,
1048           server-src/amtape.c, server-src/changer.c, server-src/driver.c,
1049           server-src/planner.c, server-src/taper.c,
1050           server-src/taperscan.c: Fix memory leak.
1051
1052 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
1053         * restore-src/restore.c: Fix Adding at end of list.
1054
1055 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
1056         * server-src/taper.c (syncpipe_putstr): Don't crash if str is NULL.
1057
1058 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
1059         * server-src/holding.c (pick_datestamp): Fix reading user input.
1060
1061 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
1062         * recover-src/amrecover.c (sigint_handler): Call send_command only if
1063                                                     amindexd is alive.
1064
1065 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
1066         * common-src/util.c (connect_port): ETIMEDOUT is a fatal error.
1067
1068 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
1069         * common-src/stream.c (stream_client_internal): Get errno set
1070                                                         correctly.
1071         * server-src/driver.c (handle_chunker_result): Don't assert(0) on
1072                               receive of a TRYAGAIN from a chunker, but set
1073                               chunker->result.
1074         * server-src/dumper.c: Try gethostbyname("localhost") before calling
1075                                stream_client and log appropriate message.
1076
1077 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
1078         * server-src/amcheck.c: Report ERROR if gethostbyname("localhost")
1079                                 doesn't succeed.
1080
1081 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
1082         * client-src/clientconf.c (add_client_conf): New function to map
1083                                                      normal option to their
1084                                                      -o equivalent.
1085         * client-src/clientconf.h (add_client_conf): Prototype.
1086         * man/xml-source/amrecover.8.xml: Document -o.
1087         * recover-src/amrecover.c: Also read <config>/amanda-client.conf
1088
1089 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
1090         * server-src/diskfile.c (parse_diskline): Only return 0 or -1.
1091
1092 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
1093         * amandad-src/amandad.h (g_option_t): Add auth.
1094         * amandad-src/amandad_util.c (init_g_options): Set auth to NULL.
1095         * amandad-src/amandad_util.c (parse_g_options): Parse auth.
1096         * amandad-src/amandad_util.c (free_g_options): Free auth.
1097         * client-src/sendbackup.c: Get amandad_auth from command line and
1098                                    compare with REQ packet.
1099         * common-src/amfeatures.h (fe_amindexd_options_hostname,
1100                                    fe_amindexd_options_features,
1101                                    fe_amindexd_options_auth,
1102                                    fe_amidxtaped_options_hostname,
1103                                    fe_amidxtaped_options_features,
1104                                    fe_amidxtaped_options_auth): New amfeatures.
1105         * common-src/amfeatures.c (am_init_feature_set): Set new amfeatures.
1106         * recover-src/amrecover.c: Send auth in OPTIONS of req packet.
1107         * recover-src/extract_list.c: Send auth in OPTIONS of req packet.
1108         * restore-src/amidxtaped.c: Parse amandad_auth from command line.
1109                                     Get auth from OPTIONS line.
1110                                     Compare them.
1111         * server-src/amindexd.c: Parse amandad_auth from command line.
1112                                  Get auth from OPTIONS line.
1113                                  Compare them.
1114
1115 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
1116         * common-src/util.c(connect_port): Return -2 on ECONNREFUSED error
1117                                            from connect.
1118
1119 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1120         * amandad-src/amandad.c: exec the service with the auth as parameter.
1121         * amandad-src/amandad.c(writebuf): Do no close fd.
1122         * client-src/selfcheck.c: Read the auth for the command line and
1123                                   compare with the option string.
1124         * client-src/selfcheck.c(main): Do no close 0,1,2 fd.
1125
1126 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1127         * man/xml-source/amanda.8.xml(CONFIGURATION OVERWRITE): New section.
1128         * man/xml-source/amadmin.8.xml,   man/xml-source/amcheck.8.xml,
1129           man/xml-source/amdump.8.xml,    man/xml-source/amflush.8.xml,
1130           man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml,
1131           man/xml-source/amreport.8.xml,
1132           man/xml-source/amrestore.8.xml: Add -o option.
1133
1134 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1135         * common-src/util.c(get_conftoken): Merge from zmanda.
1136
1137 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1138         * common-src/util.c(get_conftoken): Remove a conftoken_ungetc.
1139
1140 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1141         * common-src/bsd-security.c (stream_read_callback): Merge with zmanda.
1142
1143 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1144         * amandad-src/amandad.c(process_writenetfd): Call security_stream_read
1145                                                      only if size > 0.
1146
1147 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1148         * server-src/conffile.c (lookup_interface): Fix merge error.
1149
1150 2006-06-07  John Franks <jrfranks@zmanda.com>
1151         * common-src/amanda.h:
1152                 Fix isnormal() replacement macro to indirectly
1153                 check if a floating point value is != 0.0.
1154                 This prevents compiler warnings.
1155
1156 2006-06-07  John Franks <jrfranks@zmanda.com>
1157         * common-src/util.c
1158                 Put in "/* NOTREACHED */" comments after error() calls.
1159         * server-src/diskfile.c
1160                 Change disktype index default to yes for backward compatibility.
1161
1162 2006-06-06  John Franks <jrfranks@zmanda.com>
1163         * amandad-src/amandad.c common-src/bsd-security.c:
1164                 Correct fix for infinite amandad loop.
1165
1166 2006-06-06  John Franks <jrfranks@zmanda.com>
1167         * common-src/stream.c common-src/util.c:
1168                 Lint clean again.
1169         * server-src/conffile.c:
1170                 Remove replicated line
1171
1172 2006-06-06  Jean-Louis Martineau <martineau@zmanda.com>
1173         * common-src/util.c (conftoken_ungetc): Return the character.
1174         * common-src/util.c (get_conftoken): Merge to allow escape character.
1175         * common-src/util.c (read_block): Allow STRING as IDENT.
1176         * server-src/conffile.c (getconf_long, getconf_size): New function.
1177         * server-src/conffile.c: Cleanup after Merge.
1178
1179 2006-06-06  Jean-Louis Martineau <martineau@zmanda.com>
1180         * server-src/amadmin.c, server-src/amcheck.c, server-src/amflush.c,
1181           server-src/amlabel.c, server-src/amlogroll.c, server-src/amtrmidx.c,
1182           server-src/amtrmlog.c, server-src/getconf.c,
1183           server-src/reporter.c: Usage -o
1184         * server-src/amflush.c, server-src/amlogroll.c, server-src/amtrmidx.c,
1185           server-src/amtrmlog.c, server-src/chunker.c, server-src/driver.c,
1186           server-src/dumper.c, server-src/getconf.c, server-src/planner.c,
1187           server-src/reporter.c,
1188           server-src/taper.c: Add call to report_bad_conf_arg.
1189         * server-src/conffile.c(get_comprate, get_compress): Parse CONF_END.
1190
1191 2006-06-06  John Franks <jrfranks@zmanda.com>
1192         * configure.in:
1193                 Increase checking level from 1 to 2 for SUN lint.
1194         * client-src/amandates.c client-src/clientconf.c
1195           common-src/security-util.c recover-src/amrecover.c
1196           recover-src/extract_list.c regex-src/regcomp.c server-src/amcheck.c
1197           server-src/amlabel.c server-src/chunker.c server-src/conffile.c
1198           server-src/conffile.h server-src/diskfile.c server-src/diskfile.h
1199           server-src/driver.c server-src/holding.c server-src/reporter.c
1200           server-src/tapefile.c server-src/taper.c tape-src/amdd.c:
1201                 Lint clean again.
1202         * common-src/util.h common-src/util.c:
1203                 Lint clean again.
1204                 Add missing conftype size.
1205         * common-src/bsd-security.c
1206                 Fix infinte loop which consumes all /tmp space and 1/2
1207                 the CPU time when EOF is reached on socket.
1208
1209 2006-06-05  Paddy Sreenivasan <paddy@zmanda.com>
1210         * common-src/util.c: Fix warning
1211
1212 2006-06-05  Jean-Louis Martineau <martineau@zmanda.com>
1213         * restore-src/amfetchdump.c, server-src/amcheck.c,
1214           server-src/amcheckdb.sh.in, server-src/amcleanup.sh.in,
1215           server-src/amdump.sh.in, server-src/amflush.c,
1216           server-src/amlabel.c, server-src/amlogroll.c,
1217           server-src/amtrmidx.c, server-src/amtrmlog.c,
1218           server-src/chunker.c, server-src/conffile.c,
1219           server-src/diskfile.c, server-src/driver.c,
1220           server-src/driverio.c, server-src/dumper.c,
1221           server-src/getconf.c, server-src/planner.c,
1222           server-src/reporter.c, server-src/taper.c,
1223           server-src/taperscan.c: Allow -o options and some memory fix.
1224         * server-src/conffile.c(lookup_dumptype, lookup_tapetype,
1225           lookup_interface): Use strcasecmp.
1226
1227 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
1228         * common-src/stream.c (stream_client_internal): Use connect_portrange.
1229         * common-src/util.c (connect_portrange): First, try to connect with a
1230                                                  port already used.
1231         * common-src/util.c (connect_port): Try to connect with a specific port.
1232         * common-src/util.h: Cleanup.
1233
1234 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
1235         * server-src/reporter.c: Remove empty if.
1236
1237 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
1238         * common-src/util.c (read_block): Don't read CONF_NL aftre the '{'.
1239         * server-src/conffile.c(get_holdingdisk, get_tapetype, get_interface):
1240           Read a CONF_NL after the call to read_block.
1241         * server-src/conffile.c(read_dumptype): Read a CONF_NL if we are not
1242                                                 called from diskfile.
1243         * server-src/diskfile.c: Don't loop on empty line after read_dumptype.
1244
1245 2006-06-01  Kevin Till  <ktill@zmanda.com>
1246         * server-src/amcrypt-ossl.sh.in: symmetric encrypt script using openSSL.
1247           Thanks to Ben Slusky.
1248         * server-src/amcrypt-ossl-asym.sh.in: public-ley encrypt script using openSSL.
1249         * man/xml-source/amcrypt-ossl.8.xml: man page
1250         * man/xml-source/amcrypt-ossl-asym.8.xml: man page
1251         * configure.in: ditto
1252         * man/Makefile.am: ditto
1253         * man/entities/global.entities: ditto
1254         * server-src/Makefile.am: ditto
1255
1256 2006-06-01  John Franks <jfranks@zmanda.com>
1257         Eliminate Cygwin compile warnings.
1258         * client-src/getfsent.c:  Quiet unused parameter warnings.
1259         * client-src/selfcheck.c: Quiet unused parameter warnings.
1260         * common-src/security-util.h: Make hostname const char *.
1261
1262 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1263         * server-src/amcheck.c: holdingdisk_get_disksize() return an off_t.
1264         * server-src/find.c: result should be ssize_t.
1265
1266 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1267         * common-src/amanda.h: Remove am64_t.
1268         * client-src/clientconf.c, client-src/clientconf.h, common-src/util.c,
1269           common-src/util.h, server-src/conffile.c, server-src/conffile.h:
1270           Second pass of config cleanup, add function to parse -o argument.
1271         * recover-src/amrecover.c: -o command argument.
1272         * restore-src/restore.c: Use off_t instead of am64_t.
1273         * server-src/amadmin.c: New config subcommand. -o command argument.
1274         * server-src/amlabel.c: Fix memory leak.
1275         * server-src/diskfile.c: Fix memory leak.
1276         * server-src/diskfile.h: Rename no_hold to to_holdingdisk.
1277         * server-src/driver.c: Many.
1278         * server-src/planner.c: am64_t to off_t.
1279
1280 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1281         This is the first pass of a general rewrite of configuration file
1282         parsing, It will now use array to store all options.
1283
1284         * client-src/clientconf.c:
1285         * client-src/clientconf.h:
1286         * server-src/conffile.c:
1287         * server-src/conffile.h:
1288         * common-src/util.c: Many new functions.
1289         * common-src/util.h:
1290
1291         * restore-src/amidxtaped.c, server-src/amcheck.c,
1292           server-src/amcleanupdisk.c, server-src/amlabel.c,
1293           server-src/diskfile.c, server-src/driver.c, server-src/driverio.c,
1294           server-src/find.c, server-src/holding.c, server-src/planner.c,
1295           server-src/reporter.c,
1296           server-src/taper.c: Use new macro to get configuration option.
1297
1298 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1299         * amandad-src/amandad.c, client-src/amandates.c, client-src/noop.c,
1300           client-src/selfcheck.c, client-src/sendsize.c,
1301           common-src/bsd-security.c, common-src/bsdtcp-security.c,
1302           common-src/bsdudp-security.c, common-src/fileheader.c,
1303           common-src/rsh-security.c, common-src/security-util.c,
1304           common-src/security-util.h, common-src/ssh-security.c,
1305           recover-src/extract_list.c, server-src/amcheck.c,
1306           server-src/amindexd.c, server-src/amlogroll.c,
1307           server-src/diskfile.c, server-src/driver.c, server-src/dumper.c,
1308           server-src/find.c, server-src/logfile.c, server-src/planner.c,
1309           server-src/reporter.c,
1310           server-src/tapefile.c: Fix memory and fd leak.
1311
1312 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1313         * server-src/find.c (search_holding_disk): Take the datestamp from the
1314           file, not the directory name, otherwise usetimestamps=no doesn't
1315           work.
1316
1317 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1318         * common-src/stream.c (stream_server): New priv parameter if we want
1319                                                a reserved port. Don't try to
1320                                                get a reserved port if priv==0.
1321         * common-src/stream.h (stream_server): New prototype.
1322         * common-src/bsd-security.c: Call stream_server with priv==0.
1323         * common-src/krb4-security.c: Call stream_server with priv==1.
1324         * common-src/security-util.c: Call stream_server with priv==0.
1325         * restore-src/amidxtaped.c: Call stream_server with priv==0.
1326         * server-src/chunker.c: Call stream_server with priv==0.
1327         * server-src/taper.c: Call stream_server with priv==0.
1328
1329 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1330         * server-src/diskfile.c: Return -1 if open of diskfile failed.
1331         * server-src/driver.c: Change message if didn't get a DATE line.
1332         * server-src/reporter.c: Ignore faillure in reading amanda.conf
1333                                  disklist and tapelist.
1334
1335 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
1336         * man/xml-source/amanda.8.xml: Documents service in .amandahosts.
1337
1338 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
1339         Previous patch doesn't work because 'make -j2' will use fd 3.
1340         * amandad-src/Makefile.am: Use a temporary file for output of
1341                                    'make listlibsrc'.
1342         * changer-src/Makefile.am: Ditto.
1343         * client-src/Makefile.am: Ditto.
1344         * common-src/Makefile.am: Ditto.
1345         * oldrecover-src/Makefile.am: Ditto.
1346         * recover-src/Makefile.am: Ditto.
1347         * restore-src/Makefile.am: Ditto.
1348         * server-src/Makefile.am: Ditto.
1349         * tape-src/Makefile.am: Ditto.
1350
1351 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
1352         * amandad-src/Makefile.am: 'make listlibsrc' send it's ouput to fd 3.
1353         * changer-src/Makefile.am: Ditto.
1354         * client-src/Makefile.am: Ditto.
1355         * common-src/Makefile.am: Ditto.
1356         * oldrecover-src/Makefile.am: Ditto.
1357         * recover-src/Makefile.am: Ditto.
1358         * restore-src/Makefile.am: Ditto.
1359         * server-src/Makefile.am: Ditto.
1360         * tape-src/Makefile.am: Ditto.
1361
1362 2006-05-28  Paddy Sreenivasan <paddy@zmanda.com>
1363         * tape-src/tapeio.c : Fixed warnings
1364         * tape-src/output-rait.c : Fixed warnings
1365         * tape-src/output-null.c : Fixed warnings
1366         * tape-src/output-file.c : Fiexed warnings
1367         * recover-src/amrecover.c: Fixed warnings
1368         * recover-src/extract_list.c : Fixed warnings
1369         * server-src/amadmin.c : Fixed warnings
1370         * server-src/driver.c : Fixed warnings
1371         * server-src/infofile.c : Fixed warnings
1372
1373 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
1374         * server-src/conffile.c (read_dumptype): Parse SSH_KEYS.
1375
1376 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
1377         * common-src/security-util.c (udp_inithandle): Remove bad merge.
1378         * server-src/amindexd.c: Improve error message.
1379         * server-src/planner.c: Add a space in output.
1380
1381 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
1382         * server-src/conffile.c: Set dpcur.no_hold correctly,
1383                                  Fix for conffile program.
1384
1385 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
1386         Allow many services to share the same tcp connection for
1387         bsdtcp/ssh/rsh.
1388         Add a security_close_connection to the security-api.
1389         * amandad-src/amandad.c (wait_30s, exit_on_qlength): New variable to
1390                                         control auth specific behaviour.
1391         * common-src/bsd-security.c: Add sec_close_connection_none.
1392         * common-src/bsdudp-security.c: Add sec_close_connection_none.
1393         * common-src/krb4-security.c: Add sec_close_connection_none.
1394         * common-src/krb5-security.c: Add sec_close_connection_none.
1395         * common-src/security.h (security_close_connection): Prototype.
1396         * common-src/security-util.h (sec_close_connection_none,
1397                                       tcpm_close_connection): Prototype.
1398         * common-src/security-util.h (struct tcp_conn): Add toclose.
1399         * common-src/security-util.h (struct sec_stream): Add closed_by_me and
1400                                                           closed_by_network.
1401         * common-src/security-util.c (sec_close_connection_none,
1402                                       tcpm_close_connection): New function.
1403         * common-src/security-util.c: Handle many services on one connection.
1404         * common-src/bsdtcp-security.c: Handle many services on one connection.
1405         * common-src/rsh-security.c: Handle many services on one connection.
1406         * common-src/ssh-security.c: Handle many services on one connection.
1407         * recover-src/amrecover.c: Add call security_close_connection.
1408         * recover-src/extract_list.c: Add call security_close_connection.
1409         * server-src/amcheck.c: Add call security_close_connection.
1410         * server-src/dumper.c: Add call security_close_connection.
1411
1412 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
1413         * common-src/security-util.c (bsd_prefix_packet): We need the username
1414           of the getuid() user.
1415
1416 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
1417         * common-src/fileheader.c: Parse datestamp on F_TAPEEND.
1418         * restore-src/amrestore.c: Set read_result to the result of
1419                                    read_file_header.
1420         * restore-src/restore.c (read_file_header): Return a ssize_t.
1421                         Rename bytes_read by read_result.
1422                         Set read_result to the result of read_file_header.
1423         * restore-src/restore.h (read_file_header): New prototype.
1424
1425 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1426         * server-src/taperscan.c: Replace bogus newvstralloc by vstrextend.
1427
1428 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1429         * client-src/getfsent.c (print_entry): Add prototype.
1430         * common-src/token.c (main): Shut up compiler warning.
1431         * server-src/infofile.c (dump_rec, dump_db): Add prototype.
1432
1433 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1434         * amandad-src/amandad.c, common-src/bsd-security.c,
1435           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
1436           common-src/event.c, common-src/krb5-security.c,
1437           common-src/protocol.c, common-src/rsh-security.c,
1438           common-src/security-util.c, common-src/ssh-security.c,
1439           common-src/util.c, server-src/driver.c: comment debugging.
1440
1441 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1442         * common-src/security-util.c: typo.
1443         * server-src/amcheck.c: Make sure all check are done.
1444
1445 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1446         Fix for program not compiled by default.
1447         make bsdsecurity still not compile.
1448         * common-src/bsd-security.c(bind_portrange): prototype change.
1449         * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add match.o.
1450         * server-src/conffile.c: Many typo.
1451         * tape-src/tapeio.c: Use OFF_T_FMT and SSIZE_T_FMT when needed, typo.
1452         
1453 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1454         * common-src/fileheader.c (validate_datestamp): Works for 8 characters
1455                                                         datestamp.
1456         * common-src/security-util.c (tcpm_send_token): netlength must be
1457                                                         uint32_t.
1458         * common-src/security-util.c (bsd_prefix_packet): Fix typo.
1459         * common-src/util.c (get_time): Don't do computation for starttime.
1460         * server-src/conffile.c (read_dumptype): Do computation for starttime.
1461
1462 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1463         * common-src/krb5-security.c (krb5_sendpkt, krb5_stream_read_sync,
1464                                       recv_token): Return ssize_t.
1465         * common-src/krb5-security.c (krb5_accept, krb5_stream_accept,i
1466                                       krb5_stream_auth): Shut up compiler.
1467         * tape-src/output-file.c: Use SSIZE_MAX instead of SSIZE_T_MAX.
1468
1469 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1470         * configure.in(AM_INIT_AUTOMAKE): Fix.
1471
1472 2006-05-25  John Franks <jrfranks@zmanda.com>
1473         Pass user CFLAGS correctly to machine generated code and do not
1474         enforce code quality checks on them.
1475         * configure.in:
1476           Put compiler code check flags into existing, but previously
1477           unused, AM_CFLAGS for Makefiles to pick up.  CFLAGS should
1478           now only contain mandatory flags.
1479
1480         * recover-src/Makefile.am  oldrecover-src/Makefile.am:
1481           Use CFLAGS for compiling C code generated from uparse.y and uscan.l
1482
1483 2006-05-24  John Franks <jrfranks@zmanda.com>
1484         Add support for binary path names on disk and in configuration files.
1485            (Allow spaces in filenames.)
1486
1487         Allow quoted strings for disklist entries.
1488
1489         Lint clean code using sun lint, splint and strict GCC warnings. 
1490         Type / size clean, dead code removal, portibility checks, etc.
1491         Many checks are still turned off.  See configure.in for lint flags used.
1492
1493         Increase debug output in /tmp/amanda/*debug files.
1494
1495         Set SO_REUSEADDR on sockets help avoid running out of ports.
1496
1497         * configure.in:
1498                 Added lint program discovery with specific targets for SUN lint and splint.
1499                 Check each compiler option to see if GCC supports it.
1500                 Enable more code quality warnings.
1501                 Change missing xsltproc to warning rather than error.
1502                 Define _GNU_SOURCES to build flags.
1503                 Make size_t and time_t printf format macros.
1504                 Check for isnormal() availability.
1505                 Don't install man pages if they are not built.
1506                 Fix man pages to not attempt build or install if
1507                         --without-built-manpages is set.
1508
1509         * Makefile.am amandad-src/Makefile.am changer-src/Makefile.am
1510           client-src/Makefile.am common-src/Makefile.am
1511           oldrecover-src/Makefile.am recover-src/Makefile.am
1512           restore-src/Makefile.am server-src/Makefile.am tape-src/Makefile.am:
1513                 Add lint target.
1514
1515         * common-src/amanda.h common-src/dgram.c common-src/stream.c
1516           common-src/util.c:
1517                 Keep checking for ports on all bind errors.
1518                 Delay and retry a few times if all ports are busy.
1519                 Retry bind failures after all methods fail.
1520                 increase bind checking timeout to 30 minutes.
1521
1522         * client-src/amandad.c
1523                 Issue wait when any child exits.  (Get rid of defunct processes)
1524                 Stat() index file before using system command.
1525                   (shell is not reporting failure if index is not present)
1526
1527         * recover-src/extract_list.c:
1528           Fix problem of 'add *' not adding directories.
1529           Fix problem of freeing pointer not obtained through malloc.
1530           Touch up file addition to actually use the file names
1531              retrieved when adding a directory and not the directory itself.
1532
1533         * server-src/taper.c
1534                 Strenghten error recovery for broken syncpipes and writer errors.
1535
1536         * changer-src/chg-scsi-chio.c client-src/amandates.c
1537           client-src/client_util.c client-src/findpass.c client-src/getfsent.c
1538           client-src/selfcheck.c client-src/sendbackup-gnutar.c
1539           client-src/sendbackup-star.c client-src/sendbackup.c
1540           client-src/sendsize.c common-src/bsd-security.c common-src/file.c
1541           common-src/krb5-security.c server-src/amcheck.c server-src/amindexd.c
1542           server-src/diskfile.c server-src/driver.c server-src/dumper.c
1543           server-src/holding.c server-src/infofile.c server-src/logfile.c
1544           server-src/tapefile.c:
1545                 allow empty lines in input streams.
1546
1547         * recover-src/uparse.y
1548                 print message when input is garbage.
1549
1550         * server-src/getconf.c:
1551                 Define HOSTNAME_INSTANCE if it was not already defined
1552                 for Kerberos.
1553
1554         * configure.in: Make readline warning less specific.  Readline is
1555           used by all input from terminal now.
1556
1557 2006-05-24  Kevin Till <ktill@@zmanda.com>
1558         * client-src/sendbackup.c: ignore SIGINT
1559         * common-src/ssh-security.c: add to total only when n > 0
1560         * common-src/ssh-security.c: add ssh to error,
1561           retry writev when EINTR, EAGAIN is seen
1562           to STDOUT. exit when options is chosen in template mode.
1563         * server-src/driver.c: make sure timestamp is not null
1564         * amanda/configure.in: remove template.d/amanda.conf which is a dup 
1565           of amanda-harddisk.conf
1566         * example/Makefile.am: add template.d/README
1567         * amanda-harddisk.conf.in: set tapedev
1568         * recover-src/amrecover.c: aclose socket before exit.
1569         * recover-src/extract_list.c: ditto
1570         * amanda_enterprise.spec: remove template.d/amanda.conf, add template.d/README
1571           in the failure cases. <> user input field.
1572         * server-src/amcheck.c: no quoted text is a warning
1573         * server-src/driver.c: no need to amfree qname
1574           argument. Search mtx in PATH too.
1575         * example/template.d/advanced.conf.in: fix comment for autoflush
1576         * example/template.d/advanced.conf.in: add usetimestamps
1577         * server-src/diskfile.c: to catch unsupported compress-encryption
1578           combination and abort amdump gracefully.
1579         * man/xml-source/amanda.conf.5.xml: fix syntax, add 
1580           dumptype references.  
1581         * man/xml-source/amanda.8.xml: fix syntax
1582         * configure.in:                 ditto
1583         * man/Makefile.am:              ditto
1584         * example/amanda.conf.in:       tidy up
1585         * man/xml-source/amaespipe.8.xml: add uuencode as requirement
1586         * man/xml-source/amcrypt.8.xml:   add uuencode as requirement
1587         * server-src/amcheck.c: catch dumptype misconfiguration
1588         * server-src/diskfile.c: ditto
1589         * server-src/driverio.c: ditto
1590         * server-src/planner.c:  ditto
1591         * server-src/conffile.c: check includefile before calling
1592           read_conffile_recursively
1593         * example/amanda.conf.in:       add public-key encryption dumptype example
1594         * man/xml-source/amanda.8.xml:  fix some formatting     
1595         * server-src/planner.c: adjust setuid() calling sequences so that ssh can work
1596         * server-src/dumper.c:  ditto
1597         * configure.in:              add LOW_TCPPORTRANGE for amrecover
1598         * common-src/stream.c:       use LOW_TCPPORTRANGE
1599         * server-src/amdump.sh.in:   check if config is supplied
1600         * man/xml-source/amrestore.8.xml: add notes on "-f" option
1601
1602 2006-05-24  Ian Turner <ian@zmanda.com>
1603         * configure.in: Properly document --without-xsltproc as itself, 
1604           and not the (nonexistant) option --without-built-manpages.
1605
1606 2006-05-16  John Franks <jrfranks@zmanda.com>
1607         * amandad-src/amandad.c client-src/clientconf.c common-src/bsd-security.c
1608           common-src/bsdudp-security.c common-src/dgram.c common-src/krb4-security.c
1609           common-src/krb5-security.c common-src/match.c common-src/packet.c
1610           common-src/security-util.c common-src/security-util.h
1611           common-src/security.h common-src/util.c oldrecover-src/Makefile.am
1612           oldrecover-src/set_commands.c recover-src/amrecover.c
1613           recover-src/extract_list.c server-src/conffile.c server-src/driver.c
1614           server-src/dumper.c server-src/planner.c server-src/reporter.c:
1615                 Minimal changes to get tree to compile along with some more
1616                 debugging output.
1617
1618 2006-05-15  Jean-Louis Martineau <martineau@zmanda.com>
1619         * server-src/amadmin.c (disklist_one): print spindle.
1620
1621 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
1622         * commmon-src/bsd-security.c: Typo.
1623
1624 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
1625         * common-src/Makefile.am (noinst_HEADERS): Add security-util.h.
1626
1627 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
1628         Build a big tok_t enum for server and client config.
1629         * client-src/clientconf.c: Move many things to util.c.
1630         * client-src/clientconf.h: Remove extern variable.
1631         * common-src/util.c: Add common part of clientconf.c and conffile.c
1632         * common-src/util.h: Prototype.
1633         * server-src/conffile.c: Move many things to util.c.
1634         * server-src/diskfile.c(disk_parserror): Rename from parserror.
1635         * server-src/taper.c: Make many variable static.
1636
1637 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
1638         * restore-src/restore.c: Fix use of possibly NULL input.
1639
1640 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
1641         * common-src/ssh-security.c (ssh_connect): Retrieve ssh_keys from
1642                                                    configuration.
1643         * server-src/amadmin.c(disklist_one): Print ssh_keys.
1644         * server-src/conffile.c(SSH_KEYS): Parse new dumptype option.
1645         * server-src/conffile.h(dumptype_t): Add ssh_keys.
1646         * server-src/diskfile.c(parse_diskline): Copy new field.
1647         * server-src/diskfile.h(disk_t) Add ssh_keys.
1648         * server-src/driverio.c(dumper_cmd): Send dp->ssh_keys in a PORT_DUMP
1649                                              command to the dumper.
1650         * server-src/dumper.c: Parse ssh_keys in a PORT_DUMP command.
1651         * server-src/dumper.c(dumper_get_security_conf): Return the ssh_keys.
1652         * server-src/server_util.c(amhost_get_security_conf): Return the
1653                                                               ssh_keys.
1654
1655 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
1656         * amandad-src/amandad.c: Set allow_many_services to 0 if auth=bsdtcp.
1657         * common-src/bsd-security.c: Use security-util.c.
1658         * common-src/bsdtcp-security.c: New security-api.
1659         * common-src/bsdudp-security.c: New secutity-api.
1660         * common-src/krb4-security.c: Use security-util.c.
1661         * common-src/krb5-security.c: Use security-util.c.
1662         * common-src/Makefile.am (libamanda_la_SOURCES): Add bsdtcp-security.c,
1663                                                              bsdtcp-security.c
1664                                                          and security-util.c.
1665         * common-src/protocol.c: Debuging cleanup.
1666         * common-src/rsh-security.c Use security-util.c.
1667         * common-src/security.c: Use bsdtcp_security_driver
1668                                  and bsdudp_security_driver.
1669         * common-src/security.h(accept): New prototype.
1670         * common-src/security-util.c: Many common function for security-api.
1671         * common-src/security-util.h: many prototype for security-api.
1672         * common-src/ssh-security.c Use security-util.c.
1673         * common-src/stream.c (stream_client_internal): Call connect_portrange.
1674         * common-src/util.c (make_socket): Make a socket.
1675         * common-src/util.c (connect_portrange): Make a socket, bind it and
1676                                                  connect.
1677         * common-src/util.h (connect_portrange): Prototype.
1678         * configure.in: new --with-bsdtcp-security and --with-bsdudp-security.
1679
1680 2006-05-10  Jean-Louis Martineau <martineau@zmanda.com>
1681         Patch by <amanda@inventivetechnology.at>
1682         * man/xml-source/amrecover.8.xml: Document listhost command.
1683
1684 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1685         Patch by <amanda@inventivetechnology.at>
1686         * server-src/amindexd.c: new LISTHOST command.
1687         * recover-src/set_commands.c (list_host): New function.
1688         * recover-src/amrecover.h (list_host): Prototype.
1689         * recover-src/help.c (list_host): Print help.
1690         * recover-src/uscan.l: Parse listhost command.
1691         * recover-src/uparse.y: LISTHOST command.
1692         * oldrecover-src/set_commands.c (list_host): New function.
1693         * oldrecover-src/amrecover.h (list_host): Prototype.
1694         * oldrecover-src/help.c (list_host): Print help.
1695         * oldrecover-src/uscan.l: Parse listhost command.
1696         * oldrecover-src/uparse.y: LISTHOST command.
1697
1698 2006-05-08  Ian Turner <ian@zmanda.com>
1699         * server-src/amcheck.c: Make it an error when the expected new 
1700           tape cannot be found. Thanks to Paul Bijnens
1701           <paul.bijnens@xplanation.com> for the patch and to Jason L 
1702           Tibbitts III <tibbs@math.uh.edu> for noticing this problem.
1703
1704 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1705         * driverio.h (shed_s): Add est_nsize, est_csize, degr_nsize, degr_csize
1706                                for nativa and compressed estimate size.
1707         * planner.c: Send the native and compressed estimate size to the driver.
1708         * driver.c: log with L_STATS the estimate of a successful dump.
1709         * reporter.c: Parse the L_STATS.
1710         * reporter.c(generate_bad_estimate): New function that will put in the
1711                                              NOTES section all bad estimate.
1712
1713 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1714         * configure.in (AC_CONFIG_FILES): Add oldrecover-src/Makefile.
1715         * Makefile.am (RECOVER_SUBDIRS): Add oldrecover-src.
1716         * oldrecover-src/amrecover.c: Copy of old recover-src/amrecover.c
1717         * oldrecover-src/amrecover.h: Copy of old recover-src/amrecover.h
1718         * oldrecover-src/display_commands.c: Copy of old
1719                                              recover-src/display_commands.c
1720         * oldrecover-src/extract_list.c: Copy of old recover-src/extract_list.c
1721         * oldrecover-src/help.c: Copy of old recover-src/help.c
1722         * oldrecover-src/Makefile.am: Copy of old recover-src/Makefile.am
1723         * oldrecover-src/set_commands.c: Copy of old recover-src/set_commands.c
1724         * oldrecover-src/uparse.y: Copy of old recover-src/uparse.y
1725         * oldrecover-src/uscan.l: Copy of old recover-src/uscan.l
1726         * recover-src/amrecover.c: Works with security-api.
1727         * recover-src/amrecover.h: Works with security-api.
1728         * recover-src/extract_list.c: Works with security-api.
1729
1730 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1731         * amandad-src/amandad.c: Fixup.
1732
1733 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1734         * common-src/packet.h: pkt_t.body is now a char*.
1735         * common-src/packet.c (pkt_init): Return an alloced pkt.body.
1736         * common-src/packet.c (pkt_cat): Increade pkt.body size if needed.
1737         * common-src/protocol.c: Free allocated pkt.body.
1738         * common-src/dgram.c (dgram_cat): Return int.
1739         * common-src/dgram.h (dgram_cat): New prototype.
1740         * common-src/krb5-security.c: Work with dynamicaly allocated packet
1741                                       body.
1742         * common-src/rsh-security.c: Work with dynamicaly allocated packet
1743                                      body.
1744         * common-src/ssh-security.c: Work with dynamicaly allocated packet
1745                                      body.
1746         * amandad-src/amandad.c: Work with dynamicaly allocated packet body.
1747         * server-src/amcheck.c: Don't limit packet size.
1748         * server-src/planner.c: Don't limit packet size.
1749
1750 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1751         * amandad-src/amandad.c (service_new): Apply the correct patch.
1752
1753 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1754         * server-src/taper.c: Fix compiler warning.
1755         * common-src/match.c: Many function get const parameters.
1756         * common-src/amanda.h: Prototype change.
1757
1758 2006-05-07  Jean-Louis Martineau <martineau@zmanda.com>
1759         * amandad-src/amandad.c (service_new): Make sur that the 3 data_read[]
1760           and the 3 data_write[] fd are not in the range DATA_FD_OFFSET to
1761           DATA_FD_OFFSET+DATA_FD_COUNT-1.
1762
1763 2006-05-05  Jean-Louis Martineau <martineau@zmanda.com>
1764         * common-src/tapelist.c (append_to_tapelist): Remove bad amfree.
1765
1766 2006-05-05  Nikhil Bandiwadekar <nikhil@zmanda.com>
1767         * server-src/conffile.c: fix to correctly handle am64 datatype
1768
1769 2006-05-04  Jean-Louis Martineau <martineau@zmanda.com>
1770         * server-src/taper.c: Write the slot number in the
1771                               'taper: wrote label' line.
1772         * server-src/amverifyrun.sh.in: Parse that line.
1773
1774 2006-05-02  Jean-Louis Martineau <martineau@zmanda.com>
1775         * amstatus.pl.in: Limit characters for hostname in setup_estimate line.
1776
1777 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
1778         * common-src/rsh-security.c: Pass "amdump amindexd amidxtaped" option
1779                                      to amandad.
1780         * common-src/ssh-security.c: Ditto.
1781
1782 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
1783         * amandad-src/amandad.c: Accept a list of services on the command line.
1784
1785 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
1786         * common-src/tapelist.c (append_to_tapelist): Fix memory leak.
1787
1788 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
1789         * amandad-src/amandad.c: Fix memory leak.
1790         * amandad-src/amandad.h (free_g_options): Prototype.
1791         * amandad-src/amandad_util.c (free_g_options): New function to free a
1792                                                        g_option_t.
1793         * server-src/amcleanupdisk.c: Fix memory leak.
1794         * server-src/reporter.c: Fix memory leak.
1795         * server-src/tapefile.c: Fix memory leak.
1796         * server-src/taperscan.c: Put message in error_message.
1797
1798 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1799         * server-src/amcheck.c (start_server_check): Memory leak.
1800
1801 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1802         * amandad-src/Makefile.am (noinst_HEADERS): Add amandad.h.
1803         * client-src/Makefile.am (noinst_HEADERS): Add clientconf.h.
1804
1805 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1806         * man/xml-source/amanda-client.conf.5.xml: New file.
1807
1808 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1809         * common-src/amanda.h (check_user_ruserok, check_user_amandahosts):
1810           Remove prototype.
1811         * common-src/bsd-security.c: Pass the service name across check_user*
1812           function and validate it from the .amandahosts file.
1813
1814 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1815         * restore-src/amidxtaped.c: Can be launched by amandad.
1816         * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
1817         * server-src/Makefile.am (amidxtaped__LDADD): Link with libamandad.
1818         * restore-src/restore.c: Fix indentation.
1819
1820 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1821         * server-src/amindexd.c: Can be launched by amandad
1822         * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
1823         * server-src/Makefile.am (amindexd_LDADD): Link with libamandad.
1824
1825 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1826         * amandad-src/amandad.c: New file.
1827         * amandad-src/amandad.h: New file.
1828         * amandad-src/amandad_util.c: New file, add function init_g_options
1829                                       parse_g_options.
1830         * amandad-src/Makefile.am: New file.
1831         * client-src/amandad.c: Removed file.
1832         * client-src/amandad.h: Removed file.
1833         * client-src/client_util.c (init_g_options, parse_g_options): Remove.
1834         * client-src/client_util.h (init_g_options, parse_g_options): Remove.
1835         * client-src/Makefile.am (INCLUDES): -I$(top_srcdir)/amandad-src
1836         * client-src/Makefile.am (libexec_PROGRAMS): Remove amandad.
1837         * client-src/Makefile.am (LDADD): Add
1838                                   ../amandad-src/libamandad.$(LIB_EXTENSION).
1839         * client-src/selfcheck.c: #include "amandad.h".
1840         * client-src/sendsize.c: #include "amandad.h".
1841         * configure.in (AC_CONFIG_FILES): amandad-src/Makefile.
1842         * Makefile.am (SUBDIRS): amandad-src.
1843
1844 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1845         * docs/security-api.txt: Document security_read_sync.
1846         * common-src/security.h: Typo.
1847
1848 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1849         * client-src/amandad.c (service_new): Pass the "amandad" argument to
1850                                               the service.
1851
1852 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1853         * common-src/bsd-security.c: Allow to run many services on the same
1854                                      client. Cleanup.
1855         * common-src/rsh-security.c: Ditto.
1856         * common-src/ssh-security.c: Ditto.
1857
1858 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1859         * common-src/security.h (security_stream_read_sync): Prototype.
1860         * common-src/bsd-security.c (bsd_stream_read_sync): New function.
1861         * common-src/krb4-security.c (krb4_stream_read_sync): New function.
1862         * common-src/krb5-security.c (krb5_stream_read_sync): New function.
1863         * common-src/rsh-security.c (rsh_stream_read_sync): New function.
1864         * common-src/ssh-security.c (ssh_stream_read_sync): New function.
1865
1866 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1867         * client-src/amandad.c: Open pipe in both direction to the services.
1868         * client-src/sendbackup.c: Deal with the newer pipe.
1869
1870 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1871         * client-src/clientconf.c: New file to read the client configuration
1872                                    file.
1873         * client-src/clientconf.h: Header.
1874         * client-src/Makefile.am: Link clientconf into libamclient.
1875         * configure.in (AC_CONFIG_FILES): example/amanda-client.conf.
1876         * docs/amanda-client.conf.5.txt: New documentation.
1877         * docs/Makefile.am (pkgdata_DATA): amanda-client.conf.5.txt.
1878         * example/amanda-client.conf.in: exemple.
1879         * example/Makefile.am  (noinst_DATA): amanda-client.conf.
1880         * man/entities/global.entities: amclientconf.
1881         * man/Makefile.am (COMMON_MAN5_PAGES): amanda-client.conf.5.
1882         * man/xml-source/amanda.8.xml (SEE ALSO): amanda-client.conf(5).
1883         * man/xml-source/amanda.conf.5.xml (SEE ALSO): amanda-client.conf(5).
1884         * man/xml-source/amrecover.8.xml (SEE ALSO): amanda-client.conf(5).
1885
1886 2006-04-26  K. K. George<kkg@zmanda.com>
1887         * server-src/reporter.c: Fix to untaint the mailto parameter.
1888         * server-src/amcheck.c: Fix to untaint the mailto parameter
1889         * changer-src/chg-scsi.c: Fix to untaint the mailto parameter.
1890         * changer-src/chg-scsi-chio.c: Fix to untaint the mailto parameter.
1891         * common-src/util.h: Added function to check if the mailto 
1892           parameter is untainted
1893         * common-src/util.c: Added function to check if the mailto 
1894           parameter is untainted
1895
1896 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1897         * common-src/event.c(event_wait): New function.
1898         * common-src/event.h(event_wait): prototype.
1899         * docs/eventapi.txt: Document event_wait.
1900
1901 2006-04-24  Jean-Louis Martineau <martineau@zmanda.com>
1902         * server-src/planner.c: Fix divide by zero if runtapes==0.
1903
1904 2006-04-24  K. K. George<kkg@zmanda.com>
1905         * server-src/reporter.c: Fix to make the mailto parameter in
1906           amanda.conf optional. Added two more commandline options
1907           -i & -Maddress.
1908         * server-src/amcheck.c: Fix to make the mailto parameter in
1909           amanda.conf optional.
1910         * man/xml-source/amreport.8.xml: Modified to document the
1911           -i & -Maddress commandline parameters
1912         * docs/amreport.8.txt: Modified to document the
1913           -i & -Maddress commandline parameters
1914         * changer-src/chg-scsi.c: Fix to make the mailto parameter in
1915           amanda.conf optional.
1916         * changer-src/chg-scsi-chio.c: Fix to make the mailto parameter in
1917           amanda.conf optional.
1918
1919 2006-04-23  Jean-Louis Martineau <martineau@zmanda.com>
1920         * server-src/driver.c (handle_chunker_result): make sure that
1921                                                        est_size > act-size.
1922
1923 2006-04-21  Jean-Louis Martineau <martineau@zmanda.com>
1924         * server-src/changer.c (changer_command): Make sure fd[0] != 1.
1925
1926 2006-04-19  Jean-Louis Martineau <martineau@zmanda.com>
1927         * restore-src/amidxtaped.c: Cleanup.
1928
1929 2006-04-19  Ian Turner <ian@zmanda.com>
1930         * tape-src/output-tape.c: Do a more thourough check to ensure 
1931           that we actually got a tape device, before proceeding to use 
1932           it.
1933
1934 2006-04-18  Ian Turner <ian@zmanda.com>
1935         * changer-src/chg-disk.sh.in: Check that the virtual device is a 
1936           directory with proper permissions.
1937         * server-src/changer.c: Do the right thing (failure) if there is 
1938           a problem with the changer.
1939
1940 2006-04-18  Ian Turner <ian@zmanda.com>
1941         * recover-src/uscan.l: Accept setdate of the form
1942           yyyy-MM-dd-hh-mm in addition to yyyy-MM-dd-hh-mm-ss.
1943         * man/xml-source/amrecover.8.xml: Document this change.
1944
1945 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
1946         * recover-src/help.c: Document setdate YYYY-MM-DD-HH-MM-SS format.
1947         * man/xml-source/amrecover.8.xml: Ditto.
1948
1949 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
1950         * client-src/amandad.c: Use %p to printf pointer.
1951
1952 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
1953         * server-src/amtape.c: Add update command.
1954
1955 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
1956         * server-src/taper.c: log_add(L_WARNING) the output of taper_scan if
1957                                no valid tape are found.
1958
1959 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
1960         * server-src/amcheck.c: Call taper_scan with
1961                 (..., FILE_taperscan_output_callback,outf) arguments.
1962         * server-src/amtape.c:  Call taper_scan with
1963                 (..., FILE_taperscan_output_callback,stderr) arguments.
1964         * server-src/taper.c:   Call taper_scan with
1965                 (..., CHAR_taperscan_output_callback, &error_msg) arguments.
1966         * server-src/taperscan.h(FILE_taperscan_output_callback,
1967                                  CHAR_taperscan_output_callback): Protoype.
1968         * server-src/taperscan.h(taper_scan): New protoype, remove
1969           error_message arg, add taperscan_output_callback and data arg.
1970         * server-src/taperscan.c(FILE_taperscan_output_callback): Callback
1971           that print the msg to it's arg, which is FILE*.
1972         * server-src/taperscan.c(CHAR_taperscan_output_callback): Callback
1973           that append the msg to it's arg, which is char*.
1974         * server-src/taperscan.c(taper_scan): Fix for new arguments.
1975         * server-src/taperscan.c(changer_taper_scan): Fix for new arguments.
1976
1977 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
1978         * man/xml-source/amanda.conf.5.xml: Document amandad_path and
1979                                             client_username dumptype option.
1980
1981 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
1982         * common-src/krb4-security.c: Increase timeout to 60 seconds.
1983         * common-src/rsh-security.c: Increase timeout to 60 seconds.
1984         * common-src/ssh-security.c: Increase timeout to 60 seconds.
1985
1986 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
1987         * server-src/conffile.c: New configuration option usetimestamps.
1988         * server-src/conffile.h: New configuration option usetimestamps.
1989         * example/amanda.conf.in: Document new usetimestamps options.
1990         * man/xml-source/amanda.conf.5.xml: Document new usetimestamps options.
1991         * server-src/amflush.c: Use datestamp or timestamp depending of
1992                                 usetimesstamps.
1993         * server-src/planner.c: Use datestamp or timestamp depending of
1994                                 usetimesstamps.
1995         * server-src/driver.c: Log an ERROR if many run a day and
1996                                usetimestamps us set to no.
1997
1998 2006-04-07  Ian Turner <ian@zmanda.com>
1999         * server-src/changer.c: Don't crash if we go to taperscan "Plan 
2000           B".
2001
2002 2006-04-07  Ian Turner <ian@zmanda.com>
2003         * server-src/changer.c: Only print changer debug messages if 
2004           there was a problem.
2005
2006 2006-04-07  Ian Turner <ian@zmanda.com>
2007         * recover-src/amrecover.c: Print a more helpful command if mount
2008           point autodetection fails.
2009         * recover-src/display_commands.c: Print a more helpful message
2010           if the user tries to ls without having setdisk earlier.
2011
2012 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
2013         * server-src/amadmin.c: Fix use of datestamp as int.
2014         * server-src/find.c: Ditto.
2015         * server-src/reporter.c: Ditto.
2016         * server-src/tapefile.c: Ditto.
2017
2018 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
2019         * common-src/Makefile.am: Fix dependency between genversion and
2020                                   versuff.o.
2021
2022 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
2023         * recover-src/amrecover.c: Change initialization of server_name and
2024                                    tape_server_name.
2025
2026 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
2027         * restore-src/amrestore.c: reset count_error to 0 on a restore.
2028
2029 2006-04-06  Kevin Till <ktill@zmanda.com>
2030         * server-src/Makefile.am: always install planner/dumper setuid-root
2031         * server-src/amcheck.c:   check planner/dumper for setuid-root
2032         * server-src/dumper.c:    drop privilege asap. Switch between bsd 
2033           and ssh auth is now possible with the same installation.
2034         * server-src/planner.c:   ditto
2035
2036 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
2037         * server-src/taperscan.c (changer_taper_scan): Pass a pointer to the
2038           changer_loadslot call.
2039
2040 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
2041         * server-src/tapefile.c (lookup_last_reusable_tape): Fix a datestamp
2042           test with an int.
2043
2044 2006-04-06  Ian Turner <vectro@vectro.org>
2045         * recover-src/amrecover.c (main): Check AMANDA_SERVER and 
2046           AMANDA_TAPE_SERVER environment variables before falling back 
2047           to compiled-in defaults. Document this new behavior. Thanks to 
2048           Malcolm Locke <malc@hoodee.co.uk> for the idea and patch.
2049
2050 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
2051         * server-src/reporter.c (handle_chunk): CHUNK line always have the
2052           datestamp.
2053
2054 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2055         * server-src/krb5-security.c: Fix for krb5_connect call in
2056            open_callback.
2057
2058 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2059         * server-src/driver.c (start_some_dumps): Recover correctly if the
2060           chunker reply with something that is not a PORT command.
2061         * server-src/driver.c (dump_to_tape): remove duplicate free_serial.
2062         * server-src/driverio.c: Improve debugging.
2063
2064 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2065         * common-src/tapelist.c(unmarshal_tapelist_str): Fix
2066           "value computed is not used" compiler warning.
2067
2068 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2069         * common-src/bsd-security.c (bsd_connect): New datap argument.
2070         * common-src/krb4-security.c (krb4_connect): New datap argument.
2071         * common-src/krb5-security.c (krb5_connect): New datap argument.
2072         * common-src/rsh-security.c (rsh_connect): New datap argument,
2073                  retrieve amanda_path and client_username from configuration.
2074         * common-src/ssh-security.c (ssh_connect): New datap argument,
2075                 retrieve amanda_path and client_username from configuration.
2076         * common-src/protocol.c: Pass new datap argument to security_connect.
2077         * common-src/security.h(connect): New prototype.
2078         * common-src/security.h(security_connect): Add datap to macro.
2079         * server-src/amadmin.c(disklist_one): Print amandad_path and
2080                                               client_username.
2081         * server-src/conffile.c(AMANDAD_PATH, CLIENT_USERNAME): Parse new
2082                                 dumptype option.
2083         * server-src/conffile.h(dumptype_t): Add amandad_path and
2084                                              client_username.
2085         * server-src/diskfile.c(parse_diskline): Copy new field.
2086         * server-src/diskfile.h(disk_t) Add amandad_path and client_username.
2087         * server-src/driverio.c(dumper_cmd): Send dp->amandad_path and
2088           dp->client_username in a PORT_DUMP command to the dumper.
2089         * server-src/dumper.c: Parse amandad_path and client_username in a
2090                                PORT_DUMP command.
2091         * server-src/dumper.c(dumper_get_security_conf): New function to return
2092                                 configuration option to the security-api.
2093         * server-src/dumper.c: Use dumper_get_security_conf for the callback
2094                                to protocol_sendreq.
2095         * server-src/planner.c Use amhost_get_security_conf for the callback
2096                                to protocol_sendreq.
2097         * server-src/amcheck.c: Use amhost_get_security_conf for the callback
2098                                 to protocol_sendreq.
2099         * server-src/server_util.c(amhost_get_security_conf): New function to
2100                         return configuration option to the security-api,
2101                         it expect an am_host_t arg.
2102         * server-src/server_util.h(amhost_get_security_conf): Prototype.
2103
2104 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2105         * server-src/amstatus.pl.in: Remove duplicate instruction.
2106
2107 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2108         * server-src/amindexd.c: Remove all code that set str_buffer_size,
2109                                  rename str_buffer_size to reply_buffer_size,
2110                                  rename buf to reply_buffer,
2111         * server-src/amindexd.c(reply, lreply_backend): Increase reply_buffer
2112                                                         size if required.
2113
2114 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2115         * common-src/amfeatures.h: Add fe_amrecover_timestamp amfeature.
2116         * common-src/amfeatures.c (am_init_feature_set):
2117                                                  Add fe_amrecover_timestamp.
2118         * server-src/amindexd.c(opaque_ls_one): New function.
2119         * server-src/amindexd.c(disk_history_list,opaque_ls_one): Send only a
2120           datestamp if client doesn't have fe_amrecover_timestamp.
2121
2122 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2123         * recover-src/uscan.l: Parse "setdate YYYY-MM-DD-HH-MM-SS".
2124         * server-src/amindexd.c (cmp_date): New function to cmp datestamp with
2125                                             timestamp, use it where needed.
2126         * server-src/amindexd.c (amindexd_nicedate): Fix for timestamp.
2127         * server-src/amtrmidx.c: Fix for timestamp.
2128         * server-src/disk_history.h (DUMP_ITEM): Increase size of date.
2129
2130 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2131         * server-src/amflush.c: Send DATE line to driver, use timestamp.
2132         * server-src/amindex.c (getindexfname): Increase datebuf size.
2133         * server-src/amtrmlog.c: Fix bug with date_keep computation if
2134                                  dumpcycle is INF.
2135         * server-src/amtrmlog.c: rotate timestamped log file.
2136         * server-src/chunker.c: Receive START cmd, use timestamp.
2137         * server-src/driver.c: Receive DATE line, send START cmd to chunker,
2138                                use timestamp.
2139         * server-src/driverio.c (startup_dump_processes): Send START cmd to
2140                                                           dumper.
2141         * server-src/driverio.c (dumper_cmd, chunker_cmd): Send START command.
2142         * server-src/driverio.h (startup_dump_processes): Prototype change,
2143                                                           need the timestamp.
2144         * server-src/dumper.c: Receive START cmd, use timestamp.
2145         * server-src/find.c (find_nicedate): Fix for timestamp.
2146         * server-src/planner.c: Send DATE line to driver, use timestamp.
2147         * server-src/server_util.c (cmdstr): Add START.
2148         * server-src/server_util.h (cmd_t): Add START.
2149         * server-src/taper.c: Get timestamp from TAPER_START command.
2150
2151 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2152         * server-src/amindexd.c (amindexd_nicedate): New function.
2153         * server-src/find.h (struct find_result_s): Remove datestamp and
2154                  datestamp_aux field, only timestamp will be used.
2155         * restore-src/amfetchdump.c: Convert datestamp to 'char *'.
2156         * restore-src/restore.c: Convert datestamp to 'char *'.
2157         * server-src/amindexd.c: Convert datestamp to 'char *'.
2158         * server-src/amlabel.c: Convert datestamp to 'char *'.
2159         * server-src/amtrmidx.c: Convert datestamp to 'char *'.
2160         * server-src/find.c: Convert datestamp to 'char *'.
2161         * server-src/reporter.c: Convert datestamp to 'char *'.
2162         * server-src/tapefile.c: Convert datestamp to 'char *'.
2163         * server-src/tapefile.h: Convert datestamp to 'char *'.
2164         * server-src/taper.c: Convert datestamp to 'char *'.
2165
2166 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2167         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b1).
2168
2169 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2170         * server-src/driver.c: Change expression to remove overflow.
2171
2172 2006-03-29  Jean-Louis Martineau <martineau@zmanda.com>
2173         * client-src/calcsize.c: Don't use declaration after instruction,
2174           older compiler don't accept it.
2175
2176 2006-03-23  Jean-Louis Martineau <martineau@zmanda.com>
2177         * Amanda 2.5.0 released.
2178         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0).
2179         * NEWS: Update for 2.5.0
2180
2181 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
2182         * server-src/dumper.c: wait for compress/index/encryp subprocess.
2183
2184 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
2185         * server-src/amstatus.pl.in: Parse PARTIAL reply.
2186
2187 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
2188         * server-src/driver.c: Put '#define HOLD_DEBUG' in comment.
2189
2190 2006-03-21  Jean-Louis Martineau <martineau@zmanda.com>
2191         * server-src/chunker.c: Don't loop on startup_chunker.
2192         * server-src/dumper.c: Don't wait for all children, some process (ssh)
2193           might not terminate.
2194
2195 2006-03-17  Ian Turner <ian@zmanda.com>
2196         * server-src/taper.c (read_file): When finished flushing a 
2197           chunked dump, print information about the whole dump, not just 
2198           the last chunk. Also, fix some memory leaks.
2199
2200 2006-03-16  Kevin Till <ktill@zmanda.com>
2201         * server-src/amverify.sh.in: check for EOI. amrestore only 
2202           reports EOI for some tapetypes.
2203
2204 2006-03-15  Jean-Louis Martineau <martineau@zmanda.com>
2205         * server-src/conffile.c: Fix heritage of auth.
2206
2207 2006-03-14  Kevin Till <ktill@@zmanda.com>
2208         * example/amanda.conf.in: add dumptype custom-compress. 
2209           add ssh,krb5 as valid input for auth. 
2210         * man/xml-source/amanda.conf.5.xml: give reference to 
2211           custom-compress, encrypt-fast dumptypes.
2212
2213 2006-03-14  Jean-Louis Martineau <martineau@zmanda.com>
2214         * common-src/amfeatures.h: Rename fe_amidxtaped_FEEDME to
2215                                           fe_amrecover_FEEDME
2216         * common-src/amfeatures.c (am_init_feature_set): Set
2217                                                          fe_amrecover_FEEDME.
2218         * restore-src/restore.h (search_tapes): Add their_features parameter.
2219         * restore-src/amfetchdump.c: Add NULL pointer to search_tapes call.
2220         * restore-src/amidxtaped.c: Add their_features to search_tapes call.
2221         * restore-src/restore.c (search_tapes): Send FEEDME only if client
2222                                                 support it.
2223
2224 2006-03-11  Jean-Louis Martineau <martineau@zmanda.com>
2225         * server-src/driverio.c : Fix errors found using Coverity tools.
2226
2227 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
2228         * server-src/taperscan.c: Fix Coverity fix.
2229
2230 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
2231         * changer-src/scsi-changer-driver.c:
2232                                          Fix errors found using Coverity tools.
2233         * server-src/diskfile.c: Fix errors found using Coverity tools.
2234         * server-src/planner.c: Fix errors found using Coverity tools.
2235         * server-src/taperscan.c: Fix errors found using Coverity tools.
2236
2237 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
2238         * server-src/driverio.c: Undo my bad fix.
2239         * server-src/infofile.c: Fix errors found using Coverity tools.
2240         * tape-src/tapetype.c: Fix errors found using Coverity tools.
2241
2242 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
2243         * restore-src/restore.c: Fix errors found using Coverity tools.
2244
2245 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
2246         * server-src/holding.c: Fix errors found using Coverity tools.
2247
2248 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
2249         * server-src/driverio.c: Fix errors found using Coverity tools.
2250         * server-src/planner.c: Fix errors found using Coverity tools.
2251
2252 2006-03-09  John Franks <jrfranks@zmanda.com>
2253         * changer-src/chg-scsi.c:        Fix errors found using Coverity tools.
2254         * changer-src/scsi-changer-driver.c:
2255                                          Fix errors found using Coverity tools.
2256         * changer-src/sense.c:           Fix errors found using Coverity tools.
2257         * client-src/sendbackup-dump.c:  Fix errors found using Coverity tools.
2258         * client-src/sendbackup.c:       Fix errors found using Coverity tools.
2259         * recover-src/display_commands.c:Fix errors found using Coverity tools.
2260         * regex-src/regcomp.c:           Fix errors found using Coverity tools.
2261         * restore-src/restore.c:         Fix errors found using Coverity tools.
2262         * server-src/amindexd.c:         Fix errors found using Coverity tools.
2263         * server-src/diskfile.c:         Fix errors found using Coverity tools.
2264         * server-src/driver.c:           Fix errors found using Coverity tools.
2265         * server-src/driverio.c:         Fix errors found using Coverity tools.
2266         * server-src/infofile.c:         Fix errors found using Coverity tools.
2267         * server-src/planner.c:          Fix errors found using Coverity tools.
2268         * server-src/taper.c:            Fix errors found using Coverity tools.
2269         * server-src/taperscan.c:        Fix errors found using Coverity tools.
2270         * server-src/conffile.c:         Change report default to use at least
2271                                          one space between every column.
2272
2273 2006-03-08  Jean-Louis Martineau <martineau@zmanda.com>
2274         * client-src/amandad.c: Fix coverity bug.
2275         * client-src/calcsize.c: Fix coverity bug.
2276         * client-src/client_util.c: Fix coverity bug.
2277         * client-src/sendbackup.c: Fix coverity bug.
2278         * client-src/sendsize.c: Fix coverity bug.
2279         * common-src/bsd-security.c: Fix coverity bug.
2280         * common-src/file.c: Fix coverity bug.
2281         * common-src/fileheader.c: Fix coverity bug.
2282         * common-src/pipespawn.c: Fix coverity bug.
2283         * recover-src/extract_list.c: Fix coverity bug.
2284         * restore-src/restore.c: Fix coverity bug.
2285         * server-src/amindexd.c: Fix coverity bug.
2286         * server-src/conffile.c: Fix coverity bug.
2287         * server-src/diskfile.c: Fix coverity bug.
2288         * server-src/driverio.c: Fix coverity bug.
2289         * server-src/dumper.c: Fix coverity bug.
2290         * server-src/planner.c: Fix coverity bug.
2291         * server-src/reporter.c: Fix coverity bug.
2292
2293 2006-03-07  Paddy Sreenivasan <paddy@zmanda.com>
2294         * man/xml-source/amanda.8.xml: added amaespipe and amcrypt.
2295
2296 2006-03-07  Jean-Louis Martineau <martineau@zmanda.com>
2297         * server-src/taper.c: Don't log a multi-line message in no-tape case.
2298
2299 2006-03-06  John Franks <jrfranks@zmanda.com>
2300         * recover-src/extract_list.c:
2301           1) Don't add '.' directory twice to tar extract list.
2302           2) Don't prepend extra '/' to extract patterns starting with '/'.
2303           3) Convert "/" extract pattern to "*" equivalent.
2304
2305 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
2306         * server-src/taperscan.c (scan_slot): append slotstr to
2307           ct->error_message.
2308         * server-src/taperscan.c: Add a '\n' after each slot error message.
2309
2310 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
2311         * server-src/reporter.c (handle_error): Handle error from taper.
2312
2313 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
2314         * server-src/taper.c (label_tape): Set errstr and return 0 if no
2315           valid tape are available.
2316
2317 2006-03-03  Ian Turner <ian@zmanda.com>
2318         * common-src/amanda.h: New macros MAX_TAPE_LABEL_LEN and 
2319           MAX_TAPE_LABEL_BUF.
2320         * common-src/amfeatures.h: New amfeature fe_amidxtaped_FEEDME
2321         * recover-src/extract_list.c: Accept port number with CONNECT; 
2322           implement fe_amidxtaped_FEEDME.
2323         * restore-src/amidxtaped.c: Introduce port number with CONNECT. 
2324           (closes SF bug 1431623)
2325         * restore-src/restore.c: Implement fe_amidxtaped_FEEDME.
2326           (closes SF bug 1421433)
2327         * restore-src/restore.h: Properly name rst_flags.
2328
2329 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
2330         * common-src/bsd-security.c (bsd_connect, netfd_read_callback, main):
2331           Set bh->proto_handle to NULL after allocating bh.
2332         * common-src/bsd-security.c (bsd_close): Donothing if
2333           bh->proto_handle == NULL.
2334
2335 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
2336         * common-src/protocol.c (s_repwait): Decrease p->timeout on receive
2337                                              of a PREP.
2338
2339 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
2340         * server-src/driver.c: Print dumper TRY_AGAIN message.
2341
2342 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
2343         * server-src/planner.c: Don't print estimate size if estimate failed.
2344
2345 2006-02-25  Ian Turner <ian@zmanda.com>
2346         * man/Makefile.am: Don't use static patterns (as they are not 
2347           portable), use implicit rules instead.
2348
2349 2006-02-20  Kevin Till <ktill@zmanda.com>
2350         * common-src/krb4-security.c: changes needed for krb4/5 to compile. Thanks to
2351                                       Orion Poplawski.
2352         * common-src/krb5-security.c: ditto.
2353
2354 2006-02-16  Kevin Till <ktill@zmanda.com>
2355         * example/amanda.conf.in: dumptype option is "encrypt"
2356         * man/xml-source/amanda.conf.5.xml: ditto
2357         * server-src/holding.c: util.h is include'd twice
2358         * common-src/ssh-security.c: set correct debug print 
2359
2360 2006-02-10  Kevin Till <ktill@zmanda.com>
2361         * man/xml-source/amanda.8.xml: replace informaltable with literallayout 
2362
2363 2006-02-13  John Franks <jrfranks@zmanda.com>
2364         * server-src/driver.c: Pring a more precise message when taper
2365           returns an error.  Include error message from taper in log.
2366           Print out "protocol error" if taper returns a bogus command.
2367
2368 2006-02-10  Kevin Till <ktill@zmanda.com>
2369         * man/xml-source/amanda.conf.5.xml: add note about first character of a 
2370                         tapetype string must be alphabet
2371
2372 2006-02-10  John Franks <jrfranks@zmanda.com>
2373         * server-src/taper.c: Call error() if an invalid string is read
2374           by syncpipe_getstr().
2375  
2376 2006-02-09  John Franks <jrfranks@zmanda.com>
2377         * Makefile.am, */Makefile.am:  Corrections generated by David Braun
2378           dustybird@users.sourceforge.net to properly set source directories
2379           for remote (VPATH) builds.
2380         * man/Makefile.am:  Fixed man page builds to use proper source and
2381           build paths.
2382         * autogen: Force rebuilding everything and print only syntax errors.
2383           (Errors are seen occasionally in system autogen files...)
2384         * configure.in: Eliminate possibility of empty string in shell tests.
2385           fix quoting of '[' and ']' characters in help messages.
2386           Fix default value for DUMPER_DIR to pick up EPREFIX correctly.
2387  
2388 2006-02-08  Ian Turner <ian@zmanda.com>
2389         * server-src/driver.c (handle_taper_result): Properly handle 
2390           SPLIT_NEEDNEXT case. Thanks to Josef Wolf for finding this bug.
2391           Also reindent.
2392
2393 2006-02-06 Kevin Till <ktill@zmanda.com> 
2394         * restore-src/restore.c: fix comment formatting on version 1.2.1
2395
2396 2006-02-06 Kevin Till <ktill@zmanda.com>
2397         * configure.in: Bug 1423731, SSH_SECURITY set only when --with-ssh-security used
2398         * server-src/Makefile.am:: not to install planner/dumper setuid-root --with-ssh-security
2399         * server-src/amcheck.c:    ditto
2400         * server-src/dumper.c:     ditto
2401         * restore-src/restore.c:    add missing "}"
2402         
2403 2006-02-06  Ian Turner <ian@zmanda.com>
2404         * restore-src/amidxtaped.c: Properly handle changers, 
2405           tape-label checking, and tape prompting in amrecover, 
2406           amindexd, and amidextaped. Thanks to Paul Bijnens 
2407           <pbijnens@users.sourceforge.net> for the patch.
2408         * restore-src/restore.c: ditto.
2409         * server-src/amindexd.c: ditto.
2410
2411 2006-02-04  Paddy Sreenivasan <paddy@zmanda.com>
2412         * man/xml-source/amfetchdump.8.xml
2413         * man/xml-source/amcrypt.8.xml
2414         * man/xml-source/amanda.conf.5.xml
2415         * man/xml-source/amanda.8.xml
2416         * man/xml-source/amaespipe.8.xml
2417         * man/entities/global.entities: Merged changes from xml-docs tree
2418
2419 2006-02-03  John Franks <jrfranks@zmanda.com>
2420         * server-src/taper.c: Fix null string printout in CHUNKERSUCCESS log line.
2421
2422 2006-02-03  Ian Turner <ian@zmanda.com>
2423         * server-src/amadmin.c (main): Don't free conf_tapelist too 
2424           early. Thanks to Cédric Lucantis
2425           <cedric-lucantis@users.sourceforge.net> for the patch.
2426
2427 2006-02-02 Kevin Till <ktill@zmanda.com>
2428         * man/xml-source/amanda.8.xml: fix formatting. <informaltable> problem 
2429                                        to be fixed.
2430         * man/xml-source/amrecover.8.xml: add note on client-encrypted tapes.
2431
2432 2006-02-02  Ian Turner <ian@zmanda.com>
2433         * recover-src/extract_list.c (extract_files_child): Run tar with 
2434           --numeric-owner if we are extracting a non-sambafied tar file. 
2435           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for 
2436           the patch. Thanks also to Mark Schaefer for suggesting this 
2437           change.
2438
2439 2006-02-01  Jean-Louis Martineau <martineau@zmanda.com>
2440         * restore-src/restore.c: Use OFF_T_FMT to printf off_t variable,
2441           cast size_t to am64_t and use AM64_FMT to printf them.
2442
2443 2006-01-31  Jean-Louis Martineau <martineau@zmanda.com>
2444         * server-src/driver.c (dumper_result): Reset sched(dp)->attempted to 0
2445           before adding it to tapeq.
2446
2447 2006-01-27  Ian Turner <ian@zmanda.com>
2448         * configure.in: Add new option --without-xsltproc (and
2449           --with-xsltproc), which turns off (or forces) the use of xsltproc to
2450           build manpages. Thanks to Paul Bijnens
2451           <pbijnens@users.sourceforge.net> for suggesting this feature.
2452
2453 2006-01-27  Ian Turner <ian@zmanda.com>
2454         * restore-src/amfetchdump.c: Properly clean up logfiles. Also, 
2455           run as user amanda even if we are started as some other user.
2456           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for the 
2457           patch.
2458
2459 2006-01-25  Paddy Sreenivasan <paddy@zmanda.com>
2460         * common-src/amanda.h:     Removed unnecessary header include files.
2461
2462 2006-01-25  Kevin Till<ktill@zmanda.com>
2463         * server-src/amadmin.c: fix for sourceforge bug 1412698
2464                                 add missing parameters to "amadmin x disklist"
2465         * server-src/amstatus.pl.in: untaint user input, enforce known path.
2466         * server-src/amoverview.pl.in: untaint user input (bug 1353481)
2467
2468 2006-01-25  Kevin Till<ktill@zmanda.com>
2469         * man/xml-source/amanda.conf.5.xml: fix formatting (<para> is not compatible 
2470                                             with some tag) add supported auth types.
2471
2472 2006-01-25  Kevin Till<ktill@zmanda.com>
2473         * common-src/bsd-security.c: move check_security to bsd_security.c, 
2474                                      fix faulty return
2475                                      Thanks to Paul Bijnens
2476         * restore-src/amidxtaped.c:  ditto
2477         * server-src/amindexd.c:     ditto and no need to tell client 
2478                                      about reason for denial
2479         * common-src/amanda.h:       add proto of check_security
2480         * server-src/conffile.c:     don't list CRYPT in the summary report 
2481                                      for now
2482         * restore-src/restore.c:     set outfd correctly for amfetchdump cases
2483                                      Thanks to Paul Bijnens
2484
2485 2006-01-24  Ian Turner <ian@zmanda.com>
2486         * man/xml-source/amanda.conf.5.xml: Put documentation of 
2487           split-dump options in the right place. Thanks to Paul Bijnens 
2488           <pbijnens@users.sourceforge.net> for the fix.
2489         * man/xml-source/amanda.8.xml: ditto.
2490
2491 2006-01-23  Ian Turner <ian@zmanda.com>
2492         * server-src/taperscan.c (find_brand_new_tape_label): Start 
2493           brand new tape labels at 1 instead of 0. Thanks to Paul 
2494           Bijnens <pbijnens@users.sourceforge.net> for the fix.
2495
2496 2006-01-18  Jean-Louis Martineau <martineau@zmanda.com>
2497         * Amanda 2.5.0b2 released.
2498         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b2).
2499         * NEWS: Update for 2.5.0b2
2500         
2501 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
2502         * server-src/disk_history.c: Fix memory leak.
2503
2504 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
2505         * common-src/bsd-security.c: Fix memory leak.
2506         * common-src/tapelist.c: Fix memory leak.
2507         * restore-src/amidxtaped.c: Fix memory leak.
2508         * restore-src/restore.c: Fix memory leak.
2509         * server-src/amindexd.c: Fix memory leak.
2510         * server-src/conffile.c: Fix memory leak.
2511         * server-src/disk_history.c: Fix memory leak.
2512         * server-src/find.c: Fix memory leak.
2513
2514 2006-01-13  John Franks <jrfranks@zmanda.com>
2515         * client-src/amandad.c:      Remove SO_LINGER and TCP_NDELAY.
2516                                      Loop on I/O if EINTR or EAGAIN.
2517         * client-src/noop.c:         Loop on I/O if EINTR or EAGAIN.
2518         * client-src/sendbackup.c:   Remove SIGPIPE handler.
2519                                      Loop on I/O if EINTR or EAGAIN.
2520                                      Check for EPIPE on writes.
2521         * common-src/bsd-security.c: Loop on I/O if EINTR or EAGAIN.
2522         * common-src/stream.c:       Remove SO_LINGER and TCP_NDELAY.
2523         * common-src/util.c:         Loop on I/O if EINTR or EAGAIN.
2524         * recover-src/amrecover.c:   Write commanda atomically in sigint handler
2525         * recover-src/extract_list.c:Remove SIGPIPE handler.
2526                                      Loop on I/O if EINTR or EAGAIN.
2527                                      Check for EPIPE on writes.
2528                                      Remove shutdown functions.
2529         * restore-src/amfetchdump.c: Remove SIGPIPE handler.
2530         * restore-src/amidxtaped.c:  Remove SO_LINGER and TCP_NDELAY.
2531                                      Remove SIGPIPE handler.
2532                                      read_file_header does not return if it
2533                                      Fix infinite loop on EOF or error and
2534                                      fail if memory reallocation failure in
2535                                      get_client_line_fd.
2536         * restore-src/restore.c:     Remove SIGPIPE handler.
2537                                      Loop on I/O if EINTR or EAGAIN.
2538                                      Remove shutdown functions.
2539                                      Simplify read loop.
2540         * restore-src/restore.h:     Change read_file_header to return void
2541         * server-src/amcheck.c:      Use fullread() to handel EINTR etc.
2542                                      Remove unused variable.
2543         * server-src/changer.c:      Remove SO_LINGER and TCP_NDELAY.
2544                                      Use fullwrite on socket.
2545         * server-src/driverio.c:     Remove SO_LINGER and TCP_NDELAY.
2546         * server-src/taper.c:        Use fullwrite() to write data.
2547                                      Use fullread() to read data.
2548         * tape-src/output-file.c;    Use fullwrite() to write data.
2549
2550 2006-01-13  Jean-Louis Martineau <martineau@zmanda.com>
2551         * server-src/amcheck.c (start_server_check): Remove unused variable
2552           errstr.
2553         * restore-src/restore.c (restore): Remove unused variable s, l and
2554           dataeof.
2555
2556 2006-01-12  Jean-Louis Martineau <martineau@zmanda.com>
2557         * recover-src/extract_list.c (send_to_tape_server): Do only on write.
2558         * restore-src/amidxtaped.c (get_client_line_fd): New function to read
2559           one complete line from an fd.
2560
2561 2006-01-09  John Franks <jrfranks@zmanda.com>
2562         * common-src/amanda.h:  Include tcp.h
2563         * client-src/amandad.c: Set TCP_NODELAY and SO_LINGER on sockets.
2564         * common-src/dgram.c:   No linger on datagrams
2565         * common-src/stream.c:  Set TCP_NODELAY and SO_LINGER on sockets.
2566         * common-src/util.c:    Fix fullwrite to return # of bytes written
2567                                 before failure.
2568         * example/amanda.conf.in: Cleanup exclude list template.
2569                                 Use configure directlries instead of /usr/local
2570         * recover-src/extract_list.c: Cleanup read loops.
2571                                 Use real fullwrite instead of inline versions.
2572                                 Remove extra setting of LINGER on socket.
2573         * restore-src/amidxtaped.c: Set TCP_NODELAY and SO_LINGER on sockets.
2574         * restore-src/restore.c:Use real fullwrite instead of inline versions.
2575         * server-src/changer.c: Set TCP_NODELAY and SO_LINGER on sockets.
2576         * server-src/chunker.c: Use real fullwrite instead of inline versions.
2577         * server-src/driverio.c:Set TCP_NODELAY and SO_LINGER on sockets.
2578         * server-src/dumper.c:  Use real fullwrite instead of inline versions.
2579
2580 2006-01-09  Ian Turner <ian@zmanda.com>
2581         * changer-src/scsi-changer-driver.c: If there is a problem opening
2582           the device during GenericRewind, don't retry for 201 minutes; give
2583           up after only 200 seconds.
2584
2585 2006-01-09  Ian Turner <ian@zmanda.com>
2586         * server-src/taperscan.c: When doing taper-scan algorithm, properly
2587           accept new tapes.
2588
2589 2006-01-09  Ian Turner <ian@zmanda.com>
2590         * tape-src/tapeio.c: Generate a more reasonable message when
2591         reading an empty tape label on brand-new tapes.
2592
2593 2006-01-09  Ian Turner <ian@zmanda.com>
2594         * server-src/amcheck.c: Actually do what the documentation for 
2595           amcheck -w says; that is, overwrite labels on tapes.
2596
2597 2006-01-06  Kevin Till<ktill@zmanda.com>
2598         * server-src/amcheck.c: check if encrypt or compress program is 
2599           executable. Check encrypt/compress configuration.
2600         * server-src/dumper.c: kill encrypt child when dump is stopped
2601         * server-src/amcrypt.sh.in: check for aespipe
2602         * server-src/amaespipe.sh.in: adjust PATH
2603         * man/xml-source/amtapetype.8.xml: fix format problem.
2604
2605 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
2606         * recover-src/extract-list.c: Remove 'U' argument for gtar extraction.
2607
2608 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
2609         * restore-src/restore.c (flush_open_outputs): Another shutdown is
2610           required.
2611
2612 2006-01-05  John Franks <jrfranks@zmanda.com>
2613         * recover-src/extract_list.c: Extend linger timeouts to 60 seconds.
2614           Use shutdown() on sockets.
2615           Retry reads in case of EINTR or EAGAIN.
2616         * common-src/stream.c: set linger on correct socket.
2617           Extend linger timeouts to 60 seconds.
2618         * restore-src/restore.c: Fix compiler warnings.
2619         * Call shutdown in more cases.
2620
2621 2006-01-05  John Franks <jrfranks@zmanda.com>
2622         * client-src/amandad.c: Set SO_LINGER on sockets.
2623         * common-src/dgram.c:   Set SO_LINGER on sockets.
2624         * common-src/stream.c:  Set SO_LINGER on sockets.
2625         * common-src/util.c:    Return any bytes already read on error or EOF.
2626         * recover-src/extract_list.c: Set SO_LINGER on data socket.
2627           Fix printf of unterminated string data.
2628           Check return codes on socket header reads.
2629         * restore-src/amidxtaped.c: Set SO_LINGER on sockets.
2630           Check return codes on socket header reads.
2631         * restore-src/restore.c:
2632           Flush newline after operator prompt.
2633         * common-src/debug.c:
2634           Fix memory leak when debug file name already exists.
2635           Print error text upon hard open() error.
2636           Allow group members read only access to log files.
2637
2638 2006-01-05  Kevin Till<ktill@zmanda.com>
2639         * restore-src/restore.c: handle sigpipe. Some program (e.g. bzip2) closes reading pipe
2640           early when it sees trailing garbage after EOF.
2641
2642 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
2643         * common-src/amanda.h: Add a FD_COPY macro.
2644         * recover-src/extract_list.c (writer_intermediary): Don't use
2645           writer_intermediary, do the select locally.
2646
2647 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
2648         * restore-src/restore.c (flush_open_outputs): Call shutdown before
2649           close.
2650
2651 2005-12-30  John Franks <jrfranks@zmanda.com>
2652         * recover-src/extract_list.c:
2653           Fix double clearing of buffer during normal read path.
2654         * restore-src/amidxtaped.c
2655           Actually initialize changer if it is needed.  (Set use_changer
2656           before checking it...)
2657         * Fix control messages being sent down the data pipe when
2658           restoring to client that does not support split dumps.
2659         * Print error and exit if a split dump is needed during restore
2660           and client can not handle it. 
2661
2662 2005-12-30  Ian Turner <ian@zmanda.com>
2663         * common-src/fileheader.c: Remove xx/UNKNOWN split-dump header 
2664           syntax, in favor of xx/-1.
2665
2666 2005-12-29  John Franks <jrfranks@zmanda.com>
2667         * recover-src/display_commands.c
2668           Fix list deletion which did not update list root with NULL pointer.
2669           Make free_dir_item() a non-recursive function to prevent stack bloat.
2670           Fix list insertion code which inserts item in list initializes entry.
2671         * recover-src/extract_list.c
2672           Fix to initialize lditem before using it...
2673           Prevent multiple frees of cmd string.
2674           Do not free err which is only initialized with static string pointers.
2675           Fix typo which caused newstralloc() to free the wrong memory.
2676         * server-src/amindexd.c
2677           Fix Compiler warning of unused variable.
2678         * server-src/taperscan.c
2679           Fix Compiler warning of bogus format specifier.
2680   
2681 2005-12-29  Kevin Till<ktill@zmanda.com>
2682         * man/xml-source/amcrypt.8.xml: add new amcrypt man page
2683         * man/xml-source/amaespipe.8.xml: add new amaespipe man page
2684
2685 2005-12-29  Ian Turner <ian@zmanda.com>
2686         * man/xml-source/amanda.conf.5.xml: Document label_new_tapes 
2687           config option.
2688
2689 2005-12-28  Ian Turner <ian@zmanda.com>
2690         * recover-src/amrecover.h: Use dynamic strings in struct DIR_ITEM.
2691         * recover-src/display_commands.c: ditto
2692         * recover-src/extract_list.c: ditto. Also use dynamic strings in
2693           struct EXTRACT_LIST and struct EXTRACT_LIST_ITEM.
2694
2695 2005-12-28  Ian Turner <ian@zmanda.com>
2696         * common-src/amfeatures.h: Add three new amfeatures:
2697           fe_amindexd_marshall_in_OLSD, fe_amindexd_marshall_in_ORLD,
2698           fe_amindexd_marshall_in_DHST.
2699         * common-src/amfeatures.c: ditto.
2700         * server-src/amindexd.c: Talk well to older clients.
2701
2702 2005-12-23  Ian Turner <ian@zmanda.com>
2703         * server-src/taperscan.c: Don't crash if find_brand_new_tape_label
2704           returns NULL. Also, don't return NULL from
2705           find_brand_new_tape_label without a good excuse.
2706         
2707 2005-12-23  Kevin Till <ktill@zmanda.com>
2708         * client-src/client_util.c: change server_decrypt_option to
2709           server-decrypt-option
2710         * client-src/sendbackup.c:  change client_decrypt_option to
2711           client-decrypt-option
2712         * server-src/dumper.c:      ditto
2713         * common-src/amfeatures.c:  add crypt related amfeaturs
2714         * common-src/amfeatures.h:  ditto  
2715         * server-src/diskfile.c:    amfeatures checking and warns on
2716           mis-configuration
2717
2718 2005-12-23  Paddy Sreenivasan <paddy@zmanda.com>
2719          * restore-src/restore.c:
2720          * server-src/amtape.c:
2721          * server-src/taperscan.c : Make scan_init static function
2722
2723 2005-12-23  John Franks <jrfranks@zmanda.com>
2724         * server-src/taper.c: Reduce I/O's system call overhead by 30%
2725           in main read / write loop. 
2726
2727 2005-12-23  John Franks <jrfranks@zmanda.com>
2728         * recover-src/restore.c  Remove inapproriate aclose which caused
2729           broken restore pipe.
2730         * recover-src/extract_list.c  Fix and cleanup read_buffer()
2731           mainly to fix hole that drops parital buffer of data if end
2732           of file is reached or an error occured..  Touched up calling
2733           functions to make sure EOF/timeouts are handled correctly.
2734           Increased normal path read timeout value from on second to
2735           whatever READ_TIMEOUT is set to.
2736
2737 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
2738
2739         * restore-src/restore.c (restore): Remova an aclose.
2740
2741 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
2742
2743         * restore-src/amidxtaped.c (cleanup): Function registered with atexit
2744           to remove the log file.
2745
2746 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
2747
2748         * server-src/Makefile.am (noinst_HEADERS): Add taperscan.h.
2749
2750 2005-12-20  John Franks <jrfranks@zmanda.com>
2751
2752         * restore-src/restore.c: Remove unused variables.
2753                                  Fix uninitialize reference to bytes_read.
2754         * server-src/amcheck.c:  Remove unused variables.
2755                                  Include taperscan.h for missing prototype.
2756         * server-src/amtape.c:   Remove unused variables.
2757                                  Include taperscan.h for missing prototype.
2758         * server-src/taper.c:    Remove unused variables.
2759                                  Minor indenting changes.
2760         * server-src/taperscan.c:Remove unused variables.
2761                                  Fix typo which assigns NULL rather than
2762                                   checks for NULL.
2763                                  Commented out reference to auto_pos which
2764                                   is assigned but never used...
2765
2766 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
2767
2768         * common-src/fileheader.c (parse_file_header): Parse '/' in part.
2769         * common-src/fileheader.c (build_header): Add space ' ' before "part".
2770
2771 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
2772
2773         * server-src/reporter.c: Fix report of output size.
2774
2775 2005-12-19  Ian Turner <ian@zmanda.com>
2776         * server-src/taperscan.c: Check that automatic tape labels satisfy
2777         the labelstr.
2778
2779 2005-12-19  Ian Turner <ian@zmanda.com>
2780         * server-src/fileheader.c: Fix broken split-dump file headers.
2781
2782 2005-12-18  Jean-Louis Martineau <martineau@zmanda.com>
2783         Patch by Paul Bijnens
2784
2785         * server-src/amcheck.c: Tapelist file is regular file.
2786
2787 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
2788
2789         * restore-src/restore.c (get_block): Return a ssize_t.
2790         * restore-src/restore.c: convert ssize_t to long for printing.
2791         * restore-src/restore.c (restore>): Remove unused variable, outpipe,
2792            outpipe2, i.
2793
2794 2005-12-17  John R. Franks <jrfranks@zmanda.com>
2795
2796         * restore-src/restore.h (read_file_header, restore): Return a ssize_t
2797           instead of using a global variable bytes_read.
2798         * restore-src/restore.c: Use local variable instead of global
2799           bytes_read. Many memory management fixe. Fixe pipe handling,
2800         * restore-src/amrestore.c: Use new read_file_header and restore.
2801         * restore-src/amfetchdump.c: Use new read_file_header and restore.
2802
2803 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
2804         With Kevin Till <ktill@zmanda.com>
2805
2806         * common-src/fileheader.c (parse_file_header): Fix parsing of first
2807           line.
2808         * common-src/fileheader.c (build_header): Print crypt after programi
2809            and only if it is needed.
2810
2811 2005-12-14  Ian Turner <ian@zmanda.com>
2812
2813         * common-src/alloc.c: Add new function vstrextend, which extends an
2814           existing string.
2815         * common-src/amanda.h: Define vstrextend.
2816         * example/amanda.conf.in: Document new option
2817           label_new_tapes. Change default labelstr.
2818         * man/xml-source/amcheck.8.xml: Emphasize the destructiveness of
2819           amcheck -w.
2820         * restore-src/restore.c: Use the new changer_find interface.
2821         * server-src/Makefile.am: Add new file taperscan.c
2822         * server-src/amcheck.c: Use the taper-scan algorithm in taperscan.c,
2823           instead of the previous separate amcheck implementation.
2824         * server-src/amtape.c: Use the taper-scan algorithm in taperscan.c,
2825           instead of the previous separate amtape implementation. Also, use
2826           the new changer_find interface for other kinds of tape finding.
2827         * server-src/changer.c: Eliminate changer_scan. Change the API to
2828           changer_find, so that callers can pass a user-data object, instead
2829           of using globals.
2830         * server-src/changer.h: Declare and document new changer_find
2831           interface.
2832         * server-src/conffile.c: Add new config option label_new_tapes.
2833         * server-src/conffile.h: ditto.
2834         * server-src/taper.c: Use the taper-scan algorithm in taperscan.c,
2835           instead of the previous separate taper implementation. Also,
2836           combine tape-label-reading for ZFTAPE and non-ZFTAPE drives (the
2837           difference only matters on writing).
2838         * server-src/taperscan.c: Refactor the taper-scan algorithm from
2839           taper, amtape, and amcheck. Implement label_new_tapes feature.
2840         * server-src/taperscan.h: Declare and document new taperscan
2841           interface.
2842         * tape-src/tapeio.c: Notice the difference between a non-Amanda tape
2843           and some other tape-reading problem.
2844         * tape-src/tapeio.h: New declarations.
2845
2846 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
2847
2848         * server-src/reporter.c (handle_success): On a taper line, the outsize
2849           should only count dump to tape, not flush.
2850
2851 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
2852
2853         * server-src/amstatus.pl.in: Parse chunker DONE line to set output size.
2854
2855 2005-12-09  John Franks <jrfranks@zmanda.com>
2856
2857         * client-src/Makefile.am: Do not include tape library if
2858           configuring with --without-server option.
2859         * recover-src/Makefile.am: Do not include tape library if
2860           configuring with --without-server option.
2861
2862 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
2863
2864         * configure.in: Move the size detection after detection of large
2865           file support. That change the size of off_t.
2866
2867 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
2868
2869         * common-src/amanda.h: Set OFF_T_FMT to printf format of a off_t.
2870         * server-src/taper.c: Use OFF_T_FMT.
2871
2872 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
2873
2874         * configure.in: Set LL_FMT correctly.
2875         * server-src/conffile.c: Use LL_FMT.
2876
2877 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
2878
2879         * server-src/conffile.c: Maxdumpsize is a AM64.
2880         * server-src/planner.c: conf_maxdumpsize, total_size, tape_length and
2881           tape_mark are am64_t.
2882
2883 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
2884
2885         * configure.in: Check for sizeof of many type. Check printf format of
2886           a 64-bit integers.
2887         * common-src/amanda.h: Typedef am64_t to a 64 bits signed type,i
2888           set AM64_FMT to the printf format of a am64_t variable.
2889         * server-src/conffile.c: New AM64 type.
2890         * server-src/conffile.h(getconf_am64): Prototype.
2891
2892 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
2893
2894         * client-src/Makefile.am: Remove amqde.
2895         * client-src/sendsize.c: Remove code to call amqde.
2896         * client-src/amqde.c: Remove file.
2897         * configure.in: Remove '--with-qde' option.
2898
2899 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
2900
2901         * server-src/amindexd.c (reply, lreply, fast_lreply): Must use
2902           str_buffer_sizebuf instead of sizeof(bug).
2903
2904 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
2905
2906         * server-src/planner.c: Print the time in the FINISH line.
2907         * server-src/reporter.c: The estimate time is based on the planner
2908           FINISH line.
2909
2910 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
2911
2912         * common-src/Makefile.am (bsdsecurity_LDADD): Add ssh-security.
2913
2914 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
2915
2916         * server-src/holding.c (scan_holdingdisk): Static function.
2917         * server-src/taper.c (signal_handler, install_signal_handlers): Ditto.
2918         * server-src/reporter.c (output_strange,do_postscript_output): Ditto.
2919
2920 2005-12-04  Jean-Louis Martineau <martineau@zmanda.com>
2921
2922         * server-src/logfile.c (logtype_str): Add important ','.
2923
2924 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
2925
2926         * server-src/planner.c (setup_estimate): Fix wrong order for argument.
2927
2928 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
2929
2930         * server-src/driver.c (start_some_dumps): Don't test for
2931           cur_idle == NOT_IDLE.
2932
2933 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
2934
2935         * server-src/driverio.c (check_unfree_serial): New fonction to check
2936           unfreed serial number.
2937         * server-src/driverio.c (free_serial_dp): Set stable[s].dp to NULL.
2938         * server-src/driverio.h (check_unfree_serial): Prototype.
2939         * server-src/driver.c (main): Call check_unfree_serial.
2940
2941 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
2942         Patch by Franz Fischer
2943
2944         * config/acinclude.m4i: Fix for __alpha.
2945
2946 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
2947
2948         * common-src/util.c: Debug must end with '\n'.
2949
2950 2005-12-01  Jean-Louis Martineau <martineau@zmanda.com>
2951
2952         * configure.in: Amanda support x86_64-unknown-linux-gnu.
2953
2954 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
2955
2956         * common-src/rsh-security.c (rsh_sendpkt): buf is a char array.
2957         * common-src/ssh-security.c (rsh_sendpkt): buf is a char array.
2958         * config/acinclude.m4i (AX_CREATE_STDINT_H): Newer macro.
2959
2960 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
2961
2962         * client-src/rundump.c: undef USE_RUNDUMP before define.
2963
2964 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
2965         Patch by Franz Fischer
2966
2967         * client-src/amqde.c: Fix compiler warning.
2968
2969 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
2970         Patch by Franz Fischer
2971
2972         * common-src/event.h: Fix compiler warning.
2973         * server-src/conffile.h: Fix compiler warning.
2974
2975 2005-11-30  Kevin Till  <ktill@zmanda.com>
2976         
2977         * client-src/client_util.c add server-side, client-side encryption
2978           as well as custom compression. Custom compression patch is
2979           orginally created by Matthieu Lochegnies.
2980         * client-src/client_util.h Ditto
2981         * client-src/selfcheck.c Ditto
2982         * client-src/sendbackup-dump.c Ditto
2983         * client-src/sendbackup-gnutar.c Ditto
2984         * client-src/sendbackup.c Ditto
2985         * client-src/sendbackup.h Ditto
2986         * common-src/fileheader.c Ditto
2987         * common-src/fileheader.h Ditto
2988         * common-src/util.h Ditto
2989         * example/amanda.conf.in Ditto
2990         * man/xml-source/amanda.conf.5.xml Ditto
2991         * restore-src/amrestore.c Ditto
2992         * restore-src/restore.c Ditto
2993         * server-src/conffile.c Ditto
2994         * server-src/conffile.h Ditto
2995         * server-src/diskfile.c Ditto
2996         * server-src/diskfile.h Ditto
2997         * server-src/dumper.c Ditto
2998         
2999 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
3000
3001         * config/libtool.m4i: libtool 1.5.20
3002         * config/ltmain.sh: libtool 1.5.20
3003
3004 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
3005         Patch by Franz Fischer
3006
3007         * common-src/fileheader.c (build_header): Declation before instruction.
3008         * restore-src/amfetchdump.c: Don't use C++ style comment.
3009         * restore-src/restore.c: Don't use C++ style comment.
3010         * server-src/amindexd.c (reply, lreply, fast_lreply): buf must be
3011            dynamicaly allocated.
3012         * server-src/logfile.h: Don't use C++ style comment.
3013         * server-src/taper.c (free_split_buffer): Test splitbuf against NULL.
3014
3015 2005-11-22 Paddy Sreenivasan <paddy@zmanda.com>
3016         * common-src/rsh-security.c: Fix x86_64 compile warnings.
3017         * common-src/ssh-security.c: Fix x86_64 compile warnings.
3018         * man/Makefile.am: Added EXTRA_XML files.
3019         * man/xml-source/amanda.8.xml: Added spanning patch variables.
3020         * man/xml-source/amrecover.8.xml: Added amfetchdump to SEE ALSO.
3021         * xslt/global.entities: Removed file.
3022
3023 2005-11-20  Jean-Louis Martineau <martineau@zmanda.com>
3024         Patch by Jon H. LaBadie
3025
3026         * changer-src/chg-disk.sh.in: Check permission on file access.
3027
3028 2005-11-17  Paddy Sreenivasan <paddy@zmanda.com>
3029         * man/entities/global.entities: New file. Added man page entities.
3030         * man/entities/xinclude.dtd: New file.
3031         * man/xslt/man.xsl: Correct include path for settings.xsl.
3032
3033 2005-11-15  John R. Franks <jrfranks@zmanda.com>
3034         * changer-src/scsi-changer-driver.c: Fix IA-64 compile warnings.
3035         * common-src/rsh-security.c: Fix IA-64 compile warnings.
3036         * common-src/ssh-security.c: Fix IA-64 compile warnings.
3037         * regex-src/engine.c: Fix IA-64 compile warnings.
3038         * regex-src/regexec.c: Fix IA-64 compile warnings.
3039
3040 2005-11-15  Paddy Sreenivasan <paddy@zmanda.com>
3041
3042         * configure.in:  Changed defaults for tape_dev and nr_tape_dev.
3043         * example/amanda.conf.in: Leave only changerfile definition
3044           uncommented.
3045         * man/xml-source/amanda.conf.5.xml: Updated defaults for 
3046           tapedev and rawtapedev
3047
3048 2005-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3049
3050         * server-src/planner.c: Fix incronly.
3051
3052 2005-11-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3053
3054         * man/Makefile.am: Set man_MANS,
3055
3056 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3057
3058         * man/Makefile.am: Set man5_MANS and man8_MANS,
3059           install-data-hook use them.
3060
3061 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3062         Patch by Olivier Cherrier
3063
3064         * man/Makefile.am (install-data-hook): Set protection correclty
3065           for man5 and man8.
3066
3067 2005-10-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3068
3069         * common-src/util.c (bind_portrange): Increase port in all case.
3070
3071 2005-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3072
3073         * server-src/conffile.c: Allow runtapes==0.
3074         * server-src/driver.c: Use a global conf_runtapes. Don't start a
3075           taper if runtapes==0.
3076         * server-src/reporter.c: Don't print The next tapes if runtapes==0.
3077
3078
3079 2005-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3080
3081         * Amanda 2.5.0b1 released.
3082         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b1).
3083         * NEWS: Update for 2.5.0b1.
3084
3085 2005-10-25  Ian Turner <ian@zmanda.com>
3086         
3087         * man/Makefile.am: include amfetchdump.8.
3088         * man/xml-source/amadmin.8.xml: Add spanning-patch documentation.
3089         * man/xml-source/amanda.8.xml: ditto
3090         * man/xml-source/amrecover.8.xml: ditto
3091         * man/xml-source/amfetchdump.8.xml: ditto (new file)
3092         * man/xslt/global.entities: Add myself, Zmanda Inc.
3093         
3094 2005-10-24  Jean-Louis Martineau <martineau@zmanda.com>
3095
3096         * client-src/sendsize.c (getsize_wrapper): Add a NULL at the end of
3097           the argvchild array.
3098
3099 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
3100
3101         * server-src/server_util.c (getcmd): Print DEBUG to stderr.
3102
3103 2005-10-20  Ian Turner <ian@zmanda.com>
3104
3105         * configure.in: Check for xsltproc.
3106         * man/Makefile.am: Properly build, clean, and distribute generated
3107           manpages from XML source.
3108         * man/amadmin.8: Remove from CVS
3109         * man/amanda.8: Remove from CVS
3110         * man/amanda.conf.5: Remove from CVS
3111         * man/amcheck.8: Remove from CVS
3112         * man/amcheckdb.8: Remove from CVS
3113         * man/amcleanup.8: Remove from CVS
3114         * man/amdd.8: Remove from CVS
3115         * man/amdump.8: Remove from CVS
3116         * man/amflush.8: Remove from CVS
3117         * man/amgetconf.8: Remove from CVS
3118         * man/amlabel.8: Remove from CVS
3119         * man/ammt.8: Remove from CVS
3120         * man/amoverview.8: Remove from CVS
3121         * man/amplot.8: Remove from CVS
3122         * man/amrecover.8: Remove from CVS
3123         * man/amreport.8: Remove from CVS
3124         * man/amrestore.8: Remove from CVS
3125         * man/amrmtape.8: Remove from CVS
3126         * man/amstatus.8: Remove from CVS
3127         * man/amtape.8: Remove from CVS
3128         * man/amtapetype.8: Remove from CVS
3129         * man/amtoc.8: Remove from CVS
3130         * man/amverify.8: Remove from CVS
3131         * man/amverifyrun.8: Remove from CVS
3132         * man/xml-source/amadmin.8.xml: Add from xml-docs
3133         * man/xml-source/amanda.8.xml: Add from xml-docs
3134         * man/xml-source/amanda.conf.5.xml: Add from xml-docs
3135         * man/xml-source/amcheck.8.xml: Add from xml-docs
3136         * man/xml-source/amcheckdb.8.xml: Add from xml-docs
3137         * man/xml-source/amcleanup.8.xml: Add from xml-docs
3138         * man/xml-source/amdd.8.xml: Add from xml-docs
3139         * man/xml-source/amdump.8.xml: Add from xml-docs
3140         * man/xml-source/amflush.8.xml: Add from xml-docs
3141         * man/xml-source/amgetconf.8.xml: Add from xml-docs
3142         * man/xml-source/amlabel.8.xml: Add from xml-docs
3143         * man/xml-source/ammt.8.xml: Add from xml-docs
3144         * man/xml-source/amoverview.8.xml: Add from xml-docs
3145         * man/xml-source/amplot.8.xml: Add from xml-docs
3146         * man/xml-source/amrecover.8.xml: Add from xml-docs
3147         * man/xml-source/amreport.8.xml: Add from xml-docs
3148         * man/xml-source/amrestore.8.xml: Add from xml-docs
3149         * man/xml-source/amrmtape.8.xml: Add from xml-docs
3150         * man/xml-source/amstatus.8.xml: Add from xml-docs
3151         * man/xml-source/amtape.8.xml: Add from xml-docs
3152         * man/xml-source/amtapetype.8.xml: Add from xml-docs
3153         * man/xml-source/amtoc.8.xml: Add from xml-docs
3154         * man/xml-source/amverify.8.xml: Add from xml-docs
3155         * man/xml-source/amverifyrun.8.xml: Add from xml-docs
3156         * man/xslt/expand-sambadoc.xsl: Add from xml-docs
3157         * man/xslt/global.entities: Add from xml-docs
3158         * man/xslt/man.xsl: Add from xml-docs
3159         * man/xslt/settings.xsl: Add from xml-docs
3160
3161 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
3162
3163         * server-src/amstatus.pl.in: a FLUSH command can't be in an estimate
3164           phase.
3165         * server-src/driver.c: Start autoflush while waiting for estimate.
3166         * server-src/planner.c: Write FLUSH line before estimate.
3167
3168 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
3169         Patch by John R. Franks <jrfranks@zmanda.com>
3170
3171         * server-src/taper.c (create_split_buffer): Should not use sizeof().
3172
3173 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
3174
3175         * server-src/taper.c (read_file): Move the putresult(DONE) to the
3176           right place, some cleanup.
3177
3178 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
3179
3180         * server-src/planner.c: Increase DEFAULT_DUMPRATE to 1024 K/s.
3181
3182 2005-10-17  Ian Turner <ian@zmanda.com>
3183
3184         * Changelog: Fix line breaks.
3185         * restore-src/restore.c: Give more useful FSF error messages.
3186         * recover-src/extract_list.c: Do better error checking on passed port
3187           number.
3188         * common-src/tapelist.c: Do proper memory management of strings.
3189           Otherwise really bad stuff happens.
3190
3191 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
3192
3193         * server-src/taper.c: Set SIGPIPE to SIG_IGN, the code already
3194           handle it correctly.
3195
3196 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
3197
3198         * server-src/taper.c (signal_handler): Don't REMOVE_SHARED_MEMORY, it
3199           is done by exit.
3200
3201 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
3202
3203         * server-src/driverio.c (serial2disk): Print str if error.
3204
3205 2005-10-15  Paddy Sreenivasan <paddy@zmanda.com>
3206
3207         * server-src/taper.c: Shared memory need not be removed in normal paths.
3208           Done as part of atexit. 
3209
3210 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
3211         Patch by John R. Franks <jrfranks@zmanda.com>
3212
3213         * changer-src/scsi-aix.c: calls to open/openx guages success by
3214           checking for a file descriptor greater than 0.  0 is also a valid
3215           descriptor so the check should be >= 0.
3216           Calls to SCSI_OpenDevice does not check for error return.
3217           Calls to SCSI_OpenDevice does not check for error return.
3218           Calls to SCSI_OpenDevice does not check for error return.
3219           Call to opendir() does not check for error.
3220         * changer-src/scsi-hpux_new.c: Ditto.
3221         * changer-src/scsi-irix.c: Ditto.
3222         * changer-src/scsi-linux.c: Ditto.
3223         * changer-src/scsi-solaris.c: Ditto.
3224         * client-src/selfcheck.c: Call to open() does not check for error.
3225         * client-src/sendbackup.c: Call to freopen() does not check for error.
3226         * client-src/sendsize.c: Call to open() does not check for error.
3227         * common-src/bsd-security.c: Call to open() does not check for error.
3228         * common-src/file.c: Call to open() does not check for error.
3229         * restore-src/amrestore.c: Calls to tape_open() do not always check
3230           return code.  open() is called with open flags set to 0
3231           (Call always fails with an EINVAL)
3232         * restore-src/restore.c: fopen() return error check  is "fopen() < 0".
3233           fopen returns a pointer and the proper check should be
3234           "fopen() == NULL".
3235           Call to open() does not check for error.
3236         * tape-src/tapeio.c: tape_open() is called here and other places with a
3237           variable number of arguments, and yet is not defined as a varargs
3238           function...
3239         * tape-src/tapeio.h: Prototype for tape_open.
3240
3241 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
3242         Patch by Paddy Sreenivasan <paddy@zmanda.com>
3243
3244         * client-src/sendsize.c: Log message changes.
3245         * server-src/taper.c: And an atexit function to detach shared memory.
3246           Trap some signal and detach shared memory.
3247
3248 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
3249
3250         * regex-src/regcomp.c (findmust): Initialized start to NULL.
3251
3252 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
3253         Patch by John R. Franks <jrfranks@zmanda.com>
3254
3255         * regex-src/cclass.h: Fixed to add missing braces and reformat long
3256           strings to fix in 80 columns.
3257         * regex-src/cname.h: Fixed by adding braces and tidying up code a bit.
3258         * regex-src/regcomp.c (p_ere): Initialized prevback and prevfwd to 0.
3259           ifdef out unused mcsub, mcin and mcfind functions.
3260           (findmust) Initialized newstart to NULL.
3261         * regex-src/regerror.c: Adds missing braces.
3262         * regex-src/regexec.c (nope): Use only in assert, so it is not only
3263           defined if NDEBUG is not defined.
3264
3265 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
3266         Patch by John R. Franks <jrfranks@zmanda.com>
3267
3268         * common-src/krb4-security.c (krb4_security_dummy): Rename from dummy,
3269           it is not static int.
3270         * common-src/krb5-security.c (krb5_security_dummy): Rename from dummy,
3271           it is not static int.
3272
3273 2005-10-13  Jean-Louis Martineau <martineau@zmanda.com>
3274
3275         * common-src/util.c (bind_portrange): New argument proto.
3276           Check for reserved port.
3277         * common-src/util.h (bind_portrange): New prototype.
3278         * common-src/bsd-security.c (bind_portrange): New prototype.
3279         * common-src/dgram.c: Add "udp" as argument to bind_portrange.
3280         * common-src/stream.c: Add "tcp" as argument to bind_portrange.
3281
3282 2005-10-12  Jean-Louis Martineau <martineau@zmanda.com>
3283
3284         * restore-src/amidxtaped.c (check_security_buffer): i is a socklen_t.
3285         * restore-src/amidxtaped.c (main): Remove i, fd, amrestore_path, pid,
3286           isafile, stat_tape, tapename, s, fp, ch and errstr variable.
3287
3288 2005-10-11  Ian Turner <ian@zmanda.com>
3289         Patch by  Jean-Louis Martineau <martineau@zmanda.com>
3290         
3291         * restore-src/amfetchdump.c: Remove unused variable debug.
3292         * restore-src/amidxtaped.c: Remove lock_logfile(), which is also 
3293           in restore.c.
3294         * restore-src/Makefile.am: Include libamanda twice, to fix build 
3295           on some machines.
3296
3297 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3298
3299         * restore-src/Makefile (noinst_HEADERS): Add restore.h.
3300         * restore-src/restore.c (search_tapes): Add the fourth argument to
3301           read_file_header.
3302
3303 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3304
3305         * server-src/conffile.c: dpcur.s_split_diskbuffer must be initialize
3306           to 0.
3307         * server-src/reporter.c (handle_partial): Set repdata to the result
3308           of handle_success.
3309         * server-src/taper.c: Set the first-file.
3310
3311 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3312
3313         * client-src/client_util.c, server-src/amcheck.c,
3314           server-src/reporter.c: Add missing type for arguments.
3315
3316 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3317
3318         * server-src/taper.c (tape_writer_side): detach_buffers on normal exit.
3319
3320 2005-10-10  Ian Turner <ian@zmanda.com>
3321
3322         * server-src/amtape.h: Apply tape-spanning patch by John Stange
3323           <building@cs.umd.edu> as ported to 2.5.0 by Ian Turner, with
3324           contributions by Christopher Pascoe <c.pascoe@itee.uq.edu.au>.
3325         * configure.in: Ditto
3326         * amplot/Makefile.am: Ditto
3327         * changer-src/Makefile.am: Ditto
3328         * client-src/Makefile.am: Ditto
3329         * common-src/Makefile.am: Ditto
3330         * common-src/amanda.h: Ditto
3331         * common-src/amfeatures.c: Ditto
3332         * common-src/amfeatures.h: Ditto
3333         * common-src/fileheader.c: Ditto
3334         * common-src/fileheader.h: Ditto
3335         * common-src/match.c: Ditto
3336         * common-src/tapelist.c: Ditto
3337         * common-src/tapelist.h: Ditto
3338         * example/amanda.conf.in: Ditto
3339         * man/Makefile.am: Ditto
3340         * recover-src/amrecover.c: Ditto
3341         * recover-src/amrecover.h: Ditto
3342         * recover-src/display_commands.c: Ditto
3343         * recover-src/extract_list.c: Ditto
3344         * restore-src/Makefile.am: Ditto
3345         * restore-src/amfetchdump.c: Ditto
3346         * restore-src/amfetchdump.h: Ditto
3347         * restore-src/amidxtaped.c: Ditto
3348         * restore-src/amrestore.c: Ditto
3349         * restore-src/restore.c: Ditto
3350         * restore-src/restore.h: Ditto
3351         * server-src/Makefile.am: Ditto
3352         * server-src/amadmin.c: Ditto
3353         * server-src/amindexd.c: Ditto
3354         * server-src/amoverview.pl.in: Ditto
3355         * server-src/amtoc.pl.in: Ditto
3356         * server-src/amverify.sh.in: Ditto
3357         * server-src/changer.c: Ditto
3358         * server-src/conffile.c: Ditto
3359         * server-src/conffile.h: Ditto
3360         * server-src/disk_history.c: Ditto
3361         * server-src/disk_history.h: Ditto
3362         * server-src/diskfile.c: Ditto
3363         * server-src/diskfile.h: Ditto
3364         * server-src/driver.c: Ditto
3365         * server-src/driverio.c: Ditto
3366         * server-src/find.c: Ditto
3367         * server-src/find.h: Ditto
3368         * server-src/holding.c: Ditto
3369         * server-src/holding.h: Ditto
3370         * server-src/logfile.c: Ditto
3371         * server-src/logfile.h: Ditto
3372         * server-src/planner.c: Ditto
3373         * server-src/reporter.c: Ditto
3374         * server-src/server_util.c: Ditto
3375         * server-src/server_util.h: Ditto
3376         * server-src/taper.c: Ditto
3377
3378 2005-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3379
3380         * server-src/taper.c: Change message: on new tape due to
3381
3382 2005-10-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3383         Patch by John R. Franks 
3384
3385         * common-src/amflock.c (main): Don't call safe_fd, it's not needed
3386           during configure.
3387         * configure.in: '#include <sys/types.h>' in the check
3388           'for Linux like scsi support (sg)'
3389
3390 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3391
3392         * client-src/amandad.c (writebuf): Call waitpid in the parent.
3393
3394 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3395
3396         * client-src/amandad.c (service_delete): Remove call to sleep.
3397         * common-src/bsd-security.c: Add bsdprintf. Add more debug.
3398           The handle is used as a string, instead of 2 int.
3399
3400 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3401
3402         * common-src/rsh-security.c: rshprintf should call dbprint.
3403         * common-src/ssh-security.c: rshprintf should call dbprint, add many
3404           rshprintf.
3405         * common-src/event.c: Add eventprintf, use it. Add debug_prefix_time
3406           to the log. 
3407
3408 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3409
3410         * common-src/stream.c: len is a socklen_t.
3411         * server-src/amindexd.c: Add socklen as a socklen_t.
3412         * restore-src/amidxtaped.c: Add socklen as a socklen_t.
3413         * tape-src/tapetype.c: Change printf format.
3414         * server-src/amlabel.c: Add a variable isa_zftape. init fd to -1.
3415         * server-src/dumper.c: Init outfd to -1.
3416         * common-src/file.c (areads_getbuf): First argument is const.
3417
3418 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3419
3420         * server-src/reporter.c: Don't trunk hostname/diskname in
3421           'FAILURE AND STRANGE DUMP SUMMARY' section.
3422
3423 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3424
3425         * server-src/chunker.c (main): Remove outfd.
3426
3427 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3428
3429         * server-src/conffile.c, server-src/diskfile.c, server-src/infofile.c,
3430           client-src/getfsent.c, common-src/statfs.c, common-src/token.c
3431           (main): Remove fd declaration.
3432
3433 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3434
3435         * client-src/runtar.c: 'e' and 'bdf' are only needed if GNUTAR.
3436
3437 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3438
3439         * common-src/sl.c (insert_sort_sl). Typo.
3440
3441 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3442
3443         * config/config.guess: Update from automake 1.9.5.
3444         * config/config.sub: Update from automake 1.9.5.
3445         * config/depcomp: Update from automake 1.9.5.
3446         * config/install-sh: Update from automake 1.9.5.
3447         * config/missing: Update from automake 1.9.5.
3448         * config/mkinstalldirs: Update from automake 1.9.5.
3449         * config/ltmain.sh: Update from libtool-1.5.16.
3450         * config/libtool.m4i: Update from libtool-1.5.16.
3451
3452 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3453
3454         * common-src/bsd-security.c: Fix small bug.
3455
3456 2005-09-22  John R. Jackson <jrj@purdue.edu>
3457
3458         * configure.in: If --without-server is specified, either on the
3459           command line or via config.site, make sure --without-restore
3460           is also in effect.  Avoids compilation errors if mismatched.
3461         * example/config.site: Document above.
3462
3463 2005-09-21  John R. Jackson <jrj@purdue.edu>
3464
3465         * server-src/getconf.c: Allow CLIENT_LOGIN to be retrieved via
3466           "amgetconf build.CLIENT_LOGIN".
3467
3468 2005-09-21  John R. Jackson <jrj@purdue.edu>
3469
3470         * server-src/amlabel.c: 'int fd' is only needed if HAVE_LINUX_ZFTAPE_H
3471           is defined.
3472
3473 2005-09-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3474
3475         * server-src/amlabel.c: 'int fd' is needed.
3476
3477 2005-09-20  John R. Jackson <jrj@purdue.edu>
3478
3479         * server-src/reporter.c: Fix minor typo noticed by Scott R. Burns
3480           <Scott.Burns@Netcontech.Com>.
3481
3482 2005-09-20  John R. Jackson <jrj@purdue.edu>
3483
3484         * common-src/file.c: Create safe_fd() to do common file descriptor
3485           safety operations at the start of every program.  In addition
3486           to closing everything from three on up that used to be done
3487           with explicit code, make sure stdin, stdout and stderr are
3488           open per a potential (but unlikely) security report from Ben
3489           Schwarz <bschwarz@EECS.berkeley.EDU>.
3490         * common-src/amanda.h: Ditto.
3491         * client-src/amandad.c: Ditto.
3492         * client-src/calcsize.c: Ditto.
3493         * client-src/getfsent.c: Ditto.
3494         * client-src/killpgrp.c: Ditto.
3495         * client-src/rundump.c: Ditto.
3496         * client-src/runtar.c: Ditto.
3497         * client-src/selfcheck.c: Ditto.
3498         * client-src/sendbackup.c: Ditto.
3499         * client-src/sendsize.c: Ditto.
3500         * client-src/versionsuffix.c: Ditto.
3501         * common-src/amflock.c: Ditto.
3502         * common-src/rsh-security.c: Ditto.
3503         * common-src/ssh-security.c: Ditto.
3504         * common-src/statfs.c: Ditto.
3505         * common-src/token.c: Ditto.
3506         * recover-src/amrecover.c: Ditto.
3507         * restore-src/amidxtaped.c: Ditto.
3508         * restore-src/amrestore.c: Ditto.
3509         * server-src/amadmin.c: Ditto.
3510         * server-src/amcheck.c: Ditto.
3511         * server-src/amcleanupdisk.c: Ditto.
3512         * server-src/amflush.c: Ditto.
3513         * server-src/amindexd.c: Ditto.
3514         * server-src/amlabel.c: Ditto.
3515         * server-src/amlogroll.c: Ditto.
3516         * server-src/amtape.c: Ditto.
3517         * server-src/amtrmidx.c: Ditto.
3518         * server-src/amtrmlog.c: Ditto.
3519         * server-src/chunker.c: Ditto.
3520         * server-src/conffile.c: Ditto.
3521         * server-src/diskfile.c: Ditto.
3522         * server-src/driver.c: Ditto.
3523         * server-src/getconf.c: Ditto.
3524         * server-src/infofile.c: Ditto.
3525         * server-src/planner.c: Ditto.
3526         * server-src/reporter.c: Ditto.
3527         * server-src/taper.c: Ditto.
3528         * server-src/dumper.c: Ditto plus remove incorrect chdir to hard
3529           coded "/tmp/amanda".
3530
3531 2005-09-20  John R. Jackson <jrj@purdue.edu>
3532
3533         * client-src/calcsize.c: Fix format string.
3534         * server-src/diskfile.c: Fix compiler warnings.
3535         * server-src/planner.c: Fix compiler warnings.
3536
3537 2005-09-20  John R. Jackson <jrj@purdue.edu>
3538
3539         * common-src/amanda.h: Add dbreopen() so debug file can be closed
3540           and then reopened if needed.
3541         * common-src/debug.c: Ditto.
3542         * client-src/runtar.c: Close the debug file (fd 10) around the
3543           exec of GNU tar.  Newer versions complain about stray file
3544           descriptors.
3545         * server-src/getconf.c: Use dbreopen() to create the debug file.
3546           Do not try to open config file unless needed (allows clients to
3547           use build.XXX/dbopen.XXX/dbclose.XXX).
3548
3549 2005-09-20  John R. Jackson <jrj@purdue.edu>
3550
3551         * client-src/sendbackup-dump.c: Ignore a new message from Solaris
3552           vxdump.
3553
3554 2005-09-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3555
3556         * common-src/bsd-security.c: Generate a unique event_id, thei
3557           proto_handle is not always unique.
3558
3559 2005-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3560
3561         * server-src/amverify.sh.in: Don't check for EOI, it's buggy.
3562
3563 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3564
3565         * server-src/driverio.c: Don't save history with size < 0.
3566
3567 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3568         Patch by Geert Uytterhoeven <geert@linux-m68k.org>
3569
3570         * server-src/planner.c: Don't use history with size < 0.
3571
3572 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3573         Patch Paul Bijnens <paul.bijnens@xplanation.com>
3574
3575         * server-src/planner.c(delay_dumps): Delay incremental dump also
3576           larger than tape.
3577
3578 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3579         Patch by Orion Poplawski <orion@cora.nwra.com>
3580
3581         * server-src/amoverview.pl.in: Add options -last, -num0 and -togo0.
3582         * man/amoverview.8: Document -last, -num0 and -togo0.
3583
3584 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3585         Patch by Orion Poplawski <orion@cora.nwra.com>
3586
3587         * server-src/driver.c: Make tape_length and tape_left unsigned long.
3588
3589 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3590         Patch by Stefan G. Weichinger <monitor@oops.co.at>
3591
3592         * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases.
3593
3594 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3595
3596         Bug found by John E Hein <jhein@timing.com>.
3597         * server-src/amadmin.c: Fix of by one with NB_HISTORY.
3598         * server-src/infofile.c:x: Fix of by one with NB_HISTORY.
3599
3600 2005-06-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3601         Patch by Jay Fenlason <fenlason@redhat.com>
3602
3603         * client-src/sendsize.c: Fix dbprintf call.
3604
3605 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3606             Stefan G. Weichinger <monitor@oops.co.at>
3607
3608         * example/amanda.conf.in: edited the default-value for the
3609                                   holdingdisk-usage to "use -100 Mb".
3610                                   The old value "use 290 Mb" didn't make much
3611                                   sense anymore.
3612
3613 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3614
3615         * server-src/amverifyrun.sh.in: Remove buggy space.
3616
3617 2005-05-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3618
3619         * server-src/amadmin.c: Add [--days <num>] argument to tape subcommand.
3620
3621 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3622
3623         * example/amanda.conf.in: Update from 2.4.5.
3624
3625 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3626
3627         * docs/*: New documentation from xml-docs.
3628         * docs/Makefile.am (pkgdata_DATA): Update for new files.
3629
3630 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3631
3632         * man/Makefile.am (COMMON_MAN_PAGES): Add amanda.conf.5.
3633
3634 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3635
3636         * man/*: Use man pages form xml-docs.
3637         * configure.in (AC_CONFIG_FILES): Remove all man pages.
3638         * man/Makefile.am (EXTRA_DIST): Add amadmin.8 amanda.8 amanda.conf.5 
3639           amcheck.8 amcheckdb.8 amcleanup.8 amdump.8 amflush.8 amgetconf.8
3640           amlabel.8 amoverview.8 amreport.8 amrecover.8 amrmtape.8 amstatus.8
3641           amtapetype.8 amtoc.8 amverify.8 amverifyrun.8
3642
3643 2005-05-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3644
3645         * common-src/rsh-security.c (net_read_fillbuf): Read only a packet,
3646           nothing more.
3647         * common-src/ssh-security.c (net_read_fillbuf): Read only a packet,
3648           nothing more.
3649         * common-src/rsh-security.c (conn_put): Don't kill the process, only do
3650           a wait with WNOHANG.
3651         * common-src/ssh-security.c (conn_put): Don't kill the process, only do
3652           a wait with WNOHANG.
3653
3654 2005-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3655
3656         * changer-src/chg-zd-mtx.sh.in: Improve handling of
3657           "Unknown Storage Element Loaded".
3658
3659 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3660         - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052
3661
3662         * server-src/amverifyrun.sh.in: Filter changer log file.
3663
3664 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3665
3666         * server-src/amcheck.c: Improve messages.
3667
3668 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3669
3670         * client-src/sendsize.c (generic_calc_estimates): Use amname instead
3671           of dirname in message.
3672
3673 2005-03-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3674
3675         * server-src/conffile.h: Rename getcont_unit_divisor to
3676           getconf_unit_divisor.
3677         * server-src/amadmin.c: Use getconf_unit_divisor.
3678         * server-src/amcheck.c: Use getconf_unit_divisor.
3679         * server-src/conffile.c: Use getconf_unit_divisor.
3680         * server-src/conffile.c (unit_divisor): Init to 1.
3681         * server-src/reporter.c: Use getconf_unit_divisor. The mb macro always
3682           divide by 1024. Add the du macro. Use mb or du where appropriate.
3683
3684 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3685
3686         * server-src/infofile.h (history_t): Add secs field.
3687         * server-src/infofile.c (read_txinfofile): Parse info file with secs
3688           in history.
3689         * server-src/infofile.c (write_txinfofile): Write secs in history.
3690         * server-src/driverio.c (update_info_dumper): Update secs in history.
3691
3692 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3693
3694         * server-src/planner.c: Improve server estimate.
3695         * server-src/planner.c: Write server estimate like others estimate.
3696
3697 2005-02-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3698
3699         * server-src/amstatus.pl.in: last_level is negative, on new disk.
3700
3701 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3702
3703         * server-src/amstatus.pl.in: Use '-?' to match negative values
3704           instead of '-*'.
3705
3706 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3707         Patch by Orion Poplawski <orion@cora.nwra.com>
3708
3709         * server-src/amoverview.pl.in: Print the total number of level 0
3710           dumps for each disk and the number of runs until the last level 0
3711           dump will be overwritten.
3712
3713 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3714         Patch by Phil Homewood <pdh@snapgear.com>
3715
3716         * server-src/amoverview.pl.in: Add -skipmissed option.
3717
3718 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3719
3720         * server-src/driver.c: Print the chunksize to the log.
3721
3722 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3723
3724         * client-src/calcsize.c: Print estimate to STDERR.
3725         * client-src/sendsize.c (generic_calc_estimates): Read calcsize result,
3726           and send it to amandad. Write debuging message.
3727
3728 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3729         Patch by Franz G. Fischer
3730
3731         * server-src/conffile.c: Adds a value type LONG and a val_t.l long
3732           union member and changes get_number() to return long and
3733           get_simple() to fill val_t.l if called for a long value.  The
3734           get_simple() calls have been changed to LONG for typetype_t.blocksize
3735           typetype_t.length, typetype_t.filemark, holdingdisk_t.disksize and
3736           holdingdisk_t.chunksize.
3737
3738 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3739
3740         * server-src/amdump.sh.in: Redirect in append mode.
3741         * server-src/driver.c: Set stdout and stderr to not buffered.
3742         * server-src/planner.c: Set stderr to not buffered.
3743           Print 'setup_estimate:' on one line.
3744         * server-src/amstatus.pl.in: Parse new 'setup_estimate:' line.
3745
3746 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3747
3748         * client-src/calcsize.c: Improve estimate for sparse file and count
3749           space for filenames.
3750
3751 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3752
3753         * server-src/planner.c: Improve message if no incremental estimate.
3754
3755 2004-12-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3756         Patch by Christopher Pascoe <c.pascoe@itee.uq.edu.au>
3757
3758         * common-src/match.c (match_glob, match_tar): Don't amfree(regex)
3759           before calling error().
3760
3761 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3762
3763         * server-src/driver.c (startaflush): Use ALGO_SMALLEST if nothing fit.
3764
3765 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3766
3767         * server-src/driver.c: Typo.
3768
3769 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3770
3771         * restore-src/amrestore.c: Should now work correctly with empty file.
3772         * server-src/amverify.sh.in: Parse "End-of-Information detected."
3773           message from amrestore.
3774
3775 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3776
3777         * server-src/driver.c: tape_left should not become negative.
3778
3779 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3780         Patch by Orion Poplawski <orion@cora.nwra.com>
3781
3782         * server-src/diskfile.c: Parse negative spindle (-1).
3783
3784 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3785
3786         * server-src/amadmin.c: Balance subcommand use displayunit.
3787         * server-src/amcheck.c: Small cleanup.
3788
3789 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3790
3791         * restore-src/amrestore.c: Undo patch from 2004-11-11, it break
3792           the file: dirver.
3793
3794 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3795
3796         * server-src/amstatus.pl.in: Remove trace.
3797
3798 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3799
3800         * server-src/diskfile.c: Compilation fix.
3801
3802 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3803
3804         * server-src/conffile.c: Parse displayunit,
3805           new fonction getcont_unit_divisor().
3806         * server-src/conffile.h: Prototype of getcont_unit_divisor().
3807         * server-src/amcheck.c: Use displayunit to display holding disk size.
3808         * server-src/amstatus.pl.in: Use displayunit to display dump size.
3809         * server-src/reporter.c: use displayunit to display dump size.
3810         * Document displayunit.
3811
3812 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3813
3814         * server-src/reporter.c: Change 'Daily' for 'Incr.'.
3815
3816 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3817
3818         * server-src/amstatus.pl.in Fix for level -1.
3819
3820 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3821         Patch by Daniel Widyono <widyono@seas.upenn.edu>
3822
3823         * changer-src/chg-zd-mtx.sh.in: Fix for library with barcode.
3824
3825 2004-11-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3826
3827         * restore-src/amrestore.c: Read empty file.
3828
3829 2004-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3830
3831         * tape-src/tapetype.c: Use new tape.
3832
3833 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3834
3835         * server-src/amstatus.pl.in: Display partial estimate.
3836
3837 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3838
3839         * server-src/diskfile.c (read_diskline): A spindle must be numerical.
3840
3841 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3842
3843         * server-src/holding.c (rename_tmp_holding): Always rename files.
3844
3845 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3846
3847         * server-src/driver.c: Print message when too many retry.
3848         * server-src/amstatus.pl.in: Detect a failed dump after too many retry.
3849         * amplot/amplot.awk: Parse these message.
3850
3851 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3852
3853         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
3854           if dumper returns DONE and taper returns TRYAGAIN.
3855
3856 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3857
3858         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
3859           if dumper returns TRYAGAIN and taper returns DONE.
3860
3861 2004-10-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3862
3863         * server-src/amflush.c: Don't start a driver if nothing to flush.
3864
3865 2004-10-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3866         Patch by Eric Siegerman <erics@telepres.com>
3867
3868         * example/3hole.ps: Fix for multiple tape.
3869
3870 2004-10-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3871
3872         * server-src/amverify.sh.in: Terminate if no tape online.
3873
3874 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3875
3876         * server-src/amadmin.c (main): Call check_dumpuser() as soon as posible.
3877
3878 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3879
3880         * server-src/conffile.c (getconf_byname): Special case for typ == BOOL.
3881
3882 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3883
3884         * server-src/planner.c (promote_hills): Use dumpcycle instead of
3885           tapecycle.
3886         * example/amanda.conf.in: Remove warning for tapecyle set to inf.
3887
3888 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3889
3890         * server-src/amadmin.c (balance): Don't core dump if DUMPCYLE is too
3891           big.
3892
3893 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3894
3895         * tape-src/tapetype.c: New -o option, doesn't overwrite amanda
3896           tape without -o.
3897         * man/amtapetype.8.in: Document new -o option.
3898
3899 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3900
3901         * server-src/amstatus.pl.in: Works with failed dump to tape.
3902
3903 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3904
3905         * client-src/sendbackup-gnutar.c (end_backup): Write warning message
3906           in not fatal error.
3907         * server-src/dumper.c (process_dumpline): Parse warning message.
3908         * server-src/reporter.c (handle_strange): Print warning message in
3909           the STRANGE summary.
3910
3911 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3912
3913         * server-src/driverio.c (free_serial): Set stable[s].dp to NULL.
3914         * server-src/driverio.c (disk2serial): Check that stable[s].dp == NULL.
3915
3916 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3917         Patch by Joe Rhett <jrhett@isite.net>
3918
3919         * common-src/alloc.c (safe_env): Keep SYSTEMROOT if __CYGWIN__.
3920
3921 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3922         Patch by Orion Poplawski <orion@cora.nwra.com>
3923
3924         * server-src/conffile.c (copy_dumptype): Copy maxpromoteday.
3925
3926 2004-08-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3927
3928         * client-src/selfcheck.c (check_disk): More check for CALCSIZE.
3929
3930 2004-08-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3931
3932         * common-src/amfeatures.h (fe_selfcheck_calcsize): New feature.
3933         * common-src/amfeatures.c (am_init_feature_set): Set
3934           fe_selfcheck_calcsize.
3935         * client-src/selfcheck.c: Check if calcsize binary is available if
3936           it is needed.
3937         * server-src/amcheck.c (start_host): Call selfcheck with CALCSIZE
3938           if it support fe_selfcheck_calcsize.
3939
3940 2004-08-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3941
3942         * man/amanda.8.in: Document 'estimate' dumptype option.
3943
3944 2004-08-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3945
3946         * server-src/amrmtape.sh.in: Understand history info.
3947
3948 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3949
3950         * server-src/driver.c: Typo.
3951
3952 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3953
3954         * server-src/amstatus.pl.in: Parse CONTINUE and RQ-MORE-DISK line,
3955           print if a dump is waiting for holding disk space (roomq).
3956
3957 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3958
3959         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
3960           Don't call free_serial().
3961         * server-src/driver.c (dumper_result): Call free_serial_dp(dp).
3962         * server-src/driverio.c (dumper_cmd): Remove CONTINUE cmd.
3963         * server-src/driverio.c (chunker_cmd): Print serial number for CONTINUE
3964           command.
3965         * server-src/driverio.c (disk2serial): Try to find a 'dp' before
3966           allocating a new serial.
3967         * server-src/driverio.c (free_serial_dp): New function to remove the
3968           serial for a dp.
3969         * server-src/driverio.h (free_serial_dp): Prototype.
3970         * server-src/chunker.c (databuf_flush): Read serial number for CONTINUE
3971           command.
3972
3973 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3974
3975         * server-src/planner.c (getsize): Do SERVER estimate, call sendsize with
3976           CALCSIZE estimate.
3977
3978 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3979
3980         * client-src/calcsize.c: Support exclude and include like gnutar,
3981           change in program argument.
3982         * client-src/sendsize.c: Execute calcsize as requested.
3983         * common-src/amfeatures.h (fe_calcsize_estimate): New feature.
3984         * common-src/amfeatures.c (am_init_feature_set): set
3985           fe_calcsize_estimate.
3986         * server-src/amcheck.c (start_host): Check if client support CALCSIZE
3987           estimate.
3988
3989 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3990
3991         * server-src/conffile.h (ES_CLIENT, ES_SERVER, ES_CALCSIZE): New define
3992           for estimate type.
3993         * server-src/conffile.h (dumptype_t): Add 'estimate' and 's_estimate'
3994         * server-src/conffile.c (get_estimate): New function to parse estimate
3995           type, ....
3996         * server-src/diskfile.c (read_diskline): Copy 'estimate'.
3997         * server-src/diskfile.h (disk_t): Add 'estimate'.
3998         * server-src/amadmin.c (disklist_one): Print estimate type.
3999
4000 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4001
4002         * common-src/match.c (match_tar, tar_to_regex): New fonction similar
4003           to the exclude option of tar.
4004         * common-src/amanda.h (match_tar, tar_to_regex): Prototype.
4005
4006 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4007
4008         * server-src/infofile.h (history_t): new struct.
4009         * server-src/infofile.h (info_t): Add a history_t.
4010         * server-src/infofile.c (read_txinfofile): Parse history data.
4011         * server-src/infofile.c (write_txinfofile): Print history data.
4012         * server-src/amadmin.c (export_one): export history data.
4013         * server-src/amadmin.c (import_one): import history data.
4014         * server-src/driverio.c (update_info_dumper): update history data.
4015
4016 2004-05-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4017         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4018
4019         * server-src/planner.c: Log L_DISK for autoflush disk.
4020
4021 2004-05-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4022
4023         * server-src/planner.c (handle_result): Add dp to pestq at the
4024           correct place.
4025
4026 2004-04-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4027
4028         * common-src/amanda.h: #include "amanda-int.h" only if !CONFIGURE_TEST.
4029
4030 2004-04-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4031
4032         * config/acinclude.m4i (AX_CREATE_STDINT_H) : New macro.
4033         * configure.in: Use AX_CREATE_STDINT_H(common-src/amanda-int.h).
4034         * common-src/amanda.h: include "common-src/amanda-int.h".
4035         * changer-src/scsi-cam.c: Change u_int32_t for uint32_t.
4036
4037 2004-04-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4038
4039         * configure.in: Fix for automake 1.8.4.
4040         * config/acinclude.m4i: Fix for automake 1.8.4.
4041
4042 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4043
4044         * configure.in: Result of autoupdate.
4045
4046 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4047
4048         * config/config.guess: Update from automake 1.8.
4049         * config/config.sub: Update from automake 1.8.
4050         * config/depcomp: Update from automake 1.8.
4051         * config/install-sh: Update from automake 1.8.
4052         * config/missing: Update from automake 1.8.
4053         * config/mkinstalldirs: Update from automake 1.8.
4054         * config/ltmain.sh: Update from libtool-1.5.6.
4055         * config/libtool.m4i: Update from libtool-1.5.6.
4056
4057 2004-04-26  Marc Mengel <mengel@fnal.gov>
4058
4059         * tape-src/output-rait.c: Verify reads correctly.
4060
4061 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4062
4063         * server-src/driver.c (continue_dumps): Fix deadlock if holding disk
4064         fill up when in degraded mode.
4065
4066 2004-04-23  Eric Siegerman <eric_97@pobox.com>
4067
4068         Bug fix: amflush would run, and consume a tape, even if there
4069         were no Amanda directories waiting to be flushed:
4070         * common-src/sl.c (is_empty_sl): New function to test
4071           whether a list is empty.
4072         * common-src/sl.h (is_empty_sl): Prototype.
4073         * server-src/amflush.sh (main): Use is_empty_sl(),
4074           rather than ==NULL, to test emptiness of datestamp_list.
4075
4076 2004-04-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4077
4078         * server-src/planner.c (setup_estimate): Typo.
4079
4080 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4081
4082         Allow bumpsize, bumppercent, bumpdays and bumpmult to be in a dumptype.
4083         * server-src/conffile.c: Parse.
4084         * server-src/conffile.h: Define.
4085         * server-src/amadmin.c (disklist_one): Use.
4086         * server-src/diskfile.c (read_diskline): Initialize.
4087         * server-src/diskfile.h: Define.
4088         * server-src/planner.c: Use.
4089         * man/amanda.8.in: Document.
4090
4091 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4092         Fix by Paul Bijnens <paul.bijnens@xplanation.com>
4093
4094         * server-src/planner.c (setup_estimate): Only ask for level 0 estimate
4095           if strategy is noinc.
4096
4097 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4098         Documentation from Paul Bijnens <paul.bijnens@xplanation.com>
4099
4100         * man/amoverview.8.in: Document results.
4101
4102 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4103         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4104
4105         * server-src/amoverview.pl.in: Print last two characters.
4106
4107 2004-04-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4108
4109         * changer-src/chg-disk.sh.in: Fix for sh compatibility.
4110
4111 2004-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4112         Fix by John Koyle <jkoyle@rfpdepot.com>
4113
4114         * common-src/dgram.c: Fix EAGAIN on Linux.
4115
4116 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4117
4118         * server-src/amadmin.c (bumpsize): Typo.
4119
4120 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4121
4122         New bumppercent global option.
4123         * example/amanda.conf.in: Document it.
4124         * man/amanda.8.in: Document it.
4125         * server-src/amadmin.c (bumpsize): Write it.
4126         * server-src/conffile.c: Parse it.
4127         * server-src/conffile.h: Define It.
4128         * server-src/planner.c (bump_thresh): New size_level_0 parameter,
4129           use the new bumppercent option.
4130
4131 2004-04-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4132
4133         * server-src/amadmin.c: Rename host_t to amhost_t.
4134         * server-src/amcheck.c: Ditto.
4135         * server-src/amindexd.c: Ditto.
4136         * server-src/diskfile.c: Ditto.
4137         * server-src/diskfile.h: Ditto.
4138         * server-src/driver.c: Ditto.
4139         * server-src/planner.c: Ditto.
4140
4141 2004-03-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4142
4143         * amplot/amplot.awk: Parse "driver: tape size" line.
4144
4145 2004-03-22  Stefan G. Weichinger <monitor@oops.co.at>
4146
4147         * server-src/amcheck.c (start_host): Added warning for hostname
4148           localhost.
4149         * docs/TOP-TEN-QUESTIONS: added note about localhost-warning.
4150
4151 2004-03-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4152
4153         * docs/Makefile.am (pkgdata_DATA): Add TOP-TEN-QUESTIONS.
4154
4155 2004-03-18  Stefan G. Weichinger <monitor@oops.co.at>
4156
4157         * docs/TOP-TEN-QUESTIONS: New file.
4158
4159 2004-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4160
4161         * server-src/reporter.c (handle_success): Set stats[i].coutsize
4162           correctly.
4163         * server-src/taper.c: Do not subtract tt_blocksize_kb from filesize.
4164
4165 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4166
4167         * common-src/ssh-security.c: New ssh security driver.
4168         * common-src/Makefile.am (libamanda_la_SOURCES): Add ssh-security.c.
4169         * common-src/security.c: Add ssh security driver.
4170         * configure.in: Add --with-ssh-security. Define SSH_SECURITY.
4171
4172 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4173
4174         * server-src/amcheck.c: Do labelstr check in correct order.
4175
4176 2004-03-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4177
4178         Use only one time event for all dumpers, no wait event.
4179         start_some_dumps is called everytime a dumper or taper finish.
4180         * server-src/driver.c (dumpers_ev_time): New global event.
4181         * server-src/driver.c (start_some_dumps): Remove dumper argument,
4182           can start many dump.
4183         * server-src/driver.c (dumper_result): Call start_some_dumps instead
4184           of event_wakeup.
4185         * server-src/driver.c (handle_idle_wait): Remove function.
4186         * server-src/driver.c (handle_dumpers_time): new handle for
4187           dumpers_ev_time, it call start_some_dumps.
4188         * server-src/driverio.h (dumper_t): Remove ev_wait.
4189         * server-src/driverio.c (startup_dump_process): Don't set ev_wait.
4190
4191 2004-03-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4192
4193         * common-src/fileheader.c (print_header): Fix fprintf use.
4194         * client-src/amqde.c (parse_exclude_path): Fix = by ==.
4195         * common-src/protocol.c (s_repwait): Fix compiler warning.
4196         * common-src/rsh-security.c (runrsh): Fix compiler warning.
4197
4198 2004-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4199
4200         * common-src/pipespawn.c (pipespawn): Remove passwdvar and passwdfd.
4201
4202 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4203         Reported by Allen Liu <allen@bellglobal.com>
4204
4205         * server-src/amverifyrun.sh.in: Replace '-e' test by '-f'.
4206
4207 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4208
4209         * server-src/amcheck.c: Verify the tape is listed in the tapelist file.
4210         * server-src/taper.c: Ditto
4211
4212 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4213
4214         * server-src/driver.c (dump_schedule): Print complete name.
4215
4216 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4217
4218         The estimate send a PREP (partial REP) packet after each estimate.
4219         * client-src/amandad.c: Send PREP packet if sendsize.
4220         * common-src/amfeatures.c (am_init_feature_set): Add
4221           fe_partial_estimate.
4222         * common-src/amfeatures.h (am_feature_e): Add fe_partial_estimate.
4223         * common-src/packet.c (pktypes[]): Add PREP.
4224         * common-src/packet.h (pktype_t): Add P_PREP.
4225         * common-src/protocol.c (action_t): Add A_CONTPEND.
4226         * common-src/protocol.c: Handle P_PREP packet.
4227         * server-src/amstatus.pl.in: Parse "got partial result" line.
4228         * server-src/planner.c: Handle P_PREP packet.
4229
4230 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4231         Reported by Jason Brooks <jason.brooks@windriver.com>
4232
4233         * server-src/reporter.c: Remove duplicate setting of cd to
4234           &ColumnData[Level].
4235
4236 2004-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4237         Patch by Philippe Charnier <charnier@xp11.frmug.org>
4238
4239         * server-src/amtrmidx.c: Add '\n'.
4240
4241 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4242
4243         * recover-src/set_commands.c (cd_glob): Fix memory leak.
4244
4245 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4246
4247         * recover-src/set_commands.c (cd_dir, set_directory): Fix memory leak.
4248         * recover-src/uscan.l: Fix double amfree.
4249
4250 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4251
4252         * server-src/driver.c: Build holding disk name with timestamp.
4253         * server-src/holding.c (is_datestr): Check also for timestamp.
4254         * server-src/planner.c: Flush today's dump with autoflush.
4255         * server-src/find.c: Find holding disk with timestamp.
4256         * server-src/find.h (find_result_t): Add timestamp field.
4257
4258 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4259
4260         * changer-src/chg-zd-mtx.sh.in: Works if all slot and tape are full.
4261
4262 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4263
4264         * server-src/amverifyrun.sh.in: Do not execute amverify if no tape
4265           to verify.
4266
4267 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4268
4269         * server-src/amdump.sh.in: Do not redirect to /dev/null.
4270
4271 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4272
4273         * config/acinclude.m4i: Define CF_WAIT_INT.
4274         * configure.in: Call CF_WAIT_INT.
4275         * common-src/amanda.h: Try to make waitpid doesn't warn.
4276
4277 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4278
4279         * Makefile.am (EXTRA_DIST): Add contrib/mkamandisk.
4280
4281 2004-01-29  Christoph Pospiech <pospiech@de.ibm.com>
4282
4283         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-iomega.pl.
4284         * changer-src/Makefile.am (libexec_SCRIPTS) Add chg-iomega.
4285         * changer-src/chg-iomega.pl.in: New changer script.
4286         * docs/TAPE.CHANGERS: Document chg-iomega.
4287         * contrib/mkamandisk: Script to format iomega disk.
4288
4289 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4290
4291         * restore-src/amidxtaped.c (scan_init): Remove the log file if it exit.
4292
4293 2004-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4294
4295         * configure.in: Set GNUTAR_LISTED_INCREMENTAL_DIRX.
4296         * example/amanda.conf.in: Update record documentation.
4297         * man/amanda.8.in: Update record documentation.
4298
4299 2004-01-14  Stefan G. Weichinger <monitor@oops.co.at>
4300
4301         * docs/INSTALL: Add config for xinetd.
4302
4303 2004-01-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4304
4305         * server-src/planner.c (handle_result): Detect bad estimate (-1).
4306         * server-src/planner.c (analyze_estimate): Don't schedule level
4307           if the estimate is bad.
4308
4309 2003-12-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4310
4311         * docs/HOWTO-FILE-DRIVER: New file.
4312         * docs/TAPE.CHANGERS: Explain chg-disk.
4313         * docs/Makefile.am (pkgdata_DATA): add HOWTO-FILE-DRIVER.
4314
4315 2003-12-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4316
4317         * docs/SYSTEM.NOTES: Add a note about sendsize coredump on AIX.
4318
4319 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4320         Patch by Jean-Christian SIMONETTI <simonetti@echo.fr>
4321
4322         * changer-src/chg-disk.sh.in: New changer script.
4323         * changer-src/Makefile.am (libexec_SCRIPTS): Add chg-disk.
4324         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-disk.sh.
4325
4326 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4327
4328         * tape-src/tapetype.c: extern int optind.
4329         * tape-src/tapeio.c: extern int optind.
4330
4331 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4332         Patch by C.Scheeder <christoph.scheeder@scheeder.de>
4333
4334         * changer-src/sense.c (SenseType): Add "DAT AutoChanger" and "C1537A".
4335
4336 2003-11-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4337
4338         * server-src/driver.c: Print the tape size.
4339         * server-src/amstatus.pl.in: print % of tape use.
4340
4341 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4342
4343         * server-src/conffile.c (copy_dumptype): Copy in/exclude only if seen.
4344
4345 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4346
4347         * server-src/reporter.c (output_tapeinfo): Fix printing of new tape.
4348
4349 2003-11-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4350
4351         * server-src/amcheck.c (taperscan_slot): Deal with label not in
4352           tapelist case.
4353         * server-src/amtape.c (taperscan_slot): Ditto.
4354         * server-src/taper.c (taperscan_slot): Ditto.
4355
4356 2003-11-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4357
4358         * server-src/driver.c (handle_taper_result): Always call
4359           continue_dumps() in TRYAGAIN case.
4360
4361 2003-11-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4362
4363         * changer-src/chg-chio.pl.in (getTapeStatus): Set $drives[$num] to 0
4364         if no tape in drive.
4365
4366 2003-11-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4367
4368         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-AFS.
4369
4370 2003-11-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4371         Patch by Mitch Collinsworth <mitch@ccmr.cornell.edu>
4372
4373         * client-src/selfcheck.c: Skip accessibility check for AFS entries.
4374         * docs/HOWTO-AFS: New file.
4375
4376 2003-11-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4377
4378         * server-src/amadmin.c (tape): Display the next new tapes.
4379         * server-src/reporter.c (output_tapeinfo): Ditto.
4380
4381 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4382
4383         * docs/Makefile.am (pkgdata_DATA): Add chg-scsi.notes.
4384
4385 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4386
4387         * server-src/amcheck.c (taperscan_slot): Set found=3 if new tape.
4388         * server-src/amcheck.c (taper_scan): Handle found==3.
4389         * server-src/amtape.c (taperscan_slot): Set found=3 if new tape.
4390         * server-src/amtape.c (taper_scan): Handle found==3.
4391         * server-src/taper.c (taperscan_slot): Set found=3 if new tape.
4392         * server-src/taper.c (taper_scan): Handle found==3.
4393
4394 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4395
4396         * server-src/amcheck.c: Use stralloc(optarg).
4397         * tape-src/ammt.c: Use stralloc(optarg).
4398         * tape-src/tapetype.c: Use stralloc(optarg).
4399
4400 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4401         Patch by Jay Fenlason <fenlason@redhat.com>
4402
4403         * server-src/dumper.c: Don't set SIGCHLD to SIG_IGN.
4404
4405 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4406         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
4407
4408         * client-src/sendbackup-gnutar.c (AM_SIZE_RE): Fix regex for samba3.
4409
4410 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4411
4412         * server-src/amadmin.c (find): Call find_dump to allow dynamic disklist.
4413         * server-src/amindexd.c: Call find_dump to allow dynamic disklist.
4414         * server-src/amtrmidx.c:  Call find_dump to allow dynamic disklist.
4415         * server-src/diskfile.c (add_disk): Set device and todo.
4416         * server-src/find.c: Build disklist dynamicaly from log files.
4417         * server-src/find.h (find_dump): New prototype.
4418
4419 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4420
4421         * server-src/amlogroll.c: set_pname("amlogroll").
4422
4423 2003-10-24  Todd M. Kover <kovert@omniscient.com>
4424
4425         * add amqde for "quick and dirty estimates" under gnutar (program
4426           that will traverse the filesystem rather than invoke gnutar).
4427           controlled via configure option --with-qde.  This really wants to
4428           be configured in the server.
4429
4430 2003-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4431
4432         * server-src/amverify.sh.in: Fix usage message.
4433         * common-src/fileheader.c (print_header): fprintf to outf.
4434         * server-src/tapefile.c (lookup_last_reusable_tape): Check for
4435           tp->datestamp > 0.
4436         * server-src/amadmin.c (disklist_one): Don't print ':' on device line.
4437
4438 2003-10-23  Todd Kover <kovert@omniscient.com>
4439
4440         * make amrecover link against readline rather than libamanda so
4441           only amrecover would require the shared library (if it's found)
4442
4443 2003-10-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4444         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4445
4446         * client-src/amandates.c (finish_amandates): Call error() if the
4447           close of amdf fail.
4448         * common-src/amflock.c (create_lock): Return -1 if the close of f fail.
4449         * common-src/amflock.c (read_lock): Don't set f to NULL if the close
4450           fail.
4451         * server-src/tapefile.c (write_tapelist): Return 1 if the close of
4452           tapef fail.
4453
4454 2003-10-14  John R. Jackson (jrj@purdue.edu)
4455
4456         * docs/SYSTEM.NOTES: Add FreeBSD 5.1 note about setting the UDP packet
4457           size, compliments of Nicolas Ecarnot <nicolas.ecarnot@accim.com>.
4458
4459 2003-10-14  John R. Jackson (jrj@purdue.edu)
4460
4461         * client-src/sendsize.c: Handle case where PID's get re-used.
4462
4463 2003-10-14  John R. Jackson (jrj@purdue.edu)
4464
4465         * configure.in: Need to check for sys/gscdds.h on AIX to enable
4466           SCSI changer.
4467
4468 2003-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4469
4470         * common-src/genversion.c (prundefvar): New function to print an
4471           undefined variable.
4472         * common-src/genversion.c: Print undefined variable.
4473         * server-src/amcheck.c: Improve message for no LPRCMD defined.
4474
4475 2003-07-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4476
4477         * restore-src/amidxtaped.c: Don't clea re_label before checking
4478           for the changer.
4479
4480 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4481         Patch by Scott Mcdermott <smcdermott@questra.com>
4482
4483         * changer-src/chg-zd-mtx.sh.in (initial_poll_delay): New config
4484           variable to add a pause after a tape loading.
4485
4486 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4487         Fix by John E. Hein <jhein@timing.com>
4488
4489         * changer-src/chg-manual.sh.in: Quote @EGREP@.
4490         * changer-src/chg-null.sh.in: Quote @EGREP@.
4491
4492 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4493
4494         * amplot/amplot.sh.in: Remove files before runnig amplot.awk.
4495         * amplot/amplot.awk: Parse 'flush line', fix tape_wait line.
4496         * server-src/driver.c (read_flush): Write a 'flush size' to the
4497           debug file.
4498
4499 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4500
4501         * changer-src/chg-chio.pl.in: Fix next/prev command.
4502
4503 2003-07-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4504         patch by Paul Bijnens <paul.bijnens@xplanation.com>
4505
4506         * client-src/client_util.c (add_include): Count include with 2 /,
4507           Fix descriptor leak.
4508
4509 2003-06-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4510
4511         * server-src/amstatus.pl.in: Fix print spacing for idle dumpers.
4512
4513 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4514
4515         * server-src/holding.c: Fix compiler error.
4516         * server-src/planner.c: Use snprintf.
4517
4518 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4519         patch by Paul Bijnens <paul.bijnens@xplanation.com>
4520
4521         * tape-src/tapetype.c: Avoid a numerical overflow for large tape
4522           capacities.
4523
4524 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4525
4526         * server-src/amstatus.pl.in: Fix to failed tape.
4527
4528 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4529
4530         * server-src/planner.c (delay_dumps): Delay not delay forced full
4531           before forced full.
4532
4533 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4534
4535         * changer-src/chg-zd-mtx.sh.in: Log the changer file used.
4536
4537 2003-06-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4538
4539         * server-src/amverify.sh.in: Do not advance to next tape.
4540
4541 2003-06-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4542         patch by Eric Siegerman <eric_97@pobox.com>
4543
4544         * server-src/planner.c: Make promote_hills() honour maxpromotedays.
4545
4546 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4547
4548         * changer-src/scsi-bsd.c: Use pDev[DeviceFD].fd instead of DeviceFD.
4549         * changer-src/scsi-hpux_new.c:Use pDev[DeviceFD].fd instead of DeviceFD.
4550         * changer-src/scsi-linux.c: Use pDev[ip].fd instead of DeviceFD.
4551
4552 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4553
4554         * client-src/noop.c: #include "util.h".
4555
4556 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4557
4558         * server-src/amflush.c: Implement new -b and -s options.
4559         * man/amflush.8.in: Document it.
4560
4561 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4562
4563         * server-src/driver.c (dump_to_tape): Don't go in degraded mode if
4564           taper reply DONE.
4565
4566 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4567
4568         * tape-src/output-rait.c: Don't call waitpid if we didn't fork.
4569
4570 2003-06-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4571
4572         * server-src/amverify.sh.in: Use @MAXTAPEBLOCKSIZE@ instead of 32.
4573
4574 2003-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4575         Bug reported by Sven Rudolph <rudsve@drewag.de>
4576
4577         * server-src/holding.c (mkholdingdir): New function to create a holding
4578           directory.
4579         * server-src/holding.h (mkholdingdir): Prototype.
4580         * server-src/driver.c: Use mkholdingdir;
4581         * server-src/chunker.c: Call mkholdingdir before opening a file for
4582           writing.
4583
4584 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4585         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4586
4587         * server-src/amstatus.pl.in: Fix for missing amdump.1 or amflush.1.
4588
4589 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4590         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4591
4592         * server-src/amstatus.pl.in: If nothing is active, it now gives the
4593           status of the last run (amdump or amflush).
4594         * man/amstatus.8.in: Document it.
4595
4596 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4597
4598         * tape-src/output-file.c (check_online): Write error if opendir failed.
4599
4600 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4601         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4602
4603         * server-src/amoverview.pl.in: Use 'amadmin <conf> disklist' instead
4604           of parsing the disklist file.
4605
4606 2003-05-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4607
4608         * server-src/tapefile.c (read_tapelist,parse_tapeline): Fix for
4609           previous patch.
4610
4611 2003-05-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4612
4613         * common-src/versuff.c.in: Use @VERSION_SUFFIX@.
4614
4615 2003-05-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4616
4617         * example/amanda.conf.in: Add more amrecover_changer doc.
4618         * man/amanda.8.in: Add more amrecover_changer doc.
4619         * man/amrecover.8.in: Add more amrecover_changer doc.
4620
4621 2003-05-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4622
4623         * server-src/tapefile.c (read_tapelist): Ignore blank line.
4624         * server-src/tapefile.c (parse_tapeline): Newer status parameter, set
4625           it to '1' when reading blank line.
4626
4627 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4628
4629         * configure.in (AC_CHECK_HEADERS): Enleve linux/ftape-header-segment.h,
4630           linux/ftape-vendors.h et linux/ftape.h.
4631
4632 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4633         Patch by Darin Dugan <dddugan@iastate.edu>
4634
4635         * server-src/amcheck.c: Change subject in email if no error.
4636
4637 2003-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4638
4639         * common-src/error.c (output_error_message): Always prepend program
4640           name.
4641
4642 2003-04-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4643
4644         * server-src/amstatus.pl.in: Fix for estimate disk.
4645
4646 2003-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4647
4648         * server-src/taper.c: Read holding file correctly if blocksize != 32k.
4649
4650 2003-04-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4651         New file by Robert C Dege <RDege@northropgrumman.com>
4652
4653         * configure.in: Find mcutil binary.
4654         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-mcutil.sh and
4655           example/chg-mcutil.conf.
4656         * changer-src/Makefile (libexec_SCRIPTS): Add chg-mcutil.
4657         * changer-src/chg-mcutil.sh.in: New file.
4658         * example/Makefile (EXTRA_DIST): Add chg-mcutil.conf
4659         * example/chg-mcutil.conf.in: New file.
4660
4661 2003-04-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4662
4663         * man/amanda.8.in (blocksize): Document the --with-maxtapeblocksize
4664           configure option.
4665
4666 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4667
4668         * server-src/amverifyrun.sh.in: Run the amverify command.
4669
4670 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4671         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4672
4673         * server-src/reporter.c: Get the filenumber correct.
4674
4675 2003-04-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4676         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4677
4678         * server-src/reporter.c: Print a postscript label for each tape used.
4679
4680 2003-03-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4681
4682         * configure.in (*-sco3.2v4*): It is not like *-sco3.2v5*,
4683           define DEV_PREFIX and RDEV_PREFIX.
4684
4685 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4686
4687         * configure.in: Typo.
4688
4689 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4690         Patch by Gert Doering <gert@greenie.muc.de>
4691
4692         * client-src/getfsent.c (get_fstab_nextentry): Compile on *-sco3.2v4*.
4693
4694 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4695
4696         * configure.in: Compile on *-sco3.2v4*
4697
4698 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4699
4700         * configure.in: Use '=' instead of '=='.
4701
4702 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4703
4704         * recover-src/set_commands.c (set_tape): Recognize null:, rait:,
4705           file: and tape: as driver, not host name.
4706
4707 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4708
4709         * server-src/amrmtape.sh.in: Print better output.
4710
4711 2003-03-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4712
4713         * changer-src/Makefile.am (libexec_SCRIPTS): Missing \.
4714
4715 2003-03-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4716
4717         * client-src/client_util.c (add_include): If include contain 2 '/' then
4718           use at asis, don't try to match it.
4719
4720 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4721
4722         * server-src/changer.h (changer_label): Return an int.
4723         * server-src/changer.h (changer_label): First parameter is char *.
4724
4725 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4726
4727         * file tape-src/output-rait.c (rait_open): Call tapefd_set_master_fd();
4728         * file tape-src/tapeio.c (struct tape_info): Add master_fd field.
4729         * file tape-src/tapeio.c (tape_info_init): Set master_fd to -1;
4730         * file tape-src/tapeio.c (tapefd_getinfo_host, tapefd_getinfo_disk,
4731           tapefd_getinfo_level): Return info of master_fd.
4732         * file tape-src/tapeio.c (tapefd_set_master_fd): New function to set
4733           master_fd.
4734         * file tape-src/tapeio.h (tapefd_set_master_fd): Prototype.
4735
4736 2003-03-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4737
4738         * tape-src/output-file.c (file_tapefd_can_fork): New function that
4739           return 1 if the file: can be run under a forked process.
4740         * tape-src/output-file.h (file_tapefd_can_fork): Prototype.
4741         * tape-src/output-null.c (null_tapefd_can_fork): New function that
4742           return 1 if the null: can be run under a forked process.
4743         * tape-src/output-null.h (null_tapefd_can_fork): Prototype.
4744         * tape-src/output-rait.c (rait_close, rait_tapefd_ioctl): Fork only if
4745         * tapefd_can_fork() return 1.
4746         * tape-src/output-rait.c (rait_tapefd_can_fork): New function that
4747           return 1 if the rait: can be run under a forked process.
4748         * tape-src/output-rait.h (rait_tapefd_can_fork): Prototype.
4749         * tape-src/output-tape.c (tape_tapefd_can_fork): New function that
4750           return 1 if the tape: can be run under a forked process.
4751         * tape-src/output-tape.h (tape_tapefd_can_fork): Prototype.
4752         * tape-src/tapeio.c (struct virtualtape): Add xxx_tapefd_can_fork and
4753           initialize vtable[];
4754         * tape-src/tapeio.c (tapefd_can_fork): New function to can the driver
4755           xxx_tapefd_can_fork function.
4756         * tape-src/tapeio.h (tapefd_can_fork): Prototype.
4757
4758 2003-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4759
4760         * tape-src/output-file.c (file_tapefd_write): Call file_release(fd)
4761           before opening the file for writing.
4762
4763 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4764
4765         * changer-src/chg-zd-mtx.sh.in: Default for driveslot is 0.
4766
4767 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4768
4769         * amplot/amplot.sh.in: New -b option for b/w postscript.
4770         * amplot/amplot.awk: Add 'color' to command if bw is set.
4771         * amplot/amplot.g: Change line 6 to line 8.
4772         * man/amplot.8: Document -b option.
4773
4774 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4775
4776         * recover-src/extract_list.c: Fix the name of the
4777           amidxtaped.<timestamp>.debug file.
4778
4779 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4780         Patch by Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
4781         
4782         * restore-src/amidxtaped.c: Use the device sent by the changer.
4783
4784 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4785
4786         * restore-src/amidxtaped.c: Remove lock 'unlink(conf_logfile)' on
4787           all failure path.
4788
4789 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4790
4791         * server-src/changer.c: Sync with 2.4.4.
4792
4793 2003-02-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4794
4795         * client-src/client_util.c: Print error except ENOENT for
4796           exclude/include files.
4797
4798 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4799
4800         * tape-src/tapetype.c: Use %ld to print some variable.
4801
4802 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4803
4804         * server-src/conffile.c (init_defaults): conf_printer.s must be set
4805           with stralloc("").
4806
4807 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4808         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4809
4810         * tape-src/tapetype.c: Document -c option.
4811
4812 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4813
4814         * changer-src/chg-zd-mtx.sh.in:Print "are you sure your drive slot is n"
4815
4816 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4817
4818         * server-src/tapefile.c (read_tapelist): return 1 if can't open the
4819           tapelist file.
4820
4821 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4822
4823         * man/amtapetype.8.in: Add doc from a mail by John R. Jackson.
4824
4825 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4826
4827         * server-src/amcheck.c: New -a option.
4828         * man/amcheck.8.in: Document it.
4829
4830 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4831
4832         * server-src/amindexd.c (build_disk_table): Compare the level.
4833
4834 2003-02-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4835         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4836
4837         * tape-src/tapetype.c: New -c argument to do only the compression test.
4838           Better detection of compression.
4839         * man/amtapetype.8.in: Document -c argument.
4840
4841 2003-02-09  John R. Jackson (jrj@purdue.edu)
4842
4843         * tape-src/tapetype.c: Allocate the I/O buffers on page boundaries.
4844           This helps performance on some OS's.
4845
4846 2003-02-08  John R. Jackson (jrj@purdue.edu)
4847
4848         * restore-src/amrestore.c: Clean up strtol() argument processing.
4849
4850 2003-02-08  John R. Jackson (jrj@purdue.edu)
4851
4852         * docs/INSTALL: Clean up supporting package versions and URL's.
4853
4854 2003-02-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4855
4856         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-CYGWIN.html.
4857
4858 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4859         Patch by Christophe Kalt <kalt@taranis.org>
4860
4861         * client-src/sendbackup-dump.c: New AM_SIZE_RE for NetApp.
4862         * client-src/sendsize.c: New re_size for NetApp.
4863
4864 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4865         Fix by Colin Henein <cmh@>
4866
4867         * common-src/amanda.h: Fix for the where S_ISDIR is not defined.
4868
4869 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4870         Patch by Doug Kingston <dpk@randomnotes.org>
4871
4872         * configure.in (NEED_SETUID_CLIENT): Set to false on *-pc-cygwin.
4873         * configure.in (WANT_SETUID_CLIENT): Set if NEED_SETUID_CLIENT != false.
4874         * client-src/Makefile.am: Don't chmod u+s if WANT_SETUID_CLIENT.
4875
4876 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4877         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
4878
4879         * man/amtapetype.8.in: Fix example.
4880
4881 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4882
4883         * common-src/amanda.h: #define S_ISDIR if not already defined.
4884
4885 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4886         File from Doug Kingston <dpk@randomnotes.org>
4887
4888         * docs/HOWTO-CYGWIN.html: New file.
4889
4890 2003-01-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4891
4892         * configure.in: Define WANT_RUNTIME_PSEUDO_RELOC on cygwin
4893         * client-src/Makefile.am: AM_LDFLAGS="-Wl,-enable-runtime-pseudo-reloc"
4894           if WANT_RUNTIME_PSEUDO_RELOC.
4895         * recover-src/Makefile.am: Ditto.
4896
4897 2003-01-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4898
4899         * tape-src/output-rait.h: #define stralloc strdup
4900         * tape-src/output-rait.c: Revert patch of 2003-01-26, we don't have
4901           vstralloc in standalone.
4902
4903 2003-01-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4904         Reported by Doug Kingston <dpk@randomnotes.org>
4905
4906         * recover-src/Makefile.am: Set AM_YFLAGS instead of YFLAGS.
4907
4908 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4909
4910         * tape-src/output-rait.c (tapeio_next_devname): Use vstralloc.
4911
4912 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4913
4914         * changer-src/chg-scsi-chio.c: Change strdup to stralloc.
4915         * changer-src/chg-scsi.c: Ditto.
4916         * changer-src/scsi-aix.c: Ditto.
4917         * changer-src/scsi-bsd.c: Ditto.
4918         * changer-src/scsi-cam.c: Ditto.
4919         * changer-src/scsi-changer-driver.c: Ditto.
4920         * changer-src/scsi-hpux_new.c: Ditto.
4921         * changer-src/scsi-irix.c: Ditto.
4922         * changer-src/scsi-linux.c: Ditto.
4923         * changer-src/scsi-solaris.c: Ditto.
4924         * changer-src/sense.c: Ditto.
4925         * tape-src/output-rait.c: Ditto.
4926
4927 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4928
4929         * server-src/taper.c (read_file): Don't count header in filesize.
4930
4931 2003-01-25  John R. Jackson (jrj@purdue.edu)
4932
4933         * tape-src/tapeio.c: Fix tape_access() and tape_stat() problem caused
4934           by indeterminate compiler order of evaluation.
4935
4936 2003-01-25  John R. Jackson (jrj@purdue.edu)
4937
4938         * restore-src/amidxtaped.c: Log errno when tape_stat fails.
4939         * restore-src/amrestore.c: Ditto.
4940         * tape-src/output-rait.c: Ditto.
4941
4942 2003-01-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4943
4944         * server-src/amstatus.pl.in: print an usage by tape.
4945
4946 2003-01-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4947
4948         * recover-src/extract_list.c (add_extract_item, delete_extract_item):
4949           Check also for level when comparing label.
4950
4951 2003-01-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4952
4953         Do not build chg-scsi-chio, it is buggy.
4954         * changer-src/Makefile.am (libexec_PROGRAMS): remove $(CHIO_SCSI).
4955         * changer-src/Makefile.am (EXTRA_PROGRAMS): add $(CHIO_SCSI).
4956
4957 2003-01-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4958
4959         * configure.in: disable amrestore if --without-server is set.
4960
4961 2003-01-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4962
4963         * client-src/amandad.c: Use the dbfd macro instead of the external
4964           variable db_fd.
4965         * client-src/selfcheck.c: Ditto.
4966         * client-src/sendbackup.c: Ditto.
4967         * client-src/sendsize.c: Ditto.
4968         * client-src/sendbackup-gnutar.c: Use save_errno instead of errno.
4969         * common-src/debug.c: Move most declaration inside #ifdef DEBUG_CODE.
4970         * server-src/amindexd.c: dup db_fd() to stderr.
4971         * server-src/conffile.c: Don't call error() if the config file does not
4972           exist, just write to stderr and set got_parserror.
4973
4974 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4975
4976         * recover-src/amrecover.c: Fix memory leak.
4977
4978 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4979
4980         Add new maxpromoteday option in a dumptype.
4981         * example/amanda.conf.in: Give an example
4982         * man/amanda.8.in: Document it.
4983         * server-src/amadmin.c: Print it in the disklist subcommand.
4984         * server-src/conffile.c: read it.
4985         * server-src/conffile.h (dumptype_t): Add maxpromoteday and
4986           s_maxpromoteday.
4987         * server-src/diskfile.c (read_diskline): Copy maxpromoteday from
4988           dumptype_t to disk_t.
4989         * server-src/diskfile.h (disk_t):  Add maxpromoteday.
4990         * server-src/planner.c (promote_highest_priority_incr): Don't promote
4991           a disk if est(dp)->next_level0 > dp->maxpromoteday.
4992
4993 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4994         Reported by Josh More <jmore@remote-print.com>
4995
4996         * client-src/client_util.c (add_exclude, add_include): Remove the
4997           need for MAXPATHLEN.
4998
4999 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5000         Fix by Josh More <jmore@remote-print.com>
5001
5002         * tape-src/output-tape.c: Add a ; after f = MT_UNLOAD
5003
5004 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5005         Undo patch of 2002-11-27. That doesn't work well for the planner.
5006
5007         * common-src/amanda.h (days_diff): Revert to old macro.
5008         * server-src/amadmin.c: Undo Fix for newer days_diff.
5009         * server-src/planner.c: Undo Fix for newer days_diff.
5010
5011 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5012
5013         * client-src/client_util.c: Fix memory leak reported by valgrind.
5014         * client-src/selfcheck.c: Ditto.
5015         * client-src/sendbackup.c: Ditto.
5016         * client-src/sendsize.c: Ditto.
5017         * common-src/amfeatures.c: Ditto.
5018         * common-src/debug.c: Ditto.
5019         * recover-src/amrecover.c: Ditto.
5020         * recover-src/extract_list.c: Ditto.
5021         * recover-src/set_commands.c: Ditto.
5022         * recover-src/uparse.y: Ditto.
5023         * recover-src/uscan.l: Ditto.
5024         * server-src/amindexd.c: Ditto.
5025         * server-src/amlabel.c: Ditto.
5026         * server-src/amtape.c: Ditto.
5027         * server-src/amtrmidx.c: Ditto.
5028         * server-src/amtrmlog.c: Ditto.
5029         * server-src/changer.c: Ditto.
5030         * server-src/conffile.c: Ditto.
5031         * server-src/driver.c: Ditto.
5032         * server-src/driverio.c: Ditto.
5033         * server-src/dumper.c: Ditto.
5034         * server-src/find.c: Ditto.
5035         * server-src/holding.c: Ditto.
5036         * server-src/logfile.c: Ditto.
5037         * server-src/planner.c: Ditto.
5038         * server-src/reporter.c: Ditto.
5039         * server-src/tapefile.c: Ditto.
5040         * server-src/taper.c: Ditto.
5041
5042 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5043
5044         * amplot/amplot.awk: Many fix.
5045
5046 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5047
5048         * server-src/planner.c (promote_highest_priority_incremental): Promote
5049           a disk > balanced size if no full today. Do not promote a disk it's
5050           the only disk due that day and no full today.
5051
5052 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5053         Patch by Brad Roberts <braddr@puremagic.com>
5054
5055         * server-src/amflush.c: Remove 2 redundant amfree call after remove_sl.
5056         * server-src/holding.c (get_flush): Ditto.
5057
5058 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5059
5060         * server-src/conffile.c: New taperalgo configuration keyword.
5061         * server-src/conffile.h: Ditto.
5062         * man/amanda.8.in: Document it.
5063         * server-src/driver.c (startaflush): New function to start a flush to
5064           tape.
5065
5066 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5067
5068         * server-src/diskfile.c (parse_diskline): Allow skip in dumptype.
5069
5070 2002-12-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5071
5072         * server-src/amstatus.pl.in: Parse features from PORT-WRITE line.
5073
5074 2002-12-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5075
5076         Don't use the G flag for samba backup restore by tar.
5077         * recover-src/extract_list.c (enum dumptypes): Add IS_SAMBA_TAR.
5078         * recover-src/extract_list.c (extract_files_child): Set dumptype to
5079           IS_SAMBA_TAR if it's a SAMBA backup. Don't pass the G flag to tar
5080           if it's IS_SAMBA_TAR.
5081
5082 2002-12-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5083
5084         * amplot/amplot.awk: Parse line with features, parse ENDFLUSH line.
5085
5086 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5087
5088         * server-src/planner.c (promote_highest_priority_incremental): Newer
5089           algorithm that reduce the number of level 0 by hosts on a single day.
5090
5091 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5092
5093         * amplot/amplot.awk: Parse newer log lines.
5094
5095 2002-12-11  Jean-Louis Martineau <martineau@iro.umontreal.ca> 
5096         * server-src/reporter.c (output_stats): Typo.
5097
5098 2002-12-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5099
5100         * server-src/reporter.c: Print an usage by tape.
5101
5102 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5103
5104         * tape-src/tapeio.c (do_read): Init count to 0.
5105
5106 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5107
5108         * tape-src/Makefile.am: Install tapetype program as amtapetype.
5109         * docs/TAPETYPES: Change for amtapetype.
5110         * man/amtapetype.8.in: New man page
5111         * man/Makefile.am: Install it.
5112         * configure.in (AC_CONFIG_FILES): Add man/amtapetype.8.
5113
5114 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5115
5116         * tape-src/ammt.c (optind): Add prototype.
5117         * tape-src/amdd.c (optind): Add prototype.
5118
5119 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5120
5121         * common-src/arglist.h (printf_arglist_function,
5122           printf_arglist_function1, printf_arglist_function2): Define if
5123           STDC_HEADERS is not defined.
5124
5125 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5126
5127         * server-src/amstatus.pl.in: New --date option to display datestamp.
5128         * server-src/amstatus.pl.in: Increase some field size.
5129         * server-src/amstatus.pl.in: The host field adjust it's length to the
5130          largest.
5131
5132 2002-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5133
5134         * common-src/amanda.h (days_diff): Don't add a half day.
5135         * server-src/amadmin.c: Fix for newer days_diff.
5136         * server-src/planner.c: Fix for newer days_diff.
5137
5138 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5139
5140         * client-src/amandad.c: Fix compiler warning.
5141         * common-src/Makefile.am (bsdsecurity): Link with file.o.
5142         * common-src/bsd-security.c: Fix compiler warning.
5143         * common-src/bsd-security.c (construct_datestamp, construct_timestamp):
5144           Add function if TEST.
5145         * server-src/chunker.c: Fix compiler warning.
5146         * server-src/dumper.c: Fix compiler warning.
5147
5148 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5149
5150         * tape-src/tapetype.c: Cast time_t to long for printing.
5151
5152 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5153
5154         * server-src/amflush.c: Write a "amflush: start at ???" line.
5155         * server-src/amstatus.pl.in: parse the "amflush: start at ???" line.
5156
5157 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5158
5159         * server-src/planner.c (delay_dumps): Use snprintf.
5160
5161 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5162
5163         * common-src/debug.c: Most of the code must in #ifdef DEBUG_CODE.
5164         * client-src/client_util.c: Use AMANDA_TMPDIR instead of AMANDA_DBGDIR.
5165
5166 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5167
5168         * docs/TAPE.CHANGERS: Sync with 2.4.3.
5169
5170 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5171
5172         * server-src/amadmin.c: Cleanup.
5173
5174 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5175
5176         * man/amadmin.8.in: Document new --days option of balance subcommand.
5177
5178 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5179
5180         * server-src/amadmin.c (days_diff): Make next_level0 more acurate.
5181         * server-src/amadmin.c (balance): Improve output.
5182
5183 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5184
5185         * recover-src/extract_list.c: Add Retry and Skip command to amrecover.
5186
5187 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5188
5189         * tape-src/output-tape.c (tape_tapefd_fsf): Must not be static.
5190
5191 2002-11-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5192
5193         * server-src/reporter.c: Fix for LPRCMD not defined.
5194
5195 2002-11-14  Marc Mengel <mengel@fnal.gov>
5196
5197         New changer scripts for use with rait: code, run several other
5198         changers in tandem and return a rait: tape device.  Makes fake
5199         amanda.conf files under AMANDA_DEBUGDIR for each changer used,
5200         then cleans up.
5201
5202         * changer-src/chg-rait.sh.in:   New file. Multi-changer script.
5203         * changer-src/chg-null.sh.in:   New File. Null-device changer script.
5204         * docs/TAPE.CHANGERS:  Descriptions of above.
5205         * configure.in: added above files.
5206         * changer-src/Makefile.am: Likewise.
5207
5208 2002-11-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5209         Patch by Orion Poplawski <orion@colorado-research.com>
5210
5211         * server-src/planner.c (delay_dumps): Add the estimate size to all call
5212           of delay_one_dump.
5213
5214 2002-11-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5215
5216         * server-src/reporter.c: Increase width of some field.
5217
5218 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5219
5220         * changer-src/scsi-solaris.c (SCSI_ExecuteCommand): Init ret to 0.
5221
5222 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5223
5224         * recover-src/extract_list.c (delete_file): j is int.
5225         * changer-src/scsi-defs.h (B, B1): Check if already defined.
5226         * server-src/taper.c: Some cast to int.
5227         * tape-src/amdd.c (read_func, write_func): Complete prototype.
5228         * tape-src/tapeio.h (tapefd_read, tapefd_write): return ssize_t,
5229           third argument is size_t.
5230         * tape-src/tapeio.c: Ditto.
5231         * tape-src/output-file.h (file_tapefd_read, file_tapefd_write): return
5232           ssize_t, third argument is size_t.
5233         * tape-src/output-file.c: Ditto.
5234         * tape-src/output-null.h (null_tapefd_read, null_tapefd_write): return
5235           ssize_t, third argument is size_t.
5236         * tape-src/output-null.c: Ditto.
5237         * tape-src/output-rait.h (rait_read, rait__write): return ssize_t,
5238           third argument is size_t.
5239         * tape-src/output-rait.c: Ditto.
5240         * tape-src/output-tape.h (tape_tapefd_read, tape_tapefd_write): return
5241           ssize_t, third argument is size_t.
5242         * tape-src/output-tape.c: Ditto.
5243
5244 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5245
5246         * configure.in: socklen_t default to int.
5247         * common-src/dgram.c (dgram_recv): addrlen is socklen_t.
5248         * common-src/stream.c (stream_server): len is socklen_t.
5249         * recover-src/extract_list.c (add_file): j is int.
5250
5251 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5252
5253         * client-src/client_util.c (test_name_len) Remove variable.
5254         * common-src/match.c (len_prefix): Change type to int.
5255         * server-src/taper.c: Use %p to print pointer.
5256         * tape-src/amdd.c (read_func, write_func):Change return type to ssize_t.
5257         * tape-src/amdd.c (debug): Renamed to debug_amdd.
5258         * tape-src/ammt.c (debug): Renamed to debug_ammt.
5259
5260 2002-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5261
5262         * restore-src/amidxtaped.c: Fix restore from file.
5263
5264 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5265
5266         * restore-src/amidxtaped.c: Fix newline in string literal.
5267
5268 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5269
5270         * server-src/conffile.c (maxdumpsize): New option.
5271         * server-src/conffile.h: Ditto.
5272         * server-src/planner.c: Use maxdumpsize if set.
5273         * example/amanda.conf.in: Document it.
5274         * man/amanda.8.in: Document it.
5275
5276 2002-11-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5277
5278         * common-src/amfeatures.h (fe_amidxtaped_fsf, fe_amidxtaped_label,
5279           fe_amidxtaped_device, fe_amidxtaped_host, fe_amidxtaped_disk,
5280           fe_amidxtaped_datestamp, fe_amidxtaped_header, fe_amidxtaped_nargs,
5281           fe_amidxtaped_config): New features.
5282         * common-src/amfeatures.c (am_init_feature_set): Set new features.
5283         * recover-src/extract_list.c: Send new protocol data to amidxtaped.
5284         * restore-src/Makefile.am: amidxtaped.c need libamserver.
5285         * restore-src/amidxtaped.c: Read new protocol data from amrecover.
5286         * restore-src/amidxtaped.c: Use new configuration options.
5287         * server-src/conffile.c (conf_amrecover_do_fsf,
5288           conf_amrecover_check_label, conf_amrecover_changer): New config.
5289         * server-src/conffile.h: New config options.
5290         * example/amanda.conf.in: Document them.
5291         * man/amanda.8.in: Document them.
5292
5293 2002-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5294
5295         * autogen: touch config/config.h.in
5296         * configure.in: Patch from autoupdate-2.53 and LIBOBJS.
5297         * common-src/Makefile.am: Build versuff.o before version.o
5298         * recover-src/Makefile.am: Remove work around for automake-1.2
5299
5300 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5301
5302         * configure.in: Remove --disable-libtool.
5303         * */Makefile.am: Remove WANT_LIBTOOL.
5304
5305 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5306
5307         * changer-src/chg-scsi.c (config_name, config_dir): Remove declaration.
5308         * server-src/amadmin.c: Ditto.
5309         * server-src/amcheck.c: Ditto.
5310         * server-src/amcleanupdisk.c: Ditto.
5311         * server-src/amflush.c: Ditto.
5312         * server-src/amindexd.c: Ditto.
5313         * server-src/amlabel.c: Ditto.
5314         * server-src/amlogroll.c: Ditto.
5315         * server-src/amtape.c: Ditto.
5316         * server-src/amtrmidx.c: Ditto.
5317         * server-src/amtrmlog.c: Ditto.
5318         * server-src/chunker.c: Ditto.
5319         * server-src/diskfile.c: Ditto.
5320         * server-src/driver.c: Ditto.
5321         * server-src/dumper.c: Ditto.
5322         * server-src/getconf.c: Ditto.
5323         * server-src/planner.c: Ditto.
5324         * server-src/reporter.c: Ditto.
5325         * server-src/taper.c: Ditto.
5326         * server-src/conffile.c (config_name, config_dir): Add declaration.
5327
5328 2002-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5329
5330         * man/amrestore.8: Amrestore doesn't use a changer.
5331
5332 2002-11-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5333
5334         * configure.in (SHELL): Don't set it, libtool do it.
5335
5336 2002-10-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5337
5338         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.3.
5339
5340 2002-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5341
5342         * restore-src/amrestore.c: New '-l <label>' flag, Do a rewind and
5343           check the label before restoring.
5344         * man/amrestore.8: Document -l flag.
5345
5346 2002-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5347
5348         * configure.in (AM_HAVE_MT_FLAGS, AM_HAVE_MT_FILENO, AM_HAVE_MT_BLKNO,
5349           AM_HAVE_MT_DSREG,AM_HAVE_MT_ERREG): Rename to HAVE_MT_FLAGS,
5350           HAVE_MT_FILENO, HAVE_MT_BLKNO, HAVE_MT_DSREG and HAVE_MT_ERREG.
5351         * tape-src/output-tape.c: Ditto.
5352
5353 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5354         Undo patch of 2002-10-24. They are needed by amrecover.
5355
5356         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
5357           is_local_fstype): Add Prototype.
5358         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
5359           is_local_fstype): remove Prototype.
5360
5361 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5362         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
5363
5364         * tape-src/tapetype.c: Detects and warns the user if the tape drive
5365           has hardware compression enabled.
5366
5367 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5368
5369         * restore-src/amrestore.c: New '-f <fileno>' flag, Do a rewind and
5370           'fsf <fileno>' if -f is set.
5371         * man/amrestore.8: Document -f flag.
5372         
5373 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5374
5375         * common-src/amfeatures.h (fe_amindexd_fileno_in_OLSD, 
5376           fe_amindexd_fileno_in_ORLD): New amfeatures.
5377         * common-src/amfeatures.c (am_init_feature_set): Set
5378           fe_amindexd_fileno_in_OLSD and fe_amindexd_fileno_in_ORLD.
5379         * recover-src/amrecover.h (struct DIR_ITEM): Add fileno.
5380         * recover-src/display_commands.c (add_dir_list_item): Set fileno
5381           in struct DIR_ITEM.
5382         * recover-src/display_commands.c (suck_dir_list_from_server): Read
5383           fileno if fe_amindexd_fileno_in_OLSD is set.
5384         * recover-src/extract_list.c (struct EXTRACT_LIST): Add fileno.
5385         * recover-src/extract_list.c (add_file): Read fileno if
5386           fe_amindexd_fileno_in_ORLD is set.
5387         * recover-src/extract_list.c (delete_file): Read fileno if
5388           fe_amindexd_fileno_in_ORLD is set.
5389         * server-src/amindexd.c (opaque_ls): Write fileno if
5390           fe_amindexd_fileno_in_OLSD or fe_amindexd_fileno_in_ORLD are set.
5391
5392 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5393         patch by Doug Kingston <dpk@pobox.com>
5394
5395         * configure.in (NEED_PATH_ENV, IGNORE_UID_CHECK, IGNORE_FSTAB,
5396           DONT_SUID_ROOT): Defined if on *-pc-cygwin.
5397         * client-src/Makefile.am: Fix for cygwin.
5398         * client-src/getfsent.c: Don't use fstab if IGNORE_FSTAB.
5399         * client-src/killpgrp.c: Don't suid(0) if DONT_SUID_ROOT.
5400         * client-src/rundump.c: Don't suid(0) if DONT_SUID_ROOT.
5401         * client-src/runtar.c: Don't suid(0) if DONT_SUID_ROOT.
5402         * client-src/selfcheck.c (check_suid): Don't check uid if
5403           IGNORE_UID_CHECK.
5404         * common-src/alloc.c (safe_env): Add PATH to ENV if NEED_PATH_ENV.
5405         * recover-src/amrecover.c: Don't check uid if IGNORE_UID_CHECK.
5406
5407 2002-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5408
5409         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
5410           is_local_fstype): Remove Prototype.
5411         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
5412           is_local_fstype): Add Prototype.
5413
5414 2002-10-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5415
5416         * server-src/amindexd.c: New FEATURES command that read the features
5417           set from the client and reply the features set of the server.
5418         * recover-src/amrecover.h: include "amfeatures.h"
5419         * recover-src/amrecover.c: Send the FEATURES command to the server
5420           and read it's features set.
5421
5422 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5423
5424         * client-src/Makefile.am: Work around for CYGWIN.
5425         * server-src/Makefile.am: Ditto.
5426
5427 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5428
5429         * configure.in: Remove empty command from $program_transform_name.
5430
5431 2002-10-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5432
5433         * recover-src/extract_list.c (READ_TIMEOUT): Increased to 240*60.
5434
5435 2002-09-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5436
5437         * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined.
5438
5439 2002-09-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5440
5441         * server-src/amverifyrun.sh.in: New program.
5442         * man/amverifyrun.8.in: Man page for amverifyrun.
5443         * configure.in (AC_OUTPUT): add man/amverifyrun.8 and
5444           server-src/amverifyrun.sh.
5445         * man/Makefile.am (SERVER_MAN_PAGES): Add amverifyrun.8.
5446         * man/amanda.8.in: Add amdd, ammt and amverifyrun in SEE ALSO.
5447         * man/amverify.8.in: Add amverifyrun(8) in SEE ALSO.
5448         * server-src/Makefile.am (sbin_SCRIPTS): Add amverifyrun.
5449
5450 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5451
5452         * server-src/amverify.sh.in: Accept runtapes as a third argument.
5453         * man/amverify.8.in: Document it.
5454
5455 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5456
5457         * config/missing: Updated from automake-1.5.
5458
5459 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5460
5461         * config/config.guess: Updated from ftp://ftp.gnu.org/gnu/config/
5462         * config/config.sub: Updated from ftp://ftp.gnu.org/gnu/config/
5463
5464 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5465
5466         * client-src/sendsize.c (getsize_dump): Print the fstype.
5467         * client-src/sendbackup-dump.c (start_backup): Print the fstype.
5468
5469 2002-09-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5470         Patch by  Florian Hars <hars@bik-gmbh.de>
5471
5472         * changer-src/chg-zd-mtx.sh.in: Fix default value for cleancycle.
5473
5474 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5475
5476         * recover-src/extract_list.c (extract_files): print tape drive
5477           and host before asking to load tape.
5478
5479 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5480
5481         * server-src/taper.c (read_file): Initialize file, 
5482           stat(file.cont_filename) before opening it.
5483           
5484 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5485
5486         * server-src/amverify.sh.in: Don't check that the device is
5487           a character device, it could be a file: or rait:
5488
5489 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5490
5491         * common-src/amfeatures.c (am_set_default_feature_set):
5492           fe_rep_options_sendbackup_options is a default feature.
5493
5494 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5495
5496         * server-src/amstatus.pl.in: Sort a disk in datestamp order.
5497
5498 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5499         Text by Jean-Francois Malouin <Jean-Francois.Malouin@bic.mni.mcgill.ca>
5500
5501         * docs/EXCLUDE: Improve documentation.
5502
5503 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5504
5505         * server-src/reporter.c: Fix compilation error if LPRCMD is not defined.
5506
5507 2002-08-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5508         Patch by Jason Brooks <jason0@mail.wrs.com>
5509
5510         * docs/chg-scsi.notes: New document.
5511         * changer-src/chg-scsi.c: Adding printout of "emubarcode" values 
5512           in the debug file.
5513         * changer-src/scsi-changer-driver.c: Added dlt8000 and L500 to 
5514           ChangerIO[].
5515         * changer-src/sense.c: Added dlt8000 and L500 to SenseType[].
5516
5517 2002-08-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5518
5519         * tape-src/output-null.c (null_tape_stat, null_tape_access): Use
5520           "/dev/null" instead of filename.
5521
5522 2002-08-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5523
5524         * changer-src/chg-mtx.sh.in: Sync with 2.4.3 branch.
5525         * changer-src/chg-scsi-chio.c: Ditto.
5526         * changer-src/chg-scsi.c: Ditto.
5527         * changer-src/scsi-aix.c: Ditto.
5528         * changer-src/scsi-bsd.c: Ditto.
5529         * changer-src/scsi-cam.c: Ditto.
5530         * changer-src/scsi-changer-driver.c: Ditto.
5531         * changer-src/scsi-defs.h: Ditto.
5532         * changer-src/scsi-hpux_new.c: Ditto.
5533         * changer-src/scsi-irix.c: Ditto.
5534         * changer-src/scsi-linux.c: Ditto.
5535         * changer-src/scsi-solaris.c: Ditto.
5536         * tape-src/tapeio.c: Ditto.
5537
5538 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5539
5540         * recover-src/uparse.y: Fix compiler warning.
5541
5542 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5543
5544         * server-src/amtrmidx.c: Continue if a directory doesn't exist.
5545
5546 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5547
5548         * man/amanda.8.in (tapecycle): Improve documentation.
5549
5550 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5551
5552         * server-src/amstatus.pl.in: Works with features.
5553
5554 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5555
5556         * common-src/amfeatures.c (am_feature_to_string): Return the string
5557           "UNKNOWNFEATURE" if no features.
5558         * common-src/amfeatures.c (am_string_to_feature): Return NULL if the
5559           string is "UNKNOWNFEATURE".
5560
5561 2002-08-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5562
5563         * common-src/file.c (debug_agets): line_free was badly set when
5564         the buffer size in increased.
5565
5566 2002-07-19  John R. Jackson (jrj@purdue.edu)
5567
5568         * common-src/amanda.h: Fix bad #define.
5569
5570 2002-07-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5571         Patch by
5572           David Munro <D.Munro@surrey.ac.uk>
5573
5574         * common-src/sl.c (new_sl): Alloc (sl_t) instead of (sl_t *).
5575           
5576 2002-06-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5577         Bug reported by 
5578           Jonathan R. Johnson <Jonathan.Johnson@MinnetonkaSoftware.com>
5579
5580         * server-src/reporter.c: Fix psfname filename.
5581
5582 2002-05-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5583
5584         * client-src/sendbackup.c: Don't do compression if it is server side.
5585         * client-src/sendbackup-dump.c: Ditto.
5586         * client-src/sendbackup-gnutar.c: Ditto.
5587
5588 2002-05-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5589         Patch by Manuel Bouyer <bouyer@antioche.lip6.fr>
5590
5591         * server-src/taper.c (detach_buffers): Fix compilation with mmap.
5592
5593 2002-04-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5594
5595         * recover-src/extract_list.c (extract_files): Set dump_device_name
5596           after the call of okay_to_continue.
5597
5598 2002-04-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5599
5600         New features to describe the OPTIONS line of a REP packet.
5601         * common-src/amfeatures.h: Add fetures fe_rep_options_maxdumps,
5602           fe_rep_options_hostname, fe_rep_options_features and
5603           fe_rep_options_sendbackup_options.
5604         * common-src/amfeatures.c (am_init_feature_set): Add
5605           fe_rep_options_features.
5606         * client-src/selfcheck.c: Write REP packet according to server features.        * client-src/sendbackup.c: Ditto.
5607         * client-src/sendsize.c: Ditto.
5608
5609 2002-04-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5610
5611         * common-src/amfeatures.h:
5612              Rename fe_g_options_maxdump  to fe_req_options_maxdumps
5613              Rename fe_g_options_hostname to fe_req_options_hostname
5614              Rename fe_g_options_features to fe_req_options_features
5615         * common-src/amfeatures.c: Ditto
5616         * server-src/amcheck.c: Ditto
5617         * server-src/dumper.c: Ditto
5618         * server-src/planner.c: Ditto
5619
5620 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5621
5622         * server-src/amcheck.c: Check if it can send features, hostname or
5623           maxdumps on the global options line. Don't send hostname and
5624           maxdumps for a noop service.
5625         * server-src/dumper.c: Ditto.
5626         * server-src/planner.c: Ditto.
5627
5628 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5629
5630         * client-src/sendbackup.c: (optionstr): Add srvcomp-best and
5631           srvcomp-fast options.
5632
5633 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5634
5635         * server-src/amcheck.c (start_host): Check the todo bit before 
5636           sending noop REQ.
5637
5638 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5639
5640         * client-src/client_util.c (parse_options, parse_g_options): Check
5641           for duplication options.
5642         * client-src/client_util.h (COMPR_SERVER_FAST, COMPR_SERVER_BEST):
5643           Declare.
5644         * client-src/selfcheck.c: Check for COMPR_FAST or COMPR_BEST.
5645
5646 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5647
5648         * client-src/selfcheck.c (host):Remove variable,use g_options->hostname.
5649         * client-src/sendbackup.c: Ditto.
5650         * client-src/sendsize.c: Ditto.
5651
5652 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5653
5654         * client-src/client_util.c (parse_g_options) New function to parse
5655           the global options string.
5656         * client-src/client_util.h (parse_g_options): Prototype.
5657         * client-src/selfcheck.c: use parse_g_options.
5658         * client-src/sendbackup.c: use parse_g_options.
5659         * client-src/sendsize.c: use parse_g_options.
5660
5661 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5662
5663         * server-src/diskfile.c: Improve message for missing features.
5664
5665 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5666
5667         Add many features.
5668         * common-src/amfeatures.c (am_set_default_feature_set): New function 
5669           to set the default features set.
5670         * common-src/amfeatures.h (am_set_default_feature_set): Prototype.
5671         * common-src/amfeatures.h: Rename amanda_feature_auth_keyword to 
5672           fe_options_auth.
5673         * client-src/client_util.c: Check features.
5674         * server-src/amcheck.c: Ditto.
5675         * server-src/diskfile.c: Ditto.
5676         * server-src/driverio.c: Ditto.
5677         * server-src/planner.c: Ditto.
5678         * server-src/diskfile.h (optionstr): Change prototype.
5679         * client-src/sendsize.c: Fix compiler warning.
5680
5681 2002-04-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5682
5683         * common-src/amfeatures.c: Include "amfeatures.h"
5684         * common-src/rsh-security.c: Don't assert on undefined variable.
5685
5686 2002-04-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5687
5688         * common-src/amfeatures.c: Renamed from features.c
5689         * common-src/amfeatures.h: Renamed from features.h
5690         * common-src/Makefile.am: Rename features to amfeatures.
5691         * client-src/amandad.c: Ditto.
5692         * client-src/client_util.h: Ditto.
5693         * client-src/selfcheck.c: Ditto.
5694         * client-src/sendbackup.c: Ditto.
5695         * client-src/sendsize.c: Ditto.
5696         * server-src/amcheck.c: Ditto.
5697         * server-src/chunker.h: Ditto.
5698         * server-src/diskfile.h: Ditto.
5699         * server-src/dumper.c: Ditto.
5700         * server-src/planner.c: Ditto.
5701         * server-src/taper.c: Ditto.
5702
5703 2002-04-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5704
5705         * server-src/conffile.c: Default dumporder set to "ttt".
5706         * server-src/driver.c: If dumporder is too short, use t and T.
5707         * man/amanda.8.in: Default dumporder set to "ttt".
5708
5709 2002-04-13  John R. Jackson (jrj@purdue.edu)
5710
5711         * common-src/features.c: Add amanda_feature_auth_keyword feature so
5712           authorization in the OPTIONS string is backward compatible.
5713         * common-src/features.h: Ditto.
5714         * client-src/client_util.c: Ditto.
5715         * client-src/client_util.h: Ditto.
5716         * client-src/selfcheck.c: Ditto.
5717         * client-src/sendbackup.c: Ditto.
5718         * client-src/sendsize.c: Ditto.
5719         * server-src/diskfile.c: Ditto.
5720         * server-src/planner.c: Fix compiler warning.
5721
5722 2002-04-13  John R. Jackson (jrj@purdue.edu)
5723
5724         * server-src/diskfile.c: Fix memory leak.
5725
5726 2002-04-13  John R. Jackson (jrj@purdue.edu)
5727
5728         * server-src/amcheck.c: Fix error parsing in packet.
5729
5730 2002-04-13  John R. Jackson (jrj@purdue.edu)
5731
5732         * common-src/features.c: New file.  Add support for feature sets so
5733           different Amanda versions can work together.
5734         * common-src/features.h: Ditto.
5735         * common-src/Makefile.am: Ditto.  Add "features" test program.
5736         * client-src/amandad.c: Add "noop" service to return the feature set.
5737         * client-src/selfcheck.c: Accept and return a feature set in OPTIONS.
5738           Improve parsing.
5739         * client-src/sendbackup.c: Ditto.
5740         * client-src/sendsize.c: Ditto.
5741         * common-src/bsd-security.c: Minor message change.
5742         * common-src/error.c: Use strcasecmp.
5743         * common-src/protocol.c: Use dbprintf for PROTO_DEBUG and improve
5744           messages.
5745         * restore-src/amidxtaped.c: Improve parsing.
5746         * server-src/amcheck.c: Ask for client features via "noop" before
5747           doing the real "selfcheck" service requests.  Improve parsing.
5748         * server-src/amflush.c: Minor coding format cleanup.
5749         * restore-src/amindexd.c: Improve parsing.
5750         * server-src/chunker.c: Deal with features string in commands.  Improve
5751           parsing.
5752         * server-src/diskfile.c: Initialize the features hosttype field.
5753         * server-src/diskfile.h: Add the features hosttype field.
5754         * server-src/driver.c: Save the features from the schedule.  Clean
5755           up some error messages.
5756         * server-src/driverio.c: Add features string to several commands.
5757         * server-src/dumper.c: Deal with features string in commands.  Improve
5758           parsing.
5759         * server-src/planner.c: Ask for client features via "noop" before
5760           doing the real "sendsize" service requests.  Improve parsing.
5761         * server-src/server_util.c: Minor coding cleanup.
5762         * server-src/server_util.h: Increase the number of args allowed on
5763           commands.
5764         * server-src/taper.c: Deal with features string in commands.  Improve
5765           parsing.
5766
5767 2002-04-12  John R. Jackson (jrj@purdue.edu)
5768
5769         * server-src/driver.c: Fix crash when only processing a tape queue
5770           (e.g. amflush).
5771
5772 2002-04-11  John R. Jackson (jrj@purdue.edu)
5773
5774         * server-src/driver.c: Protect against crash when taper has died.
5775
5776 2002-04-11  John R. Jackson (jrj@purdue.edu)
5777
5778         * common-src/stream.c: Clean up an error message.
5779
5780 2002-04-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5781
5782         * docs/DUMPER-API: Remove the section about USER and GROUP.
5783
5784 2002-04-09  John R. Jackson (jrj@purdue.edu)
5785
5786         * server-src/driver.c: Fix send of QUIT to taper when it is down.
5787
5788 2002-04-07  John R. Jackson (jrj@purdue.edu)
5789
5790         * server-src/dumper.c: Change sendbackup response parsing to handle
5791           2.4 changes.  Improve packet parse error processing.  Make packet
5792           logging conditional on an #ifdef instead of commented out.
5793
5794 2002-04-07  John R. Jackson (jrj@purdue.edu)
5795
5796         * client-src/amandad.c: Fix FORCE_USERID to run the service as the
5797           client user if amandad was started as root.
5798
5799 2002-04-07  John R. Jackson (jrj@purdue.edu)
5800
5801         * common-src/clock.c: Move definition of amanda_gettimeofday() macro
5802           to the header file so it could be used other places.  Use new
5803           amanda_timezone macro to avoid some #ifdef's.
5804         * common-src/clock.h: Ditto.
5805         * common-src/bsd-security.c: Fix compatibility problems with pre-2.5
5806           servers trying to talk to 2.5 clients.  The HANDLE value was not
5807           being properly handled, and the sequence number was being ignored.
5808
5809 2002-04-07  John R. Jackson (jrj@purdue.edu)
5810
5811         * server-src/reporter.c: Move column routines to conffile.c so amcheck
5812           can use them in its tests.  Do not abort on several failures, but
5813           generate messages in the FAILURE AND STRANGE DUMP SUMMARY section.
5814         * server-src/conffile.c: Move column routines to here.
5815         * server-src/conffile.h: Ditto.
5816         * server-src/amcheck.c: Add several config file tests.
5817         * server-src/logfile.c: Change "reporter" to "amreport".
5818
5819 2002-04-07  John R. Jackson (jrj@purdue.edu)
5820
5821         * configure.in: Add /usr/local/sbin to LOCPATH.
5822
5823 2002-03-31  John R. Jackson (jrj@purdue.edu)
5824
5825         * server-src/amcheck.c: Send maxdumps and hostname in packet OPTIONS.
5826
5827 2002-03-31  John R. Jackson (jrj@purdue.edu)
5828
5829         * changer-src/scsi-defs.h: Fix compiler warning and bug it was hiding.
5830         * changer-src/scsi-solaris.c: Ditto.
5831
5832 2002-03-31  John R. Jackson (jrj@purdue.edu)
5833
5834         * client-src/amandad.c: Fix arguments to pkt_cat.
5835         * common-src/bsd-security.c: Ditto.
5836
5837 2002-03-31  John R. Jackson (jrj@purdue.edu)
5838
5839         * client-src/amandad.c: Add relative timestamps to a lot of debug
5840           file messages, and add more messages, to better track what is
5841           going on.  Various general cleanup.
5842         * client-src/calcsize.c: Ditto.
5843         * client-src/client_util.c: Ditto.
5844         * client-src/selfcheck.c: Ditto.
5845         * client-src/sendbackup-dump.c: Ditto.
5846         * client-src/sendbackup-gnutar.c: Ditto.
5847         * client-src/sendbackup.c: Ditto.
5848         * client-src/sendbackup.h: Ditto.
5849         * client-src/sendsize.c: Ditto.
5850         * common-src/amanda.h: Ditto.
5851         * common-src/bsd-security.c: Ditto.
5852         * common-src/clock.c: Ditto.
5853         * common-src/clock.h: Ditto.
5854         * common-src/debug.c: Ditto.
5855         * common-src/dgram.c: Ditto.
5856         * common-src/error.c: Ditto.
5857         * common-src/file.c: Ditto.
5858         * common-src/pipespawn.c: Ditto.
5859         * common-src/stream.c: Ditto.
5860         * common-src/util.c: Ditto.
5861         * man/amanda.8.in: Ditto.
5862         * restore-src/amidxtaped.c: Ditto.
5863         * restore-src/amrestore.c: Ditto.
5864         * server-src/amindexd.c: Ditto.
5865         * server-src/getconf.c: Ditto.
5866         * server-src/planner.c: Ditto.
5867
5868 2002-03-31  John R. Jackson (jrj@purdue.edu)
5869
5870         * client-src/sendsize.c: Pay attention to the spindle number.
5871
5872 2002-03-30  John R. Jackson (jrj@purdue.edu)
5873
5874         * server-src/planner.c: General delay_dumps code cleanup.
5875
5876 2002-03-30  John R. Jackson (jrj@purdue.edu)
5877
5878         * server-src/planner.c: Make sure individual dumps larger than a tape
5879           are not added back into the schedule.  Found by Uncle George
5880           <gatgul@voicenet.com>.
5881
5882 2002-03-29  John R. Jackson (jrj@purdue.edu)
5883
5884         * man/amanda.8.in: Move "comment" in tapetype after inclusion of
5885           previous definition.  Found by Uncle George <gatgul@voicenet.com>.
5886
5887 2002-03-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5888
5889         * client-src/client_util.c (fixup_relative): New function to prepend
5890           the dirname if relative.
5891         * client-src/client_util.c (build_exclude, build_include): Use
5892           fixup_relative.
5893         * client-src/client_util.c (parse_options): Do not prepend the dirname.
5894         * client-src/selfcheck.c (check_options): Don't generate ERROR for samba
5895           if optional is set.
5896
5897 2002-03-24  John R. Jackson (jrj@purdue.edu)
5898
5899         * common-src/debug.c: Change dbopen() message slightly to match what
5900           amdump generates, making it easier to parse.
5901
5902 2002-03-24  John R. Jackson (jrj@purdue.edu)
5903
5904         * common-src/Makefile.am: Move clock routines to common-src so
5905           everyone may use them.
5906         * server-src/Makefile.am: Ditto.
5907
5908 2002-03-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5909
5910         * client-src/sendbackup-gnutar.c: Fix use of no_record.
5911
5912 2002-03-24  John R. Jackson (jrj@purdue.edu)
5913
5914         * client-src/amandad.c: Make sure argv[0] is valid before using it.
5915         * restore-src/amidxtaped.c: Ditto.
5916         * server-src/amindexd.c: Ditto.
5917
5918 2002-03-24  John R. Jackson (jrj@purdue.edu)
5919
5920         * client-src/client_util.c: Use the Amanda memory allocation code.
5921         * client-src/sendbackup-gnutar.c: Ditto.
5922         * client-src/sendsize.c: Ditto.
5923         * common-src/match.c: Ditto.
5924         * recover-src/amrecover.c: Ditto.
5925         * recover-src/display_commands.c: Ditto.
5926         * recover-src/extract_list.c: Ditto.
5927         * restore-src/amidxtaped.c: Ditto.
5928         * server-src/amflush.c: Ditto.
5929         * server-src/disk_history.c: Ditto.
5930         * server-src/driver.c: Ditto.
5931         * server-src/dumper.c: Ditto.
5932         * common-src/amanda.h: Always pass the source file and line number
5933           to the memory routines to make it easier to debug.
5934         * common-src/alloc.c: Ditto.
5935         * common-src/file.c: Ditto.
5936
5937 2002-03-23  John R. Jackson (jrj@purdue.edu)
5938
5939         * changer-src/chg-scsi-chio.c: Use agets instead of fgets.
5940         * changer-src/chg-scsi.c: Use agets instead of fgets.
5941         * client-src/client_util.c: Use agets instead of fgets.
5942         * recover-src/amrecover.c: Clean up output on EOF.
5943         * recover-src/extract_list.c: Use agets instead of direct stdio.
5944           Clean up output on EOF.  Add '?' help.
5945         * recover-src/set_commands.c: Quote the new device in the verify
5946           output to make it stand out.
5947         * server-src/amflush.c: Clean up output on EOF.  Clean up output
5948           when multiple holding disk areas selected.  Clean up parsing.
5949           Loop until valid user response.
5950         * server-src/find.c: Do not complain if log file is missing for
5951           a new (datestamp == 0) tape.
5952         * server-src/holding.c: Use agets instead of fgets. Clean up
5953           interactive input and output.
5954
5955 2002-03-23  John R. Jackson (jrj@purdue.edu)
5956
5957         * client-src/selfcheck.c: Fix a compiler warning.
5958         * client-src/sendbackup.c: Ditto.
5959         * client-src/sendsize.c: Ditto.
5960
5961 2002-03-23  John R. Jackson (jrj@purdue.edu)
5962
5963         * client-src/getfsent.c (close_fstab()): Call endfsent() instead
5964           of fclose(), if available.
5965
5966 2002-03-23  John R. Jackson (jrj@purdue.edu)
5967
5968         * common-src/dbprintf (debug_printf): Make sure errno is preserved
5969           across dbprint() calls.
5970
5971 2002-03-23  John R. Jackson (jrj@purdue.edu)
5972
5973         * configure.in: Add -R$dir as well as -L$dir on Solaris when processing
5974           --with-libraries to support shared libraries of support products.
5975
5976 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5977
5978         * server-src/chunker.c: Get result from dumper.
5979         * server-src/driver.c: Send dumper result to chunker.
5980         * server-src/driverio.c (chunker_cmd): Send DONE and FAILED command.
5981         * server-src/driverio.h (chunker_t): New down field.
5982         * server-src/dumper.c: Cleanup.
5983         * server-src/logfile.c (logtype_str): Add "PARTIAL".
5984         * server-src/logfile.h (logtype_e): Add L_PARTIAL log.
5985         * server-src/reporter.c: Handle PARTIAL log.
5986         * server-src/server_util.c (cmdstr): Add "PARTIAL".
5987         * server-src/server_util.h (cmd_t): Add PARTIAL command.
5988         * server-src/taper.c (read_file): Result is PARTIAL if dumper
5989           result is not DONE.
5990
5991 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5992
5993         * server-src/tapefile.c (write_tapelist): Write to a temp file and
5994           rename it.
5995         * server-src/amlabel.c: Do not rename the tapelist file.
5996         * server-src/taper.c (label_tape): Do not rename the tapelist file.
5997
5998 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5999
6000         * client-src/client_util.c (parse_options): Do not check if the
6001           exclude file exist, it's done later.
6002
6003 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6004
6005         * client-src/client_util.c (parse_options): Parse exclude-optional and
6006           include-optional.
6007         * client-src/client_util.h (option_t): New exclude_optional and
6008           include_optional field.
6009         * man/amanda.8.in: Document optional.
6010         * server-src/amadmin.c (disklist_one): Display optional.
6011         * server-src/conffile.c: Parse optional keyword.
6012         * server-src/conffile.h (dumptype_t): New exclude_optional and
6013           include_optional field.
6014         * server-src/diskfile.c (read_diskline): Copy optional bits.
6015         * server-src/diskfile.c (optionstr): Print optional bits.
6016         * server-src/diskfile.h (disk_t): New exclude_optional and
6017           include_optional field.
6018         * server-src/planner.c (getsize): Use new sendsize format if optional
6019           bits are used.
6020
6021 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6022
6023         * server-src/driver.c (dump_to_tape): Call start_degraded_mode() if
6024           taper failed.
6025
6026 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6027
6028         * recover-src/extract_list.c (extract_files_setup): Add ^$ to host.
6029
6030 2002-03-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6031         Patch from Michael Frankowski <mfrankow@winternet.com>
6032
6033         * client-src/sendbackup-gnutar.c: Test for subdir before dbprintf.
6034
6035 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6036
6037         * client-src/client_util.c (init_options): New function.
6038         * client-src/client_util.h (init_options): Prototype.
6039         * client-src/sendsize.c (main): Use init_options.
6040
6041 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6042
6043         * client-src/client-util.c: Check for include and exclude files.
6044
6045 2002-03-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6046
6047         * server-src/amstatus.pl.in: Fix.
6048         * server-src/conffile.c(get-compress): Change message for bad 
6049           compress argument.
6050
6051 2002-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6052
6053         * server-src/amstatus.pl.in: Fix.
6054         * client-src/client_util.c (parse_options): Parse auth= option.
6055         * client-src/client_util.h (option_t): Add auth field.
6056         * client-src/sendbackup.c: Use auth instead of bsd-auth.
6057         * client-src/sendsize.c: Init auth.
6058
6059 2002-03-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6060
6061         * client-src/sendbackup-dump.c: use amdevice as argument to
6062           amname_to_fstype.
6063         * client-src/sendsize.c: Use amdevice as argument to amname_to_dirname.
6064         * server-src/dumper.c: clear device if it is set to NODEVICE.
6065
6066 2002-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6067
6068         * server-src/amindexd.c: Compilation fix.
6069
6070 2002-03-07 John R. Jackson (jrj@purdue.edu)
6071
6072         * changer-src/chg-zd-mtx.sh.in: Allow whitespace on a VolumeTag line.
6073           Compliments of Christopher McCrory <chrismcc@pricegrabber.com>.
6074
6075 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6076
6077         * recover-src/amrecover.h (list_disk): Prototype.
6078         * recover-src/set_commands.c (list_disk): New function.
6079         * recover-src/uparse.y: parse LISTDISK.
6080         * recover-src/uscan.l: listdisk keyword.
6081         * recover-src/help.c: help for listdisk.
6082         * man/amrecover.8.in: Doc for listdisk.
6083         * server-src/amindexd.c: New LISTDISK command.
6084         * docs/INDEXING: Document LISTDISK command.
6085
6086 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6087
6088         * server-src/amstatus.pl.in: Better output for autoflush.
6089
6090 2002-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6091
6092         * server-src/amstatus.pl.in: Fix.
6093
6094 2002-03-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6095
6096         * server-src/amadmin.c (disklist_one): Print dp->device.
6097         * server-src/amcheck.c (start_host): Send device if specified.
6098         * server-src/amstatus.pl.in: Parse line with device.
6099         * server-src/diskfile.c (parse_diskline): Parse device.
6100         * server-src/diskfile.c (match_disklist): Match on device.
6101         * server-src/diskfile.h (disk_t): New field device.
6102         * server-src/driverio.c: (dumper_cmd): Send device.
6103         * server-src/dumper.c (main): Parse device in request.
6104         * server-src/dumper.c (start_dump): New device argument, send
6105           device to client.
6106         * server-src/planner.c (getsize): Send device to client.
6107         * server-src/server_util.h (MAX_ARGS): Set it to 12.
6108         * client-src/client_util.c (add_include, build_exclude, build_include,
6109           parse_options): New device argument.
6110         * client-src/client_util.h (build_exclude,build_include,parse_options):
6111           New prototype.
6112         * client-src/selfcheck.c: Use device.
6113         * client-src/sendbackup-dump.c: Use device.
6114         * client-src/sendbackup-gnutar.c: Use device.
6115         * client-src/sendbackup.c: Use device.
6116         * client-src/sendbackup.h (start_backup): New device argument.
6117         * client-src/sendsize.c: Use device.
6118         * man/amanda.8.in: Document new disklist syntax.
6119         * example/disklist: Give example.
6120
6121 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6122
6123         * server-src/amstatus.pl.in: Write "wait to flush" only if waittaper
6124           is requested.
6125
6126 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6127
6128         * server-src/amstatus.pl.in: Fix for failed tape.
6129
6130 2002-02-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6131
6132         * man/amanda.8.in: Document multiple exclude.
6133         * man/amanda.8.in: Document include.
6134
6135 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6136
6137         * client-src/client-util.c (add_include): Include are glob expression.
6138
6139 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6140
6141         * common-src/debug.c (debug_open); Don't try to renmae an already 
6142           renamed file.
6143
6144 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6145
6146         * server-src/conffile.c (dump_configuration): Print multiple 
6147           exclude and include.
6148
6149 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6150
6151         * client-src/client_util.c (add_exclude, add_include): Typo.
6152
6153 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6154
6155         * client-src/client_util.c (build_include, build_exclude): Fix for 
6156           bad eof detection.
6157
6158 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6159
6160         * client-src/client_util.c (get_name): Create a file name.
6161         * client-src/client_util.c (build_name): Remove old files,
6162           build an unused file name.
6163         * client-src/client_util.c (add_exclude): Add an exclude pattern to
6164           the exclude file.
6165         * client-src/client_util.c (add_include): Add an include to the
6166           include file.
6167         * client-src/client_util.c (build_exclude): Concat all excludes in 
6168           one file.
6169         * client-src/client_util.c (build_include): Concat all includes in 
6170           one file.
6171         * client-src/client_util.h (build_exclude, build_include): Prototype.
6172         * client-src/selfcheck.c.diff (check_options): Call build_exclude 
6173           and build_include.
6174         * client-src/sendsize.c.diff: Call gtar with one 
6175           exclude file/include file.
6176         * client-src/sendbackup-gnutar.c.diff: Call gtar with one 
6177           exclude file/include file.
6178
6179 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6180
6181         * common-src/amanda.h (amfree): Change e local variable to e__errno.
6182         * common-src/amanda.h (strappend): Change t local variable to t_t_t.
6183
6184 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6185
6186         * client-src/sendsize.c: Set include_file and include_list to NULL
6187           when using old protocol.
6188         * client-src/sendbackup-gnutar.c: Include "." when using old protocol.
6189
6190 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6191
6192         * server-src/conffile.h (dumptype_t): Add include_file and include_list.
6193         * server-src/conffile.c: Read include.
6194         * server-src/diskfile.h (disk_t): Add include_file and include_list.
6195         * server-src/diskfile.c (optionstr): Add include to the optionstr.
6196         * server-src/amadmin.c (disklist_one): Print include.
6197         * server-src/planner.c: Use new protocol if include is used.
6198         * client-src/client_util.h (option_t): Add include_file and include_list
6199         * client-src/client_util.c (parse_options): Parse include.
6200         * client-src/selfcheck.c (check_options): Print ERROR if include are 
6201           used for SAMBA or DUMP.
6202         * client-src/sendsize.c: Send include to gnutar.
6203         * client-src/sendbackup-gnutar.c: Send include to gnutar.
6204
6205 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6206
6207         * client-src/client_util.c (parse_options): Check that files from
6208           'exclude list' exist'.
6209         * client-src/selfcheck.c (check_options): Give ERROR if multiple
6210           exclude are used with samba or if exclude are used with DUMP.
6211
6212 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6213
6214         * client-src/sendbackup.h: Remove bad stuff introduced in previous
6215           patch.
6216         * client-src/sendbackup-gnutar.c: Ditto.
6217
6218 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6219
6220         * client_src/client_util.c (parse_options): Function to parse 
6221           the option string. 
6222         * client_src/client_util.h (parse_options): Prototype.
6223         * client_src/client_util.h (option_t): Struct for options.
6224         * client_src/Makefile.am: Compile client_util.
6225         * client_src/selfcheck.c: Use new option_t and multiple exclude.
6226         * client_src/sendbackup.h: Use new option_t and multiple exclude.
6227         * client_src/sendbackup.c: Use new option_t and multiple exclude.
6228         * client_src/sendbackup-dump.c: Use new option_t and multiple exclude.
6229         * client_src/sendbackup-gnutar.c: Use new option_t and multiple exclude.
6230         * client_src/sendsize.c: Use new option_t and multiple exclude.
6231         * server-src/conffile.h: Use sl_t for exclude_file and exclude_list.
6232         * server-src/conffile.c: Multiple exclude.
6233         * server-src/diskfile.h: Use sl_t for exclude_file and exclude_list.
6234         * server-src/diskfile.c: Multiple exclude.
6235         * server-src/planner.c: Multiple exclude.
6236
6237 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6238
6239         * common-src/pipespawn.c (pipespawnv): Typo, ap_snprintf -> snprintf.
6240
6241 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6242
6243         * common-src/pipespawn.c (pipespawnv): New funtion taking an 
6244           argv argument.
6245         * common-src/pipespawn.h (pipespawnv): Prototype.
6246
6247 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6248
6249         * server-src/holding.h: Use sl_t instead of holding_t
6250         * server-src/holding.c: Ditto.
6251         * server-src/amcleanupdisk.c: Ditto.
6252         * server-src/amflush.c: Ditto.
6253         * server-src/find.c: Ditto.
6254         * server-src/planner.c: Ditto.
6255
6256 2002-02-11 John R. Jackson (jrj@purdue.edu)
6257
6258         * configure.in: AIX needs the "other" getconf argument to find out
6259           about large file support (XBS5_ILP32_OFFBIG instead of LFS).
6260
6261 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6262
6263         * common-src/sl.h: New header file
6264         * common-src/sl.c: New file for list of string struct.
6265         * common-src/Makefile.am: Compile sl.c
6266
6267 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6268
6269         * changer-src/chg-zd-mtx.sh.in: Don't use '^' in expr match argument.
6270
6271 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6272
6273         * common-src/fileheader.c (build_header): Typo.
6274
6275 2002-02-10 John R. Jackson (jrj@purdue.edu)
6276
6277         * configure.in: Add new file-pad tapetype option to take the place
6278           of a positive/negative blocksize.  Blocksize may now only be
6279           positive.  File-pad defaults to "true" which pads the last tape
6280           record like it always has.
6281         * man/amanda.8.in: Ditto.
6282         * server-src/amlabel.c: Ditto.
6283         * server-src/conffile.c: Ditto.  Fix typo in conffile test program.
6284         * server-src/conffile.h: Ditto.
6285         * server-src/planner.c: Ditto.
6286         * server-src/taper.c: Ditto.
6287
6288 2002-02-10 John R. Jackson (jrj@purdue.edu)
6289
6290         * configure.in: Save the ./configure args and display them in the
6291           version string (e.g. amandad*debug and "amadmin xx version").
6292         * common-src/genversion.c: Ditto.
6293
6294 2002-02-10 John R. Jackson (jrj@purdue.edu)
6295
6296         * common-src/alloc.c: Fix type mismatch issues discovered by splint
6297           (www.splint.org).  Compliments of jens persson <jens@persson.cx>.
6298         * common-src/bsd-security.c: Ditto.
6299         * common-src/debug.c: Ditto.
6300         * common-src/dgram.c: Ditto.
6301         * common-src/file.c: Ditto.
6302         * common-src/fileheader.c: Ditto.
6303         * common-src/fileheader.h: Ditto.
6304         * common-src/genversion.c: Ditto.
6305         * common-src/getcwd.c: Ditto.
6306         * common-src/match.c: Ditto.
6307         * common-src/stream.c: Ditto.
6308         * common-src/strstr.c: Ditto.
6309         * common-src/token.c: Ditto.
6310         * recover-src/amrecover.c: Ditto.
6311         * recover-src/display_commands.c: Ditto.
6312         * recover-src/extract_list.c: Ditto.
6313         * recover-src/set_commands.c: Ditto.
6314         * server-src/reporter.c: Ditto.
6315
6316 2002-02-10 John R. Jackson (jrj@purdue.edu)
6317
6318         * changer-src/chg-zd-mtx.sh.in: Major cleanup and general overhaul.
6319         * docs/TAPE.CHANGERS: Cleanup.
6320
6321 2002-02-09 John R. Jackson (jrj@purdue.edu)
6322
6323         * common-src/arglist.h: Clean up gcc detection of printf style variable
6324           argument list functions.
6325         * changer-src/scsi-changer-driver.c: Ditto.
6326         * common-src/debug.c: Ditto.
6327         * common-src/dgram.c: Ditto.
6328         * common-src/error.c: Ditto.
6329         * common-src/packet.c: Ditto.
6330         * common-src/packet.h: Ditto.
6331         * common-src/security.c: Ditto.
6332         * common-src/snprintf.c: Ditto.
6333         * common-src/token.c: Ditto.
6334         * common-src/token.h: Ditto.
6335         * server-src/amindexd.c: Ditto.
6336         * server-src/conffile.c: Ditto.
6337         * server-src/diskfile.c: Ditto.
6338         * server-src/logfile.c: Ditto.
6339         * server-src/logfile.h: Ditto.
6340         * server-src/server_util.c: Ditto.
6341
6342 2002-02-09 John R. Jackson (jrj@purdue.edu)
6343
6344         * configure.in: Must look in both strings.h and string.h when trying
6345           to find function declarations (strncasecmp was not found on AIX
6346           but is really there and our override caused a mismatch error).
6347
6348 2002-02-09 John R. Jackson (jrj@purdue.edu)
6349
6350         * configure.in: Add code to test for a type defined in other than the
6351           autoconf expected locations.  Use it to look for socklen_t.
6352
6353 2002-02-08 John R. Jackson (jrj@purdue.edu)
6354
6355         * server-src/amadmin.c (check_dumpuser): Make it fatal to attempt to
6356           do an operation that would alter any files when run as someone other
6357           than the dump user from amanda.conf.  This should prevent files from
6358           ending up with incorrect ownership.
6359
6360 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6361
6362         * man/amrecover.8.in (settape): Document that the hostname is required
6363           if the protocol (tape:, file:, rait:, null:) is specified.
6364         * man/amrecover.8.in (settape): Document that it is posible to
6365           change the tape device when asked to load tape.
6366
6367 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6368
6369         * server-src/holding.c (scan_holdingdir): Create the list in 
6370           datestamp order.
6371
6372 2002-02-02 John R. Jackson (jrj@purdue.edu)
6373
6374         * configure.in: Add unistd.h to list of places to look for ruserok()
6375           declaration.  Reported by John Koenig <jfkoenig@vipb.com> on ALPHA
6376           running OSF1 v5.1
6377
6378 2002-02-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6379         Reported by Roland E. Lipovits <rel@lipo.at0.net>
6380
6381         * server-src/amstatus.pl.in: Don't double-counts the failed 
6382           estimate partitions.
6383
6384 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6385
6386         * configure.in: New --with-maxtapeblocksize with a default of 32.
6387         * common-src/amanda.h: MAX_TAPE_BLOCK_KB is defined in amanda.h
6388
6389 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6390
6391         * common-src/fileheader.c (build_header): Never write the
6392           BLOCKSIZE= line.
6393         * common-src/fileheader.c (parse_file_header): Do not parse the
6394           BLOCKSIZE= line.
6395
6396 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6397
6398         * common-src/fileheader.c (build_header): Write the BLOCKSIZE= line
6399           after the dd if=... line.
6400
6401 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6402
6403         * server-src/driver.c: Init code to 0.
6404
6405 2002-01-29 John R. Jackson (jrj@purdue.edu)
6406
6407         * tape-src/output-tape.c (tape_tapefd_fsf): Some systems cannot deal
6408           with large stack variables, so allocate tape I/O buffers dynamically.
6409         * tape-src/tapeio.c (tapefd_rdlabel): Ditto.
6410
6411 2002-01-25 John R. Jackson (jrj@purdue.edu)
6412
6413         * server-src/driver.c: Log non-zero exit codes and signals from all
6414           the dumpers and taper.
6415
6416 2002-01-25 John R. Jackson (jrj@purdue.edu)
6417
6418         * server-src/amindexd.c: Clean up reporting of errors by gethostby*()
6419           functions.  Make sure they always report what they were trying to
6420           look up, and don't bother reporting errno (it would be h_errno).
6421
6422 2002-01-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6423
6424         * common-src/fileheader.h (dumpfile_t): Add blocksize field.
6425         * common-src/fileheader.h (build_header): Change prototype.
6426         * common-src/fileheader.c (fh_init): blocksize default to 
6427           DISK_BLOCK_BYTES.
6428         * common-src/fileheader.c (parse_file_header): Parse BLOCKSIZE= line.
6429         * common-src/fileheader.c (build_header): Remove blocksize parameter, 
6430           write the BLOCKSIZE= line.
6431         * tape-src/tapeio.c: set file.blocksize, Change call to build_header.
6432         * restore-src/amrestore.c: Ditto.
6433         * server-src/dumper.c: Ditto.
6434         * server-src/taper.c: Ditto.
6435         * server-src/holding.c: Ditto.
6436         * server-src/chunker.c: Ditto.
6437
6438 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6439
6440         * changer-src/scsi-changer-driver.c (SCSI_ReadElementStatus):
6441           set ret to -1.
6442
6443 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6444
6445         * server-src/planner.c: Check for dp->todo.
6446
6447 2002-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6448         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
6449
6450         * changer-src/chg-scsi.c: Typo.
6451
6452 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6453
6454         * changer-src/Makefile.am: Run `perl -c' on perl script.
6455         * client-src/Makefile.am: Ditto.
6456         * dumper-src/Makefile.am: Ditto.
6457         * server-src/Makefile.am: Ditto.
6458
6459 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6460         Reported by Geert Uytterhoeven <geert@linux-m68k.org>
6461
6462         * README: Amanda compile on Linux/m68k.
6463
6464 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6465
6466         * changer-src/chg-rth.pl.in: Typo. fi -> }.
6467
6468 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6469         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
6470
6471         * changer-src/chg-chio.pl.in: Typo. fi -> }.
6472         * changer-src/chg-chio.pl.in (prefix, exec_prefix): Set correctly.
6473         * changer-src/chg-chio.pl.in (max_picker): Init to -1.
6474
6475 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6476
6477         * recover-src/extract_list.c (okay_to_continue_tape): Ignore \n
6478           at end of string.
6479
6480 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6481
6482         * server-src/amoverview.pl.in: Ignore some line from amadmin.
6483
6484 2002-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6485
6486         * common-src/event.c: Use ASSERTIONS not ASSERT.
6487
6488 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6489
6490         * tape-src/output-tape.c (tape_tapefd_rewind, tape_tapefd_unload):
6491           Init rc to -1.
6492         * changer-src/scsi-irix.c (SCSI_OpenDevice): Cast to int.
6493         * common-src/match.c (clean_regex): Cast to int.
6494
6495 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6496         Reported by <ian.willis@sge.net>
6497
6498         * common-src/rsh-security.c: Fix for RSH_DEBUG.
6499
6500 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6501
6502         * config/ltconfig: Remove
6503         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.2.
6504         * config/config.guess: Update from
6505           ftp://ftp.gnu.org/gnu/config/config.guess
6506         * config/config.sub: Update from 
6507           ftp://ftp.gnu.org/gnu/config/config.sub
6508         * config/depcomp, config/install-sh, config/missing, 
6509           config/mkinstalldirs: Update from automake 1.5
6510         * config/Makefile.am (EXTRA_DIST): Remove ltconfig.
6511
6512 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6513         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
6514
6515         * configure.in: Add missing [.
6516
6517 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6518         Patch by Jason Thomas <jason@topic.com.au>
6519              and Eric Siegerman <erics@telepres.com>
6520
6521         * common-src/bsd-security.c (check_user_amandahosts): improve message.
6522
6523 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6524
6525         * server-src/driver.c: Do not go in degraded mode in nodump mode.
6526         * server-src/conffile.c:Check many options to be sure they are positive.
6527
6528 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6529
6530         * changer-src/chg-scsi.c (get_relative_target): return -1;
6531         * changer-src/scsi-irix.c (SCSI_ExecuteCommand): Remove Zero variable.
6532         * common-src/amanda.h: include strings.h if HAVE_STRINGS_H is defined.
6533         * server-src/amadmin.c (info_one): Remove lev0date variable.
6534         * server-src/amadmin.c (import_db): Remove vers_comment variable.
6535         * server-src/amindexd.c (main): Remove arg_len variable.
6536         * server-src/amtrmidx.c (main): Remove level_position and
6537           datestamp_position variables.
6538         * server-src/changer.c (changer_current): Remove checked variable.
6539         * server-src/conffile.c (read_confline): Check value of RESERVE.
6540         * server-src/conffile.c (get_tapetype): Check value of LENGTH and
6541           FILEMARK.
6542         * server-src/diskfile.h: bit field of 1 bit must be unsigned.
6543         * server-src/driver.c (main): Don't check the value of RESERVE.
6544         * server-src/driver.c (find_diskspace): Remove as_pref variable.
6545         * server-src/driverio.c (getresult): cast cmd_t.
6546         * server-src/chunker.c (databuf_flush): save_type is a filetype_t.
6547         * server-src/find.c (search_logfile): Remove host_undo_ch and
6548           disk_undo_ch variables.
6549         * server-src/holding.c (pick_datestamp): Remove result variable.
6550         * server-src/server_util.c (getcmd): Loop on a cmd_t variable.
6551         * server-src/taper.c (tape_writer_side): Remove out_open variable.
6552         * tape-src/tapeio.c (tapefd_close): Cast to (void *).
6553
6554 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6555
6556         * client-src/selfcheck.c: Fix compiler warning.
6557         * changer-src/chg-scsi.c: Ditto.
6558         * changer-src/scsi-changer-driver.c: Ditto.
6559         * changer-src/scsi-defs.h: Ditto.
6560         * server-src/server_util.c: Ditto.
6561         * common-src/fileheader.c: Ditto.
6562
6563 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6564
6565         * configure.in: Set MAX_TAPE_BLOCK_KB on linux
6566
6567 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6568         Patch by Blaz Zupan <blaz@amis.net>
6569
6570         * changer-src/chg-zd-mtx.sh.in: typo.
6571
6572 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6573
6574         * client-src/selfcheck.c (check_access): New function (old check_file
6575           function).
6576         * client-src/selfcheck.c (check_file): Check that the filename is a
6577           file.
6578         * client-src/selfcheck.c (check_dir): Check that dirname is a directory.
6579
6580 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6581         Patch by Henning Schmiedehausen <henning@forge.intermeta.de>
6582
6583         * common-src/file.c (safe_cd): Create the AMANDA_DBGDIR and
6584           AMANDA_TMPDIR directory.
6585
6586 2001-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6587
6588         * server-src/amverify.sh.in: Check that @AMANDA_TMPDIR@ exist.
6589         * server-src/amrmtape.sh.in: Ditto.
6590
6591 2001-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6592
6593         * changer-src/Makefile.am: fix setting of libexec_PROGRAMS.
6594
6595 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6596
6597         * server-src/amstatus.pl.in: Work with amflush log.
6598
6599 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6600
6601         * server-src/driver.c (nodump): new argument, Don't start the dumpers
6602           if set.
6603         * server-src/holding.c (get_flush): chdir to original cwd.
6604         * server-src/reporter.c: accept driver and amflush line in log.
6605         * server-src/amflush.c: exec driver to do the flushing.
6606
6607 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6608
6609         * server-src/amstatus.pl.in: Fixup for estimate, write flush line.
6610
6611 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6612
6613         * recover-src/extract_list.c: You can change the tape device
6614           between each tape.
6615
6616 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6617
6618         * restore-src/amrestore.c (restore): try to find the next chunk 
6619           in the current directory.
6620
6621 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6622
6623         * example/amanda.conf.in: typo.
6624
6625 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6626
6627         Patch by Roland E. Lipovits <rel@lipo.at0.net>
6628         * example/amanda.conf.in: typo.
6629
6630 2001-12-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6631
6632         * server-src/dumper.c, server-src/taper.c, server-src/chunker.c:
6633         Replace TRY_AGAIN by TRYAGAIN.
6634
6635 2001-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6636         Patch by Michael D. Beynon <beynon@ll.mit.edu>
6637
6638         * server-src/driver.c (main): Take care of empty tapeq.
6639
6640 2001-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6641
6642         * server-src/diskfile.c (lookup_host): Match must be exact.
6643
6644 2001-11-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6645
6646         * server-src/planner.c: Add host, disk, datestamp and level on 
6647         FLUSH line. Add datestamp on DUMP line.
6648         * server-src/driver.c (read_flush): Read new format of FLUSH line.
6649         * server-src/driver.c (read_schedule): Read new format of DUMP line.
6650         * server-src/amflush.c: Write a datestamp on stderr.
6651         * server-src/amdump.sh.in: Write a datestamp on stderr.
6652         * server-src/amstatus.pl.in: Works with autoflush.
6653
6654 2001-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA> 
6655         * server-src/conffile.c (autoflush): New configuration options.
6656         * server-src/conffile.h (autoflush): New configuration options.
6657         * man/amanda.8.in: Document it.
6658         * example/amanda.conf.in: Document it.
6659         * server-src/holding.h (get_flush, pick_datestamp, pick_all_datestamp,
6660         cleanup_holdingdisk): New prototype.
6661         * server-src/holding.c (scan_holdingdir, cleanup_holdingdisk,
6662         get_flush): New function.
6663         * server-src/holding.c (pick_datestamp, pick_all_datestamp): New
6664         verbose argument.
6665         * server-src/amcleanupdisk.c: Change call to pick_all_datestamp.
6666         * server-src/amflush.c: Change call to pick_all_datestamp.
6667         * server-src/find.c: Change call to pick_all_datestamp.
6668         * server-src/planner.c: Write FLUSH line to driver, the schedule
6669         line contain the keyword DUMP.
6670         * server-src/planner.c: Add datestamp to SUCCESS and FAIL line.
6671         * server-src/amstatus.pl.in: New parsing of DUMP line.
6672         * server-src/driverio.h: New datestamp field in sched_t;
6673         * server-src/driver.c (build_diskspace): New function to build a
6674         assignedhd_t from an holding file.
6675         * server-src/driver.c (read_flush): New function to read the list
6676         of files to flush.
6677         * server-src/driver.c (read_schedule): Parse the keyword DUMP.
6678         * server-src/driver.c: Add datestamp to FAIL line.
6679         * server-src/dumper.c: Add datestamp to FAIL line.
6680         * server-src/reporter.c (timedata_t, repdata_t) : Major change of
6681         structure.
6682         * server-src/taper.c: Add datestamp to FAIL line.
6683
6684 2001-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6685
6686         * server-src/conffile.c: New dumporder configuration.
6687         * server-src/conffile.h: Likewise.
6688         * server-src/driver.c (start_some_dumps): Use dumporder to
6689         select the next disk to dump.
6690         * example/amanda.conf.in: Give an example of dumporder.
6691         * man/amanda.8.in: Document it.
6692
6693 2001-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6694
6695         * recover-src/amrecover.h (cd_glob, cd_regex, cd_dir): New prototypes.
6696         * recover-src/set_commands.c (cd_glob, cd_regex, cd_dir): New functions.
6697         * recover-src/uparse.y: Add new token CDX, call cd_glob instead 
6698         of set_directory for cd command, call cd_regex for cdx command.
6699         * recover-src/uscan.l: On cdx string return CDX token.
6700         * recover-src/help.c: Document it.
6701         * man/amrecover.8.in: Document it.
6702
6703 2001-09-26 John R. Jackson (jrj@purdue.edu)
6704
6705         * server-src/reporter.c: Fix problem when column sizes are negative.
6706
6707 2001-09-21 John R. Jackson (jrj@purdue.edu)
6708
6709         * server-src/Makefile.am: Add -I../common-src so genversion.h can be
6710           found (since it is built on the fly).  Only fails when build is done
6711           in a different directory than the sources.
6712
6713 2001-09-17 John R. Jackson (jrj@purdue.edu)
6714
6715         * server-src/getconf.c: Add capabilities to amgetconf to return
6716           build environment values and also to open and close a debug file
6717           (e.g. for scripts).
6718         * man/amgetconf.8.in: Ditto.
6719         * changer-src/chg-scsi.c: Ditto.
6720         * common-src/amanda.h: Ditto.
6721         * common-src/debug.c: Ditto.
6722         * common-src/error.c: Ditto.
6723         * server-src/dumper.c: Ditto.
6724
6725 2001-09-17 John R. Jackson (jrj@purdue.edu)
6726
6727         * server-src/planner.c: Make sure we do not attempt to bump beyond
6728           level 9.
6729
6730 2001-09-16 Thomas Hepper (th@ant.han.de)
6731         * changer-src/chg-scsi.c: Added new config option autoinv, 
6732         if not set no auto inventory will be done if the label db is out of 
6733         sync. Reworked MapBarCode, now the parameters are passed as a struct 
6734         and the result is returned in this struct (MBC_T), 
6735         also removed some duplicate/nonsens code from MapBarCode
6736         Changed the definitions for slot_file. It was used duplicate, 
6737         1. as the config file set by amanda.conf, and second set by the
6738         config option in the chg-scsi config file. Now the file from
6739         amanda.conf is called chg_scsi_conf. and changer_file is renamed 
6740         to slot_file.
6741         Added check if cleanfile is not set, if true clean_file is set to NULL
6742         Now return if tape_device is not in the range 0-9.
6743         Added some checks if we have all informations like slot_file, 
6744         devices etc. Fixed and error in the search function, 
6745         if the searched vol is already loaded return the correct info 
6746         and not 'label not found'. Fixed error in the parameter passing 
6747         to get_relative_slot. If the option was -slot last we where 
6748         1 above the end parameter..
6749
6750         * changer-src/scsi-bsd.c: Fix compile problems.
6751         * changer-src/scsi-changer-driver.c: Fixed the last problems :-) 
6752         for the label/barcode handling...
6753         * changer-src/scsi-defs.h: Added new struct MBC_T
6754         * changer-src/sense.c: Added some more messages for Exabyte 210 lib
6755
6756 2001-09-01 John R. Jackson (jrj@purdue.edu)
6757
6758         * client-src/sendsize.c: Fix memory allocation problem.
6759
6760 2001-08-31 John R. Jackson (jrj@purdue.edu)
6761
6762         * server-src/amindex.c: Fix memory leak.  Compliments of Robert Minsk
6763           <egbert@centropolisfx.com>.
6764         * server-src/logfile.c: Fix memory leak.  Compliments of Robert Minsk
6765           <egbert@centropolisfx.com>.
6766
6767 2001-08-30 John R. Jackson (jrj@purdue.edu)
6768
6769         * server-src/planner.c: Fix problem with maintenance of total level
6770           0 size when disk being brought back into the schedule was not doing
6771           a level 0.  Compliments of Robert Minsk <egbert@centropolisfx.com>.
6772
6773 2001-08-24 John R. Jackson (jrj@purdue.edu)
6774
6775         * server-src/amverify.sh.in: Fix missing backtick error.
6776
6777 2001-08-24 John R. Jackson (jrj@purdue.edu)
6778
6779         * server-src/taper.c: Allocate buffers on page boundaries.
6780
6781 2001-08-22 John R. Jackson (jrj@purdue.edu)
6782
6783         * tape-src/Makefile.am: Add chown/chgrp rules for ammt/amdd install
6784           so they end up like all the other Amanda programs.
6785
6786 2001-08-15 Thomas Hepper (th@ant.han.de)
6787         * changer-src/chg-scsi.c. Removed version 1 DB support from mapBarCode. Changed the way parameter
6788         are given to MapBarCode and returned from there. No a struct is passed where all infos
6789         will be returned to the calling function.
6790         If eject is set we will not call LogSense in chg-scsi because it is also called in the
6791         eject function.
6792         * changer-src/scsi-defs.h: Added struct MBC_T used by MapBarCode.
6793         * changer-src/scsi-changer-driver.c: Changed all calls to MapBarCode to the new way
6794
6795 2001-08-14 John R. Jackson (jrj@purdue.edu)
6796
6797         * docs/EXCLUDE: New document from Andrew Hall <ahall@secureworks.net>
6798           describing how to set up and use GNU tar exclusions.
6799         * docs/Makefile.am: Added EXCLUDE and PORT.USAGE.
6800
6801 2001-08-14 John R. Jackson (jrj@purdue.edu)
6802
6803         * docs/PORT.USAGE: New document about how Amanda ports are used.
6804
6805 2001-08-14 John R. Jackson (jrj@purdue.edu)
6806
6807         * client-src/sendsize.c: Fix patch merge goof (ap_snprintf -> snprintf).
6808
6809 2001-08-14 John R. Jackson (jrj@purdue.edu)
6810
6811         * common-src/stream.c: Add stream_client_privileged() function to
6812           get a privileged port and fail if one is not available.  The older
6813           stream_client() function gets a (non-privileged) port in the
6814           configured portrange, if set and possible, else anything available.
6815         * common-src/stream.h: Prototypes.
6816         * recover-src/amrecover.c: Use stream_client_privileged() instead of
6817           stream_client().
6818         * recover-src/extract_list.c: Ditto.
6819         * configure.in: Added several more port range sanity checks.  Added
6820           --with-tcpportrange as an alias for --with-portrange.
6821
6822 2001-08-09 Thomas Hepper (th@ant.han.de)
6823         * changer-src/chg-scsi.c: Added check in MapBarCode if the labelfile
6824         parameter is empty, and if yes return. 
6825         Added global variable do_inventory, and if set do an inventory before
6826         exit.
6827         In MapBarCode changed the way the UPDATE_SLOT is done, now it uses
6828         the slot number passed to MapBarCode to find and update the record.
6829         * changer-src/scsi-changer-driver.c: Added def. for BreeceHill Q7
6830         Added global variables which are set by the tape_rdlabel function
6831         in eject/unload.
6832         Reworked the way how the updates of the labelfile are done.
6833
6834 2001-08-01 John R. Jackson (jrj@purdue.edu)
6835
6836         * client-src/selfcheck.c: Fix typos I introduced into the PC subdir
6837           patch.
6838         * client-src/sendbackup-gnutar.c: Ditto.
6839         * client-src/sendsize.c: Ditto.
6840
6841 2001-08-01 Marko Injac <marko.injac@mail.insert.si> via John R. Jackson (jrj@purdue.edu)
6842
6843         * client-src/findpass.c: Allow backup of subdirs of PC shares for
6844           amanda-2.4.1beta1 by Greg Shebert amanda-hackers list Tue Feb 1,
6845           2000.  Ported to amanda-2.4.2p2 on debian potato by Marko Injac.
6846         * client-src/findpass.h: Ditto.
6847         * client-src/selfcheck.c: Ditto.
6848         * client-src/sendbackup-gnutar.c: Ditto.
6849         * client-src/sendsize.c: Ditto.
6850         * docs/SAMBA: Ditto.
6851
6852 2001-08-01 John R. Jackson (jrj@purdue.edu)
6853
6854         * client-src/sendsize.c: Prefix each debug line with sendsize process
6855           information to make picking out the output from a particular estimate
6856           run easier when maxdumps > 1.
6857
6858 2001-08-01 John R. Jackson (jrj@purdue.edu)
6859
6860         * server-src/amcheck.c: Unlink the temp files as soon as they are
6861           created so they always go away when amcheck terminates.  Use
6862           pipespawn() instead of system() to call the MAILER program.  Call
6863           dbopen()/dbclose() in main() to write to a debug file instead of
6864           stderr.
6865
6866 2001-08-01 John R. Jackson (jrj@purdue.edu)
6867
6868         * common-src/debug.c: Only rename files that end in ".debug".
6869
6870 2001-08-01 John R. Jackson (jrj@purdue.edu)
6871
6872         * common-src/pipespawn.c: Show empty pipespawn() args as "".
6873
6874 2001-07-31 John R. Jackson (jrj@purdue.edu)
6875
6876         * server-src/conffile.h: Add support for tapetype "blocksize" keyword.
6877         * server-src/conffile.c: Add tapetype "blocksize" keyword.  Use
6878           DISK_BLOCK_KB where appropriate instead of TAPE_BLOCK_SIZE.  Disallow
6879           negative tape length and tapemark size.
6880         * common-src/alloc.c: Add new amtable_free() function.  Adjust args
6881           to amtable_alloc() to be consistent with amtable_free().
6882         * common-src/amanda.h: Add new am_round() and am_floor() macros.
6883           Define new DISK_BLOCK_KB, DISK_BLOCK_BYTES, MAX_TAPE_BLOCK_KB,
6884           MAX_TAPE_BLOCK_BYTES constants.  Remove TAPE_BLOCK_SIZE and
6885           TAPE_BLOCK_BYTES.
6886         * common-src/bsd-security.c: TAPE_BLOCK_BYTES -> NETWORK_BLOCK_BYTES.
6887           Use -1 instead of DEFAULT_SIZE.
6888         * common-src/rsh-security.c: Ditto.
6889         * common-src/fileheader.c: Change write_header() to build_header().
6890           Add blocksize arg.  Get rid of unused fill_buffer() function.
6891         * common-src/fileheader.h: Ditto.
6892         * common-src/stream.c: Use negative value to indicate default buffer
6893           size.
6894         * common-src/stream.h: Add NETWORK_BLOCK_BYTES and STREAM_BUFSIZE
6895           constants.  Remove DATABUF_SIZE and DEFAULT_SIZE.
6896         * man/amanda.8.in: Document the new "blocksize" tapetype keyword.
6897           Document that "length" in tapetype has meaning to some output
6898           drivers.  Fix "bumpdays" and "speed" defaults.  Document new "file:"
6899           output driver record length data file.
6900         * man/amrestore.8: Add new "-b blocksize" arg.  Add description of
6901           how to catalogue the images on a tape.
6902         * recover-src/amrecover.c: DEFAULT_SIZE -> -1.
6903         * recover-src/extract_list.c: DEFAULT_SIZE -> -1.  Use DISK_BLOCK_BYTES
6904           instead of TAPE_BLOCK_BYTES for the header size.
6905         * restore-src/amrestore.c: Add new "-b blocksize" arg.  Document how
6906           the header is handled.  Deal with arbritrary tape record sizes.
6907         * server-src/amlabel.c: Use the tapetype blocksize.
6908         * server-src/chunker.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
6909           appropropriate instead of older constants.  Rewrite disk I/O buffer
6910           management.  Never pad output stream (e.g. to holding disk).  Use
6911           -1 for default stream buffer size.
6912         * server-src/driver.c: Use DISK_BLOCK_KB where appropriate instead of
6913           TAPE_BLOCK_SIZE.
6914         * server-src/driverio.c: Set chunker argv[0] to name based on which
6915           dumper it is working with.
6916         * server-src/dumper.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
6917           appropropriate instead of older constants.  Rewrite disk I/O buffer
6918           management.  Never pad output stream (e.g. to holding disk).  Use
6919           -1 for default stream buffer size.
6920         * server-src/holding.c: Change TAPE_BLOCK_BYTES to DISK_BLOCK_BYTES.
6921           Use fullread() instead of fill_buffer().
6922         * server-src/planner.c: Use tapetype blocksize instead of constant
6923           for tape length calculations.
6924         * server-src/taper.c: Support tapetype blocksize.  Only pad writes if
6925           blocksize is negative.  Reorganize shared memory buffers to put
6926           data on page boundaries.  Try reducing tapebuf count if allocation
6927           fails.
6928         * tape-src/output-file.c: Maintain record size information.  Use mask
6929           and flags from caller.
6930         * tape-src/output-null.c: Use new amtable_alloc() arg order.
6931         * tape-src/output-rait.c: Use new amtable_alloc() arg order.  Add
6932           private version of amtable_free() for standalone build.  Fix off
6933           by one and other table allocation problems.
6934         * tape-src/output-rait.h: Maintain file descriptor count in the
6935           structure.
6936         * tape-src/tapeio.c: Support tapetype blocksize.  Use new
6937           amtable_alloc() arg order.  Fix some error message text.  
6938         * tape-src/tapeio.h: New prototypes with blocksize arg.
6939         * tape-src/tapetype.c: Add "-b blocksize" arg.  Fix some end case
6940           aborts.
6941
6942 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
6943
6944         * recover-src/amrecover.c: Improve the "Unexpected server end of file"
6945           message.
6946
6947 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
6948
6949         * man/amanda.8.in: Document includefile.
6950         * man/amdump.8.in: Add note that local crontab documention should be
6951           checked for proper syntax.
6952         * man/amrecover.8.in: Document use of PAGER environment variable.
6953         * man/amrestore.8: Document that GNU tar must be used as some vendor
6954           tar programs cannot read GNU tar format.
6955         * docs/FAQ: Update location of online FAQ.
6956
6957 2001-07-25 John R. Jackson <jrj@purdue.edu>
6958
6959         * docs/TAPE.CHANGER: Changes from Ben Lewis (bhlewis@purdue.edu) to
6960           document the new (but optional) searchable features.
6961
6962 2001-07-19 John R. Jackson <jrj@purdue.edu>
6963
6964         * common-src/error.c: Fix function prototype error.
6965
6966 2001-07-19 John R. Jackson <jrj@purdue.edu>
6967
6968         * common-src/error.c: Add new function errordump() that acts like
6969           error() but calls abort() to (try to) drop core.
6970         * common-src/amanda.h: Prototype.
6971         * common-src/alloc.c: Call errordump() instead of error() for some
6972           memory allocation failures to aid traceback.
6973
6974 2001-07-19 John R. Jackson <jrj@purdue.edu>
6975
6976         * server-src/amadmin.c: Improve the error message when read_conffile()
6977           fails.
6978         * server-src/amcheck.c: Ditto.
6979         * server-src/amcleanupdisk.c: Ditto.
6980         * server-src/amflush.c: Ditto.
6981         * server-src/amlabel.c: Ditto.
6982         * server-src/amlogroll.c: Ditto.
6983         * server-src/amtape.c: Ditto.
6984         * server-src/amtrmidx.c: Ditto.
6985         * server-src/amtrmlog.c: Ditto.
6986         * server-src/driver.c: Ditto.
6987         * server-src/dumper.c: Ditto.
6988         * server-src/getconf.c: Ditto.
6989         * server-src/planner.c: Ditto.
6990         * server-src/reporter.c: Ditto.
6991         * server-src/taper.c: Ditto.
6992
6993 2001-07-19 John R. Jackson <jrj@purdue.edu>
6994
6995         * server-src/driverio.c: Make the name "ps" reports match the dumper
6996           name (e.g. "dumper3").
6997
6998 2001-07-18 John R. Jackson <jrj@purdue.edu>
6999
7000         * changer-src/chg-chio.pl.in: Try to unload the drive before moving
7001           a tape back to a slot.  Fixes a problem on Ecrix AutoPAK devices.
7002           Patch compliments of Sam Leffler <sam@errno.com>.
7003
7004 2001-07-18 John R. Jackson <jrj@purdue.edu>
7005
7006         * server-src/amverify.sh.in: Change to the Amanda temp directory
7007           instead of the config directory.  In addition to making amverify
7008           act like most other Amanda programs, this gets around an
7009           xfsrestore bug.
7010
7011 2001-07-18 John R. Jackson <jrj@purdue.edu>
7012
7013         * man/amanda.8.in: Describe the .amandahosts format better.  Clean up
7014           a couple of minor typos.
7015
7016 2001-07-13 John R. Jackson <jrj@purdue.edu>
7017
7018         * common-src/dgram.h: Improve UDP datagram size calculation.
7019         * server-src/amcheck.c: Break up large requests into pieces.
7020         * server-src/planner.c: Break up large requests into pieces.
7021
7022 2001-07-12 John R. Jackson <jrj@purdue.edu>
7023
7024         * tape-src/amdd.c: Use tapefd_close() in amdd if the file was
7025           opened with tape_open().  This does any necessary output driver
7026           cleanup (such as moving the current file position for "file:").
7027
7028 2001-07-12 John R. Jackson <jrj@purdue.edu>
7029
7030         * Makefile.am: Fix automake warning.
7031
7032 2001-07-11 John R. Jackson <jrj@purdue.edu>
7033
7034         * tape-src/tapetype.c: Use tapefd_write() instead of write().
7035
7036 2001-07-11 John R. Jackson <jrj@purdue.edu>
7037
7038         * common-src/file.c: Fix a memory leak.  Grab exponentially larger
7039           chunks of memory up to a point, then level out.
7040
7041 2001-07-11 John R. Jackson <jrj@purdue.edu>
7042
7043         * tape-src/tapetype.c: Only report a pass summary when stderr is not
7044           a tty.  Deal with some obscure end cases.
7045
7046 2001-07-10 John R. Jackson <jrj@purdue.edu>
7047
7048         * changer-src/scsi-aix.c: Convert Tape_Eject to Tape_Ioctl.
7049         * changer-src/scsi-solaris.c: Ditto.
7050
7051 2001-07-10 John R. Jackson <jrj@purdue.edu>
7052
7053         * server-src/amcheck.c: Move user name check before attempt to create
7054           temp files so more appropriate error message is generated.
7055
7056 2001-07-09 John R. Jackson <jrj@purdue.edu>
7057
7058         * common-src/dgram.c: Fix error end case unitialized variable.
7059
7060 2001-07-05 John R. Jackson <jrj@purdue.edu>
7061
7062         * docs/TAPE.CHANGERS: Minor docs/TAPE.CHANGERS update to clarify
7063           that -slot and -eject unload and put the current tape away.
7064
7065 2001-07-02 John R. Jackson <jrj@purdue.edu>
7066
7067         * changer-src/chg-manual.sh.in: Add yet another ONLINEREGEX, this one
7068           compliments of Nick (n_hibma@qubesoft.com) for some FreeBSD variant.
7069
7070 2001-06-29 John R. Jackson <jrj@purdue.edu>
7071
7072         * tape-src/tapeio.c: Move the device name parsing routines from the
7073           RAIT module to tapeio and make them generic.  This allows one
7074           module to open another, e.g. rait:{null:,z1,z2,z3}.  Maintain
7075           both the original open flags and mask and use them on the real open.
7076         * tape-src/amdd.c: Make sure this compiles "stand-alone".  To do so,
7077           use: gcc -Wall -DNO_AMANDA amdd.c output-rait.c output-tape.c.
7078           Abort as soon as one of the open calls fails instead of waiting
7079           for read/write to report a bad file descriptor.
7080           Pass a mask to the open function in case the output is created.
7081         * tape-src/ammt.c: Make sure this compiles "stand-alone".  To do so,
7082           use: gcc -Wall -DNO_AMANDA ammt.c output-rait.c output-tape.c.
7083         * tape-src/output-file.c: Maintain both the original open flags and
7084           mask and use them on the real open.
7085         * tape-src/output-null.c: Ditto.
7086         * tape-src/output-file.h: Change to non-prototype declaration of
7087           file_tape_open() to deal with the optional mask parameter.
7088         * tape-src/output-null.h: Ditto.
7089         * tape-src/output-tape.h: Ditto.
7090         * tape-src/tapeio.h: Ditto.  Add device name parsing prototypes.
7091         * tape-src/output-rait.c: Make sure this compiles "stand-alone".
7092           Maintain both the original open flags and mask and use them on the
7093           real open.
7094         * tape-src/output-rait.h: Make sure this compiles "stand-alone".
7095         * tape-src/output-tape.c: Make this part of the "stand-alone" compile
7096           of ammt and amdd since it knows all the proper ioctl operations.
7097           Maintain both the original open flags and mask and use them on the
7098           real open.
7099
7100 2001-06-27 John R. Jackson <jrj@purdue.edu>
7101
7102         * changer-src/chg-manual.sh.in: Add "bs=32k" to the dd command so
7103           some kernels would not complain about the tape block being larger
7104           than the buffer.
7105         * changer-src/chg-mtx.sh.in: Ditto.
7106
7107 2001-06-21 John R. Jackson <jrj@purdue.edu>
7108
7109         * server-src/planner.c: If the compression rate is very small (such
7110           as zero after some types of errors) and FORCE_FULL is set, a path
7111           is taken that (among other bad things) generates a schedule that
7112           driver cannot read (syntax errors).
7113         * server-src/conffile.c: Do not allow negative comprate values.
7114
7115 2001-06-19 John R. Jackson <jrj@purdue.edu>
7116
7117         * server-src/holding.c: Use fullread() instead of read() to read the
7118           holding disk file.
7119
7120 2001-06-19 John R. Jackson <jrj@purdue.edu>
7121
7122         * server-src/amtape.c: Document "slot advance" in the help output.
7123
7124 2001-06-19 John R. Jackson <jrj@purdue.edu>
7125
7126         * server-src/amindexd.c: Minor gethostbyaddr() argument change to be
7127           consistent with other Amanda usage.
7128
7129 2001-06-19 John R. Jackson <jrj@purdue.edu>
7130
7131         * server-src/amverify.sh.in: Better cross platform tar detection.
7132
7133 2001-06-19 John R. Jackson <jrj@purdue.edu>
7134
7135         * server-src/amverify.sh.in: More of the vrestore vs. 'b' flag change.
7136
7137 2001-06-19 John R. Jackson <jrj@purdue.edu>
7138
7139         * recover-src/amrecover.c: Add more debugging to guess_disk()
7140           function to better track how the disk is determined from the
7141           current working directory.  Report current working directory in
7142           error message.  Change "Trying" to "Trying disk" to distinguish
7143           this from host attempts.
7144         * recover-src/set_commands.c: Remove redundant amfree() call.  Remove
7145           redundant "OISD /" exchange.  Change "Trying" to "Trying host" to
7146           distinguish this from disk attempts.
7147
7148 2001-06-19 Thomas Hepper <th@ant.han.de>
7149         * changer-src/chg-scsi.c: Made clean_slot a global var. Removed
7150         the label db update stuff from the COM_SLOT part (moved to unload
7151         in scsi-changer-driver.c)
7152         * changer-src/scsi-changer-driver.c: Do an unload if the tape is
7153         loaded in the Inventory function. Added an marker to avoid recursion
7154         in Inventroy function. Added label db check in unload function and
7155         call Inventroy if it indicates an out of sync db
7156         
7157 2001-06-18 John R. Jackson <jrj@purdue.edu>
7158
7159         * recover-src/extract_list.c: Do not pass a 'b' (blocking) factor
7160           flag to vrestore.  Some versions do not like it.
7161
7162 2001-06-18 John R. Jackson <jrj@purdue.edu>
7163
7164         * common-src/dgram.c: Use a sin_addr arg to inet_ntoa() like all the
7165           other Amanda code.
7166         * common-src/stream.c: Ditto.
7167
7168 2001-06-18 John R. Jackson <jrj@purdue.edu>
7169
7170         * changer-src/chg-manual.sh.in: Add yet another online regex.  Found
7171           by George Herson <gherson@snet.net>.
7172
7173 2001-06-12 Thomas Hepper <th@ant.han.de>
7174         * changer-src/scsi-changer-driver.c (Inventory): Call Tape_Ready and let this function
7175         decide how to get the tape drive status.
7176         * changer-src/scsi-changer-driver.c (Tape_Ready): Now this function looks how to get
7177         the tape drive status.
7178         * changer-src/scsi-linux.c: changed some dbprintf to DebugPrint
7179         
7180 2001-06-10 Thomas Hepper <th@ant.han.de>
7181         * changer-src/chg-scsi.c: If get_current_slot gets an error from the fscanf function
7182         return also an error (-1) to the calling fucntion. (Fixes an error if the slot file
7183         is created with an touch)
7184         * changer-src/scsi-changer-driver.c: Fixed some NULL pointer errors in PrintConf
7185         Fixed an error in the unload function if the destination slot for the unload is not empty.
7186         (cut and paste error !!)
7187         
7188 2001-06-07 Thomas Hepper <th@ant.han.de>
7189         * changer-src/scsi-changer-driver.c: Change the type of TapeStatus from void to int.
7190         In PrintConf changed the loop variable for scan of pDev from 3 to CHG_MAXDEV.
7191         In PrintConf check if pDev[count].inquiry is a NULL pointer, and if yes skip.
7192         * changer-src/scsi-irix.c: Changed a lot, now it should work.
7193         * client-src/sendbackup-dump.c: Removed a { in the vxfsdump part. 
7194         * tape-src/output-tape.c: Fixed the tape status checks, the structure elelemt
7195         is called buf.mt_dposn not buf.mt.dposn.
7196         
7197 2001-06-04 Thomas Hepper <th@ant.han.de>
7198         * changer-src/scsi-changer-driver.c: Renamed Tape_Eject to Tape_Ioctl
7199         incl. change of passwd parameter.
7200
7201 2001-06-04 Thomas Hepper <th@ant.han.de>
7202         * changer-src/chg-scsi.c: include dmalloc.h for debugging of mem problems
7203         * changer-src/scsi-cam.c: Replaced Tape_Eject with a more generic 
7204         function to send different ioctls (Tape_Ioctl)
7205         * changer-src/scsi-bsd.c: see above
7206         * changer-src/scsi-hpux_new.c: see above
7207         * changer-src/scsi-irix.c: If the device can be opened in SCSI_OpenDevice
7208         set pDev[ip].avail to 1.
7209         * changer-src/scsi-linux.c: include dmalloc.h for debugging of mem problems.
7210         Fixed an invalid free in SCSI_OpenDevice. Replaced Tape_Eject with Tape_Ioctl.  
7211         * changer-src/scsi-changer-driver.c: include dmalloc.h for debugging of mem problems
7212         Eject the tape in the inventory function before the scan to get all
7213         barcode labels. Check in GenericEject if the device is able to receive
7214         SCSI commands, if not use the ioctl interface to eject the tape.
7215         Same for the GenericRewind function.
7216         Added the LogSense in the GenericEject function.
7217         * changer-src/scsi-defs.h: Added define for Tape_Ioctl commands, IOCTL_EJECT.
7218         
7219 2001-06-01 John R. Jackson <jrj@purdue.edu>
7220
7221         * server-src/amindexd.c (build_disk_table): Make sure a holding disk
7222           image is used rather than a copy also on tape, if both exist.
7223
7224 2001-06-01 Thomas Hepper <th@ant.han.de>
7225         * changer-src/scsi-changer-driver.c: Added an range check in the load
7226         function and abort if the requested slot is out of range.
7227         Fixed in incorrect pointer in the eject function if the ioctl
7228         interface is used
7229
7230 2001-05-29 John R. Jackson <jrj@purdue.edu>
7231
7232         * server-src/reporter.c: Fix PostScript output to only show what went
7233           on the tape, not what the total amount dumped.  Compliments of
7234           Joshua Baker-LePain <jlb17@duke.edu>.
7235
7236 2001-05-28 Thomas Hepper <th@ant.han.de>
7237         * changer-scsi/chg-scsi.c: Made the array for pDev configurable, #define CHG_MAXDEV
7238         * changer-scsi/scsi-defs.h: Added the define for CHG_MAXDEV
7239         * changer-src/scsi-cam.c: Set the flag pDev[x].avail to 1 if the device can be openend.
7240         Added debug message if the open fails. Implemented the function Tape_Status (not tested)
7241         * changer-src/scsi-changer-driver.c: Added the function DLT448ElementStatus, was lost
7242         during merge from 2.4.2. The difference to GenericElementStatus is that the DecodeModeSense
7243         needs an offset of 12, not 0 as in GenericElementStatus.
7244         Added an unload/GenericResetStatus in the Inventory function if an bar code reader is 
7245         available. This is to get the label from the loaded tape.
7246         The function TapeStatus sets now the status regardless of the status of the tape.
7247         If the device is capable for sending SCSI commands use the SCSI interface to get
7248         the status of the tape.
7249         * docs/TAPE.CHANGERS: Added some notes about the debuglevel keyword and a short
7250         description on how to use the sgen interface on solaris 2.8
7251         
7252 2001-05-18 John R. Jackson <jrj@purdue.edu>
7253
7254         * client-src/patch-system.sh.in: Missed a reference to kamanda in the
7255           last patch.  Compliments of Tom Schutter <t.schutter@att.net>.
7256
7257 2001-05-16 John R. Jackson <jrj@purdue.edu>
7258
7259         * client-src/patch-system.sh.in: Go ahead and update /etc/services
7260           on a client even if the services themselves are not turned on to
7261           inetd.  Compliments of Tom Schutter <t.schutter@att.net>.  Add
7262           the TCP port for amandad for future use.
7263
7264 2001-05-14 John R. Jackson <jrj@purdue.edu>
7265
7266         * client-src/amandad.c: Fix hang when the incoming packet size is
7267           larger than the pipe buffer.  Also, report back when too much
7268           data for a packet is returned by the service (this is not properly
7269           diagnosed back to, e.g., amcheck, but that's for another day).
7270         * common-src/bsd-security.c: Fix minor comment error.
7271
7272 2001-05-11 John R. Jackson <jrj@purdue.edu>
7273
7274         * common-src/util.c (bind_portrange): Log a debug message stating
7275           explicitly that all ports in the requested range were busy, or
7276           that a specific port failed bind() for an unexpected reason.
7277
7278 2001-05-07 John R. Jackson <jrj@purdue.edu>
7279
7280         * client-src/sendbackup-dump.c: Do not use full path to sed.  Found by
7281           Roland E. Lipovits (rel@lipo.at0.net).
7282
7283 2001-05-07 Thomas Hepper <th@ant.han.de>
7284         * changer-src/chg-scsi.c : Fixed NULL pointer in debug print of the config.
7285         * changer-src/scsi-canger-driver.c : Try to get and set the status of the tape drive in
7286         GenericElementStatus if there is an error condition. Move from tape to tape to get the
7287         tape loaded if it is only ejected.
7288         * changer-src/scsi-defs.h : New define for the Tape_Status fucntion, TAPE_NOT_LOADED
7289         * changer-src/scsi-linux.c : Added return type for tape not loaded
7290         * changer-src/scsi-solaris.c : In SCSI_ExecuteCommand force the direction to write if the
7291         databuffersize is 0, if the direction is input the ioctl returns with errno 22, invalid argument.
7292         The function Tape_Status will now return either tape loaded or not.
7293         * example/chg-scsi-solaris.conf.in : Added pointer to doc/TAPE.CHANGERS on how to configure
7294         the sgen driver.
7295         * doc/TAPE.CHANGERS : Updated the description of the chg-scsi.conf options, short description on
7296         how to confgure the sgen driver on solaris 2.8
7297         
7298 2001-05-04 John R. Jackson <jrj@purdue.edu>
7299
7300         * config/depcomp: Fix problem with argument*  processing and update to
7301           latest version.
7302
7303 2001-05-01 Thomas Hepper <th@ant.han.de>
7304         * changer-src/chg-scsi.c : Added patch for the slot advance command from John R. Jackson
7305         * changer-src/scsi-changer-driver.c : Renamed EXB120BarCode to EXB_BarCode. The currently
7306         known Exabyte libs handles the reader in the same way.
7307         
7308 2001-04-28 Thomas Hepper <th@ant.han.de>
7309         * changer-scsi/chg-scsi.c : Added missing break in MapBarCode
7310         Changed the way an tape label is read, use tape_open to open the
7311         device, not own open.
7312         * changer-src/scsi-changer-driver.c : Changed the way an tape label 
7313         is read, use tape_open to open the device, not own open.
7314         * changer-src/scsi-linux.c : Fixed error on reopen of non SCSI devices
7315         (/dev/nst0 for example)
7316         
7317 2001-04-26 Thomas Hepper <th@ant.han.de>
7318
7319         * changer-src/scsi-aix.c : Added more different ret values depending on the SCSI
7320         error condition. 
7321         * changer-src/scsi-changer-driver.c: Split GenericElementStatus in GetElementStatus which
7322         reads the element Status, and GenericElementStatus which handles the errors.
7323         Removed DLT448ElementStatus. Rework the handling of some SCSI error conditions...
7324         * changer-src/scsi-defs.h: Added more defs for the debug SECTION types.
7325         * changer-src/scsi-linux.c: Fixed an bug in the non SCSI device handling in SCSI_OpenDevice
7326         * changer-src/sense.c: Added EXB-210 defs, added defs for READ_ELEMENT_STATUS error conditions.
7327         
7328 2001-04-25 John R. Jackson <jrj@purdue.edu>
7329
7330         * changer-src/chg-rth.pl.in: Add exec_prefix back since it is usually
7331           used to define sbindir.  Sigh.  Include X=X assignments to get rid
7332           of the Perl warnings.
7333         * server-src/amoverview.pl.in: Ditto.
7334
7335 2001-04-24 John R. Jackson <jrj@purdue.edu>
7336
7337         * changer-src/chg-chio.pl.in: Remove unused exec_prefix to get rid of
7338           warning message.  Patch from Nick Hibma <n_hibma@qubesoft.com>.
7339
7340 2001-04-23 John R. Jackson <jrj@purdue.edu>
7341
7342         * client-src/selfcheck.c: Allow Samba shares with no password.
7343         * client-src/sendbackup-gnutar.c: Ditto.
7344         * client-src/sendsize.c: Ditto.
7345
7346 2001-04-15 Thomas Hepper <th@ant.han.de>
7347         * Makefile.am: Added contrib/gsc files to EXTRA_DIST
7348         
7349 2001-04-15 Thomas Hepper <th@ant.han.de>
7350         * changer-src/scsi-aix.c: Rework of the SCSI interface, support
7351         to talk to an device handled by the gsc driver (not tested yet)
7352         * changer-src/scsi-bsd.c (SCSI_ExecuteCommand): Fix error in
7353         device handling, Changed the return codes in case of an error
7354         * changer-src/scsi-cam.c (SCSI_ExecuteCommand): Fix error in 
7355         device handling, Changed the return codes in case of an error
7356         * changer-src/scsi-changer-driver.c: Changed the way 
7357         SCSI_ExecuteCommand passes error conditions back, error handling
7358         should now be done by the calling function, SCSI_Run for example.
7359         * changer-src/scsi-changer-driver.c (CheckMove): If the 
7360         DeviceCapabilitiesPage is not set do not return an error, print
7361         an warning to the debug file.
7362         * changer-src/scsi-defs.h: New define for AIX_USE_GSC
7363         New defines for the return codes of SCSI_ExecuteCommand
7364         * changer-src/scsi-hpux_new.c: Fix error in device handling.
7365         Changed the return codes in case of an error
7366         * changer-src/scsi-irix.c: Fix error in device handling.
7367         Changed the return codes in case of an error
7368         * changer-src/scsi-solaris.c: Fix error in device handling.
7369         Changed the return codes in case of an error
7370         
7371 2001-04-15 Thomas Hepper <th@ant.han.de>
7372         *contrib/gsc: Generic SCSI interface for AIX, used by chg-scsi
7373
7374 2001-04-13 John R. Jackson <jrj@purdue.edu>
7375
7376         * example/amanda.conf.in: Fix multiple holding disks comment.
7377
7378 2001-04-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7379
7380         * client-src/getfsent.h (search_fstab): New prototype.
7381         * client-src/getfsent.c (search_fstab): New arg check_dev, skip
7382         entry if check_dev==1 and device stats failed.
7383         * client-src/getfsent.c (open_fstab for linux): Open MOUNTED.
7384         * client-src/getfsent.c (close_fstab for linux): close MOUNTED.
7385         * client-src/getfsent.c (get_fstab_nextentry for linux): parse MOUNTED.
7386         * client-src/getfsent.c (amname_to_devname, amname_to_dirname, 
7387         amname_to_fstype): Call search_fstab sequentialy with 1 and 0 
7388         for check_dev.
7389
7390 2001-04-10 John R. Jackson <jrj@purdue.edu>
7391
7392         * docs/INSTALL: Update location to GNUPLOT per Lars Hecking
7393           <lhecking@nmrc.ie>.
7394
7395 2001-04-09 Thomas Hepper <th@ant.han.de>
7396         * changer-src/scsi-changer-driver.c: More rework on the debug output.
7397         changed definition SENSE_NO_TAPE to SENSE_TAPE_NOT_ONLINE
7398         In function GenericRewind do an check before the rewind to see
7399         if the tape is loaded.
7400         * changer-src/scsi-defs.h: New #define for the debug, SECTION_TAPE
7401         * changer-src/sense.c: New definition for SENSE_RETRY, ASC=4, ASCQ=1
7402         
7403 2001-04-08  Alexandre Oliva  <aoliva@redhat.com>
7404
7405         * client-src/getfsent.c (search_fstab): Don't skip entry just
7406         because device stats failed.
7407
7408 2001-04-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7409
7410         * config/config.guess: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
7411         * config/config.sub: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
7412         * config/mkinstalldirs: Upgrade from automake CVS.
7413
7414 2001-04-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7415
7416         * config/depcomp: new file for automake.
7417
7418 2001-04-03 John R. Jackson <jrj@purdue.edu>
7419
7420         * Makefile.am: Remove *.test.c from the distribution.
7421
7422 2001-04-02 John R. Jackson <jrj@purdue.edu>
7423
7424         * NEWS: Update some of the 2.4.2 items.
7425
7426 2001-03-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7427
7428         * client-src/getfsent.c (search_fstab): If the device doesn't 
7429         exist, it will take the entry from /etc/mtab.
7430
7431 2001-03-26 John R. Jackson <jrj@purdue.edu>
7432
7433         * server-src/amtape.c: Do not rewind for slot "advance".  Do not report
7434           device name (which is bogus) for slot "advance".
7435
7436 2001-03-23 John R. Jackson <jrj@purdue.edu>
7437
7438         * example/amanda.conf.in: Add warning that the sample amanda.conf
7439           will not work as is and must be edited to match the installation.
7440
7441 2001-03-21 John R. Jackson <jrj@purdue.edu>
7442
7443         * recover-src/extract_list.c (extract_files_child): Fix problem that
7444           caused xfsrestore arg list to not be NULL terminated.
7445
7446 2001-03-19 John R. Jackson <jrj@purdue.edu>
7447
7448         * configure.in: Add --with-debug-days (default is 4) and remove
7449           --with-pid-debug-files.
7450         * common-src/Makefile.am: Clean up test program dependencies.
7451         * common-src/debug.c: Create timestamped debug file names and remove
7452           files older (based on file name) than --with-debug-days.  Rename old
7453           style names to new style (based on modification time) the first time
7454           they are seen.
7455         * common-src/file.c: Use construct_datestamp() instead of private code.
7456         * common-src/genversion.c: Display AMANDA_DEBUG_DAYS and remove
7457           DEBUG_FILE_WITH_PID.
7458         * common-src/util.c: Move construct_datestamp to here and add new
7459           function construct_timestamp.  Change time used to build string to
7460           be an optional parameter instead of always getting it in the routine.
7461         * common-src/util.h: Add prototypes.
7462         * server-src/amcleanupdisk.c: Change construct_datestamp call to pass
7463           indication that it should get the current time.
7464         * server-src/amflush.c: Ditto.
7465         * server-src/chunker.c: Ditto.
7466         * server-src/driver.c: Ditto.
7467         * server-src/dumper.c: Ditto.
7468         * server-src/planner.c: Ditto.
7469         * server-src/server_util.c: Remove construct_datestamp (now in util.c).
7470         * server-src/server_util.h: Remove prototype.
7471
7472 2001-03-15 John R. Jackson <jrj@purdue.edu>
7473
7474         * server-src/planner.c (analyze_estimate): Do not do an incremental
7475           if FORCE_NO_BUMP is set and the last dump was a level 0.
7476
7477 2001-03-14 John R. Jackson <jrj@purdue.edu>
7478
7479         * server-src/amcheck.c: Change message from NOTE to WARNING when
7480           the hold file exists.
7481         * man/amcheck.8.in: Ditto.
7482
7483 2001-03-14 John R. Jackson <jrj@purdue.edu>
7484
7485         * client-src/selfcheck.c: Send smbclient via pipe instead of command
7486           line arg.  Various minor cleanups.  Use pipespawn instead of system()
7487           to clean up quoting problems and be consistent with sendsize and
7488           sendbackup.
7489         * client-src/sendbackup-dump.c: Send smbclient via pipe instead of
7490           line arg.  Various minor cleanups.
7491         * client-src/sendbackup-gnutar.c: Send smbclient via pipe instead of
7492           line arg.  Various minor cleanups.  Clean up listed incremental file
7493           handling.
7494         * client-src/sendbackup.c: Various minor cleanups.
7495         * client-src/sendsize.c: Send smbclient via pipe instead of command
7496           line arg.  Various minor cleanups.  Clean up listed incremental file
7497           handling.
7498         * docs/SAMBA: Update and cleanup.
7499         * common-src/pipespawn.c: Import from 2.4.2 branch.
7500         * common-src/pipespawn.h: Import from 2.4.2 branch.
7501         * common-src/Makefile.am: Add pipespawn.[ch] references.
7502
7503 2001-03-13 John R. Jackson <jrj@purdue.edu>
7504
7505         * recover-src/extract_list.c (extract_files_child): Fix xfsrestore
7506           argument list processing.
7507
7508 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7509
7510         * server-src/dumper.c (read_datafd): set errstr and return on
7511         databuf_write error.
7512
7513 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7514
7515         * server-src/dumper.c (read_indexfd): Ignore error while writing
7516         to the index file. Log an L_INFO message.
7517
7518 2001-03-09 John R. Jackson <jrj@purdue.edu>
7519
7520         * server-src/taper.c: Initialize tape_fd to -1 and test in a couple
7521           more places.  Run normal protocol after a tape startup error (e.g.
7522           "cannot overwrite") instead of just exiting to keep driver from
7523           reporting a broken pipe.
7524
7525 2001-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7526         Reported by Eric Schnoebelen <eric@cirr.com>
7527
7528         * server-src/changer.c (changer_command): Fix fd leak.
7529
7530 2001-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7531
7532         * server-src/server_util.c (cmdstr, getcmd, putresult): New.
7533         * server-src/server_util.h (cmdstr, getcmd, putresult): Prototype.
7534         * server-src/server_util.h (cmd_t): New.
7535         * server-src/driverio.c (cmdstr): Remove.
7536         * server-src/driverio.c: Use new cmdstr and cmd_t.
7537         * server-src/driverio.h: (tok_t): Remove.
7538         * server-src/amflush.c: Use new cmd_t.
7539         * server-src/driver.c: Use new cmd_t.
7540         * server-src/chunker.c (cmd_t, getcmd, putresult): Remove.
7541         * server-src/chunker.c: Use new cmd_t, getcmd and putresult.
7542         * server-src/dumper.c (cmd_t, getcmd, putresult): Remove.
7543         * server-src/dumper.c: Use new cmd_t, getcmd and putresult.
7544         * server-src/taper.c (cmd_t, getcmd, putresult): Remove.
7545         * server-src/taper.c: Use new cmd_t, getcmd and putresult.
7546
7547 2001-03-05 John R. Jackson <jrj@purdue.edu>
7548
7549         * common-src/util.c: The fullread() and fullwrite() functions should
7550           call read() and write(), not tapefd_read() and tapefd_write().
7551
7552 2001-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7553
7554         * server-src/planner.c (setup_estimate): Don't re-ask for level 0
7555         if last_level is 0 and FORCE_NO_BUMP is set.
7556
7557 2001-02-27 John R. Jackson <jrj@purdue.edu>
7558
7559         * common-src/stream.h: Move DATABUF_SIZE to stream.h.
7560         * client-src/sendbackup.c: Do not ask for a big receive buffer.
7561         * server-src/dumper.c: Ask for a bigger send buffer.  Minor typos.
7562         * server-src/taper.c: Ask for a bigger receive buffer.
7563         * recover-src/amrecover.c: Use stream_client instead of specific
7564           (and incorrect) bind() code.
7565         * recover-src/extract_list.c: Ditto.
7566
7567 2001-02-27 John R. Jackson <jrj@purdue.edu>
7568
7569         * common-src/dgram.c: Add lots more error logging to help track down
7570           problems.
7571
7572 2001-02-27 John R. Jackson <jrj@purdue.edu>
7573
7574         * common-src/stream.c: Add lots more error logging to help track down
7575           problems.
7576
7577 2001-02-27 John R. Jackson <jrj@purdue.edu>
7578
7579         * server-src/amtape.c: Rewind after loading a slot either by slot
7580           or by label.
7581
7582 2001-02-27 John R. Jackson <jrj@purdue.edu>
7583
7584         * configure.in: Add some commentary about why pushdef/popdef are
7585           needed around AC_CHECK_TYPE.
7586
7587 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7588         Patch by Alex Pilosov <alex@pilosoft.com>
7589
7590         * changer-src/scsi-cam.c: Clean up some SCSI CAM code,
7591         and permit use of both bus:target:lun(btl) and a full
7592         device name (/dev/ch0) as changerdev.
7593         
7594 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7595         Patch by Joe Rhett <jrhett@isite.net>
7596         and Jason Hollinden <jhollind@sammg.com>
7597
7598         * changer-src/chg-zd-mtx.sh.in:  Added barcode reader support,
7599         >9 tape slot support, variable for 'offline' or 'ONLINE'
7600         return value of tape device, and multi-config support.  Moved
7601         all user settable variables to 'changerfile'.conf in the
7602         amanda config directory.  Added commented out example of .conf
7603         file into script.
7604
7605 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7606
7607         * server-src/amindexd.c (uncompress_file): remove uncompressed
7608         index file if the command failed.
7609
7610 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7611
7612         * restore-src/amrestore.c (main): init r to 0.
7613
7614 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7615
7616         * changer-src/scsi-defs.h (PrintConf): Add prototype.
7617         * changer-src/scsi-changer-driver.c (SCSI_Run): Add prototype.
7618         * changer-src/scsi-linux.c (ScanBus): remove btl variable, return 0.
7619
7620 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7621
7622         * man/Makefile.am (EXTRA_DIST): add amdd.8 and ammt.8.
7623
7624 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7625
7626         * server-src/planner.c (setup_estimate): ask for level 0 for 
7627         a new disk if force-bump is set, 
7628         log force-bump and force-nobump command.
7629
7630 2001-02-17 Thomas Hepper <th@ant.han.de>
7631
7632         * changer-scsi/chg-scsi.c: New Option -genconf to create an example config file
7633          based on the information found on the system, works for Linux and BSD with cam
7634          support. New config option debuglevel
7635         * changer-src/scsi-changer-deriver.c: Reworked the debug output, it is now possible
7636          to control the amount of information by the config option debuglevel in the config
7637          file (docs follow), not complete yet.
7638         * changer-src/scsi-changer-driver.c: New function PrintConf to create an example
7639           config file.
7640           New function DebugPrint to print debug information based on the variable debuglevel.
7641           Replaced a lot of dbprintf with new Function DebugPrint
7642         * changer-src/scsi-aix.c: changed parameter for ScanBus
7643         * changer-src/scsi-irix.c: changed parameter for ScanBus
7644         * changer-src/scsi-solaris.c: changed parameter for ScanBus
7645         * changer-src/scsi-bsd.c: changed parameter for ScanBus
7646         * changer-src/scsi-cam.c: Implemented function ScanBus
7647         * changer-src/scsi-linux.c: Implemented function ScanBus
7648         
7649 2001-02-09 John R. Jackson <jrj@purdue.edu>
7650
7651         * server-src/diskfile.c: Fix core dump in test program.
7652
7653 2001-02-09 John R. Jackson <jrj@purdue.edu>
7654
7655         * tape-src/output-file.c: Use a "data" subdirectory of the main
7656           file driver device directory to hold the tape "files".  This
7657           allows the status file to be moved to the main directory.
7658         * man/amanda.8.in: Document these changes.
7659
7660 2001-02-08 Thomas Hepper <th@ant.han.de>
7661
7662         * changer-src/scsi-aix.c: Added dummy ScanBus function
7663         * changer-src/scsi-bsd.c: Added dummy ScanBus function
7664         * changer-src/scsi-cam.c: Added dummy ScanBus function
7665         * changer-src/scsi-hpux_new.c: Added dummy ScanBus function
7666         * changer-src/scsi-irix.c: Added dummy ScanBus function
7667         * changer-src/scsi-defs.h: Added prototype for ScanBus function
7668
7669 2001-02-04 John R. Jackson <jrj@purdue.edu>
7670
7671         * man/amanda.8.in: Fix mailto to space separated, not comma.
7672
7673 2001-02-03 John R. Jackson <jrj@purdue.edu>
7674
7675         * .cvsignore: Add entries to keep CVS quiet.
7676         * */.cvsignore: Ditto.
7677
7678 2001-02-03 John R. Jackson <jrj@purdue.edu>
7679
7680         * client-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
7681         * common-src/Makefile.am: Add more sources as needed to the test
7682           programs so they would compile.
7683         * server-src/Makefile.am: Create TEST_PROGS make variable ala the
7684           other Makefile.am files.
7685         * tape-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
7686
7687 2001-02-03 John R. Jackson <jrj@purdue.edu>
7688
7689         * server-src/diskfile.c: Fix test program compilation error and bug
7690           when just a config name was given on the command line.
7691
7692 2001-02-02 John R. Jackson <jrj@purdue.edu>
7693
7694         * server-src/reporter.c: Fix problem with enum being unsigned on
7695           some systems.
7696
7697 2001-01-29 John R. Jackson <jrj@purdue.edu>
7698
7699         * tape-src/tapeio.c (tape_fsf): Go back to using snprintf as this
7700           is now "the way".
7701
7702 2001-01-29 John R. Jackson <jrj@purdue.edu>
7703
7704         * tape-src/output-tape.c (tape_tapefd_status): Convert flag values
7705           to booleans (compliments of Marc W. Mengel <mengel@fnal.gov>).
7706         * tape-src/tapeio.c (tape_fsf): Use ap_snprintf instead of snprintf
7707           (also compliments of Marc).
7708
7709 2001-01-26 John R. Jackson <jrj@purdue.edu>
7710
7711         * changer-src/Makefile.am: Double up the references to libamanda to
7712           handle systems that put regex in strange places.
7713         * client-src/Makefile.am: Ditto.
7714         * recover-src/Makefile.am: Ditto.
7715         * restore-src/Makefile.am: Ditto.
7716         * server-src/Makefile.am: Ditto.
7717         * tape-src/Makefile.am: Ditto.
7718
7719 2001-01-23 John R. Jackson <jrj@purdue.edu>
7720
7721         * configure.in: Add tapeio switch from Marc Mengel <mengel@fnal.gov>,
7722           enhance and add "null" and "file" output drivers.  Change all
7723           tape changers (except chg-scsi) to use amdd and ammt.  Change all
7724           tape changers (except chg-scsi) to log and use a consistent
7725           error reporting scheme.  Fix various bugs along the way.  Add new
7726           chg-multi config option, posteject, which is an optional script
7727           to call after each "tape" is ejected (e.g. to use to start a
7728           CDROM writer).  Remove special code for tapedev of /dev/null
7729           (now handled by the "null" output driver).  Changed the taper
7730           protocol to pass the host/disk/level so the write can send that
7731           along to the output driver.  Fairly major rework of amrestore
7732           to clean up tape/non-tape and other oddities.
7733         * changer-src/chg-chio.pl.in: Ditto.
7734         * changer-src/chg-chs.sh.in: Ditto.
7735         * changer-src/chg-manual.sh.in: Ditto.
7736         * changer-src/chg-mtx.sh.in: Ditto.
7737         * changer-src/chg-multi.sh.in: Ditto.
7738         * changer-src/chg-rth.pl.in: Ditto.
7739         * changer-src/chg-zd-mtx.sh.in: Ditto.
7740         * client-src/sendbackup.c: Ditto.
7741         * common-src/alloc.c: Ditto.
7742         * common-src/amanda.h: Ditto.
7743         * docs/INTERNALS: Ditto.
7744         * man/Makefile.am: Ditto.
7745         * man/amanda.8.in: Ditto.
7746         * man/amdd.8: Ditto.
7747         * man/ammt.8: Ditto.
7748         * restore-src/amrestore.c: Ditto.
7749         * server-src/amcheck.c: Ditto.
7750         * server-src/amlabel.c: Ditto.
7751         * server-src/amtape.c: Ditto.
7752         * server-src/amverify.sh.in: Ditto.
7753         * server-src/conffile.c: Ditto.
7754         * server-src/conffile.h: Ditto.
7755         * server-src/taper.c: Ditto.
7756         * tape-src/Makefile.am: Ditto.
7757         * tape-src/amdd.c: Ditto.
7758         * tape-src/ammt.c: Ditto.
7759         * tape-src/output-file.c: Ditto.
7760         * tape-src/output-file.h: Ditto.
7761         * tape-src/output-null.c: Ditto.
7762         * tape-src/output-null.h: Ditto.
7763         * tape-src/output-rait.c: Ditto.
7764         * tape-src/output-rait.h: Ditto.
7765         * tape-src/output-tape.c: Ditto.
7766         * tape-src/output-tape.h: Ditto.
7767         * tape-src/tapeio.c: Ditto.
7768         * tape-src/tapeio.h: Ditto.
7769         * tape-src/tests/amtapeio.test.000: Ditto.
7770         * tape-src/tests/amtapeio.test.001: Ditto.
7771         * tape-src/tests/amtapeio.test.002: Ditto.
7772         * tape-src/tests/amtapeio.test.003: Ditto.
7773         * tape-src/tests/amtapeio.test.004: Ditto.
7774         * tape-src/tests/amtapeio.test.005: Ditto.
7775         * tape-src/tests/amtapeio.test.006: Ditto.
7776         * tape-src/tests/amtapeio.test.007: Ditto.
7777         * tape-src/tests/amtapeio.test.008: Ditto.
7778         * tape-src/tests/amtapeio.test.009: Ditto.
7779         * tape-src/tests/amtapeio.test.010: Ditto.
7780         * tape-src/tests/amtapeio.test.011: Ditto.
7781         * tape-src/tests/amtapeio.test.012: Ditto.
7782         * tape-src/tests/amtapeio.test.013: Ditto.
7783         * tape-src/tests/amtapeio.test.014: Ditto.
7784         * tape-src/tests/amtapeio.test.015: Ditto.
7785         * tape-src/tests/amtapeio.test.016: Ditto.
7786         * tape-src/tests/amtapeio.test.017: Ditto.
7787         * tape-src/tests/amtapeio.test.018: Ditto.
7788         * tape-src/tests/cleartape: Ditto.
7789         * tape-src/tests/newtest: Ditto.
7790         * tape-src/tests/rerun: Ditto.
7791         * tape-src/tests/runtest: Ditto.
7792         * tape-src/tests/testdist: Ditto.
7793         * tape-src/tests/torture: Ditto.
7794
7795 2001-01-24 John R. Jackson <jrj@purdue.edu>
7796
7797         * client-src/amandad.c: Improve packet logging.
7798
7799 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7800
7801         * server-src/driver.c (start_some_dumps): typo.
7802
7803 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7804
7805         * server-src/driverio.h (sched_t): new field no_space.
7806         * server-src/driver.c (start_some_dumps): don't start a disk if
7807           no_space is set.
7808         * server-src/driver.c (continue_dumps): set no_space if it's the
7809           only active dumpers, case c.
7810         * server-src/driver.c (read_schedule): set no_space to 0.
7811
7812 2001-01-23 John R. Jackson <jrj@purdue.edu>
7813
7814         * configure.in: Test for setmntent.
7815         * client-src/getfsent.c: Add some support for Redhat 7 /etc/fstab
7816           changes that indirectly reference the device for a file system.
7817
7818 2001-01-22  Marc W. Mengel <mengel@fnal.gov>
7819
7820         * recover-src/extract_list.c: Added -U to tar recover options
7821         to reduce errors recovering shared libs and/or binaries on
7822         active filesystems.
7823
7824 2001-01-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7825
7826         * docs/INSTALL: Notes about tar-1.13.19
7827
7828 2001-01-17  Thomas Hepper <th@ant.han.de>
7829
7830         * changer-src/chg-scsi.c: Moved definitions for config_t and
7831         changer_t into scsi-defs.h
7832         * changer-src/chg-scsi.c: New config option havebarcode
7833         * changer-src/scsi-changer-driver.c: Changed GenericBarCode do handle
7834         the option havebarcode. Replaced NoBarCode with GenericBarCode.
7835         Fixed compile warnings from -Wshadow
7836         * changer-src/scsi-linux.c: New function ScanBus to scan the SCSI Bus.
7837         not used yet.
7838         * changer-src/scsi-solaris.c: Changed the return value to
7839         Command.uscsi_status in SCSI_ExecuteCommand if the return from the
7840         ioctl is not 0;
7841         
7842 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7843
7844         * man/amanda.8.in: New section "HOST & DISK EXPRESSION" and 
7845           "DATESTAMP EXPRESSION".
7846         * man/amadmin.8.in: Document new usage.
7847         * man/amflush.8.in: Document new usage.
7848         * man/amcheck.8.in: Document new usage.
7849         * man/amdump.8.in: Document new usage.
7850         * man/amrestore.8: Document new usage.
7851         * server-src/amadmin.c: Fix usage.
7852         * server-src/amflush.c: Fix usage.
7853         * server-src/amcheck.c: Fix usage.
7854
7855 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7856
7857         * server-src/diskfile.c (match_disklist): Return if no args.
7858
7859 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7860
7861         * server-src/diskfile.c (match_disklist): Fix.
7862
7863 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7864
7865         * server-src/diskfile.c (match_disklist): Updated for
7866           [host [disk]*]* syntax.
7867
7868 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7869
7870         * common-src/match.c (match_datestamp): New function.
7871         * common-src/amanda.h (match_datestamp): Prototype.
7872         * server-src/amflush.c: Use match_datestamp.
7873         * restore-src/amrestore.c: Use match_datestamp.
7874
7875 2001-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7876
7877         * common-src/match.c (match_word): Support for leading ^ and
7878           trailing $.
7879
7880 2001-01-04 John R. Jackson <jrj@purdue.edu>
7881
7882         * common-src/error.c (error): If the debug file pointer is set, log
7883           any fatal error message to it and close the file so it has a good
7884           trace of what happened and when.
7885
7886 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7887
7888         * taper-src/am-dd.c: include "tapeio.h", fix debug warning.
7889         * taper-src/am-mt.c: include "tapeio.h", fix debug warning.
7890         * taper-src/output-rait.c: include "tapeio.h", new define for
7891            rait_debug
7892         * taper-src/tapeio.c(many): Remove unused tfd variable.
7893         * taper-src/tapeio.h (tape_unload,tape_status): Prototype.
7894
7895 2001-01-04 John R. Jackson <jrj@purdue.edu>
7896
7897         * client-src/killpgrp.c: Calls to error() do not need a newline.
7898
7899 2001-01-04 John R. Jackson <jrj@purdue.edu>
7900
7901         * man/amanda.8.in: Try to make it clearer that dumpcycle and maxdumps
7902           changes in the main part of the config file must appear before any
7903           dumptype definitions, and also that inherited dumptypes must appear
7904           before their reference.
7905
7906 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7907
7908         * server-src/driver.c (continue_dumps): Don't reduce est_size if
7909           it is already larger than holding space allocated.
7910         * server-src/dumper.c: Remove all code for FILE_DUMP command.
7911         * server-src/chunker.c: Better handling of ENOSPC from
7912           write_tapeheader().
7913
7914 2001-01-04 John R. Jackson <jrj@purdue.edu>
7915
7916         * server-src/conffile.c (main): Fix conffile test program so it builds
7917           and works again.
7918
7919 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7920
7921         * changer-src/scsi-defs.h (ChangerCMD_T): replace array function
7922           pointer by enumerated pointers.
7923         * changer-src/scsi-changer-driver.c: Use new calling convention.
7924
7925 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7926
7927         * server-src/amstatus.pl.in: Better support for TRY-AGAIN and
7928           ABORT-FINISHED result.
7929
7930 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7931
7932         * server-src/amflush.c: Use getopt to parse argument.
7933         * server-src/amflush.c: New [-D date]* argument.
7934         * man/amflush.8.in: Document it.
7935
7936 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7937         Patch by Andreas F Mueller <afm@othello.ch>
7938
7939         * server-src/amadmin.c (force_no_bump_one): Fix message.
7940
7941 2001-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7942
7943         * tape-src/am-dd.c: include "amanda.h"
7944         * tape-src/am-mt.c: include "amanda.h"
7945         * tape-src/am-mt.c (main): res is int.
7946         * tape-src/output-rait.c: include "amanda.h", do not define stderr.
7947         * tape-src/tapeio.c (xxx_tapefd_read, plain_tapefd_read): second
7948           argument should be "char *"
7949         * tape-src/tapeio.c (xxx_tapefd_write, plain_tapefd_write): second
7950           argument should be "const char *"
7951
7952 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7953
7954         * server-src/find.c (find_match): Use todo bit.
7955         * server-src/find.c (find_dump): No arguments.
7956         * server-src/find.h (find_dump): Change prototype.
7957         * server-src/amadmin.c (find): New [host disk]* pair arguments.
7958         * server-src/amindexd.c: Change call to find_dump().
7959         * server-src/amtrmidx.c: Change call to find_dump().
7960
7961 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7962
7963         * configure.in: Don't check krb5 include if krb5 is not selected.
7964
7965 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7966
7967         * tape-src/Makefile.am (noinst_HEADERS): Add output-rait.h
7968
7969 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7970
7971         * server-src/amadmin.c (diskloop): typo.
7972
7973 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7974
7975         * server-src/amadmin.c (diskloop): New [host disk]* pair arguments.
7976         * server-src/amadmin.c (diskloop, reuse, noreuse): use get_pname()
7977         instead of argv[0].
7978
7979 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7980
7981         * server-src/amflush.c (main):log DISK after checking if logfile exist.
7982
7983 2000-12-30 John R. Jackson <jrj@purdue.edu>
7984
7985         * common-src/bsd-security.c: Improve the .rhosts/.amandahosts messages
7986           when things go wrong.  Add support for "bsdsecurity" test program
7987           in common-src.
7988         * common-src/Makefile.am: Ditto.
7989         * common-src/amanda.h: Ditto.
7990         * restore-src/amidxtaped.c: Ditto.
7991         * server-src/amindexd.c: Ditto.
7992
7993 2000-12-30 John R. Jackson <jrj@purdue.edu>
7994
7995         * ChangeLog: Bring Jean-Louis into the right month :-).
7996         * changer-src/scsi-changer-driver.c: Untested changes to at least
7997           get the code to compile on Solaris and to remove some warnings.
7998         * changer-src/scsi-defs.h: Ditto.
7999         * changer-src/scsi-solaris.c: Ditto.
8000
8001 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8002
8003         * server-src/diskfile.c (add_disk): New function.
8004         * server-src/diskfile.h (add_disk): Prototype.
8005         * server-src/logfile.h (logtype_e): add L_DISK.
8006         * server-src/logfile.c (logtype_str): add "DISK".
8007         * server-src/amflush.c (main): log DISK.
8008         * server-src/planner.c (main): log DISK.
8009         * server-src/reporter.c: use DISK if available.
8010
8011 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8012
8013         * server-src/amcheck.c: New [host disk]* pair arguments.
8014         * server-src/amflush.c: Ditto.
8015         * server-src/planner.c: Ditto.
8016         * server-src/amdump.sh.in: Ditto.
8017         * server-src/amrestore.c: Use new host/disk matcher.
8018         * man/amcheck.8.in: Document new [host disk]* pair arguments.
8019         * man/amflush.8.in: Ditto.
8020         * man/amdump.8.in: Ditto.
8021
8022 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8023
8024         * server-src/diskfile.c (match_disklist): new function.
8025         * server-src/diskfile.h (struct disk_s): new field todo.
8026         * server-src/diskfile.h (match_disklist): prototype.
8027
8028 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8029
8030         * common-src/match.c (match_word, match_host, match_disk): 
8031         new functions.
8032         * common-src/amanda.h (match_host, match_disk): prototype.
8033
8034 2000-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8035
8036         * server-src/planner.c (analyze_estimate): pick incremental level
8037         if no estimate of level 0.
8038
8039 2000-12-28 Marc W. Mengel <mengel@fnal.gov>
8040         * changer-src/chg-juke.sh.in: New File
8041         * changer-src/Makefile.am: Added support for chg-juke.
8042         * docs/TAPE.CHANGERS: Likewise.
8043         * configure.in: Likewise.
8044
8045 2000-12-24 John R. Jackson <jrj@purdue.edu>
8046
8047         * server-src/getconf.c: Fix free() of static text string (BUGGY) when
8048           the parameter being looked up is bad.
8049
8050 2000-12-23 David Wolfskill  <dhw@whistle.com>
8051
8052         * server-src/amcheck.c (start_server_check): Change directory
8053           writable check to be for the tapelist directory instead of
8054           the config file directory.  Remove config file directory test.
8055         * man/amcheck.8.in: Add mention of tapelist directory and do
8056           some other directory writable cleanup.
8057
8058 2000-12-12 John R. Jackson <jrj@purdue.edu>
8059
8060         * client-src/sendbackup-gnutar.c: Fix regex pattern to accept blanks
8061           or tabs.
8062
8063 2000-12-12 John R. Jackson <jrj@purdue.edu>
8064
8065         * Makefile.am: Work around problem with automake 1.4 not including
8066           pkgdata_DATA.
8067         * docs/Makefile.am: Include RAIT and VTAPE-API in distribution.
8068           Work around problem with automake 1.4 not including pkgdata_DATA.
8069         * tape-src/rait.h: Renamed to rait.h.
8070         * tape-src/rait.c: Renamed to rait.c.
8071         * tape-src/output-rait.h: Renamed from rait.h.
8072         * tape-src/output-rait.c: Renamed from rait.c.
8073         * tape-src/Makefile.am: Reflect the new rait.[ch] names.
8074         * tape-src/tapeio.c: Use output-rait.h name.  Minor typo changes.
8075
8076 2000-12-08 Marc Mengel <mengel@fnal.gov>
8077
8078         * docs/RAIT: New file.
8079         * docs/VTAPE-API: New file.
8080         * tape-src/rait.c: New File providing RAIT virtual tape type.
8081         * tape-src/tapeio.c: Major Surgery.
8082           (vtable): New static table of virtual tape types.
8083           (fdtable): New static table mapping file descriptors.
8084           (tapefd_fsf_ioctl): Renamed tapefd_fsf, with added ioctl argument.
8085           (tapefd_rewind_ioctl): Likewise.
8086           (tapefd_unload_ioctl): Likewise.
8087           (tapefd_weof_ioctl): Likewise.
8088           (tapefd_status_ioctl): Likewise.
8089           (tape_open): Now is a virtual tape table lookup and call.
8090           (tape_access): Now is a switch through virtual tape table.
8091           (tape_stat): Likewise.
8092           (tapefd_close): Likewise.
8093           (tapefd_fsf): Likewise.
8094           (tapefd_read): Likewise.
8095           (tapefd_rewind): Likewise.
8096           (tapefd_resetofs): Likewise.
8097           (tapefd_unload): Likewise.
8098           (tapefd_status): Likewise.
8099           (tapefd_weof): Likewise.
8100           (tapefd_write): Likewise.
8101           (plain_tape_access): Rename of tape_access.
8102           (plain_tape_open): Likewise.
8103           (plain_tapefd_read): Likewise.
8104           (plain_tape_stat): Likewise.
8105           (plain_tapefd_write): Likewise.
8106           (plain_tapefd_close): Likewise.
8107           (plain_tapefd_fsf): Now calls tapefd_fsf_ioctl with &ioctl().
8108           (plain_tapefd_rewind): Likewise.
8109           (plain_tapefd_resetofs): Likewise.
8110           (plain_tapefd_unload): Likewise.
8111           (plain_tapefd_status): Likewise.
8112           (plain_tapefd_weof): Likewise.
8113
8114 2000-12-04 John R. Jackson  <jrj@purdue.edu>
8115
8116         * server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami
8117           problem.
8118
8119 2000-12-04 John R. Jackson  <jrj@purdue.edu>
8120
8121         * server-src/conffile.c (read_conffile_recursively): If the file name
8122           for the includefile directive is not absolute, make it relative to
8123           the configuration directory.
8124
8125 2000-12-03 John R. Jackson  <jrj@purdue.edu>
8126
8127         * restore-src/amrestore.c: Fix header when compression is included.
8128           Use "fast" option for -c and add new -C option to get "best".
8129         * man/amrestore.8: Document the new option, the compression level,
8130           and clean up some nroff issues.
8131
8132 2000-11-30 Marc Mengel <mengel@fnal.gov>
8133
8134         * changer-src/chg-chio.pl.in: Use am-mt and am-dd versus mt and dd.
8135         * changer-src/chg-chs.sh.in: Likewise.
8136         * changer-src/chg-manual.sh.in: Likewise.
8137         * changer-src/chg-mtx.sh.in: Likewise.
8138         * changer-src/chg-multi.sh.in: Likewise.
8139         * changer-src/chg-rth.pl.in: Likewise.
8140         * changer-src/chg-zd-mtx.sh.in:  Likewise.
8141         * tape-src/am-dd.c: New file. Replacement for dd.
8142         * tape-src/am-mt.c: New file. replacement for mt.
8143         * tape-src/Makefile.am: Add build for am-mt and am-dd.
8144         * tape-src/tapeio.c (tape_unload, tapefd_unload, tape_status, 
8145           tapefd_status): New functions.
8146           (tape_rewind, tape_fsf, tape_rdlabel): Change error message 
8147                 for tape being offline so it matches online/offline regex 
8148                 in changer scripts.
8149           (tape_open): Ifdef-out mode flag clearing, so you can pass 
8150                 O_TRUNC, etc.  in for am-dd.
8151
8152 2000-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8153
8154         * common-src/util.c: #include "../tape-src/tapeio.h"
8155         * tape-src/tapeio.c(tapefd_write): second arg is const.
8156         * tape-src/tapeio.h(tapefd_write): Likewise.
8157         * common-src/event.c(event_loop): declare entry if ASSERT is defined.
8158         * changer-src/chg-scsi.c: Fix compiler warning.
8159         * changer-src/scsi-aix.c: Likewise.
8160         * changer-src/scsi-bsd.c: Likewise.
8161         * changer-src/scsi-cam.c: Likewise.
8162         * changer-src/scsi-changer-driver.c: Likewise.
8163         * changer-src/scsi-defs.h: Likewise.
8164         * changer-src/scsi-hpux.c: Likewise.
8165         * changer-src/scsi-hpux_new.c: Likewise.
8166         * changer-src/scsi-irix.c: Likewise.
8167         * changer-src/scsi-linux.c: Likewise.
8168         * changer-src/scsi-solaris.c: Likewise.
8169         * changer-src/sense.c: Likewise.
8170
8171 2000-11-22 John R. Jackson  <jrj@purdue.edu>
8172
8173         * contrib/dbbackup.ksh: Deal with adm being a symlink.
8174         * contrib/dbbackup.tcl: Update for Tcl 8.3 and newer Oratcl versions.
8175
8176 2000-11-22 John R. Jackson  <jrj@purdue.edu>
8177
8178         * Makefile.am: Forgot to add contrib/sst/README.Amanda to the list
8179           of files to put in a distribution.
8180
8181 2000-11-21 John R. Jackson  <jrj@purdue.edu>
8182
8183         * recover-src/extract_list.c (extract_files_child): Add support for
8184           XFSRESTORE.
8185
8186 2000-11-21 John R. Jackson  <jrj@purdue.edu>
8187
8188         * server-src/amcheck.c: Minor message wording changes.
8189
8190 2000-11-21 John R. Jackson  <jrj@purdue.edu>
8191
8192         * configure.in: Forgot to check in this part of new amgetconf.8.in.
8193
8194 2000-11-21 John R. Jackson  <jrj@purdue.edu>
8195
8196         * contrib/sst/README.Amanda: New file of Amanda specific sst notes.
8197         * contrib/sst/sst.c: Attempt at letting gcc compile sst.
8198
8199 2000-11-21 John R. Jackson  <jrj@purdue.edu>
8200
8201         * man/amgetconf.8.in: New man page.
8202         * man/Makefile.am: Add support for amgetconf.8.in.
8203         * man/amadmin.8.in: Update for 2.4.2 and do general cleanup.
8204         * man/amanda.8.in: Ditto.
8205         * man/amcheck.8.in: Ditto.
8206         * man/amcheckdb.8.in: Ditto.
8207         * man/amcleanup.8.in: Ditto.
8208         * man/amdump.8.in: Ditto.
8209         * man/amflush.8.in: Ditto.
8210         * man/amlabel.8.in: Ditto.
8211         * man/amrecover.8.in: Ditto.
8212         * man/amreport.8.in: Ditto.
8213         * man/amrestore.8: Ditto.
8214         * man/amrmtape.8.in: Ditto.
8215         * man/amstatus.8.in: Ditto.
8216         * man/amtape.8: Ditto.
8217         * man/amtoc.8.in: Ditto.
8218         * man/amverify.8.in: Ditto.
8219
8220 2000-11-21 John R. Jackson  <jrj@purdue.edu>
8221
8222         * contrib/sst/sst.c (sst_ioctl): Allow non-root users to use sst.
8223
8224 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8225
8226         * server-src/amdump.sh.in: exit if amgetconf exit with status != 0.
8227         * server-src/amcleanup.sh.in: ditto
8228         * server-src/amstatus.pl.in: ditto
8229
8230 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8231
8232         * server-src/driver.c (start_some_dumps): don't check free_kps if
8233         curusage == 0.
8234         * server-src/driver.c (free_kps): remove the kludge.
8235
8236 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8237
8238         * server-src/conffile.c: It's an error to have a negative chunksize.
8239         * man/amanda.8.in: remove documentation of negative chunksize.
8240         * example/amanda.conf.in: ditto
8241         * example/amanda.conf.chg-scsi.in:ditto
8242         * NEWS: negative chunksize is no longer supported.
8243
8244 2000-11-03 John R. Jackson  <jrj@purdue.edu>
8245
8246         * server-src/driver.c (handle_taper_result): the holding disk entry
8247         should not be removed just because taper could not write it out in
8248         the "too many taper retries" case.  It should be left for amflush.
8249
8250 2000-11-01 John R. Jackson  <jrj@purdue.edu>
8251
8252         * server-src/amverify.sh.in: use common form for getting the first
8253         line of a file/pipe.  Sed is more portable than head.
8254
8255 2000-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8256
8257         * client-src/selfcheck.c (check_disk): Write an appropriate
8258         message if the disk name start with '//' and the program is DUMP
8259         or SAMBA is not compiled in.
8260
8261 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8262
8263         * server-src/driver.c (handle_chunker_result): The dumpsize is
8264         the third argument, not the fourth.
8265
8266 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8267
8268         * server-src/driver.c (handle_chunker_result): don't check
8269         pending_aborts, call event_release() ob ABORT-FINISHED.
8270
8271 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8272
8273         * server-src/chunker.c (databuf_flush): workaround to prevent a
8274         hang on a ABORT command.
8275
8276 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8277
8278         * server-src/driver.c (continue_dumps): set estimate to more than 
8279         what is already use instead of setting no_hold=1 when a disk
8280         don't fit on holding disk.
8281
8282 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8283
8284         * server-src/chunker.c: chunker was broken after RQ-MORE-DISK.
8285
8286 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8287
8288         * server-src/amstatus.pl.in: add '&' when calling &usage() 
8289         or &dump_size().
8290
8291 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8292         reported by The Hermit Hacker <scrappy@hub.org>
8293
8294         * changer-src/chg-chio.pl.in: remove unused $libexecdir.
8295
8296 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8297         reported by The Hermit Hacker <scrappy@hub.org>
8298
8299         * changer-src/chg-chio.pl.in: remove comma after LOG, 
8300         typo: r should be 0.
8301
8302 2000-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8303
8304         * docs/INDEXING: doc updated.
8305
8306 2000-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8307
8308         * AUTHORS: add Thomas Hepper.
8309
8310 2000-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8311
8312         * server-src/driverio.c (chunker_cmd): send ABORT command.
8313
8314 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8315
8316         * server-src/amverify.sh.in: grep only the first line of the header.
8317
8318 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8319
8320         * server-src/amverify.sh.in: verify with tar even if the
8321         server and the client are not configured with the same path.
8322
8323 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8324
8325         * NEWS: A new `ctimeout' keyword in amanda.conf to replace 
8326         the CHECK_TIMEOUT constant in amcheck.c.
8327
8328 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8329
8330         * server-src/amlabel.c: Don't set tape_ok to 0 if 
8331         tape_wrlabel is successful.
8332
8333 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8334
8335         * server-src/taper.c: amfree(strclosing).
8336
8337 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8338
8339         * server-src/driver.c: typo.
8340
8341 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8342
8343         * configure.in: --with-samba-user is deprecated.
8344         * docs/SAMBA: the username is now on the amandapass file.
8345         * NEWS: the username is now on the amandapass file.
8346         * client-src/findpass.c (findpass): accept "*" as diskname.
8347         * client-src/selfcheck.c (check_disk): call to samba changed.
8348         * client-src/sendsize.c (getsize_smbtar): ditto.
8349         * client-src/sendbackup-gnutar.c (start_backup): ditto.
8350         * recover-src/extract_list.c (extract_files_child): ditto.
8351
8352 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8353
8354         * server-src/taper.c: give better message when failing 
8355         to open a chunk.
8356
8357 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8358
8359         * server-src/diskfile.c (headqueue_disk): new function to
8360         insert at the head of the queue.
8361         * server-src/diskfile.h (headqueue_disk): prototype.
8362         * server-src/driver.c (taper_queuedisk): insert with
8363         headqueue_disk() if disk already attempted.
8364
8365 2000-10-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8366
8367         * AUTHORS: fix my email address.
8368
8369 2000-09-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8370
8371         * server-src/amcheck.c: Don't accept -m or -M option if MAILER
8372         is not defined.
8373         * server-src/reporter.c: Need a -f optionn if MAILER is not defined.
8374
8375 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8376         patch by <jeg@time.ucsc.edu>
8377
8378         * server-src/reporter.c (output_summary): check for tape_labels.
8379
8380 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8381
8382         * server-src/amindexd.c: use strcasecmp to compare hostname.
8383
8384 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8385
8386         * server-src/amstatus.pl.in: fix plural misuse.
8387
8388 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8389
8390         * man/amanda.8.in: add all pages in the SEE ALSO section.
8391
8392 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8393
8394         * man/amreport.8.in: amreport does not rotate the log.
8395         * man/amrestore.8: note on holdingdisk.
8396         * restore-src/amrestore.c: update usage.
8397         * server-src/amrmtape.sh.in: update usage.
8398         * server-src/amverify.sh.in.usage: update usage.
8399
8400 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8401
8402         * server-src/amoverview.pl.in: update usage information,
8403         -config is no longer needed for ccompatibility with other program.
8404         * man/amoverview.8.in: -config is no longer needed.
8405
8406 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8407
8408         * example/amanda.conf.in: chunk should not be larger than
8409         MAX_FILE_SIZE - 1Mb.
8410
8411 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8412
8413         * client-src/sendsize.c (getsize_smbtar): remove unused debug_level
8414         variable.
8415         * server-src/amlabel.c (main): init errstr to NULL, 
8416         fix compiler warning.
8417
8418 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8419         patch by jason Thomas <jet@users.sourceforge.net>
8420
8421         * tape-src/tapetype.c: fix help message.
8422
8423 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8424         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
8425
8426         * common-src/file.c (mkpdir): check p != NULL
8427         * man/amstatus.8.in: typo
8428
8429 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8430         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
8431
8432         * client-src/calcsize.c:sets correct program name,
8433         prevent coredumps and some improrer command line error mesages
8434
8435 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8436
8437         * common-src/amanda.h: prototype clean_regex().
8438         * common-src/match.c: new function clean_regex() that escape
8439         all non-alphanumeric character.
8440         * recover-src/extract_list.c (add_file, delete_file): use clean_regex().
8441
8442 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8443
8444         * server-src/amcheck.c: (start_server_check): check for the oldlog
8445         directory.
8446
8447 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8448
8449         * server-src/amtrmlog.c: better check of the oldlog directory.
8450
8451 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8452
8453         * server-src/amcheck.c: (start_server_check): don't check the tape
8454         if tapedev is /dev/null.
8455
8456 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8457
8458         * server-src/reporter.c (output_tapeinfo): test reversed for run_tapes.
8459
8460 2000-07-31 Thomas Hepper <th@ant.han.de>
8461         * changer-src/chg-scsi.c: Rework of the device handling.
8462         Every device is opend for an operation and than closed.
8463         This will hopefully fix the problems with openening the tape device
8464         and the SCSI control device for the tape
8465         new option emubarcode (see docs/TAPE.CHANGERS)
8466         * changer-src/scsi-cam.c: Changed to work with the new device handling.
8467         * changer-src/scsi-hpux_new.c: Changed to work with the new device handling.
8468         * changer-src/scsi-irix.c: Changed to work with the new device handling. (Not tested)
8469         * changer-src/scsi-solaris.c: Changed to work with the new device handling. (Not tested)
8470         * changer-src/scsi-linux.c: Changed to work with the new device handling.
8471         * changer-src/scsi-changer-driver.c: Changed to work with the new device handling
8472         * changer-src/scsi-defs.h: Changed to work with the new device handling
8473 2000-07-18 John R. Jackson  <jrj@purdue.edu>
8474
8475         * changer-src/chg-chio.pl.in (do_time): fix chg-chio.pl timestamp
8476         function to return a string instead of writing to stdout.
8477
8478 2000-07-18 John R. Jackson  <jrj@purdue.edu>
8479
8480         * server-src/taper.c (file_reader_side): detach and destroy shared
8481         memory areas on an error condition.  Found by Patrik Andersin
8482         <cat@iki.fi>.
8483
8484 2000-07-17 Thomas Hepper <th@ant.han.de>
8485         * docs/TAPE.CHANGERS: Added some notes for the cam driver
8486         * changer-src/scsi-cam.c: New syntax for telling scsi ids
8487         (bus:target:lun)
8488         SCSI_ExecuteCommand now returns the correct sense buffer.
8489
8490 2000-07-17 Thomas Hepper <th@ant.han.de>
8491         * configure.in: Added check for BSD SCSI CAM Support
8492         * changer-src/scsi-cam.c: New, functions for SCSI CAM Support
8493         ( at the moment for FreeBSD 4.0)
8494         * changer-src/Makefile.am: added scsi-cam.s to the list of sources
8495         * changer-src/chg-scsi.c: The structs for the OpenFiles_T is now
8496         allocated in chg-scsi and passed to OpenDevice.
8497         * changer-src/scsi-changer-driver.c: New Parameter for OpenDevice
8498         (OpenFiles_T)
8499
8500 2000-07-10 Marc Mengel <mengel@fnal.gov>
8501         * tape-src/tapeio.c -- add tape_{stat,access}, allow "plain:" prefix
8502                 on tape device names
8503         * tape-src/tapeio.h -- add tape_{stat,access} prototypes
8504         * common-src/util.c -- call tape_{read,write}() in full{read,write}()
8505         * restore-src/amidxtaped.c -- use tape_stat() on tapename
8506         * restore-src/amrestore.c -- use tape_stat() on tapename
8507         * server-src/amcheck.c -- use tape_access() on tapename
8508         * client-src/Makefile.am -- now needs libamtape.a twice
8509         * server-src/Makefile.am -- now needs libamtape.a twice
8510         * recover-src/Makefile.am -- now needs libamtape.a twice
8511         * Makefile.am -- tape-src before client-src
8512
8513 2000-07-05 Thomas Hepper <th@ant.han.de>
8514         * changer-src/chg-scsi.c: fixed an core dump if tapeident was set
8515         * changer-src/scsi-changer-driver.c (OpenFile):
8516          if the ident ist set in the config set this in the internal device 
8517          struct too.
8518         * changer-src/scsi-changer-driver.c (GenerciSenseHandler):
8519          changed the type for the info text from char * to char ** which
8520          is passwd to Sense2Action
8521         * changer-src/scsi-changer-driver.c (ChangerStatus):
8522          fixed the bug which causes an core dump for chg-scsi -status robot
8523          if an bar code reader is detected. Fixed also the bug that the
8524          mapping Label -> Barcode was not displayed.
8525         * changer-src/scsi-defs.h: Changed the prototype for Sense2Action
8526         * changer-src/sense.c: Added the defs for the Spectra TreeFrog lib
8527         * changer-src/sense.c (Sense2Action); Fixed the handling if no match
8528          was found (fall back to the generic description)
8529
8530 2000-06-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8531
8532         * server-src/list_dir.c (add_dir_list_item): add at head of list.
8533
8534 2000-06-24 Thomas Hepper <th@ant.han.de>
8535         * changer-src/chg-scsi-chio.c: Merged changes from 2.4.2 
8536         * changer-src/chg-scsi.c: Merged changes from 2.4.2
8537         * changer-src/sense.c: New file. Contains an table and function for the 
8538           mapping of sense/ASC/ASCQ conditions from the SCSI sense.
8539         * changer-src/scsi-changer-driver.c: Merged changes from 2.4.2
8540           Changed handling for the sense keys. Now there is only one function
8541           to decide what to do with an sense/ASC/ASCQ conditon (abort,retry ..)
8542         * changer-src/Makefile.am: Added sense.c to the source list.
8543         * changer-src/scsi-solaris.c: Merged changes from 2.4.2 
8544         * changer-src/scsi-linux.c: Merged changes from 2.4.2 
8545         * changer-src/scsi-irix.c: Merged changes from 2.4.2 
8546         * changer-src/scsi-hpux_new.c: Merged changes from 2.4.2 
8547         * changer-src/scsi-defs.h: Merged changes from 2.4.2 
8548         
8549 2000-06-12  Jeroen Ruigrok van der Werven  <asmodai@wxs.nl>
8550
8551         * server-src/amlabel.c (main): Do not amfree(config_name).
8552
8553 2000-06-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8554
8555         * server-src/holding.c (pick_datestamp): convert ch to upper.
8556
8557 2000-05-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8558
8559         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
8560           delay call to dumper_result().
8561
8562 2000-05-28  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8563
8564         * client-src/sendbackup-gnutar.c: Ignore `socket ignored' GNU tar
8565         messages.
8566
8567 2000-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8568
8569         * chunker.c: allow chunk to be written on different holding disk.
8570         * server-src/driver.c: allow chunk to be written on different
8571           holding disk.
8572         * server-src/conffile.c: make sure that disksize and chunksize
8573           are multiple of TAPE_BLOCK_SIZE.
8574         * server-src/conffile.h: disksize and chunksize are long.
8575         * server-src/diskfile.c (find_disk): new function to see if a
8576           given disk is contained in a list structure.
8577         * server-src/diskfile.h (find_disk): prototype.
8578         * server-src/driverio.h (RQ_MORE_DISK): Added message.
8579         * server-src/driverio.h (free_assignedhd): prototype.
8580         * server-src/driverio.h (assignedhd_t): new data structure.
8581         * server-src/driverio.c (cmdstr): added comamnd RQ-MORE-DISK.
8582         * server-src/driverio.c (free_assignedhd): new function to free an
8583           array of assignedhd_t.
8584         
8585 2000-05-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8586
8587         * server-src/driver.c (chunker_program): new variable.
8588
8589 2000-04-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8590
8591         * server-src/amstatus.pl.in: handle chunker line.
8592
8593 2000-04-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8594
8595         * recover-src/Makefile.am (LDADD): Removed libamtape.
8596         Reported by Paul Yeatman <pyeatman@ucsd.edu>
8597
8598 2000-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8599
8600         * server-src/chunker.c: new file for the chunker program.
8601         * server-src/Makefile.am: compile it.
8602         * server-src/driver.c: many modification.
8603         * server-src/driverio.c: many modification.
8604         * server-src/driverio.c (startup_chunk_process, chunker_cmd):
8605         new functions.
8606         * server-src/driverio.h: prototype them.
8607         * server-src/driverio.h (struct chunker_s): new structure.
8608         * server-src/logfile.c: handle chunker log.
8609         * server-src/logfile.h: ditto.
8610         * server-src/reporter.c: ditto.
8611         * server-src/taper.c: size reduced by TAPE_BLOCK_SIZE.
8612
8613 2000-04-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8614
8615         * server-src/taper.c: don't crash if the tapelist file
8616         doesn't exist.
8617
8618 2000-04-09  Frank Wojcik  <fwojcik@lucent.com>
8619
8620         * server-src/taper.c (detach_buffers): Fixed typo in error message.
8621
8622         * server-src/amrmtape.sh.in: Fix occurrence of `Infofile', that
8623         should have been `InfoFile'.
8624
8625 2000-04-09  Davide Marchignoli  <marchign@di.unipi.it>
8626   
8627         * server-src/conffile.h (confparm_t): Added CTIMEOUT.
8628         * server-src/conffile.c: Added ctimeout support.  Default to 30.
8629         * example/amanda.conf.in: Likewise.
8630         * man/amanda.8.in: Documented it.
8631         * server-src/amcheck.c: Use ctimeout from configuration file instead
8632         of CHECK_TIMEOUT.
8633
8634 2000-04-09  Stan Brown  <stanb@awod.com>
8635
8636         * recover-src/amrecover.c (guess_disk): Omit DEV_PREFIX only if
8637         it is actually a prefix of fsname.
8638
8639 2000-04-09  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8640
8641         * server-src/amlabel.c (main): Check label *after* writing end mark.
8642
8643 2000-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8644
8645         * server-src/amlabel.c: don't crash if the tapelist file 
8646         doesn't exist.
8647
8648 2000-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8649
8650         * server-src/amstatus.pl.in: "0 dumpers busy" should be "0 dumper busy".
8651
8652 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8653
8654         * server-src/amadmin.c (force_one, force_bump_one): FORCE_FULL
8655         and FORCE_BUMP are mutually exclusive.
8656
8657 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8658
8659         * server-src/driver.c (main): use the holding disk even if the
8660         datestamped directory already exist.
8661
8662 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8663
8664         * server-src/amstatus.pl.in (prefix, exec_prefix): Refer to them
8665         twice to avoid warnings of possible typo.
8666
8667         * amplot/amplot.awk: Ignore dumper's RQ-MORE-DISK.
8668         Reported by David Wolfskill <dhw@whistle.com>
8669         * amplot/amplot.awk: Handle taper's TRY-AGAIN like TAPE-ERROR.
8670
8671         * server-src/amstatus.pl.in: Compute and display TRY-AGAIN tape
8672         errors.
8673         Reported by David Wolfskill <dhw@whistle.com>
8674
8675         * man/amtoc.8.in: Document -w.
8676
8677 2000-01-21  David Wolfskill  <dhw@whistle.com>
8678
8679         * server-src/amtoc.pl.in: Add `-w' to add new lines and form feeds.
8680
8681 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8682
8683         * man/amlabel.8.in: Tapes are no longer requested in reverse order
8684         of amlabeling.
8685         Reported by Brad Guillory <round@baileylink.net>
8686
8687         * server-src/amstatus.pl.in: New option --stats, to display
8688         statistics about dumpers and taper.
8689         * man/amstatus.8.in: Document it.
8690
8691 2000-01-21  David Wolfskill  <dhw@whistle.com>
8692
8693         * server-src/amstatus.pl.in: Sort dumpers by number.
8694
8695 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8696
8697         * server-src/amstatus.pl.in: Remove bogus (?) line `$$host=1'.
8698
8699         * configure.in (MAILER): Warn or print an error if not found,
8700         depending on whether server code is disabled or not.
8701
8702         * server-src/reporter.c (output_tapeinfo): Report used tapes
8703         regardless of tape errors.
8704
8705         * config/acinclude.m4i (CF_WAIT): Simplify the test.  Declare wait()
8706         in the global scope.
8707
8708 2000-01-21  Garrett Wollman  <wollman@khavrinen.lcs.mit.edu>
8709
8710         * config/acinclude.m4i (CF_WAIT): Avoid warnings on systems
8711         where `union wait' works but is deprecated.
8712
8713 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8714
8715         * recover-src/uscan.l (settape): Recognize it.
8716         * recover-src/uparse.y: Parse it.
8717         * recover-src/amrecover.h (set_tape): Declare it.
8718         * recover-src/set_commands.c (set_tape): Implement it.
8719         * recover-src/help.c (help_list): Document it.
8720         * man/amrecover.8.in: Likewise.
8721         * recover-src/extract_list.c (extract_files): Warn if tape device is
8722         /dev/null.
8723         * recover-src/amrecover.c (tape_device_name): Default to
8724         server-determined default.
8725
8726 2000-01-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8727
8728         * configure.in: Recognize alpha*-*-linux-* and sparc*-*-linux-*.
8729
8730         * tape-src/Makefile.am (../common-src/libamanda.$(LIB_EXTENSION)):
8731         Allow for `make tapetype' before libamanda is built.
8732
8733         * server-src/amoverview.pl.in: Year doesn't take just 2 bytes.
8734
8735 2000-01-06  David Wolfskill  <dhw@whistle.com>
8736
8737         * docs/TAPETYPES: Typo.
8738         
8739 2000-01-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8740
8741         * docs/TAPETYPES: Removed all tapetype entries.  Pointed to
8742         example/amanda.conf, to the mailing list archives and to the on-line
8743         tapetype list.  Explained the meaning of length, filemark and speed,
8744         and how to build and use the tapetype utility.
8745
8746 1999-12-12 John R. Jackson  <jrj@purdue.edu>
8747
8748         * configure.in: egrep was having trouble with quoting on some systems.
8749         Broke it apart into multiple unquoted statements.  Also, changed the
8750         script to run the steps on all dump tests and added "Label" as another
8751         line to ignore.
8752
8753 1999-12-12 John R. Jackson  <jrj@purdue.edu>
8754
8755         * tape-src/tapetype.c: tweak the algorithm to write files in both
8756         passes and compute the tape mark size as the difference.  Never
8757         report a negative tape mark size.  Various other minor cleanup.
8758
8759 1999-11-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8760
8761         * client-src/sendbackup-gnutar.c (re_table): #if out the debugging
8762         Samba messages unless SAMBA_VERSION < 2.
8763
8764 1999-11-29  John E.P.Hynes  <john@hytronix.ne.mediaone.net>
8765
8766         * client-src/sendbackup-gnutar.c (re_table): Update for Samba 2.0.6.
8767
8768 1999-11-25 John R. Jackson  <jrj@purdue.edu>
8769
8770         * server-src/amflush.c (main): conf_logdir should not be free'd
8771           (found by Espen H Wiborg <espenhw@infotek.no>).
8772
8773 1999-11-10 John R. Jackson  <jrj@purdue.edu>
8774
8775         * recover-src/extract_list.c: report the tape server host in the
8776           message to check the amidxtaped.debug file.   If extract_list_child
8777           fails (such as when amidxtaped fails to read the tape), ask if
8778           things should continue instead of aborting.
8779
8780 1999-11-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8781
8782         * server-src/driverio.c (update_info_dumper): Discard information on
8783         older same- or higher-level dumps.
8784         * server-src/driver.c (dump_to_tape): Add comment that _dumper must
8785         be called before _taper.
8786
8787         * docs/FAQ: Sometimes FQDNs are wrong for amandahosts.
8788
8789 1999-11-10 John R. Jackson  <jrj@purdue.edu>
8790
8791         * server-src/amindexd.c (build_disk_table): need to clear the old
8792           disk history list before building a new one.
8793
8794 1999-11-10 John R. Jackson  <jrj@purdue.edu>
8795
8796         * server-src/taper.c (label_tape): issue a warning when tapedev is
8797           set to /dev/null.
8798         * server-src/amcheck.c (start_server_check): make warning message
8799           text the same for amcheck and taper when tapedev is /dev/null.
8800
8801 1999-11-10 John R. Jackson  <jrj@purdue.edu>
8802
8803         * server-src/amcleanupdisk.c (main): try to remove empty holding disk
8804           areas.
8805         * server-src/holding.c (scan_holdingdisk): do not automatically remove
8806           empty holding disk areas since this function is called by various
8807           utilities and a dump might be in progress.
8808
8809 1999-11-10  James FitzGibbon  <james@targetnet.com>
8810
8811         * server-src/infofile.c (put_info): d.size should have been
8812         d.dsize.
8813
8814 1999-11-09 John R. Jackson  <jrj@purdue.edu>
8815
8816         * server-src/amcheck.c (start_server_check): test tapedev for
8817           "/dev/null" and issue warning that dumps will be thrown away.
8818
8819 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
8820
8821         * server-src/amadmin.c (main): Second occurrence of CNF_TAPELIST
8822         should have been CNF_INFOFILE; fixed.
8823
8824 1999-11-02  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8825
8826         * common-src/amflock.c (struct flock): Do not assume the fields are
8827         declared in any particular order.
8828         Reported by Sean Kelly <kelly@plutotech.com>
8829
8830         * Makefile.am (EXTRA_DIST): Added contrib/set_prod_link.pl.
8831         * docs/INSTALL: Likewise.
8832
8833 1999-11-02  Ricardo Malta  <rmalta@bigfoot.com>
8834         
8835         * contrib/set_prod_link.pl: Create the links for a configuration
8836         with --with-suffix.
8837
8838 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
8839
8840         * common-src/rsh-security.c (net_writev): The result of a cast is
8841         not an lvalue; fixed.
8842
8843 1999-10-26  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
8844
8845         * server-src/amtoc.pl.in: Correct a bug for total report.
8846
8847 1999-11-01 John R. Jackson  <jrj@purdue.edu>
8848
8849         * server-src/amcleanupdisk.c (main): do not free the config name (it
8850           was never alloc-d).
8851
8852 1999-10-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8853
8854         * common-src/debug.c: Do not assume stderr is a compile-time
8855         constant.  On glibc 2.2 (RedHat Linux 6.1), it is not.
8856
8857 1999-10-11  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
8858
8859         * server-src/amtoc.pl.in: Add new options -i and -t.  Print original
8860         size, instead of size on tape.
8861
8862 1999-10-07 John R. Jackson  <jrj@purdue.edu>
8863
8864         * common-src/stream.c (stream_server): remove reference to portrange
8865           variable.  Compliments of Randy Dees <rrd@amherst.com>.
8866
8867 1999-10-03 John R. Jackson  <jrj@purdue.edu>
8868
8869         * server-src/driver.c (main): now that multiple results can come back
8870           from taper and dumper without a handshake (e.g. NO-ROOM), we need to
8871           process them all rather than just the first one.  Call the new
8872           areads_dataready() function to peek and see if more data is ready.
8873         * common-src/amanda.h: declare areads_dataready().
8874         * common-src/file.c: define areads_dataready().  Fix some variable
8875           types.  Fix a buffer expansion problem.  Add code to the test
8876           program to force buffer expansion to be checked out.
8877
8878 1999-10-03 John R. Jackson  <jrj@purdue.edu>
8879
8880         * common-src/file.c (areads_getbuf): fix a buffer allocation problem.
8881
8882 1999-10-03 John R. Jackson  <jrj@purdue.edu>
8883
8884         * common-src/amflock.c (main): do not use aclose() in the configure
8885           test case.  During configure we do not have areads_relbuf()
8886           available and it makes configure think all the tests have failed.
8887
8888 1999-10-03 John R. Jackson  <jrj@purdue.edu>
8889
8890         * common-src/amanda.h: protect the close macros and areads* from
8891           out of range file descriptors.
8892         * common-src/file.c: ditto.
8893
8894 1999-10-02 John R. Jackson  <jrj@purdue.edu>
8895
8896         * server-src/amindexd.c (build_disk_table): only "OK" results from
8897           find_dump should be considered.
8898
8899 1999-10-02 John R. Jackson  <jrj@purdue.edu>
8900
8901         * common-src/file.c (areads): when NO-ROOM became advisory and didn't
8902           participate in a full handshake, it exposed a problem in areads()
8903           where a static buffer was shared among all I/O.  Changed it to use
8904           a separate buffer for each file descriptor.  Enhanced the test
8905           program to check out the code.
8906         * common-src/amanda.h: ditto
8907         * restore-src/amidxtaped.c: minor areads/agets comment typo.
8908         * server-src/amindexd.c: ditto
8909
8910 1999-10-02 John R. Jackson  <jrj@purdue.edu>
8911
8912         * server-src/amlogroll.c: fix minor memory leak.
8913
8914 1999-09-29 John R. Jackson  <jrj@purdue.edu>
8915
8916         * server-src/dumper.c (do_dump): closed the dump messages file too
8917           soon.
8918
8919 1999-09-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8920
8921         * recover-src/extract_list.c (samba_extract_method): Default to
8922         SAMBA_TAR, for similarity with other restore programs.
8923         (extract_files_child): If restore with SMBCLIENT is enabled, explain
8924         that Samba shares will be restored to the SMB share.
8925
8926 1999-09-22 John R. Jackson  <jrj@purdue.edu>
8927
8928         * configure.in: wrong variable when processing LIBRARY_DIRS.  Fix
8929           compliments of John M. Vogtle <jmvogtle@kodak.com>.
8930
8931 1999-09-20 John R. Jackson  <jrj@purdue.edu>
8932
8933         * server-src/Makefile.am: use new amlogroll utility to rename the log
8934           file to the datestamped name.
8935         * server-src/amcheck.c: ditto.
8936         * server-src/amcleanup.sh.in: ditto and call all utilities with the
8937           config file name as an argument.
8938         * server-src/amdump.sh.in: ditto and call all utilities with the
8939           config file name as an argument.
8940         * server-src/amflush.c: ditto.
8941         * server-src/amlogroll.c: new utility.
8942         * server-src/driverio.c: ditto and call all utilities with the
8943           config file name as an argument.
8944         * server-src/reporter.c: ditto.
8945
8946 1999-09-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8947
8948         * amlogroll.c: It was missing; copied from the 2.4.2 branch.
8949
8950         * configure.in (AMANDA_TMPDIR): Added comment for config.h.in.
8951
8952 1999-09-19 John R. Jackson  <jrj@purdue.edu>
8953
8954         * server-src/amverify.sh.in: this script is important enough it should
8955           not depend on having perl installed.  Clean up the AIX "mt status"
8956           code.  Test for presense of other restore programs and check that
8957           they are executable during processing.
8958
8959 1999-09-19 John R. Jackson  <jrj@purdue.edu>
8960
8961         * server-src/amverify.sh.in: put back an "mt status" wait loop I
8962           erroneously removed, but protect it from AIX.
8963
8964 1999-09-19 John R. Jackson  <jrj@purdue.edu>
8965
8966         * common-src/util.c: fix math in bind_portrange so ports requested
8967           are between those the caller passed and make sure port 0 does not
8968           accidentally get requested, which returns a non-privileged port.
8969         * common-src/dgram.c: bind_portrange last port argument is inclusive.
8970         * common-src/stream.c: ditto.
8971         * recover-src/amrecover.c: ditto.
8972         * recover-src/extract_list.c: ditto.
8973
8974 1999-09-19 John R. Jackson  <jrj@purdue.edu>
8975
8976         * server-src/driver.c: do not send a FILE_WRITE to the taper when the
8977           tape queue is empty during a TRYAGAIN (driver core dumped).
8978
8979 1999-09-19 John R. Jackson  <jrj@purdue.edu>
8980
8981         * server-src/taper.c: fix protocol problems when out of tape.  Add
8982           FAKE_TAPE_ERROR debugging code to simulate tape errors.  Fix problem
8983           with command line argument processing.
8984
8985 1999-09-18 John R. Jackson  <jrj@purdue.edu>
8986
8987         * configure.in: several compress/uncompress variables were not being
8988           set properly.
8989
8990 1999-09-18 John R. Jackson  <jrj@purdue.edu>
8991
8992         * client-src/sendbackup.c: pclose returns a child exit status of the
8993           pipe, not an errno, so do not try to strerror it.
8994           Have the index child process exit with the pclose exit code.
8995           Treat index failures as strange rather than fatal so the dump gets
8996           fully processed.  It's more important to have the dump image than
8997           to skip it just because indexing had a (possibly unrelated) problem.
8998
8999 1999-09-15 John R. Jackson  <jrj@purdue.edu>
9000
9001         * server-src/amtoc.pl.in: handle an image failing on one tape and
9002           succeeding on the next.
9003
9004 1999-09-15 John R. Jackson  <jrj@purdue.edu>
9005
9006         * server-src/amstatus.pl.in: generalize the "driver: state" parsing
9007           so it can handle current and future information.
9008
9009 1999-09-15 John R. Jackson  <jrj@purdue.edu>
9010
9011         * common-src/bsd-security.c: if the user field is not present in the
9012           .amandahosts file, it should default to the local user, not the
9013           remote user.  For our purposes, that is CLIENT_USER, not the user
9014           we are running as (although they should be the same).
9015
9016 1999-09-14 John R. Jackson  <jrj@purdue.edu>
9017
9018         * configure.in: Add --with-tmpdir to ./configure and use it for
9019           all Amanda temporary files.  Default --with-dbgdir to --with-tmpdir.
9020           Move libexec/getconf to sbin/amgetconf and add an optional
9021           config parameter.  Add optional config parameter to several
9022           other programs.
9023           Add debugging to chg-chio.
9024           Call new safe_cd() function in most programs to cd to --with-tmpdir
9025           so if they drop core, it goes to a known spot.  Rename existing
9026           core files so more than one failure may be tracked.  Remove most
9027           chdir() and umask() calls (umask is set in safe_cd).
9028         * amplot/amplot.sh.in: ditto.
9029         * changer-src/chg-chio.pl.in: ditto.
9030         * changer-src/chg-chs.sh.in: ditto.
9031         * changer-src/chg-manual.sh.in: ditto.
9032         * changer-src/chg-mtx.sh.in: ditto.
9033         * changer-src/chg-multi.sh.in: ditto.
9034         * changer-src/chg-rth.pl.in: ditto.
9035         * changer-src/chg-scsi-chio.c: ditto.
9036         * changer-src/chg-scsi.c: ditto.
9037         * changer-src/chg-zd-mtx.sh.in: ditto.
9038         * client-src/amandad.c: ditto.
9039         * client-src/calcsize.c: ditto.
9040         * client-src/killpgrp.c: ditto.
9041         * client-src/rundump.c: ditto.
9042         * client-src/runtar.c: ditto.
9043         * client-src/selfcheck.c: ditto.
9044         * client-src/sendbackup-gnutar.c: ditto.
9045         * client-src/sendbackup.c: ditto.
9046         * client-src/sendsize.c: ditto.
9047         * common-src/alloc.c: ditto.
9048         * common-src/amanda.h: ditto.
9049         * common-src/amflock.c: ditto.
9050         * common-src/bsd-security.c: ditto.
9051         * common-src/debug.c: ditto.
9052         * common-src/file.c: ditto.
9053         * common-src/genversion.c: ditto.
9054         * restore-src/amidxtaped.c: ditto.
9055         * server-src/Makefile.am: ditto.
9056         * server-src/amadmin.c: ditto.
9057         * server-src/amcheck.c: ditto.
9058         * server-src/amcheckdb.sh.in: ditto.
9059         * server-src/amcleanup.sh.in: ditto.
9060         * server-src/amcleanupdisk.c: ditto.
9061         * server-src/amdump.sh.in: ditto.
9062         * server-src/amflush.c: ditto.
9063         * server-src/amfreetapes.sh.in: ditto.
9064         * server-src/amindex.c: ditto.
9065         * server-src/amindex.h: ditto.
9066         * server-src/amindexd.c: ditto.
9067         * server-src/amlabel.c: ditto.
9068         * server-src/amrmtape.sh.in: ditto.
9069         * server-src/amstatus.pl.in: ditto.
9070         * server-src/amtape.c: ditto.
9071         * server-src/amtrmidx.c: ditto.
9072         * server-src/amtrmlog.c: ditto.
9073         * server-src/amverify.sh.in: ditto.
9074         * server-src/changer.c: ditto.
9075         * server-src/changer.h: ditto.
9076         * server-src/conffile.c: ditto.
9077         * server-src/conffile.h: ditto.
9078         * server-src/diskfile.c: ditto.
9079         * server-src/driver.c: ditto.
9080         * server-src/driverio.c: ditto.
9081         * server-src/dumper.c: ditto.
9082         * server-src/find.c: ditto.
9083         * server-src/getconf.c: ditto.
9084         * server-src/holding.c: ditto.
9085         * server-src/infofile.c: ditto.
9086         * server-src/logfile.c: ditto.
9087         * server-src/planner.c: ditto.
9088         * server-src/reporter.c: ditto.
9089         * server-src/tapefile.c: ditto.
9090         * server-src/taper.c: ditto.
9091
9092 1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9093
9094         * common-src/bsd-security.c (bsd_stream): fn should take an ssize_t.
9095         (bsd_stream_read): Likewise, declaration.
9096         * common-src/rsh-security.c (rsh_stream): Likewise.
9097         (rsh_stream_read): Likewise, declaration and definition.
9098         * common-src/krb4-security.c (dummy): Compile when disabled.
9099         * common-src/krb5-security.c (dummy): Likewise.
9100
9101         * server-src/reporter.c (sDivZero): Change from float to double, to
9102         build with DEC cc.
9103
9104         * configure.in: Get snapshot date from SNAPSHOT file, if it exists.
9105         (VERSION): Add the date to it.
9106         (SNAPSHOT_STAMP): AC_SUBST to the SNAPSHOT file, if it exists.
9107         * Makefile.am (EXTRA_DIST): Added $(SNAPSHOT_STAMP).
9108         (config.status): Depend on $(SNAPSHOT_STAMP).
9109         (SNAPSHOT): Dummy rule to allow reconfigure if it's removed.
9110
9111         * config/Makefile.am: Remove all traces of acconfig.h.
9112
9113         * server-src/changer.c (changer_command): Fix for amwait_t != int.
9114
9115 1999-09-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9116
9117         * config/acinclude.m4i: Added comments for config/config.h.in to all
9118         AC_DEFINEs.
9119         * configure.in: Likewise.
9120         * config/acconfig.h: Deleted.
9121         * autogen: Updated.
9122
9123 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9124
9125         * changer-src/chg-chio.pl.in: add -w to #! line to catch more errors.
9126         * recover-src/display_commands.c: fix some compiler warnings.
9127         * recover-src/extract_list.c: fix some compiler warnings.
9128         * restore-src/amrestore.c: fix some compiler warnings.
9129         * server-src/planner.c: fix some compiler warnings.
9130
9131 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9132
9133         * recover-src/extract_list.c: add VRESTORE and VXRESTORE support.
9134
9135 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9136
9137         * common-src/stream.c: make sure errno is returned properly from
9138           stream_client() and stream_server().
9139         * server-src/taper.c: report errors from stream_server() and
9140           abort.
9141         * recover-src/extract_list.c: make sure errno is preserved.
9142
9143 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9144
9145         * configure.in: make sure the dump and restore programs are defined
9146           in pairs, do not allow just the dump program without restore.
9147         * client-src/sendbackup-dump.c: assume restore program is present
9148           if dump program is.
9149         * common-src/genversion.c: assume restore program is present if
9150           dump program is.
9151
9152 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9153
9154         * common-src/genversion.c: CLIENT_LOGIN has to be defined so there
9155           is no point testing for it.
9156         * server-src/conffile.c: ditto.
9157
9158 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9159
9160         * server-src/amverify.sh.in: add SMBCLIENT, VRESTORE, VXRESTORE
9161           and XFSRESTORE support.
9162
9163 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9164
9165         * server-src/conffile.c: add several common abbreviations to config
9166           file processing.
9167
9168 1999-09-01 John R. Jackson  <jrj@purdue.edu>
9169
9170         * server-src/amtoc.pl.in: allow multiple -s entries.
9171
9172 1999-09-01 John R. Jackson  <jrj@purdue.edu>
9173
9174         * server-src/reporter.c: handle/report a common columnspec syntax
9175           error instead of dumping core.
9176
9177 1999-09-01 John R. Jackson  <jrj@purdue.edu>
9178
9179         * man/amanda.8.in: typo in columnspec description.
9180
9181 1999-09-01 John R. Jackson  <jrj@purdue.edu>
9182
9183         * common-src/dgram.h: expressions in #define should be protected by
9184           parenthesis.
9185
9186 1999-08-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
9187
9188         * changer-src/chg-chs.sh.in (changerdev): Pass it as -f flag to CHS.
9189         * docs/TAPE.CHANGERS: Document it.
9190         Reported by Mike Horansky <moho@stanford.EDU>
9191
9192         * server-src/conffile.c (read_dumptype): Renamed from get_dumptype.
9193         Extended to support reading a named dumptype from a specified FILE.
9194         (get_dumptype): Use read_dumptype.
9195         (main): Read disklist, so that custom dumptypes are shown.
9196         * server-src/conffile.h (read_dumptype): Declare.
9197         * server-src/diskfile.c (parse_diskline): Get line_num and line by
9198         reference.  New argument diskf.  Use read_dumptype if dumptype
9199         starts with `{'.
9200         (main): Update.
9201         * man/amanda.8.in (disklist): Document it.
9202         * NEWS: Likewise.
9203         * example/disklist: Exemplify it.
9204
9205 1999-08-23 John R. Jackson  <jrj@purdue.edu>
9206
9207         * recover-src/amrecover.c (main): fix test for IPPORT_RESERVED.
9208         * recover-src/extract_list.c (extract_files_setup): ditto.
9209
9210 1999-08-23 John R. Jackson  <jrj@purdue.edu>
9211
9212         * server-src/reporter.c (copy_template_file): make sure all data is
9213           written to label template pipeline.
9214
9215 1999-08-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
9216
9217         * common-src/Makefile.am: Replace .o with OBJEXT.  List sources
9218         explicitly, instead of LDADDing the corresponding objects.
9219         (OBJ_EXTENSION): Wipe out, use OBJEXT.
9220
9221         * configure.in: Call AC_OBJEXT.
9222         (LTLIBOBJS, LTALLOCA): Define, according to ac_objext.
9223         * common-src/Makefile.am (libamanda_la_LIBADD): Use them.
9224         (libamanda_a_LIBADD): Use LIBOBJS and ALLOCA.
9225
9226         * common-src/Makefile.am (genversion.o): Revert last change, it was
9227         just a bug in automake's --disable-dependency-tracking.
9228
9229 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
9230
9231         * README (platforms): Added OpenBSD.
9232         Reported by Ian Darwin <ian@sq.com>
9233         (platforms): Added SunOS 5.7.
9234
9235 1999-08-15  Derek Ney <derek@hipgraphics.com>, Alexandre Oliva  <oliva@dcc.unicamp.br>
9236
9237         * client-src/sendsize.c (SAMBA_DEBUG_LEVEL): New macro, "0" for
9238         Samba >= 2, "3" for older ones.
9239         (getsize_smbtar): Use `du' if SAMBA_VERSION >= 2, and the
9240         appropriate SAMBA_DEBUG_LEVEL.
9241
9242 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
9243
9244         * common-src/Makefile.am (genversion.o): Depend on genversion.c
9245         too.  It seems that IRIX's make doesn't work without it.
9246         Reported by Brian Cuttler <brian@wadsworth.org>
9247
9248 1999-08-15  Jon LaBadie  <jon@jgcomp.com>
9249         
9250         * tape-src/tapetype.c: Speed it up by using larger sections in the
9251         second pass.
9252
9253 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
9254
9255         * man/amanda.8.in (skip-full, incronly): Document existing bugs.
9256
9257         * server-src/conffile.c (init_defaults): Default disksize to 0.
9258         * man/amanda.8.in (holdingdisk use): Document it.
9259         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
9260
9261         * server-src/planner.c (setup_estimate): Typo.
9262         (next_level0): Typo.
9263
9264         * config/ltconfig, config/ltmain.sh: Update from libtool 1.3.3.
9265
9266         * example/amanda.conf.in: Clarify holdingdisk::use 0.
9267
9268         * config/missing: Update from automake 1.4a.
9269
9270 1999-07-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9271
9272         * man/amanda.8.in: typo.
9273
9274 1999-06-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
9275
9276         * man/amrestore.8: Document holding-file usage.
9277
9278 1999-06-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
9279
9280         * Makefile.am (pkgdata_DATA): Install COPYRIGHTs.
9281         (EXTRA_DIST): Remove docs/*.
9282         * docs/Makefile.am: New file.
9283         (pkgdata_DATA): Install all docs.
9284         * configure.in: Output docs/Makefile.
9285         Suggested by Paul L. Lussier <plussier@baynetworks.com>
9286
9287         * docs/FAQ (selfcheck time-out): NIS services, inetd rebooting,
9288         keyboard time-out, lsof.
9289
9290         * server-src/amverify.sh.in (HEADER): Use `sed 1q'  instead of the
9291         not-that-portable `head -1'.
9292         Reported by Andrew Lare <lare@eos913c.gsfc.nasa.gov>
9293
9294 1999-06-19  Alexander Zangerl  <az@Austria.EU.net>
9295
9296         * client-src/sendbackup-dump.c (re_table): Match Solaris vxdump
9297         output.
9298
9299 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9300
9301         * server-src/dumper.c (read_indexfd): typo
9302
9303 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9304
9305         * server-src/dumper.c (do_dump): Close the indexout fh and wait
9306         for the completion of the index compress process.
9307         * server-src/dumper.c (read_mesgfd,read_datafd): Call stop_dump only
9308         if the index fd is already shut down.
9309         * server-src/dumper.c (read_indexfd): On EOF, call stop_dump() if both
9310         the mesg and data fd are shut down.
9311
9312 1999-06-15  Adam Hammer  <hammer@math.purdue.edu>
9313
9314         * server-src/amverify.sh.in: Wait until device becomes ready after
9315         rewinding.
9316
9317 1999-06-15  Björn Brezger <Bjoern.Brezger@uni-konstanz.de>, Alexandre Oliva  <oliva@dcc.unicamp.br>
9318
9319         * client-src/calcsize.c (ROUND): Rewrite, it was broken.
9320         Reported by Erik Lindahl <erik@theophys.kth.se>
9321
9322 1999-06-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
9323
9324         * server-src/conffile.h: Changed all `long's to `int's, as they
9325         broke get_number et al on 64bit platforms.
9326         Reported by Erik Lindahl <erik@theophys.kth.se>
9327
9328         * configure.in (bcopy, bzero): Oops, ICE_CHECK_DECL already checks
9329         for availability.
9330
9331         * configure.in (bcopy, bzero): Check whether they're available.
9332         * common-src/amanda.h (bcopy, bzero): If not, use memmove and
9333         memset.
9334         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
9335
9336         * server-src/amcheck.c (start_server_check): If info file does not
9337         exist, explain that it is supposed to be created on the next run.
9338
9339 1999-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
9340
9341         * server-src/tapefile.c (lookup_last_reusable_tape): Fix order of
9342         arguments in match() invocation.
9343         From Anthony Worrall <Anthony.Worrall@reading.ac.uk>
9344
9345 1999-06-08  Mike Grupenhoff <kashmir@munge.com>
9346
9347         * restore-src/amrestore.c: second arg to restore() is a char *, not
9348         a string_t.  Adjust prototype accordingly.
9349
9350 1999-06-07  Mike Grupenhoff <kashmir@munge.com>
9351
9352         * common-src/util.c (bind_portrange): function that attempts
9353         to bind a network connection to a port in a given range.
9354         * common-src/util.h: prototype bind_portrange().
9355         * common-src/dgram.c (bind_reserved): remove, superceeded by
9356         bind_portrange().
9357         (dgram_bind): use bind_portrange() instead of bind_reserved(), and
9358         try user specified ports first, then reserved ports, then regular
9359         ports.
9360         * common-src/dgram.h: remove prototype for bind_reserved().
9361         * common-src/stream.c (stream_server, stream_client): use
9362         bind_portrange() instead of bind_reserved(), and try user
9363         specified ports first, then reserved ports, then regular
9364         ports.
9365         * recover-src/amrecover.c (main): use bind_portrange() instead
9366         of bind_reserved(), and verify that the port it gives us is
9367         a reserved one.
9368         * recover-src/extract_list.c (extract_files_setup): use
9369         bind_portrange() instead of bind_reserved(), and verify that
9370         the port it gives us is a reserved one.
9371
9372 1999-06-07  Mark F. Vlems  <mvlems@vbox.xs4all.nl>
9373
9374         * server-src/amindexd.c (reply, lreply, fast_lreply): Return code 0
9375         of printf does not imply an error on some systems (Openstep) even if
9376         the number of written characters is more than 0.  The weakened error 
9377         check has no implication for the correct implementations of printf.
9378
9379 1999-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
9380
9381         * server-src/driver.c (dump_to_tape): Tell hard from soft
9382         (retryable) failures in both dumper and taper results, and behave
9383         accordingly.
9384
9385         * docs/SYSTEM.NOTES: On Trusted Solaris, the format of inetd.conf is 
9386         slightly different.
9387         Reported by Julian Stevens <julian.stevens@baedsl.co.uk>
9388
9389 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
9390
9391         * common-src/util.c (fullread, fullwrite): versions of
9392         read()/write() that keep looping until the buffer is
9393         completely read/written, or an error occurs.
9394         * common-src/Makefile.am: build util.c/util.h
9395         * common-src/fileheader.c, common-src/fileheader.h
9396         (fill_buffer): remove, replaced with fullread()
9397         * server-src/holding.c: use fullread() instead of fill_buffer().
9398         * common-src/bsd-security.c, restore-src/amrestore.c,
9399         server-src/amcheck.c, server-src/driverio.c, server-src/dumper.c,
9400         server-src/logfile.c, server-src/taper.c: use fullread/fullwrite
9401         instead of doing the retry loops manually.
9402
9403 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
9404
9405         * server-src/dumper.c (read_mesgfd, read_datafd): upon EOF,
9406         close the stream.  If the other stream is also closed, shut
9407         down.
9408
9409 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
9410
9411         * client-src/amandad.c (REP_TIMEOUT): bump up to six hours, for slow
9412         machines.
9413         (exit_check): remove waitpid(), let the service reap its own
9414         children.
9415         (s_repwait): rename 'err' to 'errstr' to avoid conflict with
9416         function in some libcs.
9417         (s_ackwait): if no pipes were opened by this service, then shut
9418         it down here.
9419         (process_netfd): on EOF, be sure to also close the network
9420         stream.  Also, if this is the last stream to be closed, shut
9421         down the service.
9422         (allocstream): correct a comment
9423         (service_delete): only close the security handle if it is still
9424         open.  Reap our children here instead of in exit_check().
9425
9426 1999-06-01  Mike Grupenhoff <kashmir@munge.com>
9427
9428         * server-src/taper.c (write_buffer): assert properly
9429
9430 1999-06-01  John Williams  <williams@morinda.com>
9431
9432         * changer-src/scsi-hpux.c (eject_tape): Enable it, it works.
9433
9434 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
9435
9436         * docs/INSTALL: Point to the patches page.  Update version numbers.
9437
9438         * example/config.site: Document UDPPORTRANGE.
9439
9440 1999-06-01  Jens Persson  <jens.persson@btj.se>
9441
9442         * configure.in (UDPPORTRANGE): Set from --with-udpportrange.
9443         * config/acconfig.h: Add UDPPORTRANGE.
9444         * common-src/dgram.c: Implement it.
9445
9446 1999-05-27  Mike Grupenhoff <kashmir@munge.com>
9447
9448         * common-src/alloc.c (alloc, debug_alloc, newalloc, debug_newalloc):
9449         make the size argument a size_t.
9450         (alloc): if an allocation fails, in the error message print how
9451         many bytes we tried to alloc.  This helps us determine if the
9452         alloc call was errant, or we really were out of memory.
9453         * common-src/amanda.h: update alloc/newalloc prototypes for
9454         size_t changes.
9455
9456 1999-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
9457
9458         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
9459         to libtool 1.3.2 plus a few patches.
9460         * config/config.guess, config/config.sub: Ditto.
9461
9462 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
9463
9464         * common-src/protocol.c: retry connection failures three times,
9465         waiting five seconds between each attempt.  Also, fix a lot
9466         of untrue comments.
9467
9468 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
9469
9470         * client-src/amandad.c: add a lot more dbprintfs so we know what's
9471         going on.
9472         (service_new): use error() instead of dbprintf(); exit()
9473
9474
9475 1999-05-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
9476
9477         * docs/FAQ (tar-patch): Mention sparse file problem.
9478
9479         * recover-src/uscan.l: #undef `ECHO' after #include amanda.h; some
9480         system header files may define it.
9481         Reported by Dan Lipofsky <danlip@cyc.com>
9482
9483         * */Makefile.am: Do not define ACLOCAL_M4, COMPILE or
9484         AMANDA_CFLAGS.
9485         * Makefile.am: Create acinclude.m4 in the top-level directory.
9486         * config/Makefile.am: Create link to acconfig.h in the top-level
9487         directory.
9488         * configure.in: Add AMANDA_CFLAGS to CFLAGS.  Set DUMPER_DIR without 
9489         trying to run it.
9490         * common-src/Makefile.am: Create genversion.h with #defines, to
9491         avoid genversion-specific CPPFLAGS.
9492         * common-src/genversion.c: #include genversion.h
9493
9494 1999-05-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9495
9496         * server-src/amandad.c (state2str): string "s_processrep" is 13
9497         caracters.
9498
9499 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
9500
9501         * server-src/amcheck.c (main): if we reap a bogus pid, print
9502         out the error message we generate, instead of whatever junk
9503         happens to be in the buffer.
9504
9505 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
9506
9507         * common-src/bsd-security.c (bsd_stream_read): remove old
9508         code that was part of something that ended up not happening.
9509         (stream_read_callback): use ssize_t.
9510
9511 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
9512
9513         * common-src/event.c (event_register): restructure asserts, and
9514         for EV_READFD/EV_WRITEFD, assert that the fd is < FD_SETSIZE.
9515
9516 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
9517
9518         * common-src/queue.h: move the multiple-inclusion #defines
9519         into application namespace.  #undef each macro before defining
9520         it, in case the OS has an identical macro.
9521
9522 1999-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
9523
9524         * server-src/amindex.h: Keep P macro expression in a single line.
9525         Reported by Patrick Harrold <patrickh@nasco-inc.com>
9526
9527         * common-src/Makefile.am (statfs_LDADD): Added alloc.obj.
9528
9529         * common-src/statfs.c (STATFS_SCALE, sys/statvfs.h): If f_frsize is
9530         zero, use f_bsize.  It now works with GNU libc 2.1.
9531         Reported by Heikki Vatiainen <hessu@cs.tut.fi>
9532
9533 1999-05-22 Alex Pilosov <alex@pilosoft.com>
9534
9535         * server-src/amindexd.c (is_dump_host_valid): sanitize_name(host)
9536         before doing a stat.
9537         * server-src/tapefile.c (lookup_nb_tape): init pos to 0.
9538
9539 1999-05-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9540
9541         * server-src/reporter.c: take the orig size from the SUCCESS line.
9542         use value from the infofile only the datestamp are equal.
9543         Write all available value.
9544
9545 1999-05-18  Mike Grupenhoff <kashmir@munge.com>
9546
9547         * common-src/strerror.c (strerror): restructure so that it doesn't
9548         need to malloc.
9549
9550 1999-05-17  Mike Grupenhoff <kashmir@munge.com>
9551
9552         * common-src/genversion.c (prvar): prototype declared it static,
9553         but actual function was still extern.
9554
9555 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9556
9557         * server-src/planner.c (pick_inclevel): check for base_level+1 if
9558         we don't have estimate for base_level. Needed for FORCE_BUMP.
9559         * server-src/planner.c (promote_highest_priority_incremental):
9560         Don't promote if we don't have level 0 estimate. No more need
9561         to check for skip_full, DS_NOFULL, DS_INCRONLY or FORCE_BUMP.
9562
9563 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9564
9565         * server-src/amflush.c: ignore SIGPIPE
9566         * server-src/driver.c: ignore SIGPIPE
9567         * server-src/driverio.c (taper_cmd, dumper_cmd): return 0 on error, 
9568         1 on success.
9569         * server-src/driverio.h (taper_cmd, dumper_cmd): prototype.
9570
9571 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9572
9573         * server-src/dumper.c: make prototypes consistent, (putresult):
9574         make first arg const.
9575
9576 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9577
9578         * server-src/conffile.c (getconf_byname): islower takes an int
9579         for an arg.
9580         * server-src/diskfile.c (upcase): islower takes an int for an
9581         arg.
9582         * server-src/driver.c (update_failed_dump_to_tape): prototype.
9583         * server-src/holding.c (insert_dirname, scan_holdingdisk):
9584         prototype and make static, (is_datestr): isdigit takes an int
9585         for an arg.
9586
9587 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9588
9589         * client-src/calcsize.c (basename): make static, prototype, and
9590         only include if BUILTIN_EXCLUDE_SUPPORT is defined and
9591         HAVE_BASENAME is not defined.
9592         * client-src/getfsent.c (dev2rde, samefile): prototype and
9593         make static.
9594         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c
9595         (start_backup, end_backup): prototype.
9596         * client-src/sendbackup.c (index_closed, save_fd): prototype
9597         and make static.
9598         * client-src/versionsuffix.c (main): prototype.
9599         * common-src/alloc.c (internal_vstralloc): prototype.
9600         * common-src/file.c (mk1dir): prototype, make static, and make
9601         first arg const.
9602         * server-src/amadmin.c (check_dumpuser): prototype.
9603         * server-src/amflush.c (get_letter_from_user): prototype and make
9604         static.
9605         * server-src/amindexd.c: prototype and make static numerous local
9606         functions.
9607         * server-src/amlabel.c (main): prototype.
9608         * server-src/amtrmidx.c (main): prototype.
9609         * server-src/changer.c (report_bad_resultstr, run_changer_command):
9610         prototype.
9611         * server-src/conffile.h: properly prototype getconf_holdingdisks()
9612         * server-src/driverio.h: properly prototype init_driverio().
9613         * server-src/find.c (find_compare, parse_taper_datestamp_log):
9614         prototype.
9615         * server-src/infofile.c (zero_info, open_txinfofile,
9616         close_txinfofile, read_txinfofile, write_txinfofile,
9617         delete_txinfofile): prototype and make static.
9618         * server-src/planner.c (main, askfor): prototype.
9619
9620 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9621
9622         * server-src/server_util.c: include server_util.h for prototypes
9623         * server-src/tapefile.h: properly prototype lookup_nb_tape()
9624         * server-src/driverio.c (childstr): make static, make return
9625         val const.
9626
9627 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9628
9629         * server-src/find.h: properly prototype find_log()
9630         * server-src/amtrmlog.c (main): prototype.  find_log() takes
9631         no arguments.
9632
9633 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9634
9635         * server-src/reporter.c: make all functions and globals
9636         static.  Prototype all functions, and make them consistent wrt
9637         K&R.  Place all prototypes together.  Place data type
9638         declarations before the prototypes that use them.  Remove
9639         unused sort_by_time().
9640
9641 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9642
9643         * server-src/dumper.c (process_dumpline): clean up the error
9644         return code
9645         * server-src/dumper.c (log_msgout): no need to reuse errf global,
9646         it makes me nervous.  Also, use amfree instead of free.
9647
9648 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9649
9650         * common-src/packet.c (pkt_cat): remove a bogus assert - len is
9651         a size_t, which is unsigned, so it will always be >= 0.
9652
9653 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9654
9655         * client-src/amandad.c (action_t): consolidate A_PKTTIMEOUT and
9656         A_REPTIMEOUT into just A_TIMEOUT.
9657
9658 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9659
9660         * common-src/amanda.h, common-src/alloc.c, common-src/event.c,
9661         common-src/rsh-security.c, server-src/driver.c,
9662         server-src/dumper.c: (min, max): consolidate all min/max
9663         definitions into amanda.h
9664
9665 1999-05-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
9666
9667         * docs/TAPE.CHANGERS (chg-rth): URL for chs is no longer valid.
9668
9669 1999-05-12  Mike Grupenhoff <kashmir@munge.com>
9670
9671         * common-src/amanda.h, common-src/alloc.c, common-src/file.c:
9672         const the filename arg to all of the dbmalloc versions of
9673         alloc and io functions
9674
9675 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
9676
9677         * common-src/protocol.c (proto_t): don't need prev and next ptrs
9678         anymore
9679
9680 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
9681
9682         * common-src/amanda.h, common-src/alloc.c: remove the static
9683         buffer manager - nothing uses it.  It can be resurrected in
9684         the future if needed.
9685
9686 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
9687
9688         * common-src/amanda.h: define stringconcat() macros that
9689         concatenate two const strings together
9690         * common-src/versuff.c.in (versionsuffix, version): generate
9691         data at compile time using stringconcat().
9692         * common-src/genversion.c: simplify, don't need to alloc anything
9693         * common-src/Makefile.am (genversion_LDADD): this doesn't need
9694         alloc.o or error.o anymore
9695
9696 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
9697
9698         * common-src/security.c (security_handleinit, security_streaminit):
9699         change default error message "unknown error" to "unknown protocol
9700         error" or "unknown stream error" to help identify where an
9701         messageless error was triggered.
9702
9703 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
9704
9705         * client-src/amandad.c (main): call initgroups(), and also set
9706         the real gid.
9707
9708 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
9709
9710         * server-src/driver.c (start_some_dumps): if a dumper is
9711         constrained, and some dumpers or the taper are active, register
9712         a EV_WAIT event.
9713         * server-src/driver.c (handle_taper_result,
9714         handle_dumper_result):  wakeup constrained dumpers after we
9715         have freed some resources.
9716
9717 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
9718
9719         * common-src/fileheader.c, common-src/fileheader.h: rework the
9720         fileheader parse and format code to remove a lot of duplicated
9721         code (in the F_DUMPFILE and F_CONT_DUMPFILE cases), consting
9722         arguments, and simplifying parse code.
9723
9724 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
9725
9726         * client-src/sendsize.c (getsize_dump): print out the strerror
9727         if we can't exec killpgrp.
9728
9729 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
9730
9731         * server-src/dumper.c (add_msg_data): first two arguments
9732         to memmove() were backwards.
9733
9734 1999-05-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9735
9736         * example/amanda.conf.in: typo
9737
9738 1999-05-07  Mike Grupenhoff <kashmir@munge.com>
9739
9740         * common-src/alloc.c (safe_env): allow DISPLAY into the
9741         environment for purify.
9742         * server-src/holding.c (rename_tmp_holding): if fill_buffer
9743         returns 0, don't try to parse a nonexistant header.
9744         * server-src/taper.c (file_reader_side): init datestamp to
9745         NULL, and don't try to free it if it's still NULL on exit.
9746
9747 1999-05-06  Mike Grupenhoff <kashmir@munge.com>
9748
9749         * server-src/driver.c (start_some_dumps): sleep_time is an
9750         offset, not an absolute.  Leave it that way when we return from
9751         this function.
9752
9753 1999-05-05  Mike Grupenhoff <kashmir@munge.com>
9754
9755         * server-src/amverify.sh.in (pecho): new function.  Like echo
9756         but doesn't append newline, and supports \r, etc.  Implemented
9757         using perl.
9758         * server-src/amverify.sh.in: use pecho where we used to use echo -n,
9759         etc.  It's nearly impossible to figure out which echo needs what
9760         flags and also know if it supports \r.  So we just punt and use
9761         perl.
9762
9763 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
9764
9765         * server-src/driver.c: convert to use event handler.
9766         (some_dumps_in_progress, lookup_dumper): nuke.
9767         (sleep_time): make a time_t and static.
9768         (IDLE_NO_DUMPERS): give a lower precedence than IDLE_START_WAIT.
9769         (start_some_dumps): make this work on one dumper instead of all.
9770         Call when a dumper is finished and needs more work.
9771         (handle_idle_wait): callback for dumpers waiting for delayed
9772         disks to start up.
9773         * server-src/driverio.c: initialize event handles for dumpers
9774         and the taper.  Nuke addfd().
9775         * server-src/driverio.h: add event handles for each dumper, and
9776         one global one for the taper.  Nuke maxfd and readset globals.
9777
9778 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
9779
9780         * server-src/driver.c (taper_queuedisk): new function that takes
9781         a disk_t, and, if the taper is not busy, tells it to write it out,
9782         or else adds it to the tapeq.  Make use_lffo global static.
9783         * server-src/driver.c (handle_taper_result, handle_dumper_result):
9784         call taper_queuedisk() instead of queueing ourself.
9785
9786 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
9787
9788         * server-src/driver.c: make all local functions static.
9789         Exposed two prototypes for nonexistant functions
9790         (diskname2filename, driver_main), and one function (dump_state)
9791         that was never called.  #if 0 out dump_state.
9792         Nuke inside_dump_to_tape global - it's value was never used.
9793         Make pending_aborts global a static local in handle_dumper_result.
9794
9795 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
9796
9797         * server-src/driverio.h (dumper_t): merge infd and outfd into
9798         just 'fd'.  Comment the other members of the struct.
9799         * server-src/driverio.c: infd/outfd -> fd
9800         * server-src/driver.c (handle_dumper_result): merge some common
9801         code between the FAILED and TRYAGAIN cases.  Comment the
9802         ABORT_FINISHED case.  Also infd/outfd -> fd.
9803
9804 1999-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9805
9806         * server-src/planner.c (when_overwrite): return a big number (1024)
9807         if the tape is not reusable.
9808
9809 1999-04-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
9810
9811         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
9812         from libtool 1.3.
9813
9814 1999-04-29  Mike Grupenhoff <kashmir@munge.com>
9815
9816         * server-src/driver.c (handle_dumper_result): remove FATAL_TRYAGAIN
9817         case, nothing uses it.
9818         * server-src/driverio.c, server-src/driverio.h: garbage collect
9819         FATAL_TRYAGAIN.  static & const cmdstr.
9820
9821 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
9822
9823         * server-src/diskfile.c (read_diskfile): rework to take a
9824         disklist_t * as an argument, and return -1 on error, or 0 on
9825         success.  const the filename argument.  Kill a few globals.
9826         * server-src/diskfile.c (lookup_host, lookup_disk): const
9827         arguments
9828         * server-src/diskfile.h: adjust prototypes for above changes
9829         * server-src/amadmin.c, server-src/amcheck.c,
9830         server-src/amcleanupdisk.c, server-src/amflush.c,
9831         server-src/amindexd.c, server-src/amtrmidx.c,
9832         server-src/amtrmlog.c, server-src/driver.c,
9833         server-src/planner.c, server-src/reporter.c: adjust calls to
9834         read_diskfile() to deal with convention
9835
9836 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
9837
9838         * server-src/dumper.c (read_mesgfd, read_indexfd): on EOF, just
9839         stop reading these streams.  We let EOF on the data stream cause
9840         the entire dump to be stopped.
9841
9842 1999-04-27  Mike Grupenhoff <kashmir@munge.com>
9843
9844         * common-src/rsh-security.c (conn_read_callback): cast
9845         event_wakeup() arg to event_id_t.
9846
9847 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
9848
9849         * common-src/versuff.c.in: Adjust constness to match version.h.
9850
9851         * docs/SYSTEM.NOTES: Recommend GNU tar for Linux.
9852
9853 1999-04-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9854
9855         * server-src/amdump.sh.in: execute amtrmlog.
9856
9857 1999-04-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9858
9859         * client-src/sendbackup.c: rename write_tapeheader to info_taperheader
9860         we already have a write_tapeheader function in dumper.c
9861         * client-src/sendbackup.h: ditto
9862         * client-src/sendbackup-dump.c: ditto
9863         * client-src/sendbackup-gnutar.c: ditto
9864
9865 1999-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9866
9867         * dumper-src/gnutar.pl.in: add debuging code.
9868         * server-src/planner.c (getsize): send optionstr() for estimate 
9869         with a wrapper.
9870         * client-src/selfcheck.c: init program_is_wrapper to 0.
9871         * client-src/sendsize.c: implement DUMPER-API, support only
9872          estimate-direct.
9873
9874 1999-04-22 John R. Jackson  <jrj@purdue.edu>
9875
9876         * configure.in: add --with-broken-fsf to use a read() loop instead
9877         of the fsf ioctl on some broken systems.
9878         * config/acconfig.h: ditto
9879         * tape-src/tapeio.c (tapefd_fsf): ditto
9880
9881 1999-04-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
9882
9883         * docs/SYSTEM.NOTES: Typo
9884         * docs/SAMBA: Update on samba-largefs patch.
9885         * docs/FAQ: New FAQ about promotion of full dumps.
9886
9887 1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
9888
9889         * tape-src/tapeio.c (tape_open): Retry after EBUSY and EINTR too.
9890         Comment out test that would set filename to /dev/null.
9891
9892 1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
9893
9894         * docs/WISHLIST: Global reformat.  Removed fixed issues.  Added
9895         auto-flush mode.
9896
9897 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9898
9899         * server-src/server_util.c: use snprintf instead of ap_snprintf.
9900
9901 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9902
9903         * server-src/server_util.c: new file for utility function.
9904         New function construct_datestamp.
9905         * server-src/server_util.h: ditto
9906         * server-src/Makefile.am: link server_util.c with libamserver.
9907         * amcleanupdisk.c (construct_datestamp): remove function.
9908         * server-src/driver.c: ditto
9909         * server-src/dumper.c: ditto
9910         * server-src/amflush.c: ditto
9911         * server-src/planner.c: ditto
9912
9913 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
9914
9915         * common-src/bsd-security.c: this doesn't need queue.h
9916
9917 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
9918
9919         * common-src/event.c: Insert new events at the head of the eventq,
9920         not the tail, so we don't loop forever if a newly registered
9921         event has the same type as the one currently firing.  Noticed
9922         and diagnosed by Jean-Louis Martineau.
9923         Use a LIST for the eventq, instead of a TAILQ, since we don't need
9924         to do tail insertions anymore.
9925         Make the eventq_* functions take a queue name so we can also use
9926         them for the handle cache.  Rename eventq_append() to eventq_add().
9927
9928 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9929
9930         * dumper-src/gnutar.pl.in: add DUMPER_DIR to INC.
9931
9932 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9933
9934         * client-src/selfcheck.c: Implement DUMPER-API.
9935         * dumper-src/gnutar.pl.in (command_selfcheck): print OK, the function
9936         is not implemented.
9937         * dumper-src/generic-dumper.pl.in (parse_options): option are
9938         separated by ;
9939
9940 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9941
9942         * server-src/dumper.c: make dumpsize and headersize static.  Rename
9943         nb_header_block to headersize and also make it static.  headersize
9944         now counts bytes instead of blocks, just like the other two.
9945         Use SEEK_SET in an lseek instead of hardcoding 0.
9946
9947 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9948
9949         * configure.in: implement --with-cflags to allow turning on
9950         compiler warnings and optimizations
9951
9952 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9953
9954         * common-src/event.c (gethandle, puthandle): new functions that
9955         keep a cache of handles to reduce calls to malloc/free.
9956
9957 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9958
9959         * common-src/alloc.c (dbmalloc_caller_loc): const the file
9960         arg, use the queue macros to maintain the list.
9961
9962 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9963
9964         * common-src/versuff.c.in: const the return str of version()
9965         and versionsuffix.  Bump copyright to 1999.
9966
9967 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9968
9969         * client-src/amandad.c, client-src/amandad.h,
9970         client-src/sendbackup-dump,c, client-src/sendbackup-gnutar.c,
9971         client-src/sendbackup.c, common-src/bsd-security.c,
9972         common-src/dgram,c, common-src/dgram.h, common-src/event.c,
9973         common-src/event.h, common-src/krb4-security.c,
9974         common-src/krb5-security.c, common-src/packet.c,
9975         common-src/packet.h, common-src/protocol.c, common-src/security.c,
9976         common-src/security.h, server-src/amcheck.c, server-src/conffile.c,
9977         server-src/conffile.h, server-src/dumper.c:
9978         update copyright to 1999 on things I've touched this year.
9979
9980 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9981
9982         * common-src/amanda.h: remove version_info extern.  Bump
9983         copyright to 1999
9984         * common-src/genversion.c: constify version_info.  Emit
9985         {KRB4,KRB5,RSH}_SECURITY.  Bump copyright.
9986         * common-src/version.h: const VERSION_COMMENT and version_info.
9987         const return str and fully prototype versionsuffix() and version()
9988         prototypes.  Bump copyright.
9989         * server-src/planner.c (main): iterate through version_info using
9990         an index instead of a pointer.
9991
9992 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9993
9994         * server-src/conffile.c: explicitly give the seen_columnspec global
9995         an int type instead of letting the compiler default to it.
9996
9997 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9998
9999         * common-src/event.h (event_id_t): a new typedef for the
10000         first arg to event_register.  Should be wide enough to
10001         reasonably hold an int or a pointer (but it is ok to trunc
10002         the pointer if necessary).  Update proto for event_register()
10003         and event_wakeup().
10004         * common-src/event.c: struct event_handle->data is now an
10005         event_id_t.
10006         (event_register, event_wakeup): adjust args for event_id_t)
10007         (event_register): event_id_t is unsigned, no need to assert
10008         positivity anymore.
10009         * common-src/rsh-security.c (rsh_stream_read): cast first arg to
10010         event_register() to event_id_t.
10011
10012
10013 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
10014
10015         * common-src/event.c (release): nuke, and inline into event_loop.
10016         * common-src/event.c (event_loop): flesh out the timeout comment.
10017         Combone the EV_WAIT and EV_DEAD empty cases in the post-select loop.
10018         * common-src/event.h: flesh out the event_type_t comment.
10019
10020 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
10021
10022         * common-src/event.c (fire): inline this with a macro.  Remove
10023         timestamp arg.  eh->lastfired is now only valid for EV_TIME
10024         events.  Removes several time() systems from the critical path.
10025         * common-src/event.c (event_wakeup): have this fire EV_WAIT events
10026         directly instead of deferring back to the event loop.  Removes the
10027         sequencing restriction for event_wakeup.
10028
10029 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
10030
10031         * server-src/planner.c (getsize): put the hosts disks on the waitq
10032         before sending the request, not after.
10033
10034 1999-04-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
10035
10036         * docs/UPGRADE: Update URL for archived message.
10037
10038 1999-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10039
10040         * server-src/amcheck.c (main): should not set real uid to 0.
10041
10042 1999-04-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10043
10044         * common-src/bsd-security.c (bsd_connect): dgram_bind return the port
10045         number, we don't need ntohs().
10046
10047 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
10048
10049         * common-src/dgram.c,common-src/dgram.h: nothing uses dgram_alloc()
10050         anymore, gc them.
10051
10052 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
10053
10054         * server-src/amindexd.c: dgram.h not needed
10055
10056 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
10057
10058         * common-src/event.c: fix a bunch of inaccurate comments.
10059         * common-src/event.c (event_loop): prune dead events in the
10060         pre-select pass instead of in the EV_WAIT pass.
10061         * common-src/event.c (fire): factor out all code that fires
10062         events into a 'fire' function.
10063         * common-src/event.c (signal_handler): bounds check the signal
10064         number against the size of sigtable instead of assuming sigtable
10065         is NSIG big.
10066
10067 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
10068
10069         * client-src/amandad.c (allocstream): if security_stream_server()
10070         fails, dbprintf the error.
10071
10072 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
10073
10074         * configure.in: implement --with-rsh-security
10075         * common-src/rsh-security.c: first attempt at using rsh or a rsh-like
10076         command for dump transport and authentication.  Still has lots
10077         of "issues"
10078         * common-src/Makefile.am: build rsh-security.c
10079         * common-src/security.c: add rsh_security_driver to the drivers array
10080         * config/acconfig.h: define RSH_SECURITY
10081
10082 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
10083
10084         * server-src/dumper.c (runcompress): use the proper end of the pipe
10085         for writing and reading.  Also, grab errno early on fork error
10086         before calling close.
10087         * server-src/dumper.c (sendbackup_response): make sure the client
10088         at least send us a mesgfd and datafd.
10089
10090 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
10091
10092         * client-src/amandad.c (main): don't dup stdout to db_fd - it might
10093         be needed by the security driver
10094         * client-src/amandad.c (s_ackwait, allocstream,): on error, don't
10095         attempt to event_release a handle we haven't attached yet.
10096
10097 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
10098
10099         * ap_snprintf -> snprintf, ap_vsnprintf -> vsnprintf
10100
10101 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10102
10103         * client-src/Makefile.am (noinst_HEADERS): add amandad.h
10104
10105 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10106
10107         * common-src/Makefile.am (libamanda_la_SOURCES): build
10108         krb4-security.c
10109
10110 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10111
10112         * configure.in: implement --with-dbmalloc=[dir], where dir is
10113         where the dist is unpacked and built.  This could be improved on,
10114         because it doesn't handle the case where it's installed.
10115
10116 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10117
10118         * client-src/sendbackup.c: security changes:
10119         remove krb4 code and NAUGHTY_BITS macros.
10120         (parse_options): don't look for krb4 options
10121         (main): don't close pipes that were handed to us from amandad.
10122         Don't open stream directly - just use the pipes given to us.
10123         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c:
10124         Remove krb4 code and NAUGHTY_BITS macros.
10125
10126 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10127
10128         * client-src/amandad.h: new file describing the pipes between
10129         amandad and children.
10130         * client-src/amandad.c: rewrite for security changes.  Can
10131         now handle multiple requests simultaneously, and has a state
10132         machine to deal with each active request.
10133         This handles all network transmissions and authentication.
10134         Each child process (sendbackup, selfcheck) gets three general
10135         purpose pipes to amandad which it may allocate for anything.
10136         amandad relays these pipes to equivalent security_streams.
10137         Lots of other stuff.
10138         Finally, NEED_KEYPIPE stuff removed.
10139
10140 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10141
10142         * server-src/dumper.c: security changes:
10143         Remove krb4 includes and NAUGHTY_BITS macros.
10144         Remove no-longer-true comment about DATABUF_SIZE ==
10145         TAPE_BLOCK_BYTES for krb4
10146         Remove file descriptor and event handle from streams array.  Add
10147         a security_stream_t.
10148         Remove global read buffer.
10149         (check_options): remove krb4 code.
10150         (service_ports_init): remove, now handled by individual security
10151         drivers.
10152         (main): remove dgram usage.
10153         (do_dump): remove DUMPER_SOCKET_BUFFERING - now handled in the
10154         bsd driver.  schedule reads on the streams using
10155         security_stream_read.
10156         (read_mesgfd,read_datafd,read_indexfd): adapt to
10157         security_stream_read callback interface.
10158         (stop_dump): just call security_stream_close on all non-null
10159         streams.
10160         (sendbackup_response): adapt to new protocol layer error return.
10161         Remove krb4 code.
10162         (startup_dump): stinky hack to parse the security driver string out of
10163         the options passed to us from driver.
10164         Lookup the security driver with said string.
10165         Remove krb4 code.
10166         Free request after calling protocol_sendreq().
10167
10168 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10169
10170         * server-src/planner.c: security changes:
10171         (main): Remove dgram usage.  Call protocol_init().  Remove
10172         krb4 code.
10173         (getsize): remove krb4 code.  Handle protocol layer api changes.
10174         Lookup security driver/complain if not found.  Free request
10175         after calling sendreq.  All hosts get put on the waitq since
10176         sendreq never returns an error.
10177         (handle_result): deal with new protocol layer error semantics.
10178         Remove krb4 code.
10179
10180 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10181
10182         * server-src/conffile.c: remove INTERFACE undef hack.  Our
10183         namespace isn't polluted by krb4 headers anymore, so it's
10184         unneeded.
10185
10186 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10187
10188         * server-src/amcheck.c: security changes:
10189         (main): ignore SIGPIPE - some security drivers might get it.
10190         Remove all usages of dgram.
10191         Make our real uid root and our effective uid amanda so we can
10192         get back to root later (on most os's :()
10193         (start_client_checks): remove krb4 bits.
10194         The dump user check should check the effective uid.
10195         Get the name of the security driver for this host out of
10196         host->diskp->security_driver.
10197         Free req after calling protocol_sendreq() because it will internalize
10198         it.
10199         protocol_sendreq doesn't return any errors - they're all returned
10200         via handle_response.
10201         (handle_result): renamed from handle_response for consistency.
10202         The protocol layer doesn't pass us a proto_t anymore, so detect
10203         errors based on pkt being NULL.
10204         Remove krb4 bits - security violations will be indicated by a 
10205         NULL pkt.
10206
10207 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10208
10209         * common-src/protocol.[ch]: rewrite for security api.  The entry
10210         points now have the 'protocol' prefix.  See protocol.h for more
10211         info.
10212         * common-src/security.c: rewrite for security api.  This now contains
10213         the functions for the 'base class' or some approximation of it.
10214         See security.h for the entry points, or docs/SECURITY-API.
10215
10216 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10217
10218         * common-src/amanda.h: rip out krb4 defines, headers, and
10219         prototypes.  Also, make assert() abort() after calling error().
10220         * common-src/krb4-security.c: stub file that pulls in the real
10221         krb4-security out of amanda-krb-2 if KRB4_SECURITY is defined.
10222
10223 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10224
10225         * server-src/conffile.h: aggregate all of the compress defines
10226         (COMP_{NONE,FAST,BEST,...}) into an enum and typedef it to comp_t.
10227         Make dumptype_t->compress a comp_t.
10228         * server-src/dumper.c: make srvcompress global a comp_t.
10229         * server-src/dumper.c (runcompress): add a comp_t third arg
10230         that specifies the level of compression for this fd.
10231         * server-src/dumper.c (do_dump): always compress index files
10232         with COMP_BEST compression, as pointed out by Jean-Louis Martineau.
10233         * server-src/dumper.c (read_indexfd): read the indexfd, not the
10234         datafd.  Also noted by Jean-Louis Martineau.
10235
10236 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10237
10238         * server-src/planner.c (main): ignore SIGPIPE.  tcp based
10239         security drivers may get this while getting estimates.
10240         Set the real uid to root, and the effective uid to the amanda
10241         user, so we can get back to root later if needed.
10242         * server-src/planner.c (handle_result): rework error logic
10243         so we don't need to use p->state, which will eventually go
10244         away.
10245
10246 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
10247
10248         * server-src/dumper.c: rewrite to use the event handler instead
10249         of a select loop.  Also, compress the index output using
10250         runcompress() instead of forking a compress ourselves.
10251
10252 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
10253
10254         * server-src/dumper.c (sendbackup_response): don't krb4 authenticate
10255         streams if krb4_auth if false.
10256
10257 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
10258
10259         * server-src/dumper.c (do_dump): some formatting cleanups.  Nuke
10260         'killerr' - we can do without it.
10261
10262 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
10263
10264         * server-src/dumper.c (do_dump): store compresspid inside of
10265         the databuf
10266
10267 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
10268
10269         * server-src/dumper.c (parse_info_line): parse info lines
10270         from sendbackup directly into the 'file' global.  Eliminate
10271         the backup_name, recover_cmd, and compress_suffix globals.
10272         * server-src/dumper.c (finish_tapeheader): nuke usage
10273         of above globals.  Nuke unneeded explicit nul terminations (we
10274         memset the whole thing in fn_init).
10275
10276 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
10277
10278         * server-src/dumper.c (process_dumpline): rewrite to use strtok
10279         and const the argument.
10280         * server-src/dumper.c (make_tapeheader): rename to finish_tapeheader
10281         and prototype it.  Remove the 'type' arg, since it's always
10282         F_DUMPFILE.  Remove call to fn_init().
10283         * server-src/dumper.c (do_dump): call fh_init on 'file' while
10284         initializing globals.  Call finish_tapeheader after getting info
10285         endline.
10286
10287 1999-04-07 John R. Jackson  <jrj@purdue.edu>
10288
10289         * tape-src/tapeio.c: allow tapedev to be /dev/null.
10290         * server-src/taper.c: allow tapedev to be /dev/null.
10291         * man/amanda.8.in: allow tapedev to be /dev/null.
10292
10293 1999-04-07  Mike Grupenhoff <kashmir@munge.com>
10294
10295         * server-src/dumper.c: collect got_info_endline, got_sizeline,
10296         got_endline, and header_done into one bitmask global, and make it
10297         static.  Also, make 'file' static.
10298
10299 1999-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10300
10301         * server-src/reporter.c (TextRule): Fix to write the full string.
10302
10303 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10304
10305         * configure.in: MIT krb5 has libk5crypto, Cygnus kerbnet 1.2
10306         calls it libcrypto.  Check for both.
10307
10308 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10309
10310         * common-src/bsd-security.c (check_user): if an .amandahosts
10311         file is missing or unreadable, log this fact to the debug file
10312         instead of claiming that a user doesn't have permission.
10313         * common-src/bsd-security.c (bsd_stream_client): if
10314         DUMPER_SOCKET_BUFFERING is defined, set the socket read buffer to
10315         be twice the size of our read buffer.
10316
10317 1999-04-06  David Mankins <dm@k12-nis-2.bbn.com>
10318
10319         * common-src/security.c (bsd_security_ok): if an .amandahosts
10320         file is missing or unreadable, log this fact to the debug file
10321         instead of claiming that a user doesn't have permission.
10322
10323 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10324
10325         * server-src/dumper.c: put all of the streams (data,mesg,index)
10326         into an array with a name tag.
10327         * server-src/dumper.c (stop_dump): new function that cleans up
10328         and shuts down all of the streams.
10329         * server-src/dumper.c (sendbackup_response): make static, pass
10330         response_error through p->datap instead of making it global.
10331         Rewrite the parsing to use strtok() and take advantage of the
10332         streams array instead of repeading code for all three streams.
10333
10334 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10335
10336         * server-src/dumper.c (main): keep our real uid as 0, and make
10337         our effective uid nonprivlidged, so we can get back to root
10338         later.  Don't print what port we bound to.  This info won't
10339         always be available or even applicable.
10340         * server-src/dumper.c (do_dump): create the stats line with one
10341         snprintf instead of a huge amount of code.
10342
10343 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10344
10345         * server-src/dumper.c (startup_dump): make static, and const all
10346         of the string args
10347         * server-src/dumper.c (do_dump): make static
10348
10349 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10350
10351         * server-src/dumper.c (do_dump): no need to have a separate buffer
10352         to read the mesgfd - just reuse the one we used for data reads.
10353         Gets rid of one more global.  Also, we don't need to leave
10354         space for a NUL anymore.
10355         * server-src/dumper.c (main): wait for children after closing
10356         our fds.  Some children may be blocked waiting for EOF on outfd,
10357         effectively causing deadlock between dumper and child.
10358
10359 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10360
10361         * server-src/dumper.c (add_msg_data): now takes a 'len' arg, and
10362         doesn't expect the data to be nul terminated.  Also, move
10363         the buffer from global scope into the function, and have a NULL
10364         arg flush it out if there is leftover data at the end.  Finally,
10365         resize the buffer in 256 byte chunks.
10366
10367 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10368
10369         * common-src/stream.c, common-src/stream.h (stream_client): add
10370         yet another arg - if nonzero, do a nonblocking connect
10371         * server-src/dumper.c: catch up with extra arg to stream_client()
10372
10373 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10374
10375         * common-src/bsd-security.c, common-src/security.h: attempt
10376         to decouple security streams from security handles.  Lots of
10377         other restructuring.
10378
10379 1999-04-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10380
10381         * server-src/amcheck.c: -t should read the tapelist to validate
10382         the label.
10383
10384 1999-03-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
10385
10386         * patches/samba-largefs.patch: updated to patch that ended up
10387         installed in the Samba CVS tree
10388
10389         * patches/tar-1.12.patch: patch the configure script so that it
10390         requires autoconf and autoheader to be run; improve the
10391         printf_long_long test so that it doesn't get false positives because 
10392         of endianness
10393
10394         * changer-src/scsi-chio.c: since we do not support FreeBSD 3's
10395         camlib.h interface, #ifdef out all the code
10396         Reported by Francis Lam <Francis.Lam@Leitch.com>
10397
10398         * configure.in (VXSYSLOCPATH): apparently a complex path expression
10399         gets AC_PATH_PROGS confused; set the path beforehand
10400         Reported by Francis Lam <Francis.Lam@Leitch.com>
10401
10402 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10403
10404         * server-src/reporter.c: compiler warning.
10405
10406 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10407
10408         * server-src/amtrmlog.c: new program to move unused log 
10409         to logdir/oldlog.
10410         * server-src/Makefile.am: install amtrmlog.
10411         * server-src/find.h: declare find_log().
10412         * server-src/find.c(find_log): new function to return an array of
10413         all the logfile name that are still needed.
10414         * server-src/find.c(search_logfile): special case if output_find==NULL,
10415         return 1 if it the logfile fir the label.
10416
10417 1999-03-25  Neil Crellin  <neil@wallaby.cc>
10418
10419         * docs/TAPE.CHANGERS (chg-chs): URL for chs
10420
10421 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>, Tom Schutter  <tom@platte.com>, Cloyce D. Spradling  <cloyce@headgear.org>
10422
10423         * patches/samba-largefs.patch: updated for Samba 2.0.*
10424
10425 1999-03-25  Charles Owens  <owensc@enc.edu>
10426
10427         * changer-src/chg-chio.pl.in (changeTape): do not print status to
10428         both stdout and stderr; this causes failures on FreeBSD
10429
10430 1999-03-23  Mike Grupenhoff <kashmir@munge.com>
10431
10432         * common-src/stream.c, common-src/stream.h (stream_client):
10433         const the hostname arg
10434
10435 1999-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10436
10437         * configure.in: AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
10438         * dumper-src/gnutar.pl.in: use @GNUTAR_LISTED_INCREMENTAL_DIR@
10439
10440 1999-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10441
10442         * configure.in: default for DUMPER_DIR is $exec_prefix/dumper.
10443         * Makefile.am: make dumper-src directory
10444         * dumper-src: directory for program that implement the DUMPER-API.
10445         * dumper-src/Makefile.am:
10446         * dumper-src/generic-dumper.pl.in: first draft of a generic wrapper.
10447         * dumper-src/gnutar.pl.in: first draft of a gnutar wrapper.
10448
10449 1999-03-21  Elmar Bartel  <bartel@Informatik.TU-Muenchen.DE>
10450
10451         * conffile.h, conffile.c: new columnspec option
10452         * reporter.c: use it
10453         * man/amanda.8.in: description and example
10454         * example/amanda.conf.in: ditto
10455
10456 1999-03-20  Dahn Nilsson <dahn.nilsson@maxlab.lu.se>
10457
10458         * configure.in: SAMBA_VERSION is not set correctly.
10459
10460 1999-03-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
10461
10462         * client-src/sendbackup-dump.c (re_table): generalize a bit some of
10463         the regular expressions, so as to make us more adaptable to future
10464         minor changes and bugfixes the the output format of some dumps
10465
10466 1999-03-16 Thomas Hepper <th@ant.han.de>
10467         * changer-src/chg-scsi.c: If the open of the TapeDevice fails
10468         the programm is not terminated.
10469         * changer-src/scsi-aix.c: The wrong ident string was checked
10470         for 0 termination.
10471         * changer-src/scsi-bsd.c: see scsi-aix.c
10472         * changer-src/scsi-linux.c: see scsi-aix.c
10473         * changer-src/scsi-solaris.c: see scsi-aix.c
10474         * changer-src/scsi-changer-driver.c: Added some more debug prints.
10475         Wrong fd passwd to LogSense.
10476         * docs/TAPE.CHANGERS: added note about linux and aha1542
10477
10478 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
10479
10480         * common-src/packet.h: explicitly list the numeric values for
10481         the pktype_t enum, so we can use them on the wire
10482
10483 1999-03-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
10484
10485         * config/ltconfig, config/ltmain.sh: updated from libtool 1.2f
10486         * config/libtool.m4i, config/config.guess, config/config.sub: ditto
10487         * configure.in: dropped AC_PROG_RANLIB, as suggested by libtoolize
10488
10489 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
10490
10491         * common-src/bsd-security.c (recv_security_ok): bring over
10492         increased verbosity change from common-src/security.c
10493
10494 1999-03-14  Mathias Herberts  <Mathias.Herberts@ago.fr>
10495
10496         * man/amrecover.8.in: document mode and setmode
10497
10498 1999-03-14  Jon Stevens  <jon@clearink.com>
10499
10500         * common-src/security.c (bsd_security_ok): increase the verbosity of 
10501         failed authentication messages
10502
10503 1999-03-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
10504
10505         * configure.in (powerpc-*-linux-*): supported platform
10506         * README: ditto
10507         Reported by Jon Stevens <jon@clearink.com>
10508
10509 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10510
10511         * configure.in: new option --with-dumperdir=DIR to specify the 
10512         directory for the dumpers (dumper api).
10513         * config/acconfig.h: add def of DUMPER_DIR
10514
10515 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10516
10517         * server-src/conffile.c: accept any string for the program.
10518         * server-src/amcheck.c: add the keyword DUMPER to the request if 
10519         the program is not DUMP or GNUTAR.
10520         * server-src/planner.c: ditto
10521         * server-src/dumper.c: ditto
10522
10523 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10524
10525         * server-src/dumper.c (startup_dump): rename dumpname to progname.
10526         the function will use the parameter progname instead of the
10527         global variable.
10528
10529 1999-03-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
10530
10531         * configure.in (openbsd): according to Ralf Gebhart
10532         <rgebhart@cybernet-ag.net>, sparc-unknown-openbsd2.3 is supported;
10533         I assume other openbsd platforms work too.
10534
10535 1999-03-06 Thomas Hepper <th@ant.han.de>
10536
10537         * client-src/sendbackup-gnutar.c: Replaced #fi with #endif
10538         * changer-src/: Get in sync with 2.4.2 Version
10539
10540 1999-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10541
10542         * configure.in: set SAMBA_VERSION
10543         * client-src/sendbackup-gnutar.c (start_backup): use -q flag
10544         if SAMBA_VERSION >= 2
10545
10546 1999-03-05 Mathias Herberts <Mathias.Herberts@ago.fr>
10547
10548         * recover-src/amrecover.h (set_mode, show_mode) declare new functions.
10549         * recover-src/amrecover.h (SAMBA_SMBCLIENT, SAMBA_TAR) define new 
10550         constant.
10551         * recover-src/extract_list.c: declare variable samba_extract_method.
10552         * recover-src/extract_list.c (extract_files_child): set dumptype
10553         according to samba_extract_method.
10554         * recover-src/help.c (help_list): print help for new command mode
10555         and showmode.
10556         * recover-src/set_commands.c (set_mode, show_mode): new functions.
10557         * recover-src/uscan.l:
10558         * recover-src/uparse.y:
10559
10560 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
10561
10562         * common-src/amanda.h: use ssize_t in writev return value
10563         * common-src/bsd-security.c (bsd_stream_write,bsd_stream_read):
10564         use ssize_t over int
10565         * common-src/file.c (areads): use ssize_t to hold read() return val
10566         * common-src/fileheader.c (fill_buffer): usse ssize_t to hold read()
10567         return val
10568         * common-src/security.h: stream_read's callback now takes a ssize_t
10569         as the third argument.
10570         * common-src/writev.c (writev): return a ssize_t
10571
10572 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
10573
10574         * configure.in: check for ssize_t, make it int if not present
10575         * config/acconfig.h: add def for ssize_t
10576
10577 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
10578
10579         * common-src/base64.c (base64encode): don't cast away a const
10580         needlessly.
10581
10582 1999-03-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10583
10584         * common-src/bsd-security.c (stream_read_callback): change n to int
10585         since ssize_t doesn't exist on all OS.
10586
10587 1999-03-03  Ralf Fassel <ralf@akutech.de>
10588
10589         * common-src/conffile.h: bit field of length 1 should be unsigned int,
10590         not int.
10591
10592 1999-03-03  Ralf Fassel <ralf@akutech.de>
10593
10594         * common-src/bsd-security.c (stream_read_callback): n should be ssize_t.
10595
10596 1999-03-03  Ralf Fassel <ralf@akutech.de>
10597
10598         * changer-src/scsi-changer-driver.c (CloseDevice): wrong assignment.
10599
10600 1999-03-03  Ralf Fassel <ralf@akutech.de>
10601
10602         * common-src/base64.c (base64encode): remove warning from sgi cc
10603         compiler.
10604
10605 1999-03-03  Mike Grupenhoff <kashmir@munge.com>
10606
10607         * common-src/bsd-security.c: use EV_WAIT events instead of
10608         maintaining a queue of listeners.  Refcnt the dgram read event
10609         handle.
10610
10611 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10612
10613         * server-src/driverio.h: new parameter level to update_info_taper().
10614         * server-src/driverio.c (update_info_taper): use parameter instead
10615         of sched(dp)->level.
10616         * server-src/driver.c: call update_info_taper with level parameter.
10617         * server-src/amflush.c: call update_info_taper with level parameter.
10618         no longer need to create a sched_t struct.
10619
10620 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10621
10622         * server-src/driverio.h: remove declaration of inparallel, cmdstr()
10623         and childstr(), declare init_driverio(), add inparallel parameter
10624         to startup_dump_processes().
10625         * server-src/driverio.c (init_driverio): new function to initialize
10626         dmptable and taper.
10627         * server-src/driverio.c (childstr): scan for all dumpers (MAX_DUMPERS)
10628         instead of only inparallel
10629         * server-src/driverio.c (startup_dump_processes): new parameter
10630         inparallel is used instead of global variable.
10631         * server-src/driver.c (main): call init_driverio.
10632         * server-src/driver.c (main): call startup_dump_processes with 
10633         inparallel parameter.
10634         * server-src/amflush.c (main): call init_driverio.
10635
10636 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10637
10638         * server-src/amrmtape.sh.in: work with "last_level" and
10639         "consecutive_runs" in the ouput of "amadmin export".
10640
10641 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
10642
10643         * common-src/security.h: implement security_connect callback and
10644         security_status_t changes
10645
10646 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
10647
10648         * common-src/bsd-security.c (bsd_connect): properly munge the uids
10649         to get a reserved port
10650         * common-src/bsd-security.c: adapt to the security_connect
10651         callback changes
10652         * common-src/bsd-security.c (bsd_sendpkt): dgram_cat is varargs now,
10653         so skip the vstralloc
10654
10655 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
10656
10657         * common-src/event.c: implement EV_WAIT events.  Implement macros
10658         for adding/removing/traversing the event queue
10659         * common-src/event.h: define EV_WAIT, and prototype event_wakeup()
10660
10661 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10662
10663         * docs/WISHLIST: protocol between the driver and dumpers.
10664
10665 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10666
10667         * server-src/amtoc.pl.in: output the datestamp of each dump, because
10668         amflush can flush the same disk multiple date.
10669
10670 1999-02-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10671
10672         * server-src/holding.h: declare struct holding_t.  Remove 
10673         declaration of insert_dirname, scan_holdingdisk.  Declare 
10674         new function free_holding_list.  pick_datestamp and 
10675         pick_all_datestamp now return (holding_t *).
10676         * server-src/holding.c (insert_dirname): new parameter holding_list
10677         where we add the name. Can add more than MAX_DIRS name.
10678         * server-src/holding.c (free_holding_list): new function to free
10679         a holding list.
10680         * server-src/holding.c (scan_holdingdisk): new parameter holding_list.
10681         * server-src/holding.c (pick_all_datestamp, pick_datestamp): return
10682         a list instead of a (char **).
10683         * server-src/find.c (search_holding_disk): use the list return by
10684         pick_all_datestamp.
10685         * server-src/amflush.c: use the list return by pick_datestamp.
10686         * server-src/amcleanupdisk.c (check_disks): use the list return by
10687         pick_all_datestamp.
10688
10689 1999-02-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10690
10691         * server-src/driverio.c (addfd): bug fixe.
10692
10693 1999-02-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
10694
10695         * client-src/sendbackup-gnutar.c: new regexp for SAMBA
10696         Reported by Grzegorz Mucha <grzegorz.mucha@solidex.com.pl>
10697
10698 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
10699
10700         * server-src/amtoc.pl.in: minor fixes for multi-tape runs
10701
10702 1999-02-17  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
10703
10704         * server-src/amtoc.pl.in: complete, backward-incompatible rewrite;
10705         command-line arguments changed
10706         * man/amtoc.8.in: ditto
10707
10708 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
10709
10710         * changer-src/chg-multi.sh.in: minor portability changes
10711         * docs/TAPE.CHANGERS: originally by James da Silva
10712
10713 1999-02-17  Jean-Francois Dockes <dockes@cdkit.remcomp.fr>
10714
10715         * changer-src/chg-multi.sh.in: various portability changes and
10716         general fixes, particularly for multieject; new cycle mode
10717         * docs/TAPE.CHANGERS: detailed description of chg-multi
10718         * example/chg-multi.conf: updated; added reference to
10719         docs/TAPE.CHANGERS for details
10720
10721 1999-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10722
10723         * server-src/driverio.h: remove declaration of addfd.
10724         * server-src/driverio.c (addfd): 2 new arguments, readset and maxfd,
10725         don't use global variable.
10726         * server-src/driverio.c (startup_tape_process, startup_dump_process):
10727         call addfd with new argument.
10728
10729 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10730
10731         * server-src/driverio.c (startup_tape_process): new taper_program
10732         argument.
10733         * server-src/driverio.h: remove declaration of taper_program.
10734         * server-src/driver.c (main): declare taper_program.
10735         * server-src/driver.c: call startup_tape_process with the new 
10736         taper_program argument.
10737         * server-src/amflush.c (run_dumps): declare taper_program.
10738         * server-src/amflush.c (run_dumps): call startup_tape_process with 
10739         the new taper_program argument.
10740
10741 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10742
10743         * server-src/driverio.c (startup_dump_process, startup_dump_processes):
10744         new dumper_program argument.
10745         * server-src/driverio.h: remove declaration of dumper_program.
10746         * server-src/driver.c: declare dumper_program.
10747         * server-src/driver.c: call startup_dump_process and
10748         startup_dump_processes with the new dumper_program argument.
10749
10750 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10751
10752         * server-src/list_dir.h: remove global variable dir_list, declare
10753         new function get_dir_list.
10754         * server-src/list_dir.c (get_dir_list): new function to return dir_list.
10755         * server-src/amindexd.c (opaque_ls): use get_dir_list.
10756
10757 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10758
10759         * server-src/holding.h: remove declaration of get_letter_from_user()
10760         and select_dir().
10761         * server-src/holding.c: remove function get_letter_from_user() and
10762         select_dir().
10763         * server-src/holding.c (pick_datestamp): return empty array instead
10764         of calling exit if no directory are found.
10765         * server-src/amflush.c (get_letter_from_user): new function copied
10766         from holding.c.
10767         * server-src/amflush.c (confirm): write a message and exit if no
10768         directory were found.
10769
10770 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10771
10772         * server-src/amflush.c (flush_holdingdisk): don't update the database
10773         when flushing a partial dump.
10774
10775 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10776
10777         * server-src/holding.h (get_dumpfile): new function
10778         * server-src/holding.c (get_dumpfile): new function to fill a 
10779         dumpfile_t struct from a holding file.
10780
10781 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10782
10783         * server-src/amlabel.c: compiler warning: too many arguments for format
10784
10785 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10786
10787         * server-src/amlabel.c: remove the label from the tapefile in
10788         case it was already there (-f).
10789
10790 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10791
10792         * server-src/dumper.c: make sure holding files are not larger
10793         that chunksize.
10794
10795 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10796
10797         * server-src/amcleanupdisk.c: new program to scan and find temporary
10798         file on holding disks.
10799         * server-src/Makefile.am (libexec_PROGRAMS): add amcleanupdisk.
10800         * server-src/amcleanup.sh.in: call amcleanupdisk.
10801
10802 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10803
10804         * server-src/holding.c (pick_all_datestamp): new function to return
10805         all datestamp in the holding disks.
10806         * server-src/holding.h: declare pick_all_datestamp.
10807
10808 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10809
10810         * server-src/diskfile.h (host_t): new start_t field.
10811         * server-src/diskfile.c (read_diskline): set start_t to 0.
10812         * server-src/driver.c (start_some_dumps): Don't start a dump if
10813         the host->start_t > now.
10814         * server-src/driver.c (start_some_dumps): set host->start_t to 15 sec
10815         in the future when starting a FILE_DUMP.
10816         * server-src/driver.c (dump_to_tape): set host->start_t to 15 sec in
10817         the future when starting a PORT_DUMP.
10818
10819 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
10820
10821         * server-src/amlabel.c (main): try to read just-written tape label
10822         back; if wrendmark overwrote the label, suggest using a
10823         non-rewinding device
10824         * tape-src/tapeio.c (tape_wrendmark): would not close tape device if 
10825         wrendmark failed
10826
10827 1999-02-10  Paul Bijnens  <Paul.Bijnens@lant.be>
10828
10829         * server-src/amoverview.pl.in: Y2K fix in output to user
10830         * server-src/amtoc.pl.in (print_info): ditto
10831
10832 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
10833
10834         * client-src/sendsize.c (getsize_dump): do not redirect standard
10835         output of estimator to /dev/null if we HAVE_DUMP_ESTIMATE
10836
10837 1999-02-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
10838
10839         * NEWS: fix description of incronly: it won't really perform full
10840         backups
10841
10842         * NEWS: support for ufsdump -S, incronly strategy and new chunksize
10843         default
10844
10845         * server-src/conffile.c (init_holdingdisk_defaults, chunksize):
10846         default to 1Gb
10847         * example/amanda.conf.in: ditto
10848         * man/amanda.8.in: ditto
10849
10850         * configure.in (amanda_cv_dump_estimate): check for support for -S
10851         too, and define HAVE_DUMP_ESTIMATE as the estimate switch, if any
10852         * client-src/sendsize.c (re_size): new regexps for Solaris ufsdump
10853         -S and Samba `du'.  Restrict regexp that matched Digital Unix'
10854         dump -E so that it doesn't match smbclient's output any more.
10855         Move some regexps around, and only define them if the corresponding
10856         dump program is available
10857
10858 1999-02-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
10859
10860         * example/amanda.conf.in: document the behavior of relative
10861         exclude-list files
10862         * man/amanda.8.in: ditto
10863
10864         * man/amanda.8.in (exclude list): the GNU tar flag is
10865         --exclude-from, not --exclude-list
10866         Reported by Tom Schutter <tom@platte.com>
10867
10868         * client-src/sendbackup-gnutar.c (re_table): ignore `session request 
10869         to' message printed by Samba 2.0.0
10870
10871 1999-01-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
10872
10873         * man/amanda.8.in (comprate): it is not used when there is history
10874         information; useful for large disks that compress little
10875         Reported by job bogan <job@piquin.uchicago.edu>
10876
10877         * Makefile.am: select which SUBDIRS to descend to here
10878         * client-src/Makefile.am: removed if WANT_CLIENT
10879         * tape-src/Makefile.am: removed if WANT_TAPE
10880         * server-src/Makefile.am: removed if WANT_SERVER
10881         * changer-src/Makefile.am: ditto
10882         * restore-src/Makefile.am: removed if WANT_RESTORE
10883         * recover-src/Makefile.am: removed if WANT_RECOVER
10884         * amplot/Makefile.am: removed if WANT_AMPLOT
10885
10886 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
10887
10888         * NEWS: chg-scsi ports, Samba 2.0.0 support and SECURITY API
10889
10890         * configure.in (USE_AMANDAHOSTS): enable by default
10891         * example/config.site: ditto
10892         * docs/INSTALL: ditto
10893         * NEWS: ditto
10894
10895         * docs/INSTALL: updated URLs for GNU packages and Samba
10896         * docs/SAMBA: note that Samba 2.0.0 is supported
10897
10898         * docs/SYSTEM.NOTES (HP/UX): what does `Link severed' mean?
10899
10900 1999-01-27  Thomas Hepper <th@ant.han.de>
10901         * changer-src/scsi-changer-driver.c SCSI_ReadElementStatus
10902         A while loop has to start with while, not if .....
10903
10904 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
10905
10906         * Makefile.am (EXTRA_DIST): sst was added within contrib
10907
10908         * ltmain.sh, ltconfig, libtool.m4i: updated from libtool CVS
10909         * configure.in: AC_SUBST LIBTOOL_DEPS
10910         * Makefile.am: regen libtool if neded
10911
10912         * Makefile.am: declare that we want automake 1.4 and we're a foreign 
10913         package
10914
10915         * configure.in: require autoconf 2.13, and use
10916         AC_VALIDATE_CACHED_SYSTEM_TUPLE instead of
10917         AC_VALIDATE_CACHE_SYSTEM_TYPE
10918         * config/acinclude.m4i: removed AC_VALIDATE_CACHE_SYSTEM_TYPE
10919
10920         * configure.in (SAMBA_CLIENT): updated check for smbclient to
10921         support Samba 2.0.0
10922
10923 1999-01-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
10924
10925         * server-src/amdump.sh.in (runuser): set to LOGNAME if defined, and
10926         to the output of whoami otherwise
10927         Reported by Tom Schutter <tom@platte.com>
10928
10929 1999-01-26  Thomas Hepper <th@ant.han.de>
10930         * Makefile.am Added sst driver files to EXTRA_DIST
10931
10932 1999-01-26      Thomas Hepper <th@ant.han.de>   
10933         * changer-src/Makefile.am added to LDADD 
10934         ../tape-src/libamtape.$(LIB_EXTENSION)
10935         * changer-src/chg-scsi.c If statfile is not set try to get the info
10936         about the current loaded tape direct from the changer.
10937         Fixed debug output for the eject value if > 1
10938         * changer-src/libscsi.h Prototype for GetCurrentSlot
10939         * changer-src/scsi-aix.c If the Device we open is not a changer or tape
10940         return NULL, so that the above function can abort. New eject per mtio ioctl.
10941         * changer-src/scsi-bsd.c see scsi-aix.c
10942         * changer-src/scsi-linux.c see scsi-aix.c
10943         * changer-src/scsi-hpux_new.c see scsi-aix.c
10944         * changer-src/scsi-irix.c see scsi-aix.c
10945         * changer-src/scsi-solaris.c see scsi-aix.c and added a retry loop for
10946         the execution of SCSI commands.
10947         * changer-src/scsi-changer-driver.c New Function SCSI_ReadElementStatus
10948         split ReadElementStatus in device and device independed part
10949         New EXB120ElementStatus, renamed ReadElementStatus in GenericElementStatus
10950         added EXB 120 and DLT7000 to the devices list.
10951         Removed the linked list for the element status. Now every element
10952         type has its own array allocated in the *ElementStatus functions.
10953         Check in the functions which sends SCSI commands if the fd is able to
10954         receive SCSI commands.
10955         In GenericEject check which type of eject to use (ioctl/SCSI)
10956         New GetCurrentSlot, try to get the info about the loaded tape direct from
10957         the changer.
10958         * changer-src/scsi-chio.c Add function GetCurrentSlot (not well tested yet)
10959         * changer-src/scsi-defs.h Added missing decl. in MediumTransportElementDescriptor_T
10960         for LITTLE_ENDIAN_BITFIELDS
10961         new field from in ElementInfo_T
10962         * changer-src/sci-hpux.c EMpty function GetCurrentSlot, do we still need scsi-hpux.c ?
10963         * docs/TAPE.CHANGERS added some notes for HP-UX, expanded list of tested devices
10964         
10965 1999-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10966
10967         * server-src/conffile.c (init_defaults): default value of runspercycle
10968         is 0.
10969         * server-src/amadmin.c (balance): use default value of runspercycle.
10970         * server-src/planner.c (main): use default value of runspercycle.
10971
10972 1999-01-22  Martin Apel <apel@tecmath.de>
10973
10974         * example/amanda.conf.in: explanation of incronly strategy.
10975         * man/amanda.8.in: explanation of incronly strategy.
10976         * server-src/amadmin.c: recognize incronly strategy
10977         * server-src/conffile.c: read the incronly strategy in the
10978         configuration file.
10979         * server-src/conffile.h: definition of DS_INCRONLY
10980         * server-src/planner.c: Do planning for incronly strategy:
10981         If the force flag is set perform a full dump, otherwise do
10982         normal incremental processing but avoid full dumps.
10983         * server-src/tapefile.c: Bugfix so only tapes which match
10984         the regular expression for tape labels in the current 
10985         configuration are considered for writing.
10986
10987 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
10988
10989         * common-src/bsd-security.c (check_user): there was no uid variable
10990         here; replace with getuid()
10991
10992 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
10993
10994         * server-src/planner.c (output_scheduleline): removed `or historical
10995         data' from `no estimate' message; historical data doesn't matter any 
10996         more
10997         Reported by Giorgos Vlachos <Giorgos.Vlachos@eurodyn.com>
10998
10999 1999-01-20  Todd Pfaff  <pfaff@mcmaster.ca>
11000         
11001         * client-src/sendbackup-gnutar.c: more Samba 2.0.0 messages
11002
11003         * client-src/sendbackup-gnutar.c: new Samba 2.0.0 message 
11004
11005 1999-01-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11006
11007         * server-src/amflush.c: use ap_snprintf instead of snprintf.
11008         * server-src/amflush.c: rotation of new amflush log was broken.
11009
11010 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11011
11012         * server-src/reporter.c: always call output_stats(), the problem is
11013         that degraded_mode is set if amflush fills the tape.
11014
11015 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11016
11017         * server-src/amflush.c: write debuging info to $logdir/amflush
11018         instead of /dev/null if we run in background.
11019         * server-src/amcleanup.sh.in: rename $logdir/amflush.
11020
11021 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
11022
11023         * server-src/dumper.c (make_tapeheader): explicitly compare
11024         srvcompress against srvcomp_none instead of assuming that
11025         srvcomp_none's value is 0.
11026
11027 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
11028
11029         * server-src/dumper.c: move max() macro to top of file.  Add min()
11030         * server-src/dumper.c (databuf_write): use min() to determine the
11031         copy size
11032         * server-src/dumper.c (databuf_flush): more clearly calculate the
11033         buffer offset in the write loop
11034
11035 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
11036
11037         * server-src/dumper.c (databuf_write): Egads!  Also increment the
11038         source pointer doing a partial buf copy
11039
11040 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
11041
11042         * common-src/bsd-security.c (check_user): use getpwnam(CLIENT_LOGIN)
11043         instead of getpwuid(getuid()), in case our caller has not done
11044         the setuid().
11045
11046 1999-01-12  Mike Grupenhoff <kashmir@munge.com>
11047
11048         * server-src/dumper.c (add_msg_data): properly check for half-sent
11049         msg lines.
11050
11051 1999-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11052
11053         * server-src/amstatus.pl.in: fix a divide by zero error.
11054
11055 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
11056
11057         * server-src/dumper.c (add_msg_data): clarify and comment.  Remove
11058         'len' arg.  Const 'str' arg.
11059         * server-src/dumper.c (do_dump): compresspid and indexpid should
11060         be pid_t's.  Also, remove len from add_msg_data call.
11061
11062 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
11063
11064         * server-src/fileheader.c (parse_file_header): const the buffer
11065         argument
11066         * server-src/fileheader.h: update parse_file_header proto for const
11067         change
11068
11069 1999-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11070
11071         * server-src/amstatus.pl.in: report the current dump when reporting
11072         the busy time of each dumper.
11073
11074 1998-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11075
11076         * server-src/dumper.c: open temporary holding file with O_TRUNC flags
11077         and with mode 0600.
11078
11079 1998-12-28  John R. Jackson  <jrj@purdue.edu>
11080
11081         * server-src/reporter.c: do not drop core generating labels if the
11082         tape label is not defined, e.g. in degraded mode (compliments of
11083         Jan L. Peterson <jlp@Part.NET>).
11084
11085 1998-12-28  John R. Jackson  <jrj@purdue.edu>
11086
11087         * server-src/amtape.c: initialize two strings to NULL to avoid a
11088         core dump, compliments of G. Allen Morris III <gam3@acm.org>.
11089
11090 1998-12-27  John R. Jackson  <jrj@purdue.edu>
11091
11092         * man/amreport.8.in: remove reference to 8.5x11 paper size for the
11093         3-hole binder.
11094
11095 1998-12-27  John R. Jackson  <jrj@purdue.edu>
11096
11097         * example/3hole.ps: new lbl-templ file for 3 hole punch reports
11098         * example/Makefile.am: add 3hole.ps
11099
11100 1998-12-22  Thomas Hepper <th@icem.de>
11101
11102         * docs/TAPE.CHANGERS Update notes about chg-scsi
11103         * changer-src/chg-scsi.c Added new config option tapestatus,
11104         if set the tape log pages are written to this file.
11105         changed parameter list for get_clean_state/ask_clean,
11106         * changer-src/libscsi.h changed parameter list for get_clean_state
11107         * changer-src/scsi-changer-driver.c Added new functions OpenDevice
11108         CloseDevice LookupDevice. 
11109         Added new functions to read and decode the Tape LOG Pages.
11110         Tape Eject and ready check is now done by SCSI calls
11111
11112         * changer-src/scsi-aix.c
11113         * changer-src/scsi-bsd.c
11114         * changer-src/scsi-hpux_new.c
11115         * changer-src/scsi-hpux.c
11116         * changer-src/scsi-irix.c
11117         * changer-src/scsi-solaris.c
11118         Changed all SCSI_OpenDevice/SCSI_CloseDevice functions so that they
11119         fit to the new OpenDevice/CloseDevice calls. Removed mtio.h from 
11120         includes, remove Tape_Ready and Tape_Eject
11121         * changer-src/scsi-chio.c
11122         * changer-src/scsi-defs.h
11123
11124         For all changer-src files, removed tabs, run indent (from xemacs)
11125         Added emacs variables to the end (no tab, gnu style)
11126
11127 1998-12-21  John R. Jackson  <jrj@purdue.edu>
11128
11129         * man/amanda.8.in: document the lbl-templ tapetype option.
11130
11131 1998-12-21  John R. Jackson  <jrj@purdue.edu>
11132
11133         * man/amreport.8.in: fix formatting problem.
11134
11135 1998-12-20  John R. Jackson  <jrj@purdue.edu>
11136
11137         * configure.in: define NEED_RESETOFS unless LFS (large file system
11138         support) is available.
11139         * config/acconfig.h: add NEED_RESETOFS tag.
11140         * server-src/taper.c: only reset the tape offset if NEED_RESETOFS
11141         is defined and only once per 2 GBytes.
11142
11143 1998-12-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
11144
11145         * server-src/amlabel.c (main): datestamp for new tapes is now 0
11146         * server-src/tapefile.c (reusable_tape): recognize datestamp 0 as
11147         reusable
11148         * man/amlabel.8.in: document that tapes are added to tapelist
11149
11150 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
11151
11152         * server-src/dumper.c (runcompress): new function.  Given an output
11153         file descriptor, inserts a gzip/compress in front of that descriptor.
11154         * server-src/dumper.c (do_dump): if srvcompress is true, insert
11155         the gzip (using runcompress) in front of the output fd instead
11156         of the input fd.  Only do this after the tapeheader has been written.
11157
11158 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
11159
11160         * server-src/dumper.c (startup_chunker): new function.  When doing
11161         chunking, fork a piped subprocess that reads in a fileheader and
11162         a data stream, and writes out the headered, chunked files.  This
11163         allows us to treat unchunked, chunked, and port-dump dumps exactly
11164         the same.
11165         * server-src/dumper.c (main): file-dump: if chunksize > 0,
11166         call startup_chunker for our outfd.  Otherwise, open the
11167         holding file directly.
11168
11169 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
11170
11171         * server-src/dumper.c (struct databuf): add a chunk_size member,
11172         the size of each chunk.  Remove chunksize global.
11173         * server-src/dumper.c (main): add a chunksize local var
11174         * server-src/dumper.c (databuf_init): init the chunk_size member
11175         with the same value as split_size
11176         * server-src/dumper.c (databuf_flush): increment db->split_size
11177         by the amount in db->chunk_size instead of the global chunksize
11178
11179 1998-12-19  John R. Jackson  <jrj@purdue.edu>
11180
11181         * server-src/amstatus.pl.in: instead of just displaying why no
11182         dumpers were busy, display reason(s) why N+1 were not busy.
11183
11184 1998-12-18  John R. Jackson  <jrj@purdue.edu>
11185
11186         * server-src/amstatus.pl.in: add statistics about how much time
11187         taper and each dumper is busy, how much time N dumpers are busy
11188         and why no dumpers were busy.
11189
11190 1998-12-18  Mike Grupenhoff <kashmir@munge.com>
11191
11192         * server-src/dumper.c (struct databuf): add 'filename', 'filename_seq',
11193         and 'split_size' members to replace the equivalent globals.  Nuke
11194         those globals.
11195         * server-src/dumper.c (databuf_init): add 'filename' and 'split_size'
11196         args to init those members.  Init filename_seq to 0.
11197         * server-src/dumper.c (main): declare and init the databuf here
11198         * server-src/dumper.c (databuf_flush): refer to split_size, filename,
11199         and filename_seq in the databuf instead of the globals.
11200         * server-src/dumper.c (do_dump): now takes a databuf instead of an
11201         output file descriptor.
11202
11203 1998-12-18  John R. Jackson  <jrj@purdue.edu>
11204
11205         * server-src/amstatus.pl.in: fix two perl warnings.
11206
11207 1998-12-18  John R. Jackson  <jrj@purdue.edu>
11208
11209         * server-src/amstatus.pl.in: fix two minor typos.  Add percentage
11210         display to the summary comparing real and estimated size and real
11211         versus total estimate (showing how well the estimates are doing and
11212         a rough guess at how far along the run is).  Also the percentage of
11213         total holding disk space in use.
11214
11215 1998-12-18  John R. Jackson  <jrj@purdue.edu>
11216
11217         * server-src/amstatus.pl.in: take the --file argument as is if it
11218         is an absolute path.
11219
11220 1998-12-18  John R. Jackson  <jrj@purdue.edu>
11221
11222         * server-src/driver.c: call short_dump_state() one last time before
11223         quitting so amstatus gets a last good status.  Tell taper to quit
11224         after the dumpers since it writes more information to the amdump
11225         file (helps prevent mixed messages).
11226
11227 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
11228
11229         * server-src/dumper.c (databuf_flush): return 0 on success
11230
11231 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
11232
11233         * server-src/dumper.c (databuf_flush): new function.  Writes
11234         the contents of the databuf out to its backing file, doing splitting
11235         if necessary
11236         * server-src/dumper.c (databuf_write): call databuf_flush when the
11237         databuf fills up.  Fully complete all writes (no short writes)
11238         * server-src/dumper.c (do_dump): databuf_write now guarantees complete
11239         writes, so remove retry loop.  Call databuf_flush() when eof is hit.
11240         Do not close datafd on eof, because our caller (main) passed it to
11241         us and therefore owns it (and main does close it again).
11242
11243 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
11244
11245         * server-src/dumper.c (databuf_init): new function, initializes
11246         a struct databuf.
11247         * server-src/dumper.c (update_dataptr): rename to databuf_write,
11248         and have it take a buffer and a size, and return how many bytes
11249         of the buffer were written
11250         * server-src/dumper.c (do_dump): use databuf_init to initialize db.
11251         Use databuf_write to add incomign data to the databuf.
11252         Make size1 and size2 local to the blocks they are used in.
11253
11254 1998-12-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
11255
11256         * common-src/Makefile.am (noinst_DATA): removed; bogus
11257         * config/config.guess, config/config.sub: config/install-sh,
11258         config/mkinstalldirs: updated to current pre-2.13 autoconf CVS tree
11259         * patches/autoreconf.patch: removed
11260         * config/libtool/libtool.m4: renamed to config/libtool.m4i
11261         * config/acinclude.m4: renamed to config/acinclude.m4i
11262         * config/Makefile.am (EXTRA_DIST): updated to reflect changes
11263         * autogen: build config/acinclude.m4  by concatenating acinclude.m4i
11264         and libtool.m4i
11265         * configure.in: no longer test whether libtool is installed; require 
11266         newer autoconf
11267         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: updated to
11268         libtool 1.2d
11269         * amplot/Makefile.am (EXTRA_DIST): no longer needed
11270         * changer-src/Makefile.am (chg_scsi_SOURCE): move scsi-defs.h closer 
11271         to the beginning of the list
11272         * docs/INSTALL: fixed URL to gnuplot; recommend autoconf and
11273         automake from CVS
11274
11275 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11276
11277         * common-src/genversion.c (main): rip out krb4 defines.  If we
11278         need this info, each driver will have to do it individually.
11279
11280 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11281
11282         * server-src/conffile.c: remove KRB4_AUTH, BSD_AUTH tokens, auth
11283         element from dumptype_t, and get_auth() lookup func.  Add
11284         security_driver to dumptype_t and parse value of AUTH keyword
11285         as a string.
11286         * server-src/conffile.h: nuke auth_t.  Remove auth_t auth, int s_auth
11287         from typetype_t; add char *security_driver, int s_security_driver.
11288         * server-src/diskfile.c: nuke auth_t auth from disk_t, add
11289         char *security_driver.  Inherit security_driver from the dumptype_t
11290         for this disk.
11291         * server-src/diskfile.h: ditto
11292         * server-src/amadmin.c (disklist_one): output the security-driver
11293         string in place of the auth type
11294         * server-src/amcheck.c (start_client_checks, handle_response):
11295         enum type hostp->disks->auth is gone.  check the string in the
11296         security_driver for this disk for krb4 auth.
11297         * server-src/planner.c (getsize, handle_result): check the string
11298         in hostp->disks->security_driver for the auth type.
11299
11300 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11301
11302         * server-src/amindexd.c: no need to include protocol.h
11303
11304 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11305
11306         * server-src/amindexd.c: remove duplication inclusion of version.h.
11307         Include tapefile.h to get read_tapelist() prototype
11308         * server-src/amindexd.c (build_disk_table): remove a plethora of
11309         unused local vars
11310         * server-src/amindexd.c (main): rename security_ok() call to
11311         check_security(), and define check_security() locally.  security_ok
11312         will disappear when the new security api goes in
11313
11314 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11315
11316         * server-src/changer.c (changer_label): make it return void
11317         to keep gcc warning about control reaching the end of a nonvoid
11318         function.
11319         * server-src/changer.c: update changer_label's proto for previous
11320
11321 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11322
11323         * common-src/amanda.h: define SET, CLR, ISSET macros for dealing
11324         with bitmasks
11325         * server-src/amadmin.c: use the bitmask macros for setting
11326         and clearing the bits in the infofile command word
11327         * server-src/planner.c: ditto.  This fixes a bug in the code that
11328         tried to clear FORCE_FULL with an xor expression that was
11329         never assigned (x ^ FORCE_FULL)
11330
11331 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11332
11333         * common-src/bsd-security.c (bsd_sendpkt): cast uid's to long and
11334         use %ld to print them.
11335
11336 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11337
11338         * common-src/dgram.h: mark dgram_cat with gcc's printf attribute
11339         * common-src/packet.h: ditto for pkt_cat
11340         * common-src/security.h: likewise for security_seterror
11341
11342 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11343
11344         * common-src/error.c (error): const the format arg
11345         * common-src/amanda.h: mark error with gcc's noreturn attribute, and
11346         const its format arg
11347
11348 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11349
11350         * common-src/debug.c (debug_printf): const the format arg
11351         * common-src/amanda.h: const debug_printf's format arg
11352
11353 1998-12-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
11354
11355         * configure.in (BSD SCSI): test ... -a ... is not portable, and less 
11356         so when written test ... -a test ... :-)
11357
11358 1998-12-14  Thomas Hepper <th@icem.de>
11359
11360         * changer-src/Makefile.am Added scsi-bsd.c
11361         * changer-src/chg-scsi.c Initialize *scsitapedevice
11362         * changer-src/scsi-changer-driver.c remove LITTLE_ENDIAN_BITFILEDS
11363         defenition
11364         changed RequestSense to pRequestSense (there is a function 
11365         called RequestSense)
11366         changed error handling in ResetStatus (fix for IRIX)
11367         FIxed length handling for the pages in ReadElemtStatus
11368         * changer-src/scsi-chio.c get_clean_state only returns 0, the
11369         ioctl to get the clean flag is not portable ;-(
11370         changed all (f)printf to dbprintf
11371
11372         * changer-src/scsi-defs.h ElementStatusData_T is for BIG and
11373         LITTLE endian the same ...
11374
11375         * changer-src/scsi-bsd.c New file for FreeBSD
11376
11377         * changer-src/scsi-irix.c Clean up in the return handling
11378         changed RequestSense to pRequestSense
11379         Removed unused function TapeStatus
11380
11381         * changer-src/scsi-linux.c changed RequestSense to pRequestSense
11382         Removed unused function TapeStatus
11383
11384         * changer-src/scsi-solaris.c changed RequestSense to pRequestSense
11385         Removed unused function TapeStatus
11386
11387         * config/acconfig.h added def for BSD_LIKE_SCSI
11388
11389         * configure.in Added check for ENDIAN type AC_C_BIGENDIAN
11390         added sys/scsiio.h and check for BSD SCSI interface
11391
11392 1998-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11393
11394         * server-src/driver.c (handle_dumper_result): rename .tmp files
11395         when receiving ABORT_FINISHED.
11396
11397 1998-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11398
11399         * server-src/driver.c (start_some_dumps): Use the holdp returned
11400         by find_diskspace for a big_dumper in degraded mode.
11401
11402 1998-12-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
11403
11404         * docs/SYSTEM.NOTES (Ultrix): recommend gcc or egcs
11405         (IRIX): patch for xfsdump estimates
11406
11407 1998-12-10  John R. Jackson  <jrj@purdue.edu>
11408
11409         * common-src/amflock.c (main): remove call set_pname() for
11410         CONFIGURE_TEST since error.o is not linked in.
11411
11412 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
11413
11414         * server-src/dumper.c (struct databuf): add a fd member - the file
11415         descriptor that we are buffering
11416         * server-src/dumper.c (update_dataptr): remove
11417         outf arguments, use the fd in the passed databuf.  Return 0 on
11418         success, and -1 on error.
11419         * server-src/dumper.c (update_dataptr): rework and comment the
11420         chunk code a bit.  Get rid of the cont_filename global.
11421         * server-src/dumper.c (do_dump): init the fd member of the databuf
11422         * server-src/dumper.c (write_dataptr): fold back into update_dataptr
11423
11424 1998-12-10  John R. Jackson  <jrj@purdue.edu>
11425
11426         * common-src/amflock.c (main): report CONFIGURE_TEST error messages to
11427         stderr.
11428
11429 1998-12-10  John R. Jackson  <jrj@purdue.edu>
11430
11431         * common-src/amflock.c (main): call set_pname() for CONFIGURE_TEST.
11432         * configure.in: do not set up pname global for lnlock CONFIGURE_TEST.
11433
11434 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
11435
11436         * server-src/dumper.c (update_dataptr): remove pointless backups
11437         of the databuf and associated vars when creating next chunk.
11438         Remove duplicate setting of file.cont_filename.
11439
11440 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
11441
11442         * server-src/dumper.c (main): reuse outfd to clear the open files
11443         passed to us.  Nuke the fd var.
11444         * server-src/dumper.c (update_dataptr): nuke 'split' argument - it
11445         was always set to 1
11446
11447 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
11448
11449         * server-src/dumper.c (write_tapeheader): kill dead code
11450         * server-src/dumper.c (main): remove useless amfree of datestamp.
11451         Add missing break to 'default' case in command loop.
11452         * server-src/dumper.c: kill databuf, spaceleft, and dataptr globals.
11453         Create a 'struct databuf' that holds all three.
11454         * server-src/dumper.c (write_dataptr, update_dataptr): make
11455         these take a 'struct databuf *' as an argument, and have them
11456         operate on its contents instead of the aforementioned globals
11457         * server-src/dumper.c (do_dump): declare a 'struct databuf' here.
11458         Make it static, because it's large.  Use it instead of the
11459         globals.
11460
11461 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
11462
11463         * server-src/dumper.c (main): rework the command loop a bit.
11464         Consolidate all duplicated error cleanup into one place at the
11465         end of the loop after each command has been processed.  Exit
11466         with exit(), not return.
11467
11468 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
11469
11470         * server-src/dumper.c (main, getcmd, write_dataptr): kill argc and
11471         argv globals, pass them as arguments to getcmd() via struct cmdargs.
11472         * server-src/dumper.c (getcmd): make the command lookup table driven.
11473         * server-src/dumper.c (write_dataptr): restructure the command
11474         logic a bit to hopefully clarify things.
11475
11476 1998-12-09  Henning P. Schmiedehausen  <henning@tanstaafl.de>
11477
11478         * client-src/sendbackup.c (parse_options): Added check whether the
11479         pathname of the exclude file is relative and if yes, use the
11480         mountpoint of the filesystem as anchor.  So you can put your exclude
11481         file in the root of the filesystem to backup.
11482         * client-src/sendsize.c (getsize_gnutar): added the same check as
11483         above so sendsize uses the same exclude file.
11484
11485 1998-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11486
11487         * server-src/holding.c (size_holding_files): return size in KB.
11488         * server-src/driver.c (adjust_diskspace): use KB returned by
11489         size_holding_files.
11490         * server-src/driver.c: rename .tmp file
11491         * server-src/dumper.c: do not rename .tmp file. let the driver do it.
11492
11493 1998-12-09  John R. Jackson  <jrj@purdue.edu>
11494
11495         * common-src/stream.c (stream_server): do not request a reserved port
11496         if we are root but PORTRANGE is defined.  Also, clean up the code
11497         and make sure *portp is -1 on all error returns.
11498
11499 1998-12-08  John R. Jackson  <jrj@purdue.edu>
11500
11501         * Makefile.am: add the user-contributed area.
11502         * contrib/README: describe the user-contributed area.
11503         * contrib/dbbackup.README: README for Oracle database backup system.
11504         * contrib/dbbackup.ksh: Oracle database backup system wrapper.
11505         * contrib/dbbackup.sql: Oracle database backup system setup commands.
11506         * contrib/dbbackup.tcl: Oracle database backup system main body.
11507
11508 1998-12-08  John R. Jackson  <jrj@purdue.edu>
11509
11510         * amplot/Makefile.am: fix install rule when DESTDIR is non-null,
11511         compliments of Henning P. Schmiedehausen <hps@tanstaafl.de>.
11512
11513 1998-12-08  John R. Jackson  <jrj@purdue.edu>
11514
11515         * configure.in: fix reversed code for --with-amrecover, compliments
11516         of Yar Tikhiy <yar@radio-msu.net>.
11517
11518 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11519
11520         * common-src/fileheader.h (dumpfile_t): new is_partial field.
11521         * common-src/fileheader.c: add codee for new is_partial field.
11522         * server-src/holding.h (rename_tmp_holding): declare new function.
11523         * server-src/holding.c (rename_tmp_holding): new function.
11524         * server-src/dumper.c (do_dump): return 1 if succeded, otherwise 0.
11525         * server-src/dumper.c (main): open .tmp when dumping to disk, 
11526         rename .tmp if do_dump return 1.
11527         * server-src/dumper.c (update_dataptr): open .tmp for new chunk.
11528         * server-src/amstatus.pl.in (dump_size): return size of .tmp file.
11529
11530 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
11531
11532         * server-src/amtape.c (main, usage): make command lookup and usage
11533         table-driven
11534
11535 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
11536
11537         * server-src/amadmin.c: make command lookup and usage table-driven
11538         * server-src/amadmin.c (balance, tape, bumpsize): add
11539         argc/argv arguments to make them like the rest
11540         * server-src/amadmin.c (show_version): new function, implements
11541         the version command, so it is done like the other commands
11542         * server-src/amadmin.c (main): iterate through cmdtab[] when
11543         looking up the command, instead of a huge if/then/else
11544         * server-src/amadmin.c (usage): iterate through cmdtab[] when
11545         displaying usage strings.  Display the "disklist" usage string.
11546
11547 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11548
11549         * config/acconfig.h: add "#undef HAVE_WRITEV_DECL".
11550
11551 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11552
11553         * NEWS: document new force-bump, force-no-bump and unforce-bump
11554         command in amadmin.
11555
11556 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11557
11558         * server-src/holding.c (size_holding_files): new function to
11559         return the sum of the size of all chunk of an image.
11560         * server-src/holding.h (size_holding_files): declare.
11561         * server-src/driver.c (adjust_diskspace): use size_holding_files
11562         instead of doing a stat of only the first chunk.
11563
11564 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11565
11566         * server-src/amadmin.c: new force-bump, force-no-bump and unforce-bump
11567         command.
11568         * man/amadmin.8.in: document them.
11569
11570 1998-12-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
11571
11572         * docs/FAQ (large filesystems): fixed reference to results missing
11573         (results missing): updated to 64Kb UDP packets
11574
11575 1998-12-04  Mike Grupenhoff <kashmir@munge.com>
11576
11577         * common-src/amanda.h: implement WIFSIGNALED() if not already
11578         defined
11579         * server-src/amcheck.c: ream out compat definitions of WEXITSTATUS(),
11580         WTERMSIG(), and WIFSIGNALED().  These are already handled in amanda.h
11581         * server-src/changer.c: ditto
11582
11583 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
11584
11585         * common-src/bsd-security.c (recv_security_ok): only check for
11586         a reserved port for REQ packets
11587
11588 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
11589
11590         * common-src/bsd-security.c (recvpkt_callback): only compare
11591         the sin_addr and sin_port fields in the sockaddr when determining
11592         what handle an incoming packet belongs to.
11593         * common-src/bsd-security.c (pkthdr2str): use %s for the handle,
11594         since it's a string.
11595
11596 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
11597
11598         * common-src/bsd-security.c (bsd_sendpkt): newline-terminate
11599         the 'SECURITY USER' line in the packet
11600         * common-src/bsd-security.c (check_user): fix many bugs
11601         in the USE_AMANDAHOSTS case
11602
11603 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
11604
11605         * configure.in: AC_REPLACE_FUNCS(writev)
11606
11607 1998-12-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11608
11609         * server-src/infofile.h: rename PLANNER_FORCE to FORCE_FULL
11610         * server-src/planner.c: rename PLANNER_FORCE to FORCE_FULL
11611         * server-src/amadmin.c: rename PLANNER_FORCE to FORCE_FULL
11612
11613 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11614
11615         * config/acconfig.h: add KRB5_SECURITY.  Update comment above
11616         krb4 define to make clear that they are for krb4
11617
11618 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11619
11620         * configure.in: if we're doing krb4 and -lcom_err is there, pull
11621         it in
11622         * configure.in: implement --with-krb5-security.
11623
11624 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11625
11626         * common-src/dgram.c (dgram_cat): now can take printf-style
11627         arguments
11628         * common-src/dgram.g (dgram_cat): update prototype
11629
11630 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11631
11632         * common-src/bsd-security.c: wrap entire file in #ifdef BSD_SECURITY
11633         * common-src/bsd-security.c (bsd_connect): catch up with
11634         security interface changes - upper layer now allocates our handle
11635         Also, pass up useful error message about why connects failed
11636         via the handle we are given
11637         * common-src/bsd-security.c (gethandle): rename to inithandle,
11638         since we are now passed the handle's memory.  No need to allocate
11639         memory or initialize the error msg pointer
11640         * common-src/bsd-security.c (bsd_close): now an empty function - no
11641         memory to free
11642         * common-src/bsd-security.c (recvpkt_callback): allocate the handle
11643         before calling inithandle() (nee gethandle()).
11644         * common-src/bsd-security.c (stream_read_callback): put
11645         strerror(errno) in the handle's error buffer before passing a
11646         read error up to the caller
11647
11648 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11649
11650         * common-src/krb5-security.c: new stub file that pulls in the
11651         krb5 bits from the amanda-krb-2 tree if KRB5_SECURITY is
11652         defined
11653
11654 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11655
11656         * common-src/base64.{c,h}: new files, implement base64 encoding
11657         and decoding.  Implementation based on routines in bind, and so
11658         copyright is held by ISC and IBM (but is BSD-like).
11659
11660 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11661
11662         * common-src/security.h: add 'handlesize' to the driver struct, also
11663         make the connect function pointer return int and take a handle
11664         argument
11665         * common-src/security.h (security_connect): addd a 'const char **'
11666         errmsg argument for returning connect errors
11667
11668 1998-12-01  John R. Jackson  <jrj@purdue.edu>
11669
11670         * server-src/amcheck.c: make -t mean do the tape checks, add new -l
11671         option for doing just the local server (non-tape) checks.  Have -w
11672         turn on -t.  Have -cs (or -sc) do both server and client checks.
11673         * man/amcheck.8.in: document above changes and clean up some minor
11674         formatting issues.
11675
11676 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
11677
11678         * common-src/event.c (release): nuke bogus comment about signal
11679         handler release
11680         * common-src/event.c (event_loop): move the reentrancy assert
11681         after the empty queue check.  Otherwise, calling event_loop()
11682         with an empty event queue would cause the entry count to get
11683         out of sync.  Also, on exit, assert that the entry count has
11684         gone to 0
11685         * common-src/event.c (event_loop): fix bogus comment about event
11686         removal
11687
11688 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
11689
11690         * common-src/arglist.h: implement arglist_function3()
11691
11692 1998-11-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11693
11694         * server-src/driver.c (start_some_dumps): In degraded mode,
11695         a big dumper should do high priority dump before low priority.
11696         * server-src/driver.c (sort_by_priority_reversed): sort by
11697         time if priority is equal.
11698
11699 1998-11-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11700
11701         * server-src/infofile.h: declare FORCE_BUMP and FORCE_NO_BUMP
11702         as command.
11703         * server-src/amadmin.c (force_one,unforce_one,info_one): work
11704         with info.command with bit operator.
11705         * server-src/planner.c (setup_estimate): work with info.command
11706         with bit operator, support for FORCE_BUMP and FORCE_NO_BUMP command.
11707
11708 1998-11-27  Thomas Hepper    <th@icem.de>
11709
11710         * changer-src/scsi-aix.c Some changes in the error handling in
11711         scsi command execution
11712         * changer-src/scsi-changer-driver.c More debug prints.
11713         removed Endian16/Endian24 (replaced with macros)
11714         * changer-src/scsi-chio.c make get_clean_state work on linux
11715         * changer-src/scsi-defs.h  added macros for converting from/to
11716         SCSI CDB MSB type
11717         * docs/TAPE.CHANGERS add note about AIX and chg-scsi
11718
11719 1998-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11720
11721         * server-src/amadmin.c(export_one): export the last_level and
11722         consecutive_runs field.
11723         * server-src/amadmin.c(import_one): import the last_level and
11724         consecutive_runs field.
11725
11726 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
11727
11728         * common-src/amanda.h: uhh, every other decl has a leading
11729         'extern' so writev() should as well
11730
11731 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
11732
11733         * common-src/amanda.h: if no writev() decl exists, declare one
11734
11735 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
11736
11737         * configure.in: check for <sys/uio.h>, check for a writev() decl
11738         in <unistd.h> and/or <sys/uio.h>
11739
11740 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
11741
11742         * common-src/writev.c (writev): new file, implements writev for
11743         systems that lack it
11744
11745 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
11746
11747         * common-src/amanda.h: include <sys/uio.h> if it exists.  Otherwise,
11748         define struct iovec
11749
11750 1998-11-24  John R. Jackson  <jrj@purdue.edu>
11751
11752         * server-src/amlabel.c: insist on being run as the dump user (ala
11753         amlabel) to keep permissions straight.
11754
11755 1998-11-24  John R. Jackson  <jrj@purdue.edu>
11756
11757         * server-src/amadmin.c: fix minor message format problem.
11758
11759 1998-11-24  John R. Jackson  <jrj@purdue.edu>
11760
11761         * server-src/amlabel.c: insist on being run as the dump user (ala
11762         amflush) to keep permissions straight.
11763
11764 1998-11-24  John R. Jackson  <jrj@purdue.edu>
11765
11766         * server-src/amrmtape.sh.in: insist on being run as the dump user (ala
11767         amdump) to keep permissions straight.
11768
11769 1998-11-24  John R. Jackson  <jrj@purdue.edu>
11770
11771         * server-src/amadmin.c: issue a warning for update commands that might
11772         leave ownership incorrect.
11773
11774 1998-11-24  John R. Jackson  <jrj@purdue.edu>
11775
11776         * server-src/amcheck.c: add a "-t" option to disable tape tests in the
11777         server checks.  This lets server checks be done without mounting a
11778         tape.  Add lots more sanity checks, in particular, ownership and
11779         permissions of the index area and text format database.  Warn if
11780         amcheck is not run as the dump user listed in amanda.conf.  Minor
11781         consistency cleanup in the messages.
11782         * man/amcheck.8.in: document the changes.
11783
11784 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
11785
11786         * common-src/dgram.c (dgram_bind): always try to get a reserved
11787         port, even if KRB4_SECURITY is defined
11788
11789 1998-11-23  Mike Grupenhoff <kashmir@munge.com>
11790
11791         * common-src/bsd-security.c (struct bsd_handle): change 'int handle'
11792         to 'char proto_handle[32]' because the remote client might generate
11793         handles that aren't completely numerical
11794         * common-src/bsd-security.c (gethandle, str2pkthdr): the 'handle' arg
11795         is now a string
11796         * common-src/bsd-security.c (bsd_connect): convert our generated
11797         handle into a string to pass to gethandle()
11798         * common-src/bsd-security.c (str2pkthdr): rewrite to parse with
11799         strtok().  Parse the handle as a string instead of trying to
11800         convert it into a number
11801
11802 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
11803
11804         * server-src/amcleanup.sh.in (logdir/amdump): arrange that it is
11805         renamed if it exists, even if no log file could be found.
11806
11807 1998-11-20  Mike Grupenhoff <kashmir@munge.com>
11808
11809         * common-src/bsd-security.c: define STREAM_BUFSIZE to be
11810         the size of the tcp socket buffers
11811         * common-src/bsd-security.c (bsd_stream_server, bsd_stream_client):
11812         adapt to the stream_server() interface changes.  Set socket
11813         buffers to STREAM_BUFSIZE.
11814
11815 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
11816
11817         * config/ltmain.sh, config/ltconfig, config/libtool/libtool.m4:
11818         updated to current CVS libtool
11819
11820 1998-11-19  John R. Jackson  <jrj@purdue.edu>
11821
11822         * server-src/conffile.c (get_holdingdisk, init_holdingdisk_defaults):
11823         set the default chunksize and the "0" and "-1" special chunksizes
11824         to 64 KBytes less than the maximum to allow the final read at EOF.
11825         * server-src/dumper.c (main): leave the chunksize as it is when it
11826         comes in except to truncate it to a 32 KByte boundary.
11827         * man/amanda.8.in: add some chunksize comments and clean up a few
11828         minor odds and ends.
11829
11830 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
11831
11832         Give amrecover its own security bits.  It has different needs
11833         and a different protocol than the rest of amanda, so it shouldn't
11834         try to reuse the security bits
11835         * recover-src/amrecover.c (get_security): new function, implements
11836         bsd security
11837         * recover-src/amrecover.c (main): call get_security()
11838         * recover-src/amrecover.h: get_security() prototype
11839         * recover-src/extract_list.c (extract_files_setup): call
11840         get_security()
11841         * restore-src/amidxtaped.c (check_security): new function, implements
11842         * restore-src/amidxtaped.c (main): call check_security()
11843
11844 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
11845
11846         * common-src/stream.c (stream_server, stream_client): cast 4th
11847         arg of setsockopt() to (void *) to quash a compiler warning
11848         under solaris.
11849
11850 1998-11-19  John R. Jackson  <jrj@purdue.edu>
11851
11852         * recover-src/amrecover.c (main): use set_host to find the initial
11853         host name so we get the same alias resolution at startup as the
11854         sethost command.
11855         * recover-src/set_commands.c (set_host): report alternate names being
11856         attempted and only clear the directory list if a host is found.
11857
11858 1998-11-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
11859
11860         * server-src/driverio.c (update_info_dumper): do not update
11861         compression or dump rates when called from
11862         update_failed_dump_to_date
11863         Reported by Michael Schmitz <mschmitz@sema.de>
11864
11865 1998-11-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11866
11867         * server-src/dumper.c (main): reduce the size of the chunksize by
11868         2 blocks.
11869
11870 1998-11-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
11871
11872         * configure.in: hack for paxutils was not working; fixed
11873
11874 1998-11-18  Michael Povel  <mcp@ladyada.han.de>
11875
11876         * server-src/changer.h added new functions:changer_query
11877         ,changer_search,changer_find, changer_label
11878         * server-src/changer.c added changer_query, changer_search,
11879         changer_find, changer_label
11880         * server-src/amcheck.c (taper_scan) now uses changer_find 
11881         * server-src/amtape.c (load_label and taper_scan) now use changer_find
11882         * server-src/taper.c (taper_scan) now uses changer_find
11883         * server-src/amlabel.c (main) added call to changer_label
11884         which is only an empty dummy at the moment
11885
11886 1998-11-18  Thomas Hepper <th@icem.de>
11887
11888         * changer-src/chg-scsi.c Added debug print option
11889         * changer-src/chg-scsi.c If the load fails do not continue
11890         * changer-src/scsi-aix.c changed #include <config.h> to <amanda.h>
11891         * changer-src/scsi-aix.c Added debug prints to SCSI_ExecuteCommand
11892         * changer-src/scsi-changer-driver.c changed #include <config.h> to 
11893         #include <amanda.h>
11894         * changer-src/scsi-changer-driver.c Added debugging prints
11895         * changer-src/scsi-changer-driver.c Remove unused funktion TestUnitReady
11896         * changer-src/scsi-chio.c added missing funktion Tape_Ready
11897         * changer-src/scsi-hpux.c removed #include "config.h", is already done
11898         in amanda.h
11899         * changer-src/scsi-hpux_new.c  changed #include <config.h> to 
11900         #include <amanda.h>
11901         * changer-src/scsi-irix.c changed #include <config.h> to 
11902         #include <amanda.h>
11903         * changer-src/scsi-linux.c changed #include <config.h> to 
11904         #include <amanda.h>
11905         * changer-src/scsi-solaris.c changed #include <config.h> to 
11906         #include <amanda.h>
11907
11908 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
11909
11910         * client-src/sendsize.c: disable HAVE_DUMP_ESTIMATE if SAMBA_CLIENT
11911         is defined
11912
11913 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11914
11915         * server-src/tapefile.c (lookup_last_reusable_tape): Wrong order
11916         to shift the tpsave array.
11917
11918 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
11919
11920         * example/amanda.conf.in: document that infofile is supposed to be a
11921         directory with the default database format
11922         * docs/FAQ: New questions: `infofile update failed' and `using the
11923         same host in different configurations'
11924
11925 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11926
11927         changer-src/scsi-linux.c (Tape_Ready): typo, the argument Device
11928         to the SCSI_CloseDevice() is not defined, I changed it to tapedev.
11929
11930 1998-11-17  Brendan M Coffey <bcoffey@connix.com>
11931
11932         * common-src/stream.c (stream_server): add requested send and receive
11933         socket size parameters.
11934         * common-src/stream.h (stream_server): ditto
11935         * server-src/taper.c (file_reader_side): set a large receive socket
11936         buffer size.
11937         * client-src/sendbackup.c (main): set a large send and receive socket
11938         buffer size for the data path, use defaults for the message and index
11939         paths.
11940
11941 1998-11-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
11942
11943         * changer-src/scsi-solaris.c (Tape_Ready): typo in Thomas' patch
11944
11945 1998-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11946
11947         * server-src/infofile.h (get_dumpdate): rename record parameter to info.
11948         * server-src/infofile.h (get_info): rename record parameter to info.
11949         * server-src/infofile.h (put_info): rename record parameter to info.
11950         * server-src/infofile.c (get_dumpdate): rename rec parameter to info.
11951         * server-src/infofile.c (zero_info): rename ip parameter to info.
11952         * server-src/infofile.c (get_info): rename record parameter to info.
11953         * server-src/infofile.c (put_info): rename record parameter to info.
11954         * server-src/infofile.c (dump_rec): rename r parameter to info.
11955         * server-src/infofile.c (dump_db): rename record variable to info.
11956         * server-src/planner.c (last_level): rename ip parameter to info.
11957         * server-src/planner.c (next_level0): rename ip parameter to info.
11958         * server-src/planner.c (runs_at): rename ip parameter to info.
11959         * server-src/planner.c (askfor): rename inf parameter to info.
11960         * server-src/planner.c (setup_estimate): rename inf variable to info.
11961         * server-src/driverio.c (update_info_dumper): rename inf parameter 
11962         to info.
11963         * server-src/driverio.c (update_info_taper): rename inf parameter 
11964         to info.
11965         * server-src/amadmin.c (next_level0): rename ip parameter to info.
11966         * server-src/amadmin.c (force_one): rename inf variable to info.
11967         * server-src/amadmin.c (unforce_one): rename inf variable to info.
11968         * server-src/amadmin.c (delete_one): rename inf variable to info.
11969         * server-src/amadmin.c (info_one): rename inf variable to info.
11970         * server-src/amadmin.c (due_one): rename inf variable to info.
11971         * server-src/amadmin.c (balance): rename inf variable to info.
11972
11973 1998-11-11  Thomas Hepper <th@icem.de>
11974
11975         * configure.in: amanda_cv_hpux_scsi was double defined.
11976         Replaced it in the chio check with amanda_cv_hpux_scsi_chio
11977         * docs/TAPE.CHANGERS: update the notes about chg-scsi
11978         * changer-src/chg-scsi.c: Unload the cleaning tape only
11979         if it is loaded
11980         Pass the changerdev and tapedev Tape_Ready, so we can check
11981         if changerdev=tapedev. In this case the fd is already open.
11982         * changer-src/scsi-aix.c: cleanup and first parts are running :-)
11983         * changer-src/scsi-changer-driver.c: Pass back the scsi status
11984         field to the calling function, not the result from the ioctl
11985         if the return form the ioctl is >= 0
11986         * changer-src/scsi-hpux.c: Add additional param to Tape_Ready
11987         fill Tape_Ready with live 
11988         * changer-src/scsi-hpux_new.c: Return the scsi status if 
11989         the ioctl result is >=0. Add new Parameter to Tape_Ready
11990         * changer-src/scsi-irix.c: same as scsi-hpux_new.c
11991         * changer-src/scis-linux.c: Add additional param to Tape_Ready
11992         * changer-src/scsi-solaris.c: same as scsi-hpux_new.c
11993
11994 1998-11-11  Mike Grupenhoff <kashmir@munge.com>
11995
11996         * server-src/security.h: add driver entry points and macros
11997         for security_stream_accept() and security_stream_auth()
11998         * server-src/bsd-security.c: implement security_stream_accept()
11999         and security_stream_auth() for bsd security
12000
12001 1998-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12002
12003         * server-src/driver.c (main): redo my patch about total_disksize that
12004         Alexendre has undone, only the 2.4.1 branch was broken.
12005
12006 1998-11-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
12007
12008         * server-src/driver.c (main): total_disksize was only added after
12009         the loop terminated, i.e., when hdp was NULL -> crash.  fixed.
12010
12011 1998-11-09  John R. Jackson  <jrj@purdue.edu>
12012
12013         * server-src/reporter.c (main): ignore SIGPIPE so if a child process
12014         dies we do not also go away.  Also fix a core dump if amanda.conf
12015         cannot be processed, and clean up a few error messages.
12016
12017 1998-11-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12018
12019         * server-src/infofile.h (struct info_s): add last_level and 
12020         consecutive_runs.
12021         * server-src/infofile.c: support new last_level and consecutive_runs
12022         * server-src/planner.c (last_level): return ip->last_level.
12023         * server-src/planner.c (runs_at): return ip->consecutive_runs.
12024         * server-src/driverio.c (update_info_dumper): update inf.last_level
12025         and inf.consecutive_runs.
12026         
12027 1998-11-09  Mike Grupenhoff <kashmir@munge.com>
12028
12029         * client-src/sendbackup-dump.c (start_backup): don't close indexf
12030         if it was never open
12031         * client-src/sendbackup-gnutar.c (start_backup): ditto
12032
12033 1998-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12034
12035         * server-src/driver.c (main): add hdp->disksize to total_disksize
12036         even when we create the datestamp dir. (reserve was unusable).
12037
12038 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
12039
12040         * Makefile.am (EXTRA_DIST): added EVENT-API, SECURITY-API and
12041         STRATEGY-API
12042         * docs/STRATEGY-API: new file
12043
12044         * configure.in (GNUTAR): accept tar from Free paxutils, the new name
12045         of GNU tar
12046
12047 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
12048
12049         * changer-src/scsi-solaris.c: added missing #endif
12050
12051         * configure.in: merge with camlib.h patch from Oct 31
12052         remove all uses of test ... -a ...; this is not portable.
12053         (AC_CHECK_HEADERS) added header files for Linux and Solaris
12054
12055 1998-11-07  Thomas Hepper  <th@icem.de>
12056
12057         * changer-src/chg-scsi: Add config option scsidev
12058         * changer-src/chg-scsi: Remove function tape_ready
12059         * changer-src/chg-scsi: Add new parameter tapedev to function
12060         ask_clean
12061         * changer_src/scsi-hpux.c: changed HAVE_HPUX_SCSI to 
12062         HAVE_HPUX_SCSI_CHIO, changed in configure.in too
12063         * changer-src/libscsi.h: Expand definition for get_clean_state
12064         * new files in /changer-src:
12065         scsi-aix.c, scsi-changer-driver.c, scsi-defs.h
12066         scsi-hpux_new.c, scsi-irix.c, scsi-linux.c, scsi-solaris.c
12067         * configure.in checks for scsi ioctl added, check for header files
12068         for the scsi suport added
12069         * config/acconfig.h new:
12070         HAVE_HPUX_LIKE_SCSI, HAVE_HPUX_SCSI_CHIO, HAVE_LINUX_LIKE_SCSI
12071         HAVE_IRIX_LIKE_SCSI, HAVE_SOLARIS_LIKE_SCSI, HAVE_AIX_LIKE_SCSI
12072                removed: HAVE_HPUX_SCSI
12073         * changer-src/Makefile.am: New conditional for building chg-scsi-chio
12074         and chg-scsi. chg-scsi-chio is the old chg-scsi
12075
12076 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
12077
12078         * common-src/bsd-security.c (bsd_stream_write): callback's third
12079         arg should now be an int.
12080         * common-src/bsd-security.c: quash some gcc -Wall warnings
12081
12082 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
12083
12084         * common-src/security.h: the callback to stream_read should
12085         take signed type as its 'length' argument so errors can be
12086         expressed as a negative number.
12087
12088 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
12089
12090         * common-src/bsd-security.c (stream_read_callback): do reads into
12091         a buffer of size TAPE_BLOCK_BYTES, instead of 256, and place the
12092         buffer in the stream handle instead of on the stack, since it's
12093         huge
12094
12095 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
12096
12097         * common-src/event.c (event_loop): Consider error conditions on
12098         file descriptors as read or write events.  The caller will be
12099         able to differentiate when they call read or write and it
12100         fails.
12101
12102 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
12103
12104         * common-src/event.c (event_loop): print out WHY select failed
12105
12106 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
12107
12108         * common-src/bsd-security.c: adjust for the recvpkt timeout
12109         interface changes
12110         * common-src/bsd-security.c (handleq_remove): add a missing ; after
12111         an assertion
12112         * common-src/bsd-security.c (gethandle): initialize the error buffer
12113         in the security handle, since errors may be set before the handle
12114         is passed up to the general security layer
12115         * common-src/bsd-security.c (bsd_recvpkt_cancel): allow it to be
12116         called several times, or when no recvpkt was scheduled
12117
12118 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
12119
12120         * common-src/security.h: define security_recvpkt_status_t
12121         * common-src/security.h: security_driver_t->recvpkt() now
12122         takes a timeout argument, and its callback takes a
12123         security_recvpkt_status_t
12124         * common-src/security.h: adjust the security_recvpkt() macro
12125         for the above changes
12126
12127 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
12128
12129         * common-src/event.c (event_loop): assert that we are not firing
12130         a dead event
12131
12132 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12133
12134         * recover-src/amrecover.c: remove declaration of errstr.
12135
12136 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12137
12138         * server-src/amindexd.c (build_disk_table): call find_dump() instead
12139         of popen("amadmin <conf> find ...")
12140
12141 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12142
12143         * server-src/holding.h: rename dir_list to holding_list because
12144         dir_list is also declared in amflush.c
12145         * server-src/holding.c: ditto
12146         * server-src/find.c: ditto
12147
12148 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12149
12150         * server-src/amstatus.pl.in: remove warning.
12151
12152 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
12153
12154         * common-src/event.c (event_register): delete some improper debug
12155         code that shouldn't have made it in
12156
12157 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
12158
12159         * common-src/bsd-security.c: new file: security driver that
12160         implements "BSD" security.
12161
12162 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
12163
12164         * common-src/security.h: new file: the security api header
12165
12166 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
12167
12168         * common-src/event.c: new file: the event handler.  Handles file
12169         descriptor io, signals, and timed events.
12170         * common-src/event.h: new file: interface for the event handler.
12171
12172 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
12173
12174         * common-src/packet.c: new file: description of pkt_t's and routines
12175         for formatting
12176         * common-src/packet.h: new file: header for common-src/packet.c
12177
12178 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
12179
12180         * common-src/queue.h: new file: the 4.4BSD queue macros, with
12181         additions from NetBSD
12182
12183 1998-11-04  John R. Jackson  <jrj@purdue.edu>
12184
12185         * server-src/amverify.sh.in: tolerate extra amtape output.
12186
12187 1998-11-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
12188
12189         * configure.in: bumped to 2.5.0
12190
12191         * server-src/taper.c (read_file): if a new tape cannot be found,
12192         report a no-tape error to the log file and exit, just like it does
12193         for the first tape
12194
12195 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12196
12197         * server-src/planner.c (pick_inclevel): return base_level even
12198         when the estimate failed.
12199         * server-src/planner.c (output_scheduleline): test for degr_size
12200         instead of degr_level.
12201
12202 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12203
12204         * server-src/planner.c (last_level): update last_date otherwise only
12205         level 0 or the highest is returned.
12206
12207 1998-11-03  Mike Grupenhoff  <kashmir@munge.com>
12208
12209         * common-src/alloc.c: const arguments to the stralloc functions
12210         * common-src/amanda.h: update stralloc prototypes for const
12211         poisoning
12212
12213 1998-11-03  John R. Jackson  <jrj@purdue.edu>
12214
12215         * server-src/dumper.c (do_dump): do not report FAILED back to driver
12216         when it sent us ABORT.  Clean up and send back ABORT-FINISHED.
12217
12218 1998-11-03  John R. Jackson  <jrj@purdue.edu>
12219
12220         * server-src/driver.c (handle_dumper_result): do not abort a dumper
12221         that reports NO-ROOM if taper is busy since some holding disk space
12222         will eventually be released (this code it not used when PORT-DUMP is
12223         in progress).
12224
12225 1998-11-03  John R. Jackson  <jrj@purdue.edu>
12226
12227         * server-src/taper.c (write_buffer): calling lseek after every tape
12228         write is wasteful and makes utilities like lsof less useful.  Only
12229         reset the offset when the amount written is about to go over 2 GBytes.
12230
12231 1998-11-02  John R. Jackson  <jrj@purdue.edu>
12232
12233         * server-src/driver.c (main, start_degraded_mode): fix rounding problem
12234         that made the code think there was a little room for full dumps in
12235         degraded mode, and fix the code that decides whether to do a full dump
12236         in degraded mode.
12237
12238 1998-11-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12239
12240         * server-src/amstatus.pl.in: initialize variable to remove warning.
12241
12242 1998-11-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
12243
12244         * client-src/Makefile.am (CLIENT_SCRIPTS): rename to
12245         CLIENT_SCRIPTS_OPT, because *_SCRIPTS is interpreted by automake
12246         * configure.in (CLIENT_SCRIPTS): ditto
12247         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
12248
12249         * configure.in (LIBTOOL_M4): no longer defined
12250         (LIBTOOL_M4_MACRO_DIR): defined assuming CWD is top_srcdir
12251         * Makefile.am (ACLOCAL_M4_FROM_SRCDIR): relative to srcdir
12252         (ACLOCAL_M4): defined and created using ACLOCAL_M4_FROM_SRCDIR
12253         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
12254         
12255         * client-src/sendbackup.c (backup_program): rename to
12256         gnutar_program, that's the name it should have had from the
12257         beginning
12258         * client-src/sendbackup-gnutar.c (backup_program): ditto
12259
12260 1998-10-31  Michael Schmitz <mschmitz@iname.com>
12261
12262         * configure.in: let configure check whether strcasecmp is
12263         present
12264         * common-src/strcasecmp.c: new file which contains a definition
12265         of strcasecmp
12266         * common-src/amanda.h: added code to declare strcasecmp in
12267         case it's not declared in a standard header
12268
12269 1998-10-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
12270
12271         * configure.in (snprintf): arrange that it is included in the
12272         distribution automatically
12273         * common-src/Makefile.am (EXTRA_DIST): removed, not needed
12274
12275         * changer-src/Makefile.am (libexec_SCRIPTS): would only be enabled
12276         if WANT_CHG_SCSI
12277
12278         * configure.in (NO_SCSI_CHANGER_MODE): chg-scsi does not support the
12279         new FreeBSD 3.0 chio.h, so disable it if camlib.h is found.
12280         * docs/SYSTEM.NOTES (FreeBSD 3.0): add a note about this
12281         (SunOS 4.x): libtool will no longer find incorrect library versions
12282
12283 1998-10-30  John R. Jackson  <jrj@purdue.edu>
12284
12285         * common-src/security.c (bsd_security_ok): change error message to
12286         reflect that it is a host name we were looking up rather than an
12287         address (also makes the two similar messages unique).
12288
12289 1998-10-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
12290
12291         * docs/SYSTEM.NOTES: Debian 2's dump uses /var/lib/dumpdates 
12292
12293 1998-10-28  John R. Jackson  <jrj@purdue.edu>
12294
12295         * recover-src/set_commands.c (set_host): if the host given by the user
12296         does not work, try the canonical name and aliases returned by
12297         gethostbyname.
12298
12299 1998-10-28  John R. Jackson  <jrj@purdue.edu>
12300
12301         * configure.in: use "df /" instead of just "df" when trying to find
12302         the device that has the root file system to avoid things like NFS
12303         hangs that df sometimes suffers from.
12304
12305 1998-10-27  Mike Grupenhoff <kashmir@munge.com>
12306
12307         * common-src/stream.c (stream-client): add a 'localport' argument
12308         in which we can get the port this stream is bound to locally
12309         * common-src/stream.h (stream-client): update prototype
12310         * server-src/dumper.c: update stream-client calls
12311
12312 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12313
12314         * client-src/amandad.c (main): better logging of received packet,
12315         do not send a P_ACK when the received packet is not a P_REQ.
12316
12317 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12318
12319         * client-src/amandad.c (main): terminate immediately if started
12320         by a P_ACK packet without sending a P_NAK packet.
12321
12322 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12323
12324         * server-src/conffile.h (dtimeout): new keyword 
12325         * server-src/conffile.c (dtimeout): ditto
12326         * server-src/dumper.c: use dtimeout instead of READ_TIMEOUT
12327         * example/amanda.conf.in: document it
12328         * man/amanda.8.in: ditto
12329         * NEWS: ditto
12330
12331 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12332
12333         * server-src/dumper.c (sendbackup_response): a nak error will
12334         be a TRY-AGAIN instead of a FAILED.
12335
12336 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12337
12338         * server-src/amlabel.c: move declaration of vtbl_no, datestr
12339         and slotcommand to the main function.
12340
12341 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12342
12343         * server-src/amlabel.c: remove declaration of pname.
12344
12345 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12346
12347         * server-src/amcheckdb.sh.in: modify to match new tapelist file
12348         format (keyword reuse and no-reuse). Probably no-one use this
12349         program.
12350
12351 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12352
12353         * server-src/driver.c (handle_dumper_result): Add sleep time
12354         when a dumper failed, it could be a temporary network problem,
12355         such as NIS or NFS, better wait a few seconds before retrying.
12356
12357 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12358
12359         * server-src/driverio.h: remove declaration of argc et argv.
12360         * server-src/driverio.h (getresult): add parameters result_argc, 
12361         result_argv and max_arg.
12362         * server-src/driverio.c (getresult): use new parameters.
12363         * server-src/amflush.c (flush_holdingdisk, run_dumps): declare
12364         and use result_argc and result_argv instead of global variables
12365         argc and argv.
12366         * server-src/driver.c (main, handle_taper_result, 
12367         handle_dumper_result, dump_to_tape): ditto
12368
12369 1998-10-24  John R. Jackson  <jrj@purdue.edu>
12370
12371         * server-src/amstatus.pl.in: do not be quite so accurate in matching
12372         the log file lines since messages may be intermixed.  Turn on perl
12373         -w switch and make first cut at cleaning up warnings.
12374
12375 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12376
12377         * server-src/driverio.h: remove datestamp declaration.
12378         * server-src/amcheck.c: remove 'extern' to datestamp declaration.
12379         * server-src/amflush.c: declare datestamp.
12380         * server-src/amtape.c: remove 'extern' to datestamp declaration.
12381         * server-src/driver.c: declare datestamp.
12382         * server-src/dumper.c: remove 'extern' to datestamp declaration.
12383         * server-src/reporter.c: remove 'extern' to datestamp declaration.
12384
12385 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12386
12387         * server-src/driverio.h: remove declaration of tok.
12388         * server-src/amflush.c (flush_holdingdisk,run_dumps): declare
12389         tok locally.
12390         * server-src/driver.c (main, handle_taper_result, handle_dumper_result,
12391         dump_to_tape): declare tok locally.
12392
12393 1998-10-23  John R. Jackson  <jrj@purdue.edu>
12394
12395         * configure.in: disable the -E and -h dump estimate checks if $DUMP
12396         is not executable.
12397
12398 1998-10-19  John R. Jackson  <jrj@purdue.edu>
12399
12400         * server-src/amindexd.c (is_config_valid): fix core dump by moving
12401         amfree of conf_dir later in case it is needed in an error message.
12402
12403 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12404
12405         * server-src/reporter.c: remove declaration of curlinenum,
12406         curlog, curprog and curstr.
12407
12408 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12409
12410         * server-src/amflush.c (main): move declaration of diskqp from
12411         global to local.
12412
12413 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12414
12415         * server-src/amcheck.c (main): move declaration of mailout and 
12416         tempfname from global to local.
12417
12418 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12419
12420         * server-src/amadmin.c (search_logfile): remove declaration
12421
12422 1998-10-15  Mike Grupenhoff <kashmir@munge.com>
12423
12424         * server-src/amadmin.c (reuse, no-reuse): don't core dump if tape
12425         label not found
12426
12427 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12428
12429         * server-src/conffile.h: remove declaration of holdingdisks and 
12430         num_holdingdisks, declare getconf_holdingdisks().
12431         * server-src/conffile.c: define getconf_holdingdisks(),
12432         * server-src/holding.c: use getconf_holdingdisks
12433         * server-src/find.c: ditto
12434         * server-src/amcheck.c: ditto
12435         * server-src/amflush.c: ditto
12436         * server-src/driver.c ditto
12437
12438 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12439
12440         * server-src/driver.c: remove verbose and force_parameters
12441         variables.
12442
12443 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12444
12445         * server-src/dumper.c: remove declaration of pid.
12446         * server-src/dumper.c(do_dump): move declaration of runtime, 
12447         dumptime, compresspid, indexpid and killerr from global to local.
12448
12449 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12450
12451         * server-src/planner.c: remove declaration of total_waiting and
12452         result_socket.
12453         * server-src/planner.c(main): move declaration of initial_size from
12454         global to local.
12455
12456 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12457
12458         * server-src/driverio.h,server-src/driver.c: move declaration
12459         of big_dumpers, degraded_mode and reserved_space from 
12460         driverio.h to driver.c
12461
12462 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12463
12464         * server-src/driverio.h (optionstr): remove declaration
12465
12466 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12467
12468         * configure.in (SAMBA_CLIENT): fix typo
12469
12470 1998-10-14  John R. Jackson  <jrj@purdue.edu>
12471
12472         * restore-src/amrestore.c (read_file_header): make a couple of error
12473         messages clearer that they refer to problems with a header rather
12474         than the image data.
12475
12476 1998-10-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
12477
12478         * client-src/Makefile.am (libamclient_a_SOURCES): missing since
12479         clean-up; re-added
12480
12481 1998-10-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12482
12483         * docs/INTERNALS (driver and dumper): document <dumpdate> in 
12484         FILE-DUMP and PORT-DUMP request, document <chunksize> in 
12485         FILE-DUMP request.
12486
12487 1998-10-12  John R. Jackson  <jrj@purdue.edu>
12488
12489         * server-src/amtape.c (usage, main, show_device): apply patch from
12490         Chris Jones <cjones@clydesdale.math.montana.edu> to support "device"
12491         as an option to return the drive device name as reported by the
12492         changer.
12493         * man/amtape.8: document the new "device" option.
12494         * server-src/amverify.sh.in: use the new amtape "device" option to
12495         better handle tape changers.  Overhaul for general cleanup and some
12496         security issues, plus amverify now tries to support non-tar images.
12497         * man/amverify.8.in: document non-tar image issues.
12498
12499 1998-10-08  John R. Jackson  <jrj@purdue.edu>
12500
12501         * example/amanda.conf.in: fix runspercycle example and comments
12502
12503 1998-10-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
12504
12505         * configure.in (SAMBA_CLIENT): try to find it by default; minimal
12506         checking
12507         * client-src/Makefile.am (WANT_SAMBA): use automake conditionals to
12508         enable findpass.o
12509         * docs/SAMBA: document that --with-smbclient is no longer required
12510         to enable SAMBA support
12511         
12512         * docs/FAQ: about inconsistencies in active filesystems
12513
12514 1998-10-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12515
12516         * docs/DUMPER-API: add `no-record' option to the `backup' command.
12517
12518 1998-10-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12519
12520         * docs/DUMPER-API: subdivise section 3.1.
12521
12522 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12523
12524         * docs/DUMPER-API: New `index-<mode>' options.
12525         define `support parse-estimate' and `support parse-backup' subcommand.
12526         New 'estimate-direct', `estimate-parse', `backup-direct' and
12527         `backup-parse' options.
12528         Remove PARSE keyword from estimate and backup command.
12529
12530 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12531
12532         * docs/DUMPER-API: define PARSE keyword in stderr of the backup
12533         command
12534
12535 1998-10-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
12536
12537         * man/Makefile.am (EXTRA_DIST): make sure the man-pages that are not 
12538         generated by autoconf get into the distribution
12539
12540 1998-10-02  Josef Karthauser  <joe@pavilion.net>
12541
12542         * changer-src/chg-chio.pl.in (getTapeParams): fix regular expression 
12543         for $line; the trailing `s' of slots was missing
12544
12545 1998-10-02  John R. Jackson  <jrj@purdue.edu>
12546
12547         * server-src/amstatus.pl.in: fix error message.
12548
12549 1998-10-02  John R. Jackson  <jrj@purdue.edu>
12550
12551         * server-src/taper.c (write_file): fix a problem with tha taper
12552         stats where the times were all the same.  The wallclock_str function
12553         returns a pointer to a static area so it cannot be called more
12554         than once as an argument to a function.
12555
12556 1998-10-01  John R. Jackson  <jrj@purdue.edu>
12557
12558         * common-src/protocol.c (parse_integer): allow negative numbers.
12559
12560 1998-10-01  John R. Jackson  <jrj@purdue.edu>
12561
12562         * server-src/amstatus.pl.in: add timestamps.
12563
12564 1998-10-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
12565
12566         * docs/DUMPER-API: define `support index', to be used instead of the
12567         previous `index-*' sub-commands
12568
12569 1998-09-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
12570
12571         * server-src/Makefile.am (libexec_PROGRAMS, sbin_SCRIPTS): don't use 
12572         backslashes for continuation; this seems to break automake :-(
12573
12574 1998-09-30  John R. Jackson  <jrj@purdue.edu>
12575
12576         * man/amanda.8.in: minor typo in "reserve" description.
12577
12578 1998-09-29  John R. Jackson  <jrj@purdue.edu>
12579
12580         * server-src/taper.c (end_tape): do not rewind the tape when done.
12581
12582 1998-09-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
12583
12584         * configure.in (WANT_CLIENT, WANT_RESTORE, WANT_SERVER, 
12585         WANT_RECOVER, WANT_TAPE, WANT_AMPLOT, WANT_CHG_SCSI): automake
12586         conditionals
12587         * amplot/Makefile.am: use them
12588         * changer-src/Makefile.am: ditto
12589         * client-src/Makefile.am: ditto
12590         * common-src/Makefile.am: ditto
12591         * man/Makefile.am: ditto
12592         * recover-src/Makefile.am: ditto
12593         * restore-src/Makefile.am: ditto
12594         * server-src/Makefile.am: ditto
12595         * tape-src/Makefile.am: ditto
12596
12597         * Makefile.am: don't print commands that work around old aclocal bug
12598
12599         * docs/DUMPER-API: remove environment variables, and mention a
12600         program that will help translating disklist entries to device names, 
12601         mount points and filesystem types
12602
12603         * recover-src/extract_list.c (extract_files_child): do not crash
12604         after failing to read the dump file header
12605         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
12606
12607 1998-09-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
12608
12609         * server-src/taper.c (taperscan_slot): initialize scan_datestamp, to
12610         avoid amfree of uninitialized pointer
12611         Reported by Lance A. Brown <brown9@niehs.nih.gov>
12612
12613 1998-09-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
12614
12615         * docs/DUMPER-API (USER, GROUP): detailed security mechanisms
12616         (estimate, estimate-parse): can print `KILL' after the estimate
12617         
12618         * docs/DUMPER-API: various suggestions from Eric Siegerman
12619         <erics@now.com> and some explanations added
12620         
12621 1998-09-27  Andy Farkas  <andyf@speednet.com.au>
12622
12623         * man/amlabel.8.in (labelstr): fix typo
12624
12625 1998-09-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
12626
12627         * recover-src/extract_list.c (extract_files_child): fix-up
12628         no_initial_params if password or domain information is not found
12629         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
12630
12631         * docs/DUMPER-API: extended `index' to `index-from-output' or
12632         `index-from-image', as suggested by Dale Hagglund <rdh@best.com>.
12633         Explained that the dumptype option `program' is the name of the
12634         wrapper program
12635
12636 1998-09-25  John R. Jackson  <jrj@purdue.edu>
12637
12638         * configure.in: fix --with-dump-honor-nodump test.  Patch by
12639         Jonas Oberg <jonas@coyote.org>.
12640
12641 1998-09-24  John R. Jackson  <jrj@purdue.edu>
12642
12643         * example/disklist: document the "spindle" and "interface" fields.
12644         Reported by Brendan M Coffey <bcoffey@connix.com>.
12645
12646 1998-09-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
12647
12648         * docs/DUMPER-API: added draft description of the DUMPER API
12649         * Makefile.am (EXTRA_DIST): add it to the distribution
12650
12651         * config/acinclude.m4 (AC_VALIDATE_CACHE_SYSTEM_TYPE): make sure
12652         cached values for host, build and target system types match with the
12653         guessed ones
12654         * configure.in: use it
12655
12656 1998-09-23  John R. Jackson  <jrj@purdue.edu>
12657
12658         * server-src/amstatus.pl.in: sort the host and partition names.
12659         From David Wolfskill <dhw@whistle.com>.
12660
12661 1998-09-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
12662
12663         * server-src/taper.c (getcmd): typo in last DEBUGging patch
12664
12665 1998-09-22  Tim Perkins  <Tim.Perkins@ddg.phar.cam.ac.uk>,  Alexandre Oliva <oliva@dcc.unicamp.br>
12666
12667         * client-src/selfcheck.c (check_disk): fix VDUMP auto-detection
12668
12669 1998-09-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
12670
12671         * changer-src/chg-mtx.sh.in: replace rew with rewind
12672         * changer-src/chg-zd-mtx.sh.in: ditto
12673         Reported by Henning Holtschneider <hh@loca.net>
12674
12675         * client-src/sendsize.c: remove usage of #error
12676         Reported by Jay Orr <orr@vss.fsi.com>
12677
12678 1998-09-21  John R. Jackson  <jrj@purdue.edu>
12679
12680         * man/amanda.8.in: document the new "tapebufs" parameter.
12681
12682 1998-09-21  Kelly Setzer  <setzer@telalink.net>
12683
12684         * server-src/taper.c (NBUFS): replaced with conf_tapebufs
12685         (THRESHOLD): now means `empty bufs' instead of `full bufs'
12686         * server-src/conffile.c: add support for the "tapebufs" option
12687         * server-src/planner.c: ditto
12688         * examples/amanda.conf.in: add sample "tapebufs" entry
12689
12690         * server-src/amlabel.c (main): adds entry to tapelist with date
12691         19700101
12692
12693 1998-09-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
12694
12695         * server-src/taper.c (getcmd): print DEBUGging output to stderr
12696         Reported by Henning Holtschneider <hh@loca.net>
12697
12698 1998-09-19  Eric Doutreleau <Eric.doutreleau@int-evry.fr>
12699
12700         * server-src/driverio.h (MAX_DUMPERS): increased from 15 to 63 in
12701         order to launch more dumper in parallel
12702         * example/amanda.conf.in (inparallel): Add the fact that it is
12703         limited by MAX_DUMPERS
12704
12705 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
12706
12707         * common-src/Makefile.am (libamanda_la_LDFLAGS): use libtool
12708         -release instead of -version_info, so as to encode the Amanda
12709         release number in the library name.  Problems related with
12710         pre-installed libraries should disappear, and separate releases can
12711         now be installed into the same directory without the risk of one
12712         using libraries from the other.
12713
12714 1998-09-18  Michael C. Povel  <Michael.Povel@hub.de>
12715
12716         * changer-src/chg-scsi.c (wait_ready): new function; keeps retrying
12717         until success or timeout
12718         (ask_clean, main): use it
12719
12720 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
12721
12722         * client-src/selfcheck.c (check_options): don't require runtar for
12723         SAMBA backups
12724         
12725         * client-src/rundump.c: fix support for VDUMP-only installation
12726         * client-src/selfcheck.c (check_options): fix detection of advfs
12727         * client-src/sendsize.c (getsize_dump): ditto
12728         * client-src/sendbackup-dump.c (start_backup): ditto
12729         Reported by Tim Perkins <Tim.Perkins@ddg.phar.cam.ac.uk>
12730
12731 1998-09-16  John R. Jackson  <jrj@purdue.edu>
12732
12733         * man/amadmin.8.in: document that "hostname" is optional for "info".
12734         Reported by David Wolfskill <dhw@whistle.com>.
12735
12736 1998-09-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
12737
12738         * docs/FAQ: common compile-time and link-time errors
12739
12740 1998-09-11  John R. Jackson  <jrj@purdue.edu>
12741
12742         * server-src/tapefile.c (lookup_last_reusable_tape): use new
12743         calling sequence that passes how old a tape to return.  Remove
12744         lookup_previous_reusable_tape().
12745         * server-src/tapefile.h (lookup_last_reusable_tape): use new
12746         calling sequence that passes how old a tape to return.  Remove
12747         lookup_previous_reusable_tape().
12748         * server-src/amadmin.c (tape): use new lookup_last_reusable_tape
12749         calling sequence.
12750         * server-src/amcheck.c (taper_scan, start_server_check): use new
12751         lookup_last_reusable_tape calling sequence.
12752         * server-src/amflush.c (confirm): use new lookup_last_reusable_tape
12753         calling sequence.
12754         * server-src/amtape.c (taper_scan): use new lookup_last_reusable_tape
12755         calling sequence.
12756         * server-src/reporter.c (output_tapeinfo): use new
12757         lookup_last_reusable_tape calling sequence.
12758         * server-src/taper.c (taper_scan): use new lookup_last_reusable_tape
12759         calling sequence.
12760
12761 1998-09-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
12762
12763         * client-src/sendbackup-gnutar.c (re_table): ignore
12764         `load_client_codepage' message from SAMBA
12765
12766 1998-09-11  John R. Jackson  <jrj@purdue.edu>
12767
12768         * server-src/amstatus.pl.in (all): fix USE_VERSION_SUFFIXES=yes
12769         problems.  Reported by David Eckelkamp <davide@locutus.tradewave.com>.
12770
12771         * man/amstatus.8.in (all): fix minor typos.
12772
12773 1998-09-10  John R. Jackson  <jrj@purdue.edu>
12774
12775         * configure.in (LFS): add code that might support configuring large
12776         files on HP-UX.
12777
12778 1998-09-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
12779
12780         * server-src/conffile.c (dump_configuration): runspercycle is not a
12781         member of dumptype_t
12782         (init_holdingdisk_defaults): init chunksize with documented default,
12783         not -1, because it wouldn't be recalculated
12784
12785         * docs/INSTALL: URL for SAMBA was broken; note about 1.9.18p10 bug
12786
12787 1998-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12788
12789         * docs/SAMBA: 1.9.18p10 has a bug
12790
12791 1998-09-09  Terje Malmedal  <tm@funcom.com>
12792
12793         * common-src/stream.c (stream_server, stream_client): added
12794         SO_KEEPALIVE option so we get an error if the other side crashes
12795
12796 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
12797
12798         * configure.in (CHIO): look for chio and AC_SUBST it
12799         (MT, CHS): if not found, use just the program name
12800         
12801 1998-09-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12802
12803         * server-src/planner.c (last_level): return the last level
12804         even it is still on holding disk if reserve < 100.
12805
12806 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
12807
12808         * server-src/reporter.c (divzero, divzero_wide): print `#'s on
12809         overflow
12810
12811         * server-src/amtape.c (show_init): no longer print `scanning'
12812         message
12813         (show_init_show, current_init_all): call show_init, then print the
12814         appropriate `scanning' message
12815         Reported by David Wolfskill <dhw@whistle.com>
12816
12817         * changer-src/chg-scsi.c (main): use new multi-configuration
12818         mechanism only if tape_device contains only a single digit
12819
12820 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12821
12822         * server-src/planner.c (setup_estimate): Don't write a
12823         "mismatch: no tapelist record, but curinfo next_level0" message
12824         and force a level 0 when reserve < 100.
12825
12826 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12827
12828         * server-src/holding.h (get_amanda_names): return a filetype_t
12829         instead of an int.
12830         * server-src/holding.c (get_amanda_names): return the filetype_t
12831         of the file or F_UNKNOWN if it's not an amanda file.
12832         * server-src/find.c (search_holding_disk): Use the new return 
12833         type of get_amanda_names.
12834         * server-src/amflush.c (flush_holdingdisk): Don't write a
12835         "ignoring cruft file" message for chunk files,
12836         filetype is F_CONT_DUMPFILE.
12837
12838 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12839
12840         * recover-src/extract_list.c (extract_files_child): don't write
12841         the samba password to the debug file.
12842
12843 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12844
12845         * server-src/driverio.c (update_info_dumper): set inf.command to
12846         NO_COMMAND if reserve< 100 because if you force a level 0 with
12847         'amadmin force', it will do level 0 every days until you flush them
12848         to tape.
12849
12850 1998-09-03  Matthias Urlichs    <smurf@noris.net>
12851
12852         * recover-src/uscan.l: recognize "?" as alias for "help"
12853
12854         * configure.in (MAILER): recognize "mail" as well as "Mail" and
12855         "mailx"
12856
12857         * client-src/calcsize.c (add_file_dump, add_file_unknown): only get
12858         sizes of directories and files
12859
12860         * client-src/amandates.c (start_amandates): create amandates if
12861         error is either EINTR or ENOENT
12862
12863         * common-src/dgram.c (dgram_send_addr): handle ECONNREFUSED by not
12864         dying when receiving, and retrying when sending, a packet.  The
12865         server may get this error when a client reboots and hasn't started
12866         inetd yet.
12867         * common-src/protocol.c (handle_incoming_packet): ditto
12868
12869         * server-src/driver.c (read_schedule): catch cases when the time
12870         goes negative.  Some operators have the bad habit of syncing clocks
12871         late at night. ;-)
12872
12873         * common-src/dgram.h (MAX_DGRAM): increased to 64Kb
12874         * NEWS: ditto
12875         * client-src/amandad.c (main): read the pipe from the child
12876         incrementally: the pipe buffer of many OSes is shorter than
12877         MAX_DGRAM.  Instead of SIGCHLD, note end-of-data by way of
12878         end-of-file
12879         (sigchild_jump, sigchild_flag): removed
12880         * client-src/sendbackup.c (main): instead of fork-and-exit, tell
12881         amandad to process our data by closing our end of the pipe
12882         
12883 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
12884
12885         * NEWS: another typo (too late :-(
12886
12887 1998-09-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12888
12889         * server-src/driver.c: amanda will not use an holding disk
12890         if the directory with the datestamp already exist.
12891
12892 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
12893
12894         * Amanda 2.4.1 released
12895         
12896 1998-08-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12897
12898         * NEWS: typo
12899
12900 1998-08-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
12901
12902         * docs/INSTALL: update some version numbers; SAMBA 1.9.18p10 has
12903         fixed the bug in p8; using p8 is not recommended any more
12904         * docs/SAMBA: ditto
12905
12906         * config/config.guess: updated to libtool 1.2b's, in order to
12907         auto-detect some recent architectures
12908         * config/config.sub: ditto
12909
12910         * server-src/amcleanup.sh.in (sbindir): amreport now lives in
12911         sbindir; added it to PATH and removed full pathnames to binaries
12912
12913 1998-08-27  Blair Zajac  <blair@gps.caltech.edu>
12914
12915         * configure.in: Add the directory /usr/lib/fs/vxfs to the search
12916         path where configure looks for vxdump and vxrestore.  This is for
12917         Solaris so it can automatically handle vxfs filesystems.
12918         * client-src/sendbackup-dump.c: add missing last NULL argument to
12919         newvstralloc().
12920         * server-src/dumper.c: add missing last NULL argument to
12921         newvstralloc().
12922         * NEWS: reorder 2.4.1 items into most to least important for most
12923         users.
12924         * config/acconfig.h: update comment for VXDUMP and VXRESTORE to
12925         include systems where the Veritas filesystem is used.
12926
12927 1998-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
12928
12929         * man/amanda.8.in (nofull): only level 1 incrementals
12930
12931 1998-08-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
12932
12933         * changer-src/chg-mtx.sh.in (PATH): added /usr/local/bin
12934
12935         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): added chg-zd-mtx
12936         (AC_OUTPUT): ditto
12937         * changer-src/Makefile.am (EXTRA_SCRIPTS): ditto
12938         * docs/TAPE.CHANGERS (chg-zd-mtx): documented it
12939         (chg-mtx): mentioned chg-zd-mtx
12940
12941 1998-08-20  Eric Doutreleau  <Eric.Doutreleau@int-evry.fr>
12942
12943         * changer-src/chg-zd-mtx.sh.in: new changer script for
12944         Zubkoff/Dandelion version of mtx.
12945
12946 1998-08-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
12947
12948         * docs/SAMBA: updated; documented new patch (sambatar.diff,
12949         available in the patches page) and requirements about backup user.
12950         * docs/INSTALL: documented new patch
12951
12952 1998-08-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
12953
12954         * client-src/sendsize.c (regex_s): refuse to compile if SAMBA_CLIENT
12955         and HAVE_DUMP_ESTIMATE are both defined: the regexp that matches the
12956         estimate from DU 4.0's dump also matches an output line from
12957         smbclient, that provides an incorrect estimate.
12958         * docs/SYSTEM.NOTES: document the problem
12959
12960 1998-08-14  John R. Jackson  <jrj@purdue.edu>
12961
12962         * docs/TAPE.CHANGERS: describe "advance" and clean up some spelling.
12963
12964 1998-08-13  Alexandre Oliva  <oliva@dcc.unicamp.br>, Marcel Hild  <hild@id-pro.de>
12965
12966         * configure.in (--with-portrange): validate and define PORTRANGE
12967         * example/config.site: document it
12968         * config/acconfig.h (PORTRANGE): prepare for configure define
12969         * common-src/stream.c (stream_server): use PORTRANGE to limit TCP
12970         unreserved server sockets
12971
12972 1998-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
12973
12974         * docs/FAQ: working around `dumps way too big'
12975
12976 1998-08-11  Alexandre Oliva  <oliva@dcc.unicamp.br>, Gunnar Gunnarsson  <gunnar@ki.ericsson.se>
12977
12978         * common-src/token.h (rxquote, shquote): new functions
12979         * common-src/token.c (rxquote) quotes a string into an equivalent
12980         regular expression
12981         (shquote): quotes all shell special meta-characters, so that a
12982         string can be safely passed down for shell interpretation in
12983         system() or popen()-like calls
12984         * server-src/amindexd.c (build_disk_table): quote the disk_name with 
12985         both rxquote and shquote
12986
12987 1998-08-11  John R. Jackson  <jrj@purdue.edu>
12988
12989         * changer-src/chg-manual.sh.in: put the debug file in DEBUG_DIR for
12990         security.  Clean up and enhance logging.  Fix locations of the
12991         changer files.  Source the changerfile into the script so it can
12992         override the request() function and allow alternatives to /dev/tty
12993         (e.g. E-mail, syslog).  Issue rewind before status (Solaris does
12994         not give a good status report right after a tape is loaded).
12995
12996 1998-08-10  Nick Hibma  <nick.hibma@jrc.it>
12997
12998         * changer-src/chg-chio.pl.in: move to first slot if last is unused
12999
13000 1998-08-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
13001
13002         * example/Makefile.am (EXTRA_DIST): add DIN-A4.ps
13003
13004 1998-08-07  Günter Felkel  <G.Felkel@edelmann.de>
13005
13006         * example/DIN-A4.ps: new file
13007
13008 1998-08-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
13009
13010         * tape-src/tapetype.c (initrandombytes): use random() instead of
13011         rand(), its low-order bits are more random
13012         (main): call srandom(seed) instead of srand(seed)
13013         (USE_RAND): if defined, reverts to using rand() and srand(seed)
13014
13015         * docs/FAQ: some notes about driving real tape changers
13016
13017 1998-08-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
13018
13019         * man/amreport.8.in (SYNOPSIS): replace `amtoc' with `amreport'
13020
13021 1998-08-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
13022
13023         * client-src/sendsize.c: revert 1998-08-01's change, it wouldn't
13024         even compile, as amfree() expands to a statement, not an expression, 
13025         so it cannot be used as the `increment' part of a for loop.
13026
13027         * server-src/planner.c (main): if runs_per_cycle is set to zero or
13028         negative, set it to 1, in order to avoid division by zero.
13029         * server-src/amadmin.c (balance): ditto
13030
13031 1998-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
13032
13033         * client-src/sendsize.c: replace free(line) with amfree(line),
13034         because line is not ensured to be non-NULL
13035         
13036         * docs/FAQ: amandad: error receiving message
13037         
13038         * docs/FAQ: difference between skip-full and strategy nofull
13039
13040 1998-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
13041
13042         * docs/FAQ: software or hardware compression?
13043
13044         * server-src/driver.c (adjust_diskspace): do not abort just because
13045         a holding disk file is missing
13046         (main): report warning if holding disk directory could not be
13047         created, and do not use it
13048         Reported by Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
13049
13050         * example/Makefile.am (EXTRA_DIST): add 8.5x11.ps to the
13051         distribution
13052         Reported by Jason L Tibbitts III <tibbs@hpc.uh.edu>
13053
13054         * server-src/conffile.c (get_holdingdisk): define chunksize 0 as
13055         INT_MAX/1024, and chunksize -1 as -INT_MAX/1024
13056         * server-src/driver.c (find_diskspace): accept negative chunksizes
13057         as the maximum size (in modulus) for using the holding disk
13058         * man/amanda.8.in (chunksize): document the usage of negative
13059         values, and improve the explanation of chunking
13060         * example/amanda.conf.in: ditto
13061
13062 1998-07-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
13063
13064         * docs/FAQ: disk offline
13065
13066 1998-07-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
13067
13068         * restore-src/amidxtaped.c (main): use tape_rewind() instead of
13069         running `mt'
13070
13071         * server-src/amcleanup.sh.in (reporter): update to call amreport.
13072         (amdump.<n>) update to use the same renaming technique introduced in
13073         June 30's change to amdump.
13074
13075 1998-07-25  Michael Graff  <explorer@vix.com>
13076
13077         * changer-src/Makefile.am (install-exec-hook): support $(DESTDIR)
13078         * client-src/Makefile.am (install-exec-hook): ditto
13079         * man/Makefile.am (install-data-hook): ditto
13080         * recover-src/Makefile.am (install-exec-hook): ditto
13081         * restore-src/Makefile.am (install-exec-hook): ditto
13082         * server-src/Makefile.am (install-exec-hook): ditto
13083
13084         * configure.in: link krb5 and com_err in for Kerberos support, if
13085         they exist
13086
13087 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13088
13089         * server-src/reporter.c (copy_template_file): add braces to 
13090         remove warning
13091         * tape-src/tapeio.h: declare is_zftape to remove warning in
13092         amlabel.c and taper.c
13093
13094 1998-07-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
13095
13096         * server-src/driver.c (any_delayed_disk): new variable, to ensure
13097         that we do not leave the main driver loop if there are delayed disks 
13098         but there are no active dumpers
13099         (main): instead of checking whether idle_reason is IDLE_START_WAIT,
13100         check whether there is any_delayed_disk for remaining in the loop
13101         (start_degraded_mode): set any_delayed_disk when needed
13102         Reported by Peter Walker <peter@talarian.com>
13103
13104 1998-07-23  John R. Jackson  <jrj@purdue.edu>
13105
13106         * server-src/reporter.c (main): handle LPRCMD being undefined.
13107
13108 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13109
13110         * client-src/selfcheck.c (check_suid): new function to check if a
13111         program is SUID root.
13112         * client-src/selfcheck.c (check_overall): check that runtar and
13113         rundump are SUID root.
13114
13115 1998-07-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
13116
13117         * configure.in: version number set to 2.4.1
13118
13119         * recover-src/Makefile.am (LDADD): libamtape imports symbols from
13120         libamanda, so it must be listed first
13121
13122         * changer-src/Makefile.am (LDADD): remove duplication of libamserver
13123         and libamanda, as they no longer provide symbols for each other
13124         * server-src/Makefile.am (LDADD): ditto
13125         
13126 1998-07-21  Blair Zajac  <blair@gps.caltech.edu>
13127
13128         * server-src/amrmtape.sh.in: now use amanda.conf's tapelist variable
13129         * server-src/amcheckdb.sh.in:  now use amanda.conf's tapelist variable
13130         * server-src/amfreetapes.sh.in: now use amanda.conf's tapelist variable
13131         * server-src/amtoc.pl.in: now use amanda.conf's tapelist variable,
13132         make perl4 compatible
13133
13134 1998-07-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
13135
13136         * docs/FAQ (results missing): suggestions to work around the UDP
13137         packet size limit
13138
13139 1998-07-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
13140
13141         * docs/FAQ (amrecover): a config name may have to be specified
13142         Reported by digital messiah <dmessiah@silcon.com>
13143
13144 1998-07-15  Blair Zajac  <blair@gps.caltech.edu>
13145
13146         * server-src/reporter.c (main): declare optind
13147
13148 1998-07-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
13149
13150         * configure.in: created Amanda 2.4.1 branch
13151
13152         * example/amanda.conf.in: strategy noinc is not implemented yet
13153
13154 1998-07-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13155
13156         * NEWS: new runspercycle keyword
13157         * server-src/conffile.h: new runspercycle keyword
13158         * server-src/conffile.c: new runspercycle keyword
13159         * server-src/amadmin.c (balance): new runspercycle keyword
13160         * server-src/planner.c (main): new runspercycle keyword
13161         * man/amanda.8.in: document new runspercycle keyword
13162         * example/amanda.conf.in: example for new runspercycle keyword
13163
13164 1998-07-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
13165
13166         * docs/FAQ: What to do if DUMP program is not available.
13167         * client-src/selfcheck.c (check_overall): if a needed program is
13168         missing, print an error message.
13169         Reported by Klaus Hoffmann <handatalog@csi.com>
13170
13171         * */Makefile.am: checked library version numbers, no need for update
13172         
13173         * configure.in: version number set to 2.4.1b1
13174
13175 1998-07-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
13176
13177         * docs/FAQ: new entries: how to label tapes, (not) spanning large
13178         filesystems across tapes, how to enable index generation,
13179         overwriting selected tapes, cleaning up databases, selecting tape
13180         changer.
13181         
13182 1998-07-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
13183
13184         * man/Makefile.am (EXTRA_DIST): amreport.8 is built from .8.in
13185
13186         * configure.in (AC_OUTPUT): generate chg-chio.pl
13187         * changer-src/Makefile.am (EXTRA_DIST): removed chg-chio.c
13188         * changer-src/chg-chio.c: removed, as it was confusing make
13189         
13190 1998-07-10  Nick Hibma  <nick.hibma@jrc.it>, Alexandre Oliva <oliva@dcc.unicamp.br>
13191
13192         * changer-src/chg-chio.pl.in: new script, created to replace old
13193         chg-chio written in C
13194         * docs/TAPE.CHANGERS (chg-chio): document it
13195         * changer-src/Makefile.am (EXTRA_SCRIPTS): add chg-chio
13196         (EXTRA_DIST): still include chg-chio.c, just in case it is useful
13197         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): add chg-chio
13198         
13199 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
13200
13201         * server-src/reporter.c (main): if no arguments are given, preserve
13202         original behavior; require config name otherwise.  Perform better
13203         argument checking.
13204         * example/DLT.ps (DrawHost): discard additional argument introduced
13205         in Steven Freed's modification
13206         * example/EXB-8500.ps (DrawHost): ditto
13207         * example/HP-DAT.ps (DrawHost): ditto
13208
13209         * server-src/Makefile.am (amreport_SOURCES): build from reporter.c
13210         (driver_SOURCES) removed, no longer needed
13211         * man/Makefile.am (EXTRA_DIST): added amreport.8
13212
13213 1998-07-08  Steven Freed  <sfreed@gilasoft.com>
13214
13215         * server-src/reporter.c (usage): new function
13216         (main): accept command-line arguments for selecting config name,
13217         output file, log file name to read from, postscript file to write
13218         to.
13219         (output_summary): print tape labels list, tape section numbers and
13220         dump sizes.
13221         * server-src/amdump.sh.in: run amreport
13222         * server-src/amflush.c (main): ditto
13223         (run_dumps): ditto
13224         * configure.in (BUILD_SERVER_PROGS_SBIN): add amreport
13225         (BUILD_SERVER_PROGS_LIBEXEC): remove reporter
13226         * man/amreport.8.in: new file
13227         * man/Makefile.am (man_MANS): added amreport.8
13228         * example/8.5x11.ps: new file
13229
13230 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
13231
13232         * Makefile.am (ACLOCAL_M4): fix ||/&& precedence problem
13233
13234 1998-07-07  John R. Jackson  <jrj@purdue.edu>
13235
13236         * changer-src/scsi-chio.c: move #include's so this will compile on
13237         systems without <sys/mtio.h> (e.g. AIX).
13238
13239 1998-07-06  John R. Jackson  <jrj@purdue.edu>
13240
13241         * client-src/sendsize.c (handle_dumpline): allow the dump block
13242         count estimate to be negative.  Found by Lance A. Brown
13243         <brown9@niehs.nih.gov> on NeXT.
13244
13245         * common-src/Makefile.am, common-src/security.c: add TEST code to
13246         security.c so people can do "make security" and have a test program
13247         to track down why they are getting "access as XXX not allowed from
13248         YYY@ZZZ".
13249
13250         * common-src/security.c (bsd_security_ok): allow the remote user
13251         field in .amandahosts to be empty ala .rhosts.
13252
13253 1998-07-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13254
13255         * server-src/amcheck.c (start_server_check): report space use for
13256         holding disk if a negative value is given in the use parameter.
13257
13258         * server-src/driver.c (main): compute holding disk space if 
13259         a negative value is given in the use parameter..
13260
13261         * man/amanda.8.in (use) : document negative use paramater for 
13262         holding disk.
13263
13264         * example/amanda.conf.in (use): document negative use paramater for
13265         holding disk..
13266
13267 1998-07-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
13268
13269         * man/amanda.8.in (reserve): document it
13270         * example/amanda.conf.in (reserve, gigabytes): ditto
13271         (etimeout) negative number stands for total estimate time
13272
13273         * NEWS: documented major changes since amanda 2.3.0.4
13274
13275         * docs/INSTALL: refer to patch-system for editing services and
13276         inetd.conf
13277
13278         * docs/FAQ: added entries for common amdump and amcheck errors
13279
13280         * COPYRIGHT: updated to 1998, refer to Amanda Development Team
13281         * AUTHORS: who is the Amanda Development Team
13282
13283 1998-07-03  John R. Jackson  <jrj@purdue.edu>
13284
13285         * docs/SYSTEM.NOTES: add comment about using the variable device name
13286         on IRIX.  Otherwise, IRIX will write 4KByte physical blocks, which
13287         it appears to read OK, but not if you take the tape to some other
13288         system that does what you tell it.  Discovered by Steve E. Khoo
13289         (steve@gordian.com).
13290
13291 1998-07-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
13292
13293         * server-src/planner.c (setup_estimate): handle new disks with
13294         skip-full correctly.
13295
13296         * Makefile.am (aclocal.m4): must depend on libtool.m4, so as to
13297         force it to be newer on distributions.
13298
13299 1998-07-01  John R. Jackson  <jrj@purdue.edu>
13300
13301         * server-src/driverio.h: change reserved_space to unsigned long to
13302         match free_space() and avoid a compiler warning.
13303
13304 1998-06-30  John R. Jackson  <jrj@purdue.edu>
13305
13306         * man/amanda.8.in: fix amrecover synopsis and add a short description.
13307         Noted by Brendan M Coffey <bcoffey@connix.com>.
13308
13309         * example/amanda.conf.in: make tapecycle example fit dumpcycle value
13310         better.  Noted by Tom.Croll@radisys.com and suggested comments from
13311         Alexandre Oliva <oliva@dcc.unicamp.br>.
13312
13313 1998-06-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
13314
13315         * server-src/amdump.sh.in (maxdays): set up with tapecycle+2
13316         (days): loops from 1 to $maxdays, but stops if amdump.$days does not 
13317         exist, so that we only rename amdump log files that exist.  This
13318         prevents too long loops in case of an infinite tapecycle.
13319         Reported by Nick Hibma <nick.hibma@jrc.it>
13320
13321 1998-06-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
13322
13323         * common-src/security.c (bsd_security_ok): accept case mismatches
13324         when comparing hostnames and usernames from amandahosts, and assume
13325         localuser if username is missing.
13326         * docs/INSTALL: clarify BSD security and amandahosts, WRT to
13327         non-FQDNs.
13328         Reported by Chris Shenton <chris@absinthe.shenton.org>
13329
13330         * server-src/reporter.c (output_tapeinfo): degraded mode no longer
13331         implies incremental dumps only.
13332         Reported by Randy Dees <rrd@amherst.com>
13333
13334 1998-06-26  John R. Jackson  <jrj@purdue.edu>
13335
13336         * configure.in: fix BSD/OS Kerberos include file location.
13337
13338 1998-06-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
13339
13340         * config/ltmain.sh: install official patch to libtool 1.2a
13341
13342         * configure.in: do not set max file size for Solaris 2.6, it is no
13343         longer used.
13344
13345 1998-06-26  Tim McNerney  <mumbly@netcom.com>
13346
13347         * common-src/fileheader.c (parse_file_header): accept missing
13348         PROGRAM in tape section header, for backward compatibility.
13349
13350 1998-06-25  Blair Zajac  <blair@gps.caltech.edu>
13351
13352         * server-src/amflush.c: fix mismatch arguments to error()
13353
13354 1998-06-24  Steven Freed  <sfreed@gilasoft.com>
13355
13356         * configure.in (dump-honor-nodump): fix test for `-h' support
13357
13358 1998-06-24  Scott Mesches  <mesches@allison.Colorado.EDU>
13359
13360         * example/DLT.ps: new file
13361         * example/Makefile.am (EXTRA_DIST): add DLT.ps
13362
13363 1998-06-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
13364
13365         * Makefile.am (EXTRA_DIST): moved CHANGES into ChangeLog
13366
13367         * recover-src/extract_list.c (extract_files_child): handle
13368         IS_UNKNOWN dumptype as IS_DUMP
13369
13370         * client-src/sendsize.c (getsize_dump): always create pipe for
13371         killpgrp.
13372
13373         * client-src/amandad.c (sendnak): report `UNKNOWN' error if str is
13374         NULL.
13375
13376         * amplot/amplot.awk: ignore `interface-state'
13377         Reported by Peter Walker <peter.walker@talarian.com>
13378
13379 1998-06-24 Alexandre Oliva <oliva@dcc.unicamp.br>
13380
13381         * server-src/amrmtape.sh.in: enable verbose by default; implement -q 
13382         for quiet.
13383         * man/amrmtape.8.in: ditto
13384         Suggested by Nick Hibma  <nick.hibma@jrc.it>
13385         
13386 1998-06-24  Nick Hibma  <nick.hibma@jrc.it>
13387
13388         * server-src/amrmtape.sh.in: better error reporting for incorrect
13389         database entries
13390
13391 1998-06-24  Dan Swartzendruber <dswartz@druber.com>
13392         
13393         * server-src/conffile.h (RESERVE): new keyword.
13394         * server-src/conffile.c (RESERVE): ditto.
13395         (getconf_seen): recognize "reserve" keyword.
13396         (getconf_int): return value of "reserve" keyword.
13397         (read_confline): parse "reserve" line.
13398         * server-src/driverio.h (reserved_space): new global
13399         * server-src/driver.c (main): compute holding disk space to reserve
13400         for degraded dumps.
13401         (start_degraded_mode): if we haven't hit degraded mode reservation
13402         limit, allow full dump.
13403         
13404 1998-06-18  Blair Zajac <blair@gps.caltech.edu>
13405
13406         * config/ltconfig: update to 1.2a
13407         * config/ltmain.sh: update to 1.2a
13408         * config/libtool/libtool.m4: update to 1.2a
13409
13410 1998-06-17  John R. Jackson  <jrj@purdue.edu>
13411
13412         * server-src/dumper.c (write_tapeheader): comment out some variables
13413         to get rid of a compiler warning.
13414
13415 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13416
13417         * server-src/amadmin.c (bumpsize): write wrong equation for bump
13418         threshold.
13419
13420 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13421
13422         * man/amanda.8.in: add info about the chunksize parameter
13423         of the holdingdisk.
13424         * man/amanda.8.in: add info about amstatus command
13425
13426 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
13427
13428         * common-src/Makefile.am (libamanda_version): updated
13429         * tape-src/Makefile.am (libtape_version): updated
13430         * client-src/Makefile.am (libclient_version): updated
13431         * server-src/Makefile.am (libserver_version): updated
13432
13433         * server-src/taper.c (read_file): if switching to the next file
13434         fails or there's no next file, do not send a `W' to taper writer.
13435
13436         * server-src/changer.h (changer_clean): new function
13437         * server-src/changer.c (changer_clean): ditto
13438
13439 1998-06-13  Michael C. Povel  <mcp@ladyada.han.de>
13440
13441         * changer-src/chg-scsi.c: added ejetct_tape and sleep for external
13442         tape devices, and changed some code to allow multiple drives to use
13443         their own slots. Also added support for reserverd slots.
13444         * changer-src/libscsi.h (get_clean_state, eject_tape): new functions 
13445         * changer-src/scsi-chio.c (get_clean_state, eject_tape): implemented 
13446         using Linux ioctls
13447         * changer-src/scsi-hpux.c (get_clean_state, eject_tape): do nothing, 
13448         until someone implements them
13449         * changer-src/scsi-proto.c (get_clean_state, eject_tape): new
13450         functions
13451         * docs/TAPE.CHANGERS: document new configuration file format
13452         * example/chg-scsi.conf: sample configuration file
13453         * example/Makefile.am: add chg-scsi.conf to the distribution
13454         * server-src/amtape.c: add support for `clean' command
13455
13456 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
13457
13458         * docs/SYSTEM.NOTES: clean-up
13459
13460         * docs/FAQ: new file
13461         * docs/SUNOS4.BUG: removed
13462         * Makefile.am: remove docs/SUNOS4.BUG and add docs/FAQ
13463         
13464         * example/amanda.conf.in (bumpmult): fixed equation for threshold
13465         * man/amanda.8.in (bumpsize): fix threshold example.
13466         problem reported by Brian McEntire <brianm@fsg1.nws.noaa.gov>
13467
13468         * server-src/logfile.c (open_log): open log file with mode 0600.
13469
13470         * server-src/amdump.sh.in: refuse to run if either amdump or log
13471         exist in logdir.
13472         * server-src/amflush.c (main): refuse to run if log exists.
13473         * server-src/amcheck.c (start_server_check): do not perform tape
13474         testing if amdump and/or log exist in logdir.
13475
13476 1998-06-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13477
13478         * restore-src/amrestore.c (restore): fixed -p flag (and amrecover)
13479         should not dup2( A, B ); aclose(A) when A == B
13480
13481 1998-06-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
13482
13483         * client-src/sendsize.c (getsize_dump): use killpgrp
13484         unconditionally, so we're not bitten by setuid dump programs.
13485         * client-src/killpgrp.c: enable unconditionally.
13486
13487         * tape-src/tapetype.c: new program: calculates tapetype parameters.
13488         * tape-src/Makefile.am (EXTRA_PROGRAMS): added tapetype.
13489         * example/amanda.conf.in: point to tapetype program.
13490
13491 1998-06-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
13492
13493         * docs/SAMBA: added notes about (not) backing up registry files and
13494         ACLs with SAMBA.
13495         * docs/INSTALL: point to docs/SAMBA for usage and limitations
13496
13497 1998-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
13498
13499         * configure.in (amanda_cv_print_command): removed; using PRINT
13500         instead.
13501
13502 1998-06-07  Todd Kover <kovert@omniscient.com>
13503
13504         * add --with-owner option to allow installed binaries to be owned
13505         by someone other than the amanda user
13506
13507         * add GB as valid holding disk size.
13508
13509 1998-06-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13510
13511         * server-src/amadmin.c (info): don't need to specify an host.
13512
13513         * server-src/amadmin.c (due): new due command to write when a
13514         filesystem is due ffor next level 0 or how much days it is
13515         overdue.
13516
13517         * server-src/amstatus.pl.in (dump_size): new function to report
13518         the size of a dump split on multiple files.
13519
13520 1998-06-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13521
13522         * recover-src/extract_list.c (read_buffer): write a message
13523         when amrecover timeout waiting for amrestore to send the dump.
13524
13525 1998-06-04  John R. Jackson  <jrj@purdue.edu>
13526
13527         * client-src/getfsent.c (main): use a dynamically allocated string
13528         for the lookups since dev2rdev alters it on the fly and some systems
13529         drop core for trying to write into read only memory.  Also add the
13530         capability of passing additional lookups on the command line.
13531
13532         * common-src/Makefile.am, common-src/file.c (main),
13533         common-src/token.c (main), server-src/conffile.c (dump_configuration,
13534         main), server-src/diskfile.c (main), server-src/infofile.c (main):
13535         Clean up compiler warnings in the test programs and make them all
13536         work again.
13537
13538 1998-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
13539
13540         * amplot/amplot.sh.in: modified command line argument parsing
13541         mechanism, so as to prevent shell quoting problems and unportable
13542         constructs.
13543         Reported by Chris Jones <cjones@clydesdale.math.montana.edu>
13544
13545 1998-06-02  John R. Jackson  <jrj@purdue.edu>
13546
13547         * server-src/amcheck.c (main), server-src/reporter.c (main): make
13548         sure internal errors, such as the mail command failing, get
13549         reported.  In the case of amcheck, they go to stderr even if -m is
13550         set since there didn't seem to be anyplace better to do so and if
13551         this is running from a cron job it might get back to a real user.
13552         For reporter, the errors go to .../amdump along with everything
13553         else from the amdump script, and they should also go to .../log,
13554         except since it's reporter that's having the trouble, they probably
13555         will not make it into the mail report.
13556
13557 1998-06-01  John R. Jackson  <jrj@purdue.edu>
13558
13559         * client-src/killpgrp.c: clean up minor compiler warnings by not
13560         building term_kill_{soft,hard} unless they are needed.
13561
13562         * server-src/driverio.c (dumper_cmd): clean up compiler warning
13563         in printf format by forcing argument to always be long and using %ld.
13564
13565         * server-src/driver.c: include <holding.h> to get declaration for
13566         unlink_holding_files and avoid a compiler warning.
13567
13568         * common-src/amanda.h, common-src/match.c (validate_glob, match_glob,
13569         glob_to_regex), recover-src/amrecover.h, recover-src/extract_list.c
13570         (add_glob, add_regex, add_file, delete_glob, delete_regex,
13571         delete_file), recover-src/help.c (help_list), recover-src/uparse.y,
13572         recover-src/uscan.l, man/amrecover.8.in: add shell wildcard support
13573         for the add/delete amrecover commands.  Add addx/deletex commands
13574         that use regular expressions.  Support more characters in path names.
13575
13576 1998-06-01  Dan Swartzendruber  <dswartz@druber.com> via John R. Jackson
13577
13578         * server-src/amlabel.c (main): check argc before referencing too
13579         far into argv for "-f".
13580
13581 1998-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
13582
13583         * docs/SYSTEM.NOTES: advise Linux users to use dump without
13584         setuid/setgid
13585
13586         * docs/INDEXING: update dumptype syntax
13587
13588 1998-05-29  John R. Jackson  <jrj@purdue.edu>
13589
13590         * server-src/amindexd.c (uncompress_file, process_ls_dump,
13591         build_disk_table, is_dir_valid_opaque, opaque_ls): fix file
13592         descriptor leak, log the amadmin find command, fix error reporting
13593         from routines that do not generate system errors.
13594         * common-src/amanda.h: make sure errno is saved through amfree().
13595
13596 1998-05-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
13597
13598         * docs/SYSTEM.NOTES: GNU tar must be patched on HP/UX.
13599         * patches/tar-1.12.patch: ditto.
13600
13601         * server-src/taper.c (endtape): do not log amount of used tape after 
13602         entering degraded mode.
13603
13604         * client-src/sendsize.c (getsize_dump): pass at least argv[0] to
13605         killpgrp.
13606
13607 1998-05-28  Paul R. Johnson  <prj@mit.edu>
13608
13609         * client-src/sendbackup.c (check_status): when checking whether
13610         return status 1 is valid for dump, make sure it was *not* tar that
13611         was running.
13612
13613 1998-05-28  Tom Lear <toml@accesscom.com>, John R. Jackson  <jrj@purdue.edu>
13614
13615         * man/amcheck.8.in: document new -Maddress command line flag.
13616         * server-src/amcheck.c (usage, main): add -Maddress command line
13617         flag to send mail to a specific address instead of mailto from
13618         amanda.conf.
13619
13620 1998-05-27  John R. Jackson  <jrj@purdue.edu>
13621
13622         * man/amrestore.8: update for host/disk/date triplets.
13623         * recover-src/extract_list.c (extract_files_setup): pass datestamp
13624         argument in new position and without -d.
13625         * restore-src/amidxtaped.c (main): remove -d checks.
13626         * restore-src/amrestore.c (restore, usage, main): fix file descriptor
13627         leak, move datestamp to host/disk triplet and allow all to be repeated.
13628
13629 1998-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
13630
13631         * client-src/killpgrp.c (main): wait for either SIGTERM or EOF on
13632         stdin.
13633
13634         * client-src/sendsize.c (getsize_dump): close the other end of
13635         killpgrp's stdin pipe before trying to kill it, because we just
13636         can't kill it.
13637
13638         * configure.in (HAVE_HPUX_SCSI): check whether sys/scsi.h actually
13639         supports HP/UX-like changer commands.
13640
13641         * config/acconfig.h (HAVE_HPUX_SCSI): indicates HP/UX-like changer
13642         interface is supported.
13643
13644         * changer-src/scsi-hpux.c: check for HAVE_HPUX_SCSI instead of
13645         HAVE_SYS_SCSI_H.
13646
13647 1998-05-25  Allen Briggs  <briggs@canolog.ninthwonder.com>
13648
13649         * changer-src/chg-manual.sh.in (ONLINEREGEX): add `^er=0$' for
13650         NetBSD's mt
13651
13652 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
13653
13654         * client-src/sendsize.c (getsize_dump): killpgrp must be direct
13655         child of sendsize, otherwise sendsize won't be able to kill it.
13656
13657 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
13658
13659         * configure.in (bcopy, bzero, fread, fwrite, vfprintf, vprintf,
13660         vsprintf): check for these in stdlib.h
13661         (memmove): check for it in strings.h
13662         
13663         * common-src/amanda.h (memmove): fix declaration of memmove, so as
13664         to be compatible with the ones in common-src/memmove.c and
13665         regex-src/fake/memmove.c
13666         
13667         reported by Tim Potter <tpot@acsys.anu.edu.au>
13668
13669 1998-05-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
13670
13671         * client-src/sendbackup.c (check_status): when checking whether dump 
13672         returned 1, make sure it was not tar; #ifdef'ed out the code that
13673         ignores exit status 2 from gnutar (will be compiled in only if
13674         IGNORE_TAR_ERRORS is defined)
13675         * client-src/sendbackup-gnutar.c (GNUTAR active filesystem errors): 
13676         updated comment; compile in GNUTAR error messages as DMP_NORMAL if
13677         IGNORE_TAR_ERRORS is defined; compile in SMBCLIENT error messages as 
13678         DMP_NORMAL if IGNORE_SMBCLIENT_ERRORS is defined.
13679         
13680 1998-05-20  Tom Lear  <toml@accesscom.com>
13681
13682         * client-src/sendbackup.h (tarpid): new variable, used to check
13683         whether it is gnutar that is running
13684         * client-src/sendbackup-gnutar.c (start_backup): set tarpid when
13685         starting gnutar
13686         * client-src/sendbackup.c (check_status): if gnutar returns 2,
13687         ignore the error
13688
13689 1998-05-19  Jean-Louis Martineau <martineau@IRO.UMontrealCA>
13690
13691         * client-src/amandad.c: set parse_errmsg when unexpected packet
13692         * recover-src/amrecover.c: overflow in clean_pathname()
13693         * recover-src/extract_list.c: add log in delete_file().
13694         small bug when call clean_pathname()
13695         * server-src/amindexd.c: ORLD command is not working
13696         * server-src/dumper.c: fixe overflow
13697
13698 1998-05-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
13699
13700         * configure.in: do not check for MAXFILESIZE
13701         * config/acconfig.h: do not define MAXFILESIZE
13702         * server-src/conffile.c: use INT_MAX instead of MAXFILESIZE
13703         * example/amanda.conf.in: ditto
13704
13705         * server-src/driver.c (interface_state): new function; print the
13706         free bandwidth for each interface.
13707         (short_dump_state): call interface_state before holdingdisk_state
13708
13709         * ChangeLog: renamed from CHANGES.  Original entries follow.
13710
13711         fix skip-incr handling so that reporter reports SKIPPED
13712         instead of missing result.
13713         -Jim Simmons <s4i@sws6.ctd.ornl.gov>
13714
13715         split big dumps ( > MAXFILESIZE ) in multiple files on holding disk. 
13716         new chunksize parameter in holdingdisk description of 
13717         the amanda.conf file.
13718         -J-L Martineau <martineau@IRO.UMontreal.CA>
13719
13720         an amstatus command that give the current state of a run.
13721         -J-L Martineau <martineau@IRO.UMontreal.CA>
13722
13723         possibility to amflush multiple runs on one tape.
13724         possibility to select dump by datestamp in amrestore (-d datestamp).
13725         -J-L Martineau <martineau@IRO.UMontreal.CA>
13726
13727         amidxtrm keep index of all active tapes as listed in tapelist file.
13728         -J-L Martineau <martineau@IRO.UMontreal.CA>
13729
13730         the tapelist file keep every active tapes.
13731         "amadmin reuse" and "amadmin no-reuse" to mark tapes you want
13732         to keep for a long time.
13733         -J-L Martineau <martineau@IRO.UMontreal.CA>
13734
13735         amlabel will not overwrite an amanda tape.
13736         The -f flag allow to overwriting an amanda tape.
13737         -J-L Martineau <martineau@IRO.UMontreal.CA>
13738
13739         be consistent and use 1048576 as a dump size everyplace instead of
13740         100000 in some places (mostly cosmetic).  -JJ
13741
13742         negative numbers are now accepted in the configuration file
13743         parser.  -oliva
13744
13745         allow a total estimate time-out to be specified.  -oliva
13746         Suggested by Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
13747
13748         fix amtoc behavior in case of failed reads.
13749         -Niek Rijnbout <niek@knoware.nl>
13750
13751         index files are now stored in a directory tree ala curinfo instead
13752         of a flat namespace. -JJ
13753
13754         amrecover will now restore files using SAMBA.
13755         -Rob Riggs <rob@devilsthumb.com>
13756
13757         VXDUMP needs not be run as root, so it no longer enables
13758         rundump automatically.  -oliva
13759
13760         new `killpgrp' setuid-root program.  It is used to kill
13761         VDUMP, VXDUMP and XFSDUMP or with-rundump DUMP estimates in a
13762         safe manner.
13763         -Joerg Behrens <jbehren@umpa06.gwdg.de> & oliva
13764
13765         fixed amrmtape so that it will delete from tapelist only the
13766         entry that corresponds to the specified tape, not others that
13767         contain the tape name as a substring.
13768         -Nick Hibma <nick.hibma@jrc.it> & oliva
13769
13770         Added support for FreeBSD dump -h flag (honor nodump).
13771         -James E. Housley <housley@pr-comm.com>
13772
13773         Added support for ZFTAPE on Linux.
13774         -Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
13775
13776         Added support for printing tape labels.
13777         -Scott Mesches <mesches@allison.Colorado.EDU>
13778
13779         Do not let amrecover die because of SIGPIPE if the pager terminates
13780         early during a long listing.  Use the PAGER environment variable if
13781         available, else "more".  -JJ
13782
13783         Change log() calls to log_add() so it does not conflict with the math
13784         function of the same name.  Replace pname global variable with two
13785         functions to set/get.  Get rid of libamnolog.  -JJ
13786
13787         chg-chio was renamed to chg-scsi, and now it will support not
13788         only chio.h, but also tape changer interfaces available on
13789         HPUX, Solaris 2.5, IRIX and possibly others.  Currently, only
13790         chio and HPUX are implemented.
13791         -Eric Schnoebelen <eric@cirr.com>
13792
13793         Numerous bugs/errors were fixed in chg-chio/chg-scsi.  it now
13794         properly responds to -eject requests, among other things.
13795         -Eric Schnoebelen <eric@cirr.com>
13796
13797 Version 2.4.0p1
13798
13799         updated to libtool 1.2a.  -oliva
13800
13801         fix kerberos encryption to work.  -Chris Ross <cross@uu.net>
13802
13803         add --with-owner option to optionally not have things owned by
13804         the amanda user.  (meant to be in 2.4.0) -kovert
13805
13806         only call initgroups() if it is available.  -oliva
13807
13808         check whether GNUTAR_LISTED_INCREMENTAL_DIR is a directory.
13809         -oliva, reported by J.A. Gutierrez <spd@gtc1.cps.unizar.es>
13810
13811         amindexd no longer considers prefixes of hostnames as valid
13812         hostnames. -oliva
13813
13814         fix strappend2 so that it accepts a NULL first argument.
13815         -Rob Riggs <rob@devilsthumb.com>
13816
13817         pass kerberos encryption switch to client.
13818         -Fredrik Jönsson <fjo@nada.kth.se>
13819
13820         rename afree to amfree, to work around IRIX 6.4's afree.
13821         -oliva, reported Stephan P. Martin <smartin@schlund.de>
13822
13823         implement `strategy skip' just like `ignore'.
13824         -oliva,
13825         reported by Michael O'Shaughnessy <mikeo@emg.sms.siemens.com>
13826
13827         amcheck now checks whether COMPRESS_PATH is executable, which
13828         would prevent server-compression and indexing from working.
13829         -oliva, reported by Peter Schultze <peter@mbi.ucla.edu>
13830
13831         fixed dump estimate regular expression for DU 4.0.
13832         -Andreas Schmitz <schmitz@theorie.physik.uni-wuppertal.de>
13833
13834 Version 2.4.0
13835
13836         fixed memory corruption error in amtape.
13837         -oliva
13838
13839         fixed VXDUMP support.
13840         -Andrew Ivanov <ivanov@mics.msu.su> & oliva
13841
13842         typos fixed in chg-chs.
13843         -David Barr <dbarr@simplex.com>
13844
13845         chg-mtx now prints error message if tapedev or changerdev must
13846         be defined.
13847         -Adrian T. Filipi-Martin <atf3r@cs.virginia.edu>
13848
13849         fixed amflush problem, reported by Dietmar Goldbeck
13850         <dietmar@telemedia.de>  -oliva
13851
13852 Version 2.4.0-980319
13853
13854         chg-mtx should use changer-dev if specified.
13855         -Steve Khoo <steve@gordian.com>
13856
13857         flex-related backward-compatibility problem fixed.
13858         -Norman K Scherer <nsche@seros-48.hac.com>
13859
13860         ported to RISCOS 4BSD.  -Harlan Stenn <Harlan.Stenn@pfcs.com>
13861
13862         when amrecover starts up, it will warn you $CWD is not the root
13863         of the selected filesystem.  -oliva
13864
13865         removed all uses of #elif, because some C compilers won't
13866         handle it correctly. -Gunther Felkel <G.Felkel@edelmann.de>
13867
13868         fixed VDUMP-only (no DUMP defined) estimates.
13869         -Joern Behrens <jbehren@umpa05.gwdg.de>
13870
13871         ported to UnixWare.  -Jeff Moscow <jeff@rtr.com>
13872
13873         improved vxdump support so that rundump will be used for vxfs
13874         filesystems only, and it will be enabled automatically.  -oliva
13875
13876         various portability problems fixed.
13877
13878         taper will now log reason for tape error to log.<DATE> file,
13879         in addition to amdump.<n>.
13880         -Liudvikas Bukys <bukys@cs.rochester.edu>
13881
13882         amflush now correctly updates the info database.  -oliva
13883         reported by Liudvikas Bukys <bukys@cs.rochester.edu>
13884
13885         sendsize now wait()s for tar and samba child processes.  -oliva
13886         reported by Brian Morris <brian@mvhs.fuhsd.org>
13887
13888         ensure that `amadmin find' reports multiple backups performed on
13889         the same day in the correct sequence.
13890         -Liudvikas Bukys <bukys@cs.rochester.edu>
13891
13892         if backup server has multiple IP addresses, security code
13893         might reject it.  -Gunnar Gunnarsson <gunnar@ki.ericsson.se>
13894
13895         vdump would not work.  -oliva
13896
13897         kerberos support was broken.  -mike
13898
13899 Version 2.4.0-980222
13900
13901         retry tape open on AIX if it fails with EAGAIN errno.
13902         -Francois Morris <Francois.Morris@lmcp.jussieu.fr>
13903
13904         fix amrmtape so that it behaves well when files to amflush
13905         remain.  Reported by Dietmar Goldbeck <dietmar@telemedia.de>
13906
13907         retry tape rewind on FreeBSD.  -Bob Willcox <bob@prm.com>
13908
13909         read all output from amrestore otherwise, instead of the
13910         beginning of the next tape section, it would read garbage.
13911         -Terje Malmedal <tm@odin.funcom.com> & oliva
13912
13913         formatting error in amoverview fixed.
13914         -Terje Malmedal <tm@odin.funcom.com>
13915
13916 Version 2.4.0b6p4
13917
13918         use vdump to dump advfs filesystems only.  add support for vdump
13919         indexes.
13920         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk> & oliva
13921
13922         change index generation commands so that they are less prone
13923         to be fooled by blanks or strange characters in filenames.
13924         -oliva
13925
13926         check whether exclude-list file exists before calling gnutar.
13927         If it does not, log a message to debugging file and discard it.
13928         selfcheck should check for that too, and print a warning message,
13929         but this is left for a future version.  -oliva
13930
13931         fix sendbackup-gnutar crashing problem.  -oliva
13932
13933         ensure that, in case of tape failure when dumping to tape, no
13934         incremental relative to the failed backup is performed.
13935         -oliva & Liudvikas Bukys <bukys@cs.rochester.edu>
13936
13937         Fix buffer use and write() error handling in the index pipeline.
13938         -Dietmar Goldbeck <dietmar@telemedia.de>
13939         & Lars Fenneberg <lf@elemental.net>
13940
13941         new index generation commands.  -oliva
13942
13943 Version 2.4.0b6p3
13944
13945         accept curses and ncurses in addition to termcap for readline
13946         support, just as readline itself does.  -oliva
13947
13948         fix NO-ROOM handling when Kerberos encryption is enabled.
13949         -oliva & Eric Siegerman <erics@now.com>
13950
13951         patch file for automake 1.2d provided. -oliva
13952
13953         sendbackup.debug now contains the argument list of child
13954         processes. -oliva
13955
13956         wait() for child processes, such as server compressor, before
13957         accepting other commands.
13958         -Liudvikas Bukys <bukys@cs.rochester.edu>
13959
13960         amrecover will print an error message if it is not run by root.
13961         It will not crash if you `pwd' before selecting a disk.  -oliva
13962
13963         updated to libtool 1.0i. -oliva
13964
13965         fixed tape block size of vxdump on HPUX 10.20.
13966         -Andrew Ivanov <ivanov@mics.msu.su>
13967
13968         Use "a" mode instead of "w" for the fdopen of the debug file.
13969         -David Lamkin <drl@net-tel.co.uk>
13970
13971         allow multiple concurrent gnutar backups, by fixing amandates
13972         locking mechanism.
13973         -Liudvikas Bukys <bukys@cs.rochester.edu>
13974
13975         amdump should check for a hold file, as says the man-page.
13976         -oliva
13977
13978         fix automatic enabling of USE_RUNDUMP for systems that require
13979         this.  xfsdump support no longer requires USE_RUNDUMP to be
13980         defined, rundump will be enabled and used for xfs filesystems
13981         even if USE_RUNDUMP is not defined, unless XFSDUMP is not defined.
13982         This seems to have completely solved the xfsdump problems.
13983         -oliva
13984
13985         when USE_RUNDUMP is enabled, instead of checking for read or write
13986         access in selfcheck, just test for the existence of disk devices.
13987         -oliva
13988
13989         fixed code that computed the dump size when incomplete
13990         writes occurred in dumper.  -Eric Siegerman <erics@now.com>
13991
13992         amplot no longer crashes if there's no holding disk. -oliva
13993
13994 Version 2.4.0b6p2
13995
13996         fix xfsdump index generation command.
13997         -Robert Tarrall <tarrall@bamboo.colorado.edu>
13998
13999         tape device wouldn't rewind if opened O_WRONLY.
14000         -Palle Girgensohn <girgen@partitur.se> & oliva
14001
14002         use setpgid instead of setpgrp if available
14003         -Mark Woodford <woodford@uniprise.com> & oliva
14004
14005         chg-mtx will check whether slot 6 is a cleaning tape or not.
14006         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
14007
14008         amrmtape updated to text database.  -oliva
14009
14010         incorrect NO-ROOM error when dumping directly to tape fixed.
14011         -oliva
14012
14013         --with-user and --with-group become are now required.  -oliva
14014
14015         patch-system script much more configurable.  -oliva
14016
14017         amindexd must get an exact match for diskname.
14018         -Richard Kail <e8903122@student.tuwien.ac.at> & oliva 
14019
14020         fix serial number message in amflush
14021         -Liudvikas Bukys <bukys@cs.rochester.edu>
14022
14023         removed backslashes from inside macro calls.
14024         un-indented # directives.
14025         -Gregory Neil Shapiro <gshapiro@WPI.EDU>
14026
14027         bsd-security is now enabled by default.  -oliva
14028
14029         fixed estimate command for XFSDUMP.
14030         -Mark Radleigh <radleigh@image.ucr.edu>
14031         & Jeff Moskow <jeff@rtr.com>
14032
14033 Version 2.4.0b6p1
14034
14035         documented etimeout configuration option.  -oliva&jrj
14036
14037         prevent a few crashes in dumper and reporter.  -jrj
14038
14039         reporter would report the same host and disk for RESULTS MISSING.
14040         -martineau
14041
14042         fix a few file-locking configure bugs.  -oliva
14043
14044         chg-multi updates and bugfixes.
14045         -Liudvikas Bukys <bukys@cs.rochester.edu>
14046
14047 Version 2.4.0b6
14048
14049         amindexd bugfix -Jos Alsters <Jos.Alsters@sci.kun.nl>
14050
14051         New --disable-libtool configure option, for those who really don't
14052         want libraries to be installed.  Shared libraries won't be
14053         built, of course.  -oliva
14054
14055         samba-related bugfixes.
14056         -Klaus Thiele <kth@becker-software.com>
14057
14058         xfsdump, DNS and amidxtaped bugfixes. -martineau
14059
14060         exclude-list support was broken, the filename was not copied
14061         to the gnutar argument list.
14062         -Stefan Bohm <Stefan.Bohm@rp-online.de>
14063
14064         chg-chio still thought it was seagate-changer, and contained a
14065         few bugs.  -Tim Tsai <tim@futuresouth.com>
14066
14067         New file docs/RESTORE, by Daniel Moore <dmoore@jeffco.k12.co.us>
14068
14069 Version 2.4.0b5
14070
14071         Make sure amverify waits for the tape device to be ready before it
14072         starts reading each section. -oliva
14073
14074         Fix amrecover so that it accepts filenames with blanks.
14075         -J. Shirk <jshirt@ksu.edu> & oliva
14076
14077         Add a TIMEOUT config file parameter to replace the hard coded value
14078         in planner.  -Daniel David Benson <bensond@ucdavis.edu>
14079
14080         Change amrecover/amindexd/amidxtaped to require a SECURITY
14081         exchange if --with-bsd-security is enabled.  It is done on a
14082         reserved port, which means amrecover must be run as root and that
14083         amindexd/amidxtaped need an entry for the incoming amrecover in
14084         either .rhosts or .amandahosts (Kerberos is not yet supported).  --JJ
14085
14086         Make our internal TEXTDB the default database style for the infofile.
14087         If you wish to keep using a dbm style database use the configure
14088         option "--with-db={db,dbm,gdbm,ndbm}".
14089         -scott
14090
14091         Sanitise the disk name in the TEXTDB code.
14092         **NOTE** if your infofile database uses TEXTDB (which has only been
14093                  available since Amanda-2.4.0b1) and you have '/'s in the
14094                  first field in disklist you will need to 'amadmin export'
14095                  the data using the old version of Amanda, 'mv' the old
14096                  database out of the way and 'amadmin import' it back again
14097                  using the new version.  When you are happy with the new
14098                  version you may delete the old database.
14099         -scott
14100
14101         Get rid of DEV_ROOT/DEV_RROOT and figure out the raw name on the
14102         fly by trying a leading 'r' before each path element one at a time
14103         until we find a character device.  This should handle all the current
14104         cases plus things like Solaris DiskSuite that have /dev/md/rdsk/xxx
14105         names.  -JJ
14106
14107         Change kill logic in sendsize to try TERM first, then KILL if that
14108         does not get dump's attention.  This fixes a problem on AIX 4.x
14109         where dump was always getting a KILL and leaving orphaned message
14110         queues, which would eventually run the system out of resources.  -JJ
14111
14112         Extensive buffer management, bug and defensive coding overhaul
14113         including:
14114             * Use proper fgets/fread/read buffer size.
14115             * Wrote agets and areads to get a line without buffer overflow
14116               and changed most gets/fgets and some read calls to use it.
14117             * Replaced all *scanf("...%s...") with explicit pointer work.
14118             * Replaced most fixed size buffers with dynamic ones.  This has
14119               no doubt introduced some memory leaks.
14120             * Replaced most sprintf calls with vstralloc (new routine).
14121             * Added overflow checks to some remaining explicit buffer
14122               management.
14123             * Made almost all read() and write() calls into loops to handle
14124               short and broken up transfers.
14125             * Fixed potentially uninitialized fstype field.
14126             * Added more sanity checks when parsing various things, including
14127               converting some assert() calls to real code.
14128             * The pattern amtrmidx used to find old index files to delete
14129               thought the date field was YYYY-MM-DD, but it is YYYYMMDD,
14130               so no files were being deleted.
14131             * Limited the number of directories listed by amflush to 26 to
14132               avoid funny characters in the user prompt.
14133             * Changed some of the amrecover routines to soak up the rest of
14134               the continuation lines after an error.
14135             * If a dumper dies, driver still tries to send a QUIT command
14136               which fails because the file descriptor has been closed.
14137             * Wrote afree macro that calls free and then sets the pointer
14138               to NULL.  Changed most free calls to afree.
14139             * Wrote aclose/afclose/apclose macros to do the associated close
14140               and then set the argument to something invalid (-1 or NULL).
14141             * Check the file descriptor before calling FD_ISSET in dumper.
14142               Otherwise it goes to -1 on EOF and FD_* doesn't like that.
14143             * Call aclose() after FD_CLR (so the descriptor is not -1).
14144         Odds and ends:
14145             * Added some TEXTDB support code to the infofile test program.
14146             * Set it up so -DPROTO_DEBUG could come from the compiler command
14147               line instead of having to modify the source.
14148             * Added -t command line flag code to sendbackup.c to support some
14149               limited debugging.
14150             * Added a test to amcheck to see if the log file is writable
14151               (if it already exists).  During debugging, I keep leaving one
14152               around owned by root :-).
14153             * Changed upper limit on close loops from 255 to FD_SETSIZE.
14154               This probably needs some more study.
14155         -JJ
14156
14157         If krb4 auth was compiled in but not enabled, clients would hang
14158         forever.  -Aidan Cully <aidan@panix.com>
14159
14160         Make sure SAMBA will not clear archive bits when performing an
14161         incremental backup, so any incremental will be a level 1.
14162         -martineau
14163
14164         Add a LOGDIR option to amanda.conf and use it to replace the
14165         --with-logdir option to configure (this was only used for the
14166         amdump files) and the logfile option in amanda.conf.  Log
14167         files are now LOGDIR/log and amdump files are LOGDIR/amdump.
14168         Note: if there is a LOGFILE option in amanda.conf it has its
14169         filename removed and is used as the LOGDIR (eg, if you have
14170         "logfile /usr/adm/amanda/log" in amanda.conf it is translated to
14171         "logdir /usr/adm/amanda" instead).  This should not cause a
14172         problem for most sites.
14173         -scott
14174
14175         Remove --with-dbdir option from configure.  This was only used
14176         to setup things for the man pages and example files.  Oh.. and
14177         amrmtape.  Fix this as well.
14178         -scott
14179
14180         Remove --with-indexdir option from configure.  This is obtained
14181         from amanda.conf at run time.  Also fix things so that it *is*
14182         obtained from amanda.conf in all cases.
14183         -scott
14184
14185         This is no longer tested on configure.in, since it is
14186         expressly forbidden to include kernel headers under glibc,
14187         according to Matthias Urlichs <smurf@noris.de>.  However, Eric
14188         Doutreleau <ed@cti.ecp.fr> said he needed to include this
14189         header file in order to build amanda on
14190         sparc-unknown-linux-gnu.  -oliva
14191
14192         It is now possible to specify a username to be used to backup
14193         up with samba.
14194         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
14195
14196         Make sure dumper replies with ABORT_FINISHED when a PORT-DUMP
14197         is aborted because of tape error.
14198         -Michael C. Povel <Michael.Povel@hub.de>
14199
14200         Amcheck checks only for the needed features.
14201         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
14202
14203         Performance and memory-usage improvements to amrecover.
14204         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
14205
14206         Use extended regular expressions.
14207         -Noel Hunt <noel@jpmorgan.com>
14208
14209         Fixed regular expressions for samba support.
14210         -Brian Fernald <fernald@nsi.edu>
14211
14212         Fixed a few bugs that caused arithmetic exceptions in planner.
14213         -Bob Willcox <bob@luke.pmr.com>, Evan Champion
14214         <evanc@synapse.net>, scott and oliva
14215
14216         amrecover should now be able to handle GNUtar restores.
14217         -Jean-Louis Martineau <martinea@iro.umontreal.ca>, plus
14218         incremental (-G) patch by Lars Fenneberg <lf@elemental.net>
14219
14220         Ported to SINIX (Reliant Unix V5.43).
14221         -Michael Schmitz <mschmitz@iname.com>
14222
14223         Configure now looks for large file support and will use it under
14224         Solaris 2.6 and above.
14225         -Blair Zajac <blair@gps.caltech.edu>
14226
14227         Compatibility problems fixed for:
14228                 SCO OpenServer 5.0.2: Paul Gampe <paulg@twics.com>
14229
14230 Version 2.4.0b4
14231
14232         New changerfile and changerdev configuration keywords, that
14233         allow changer scripts to be configured in the main amanda
14234         configuration file.  Each changer script has been adapted, so
14235         that it uses those flags whenever possible.  Also,
14236         documentation about built-in scripts has been added to
14237         docs/TAPE.CHANGERS.  -oliva & Eric Schnoebelen
14238         <eric@egsner.cirr.com>
14239
14240         --with-debugging now accepts a directory name, where debugging
14241         files should be stored.  -John R. Jackson <jrj@cc.purdue.edu>
14242
14243         Compatibility problems fixed for:
14244                 NextStep 3.3: Fabrice GAILLARD <gaillard@ina.fr>
14245                 SCO OpenServer V5: Christopher B. Olsen <colsen@compus.com>
14246                 AIX: Georg Rehfeld <georg@wmd.de>
14247
14248         Planner would core dump if it had to delay dumps.  -Georg
14249         Rehfeld <georg@wmd.de>
14250
14251         Added patch for samba to support very long filenames.  -Todd
14252         Pfaff <todd@edge.cis.mcmaster.ca>
14253
14254         Added VXDUMP support to estimate program.  -oliva & John
14255         R. Jackson <jrj@cc.purdue.edu>
14256
14257         Fixed amflush so that it cd's to the configuration directory
14258         before invoking reporter.  -oliva
14259
14260         driver no longer opens the infofile, so a deadlock is
14261         prevented.  -oliva & John R. Jackson <jrj@cc.purdue.edu>
14262
14263         Fixed typo in sendbackup-dump that would prevent compilation
14264         if either xfsdump or vxdump were enabled.  -oliva
14265
14266         Debugging messages produced by sendbackup are no longer
14267         included in the dump stream.  -oliva
14268
14269         amrestore should wait for the child process to die before
14270         re-opening the tape device.  -Dietmar Braun
14271         <dietmar@tin-lizzy.hig>
14272
14273 Version 2.4.0b3 
14274
14275         fixed race condition in debug file open operation.  -oliva and
14276         Thomas Schmeidl
14277
14278         exclude-list and exclude-file are correctly handled by
14279         sendsize.  -oliva and Johann Klasek <jk@auto.tuwien.ac.at>
14280
14281         fix some kerberos4 problems; no longer require low ports for
14282         kerberized connections; now use amanda@REALM instead of
14283         amanda.amanda@REALM in .klogin's.  -kovert
14284
14285         amrecover no longer depends on GNU flex library.  -oliva
14286
14287         Ensure that malloc(0) is not called.  -Wolfram Schmidt
14288         <Wolfram.Schmidt@iao.fhg.de>
14289
14290         Compression is now performed where specified, and server
14291         compress best specifications are obeyed. -oliva
14292
14293         genversion now correctly recognizes the selected locking scheme.
14294         -Thomas Schmeidl <schmeidl@nwp.kwu.siemens.de>
14295
14296 Version 2.4.0b2
14297
14298         Several bugfixes by John R. Jackson <jrj@cc.purdue.edu>
14299
14300         AIX's restore support added to amrecover.  -David B. Anderson
14301         <dbanders@mail.physics.utah.edu>
14302
14303         Dump process would not be killed unless it supported the -E
14304         flag (flipped #ifdef): fixed.  -Steve Bower <sbower@raytheon.com>
14305
14306         --with-testing now supports a trailing argument, that
14307         specifies the a string to be appended to service names.  -oliva
14308
14309         Recent versions of Samba require additional arguments so that
14310         estimates and total sizes are logged to stdout, not to syslog.
14311         -Ernie Oporto <ernie_oporto@MENTORG.COM> & Norbert Holzknecht
14312         <Holzknecht@fs31.vdeh-bfi.de>
14313
14314 Version 2.4.0b1
14315
14316         Improved planner backup-delaying mechanism.  -scott
14317
14318         Concurrent estimates are now supported.  -oliva
14319
14320         Shared library support included with GNU libtool.  -oliva
14321
14322         New hard-link-based locking mechanism for operating systems
14323         that do not support standard locking system calls.  -scott
14324
14325         New configuration file format, simpler and easier to
14326         extend.  -scott
14327
14328         New curinfo database format that uses only text files.  The
14329         old dbm format is used by default, though.  -scott
14330
14331         DGUX support. -Brian Harvey <bharvey@raven.phs.com>
14332
14333         Tentative HPUX vxdump support.  -oliva
14334
14335         Integrated amgetidx into dumper/sendbackup protocol.  This
14336         ***breaks backward compatibility***!  -oliva
14337
14338         Have sendbackup-dump and sendbackup-gnutar list the actual
14339         program that should be used to restore a file from a backup
14340         instead of just listing restore or gtar. -blair&oliva
14341
14342         Have configure check for the initgroups() declaration in
14343         unistd.h in addition to grp.h and sys/types.h, which is where
14344         some OSes have the declaration. -blair
14345
14346         SAMBA backups wouldn't succeed if GNUTAR listed incrementals
14347         were enabled.  SAMBA password file can now specify workgroup
14348         and may contain comments.  -oliva
14349
14350         Fixed xfsdump support. -oliva
14351
14352         Fixed srvcompress option. -oliva
14353
14354         Fixed exclude/exclude-list support. -oliva
14355
14356         Change umask to 066 before creating index file in /tmp. -oliva
14357
14358         Fixed autoconf for gdbm on linux. -oliva
14359
14360         configure now seeks out a few possible locations for
14361         kerberos4 includes and tries to find the correct path if
14362         the kerberos bits have been installed.  It's possible for
14363         someone to just specify the root of a kerberos tree for
14364         where the bits live, as well. -kovert
14365
14366 Version 2.3.0.4
14367
14368         Have bsd_security_ok() in amandad return 1 when BSD security is
14369         not turned on.  Patch from Michael C. Grant
14370         <mcgrant@rascals.Stanford.EDU>.
14371
14372         Add a configure option, --with-db, which lets the user specify
14373         the database library to use.  The available codes to look for
14374         are db,dbm,gdbm,ndbm.  The new configure code goes to a lot
14375         more length to find pairs of header files and libraries.  If a
14376         header file exists and the library does not, but dbm_open() is
14377         found by linking against -lc, then that header file is used.
14378         Patch from Blair Zajac <blair@gps.caltech.edu>.
14379
14380         Fixed bug at line 158 where selfcheck was testing that the
14381         result returned by open() was nonzero.  The correct thing to do
14382         is check for non-negative values returned by open().  Changed
14383         the "ERROR" in line 169 to "OK" to prevent selfcheck from
14384         flagging the non-existence of /etc/amandapass as an error.
14385         Using "OK" in this line flags this condition as an informative
14386         statement rather than an error - which is to say this will be
14387         reported along with other errors but it isn't enough in itself
14388         to generate an error report.  The reason that I think this is
14389         the right fix is because although every Amanda client is
14390         capable of backing up PCs using smbclient it isn't the case
14391         that we will back up PCs with every Amanda client.  This also
14392         implies that we don't want to have /etc/amandapass files on all
14393         these machines either.  If an Amanda client does have a samba
14394         "//host/share" entry in its disklist file then selfcheck will
14395         flag the non-existence of the /etc/amandapass file on line 105
14396         when it attempts to check that partition, so I believe that
14397         this is a safe fix.  Patch from Michael Brantley
14398         <Michael-Brantley@deshaw.com>.
14399
14400         Have all calls to gethostname() leave the result in character
14401         arrays of length 1025.  This will make sure that gethostname
14402         behaves correctly.  Patch from  blair Zajac
14403         <blair@gps.caltech.edu>.
14404
14405         Have amrecover.c include history.h or readline/history.h if
14406         configure finds it.  Patch from blair Zajac
14407         <blair@gps.caltech.edu>.
14408
14409         Have Amanda use cat if gzip and compress cannot be found.  In
14410         this case, do not #define COMPRESS_FAST_OPT, COMPRESS_BEST_OPT,
14411         or UNCOMPRESS_OPT as "" since cat will look look for a file by
14412         the name of "".  Place #ifdef's around code that uses any of
14413         the _OPT defines.  Patch from Blair Zajac
14414         <blair@gps.caltech.edu>.
14415
14416         Rewrite amgetidx to use amandad instead of rsh/rcp.  amgetidx
14417         now only gets the index files from a given day.  It now takes
14418         two optionally arguments <on day> or <ago days>.  <on day> lets
14419         the user specify the day in one of the forms YYYYMMDD MMDD DD
14420         YYYY-MM-DD --MM-DD ---DD.  <ago days> gets the files from days
14421         days ago.  Have configure look for an appropriate directory to
14422         use for the temporary files on the clients.  Use /var/tmp, then
14423         /usr/tmp, and if neither of those exist, then use /tmp.  Have
14424         selfcheck check if the index holding directory has enough space
14425         in it.  Add a new program called sendindex which sends the
14426         index files.  Add the file docs/INDEXING which describes the
14427         index code.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
14428
14429         Have configure set up mt to use either the -f or the -t option
14430         depending upon the operating system.  Patch from Blair Zajac
14431         <blair@gps.caltech.edu>.
14432
14433         Include the amanda_tapetypes.txt file as docs/TAPETYPES.  File
14434         composed by Chris Stacey <chris@snrc.uow.edu.au>.
14435
14436         Allow certain dumptypes to be kicked off at specific times.
14437         Add a new, optional, parameter to the dumptype description in
14438         the config file.  The parameter is called "starttime" and takes
14439         one argument which is a time of day (local timezone) formated
14440         as either hhmm or hmm (no `.'s, no `:'s, just an integer).
14441                 define dumptype comp-user-2am {
14442                         comment "Non-root partitions on fast machines"
14443                         options compress-fast
14444                         priority medium
14445                         starttime 0200
14446                 }
14447         Any partitions listed in disklist with this dumptype will be
14448         fired off no earlier than 2am.  If 2am today is less than 43200
14449         seconds past (12 hours ago) it will assume you meant 2am today
14450         and fire the dumps off right away.  But if 2am today is more
14451         than 12 hours in the past, it will wait till 2am tomorrow.
14452         Patch from Brad Huntting <huntting@misc.glarp.com>.
14453
14454         Totally rewrite the socket buffering code for dumper.
14455         Eliminate SO_SNDTIMEO and SO_RCVTIMEO setsockopt calls.  Remove
14456         the check for HAVE_SO_SNDTIMEO from configure.  Add a new
14457         option to configure named --enable-buffered-dump to enable this
14458         code.  Patch from Brad Huntting <huntting@misc.glarp.com>.
14459
14460         Have amflush call setsid() to detach amflush from the
14461         controlling terminal.  Patch from Ken Laprade
14462         <klaprade@harris.com>.
14463
14464         Have configure correctly work on systems where dbm_open is in
14465         libc.  Patch from Farzad Farid <farzy@sgip.fr>.
14466
14467         Patches to amrmtape which remove C style comments and let the
14468         script remove a tape if there is only one tape in the tapelist
14469         file.  Patch from Andrew A. Ivanov <IVANOV@mics.msu.su>.
14470
14471         Sprintf formatting error in amgetidx fixed.  Patch from Yossi
14472         Gottlieb <yogo@xpert.com>.
14473
14474         I'm using a Sony SDT/STL-7000 4mm DAT changer.  I could not
14475         find any method of directly controlling the device, except for
14476         simply using the 'offline' mt command for advancing to the next
14477         tape.  Using this method, however, I could not go beyond the
14478         last cassette (that is, to roll back to the first one).  This
14479         means the device is currently being used as a simple gravity
14480         changer, only able to change forward.  The chg-generic.conf
14481         should list the default tape device for all slots, disable
14482         'needeject', enable 'gravity' and enable the new option named
14483         'multieject'.  Patch from Yossi Gottlieb <yogo@xpert.com>.
14484
14485         Update the example chg-generic.conf file to include comments
14486         that describe how to use the multieject feature of the script.
14487         Patch from Yossi Gottlieb <yogo@xpert.com>.
14488
14489         Protocol seems to loop when a A_TIMEOUT occurs because
14490         p->reqtries was not being decremented.  Problem noted by Neal
14491         Becker <neal@ctd.comsat.com>.
14492
14493         About half the calls to gethostname() in Amanda fail to
14494         null-terminate properly.  This patch makes them all
14495         consistent.  In addition it updates sendbackup-dump and
14496         sendbackup-gnutar so they handle USE_FQDN is a way consistent
14497         with the amindex stuff.  In particular when USE_FQDN is set,
14498         the dump clients will not truncate their hostname before
14499         putting it in the dump headers.  My patches to amflush are
14500         already in the Amanda betas so amflush should be able to match
14501         up both FQDN and non-FQDN clients against FQDN and non-FQDN
14502         disklist files.  I also fixed an error message that was
14503         attributed to gethostname when it actually came from
14504         getpeername.  Patches from James Mathiesen
14505         <james@nyc.deshaw.com>.
14506
14507         I have run into the problem, on a Linux system, where the first
14508         time I run configure it generates valid Makefiles and Amanda
14509         compiles without problem.  If I run configure again, or I alter
14510         a Makefile.in or something which causes autoconf to be called,
14511         the resulting Makefiles are no good - the programs in
14512         server-src don't finish linking because there is no dbm
14513         library.  That is, the first time through configure -lgdbm is
14514         added to LIBS but the second, and any subsequent times, it is
14515         not.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
14516
14517         I've just found a bug that has prevented Amanda from running on
14518         my site for almost one week.  Just after a dumper replied that
14519         it timed-out, the driver would send it another dump request.
14520         Then the driver would log to amdump an event of receiving a
14521         message from the dumper, but that message would be empty, the
14522         holding file for the requested filesystem would not exist, and
14523         driver would quit.  It turned out that the problem was that
14524         dumper started to close its sockets (datafd, mesgfd and outfd)
14525         since release 2.3.0.4b3.  outfd is initialized before invoking
14526         startup_dump, but it is sendbackup_response, intended to be
14527         invoked by the amandad protocol driver, that opens sockets and
14528         initializes datafd and mesgfd.  If sendbackup_response is never
14529         run (because the amandad request times out), datafd and mesgfd
14530         will not be initialized, so they may contain already closed
14531         (and possibly already reopened) file descriptor numbers or
14532         still be uninitialized, containing any garbage, but usually 0
14533         --- but 0 is stdin, used for reading commands from the driver,
14534         it should not be closed!  I've solved the problem by
14535         initializing them to -1 in startup_dump.  Patch from Alexandre
14536         Oliva <oliva@dcc.unicamp.br>.
14537
14538         Include declarations for select(), bind(), connect(), fread(),
14539         fwrite(), getopt(), getpeername(), getsockname(), getsockopt(),
14540         initgroups(), listen(), lstat(), mktemp(), mktime(), puts(),
14541         recvfrom(), select(), sendto(), setpgrp(), setsockopt(),
14542         shmat(), shmctl(), shmdt(), shmget(), socketpair(), sscanf(),
14543         strftime(), strncasecmp(), system() if the system does not
14544         declare these in any header files.  Patch from Blair Zajac
14545         <blair@gps.caltech.edu>.
14546
14547         Have configure correctly substitute for DB_DIR and LOG_DIR in
14548         example/amanda.conf when --prefix was not used.  Problem noted
14549         by Philippe Charnier <charnier@xp11.frmug.org>.
14550
14551         Include seagate-changer.c from Larry D. Pyeatt
14552         <pyeatt@cs.colostate.edu>.  This program was written to control
14553         the Seagate/Conner/Archive autoloading DAT drive.  This drive
14554         normally has 4 tape capacity but can be expanded to 12 tapes
14555         with an optional tape cartridge.  This program may also work on
14556         other drives.  This program works for me under Linux with Gerd
14557         Knorr's <kraxel@cs.tu-berlin.de> SCSI media changer driver
14558         installed as a kernel module.  The kernel module is available
14559         at
14560         http://sunsite.unc.edu/pub/Linux/kernel/patches/scsi/scsi-changer*
14561         Since the Linux media changer is based on NetBSD, this program
14562         should also work for NetBSD, although I have not tried it.  It
14563         may be necessary to change the IOCTL calls to work on other
14564         OS's.
14565
14566         Add a new configure option, --with-group, which tells Amanda
14567         the group to install all files as.  Patch from Alexandre Oliva
14568         <oliva@dcc.unicamp.br>.
14569
14570         If --with-bsd-security was not set, then dumper would not find
14571         the amanda/udp port to use to connect to clients.  Patch from
14572         Alan McIvor <alan@auck.irl.cri.nz>.
14573
14574         The order of dump programs to search for (ufsdump, vdump, dump,
14575         backup) didn't work on AIX systems, where backup should be used
14576         but a program named dump exists on the system.  Patch by Blair
14577         Zajac <blair@gps.caltech.edu>.
14578
14579         The configure --with-mmap was not working properly since
14580         configure was using the wrong variable to see if the system had
14581         a working mmap().  Problem noted by Keith Mitchell
14582         <kmitch@weenix.guru.org>.
14583
14584 Version 2.3.0.4b3
14585
14586         Save the results of getchar() into int's instead of char's in
14587         amidxtaped.c.  Patch by Blair Zajac <blair@gps.caltech.edu>.
14588
14589         Fix sendbackup-gnutar so that it can be compiled with a K&R
14590         compiler.  Patch by Blair Zajac <blair@gps.caltech.edu>.
14591
14592         Since I installed Amanda 2.3.0.4b3, I noticed some annoying
14593         messages in amdump:
14594                 dumper: pid 8696 setsockopt(SO_SNDTIMEO): Invalid argument
14595         This is because Solaris 2.5 does declare SO_SNDTIMEO in
14596         sys/socket.h, but fails to setsockopt with the given
14597         arguments.  Unfortunately, it is not documented, so I could not
14598         find out the correct way to do this, so I just added a test in
14599         configure to check whether SO_SNDTIMEO works as expected or
14600         not.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
14601
14602         Include amplot-2.2.6 written by Olafur Gudmundsson
14603         <ogud@tis.com> into Amanda.  Have amplot be configured using
14604         configure instead of amplot.conf.  It will be installed if
14605         gnuplot and the version of awk configure finds can handle
14606         variable assignment from the command line.  I also changed some
14607         of the command line options so that the amdump files will not
14608         be compressed unless amplot is told to do so on the command
14609         line.  It also takes a new command line option, -t, which lets
14610         the user set the time of the right side of the plot.  Work done
14611         by Blair Zajac <blair@gps.caltech.edu>.
14612
14613         Made rth-changer check all system calls for valid returns.
14614         Patch by Blair Zajac <blair@gps.caltech.edu>.
14615
14616         amrestore.c and sendbackup-common.c would do an ifdef on
14617         HAVE_GZIP, which was no longer being defined if Amanda was
14618         using gzip.  Now, define HAVE_GZIP if gzip is being used.
14619         Patch by Blair Zajac <blair@gps.caltech.edu>.
14620
14621         Include a script, amoverview, that outputs an overview of all
14622         of the backups done on all of the disks.  Script written by
14623         Dave Disser <disser@sdd.hp.com>.
14624
14625         The prototype for amname_to_fstype() is missing in
14626         createindex-dump.c when xfsdump is available.  Patch from Ken
14627         Laprade <klaprade@harris.com>.
14628
14629         Apparently SGI provides a dummy libsun.a that does not really
14630         have anything in it.  I guess this tricks configure into adding
14631         it to the Makefile.  Have configure not check for libsun.a on
14632         SGI systems.  Patch from Ken Laprade <klaprade@harris.com>.
14633
14634         The global variable overwrite in amcheck.c apparently is seen
14635         as a potential conflict with the overwrite() curses function
14636         which is apparently in SGI's libtermcap.a.  Declaring the
14637         variable static eliminates the warning.  Patch from Ken Laprade
14638         <klaprade@harris.com>.
14639
14640         Add a new configure option, --with-fqdn, which allows Amanda to
14641         back up systems in different domains.  This requires that the
14642         disklist file have the fully qualified domain names (FQDNs)
14643         listed.  Patch from Joe Ammond <Joe.Ammond@ee.gatech.edu>.
14644
14645         Include rundump, a setuid program that runs dump as root.  This
14646         is used under OSF1 systems.  Patch from Alexandre Oliva
14647         <oliva@dcc.unicamp.br>.
14648
14649         Install setuid files executable only by the owner and group of
14650         the files.  This stops other users from running these programs,
14651         making security tighter.  Patch from Alexandre Oliva
14652         <oliva@dcc.unicamp.br>.
14653
14654         On FreeBSD 3.0, amanda.h needs to include <sys/types.h> before
14655         <dirent.h>.  Problem noted by Keith Mitchell
14656         <kmitch@weenix.guru.org>.
14657
14658         Amanda had a bug regarding the recent addition of support for
14659         excluding files in GNUTAR.  planner and sendsize did not
14660         understand each other about empty exclusion lists, so there
14661         were failures using gnutar, as dump does not support excludes.
14662         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
14663
14664         Fixed a problem in configure where DUMP was being set to
14665         /no/restore/available when no restore program could be found
14666         instead of setting RESTORE to this.  Patch from Alexandre Oliva
14667         <oliva@dcc.unicamp.br>.
14668
14669         Have no-changer and hp-changer check for the existence of the
14670         logging directory before trying to use it.  Patch by Blair
14671         Zajac <blair@gps.caltech.edu>.
14672
14673         Patches to have nicer looking Samba support code.  Patch from
14674         Michael Zucchi <cismpz@cis.unisa.edu.au>.
14675
14676         Got Amanda to compile fine on a m88k-motorola-sysv4 system.
14677         Patches from Blair Zajac <blair@gps.caltech.edu>.
14678
14679         In amandad.c, pk_t dupmsg was conflicting with dupmsg in
14680         /usr/include/sys/stream.h on an m88k-motorola-sysv4 system.
14681         Rename dupmsg to dup_msg.  To keep things consistent, rename
14682         inmsg to in_msg and outmsg to out_msg.  Patch by Blair Zajac
14683         <blair@gps.caltech.edu>.
14684
14685         Check for the dbm_open declaration in any header file that may
14686         contain it.  If it doesn't exist, then declare it and all of
14687         the other dbm_ functions.  Check if struct datum is declared in
14688         any header files and if it isn't then declare it.  Patch from
14689         Blair Zajac <blair@gps.caltech.edu>.
14690
14691         Have runtar make sure that it is being invoked by the
14692         CLIENT_LOGIN user, since it is a suid executable.  Patch from
14693         Alexandre Oliva <oliva@dcc.unicamp.br>.
14694
14695         Have selfcheck check for /etc/vdumpdates if vdump is being
14696         used.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
14697
14698         If we're on an Ultrix system, then define STATFS_ULTRIX.  Patch
14699         by Blair Zajac <blair@gps.caltech.edu>.
14700
14701         amadmin export produces a full version number (2.3.0.4b2, for
14702         instance), while amadmin import expects three integers
14703         separated by dots, so it fails to import an exported file by
14704         itself.  Patch by Alexandre Oliva <oliva@dcc.unicamp.br>.
14705
14706         Sendsize.c would loop forever if debugging was not turned on.
14707         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
14708
14709         Define STATFS_OSF1 if we are on a *-dec-osf-* system.  Change
14710         ifdef OSF1_HANG_BUG to ifdef OSF1_VDUMP, since I'd rather not
14711         have too many defines floating around.  Patch by Blair Zajac
14712         <blair@gps.caltech.edu>.
14713
14714         There was a bug in selfcheck.c when Blair installed the Samba
14715         support.  I deleted an extra space that was added after
14716         SAMBA_CLIENT when the command was being put together.  Fix by
14717         Michael Zucchi <cismpz@cis.unisa.edu.au>.
14718
14719         Add a needed ; to client-src/Makefile.am and
14720         server-src/Makefile.am.  Patch from Alexandre Oliva
14721         <oliva@dcc.unicamp.br>.
14722
14723         Have planner.c and amcheck.c always get the amanda port number
14724         even if BSD security is turned off.  Patch by Blair Zajac
14725         <blair@gps.caltech.edu>.
14726
14727         Change the way amgetidx caches host up/down information.  It
14728         used to stralloc() a string depending on if the host was up or
14729         down.  Now, create two static character arrays, one holding
14730         "down" and the other holding "up" and simply point the
14731         hostinfo->up pointer to one of the two arrays.  This should
14732         save a little memory.  Patch by Blair Zajac
14733         <blair@gps.caltech.edu>.
14734
14735         The Bourne shell in FreeBSD can't handle setting IFS to : and
14736         expanding $LOCPATH:$SYSPATH.  Create two new variables before
14737         their use called $LOCSYSPATH and $SYSLOCPATH.  Patch by Blair
14738         Zajac <blair@gps.caltech.edu>.
14739
14740         Have open_fstab for BSD systems return the value of setfsent.
14741         Patch by Blair Zajac <blair@gps.caltech.edu>.
14742
14743         Configure was searching for the dump program in the following
14744         order: ufsdump, vdump, backup, dump.  On HP-UX systems,
14745         configure would find backup, which is a valid program but does
14746         not do what dump does.  So switch the order of the programs to
14747         ufsdump, vdump, dump, backup.  Patch by Blair Zajac
14748         <blair@gps.caltech.edu>.
14749
14750         Fixed some dbprintf(()) bugs in amgetidx.c.  Patch by Blair
14751         Zajac <blair@gps.caltech.edu>.
14752
14753         Have amrecover.c always declare
14754             extern char *optarg;
14755             extern int optind;
14756         This makes amrecover.c compile on Ultrix systems.  Problem
14757         noted by Scott Gasch <scott@cray-ymp.acm.stuorg.vt.edu>.
14758
14759         Patch to configure to have it recognize gnutar version 1.11.2.
14760         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
14761
14762 Version 2.3.0.4b2
14763
14764         Have amcleanup, no-changer, and hp-changer find out where the
14765         logging directory, or amdump error file is from getconf instead
14766         of using @LOG_DIR@ or @DB_DIR@ from configure.  Problem noted
14767         by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
14768
14769         Remove VarDir=@DB_DIR@ from amrmtape.sh.in, since amrmtape
14770         figures out where the curinfo files are from the amanda.conf
14771         file.  Problem noted by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
14772
14773         Include rth-changer, a tape changer script for the Robotic Tape
14774         Handling system OEM'd by Andataco (RTH-406).  Script written by
14775         Erik Frederick <edf@tyrell.mc.duke.edu>.
14776
14777         Add a new configure option called --with-pid-debug-files which
14778         has Amanda append the process ID to the debugging files placed
14779         in /tmp.  The PID will not be appended unless this option is
14780         used.  Suggestion by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
14781
14782         Add a new #define UNCOMPRESS_OPT to pass to UNCOMPRESS_PATH to
14783         get compressed standard input decompressed and pass it to
14784         standard output.  The configure script only recognized gzip and
14785         compress right now, so it will set UNCOMPRESS_OPT to -dc and
14786         set UNCOMPRESS_PATH to the same value as COMPRESS_PATH.  Edit
14787         all of the files that make use of UNCOMPRESS_PATH to also make
14788         use of UNCOMPRESS_OPT now.  Patch by Blair Zajac
14789         <blair@gps.caltech.edu>.
14790
14791         The readline() substitute in amrecover.c when the real
14792         readline() code is not available did not return to the caller
14793         what the user typed in.  It now does so.  Patch from Blair
14794         Zajac <blair@gps.caltech.edu>.
14795
14796         Avoid -lnsl on Irix.  On IRIX 5.x and 6.x systems that have the
14797         svr4net module installed, there will be a /usr/lib/libnsl.so
14798         present on the system. The configure script looks for this and
14799         tosses into the library list if it's there.  It is not
14800         advisable to link against libnsl on IRIX unless you really need
14801         it for SVR4 networking (TLI/STREAMS). If you _do_ link against
14802         it, you should use include '-lc' _before_ '-lnsl'. The reason
14803         for this is that libnsl.so also contains the SysV TI-RPC code,
14804         which is RPC based on STREAMS/TLI rather than sockets. (Solaris
14805         2.x now uses this by default.) TI-RPC has some compatibility
14806         functions with the same names as older RPC functions, such as
14807         clnt_call(), clnt_create(), clnt_destroy(), and these conflict
14808         with the functions in libc.so. The main place this will hose
14809         you is NIS: NIS v2 expects the underlying RPC code to use
14810         sockets, not STREAMS, and it fails if the TI-RPC symbols in
14811         libnsl.so override the RPC symbols in libc.so.  Again, you
14812         don't need libnsl.so unless you're actually using STREAMS/TLI
14813         or TI-RPC, so in Amanda's case it's safe to just ignore it. If
14814         you _do_ need it, you must do 'cc -o foo foo.c -lc -lnsl' in
14815         order to make sure the linker resolves the RPC symbol
14816         references correctly. The primary symptom of this problem is
14817         that things like getpwent(), getgrent() and getnetgrent() stop
14818         working in an NIS environment.  To make a long story short: on
14819         IRIX, avoid using libnsl. Amanda doesn't need it anyway. So far
14820         I haven't encountered a problem with this, but you never know.
14821         Note from Bill Paul <wpaul@ctr.columbia.edu>.
14822
14823         Include patches to have Amanda do incrementals of gnutar based
14824         backups.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
14825
14826         Delete the GNUTAR_BROKEN_PIPE from configure and acconfig.h
14827         since no code was testing for it.  Patch by Blair Zajac
14828         <blair@gps.caltech.edu>.
14829
14830         Have configure check for the number of arguments that
14831         gettimeofday takes and have clock.c use the appropriate number
14832         of arguments.  Patch by Blair Zajac <blair@gps.caltech.edu>.
14833
14834         Have sendbackup-common.c include tapeio.h instead of defining
14835         BUFFER_SIZE.  Fix by Philip Guenther <guenther@gac.edu>.
14836
14837         Put in more support for AIX by defining AIX_BACKUP if the
14838         system is an AIX system.  Fix createindex-dump.c to pass the -B
14839         flag to restore to have it read from standard input.  Problem
14840         noted by Bill Paul <wpaul@ctr.columbia.edu>.  Patch by Blair
14841         Zajac <blair@gps.caltech.edu>.
14842
14843         Add a regexp for AIX 4's backup in sendbackup-dump.c and
14844         sendsize.c.  Patch from Bill Paul <wpaul@ctr.columbia.edu>.
14845
14846         Add a comment to tapeio.h about BUFFER_SIZE and what it is used
14847         for and how people should not change it.  Noted by Bill Paul
14848         <wpaul@ctr.columbia.edu>.
14849
14850         Added a --with-mmap option to force the use of mmap() instead
14851         of shared memory support.  Requested by wpaul@ctr.columbia.edu
14852         <Bill Paul>.  Patch by Blair Zajac <blair@gps.caltech.edu>.
14853
14854         On FreeBSD 2.x and 3.x, the SO_SNDTIMEOUT value is too large in
14855         dumper.c.  Looking at the kernel source, the maximum value for
14856         tv_sec is about 227.  The value used is READ_TIMEOUT/4, or
14857         (30*60)/4 == 450 seconds.  This causes setsockopt() to return
14858         EDOM (Numerical argument out of domain), and again everything
14859         grinds to a halt.  I changed the value from READ_TIMEOUT/4 to
14860         READ_TIMEOUT/8, which reduces the SO_SNDTIMEO value to 225.  I
14861         haven't extensively tested this yet, but based on eyeballing
14862         the kernel source it should work.  Patch from Bill Paul
14863         <wpaul@ctr.columbia.edu>.
14864
14865         In dumper.c:do_dump(), there is code to set the transmission
14866         timeout, receive buffer size and receive low water mark on the
14867         data socket using setsockopt().  For SO_RECVBUF, the receive
14868         buffer size (recbuf) is set to DATABUF_SIZE * 4, which is
14869         32*1024*4, or 131072.  On SunOS 4.1.x, this value is too
14870         large:  dumper generates a 'no buffer space available' error
14871         and everything grinds to a halt.  I took away the '*4', which
14872         reduces the size to 32767 bytes, which seems to work.  I'm
14873         surprised nobody else has noticed this since it breaks SunOS
14874         Amanda servers.  I can only surmise that people aren't using
14875         SunOS machines as servers these days. :)   Patch from Bill Paul
14876         <wpaul@ctr.columbia.edu>.
14877
14878         Have Amanda include either readline.h or readline/readline.h
14879         Fix suggested by Neal Becker <neal@ctd.comsat.com>.
14880
14881         Have --with-includes put the -I flags into $CPPFLAGS and
14882         $CFLAGS so that AC_CHECK_HEADERS will find other include
14883         files.  Problem noted by Neal Becker <neal@ctd.comsat.com>.
14884
14885         Fixed common-src/Makefile.am to put the extra libamanda.a
14886         sources into the EXTRA_libamanda_a_SOURCES variable instead of
14887         EXTRA_DIST.  Fix from Tom Tromey <tromey@drip.Colorado.EDU>.
14888
14889         When compiling amgetidx.c with some compilers, trigraph
14890         substitutions were being made when they should not have been.
14891         Protect the code from this.  Patch from Blair Zajac
14892         <blair@gps.caltech.edu>.
14893
14894         Test for flock support in the following order:
14895                 1) POSIX fcntl file locking
14896                 2) flock locking
14897                 3) lockf locking
14898         The common-src/flock.c file will only be used if the lockf type
14899         locking is needed on this system.  Patch from Blair Zajac
14900         <blair@gps.caltech.edu>.
14901
14902         Have Samba support compile in only if requested by the user.
14903         Patch from Blair Zajac <blair@gps.caltech.edu>.
14904
14905         Configure was not using $CFLAGS and $CPPFLAGS when trying to
14906         calculate the select argument type.  Patch from Blair Zajac
14907         <blair@gps.caltech.edu>.
14908
14909         Updated amanda.h to include alloca.h if the system has it and
14910         if it's ok to include.  Also protect more include files with
14911         #ifdefs found by configure.  Patch from Blair Zajac
14912         <blair@gps.caltech.edu>.
14913
14914         Linux does not use the raw device names to do backups.
14915         configure now checks to see if it can find a raw disk device
14916         file whose name is built from root's mount point.  If it can't,
14917         then set RDEV_PREFIX to use /dev/ instead of /dev/r.  Fix
14918         suggested by Brian <brian.s.mogged@uwrf.edu> and Ken Latta
14919         <latta@parc.xerox.com>.
14920
14921         Fixed const cast message from regex.c.  Problem noted by Ken
14922         Laprade <klaprade@harris.com>.  Patch from Blair Zajac
14923         <blair@gps.caltech.edu>.
14924
14925         Configure was not checking for the OSF1_VDUMP #ifdef used in
14926         Amanda.  It now will set OSF1_VDUMP if vdump is found on the
14927         system.  However, it does not check if the system is really a
14928         OSF system.  Patch from Blair Zajac <blair@gps.caltech.edu>.
14929
14930         Have configure check for asm/byteorder.h for
14931         sparc-unknown-linux-gnu.  Problem noted by Eric Doutreleau
14932         <ed@cti.ecp.fr>.
14933
14934         Remove the check for libintl.h from configure.  It was only
14935         being used for regex.c, which really didn't need it.  Patch
14936         from Blair Zajac <blair@gps.caltech.edu>.
14937
14938         Convert all code to K&R C by trying to compile Amanda using
14939         /usr/bin/cc on a SunOS 4.1.1 machine.  Have configure check if
14940         the compiler can handle the volatile keyword and if it can't,
14941         #define it to empty in the config.h file.  Patch from Blair
14942         Zajac <blair@gps.caltech.edu>.
14943
14944         Move the contents of versuff.h into version.h and remove
14945         versuff.h.  Add a new function called version() which returns
14946         the version string.  Use version() in some of the programs.
14947         Patch from Blair Zajac <blair@gps.caltech.edu>.
14948
14949         m88k-motorola-sysv4 systems define L_FAIL, which is used by
14950         logfile.h.  Undefine it in logfile.h.  Patch from Blair Zajac
14951         <blair@gps.caltech.edu>.
14952
14953         Include amindex-1.0 from Alan McIvor.  It includes these
14954         improvements over 0.3:
14955                 Amrecover now provides the ability to restore files
14956                 from the tapes, via the "extract" command.
14957
14958                 Support for gnutar based index generation (but not file
14959                 restoration yet).
14960
14961                 Numerous bug fixes.
14962
14963         Have amgetidx try to open a socket to the shell/tcp port on the
14964         remote machine and cache if it succeeds.  If it connection
14965         attempt succeeds, then attempt to get the index files over from
14966         the client.  Patch from Blair Zajac <blair@gps.caltech.edu>.
14967
14968         Update patch-system to include the amidxtape service at
14969         10083/tcp.  Patch from Blair Zajac <blair@gps.caltech.edu>.
14970
14971         Configure said that the server configuration was OK and then
14972         next said it wasn't.  Remove these checks.  Patch from Blair
14973         Zajac <blair@gps.caltech.edu>.
14974
14975         Fixed building Amanda for multiple architectures in
14976         subdirectories of Amanda.  Problem noted by Thomas Hepper
14977         <Thomas.Hepper@icem.de>.
14978
14979 Version 2.3.0.4b1
14980
14981         Fix a problem with `amadmin <conf> balance' dumping core.  If
14982         some disks are overdue, they are stored in the sequence array
14983         with a negative index.  This has the potential to cause memory
14984         corruption, and it makes the reported balance figures not add up
14985         to the same as the total.  Since overdue disks are really going
14986         to be candidated for today's backups, they are thrown in the
14987         bin for those.  Patch from Ken Laprade <klaprade@harris.com>.
14988
14989         Add Samba client support using smbclient to Amanda.  Samba must
14990         be patched with the file patches/samba-1.9.16p2.1.patch - this
14991         is a patch for 1.9.16p2 of Samba, and modifies the way the
14992         'dir' command works, and adds totals to both the dir command
14993         and the tar command, via stderr.  These are used by amanda to
14994         estimate and count backup sizes.  This should be installed on
14995         an amanda 'client' host, that will act as the 'samba server'
14996         host.  This will most likely be the same machine as the Amanda
14997         master server.  Patches from Michael Zucchi
14998         <zucchi@cis.unisa.edu.au>.
14999
15000         Amrmtape converted from Bash to Bourne shell.  Patch from Blair
15001         Zajac <blair@gps.caltech.edu>.
15002
15003         Fix the indexing code to use "arglist.h" instead of <stdarg.h>
15004         Patch from Blair Zajac <blair@gps.caltech.edu>.
15005
15006         Have amdump call amgetidx and amtrmidx.  Put amgetidx and
15007         amtrmidx into the libexec directory instead of the bin
15008         directory, since Amanda users will not use these by hand.
15009         Patch from Blair Zajac <blair@gps.caltech.edu>.
15010
15011         Modified diskfile.c to match hostname in the backup header
15012         against the fully qualified domain name in disklist file,
15013         because amflush fails in a multidomain backup environment, as
15014         backup headers have only the hostname.  Patch from Karl
15015         Lehenbauer <karl@neosoft.com>.
15016
15017         Have autoconf figure out if some functions are not declared and
15018         if they are not, then declare them.  Patch from Blair Zajac
15019         <blair@gps.caltech.edu>.
15020
15021         Add security fixes to amandad.c.  It now checks the forward and
15022         reverse DNS names for consistency.  Added a configure option
15023         --amandahosts to use Michael's code to use .amandahosts instead
15024         of .rhosts.  Patch from Michael Douglass <mikedoug@texas.net>.
15025
15026         Add amverify, a simple shell script to check Amanda tapes -
15027         gnutar driven backups only.  Patch from Thomas Hepper
15028         <Thomas.Hepper@icem.de>.
15029
15030         Add the version option to amadmin (eg amadmin <conf> version).
15031         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
15032
15033         Add the current option to amtape (eg amtape <conf> current).
15034         This let's you the label of the current tape only without using
15035         dd.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
15036
15037         Gnutar support for amindex added.  Patch from Thomas Hepper
15038         <Thomas.Hepper@icem.de>.
15039
15040         Calcsize supports exclude-list (gtar).  The source was
15041         extracted from gnutar itself to be 100% compatible.  Patch from
15042         Thomas Hepper <Thomas.Hepper@icem.de>.
15043
15044         Calcsize checks the file type and ignores special files and
15045         pipes.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
15046
15047         Calcsizes calculation for gnu tar archives had a bug (gtar file
15048         blocks always are a multiple of 2k).  Patch from Thomas Hepper
15049         <Thomas.Hepper@icem.de>.
15050
15051         `amandates.c': amdandad suffered by missing AMANDATES_FILE.
15052         Now it creates this file before missing it.  Patch from Thomas
15053         Hepper <Thomas.Hepper@icem.de>.
15054
15055         `createindex-gnutar.c' added.  Patch from Thomas Hepper
15056         <Thomas.Hepper@icem.de>.
15057
15058         alloca(), strdup.c and getcwd added for those system who don't
15059         have them.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
15060
15061         A dirty hack for BSD based systems without sigaction(), see
15062         amanda.h.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
15063  
15064         Add two scripts, hp-changer and no-changer. hp-changer is a
15065         tape changer script for a HP DAT changer. Every 10th tape a
15066         taper clean runs.  no-changer is a changer-like script for
15067         single tape streamer.  It makes Amanda see a tape changer unit
15068         with an infinite count of tapes (and requires an operator to
15069         change the tapes :-)). Every 10 tapes the operator is
15070         recommended to insert a cleaning tape.  Patch from Thomas
15071         Hepper <Thomas.Hepper@icem.de>.
15072
15073         The version suffix adding is done with a seperate function
15074         versionsuffix() also available as standalone program.  Patch
15075         from Thomas Hepper <Thomas.Hepper@icem.de>.
15076
15077         Several files got debug support. Patch from Thomas Hepper
15078         <Thomas.Hepper@icem.de>.
15079
15080         Added an idle type file-too-large to driver.c to avoid dumping
15081         files to the holding disk(s) which exceed the maximum file size
15082         (2 GB on the most 32-bit machines).  Patch from Thomas Hepper
15083         <Thomas.Hepper@icem.de>.
15084
15085         Some minor bug fixes, mostly regarding missing or wrong casts
15086         confusing c compilers (shmat()/shmdt(), select()).  Patch from
15087         Thomas Hepper <Thomas.Hepper@icem.de>.
15088
15089         Genversion gives some more information.  Patch from Thomas
15090         Hepper <Thomas.Hepper@icem.de>.
15091
15092         getfsent.c and statfs.c have been cleaned up. The have to be
15093         checked on non-Irix/Solaris/NextStep/HPUX/AIX/Linux-systems.
15094         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
15095
15096         Simple support if readline.a is missing.  NEVER TESTED!  Patch
15097         from Thomas Hepper <Thomas.Hepper@icem.de>.
15098
15099         Linux requires libdb.a and ndbm.h to handle database files. Not
15100         really what I expected.  Patch from Thomas Hepper
15101         <Thomas.Hepper@icem.de>.
15102  
15103         Here's a simple patch which fixes a problem that causes amflush
15104         to erroneously complain "ignoring cruft file" about good dump
15105         files on the holding disk, and fail to flush them to tape.
15106         This happens if your holding disk directory has a long name,
15107         and the dump file also has a long name (i.e. if you use
15108         filesystem mount points in disklist).  The problem occurs if
15109         the holding directory + filename exceeds 80 bytes.  The patch
15110         still leaves a length limitation, but at least it matches the
15111         size limit imposed by driver (and thus dumper & taper) of 128
15112         bytes.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
15113
15114         Use regex.h and regex.c from
15115         ftp://prep.ai.mit.edu/sh-utils-1.15.tar.gz instead of the regex
15116         checking code in the system.  This code includes re_comp and
15117         re_exec calls, so it will work on any system.  Patch by Blair
15118         Zajac <blair@gps.caltech.edu>.
15119
15120         Amadmin find reports the wrong tape file numbers after when a
15121         dump is amflush'ed to tape.  Patch by Ralf Fassel
15122         <ralf@atg.venture.de>.
15123
15124         Fix a bug where dumps of disks on the Amanda server are counted
15125         against the available network bandwidth.  Patch from Marion
15126         Hakanson <hakanson@cse.ogi.edu>.
15127
15128         Tell gnutar to not exit with a nonzero value if a read failed.
15129         This prevents backups from aborting if a file disappeared
15130         before gnutar could save it.  Patch from Hal Snyder
15131         <hal@vailsys.com>.
15132
15133         Fix dumper which can cause the entire amdump run to hang after
15134         dumper issues a "TRY-AGAIN" message to driver while dumping
15135         directly to tape.  Patch from Marion Hakanson's
15136         <hakanson@cse.ogi.edu>.
15137
15138         Added Marion Hakanson's <hakanson@cse.ogi.edu> patches to fix
15139         problems when amanda dumps directly to tape (i.e. when holding
15140         space is full, or you're backing up a huge filesystem, etc.).
15141         The bug occurs in the way taper determines it has succeeded
15142         when doing a PORT-WRITE operation (i.e. dumping directly to
15143         tape).  It used to assume that an EOF meant no more data --
15144         true if it's reading from a file, but when reading from a port
15145         (i.e. directly from a dump process), an EOF could signal
15146         abnormal exit as well as a normal one.  So, I extended the
15147         protocol between driver and taper when dumping directly to tape
15148         (see dump_to_tape() in driver.c) so the taper will wait for the
15149         driver to pass PORT-WRITE-SUCCESS or PORT-WRITE-FAILURE to the
15150         taper (since driver gets OK/not-OK from the dumper) before the
15151         taper records success or failure.  Note that this change
15152         affects only the PORT-WRITE case in taper.  FYI, the bug
15153         resulted in the curinfo database for a failed port-dump to have
15154         the tape-label & file-number fields updated with the location
15155         of the failed dump, even though the timestamp & dump statistics
15156         still have the values of the last successful dump (the latter
15157         fields are updated by dumper itself).
15158
15159         Patches from George Scott <George.Scott@cc.monash.edu.au> to
15160         fix the following problems in planner.c.
15161         1) Initialise total_size, total_lev0 and balanced_size.  They
15162         are updated in analyze_estimates() but never initialised.  Zero
15163         them before the first call.
15164         2) Remove oversize dumps.   If there is a dump whose estimated
15165         size is larger than the tape the planner would tend to throw
15166         away all the other dumps and then probably generate an
15167         unworkable plan anyway.  (The standard 2.2.6 planner probably
15168         tossed these dumps fairly quickly for other reasons, but my
15169         next fix made this one almost mandatory!)  The fix is to drop
15170         these enormous dumps right at the begining.  This shouldn't be
15171         triggered for anyone with a sane configuration.
15172         3) Promote hills.  There are two ways to create a balanced
15173         cycle.  The first is to fill in any holes and the second is to
15174         remove any hills.  The original planner is good at doing the
15175         first but doesn't even attempt the second.  A quick look at
15176         "amadmin balance" would show big hills quite clearly.  This fix
15177         effectively does an "amadmin balance" and promotes a dump from
15178         one of the "hills".  This type of promotion is quite
15179         restricted:
15180           - don't bother if we already plan to do any level 0 dumps
15181           - don't promote a dump if it was going to be the only level 0
15182             to be done on that run (ie, ignore hills that are only one
15183             dump high)
15184           - only promote one level 0 by this method
15185           - don't exceed tape_length
15186         The key to it is the first restriction.  Large sites (with
15187         large numbers of disks and a large balanced_size) will have at
15188         least one level 0 scheduled for each day in the dump cycle and
15189         will already have a balanced cycle.  This code will not
15190         activate for them.  Small sites will probably not have a level
15191         0 scheduled and will benefit.  The second restriction will stop
15192         Amanda from constantly promoting dumps when the schedule is as
15193         balanced as it will go.  The third restriction will stop Amanda
15194         over reacting.  Promoting one dump by this method would take
15195         total_lev0 larger that balanced_size.  If it wouldn't then the
15196         first stage promotion didn't work like it should.
15197         4) Initialise got_estimate for all cases.  This fix was from
15198         der Mouse <mouse@collatz.mcrcim.mcgill.edu>.  "got_estimate"
15199         wasn't being initialised for skipped disks.  Later in the code
15200         it was being used in all cases.  The fix is to move its
15201         initialisation up a few lines.
15202         5) Explicitly ignore off-line disks.  If a disk is off-line
15203         when the planner is run it gets -1 for all dump sizes.  These
15204         were ignored at a later stage.  This fix explicitly ignores
15205         them up front.
15206         6) Ignore down machines.  If a machine is down when the planner
15207         is run it guesses from historical data what the size of
15208         tonights dump is likely to be and schedules a dump anyway.  The
15209         dumper then usually discovers that the machine is still down
15210         and ends up with a half full tape.  Unfortunately the planner
15211         had to delay another dump because it thought that the tape was
15212         full.  The fix here is for the planner to discard unavailable
15213         machines totally rather than just ignore the fact that they are
15214         unavailable.
15215         7) Keep at least one total.  Amanda moves level 0 dumps back to
15216         incrementals to try and fit everything onto the tape.
15217         Unfortunately if all your incrementals are too big (or your
15218         tape too small) it can move all of your level 0 dumps.  This
15219         ends up being a kind of deadlock since, unless a level 0 gets
15220         done, the incrementals will not reduce in size and until the
15221         incrementals reduce in size there will not be enough room to
15222         fit in a level 0.  (This is not quite accurate since a level 4
15223         dump can get bumped to a level 5 which reduces its size.
15224         However, this deadlock has happened to me and for many days in
15225         a row.)  The fix is to pick on the highest priority level 0 and
15226         not let it be moved.  This change will not affect users with
15227         reasonably sized tapes since Amanda would not have moved all
15228         their disks to incrementals.
15229         8) Make usage of total_lev0 consistent.  "total_lev0" is a
15230         double and doesn't include tape_mark's.  Make it so.
15231
15232         Add a fflush(outf) to amcheck.c.  Patch from Mike Russell
15233         <Michael_Russell@Brown.EDU>.
15234
15235         Fix problems with amhpfixdevs.  Patch from Michael Schmitz
15236         <mschmitz@iname.com>.
15237
15238         Have DEC OSF1 use installbsd instead of install.  Patch from
15239         Rainer Landes <rlandes@fphws01.physik.uni-karlsruhe.de>.
15240
15241         Have amcontrol take the first command line argument as the
15242         configuration to use.  If there are no command line arguments,
15243         then use daily.  Patch from Thomas Schmeidl
15244         <schmeidl@nwp.kwu.siemens.de>.
15245
15246         Removed --atime-preserve from sendbackup-gnutar.c so that
15247         incremental backups of filesystems will work.  Patch from
15248         Alexandre Oliva <oliva@dcc.unicamp.br>.
15249
15250         Change all #if __STDC__ to #ifdef __STDC__ for those systems
15251         that define __STDC__ to 0, such as Solaris using cc -Xt, cc
15252         -Xa.  Patch from Blair Zajac <blair@gps.caltech.edu>.
15253
15254         Increase the socket buffer size, and set a low watter mark at
15255         32k.  This cut the number of syscalls done to process one 32k
15256         block from dozens down to 4 (select, read, lseek, write).
15257         Patch from Brad Huntting <huntting@glarp.com>.
15258
15259         Include amindex-0.3 from Alan McIvor <alan@salan.auck.irl.cri.nz>.
15260
15261         Add the "srvcompress" option to compress dumps on the tape host
15262         instead of on the client machines.  This may be useful when a
15263         fast tape host is backing up slow clients.  The patches add a
15264         dump-type option, analogous to "compress-fast" or
15265         "compress-best" - the way to use it is to create a new dumptype
15266         in your amanda.conf that includes "srvcompress" and use the new
15267         dumptype for those filesystems you wish to have compressed on
15268         the tape server. For example, in amanda.conf:
15269             define dumptype srvcomp-user {
15270             comment "Partitions on slow machines, compressed on tapehost"
15271             options srvcompress
15272             priority medium
15273         }
15274         Patches from Eric Volpe <epv@panix.com>.
15275
15276         Increase the planner timeout for one estimate from 30 seconds
15277         to 120 seconds.  Patch from Michael Schmitz
15278         <mschmitz@iname.com>.
15279
15280         The select(2) prototype on HPUX specifies 'int' as argument
15281         type of the filedescriptor arguments. All other systems I know
15282         of use 'fd_set'. This has been fixed by having configure check
15283         the argument type to select and adding casts to the select(2)
15284         calls.  Patch from Michael Schmitz  <mschmitz@iname.com>.
15285
15286         Improve the diagnostic output and increase the robustness of
15287         the system by adding better error checking on communication
15288         between taper & driver, and among the two taper processes.
15289         Patches from Marion Hakanson <hakanson@cse.ogi.edu>.
15290
15291         Convert all flock() calls to use POSIX-style locks via the
15292         fcntl(2) call.  This operation was prompted by the fact that
15293         the flock() emulation in the Amanda-provided common-src/flock.c
15294         was broken for read-only file descriptors, and the fcntl(2)
15295         locks are widely available.  This patch makes it possible to
15296         have a read-only lock on the /etc/amandates file on systems
15297         which want to use it.  I've built and tested the patched code
15298         on Amanda servers running on Digital Unix v3.2B (on Alpha
15299         hardware) and on SPARC Solaris-2.5.1.  It's also been compiled
15300         here on SPARC's running SunOS-4.1.3u1b, HP-UX 9.0[345], and
15301         NeXTstep-3.3 (NeXT hardware).  Note that the patches also
15302         remove all trace of the NEED_FLOCK define, and I have removed
15303         the file common-src/flock.c from our source tree here.  Patch
15304         from Marion Hakanson <hakanson@cse.ogi.edu>.
15305
15306         For disk/filesystem names which are wider than 14 characters,
15307         have reporter print out the rightmost characters of the disk
15308         name, which is usually more meaningful in a daily backup
15309         summary.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
15310
15311         Lets amflush work in a wider variety of cases than was
15312         previously true (it used to work if the disklist contains only
15313         the first token of each hostname).  sendbackup-dump.c and
15314         sendbackup-gnutar.c now do not trim the domain name from the
15315         host name that is sent back to the server.  amflush now looks
15316         for an exact match, in the database.  If it can't find one it
15317         strips the last token off the dump header hostname and keeps
15318         trying until it finds a match in the disklist or runs out of
15319         tokens.  This also has the advantage that if gethostname()
15320         returns FQDNs and you specify the same FQDNs in the disklist,
15321         then amflush will always work.  It will also work as long as
15322         the disklist and gethostname() on the clients return enough
15323         information to be unambiguous.  Patch from James Mathiesen
15324         <james@deshaw.com>.
15325
15326         Increase the READ_TIMEOUT in dumper.c to 30 minutes.  This
15327         needs to be longer than the longest amount of time dump will
15328         not produce output.  People have observed dumps taking more
15329         than 10 minutes to finish mapping some of the passes
15330         sometimes.  Patch from James Mathiesen <james@deshaw.com>.
15331         
15332         Added Adrian T. Filipi-Martin's <atf3r@cs.virginia.edu>
15333         amrmtape script, which allows you to invalidate the contents of
15334         an existing backup tape within the Amanda current tape
15335         database.  This is meant as a recovery mecanism for when a good
15336         backup is damaged either by faulty hardware or user error,
15337         i.e.  the tape is eaten by the tape drive, or the tape has been
15338         overwritten.  Blair Zajac wrote a quick little manual page for
15339         this script.
15340
15341         amrmtape was using the return value from amadmin and amadmin
15342         was exiting with a non-zero value, causing amrmtape to quit.
15343         Added a return 0 statement to amadmin.c.  Patch from Blair
15344         Zajac <blair@gps.caltech.edu>.
15345
15346         Went through all of the files and changed void main()'s to int
15347         main()'s.  Patch from Blair Zajac <blair@gps.caltech.edu>.
15348
15349         Removed the 50 tape file limit in amcleanup and amdump.
15350
15351         createindex-dump and sendbackup-dump did not always take into
15352         account the version suffix.  This is now handled.  Patch from
15353         Philippe Charnier <charnier@lirmm.fr>
15354
15355         Compile and install amrecover and amrestore as client programs,
15356         not a server program.  The motovation for this is that
15357         amrecover is truly a program for all of the users on the
15358         system, while the remaining amanda programs could be used by
15359         only the system administrator.  Patch from Alexandre Oliva
15360         <oliva@dcc.unicamp.br>.
15361
15362         The program amtrmidx fails to close some of the pipes it uses,
15363         and this can lead to failure on systems with large numbers of
15364         disks with incomplete database sets, and file descriptor
15365         ulimits set.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
15366
15367 Version 2.3.0.3
15368
15369         Expanded the width of the DISK column from the reporter
15370         output.  I like to use mount points like /export/home?? instead
15371         of device names to back up.  Since the width of the disk name
15372         field from reporter's output is pretty small, I couldn't easily
15373         figure out the statistics for a particular partition.  Patch
15374         from Blair Zajac <blair@gps.caltech.edu>.
15375
15376         Included Eric Doutreleau <ed@cti.ecp.fr> patch's for amadmin to
15377         handle multiple tapes better.  The patch that he posted on used
15378         a hardwired value of 6 for runtapes, which I changed.
15379
15380         Included Marion Hakanson's <hakanson@cse.ogi.edu> patches to
15381         amadmin.c and amadmin.8 to let amadmin use the same disk
15382         regular expression matching as amrestore.  So now "^/$" will
15383         match only the root partition, not all of the disks.
15384
15385         Added a patch from George.Scott@cc.monash.edu.au which makes
15386         new disks and forces dump with a higher priority.
15387
15388         Changed tools/munge to delete blank lines and the commented
15389         lines that the C preprocessor generates (i.e. # 123).  We also
15390         remove the space after the = sign that can be generated by cpp
15391         on some systems.
15392
15393         Installed amindex-0.2 from Alan McIvor <alan@auck.irl.cri.nz>
15394         with the following patches:
15395
15396                 Fix problem so that rsh'ing on a hpux host works.
15397                 Patch from Neal Becker <neal@ctd.comsat.com>.  This
15398                 patch includes a new #define for RSH_COMMAND, which is
15399                 set to rsh in config-common.h and defined as remsh in
15400                 config.h-hpux.
15401
15402                 Fix bugs in createindex-dump.c when comparing errno to
15403                 EINTR.  The code was using = instead of ==.  Patch from
15404                 Neal Becker <neal@ctd.comsat.com>.  I'm guessing this
15405                 might fix some of the runaway createindex-dump
15406                 processes that I have seen on my system.
15407
15408                 On my system, we use MAE which likes to generate path
15409                 names with spaces in them.  I patched
15410                 createindex-dump.c so that filenames with spaces have
15411                 the whole filename listed.  Patch from Blair Zajac
15412                 <blair@gps.caltech.edu>.
15413
15414                 Patch amtrmidx.c so that backups using the mount points
15415                 for disks instead of the device name have the /'s
15416                 replaced with _'s.  Patch from Blair Zajac
15417                 <blair@gps.caltech.edu>.
15418
15419 Version 2.3.0.2
15420
15421         Changed the signals being sent to xfsdump for Irix so that it
15422         will be killed without dumping a core.
15423
15424         Fixed a typo in the definition of XFSDUMP in config.h-irix.
15425
15426         Removed the extra option.s-* and copied options.h to
15427         options.h-vanilla.
15428
15429         Moved the amrestore manual page into the man directory so it
15430         would get installed.
15431
15432 Version 2.3.0.1
15433
15434         amindex-0.1 written by Alan McIvor <alan@kauri.auck.irl.cri.nz>
15435         installed.  amindex generates an index of all of the files that
15436         were dumped.  It is nice to see what files were dumped before
15437         you restore a whole bunch of tapes looking for a file.  I
15438         patched some of this code.  Here are some of the changes:
15439
15440                 Switched the Imakefile to Makefile and Makefile.in to
15441                 be more consistent with the system used by the rest of
15442                 amanda.
15443
15444                 Moved the configuration #defines out of the specific
15445                 files (such as amrecover.c) into options.h, so that
15446                 people installing this version of amanda would be able
15447                 to see the required changes more easily and not have to
15448                 edit multiple files.
15449
15450                 Made some changes to the codes to remove #include's
15451                 where amanda.h would include them and also check if the
15452                 system had the particular include file.
15453
15454                 Added code to set_commands.c and amgetidx.c to change
15455                 /'s in disk names to _'s.
15456
15457                 Added code to amrecover.c to properly compile on
15458                 Solaris hosts.
15459
15460                 With the -Xc compiler option on Solaris and with
15461                 amindex, the sigaction structure was not being
15462                 declared.  Added -D__EXTENSIONS__ to config.h-sunos5 so
15463                 that sigaction would be declared.
15464
15465                 I changed a bunch of fprintf to perrors.
15466
15467         Include Sean Kelly's <kelly@fsl.noaa.gov> patch for tools/munge
15468         for FreeBSD-2.1.5.
15469
15470         Used Peter Lackner's <plo@came.sbg.ac.at> patches for DU 4.0.
15471
15472         Installed Ken Laprade's <klaprade@harris.com> patches for
15473         amanda to handle both EFS and XFs file systems on the same
15474         client.  The only change from his patch is to #ifdef XFSDUMP
15475         the kill(-dumppid, SIGTERM) so the SIGTERM signal will be used
15476         on other systems, while SIGQUIT will be used on Irix systems.
15477
15478         Installed Marion Hakanson's <hakanson@cse.ogi.edu> patches for
15479         the main config file to include subsidiary config files.
15480
15481         On Solaris, sometimes the hdr->handle variable in amandad.c
15482         would be null, causing core dumps when it was used in a sprintf
15483         statement.  The code now checks if hdr->handle is null and
15484         prints a "" if it is null.  This was only done in amandad.c.
15485
15486         Fix a problem where new disks would be added but not backed up
15487         concurrently.  Changes to diskfile.c.  I forgot who put this
15488         patch up on the mailing list.
15489
15490         I made some changes to options.h to allow the user to more
15491         easily install the programs under a different user.  This meant
15492         defining two new #defines, MK_AMANDA_USER and
15493         MK_QUOTED_AMANDA_USER which are used in the appropriate
15494         Makefiles.
15495
15496         Used Marion Hakanson's <hakanson@cse.ogi.edu> patch for taper.c
15497         for multiple tapes.
15498
15499         Included Joachim Loehr's <Joachim.Loeh@stadt-mh.de>
15500         script to automatically figure out which kind of HP-UX file
15501         system is being dumped.  Look in tools for the script and a
15502         README.
15503
15504 Local Variables:
15505 mode: change-log
15506 left-margin: 8
15507 fill-column: 76
15508 End: